diff --git a/deepdataspace/server/static/index.html b/deepdataspace/server/static/index.html index 419907f..a98e7dd 100644 --- a/deepdataspace/server/static/index.html +++ b/deepdataspace/server/static/index.html @@ -9,6 +9,6 @@
- + \ No newline at end of file diff --git a/deepdataspace/server/static/p__Dataset__index.020ca2a8.async.js b/deepdataspace/server/static/p__Dataset__index.3ddc5261.async.js similarity index 79% rename from deepdataspace/server/static/p__Dataset__index.020ca2a8.async.js rename to deepdataspace/server/static/p__Dataset__index.3ddc5261.async.js index 518fdd2..e2ac33a 100644 --- a/deepdataspace/server/static/p__Dataset__index.020ca2a8.async.js +++ b/deepdataspace/server/static/p__Dataset__index.3ddc5261.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[33],{51204:function(se,I,e){e.d(I,{Z:function(){return V}});var Y=e(58757),x=e(59504),S=e(53357),A={wrapper:"wrapper___FtwXk"},u=e(35667),o=function(P){var i=(0,S.bU)(),s=i.localeText,h=P.categoryId,t=P.categories,f=P.onCategoryChange;return(0,u.jsxs)("div",{className:A.wrapper,children:[s("dataset.detail.category"),":",(0,u.jsx)(x.Z,{showSearch:!0,style:{width:"160px",marginLeft:"10px"},dropdownMatchSelectWidth:!1,placeholder:"Select a category",optionFilterProp:"children",value:h,onChange:f,filterOption:function(E,g){return g.children.toLowerCase().includes(E.toLowerCase())},getPopupContainer:function(){return document.getElementById("filterWrap")},children:t.map(function(v){return(0,u.jsx)(x.Z.Option,{value:v.id,children:v.name},v.id)})})]})},V=o},85205:function(se,I,e){e.d(I,{Z:function(){return t}});var Y=e(58757),x=e(10852),S=e(38904),A=e(57414),u={dropBtn:"dropBtn___SYvIY",displayPanel:"displayPanel___JkzSB",objectTypeOption:"objectTypeOption___O6sJL",typeTitle:"typeTitle___l97pr",displayOptions:"displayOptions___NQVYA"},o=e(87615),V=e(87608),W=e.n(V),P=e(53357),i=e(76180),s=e(35667),h=function(v){var E=(0,P.bU)(),g=E.localeText,J=v.annotationTypes,Z=v.disableChangeType,R=v.displayAnnotationType,m=v.displayOptions,$=v.displayOptionsValue,K=v.onDisplayAnnotationTypeChange,N=v.onDisplayOptionsChange;return(0,s.jsx)(o.Z,{className:u.dropBtn,customOverlay:(0,s.jsxs)("div",{className:W()(u.displayPanel),children:[J.length>0&&(0,s.jsxs)("div",{className:u.objectTypeOption,children:[(0,s.jsxs)("span",{className:u.typeTitle,children:[g("dataset.detail.displayType"),":"]}),(0,s.jsx)(x.ZP.Group,{disabled:Z,onChange:function(Q){return K(Q.target.value)},value:R,children:J.map(function(D){return(0,s.jsx)(x.ZP,{value:D,children:D},D)})})]}),(0,s.jsx)(S.Z.Group,{className:u.displayOptions,onChange:N,value:$,children:(0,s.jsx)(A.Z,{direction:"vertical",children:m.map(function(D){return(0,s.jsx)(S.Z,{value:D,children:g(i.Ss[D])},D)})})})]}),children:g("dataset.detail.displayOptions")})},t=h},87615:function(se,I,e){e.d(I,{Z:function(){return h}});var Y=e(58757),x=e(38904),S=e(10852),A=e(73267),u=e(57414),o=e(12562),V=e(10130),W=e(53357),P={dropdownSelector:"dropdownSelector___gvMFq",dropdownWrap:"dropdownWrap___WWYlz",dropdownBox:"dropdownBox___lpUVf"},i=e(35667),s=function(f){var v=f.data,E=f.multiple,g=f.type,J=g===void 0?"primary":g,Z=f.ghost,R=Z===void 0?!0:Z,m=f.value,$=f.filterOptionValue,K=f.filterOptionName,N=f.onChange,D=f.className,Q=f.children,q=f.customOverlay,F=E?x.Z:S.ZP,a=function(b){N&&N(E?b:b.target.value)};return(0,i.jsx)(A.Z,{overlayClassName:P.dropdownSelector,trigger:["click"],dropdownRender:function(){return(0,i.jsx)("div",{className:P.dropdownWrap,children:q||(0,i.jsx)(F.Group,{className:P.dropdownBox,onChange:a,value:m,children:(0,i.jsx)(u.Z,{direction:"vertical",children:v==null?void 0:v.map(function(b,_){var oe=$?$(b):b,ne=K?K(b):b;return(0,i.jsx)(F,{value:oe,children:(0,W._w)(ne)},_)})})})})},children:(0,i.jsxs)(o.ZP,{className:D,type:J,ghost:R,children:[Q,(0,i.jsx)(V.Z,{})]})})},h=s},77589:function(se,I,e){e.d(I,{Z:function(){return v}});var Y=e(58757),x=e(38904),S=e(57414),A=e(94706),u=e(10852),o={labelsPanel:"labelsPanel___nCoUr",labels:"labels___f2KO4",labelTitle:"labelTitle___C12Si",optionRow:"optionRow___X46cn",checkbox:"checkbox___Z6wLJ",slider:"slider___GUIhq",lineStyle:"lineStyle___Kmd9H",actionBtns:"actionBtns___JfDVN",modes:"modes___HaJVD"},V=e(87615),W=e(87608),P=e.n(W),i=e(76180),s=e(74595),h=e(53357),t=e(35667),f=function(g){var J=(0,h.bU)(),Z=J.localeText,R=g.showMatting,m=g.showKeyPoints,$=g.isTiledDiff,K=g.labels,N=g.selectedLabelIds,D=g.diffMode,Q=g.disableChangeDiffMode,q=g.onLabelsChange,F=g.onLabelConfidenceChange,a=g.onLabelsDiffModeChange;return(0,t.jsx)(V.Z,{customOverlay:(0,t.jsxs)("div",{className:P()(o.labelsPanel),id:"labelsPanel",children:[(0,t.jsxs)("div",{className:o.labels,children:[(0,t.jsxs)("div",{className:o.labelTitle,children:[(0,t.jsx)("div",{style:{width:"240px",paddingLeft:"24px"},children:Z("dataset.detail.labelSetsName")}),!R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{width:"132px"},children:Z("dataset.detail.confidence")}),(0,t.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:Z("dataset.detail.style")})]})]}),(0,t.jsx)(x.Z.Group,{onChange:q,value:N,className:o.options,children:(0,t.jsx)(S.Z,{direction:"vertical",children:K.map(function(C,b){var _=(0,s.iE)(C.id,N,$),oe=_.strokeDash,ne=_.lineWidth,he=_.colorAplha;return(0,t.jsxs)("div",{className:o.optionRow,children:[(0,t.jsx)(x.Z,{value:C.id,className:o.checkbox,disabled:!N.includes(C.id)&&N.length>=i.JQ.length,children:C.name}),!R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(A.Z,{tooltip:{open:!0,prefixCls:"slider-tooltip",getPopupContainer:function(){return document.getElementById("labelsPanel")}},className:o.slider,range:!0,min:0,max:1,value:C.confidenceRange,step:.01,onChange:function(ye){return F(b,ye)},disabled:C.source!==i.$j.pred}),(0,t.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:N.includes(C.id)&&(0,t.jsxs)("svg",{className:o.lineStyle,children:[(0,t.jsx)("line",{x1:5,y1:5,x2:70,y2:5,strokeDasharray:oe.join(","),strokeWidth:"".concat(ne,"pt")}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:5,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(he,")")}),(0,t.jsx)("circle",{cx:70,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(he,")")})]})]})})]})]},C.id)})})})]}),!R&&!Q&&(0,t.jsx)("div",{className:o.modes,children:(0,t.jsx)(u.ZP.Group,{onChange:function(b){return a(b.target.value)},value:D,children:i.Wp.map(function(C){return(0,t.jsx)(u.ZP,{value:C,children:Z(C)},C)})})})]}),children:Z("dataset.detail.labelSets")})},v=f},10666:function(se,I,e){e.r(I),e.d(I,{default:function(){return Ve}});var Y=e(24454),x=e.n(Y),S=e(56592),A=e.n(S),u=e(58757),o=e(97375),V=e(9457),W=e(61845),P=e(37617),i=e(79233),s=e(6233),h=e.n(s),t=e(12562),f=e(92183),v=e(60698),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M956 686.5l-.1-.1-.1-.1C911.7 593 843.4 545 752.5 545s-159.2 48.1-203.4 141.3v.1a42.92 42.92 0 000 36.4C593.3 816 661.6 864 752.5 864s159.2-48.1 203.4-141.3c5.4-11.5 5.4-24.8.1-36.2zM752.5 800c-62.1 0-107.4-30-141.1-95.5C645 639 690.4 609 752.5 609c62.1 0 107.4 30 141.1 95.5C860 770 814.6 800 752.5 800z"}},{tag:"path",attrs:{d:"M697 705a56 56 0 10112 0 56 56 0 10-112 0zM136 232h704v253h72V192c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h352v-72H136V232z"}},{tag:"path",attrs:{d:"M724.9 338.1l-36.8-36.8a8.03 8.03 0 00-11.3 0L493 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L251.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.2-3.1 3.2-8.2 0-11.3z"}}]},name:"fund-view",theme:"outlined"},g=E,J=e(17202),Z=function(p,d){return u.createElement(J.Z,(0,v.Z)({},p,{ref:d,icon:g}))},R=u.forwardRef(Z),m=e(76180),$=e(23707),K=e(51204),N=e(77589),D=e(85205),Q=e(2258),q=e(53357),F={fixMenu:"fixMenu___sFkoc",filter:"filter___YLCNA",rightFilters:"rightFilters___ciVMw",backBtn:"backBtn___czLrv",dropBtn:"dropBtn___dmpsD"},a=e(35667),C=function(){var p=(0,q.bU)(),d=p.localeText,O=(0,o.useModel)("dataset.common",function(n){return{isTiledDiff:n.isTiledDiff,cloumnCount:n.pageState.cloumnCount,filters:n.pageData.filters,filterValues:n.pageState.filterValues,comparisons:n.pageState.comparisons}}),r=O.filters,M=O.filterValues,c=O.comparisons,L=O.isTiledDiff,H=O.cloumnCount,T=(0,o.useModel)("dataset.filters"),j=T.onCategoryChange,k=T.onDisplayOptionsChange,z=T.onDisplayAnnotationTypeChange,te=T.onLabelsChange,w=T.onLabelConfidenceChange,re=T.onLabelsDiffModeChange,de=T.onColumnCountChange,G=(0,o.useModel)("dataset.comparisons"),ce=G.openAnalysisModal,ee=r.labels,ue=M.selectedLabelIds,pe=M.displayAnnotationType===m.JJ.Matting,le=M.displayAnnotationType===m.JJ.KeyPoints;return(0,a.jsxs)("div",{className:F.fixMenu,id:"filterWrap",children:[(0,a.jsxs)("div",{className:F.filter,children:[(0,a.jsx)(t.ZP,{icon:(0,a.jsx)(f.Z,{}),type:"text",className:F.backBtn,onClick:function(){return(0,$.yS)("/dataset")}}),(0,a.jsx)(K.Z,{categoryId:M.categoryId,categories:r.categories,onCategoryChange:j})]}),(0,a.jsxs)("div",{className:F.rightFilters,children:[c?null:(0,a.jsx)(N.Z,{showMatting:pe,showKeyPoints:le,isTiledDiff:L,labels:ee,selectedLabelIds:ue,diffMode:M.diffMode,onLabelsChange:te,onLabelConfidenceChange:w,onLabelsDiffModeChange:re}),(0,a.jsx)(D.Z,{annotationTypes:r.annotationTypes,disableChangeType:!!c,displayAnnotationType:M.displayAnnotationType,displayOptions:r.displayOptions,displayOptionsValue:M.displayOptions,onDisplayAnnotationTypeChange:z,onDisplayOptionsChange:k}),c?null:(0,a.jsxs)(t.ZP,{className:F.dropBtn,type:"primary",onClick:ce,children:[(0,a.jsx)(R,{}),d("dataset.detail.analysis")]}),!L&&(0,a.jsx)(Q.ii,{cloumnCount:H,onColumnCountChange:de})]})]})},b=C,_=e(88205),oe=e.n(_),ne=e(84045),he=e(62109),me=e(59504),ye=e(10852),ie=e(38904),Se=e(94706),Me=e(87615),y={tools:"tools___Ug3Ea",title:"title____AI54",optionsTitle:"optionsTitle___sroju",vsText:"vsText___dPKn_",vs:"vs___zpup3",splitLine:"splitLine___SWsIk",splitLineLeft:"splitLineLeft___gVvN2",toolsBar:"toolsBar___SS4ub",text:"text___TLeEl",selector:"selector___rNXkx",scoreSlider:"scoreSlider___Dmu_I",slider:"slider___TbBwi",displayBar:"displayBar___iGMj2",anlysisModal:"anlysisModal___IPNpO"},Le=e(41260),Ne=function(){var p,d,O=(0,q.bU)(),r=O.localeText,M=(0,o.useModel)("dataset.common",function(n){return{comparisons:n.pageState.comparisons,labels:n.pageData.filters.labels}}),c=M.comparisons,L=M.labels,H=(0,u.useState)(void 0),T=oe()(H,2),j=T[0],k=T[1],z=(0,o.useModel)("dataset.comparisons"),te=z.showAnalysisModal,w=z.closeAnalysisModal,re=z.compareLabelSet,de=z.exitComparisons,G=z.onFilterComparisonsPrecision,ce=L.length>0&&L.find(function(n){return n.source===m.$j.gt})&&L.find(function(n){var l;return((l=n.comparePrecisions)===null||l===void 0?void 0:l.length)>0}),ee=L.find(function(n){return n.source===m.$j.gt}),ue=L.filter(function(n){var l;return((l=n.comparePrecisions)===null||l===void 0?void 0:l.length)>0}).map(function(n){return{value:n.id,label:n.name}}),pe=function(l){k(l)},le=function(){if(!ce){ne.ZP.warning(r("dataset.toAnalysis.unSupportWarn"));return}var l=L.find(function(Ce){return Ce.id===j});if(!j||!l){ne.ZP.warning(r("dataset.toAnalysis.unSelectWarn"));return}w(),re(l)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(he.Z,{title:r("dataset.detail.analModal.title"),footer:[(0,a.jsx)(t.ZP,{type:"primary",onClick:le,children:r("dataset.detail.analModal.btn")},"analysis")],open:te,onCancel:w,children:(0,a.jsxs)("div",{className:y.anlysisModal,children:[(0,a.jsx)("div",{children:ee==null?void 0:ee.name}),(0,a.jsx)("div",{className:y.vs,children:"vs"}),(0,a.jsx)(me.Z,{placeholder:r("dataset.detail.analModal.select"),style:{width:240},onChange:pe,options:ue,value:j})]})}),c&&(0,a.jsxs)("div",{className:y.tools,children:[(0,a.jsxs)("div",{className:y.toolsBar,children:[(0,a.jsxs)("div",{className:y.selector,children:[(0,a.jsxs)("div",{className:y.title,children:[r("dataset.detail.analModal.sort")," :"]}),(0,a.jsx)(Me.Z,{data:m.J1,value:c.orderBy,filterOptionName:function(l){return l.name},filterOptionValue:function(l){return l.value},onChange:function(l){return G("orderBy",l)},ghost:!1,type:"default",children:(p=m.J1.find(function(n){return n.value===c.orderBy}))===null||p===void 0?void 0:p.name}),(0,a.jsx)("span",{className:y.text,children:"with Confidence Precision"}),(0,a.jsxs)(Me.Z,{data:c.label.comparePrecisions,value:c.precision,filterOptionName:function(l){return"".concat(l.precision," (Threshold: ").concat((0,Le.O)(l.threshold),")")},filterOptionValue:function(l){return l.precision},onChange:function(l){return G("precision",l)},ghost:!1,type:"default",children:[c.precision," (Threshold: ".concat((0,Le.O)(((d=c.label.comparePrecisions.find(function(n){return n.precision===c.precision}))===null||d===void 0?void 0:d.threshold)||0),")")]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:y.vsText,children:["GroundTruch ",(0,a.jsx)("span",{className:y.vs,children:"VS"})," ",c==null?void 0:c.label.name]}),(0,a.jsx)(t.ZP,{onClick:de,children:r("dataset.detail.analModal.exit")})]})]}),(0,a.jsxs)("div",{className:y.displayBar,children:[(0,a.jsxs)("div",{className:y.title,children:[r("dataset.detail.analModal.display")," :"]}),(0,a.jsx)(ye.ZP.Group,{options:m.Wp.map(function(n){return{label:"".concat(r(n)).concat(r("dataset.detail.analModal.diff")),value:n}}),onChange:function(l){return G("diffMode",l.target.value)},value:c.diffMode,optionType:"button"}),(0,a.jsx)("div",{className:y.splitLine}),(0,a.jsxs)(ie.Z.Group,{value:c.displays,onChange:function(l){return G("displays",l)},children:[(0,a.jsx)("span",{className:y.optionsTitle,children:"GroundTruth :"}),(0,a.jsx)(ie.Z,{value:m.$j.gt,children:"Matched"}),(0,a.jsx)(ie.Z,{value:m.BP.fn,children:"FN"}),(0,a.jsx)("div",{className:y.splitLineLeft}),(0,a.jsx)("span",{className:y.optionsTitle,children:"Prediction :"}),(0,a.jsx)(ie.Z,{value:m.$j.pred,children:"Matched"}),(0,a.jsx)(ie.Z,{value:m.BP.fp,children:"FP"})]}),(0,a.jsx)("div",{className:y.splitLineLeft}),(0,a.jsxs)("div",{className:y.scoreSlider,children:["Confidence threshold:",(0,a.jsx)(Se.Z,{className:y.slider,min:0,max:1,value:c.score,step:.01,onChange:function(l){return G("score",l)}})]})]})]})]})},be=Ne,Oe=e(74595),xe={toolsBar:"toolsBar___YbUXd",name:"name___QVqrS",vs:"vs___xuWpM"},Ie=function(p){var d=p.itemWidth,O=(0,o.useModel)("dataset.common",function(j){return{selectedLabelIds:j.pageState.filterValues.selectedLabelIds,displayAnnotationType:j.pageState.filterValues.displayAnnotationType,labels:j.pageData.filters.labels,comparisons:j.pageState.comparisons,isTiledDiff:j.isTiledDiff}}),r=O.comparisons,M=O.isTiledDiff,c=O.labels,L=O.selectedLabelIds,H=O.displayAnnotationType;if(r||L.length<=1)return null;var T=(0,Oe.WR)(c,L,H);return(0,a.jsx)("div",{className:xe.toolsBar,children:T.map(function(j,k){return(0,a.jsxs)(u.Fragment,{children:[!M&&k>0&&(0,a.jsx)("span",{className:xe.vs,children:"VS"}),(0,a.jsx)("span",{className:xe.name,style:{width:M&&k+1!==T.length?d:"auto"},children:j.name})]},j.id)})})},Ae=Ie,Te=e(14122),Ze=e(4394),X={page:"page___O9xsN",container:"container___rArHW",item:"item___aq9kP",itemImgWrap:"itemImgWrap___IaXgL",flagIcon:"flagIcon___Cm6rw",label:"label___spqGh",itemSelectedMask:"itemSelectedMask___CHtC_",pagination:"pagination___VE_pg",editor:"editor___Nl4nr",pageSpin:"pageSpin___zzy9v"},Be=function(){var p=(0,o.useModel)("dataset.common"),d=p.pageState,O=p.onInitPageState,r=p.pageData,M=p.loading,c=p.displayLabelIds,L=p.isTiledDiff,H=p.displayOptionsResult,T=p.onPageContentLoaded,j=p.onPreviewIndexChange,k=p.exitPreview,z=p.displayObjectsFilter,te=p.getCustomObjectStyles,w=(0,o.useModel)("Dataset.model"),re=w.onPageDidMount,de=w.onPageWillUnmount,G=w.clickItem,ce=w.doubleClickItem,ee=w.onPageChange,ue=w.onPageSizeChange,pe=(0,o.useModel)("global"),le=pe.layoutInnerWidth,n=d.cloumnCount,l=d.isSingleAnnotation,Ce=d.filterValues,je=d.flagTools;(0,V._)({onPageDidMount:re,onPageWillUnmount:de,onInitPageState:O,pageState:d});var Pe=le?le-80:0,ve=(0,u.useMemo)(function(){return L?(0,Oe.JC)(r.imgList,c,Ce.displayAnnotationType):r.imgList},[L,r.imgList,c]),De=L?ve.length/(r.imgList.length||1):n,ae=Pe?(Pe-16*(De-1))/(De||1):0;return(0,a.jsxs)(W._z,{ghost:!0,className:X.page,pageHeaderRender:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{}),(0,a.jsx)(be,{}),(0,a.jsx)(Ae,{itemWidth:ae+16})]})},fixedHeader:!0,children:[(0,a.jsx)("div",{className:X.container,children:(0,a.jsx)(P.Z,{loading:M,children:ve.length?(0,a.jsx)(h(),{options:{gutter:16,horizontalOrder:!0,transitionDuration:0},onImagesLoaded:function(){return T()},enableResizableChildren:!0,children:ve.map(function(B,ge){return(0,a.jsxs)("div",{className:X.item,style:{width:ae},onClick:function(){return G(ge)},onDoubleClick:function(){return ce(ge)},children:[(0,a.jsx)("div",{className:X.itemImgWrap,style:{width:ae,height:je?ae*3/4:"auto"},children:(0,a.jsx)(Te.D5,{categories:r.filters.categories,data:B,wrapWidth:ae,wrapHeight:je?ae*3/4:void 0,minHeight:ae*3/4,objectsFilter:z,getCustomObjectStyles:te,displayOptionsResult:H,displayAnnotationType:d.filterValues.displayAnnotationType})}),B.flag>0&&(0,a.jsx)(Ze.r,{fill:m.a5[B.flag],className:X.flagIcon}),H.showImgDesc&&(0,a.jsxs)("div",{className:X.label,children:[" ",B.desc," "]}),je&&B.selected?(0,a.jsx)("div",{className:X.itemSelectedMask}):null]},"".concat(B.id,"_").concat(ge))})}):null})}),!M&&(0,a.jsx)(Q.ZJ,{current:d.page,size:d.pageSize,total:r.total,onPageChange:ee,onPageSizeChange:ue}),(0,a.jsx)(Te.j5,{visible:d.previewIndex>=0&&!l,categories:r.filters.categories,list:ve,current:d.previewIndex,onCancel:k,onNext:A()(x()().mark(function B(){return x()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:d.previewIndex0&&j(d.previewIndex-1);case 1:case"end":return U.stop()}},B)})),objectsFilter:z,getCustomObjectStyles:te,displayOptionsResult:H,displayAnnotationType:d.filterValues.displayAnnotationType}),r.screenLoading?(0,a.jsx)("div",{className:X.pageSpin,children:(0,a.jsx)(i.Z,{spinning:!0,tip:r.screenLoading})}):null]})},Ve=Be},4394:function(se,I,e){e.d(I,{r:function(){return W}});var Y=e(58757),x=Object.defineProperty,S=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(i,s,h)=>s in i?x(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,V=(i,s)=>{for(var h in s||(s={}))A.call(s,h)&&o(i,h,s[h]);if(S)for(var h of S(s))u.call(s,h)&&o(i,h,s[h]);return i};const W=i=>Y.createElement("svg",V({viewBox:"0 0 16 16",fill:"#52C41A",xmlns:"http://www.w3.org/2000/svg"},i),Y.createElement("path",{d:"M12.633 4.84 3.838 1.05A.599.599 0 0 0 3 1.602v12.793a.602.602 0 1 0 1.204 0v-4l8.475-4.47a.601.601 0 0 0-.046-1.086Z"}));var P="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9IiM1MkM0MUEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjYzMyA0Ljg0IDMuODM4IDEuMDVBLjU5OS41OTkgMCAwIDAgMyAxLjYwMnYxMi43OTNhLjYwMi42MDIgMCAxIDAgMS4yMDQgMHYtNGw4LjQ3NS00LjQ3YS42MDEuNjAxIDAgMCAwLS4wNDYtMS4wODZaIi8+PC9zdmc+"}}]); +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[33],{51204:function(se,A,e){e.d(A,{Z:function(){return V}});var Y=e(58757),x=e(59504),S=e(53357),Z={wrapper:"wrapper___FtwXk"},u=e(35667),o=function(P){var i=(0,S.bU)(),s=i.localeText,h=P.categoryId,t=P.categories,f=P.onCategoryChange;return(0,u.jsxs)("div",{className:Z.wrapper,children:[s("dataset.detail.category"),":",(0,u.jsx)(x.Z,{showSearch:!0,style:{width:"160px",marginLeft:"10px"},dropdownMatchSelectWidth:!1,placeholder:"Select a category",optionFilterProp:"children",value:h,onChange:f,filterOption:function(E,g){return g.children.toLowerCase().includes(E.toLowerCase())},getPopupContainer:function(){return document.getElementById("filterWrap")},children:t.map(function(v){return(0,u.jsx)(x.Z.Option,{value:v.id,children:v.name},v.id)})})]})},V=o},85205:function(se,A,e){e.d(A,{Z:function(){return t}});var Y=e(58757),x=e(10852),S=e(38904),Z=e(57414),u={dropBtn:"dropBtn___SYvIY",displayPanel:"displayPanel___JkzSB",objectTypeOption:"objectTypeOption___O6sJL",typeTitle:"typeTitle___l97pr",displayOptions:"displayOptions___NQVYA"},o=e(87615),V=e(87608),W=e.n(V),P=e(53357),i=e(76180),s=e(35667),h=function(v){var E=(0,P.bU)(),g=E.localeText,J=v.annotationTypes,B=v.disableChangeType,R=v.displayAnnotationType,m=v.displayOptions,$=v.displayOptionsValue,K=v.onDisplayAnnotationTypeChange,N=v.onDisplayOptionsChange;return(0,s.jsx)(o.Z,{className:u.dropBtn,customOverlay:(0,s.jsxs)("div",{className:W()(u.displayPanel),children:[J.length>0&&(0,s.jsxs)("div",{className:u.objectTypeOption,children:[(0,s.jsxs)("span",{className:u.typeTitle,children:[g("dataset.detail.displayType"),":"]}),(0,s.jsx)(x.ZP.Group,{disabled:B,onChange:function(Q){return K(Q.target.value)},value:R,children:J.map(function(D){return(0,s.jsx)(x.ZP,{value:D,children:D},D)})})]}),(0,s.jsx)(S.Z.Group,{className:u.displayOptions,onChange:N,value:$,children:(0,s.jsx)(Z.Z,{direction:"vertical",children:m.map(function(D){return(0,s.jsx)(S.Z,{value:D,children:g(i.Ss[D])},D)})})})]}),children:g("dataset.detail.displayOptions")})},t=h},87615:function(se,A,e){e.d(A,{Z:function(){return h}});var Y=e(58757),x=e(38904),S=e(10852),Z=e(73267),u=e(57414),o=e(12562),V=e(10130),W=e(53357),P={dropdownSelector:"dropdownSelector___gvMFq",dropdownWrap:"dropdownWrap___WWYlz",dropdownBox:"dropdownBox___lpUVf"},i=e(35667),s=function(f){var v=f.data,E=f.multiple,g=f.type,J=g===void 0?"primary":g,B=f.ghost,R=B===void 0?!0:B,m=f.value,$=f.filterOptionValue,K=f.filterOptionName,N=f.onChange,D=f.className,Q=f.children,q=f.customOverlay,F=E?x.Z:S.ZP,a=function(b){N&&N(E?b:b.target.value)};return(0,i.jsx)(Z.Z,{overlayClassName:P.dropdownSelector,trigger:["click"],dropdownRender:function(){return(0,i.jsx)("div",{className:P.dropdownWrap,children:q||(0,i.jsx)(F.Group,{className:P.dropdownBox,onChange:a,value:m,children:(0,i.jsx)(u.Z,{direction:"vertical",children:v==null?void 0:v.map(function(b,_){var oe=$?$(b):b,ne=K?K(b):b;return(0,i.jsx)(F,{value:oe,children:(0,W._w)(ne)},_)})})})})},children:(0,i.jsxs)(o.ZP,{className:D,type:J,ghost:R,children:[Q,(0,i.jsx)(V.Z,{})]})})},h=s},77589:function(se,A,e){e.d(A,{Z:function(){return v}});var Y=e(58757),x=e(38904),S=e(57414),Z=e(94706),u=e(10852),o={labelsPanel:"labelsPanel___nCoUr",labels:"labels___f2KO4",labelTitle:"labelTitle___C12Si",optionRow:"optionRow___X46cn",checkbox:"checkbox___Z6wLJ",slider:"slider___GUIhq",lineStyle:"lineStyle___Kmd9H",actionBtns:"actionBtns___JfDVN",modes:"modes___HaJVD"},V=e(87615),W=e(87608),P=e.n(W),i=e(76180),s=e(74595),h=e(53357),t=e(35667),f=function(g){var J=(0,h.bU)(),B=J.localeText,R=g.showMatting,m=g.showKeyPoints,$=g.isTiledDiff,K=g.labels,N=g.selectedLabelIds,D=g.diffMode,Q=g.disableChangeDiffMode,q=g.onLabelsChange,F=g.onLabelConfidenceChange,a=g.onLabelsDiffModeChange;return(0,t.jsx)(V.Z,{customOverlay:(0,t.jsxs)("div",{className:P()(o.labelsPanel),id:"labelsPanel",children:[(0,t.jsxs)("div",{className:o.labels,children:[(0,t.jsxs)("div",{className:o.labelTitle,children:[(0,t.jsx)("div",{style:{width:"240px",paddingLeft:"24px"},children:B("dataset.detail.labelSetsName")}),!R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{style:{width:"132px"},children:B("dataset.detail.confidence")}),(0,t.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:B("dataset.detail.style")})]})]}),(0,t.jsx)(x.Z.Group,{onChange:q,value:N,className:o.options,children:(0,t.jsx)(S.Z,{direction:"vertical",children:K.map(function(C,b){var _=(0,s.iE)(C.id,N,$),oe=_.strokeDash,ne=_.lineWidth,he=_.colorAplha;return(0,t.jsxs)("div",{className:o.optionRow,children:[(0,t.jsx)(x.Z,{value:C.id,className:o.checkbox,disabled:!N.includes(C.id)&&N.length>=i.JQ.length,children:C.name}),!R&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(Z.Z,{tooltip:{open:!0,prefixCls:"slider-tooltip",getPopupContainer:function(){return document.getElementById("labelsPanel")}},className:o.slider,range:!0,min:0,max:1,value:C.confidenceRange,step:.01,onChange:function(ye){return F(b,ye)},disabled:C.source!==i.$j.pred}),(0,t.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:N.includes(C.id)&&(0,t.jsxs)("svg",{className:o.lineStyle,children:[(0,t.jsx)("line",{x1:5,y1:5,x2:70,y2:5,strokeDasharray:oe.join(","),strokeWidth:"".concat(ne,"pt")}),m&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("circle",{cx:5,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(he,")")}),(0,t.jsx)("circle",{cx:70,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(he,")")})]})]})})]})]},C.id)})})})]}),!R&&!Q&&(0,t.jsx)("div",{className:o.modes,children:(0,t.jsx)(u.ZP.Group,{onChange:function(b){return a(b.target.value)},value:D,children:i.Wp.map(function(C){return(0,t.jsx)(u.ZP,{value:C,children:B(C)},C)})})})]}),children:B("dataset.detail.labelSets")})},v=f},10666:function(se,A,e){e.r(A),e.d(A,{default:function(){return Ve}});var Y=e(24454),x=e.n(Y),S=e(56592),Z=e.n(S),u=e(58757),o=e(97375),V=e(9457),W=e(61845),P=e(37617),i=e(79233),s=e(6233),h=e.n(s),t=e(12562),f=e(92183),v=e(60698),E={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M956 686.5l-.1-.1-.1-.1C911.7 593 843.4 545 752.5 545s-159.2 48.1-203.4 141.3v.1a42.92 42.92 0 000 36.4C593.3 816 661.6 864 752.5 864s159.2-48.1 203.4-141.3c5.4-11.5 5.4-24.8.1-36.2zM752.5 800c-62.1 0-107.4-30-141.1-95.5C645 639 690.4 609 752.5 609c62.1 0 107.4 30 141.1 95.5C860 770 814.6 800 752.5 800z"}},{tag:"path",attrs:{d:"M697 705a56 56 0 10112 0 56 56 0 10-112 0zM136 232h704v253h72V192c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h352v-72H136V232z"}},{tag:"path",attrs:{d:"M724.9 338.1l-36.8-36.8a8.03 8.03 0 00-11.3 0L493 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L251.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.2-3.1 3.2-8.2 0-11.3z"}}]},name:"fund-view",theme:"outlined"},g=E,J=e(17202),B=function(p,d){return u.createElement(J.Z,(0,v.Z)({},p,{ref:d,icon:g}))},R=u.forwardRef(B),m=e(76180),$=e(23707),K=e(51204),N=e(77589),D=e(85205),Q=e(2258),q=e(53357),F={fixMenu:"fixMenu___sFkoc",filter:"filter___YLCNA",rightFilters:"rightFilters___ciVMw",backBtn:"backBtn___czLrv",dropBtn:"dropBtn___dmpsD"},a=e(35667),C=function(){var p=(0,q.bU)(),d=p.localeText,O=(0,o.useModel)("dataset.common",function(n){return{isTiledDiff:n.isTiledDiff,cloumnCount:n.pageState.cloumnCount,filters:n.pageData.filters,filterValues:n.pageState.filterValues,comparisons:n.pageState.comparisons}}),r=O.filters,M=O.filterValues,c=O.comparisons,L=O.isTiledDiff,H=O.cloumnCount,T=(0,o.useModel)("dataset.filters"),j=T.onCategoryChange,k=T.onDisplayOptionsChange,z=T.onDisplayAnnotationTypeChange,te=T.onLabelsChange,w=T.onLabelConfidenceChange,re=T.onLabelsDiffModeChange,de=T.onColumnCountChange,G=(0,o.useModel)("dataset.comparisons"),ce=G.openAnalysisModal,ee=r.labels,ue=M.selectedLabelIds,pe=M.displayAnnotationType===m.JJ.Matting,le=M.displayAnnotationType===m.JJ.KeyPoints;return(0,a.jsxs)("div",{className:F.fixMenu,id:"filterWrap",children:[(0,a.jsxs)("div",{className:F.filter,children:[(0,a.jsx)(t.ZP,{icon:(0,a.jsx)(f.Z,{}),type:"text",className:F.backBtn,onClick:function(){return(0,$.yS)("/dataset")}}),(0,a.jsx)(K.Z,{categoryId:M.categoryId,categories:r.categories,onCategoryChange:j})]}),(0,a.jsxs)("div",{className:F.rightFilters,children:[c?null:(0,a.jsx)(N.Z,{showMatting:pe,showKeyPoints:le,isTiledDiff:L,labels:ee,selectedLabelIds:ue,diffMode:M.diffMode,onLabelsChange:te,onLabelConfidenceChange:w,onLabelsDiffModeChange:re}),(0,a.jsx)(D.Z,{annotationTypes:r.annotationTypes,disableChangeType:!!c,displayAnnotationType:M.displayAnnotationType,displayOptions:r.displayOptions,displayOptionsValue:M.displayOptions,onDisplayAnnotationTypeChange:z,onDisplayOptionsChange:k}),c?null:(0,a.jsxs)(t.ZP,{className:F.dropBtn,type:"primary",onClick:ce,children:[(0,a.jsx)(R,{}),d("dataset.detail.analysis")]}),!L&&(0,a.jsx)(Q.ii,{cloumnCount:H,onColumnCountChange:de})]})]})},b=C,_=e(88205),oe=e.n(_),ne=e(84045),he=e(62109),me=e(59504),ye=e(10852),ie=e(38904),Se=e(94706),Me=e(87615),y={tools:"tools___Ug3Ea",title:"title____AI54",optionsTitle:"optionsTitle___sroju",vsText:"vsText___dPKn_",vs:"vs___zpup3",splitLine:"splitLine___SWsIk",splitLineLeft:"splitLineLeft___gVvN2",toolsBar:"toolsBar___SS4ub",text:"text___TLeEl",selector:"selector___rNXkx",scoreSlider:"scoreSlider___Dmu_I",slider:"slider___TbBwi",displayBar:"displayBar___iGMj2",anlysisModal:"anlysisModal___IPNpO"},Le=e(41260),Ne=function(){var p,d,O=(0,q.bU)(),r=O.localeText,M=(0,o.useModel)("dataset.common",function(n){return{comparisons:n.pageState.comparisons,labels:n.pageData.filters.labels}}),c=M.comparisons,L=M.labels,H=(0,u.useState)(void 0),T=oe()(H,2),j=T[0],k=T[1],z=(0,o.useModel)("dataset.comparisons"),te=z.showAnalysisModal,w=z.closeAnalysisModal,re=z.compareLabelSet,de=z.exitComparisons,G=z.onFilterComparisonsPrecision,ce=L.length>0&&L.find(function(n){return n.source===m.$j.gt})&&L.find(function(n){var l;return((l=n.comparePrecisions)===null||l===void 0?void 0:l.length)>0}),ee=L.find(function(n){return n.source===m.$j.gt}),ue=L.filter(function(n){var l;return((l=n.comparePrecisions)===null||l===void 0?void 0:l.length)>0}).map(function(n){return{value:n.id,label:n.name}}),pe=function(l){k(l)},le=function(){if(!ce){ne.ZP.warning(r("dataset.toAnalysis.unSupportWarn"));return}var l=L.find(function(Ce){return Ce.id===j});if(!j||!l){ne.ZP.warning(r("dataset.toAnalysis.unSelectWarn"));return}w(),re(l)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(he.Z,{title:r("dataset.detail.analModal.title"),footer:[(0,a.jsx)(t.ZP,{type:"primary",onClick:le,children:r("dataset.detail.analModal.btn")},"analysis")],open:te,onCancel:w,children:(0,a.jsxs)("div",{className:y.anlysisModal,children:[(0,a.jsx)("div",{children:ee==null?void 0:ee.name}),(0,a.jsx)("div",{className:y.vs,children:"vs"}),(0,a.jsx)(me.Z,{placeholder:r("dataset.detail.analModal.select"),style:{width:240},onChange:pe,options:ue,value:j})]})}),c&&(0,a.jsxs)("div",{className:y.tools,children:[(0,a.jsxs)("div",{className:y.toolsBar,children:[(0,a.jsxs)("div",{className:y.selector,children:[(0,a.jsxs)("div",{className:y.title,children:[r("dataset.detail.analModal.sort")," :"]}),(0,a.jsx)(Me.Z,{data:m.J1,value:c.orderBy,filterOptionName:function(l){return l.name},filterOptionValue:function(l){return l.value},onChange:function(l){return G("orderBy",l)},ghost:!1,type:"default",children:(p=m.J1.find(function(n){return n.value===c.orderBy}))===null||p===void 0?void 0:p.name}),(0,a.jsx)("span",{className:y.text,children:"with Confidence Precision"}),(0,a.jsxs)(Me.Z,{data:c.label.comparePrecisions,value:c.precision,filterOptionName:function(l){return"".concat(l.precision," (Threshold: ").concat((0,Le.O)(l.threshold),")")},filterOptionValue:function(l){return l.precision},onChange:function(l){return G("precision",l)},ghost:!1,type:"default",children:[c.precision," (Threshold: ".concat((0,Le.O)(((d=c.label.comparePrecisions.find(function(n){return n.precision===c.precision}))===null||d===void 0?void 0:d.threshold)||0),")")]})]}),(0,a.jsxs)("div",{children:[(0,a.jsxs)("span",{className:y.vsText,children:["GroundTruch ",(0,a.jsx)("span",{className:y.vs,children:"VS"})," ",c==null?void 0:c.label.name]}),(0,a.jsx)(t.ZP,{onClick:de,children:r("dataset.detail.analModal.exit")})]})]}),(0,a.jsxs)("div",{className:y.displayBar,children:[(0,a.jsxs)("div",{className:y.title,children:[r("dataset.detail.analModal.display")," :"]}),(0,a.jsx)(ye.ZP.Group,{options:m.Wp.map(function(n){return{label:"".concat(r(n)).concat(r("dataset.detail.analModal.diff")),value:n}}),onChange:function(l){return G("diffMode",l.target.value)},value:c.diffMode,optionType:"button"}),(0,a.jsx)("div",{className:y.splitLine}),(0,a.jsxs)(ie.Z.Group,{value:c.displays,onChange:function(l){return G("displays",l)},children:[(0,a.jsx)("span",{className:y.optionsTitle,children:"GroundTruth :"}),(0,a.jsx)(ie.Z,{value:m.$j.gt,children:"Matched"}),(0,a.jsx)(ie.Z,{value:m.BP.fn,children:"FN"}),(0,a.jsx)("div",{className:y.splitLineLeft}),(0,a.jsx)("span",{className:y.optionsTitle,children:"Prediction :"}),(0,a.jsx)(ie.Z,{value:m.$j.pred,children:"Matched"}),(0,a.jsx)(ie.Z,{value:m.BP.fp,children:"FP"})]}),(0,a.jsx)("div",{className:y.splitLineLeft}),(0,a.jsxs)("div",{className:y.scoreSlider,children:["Confidence threshold:",(0,a.jsx)(Se.Z,{className:y.slider,min:0,max:1,value:c.score,step:.01,onChange:function(l){return G("score",l)}})]})]})]})]})},be=Ne,Oe=e(74595),xe={toolsBar:"toolsBar___YbUXd",name:"name___QVqrS",vs:"vs___xuWpM"},Ie=function(p){var d=p.itemWidth,O=(0,o.useModel)("dataset.common",function(j){return{selectedLabelIds:j.pageState.filterValues.selectedLabelIds,displayAnnotationType:j.pageState.filterValues.displayAnnotationType,labels:j.pageData.filters.labels,comparisons:j.pageState.comparisons,isTiledDiff:j.isTiledDiff}}),r=O.comparisons,M=O.isTiledDiff,c=O.labels,L=O.selectedLabelIds,H=O.displayAnnotationType;if(r||L.length<=1)return null;var T=(0,Oe.WR)(c,L,H);return(0,a.jsx)("div",{className:xe.toolsBar,children:T.map(function(j,k){return(0,a.jsxs)(u.Fragment,{children:[!M&&k>0&&(0,a.jsx)("span",{className:xe.vs,children:"VS"}),(0,a.jsx)("span",{className:xe.name,style:{width:M&&k+1!==T.length?d:"auto"},children:j.name})]},j.id)})})},Ae=Ie,Te=e(14122),Ze=e(4394),X={page:"page___O9xsN",container:"container___rArHW",item:"item___aq9kP",itemImgWrap:"itemImgWrap___IaXgL",flagIcon:"flagIcon___Cm6rw",label:"label___spqGh",itemSelectedMask:"itemSelectedMask___CHtC_",pagination:"pagination___VE_pg",editor:"editor___Nl4nr",pageSpin:"pageSpin___zzy9v"},Be=function(){var p=(0,o.useModel)("dataset.common"),d=p.pageState,O=p.onInitPageState,r=p.pageData,M=p.loading,c=p.displayLabelIds,L=p.isTiledDiff,H=p.displayOptionsResult,T=p.onPageContentLoaded,j=p.onPreviewIndexChange,k=p.exitPreview,z=p.displayObjectsFilter,te=p.getCustomObjectStyles,w=(0,o.useModel)("Dataset.model"),re=w.onPageDidMount,de=w.onPageWillUnmount,G=w.clickItem,ce=w.doubleClickItem,ee=w.onPageChange,ue=w.onPageSizeChange,pe=(0,o.useModel)("global"),le=pe.layoutInnerWidth,n=d.cloumnCount,l=d.isSingleAnnotation,Ce=d.filterValues,je=d.flagTools;(0,V._)({onPageDidMount:re,onPageWillUnmount:de,onInitPageState:O,pageState:d});var Pe=le?le-80:0,ve=(0,u.useMemo)(function(){return L?(0,Oe.JC)(r.imgList,c,Ce.displayAnnotationType):r.imgList},[L,r.imgList,c]),De=L?ve.length/(r.imgList.length||1):n,ae=Pe?(Pe-16*(De-1))/(De||1):0;return(0,a.jsxs)(W._z,{ghost:!0,className:X.page,pageHeaderRender:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(b,{}),(0,a.jsx)(be,{}),(0,a.jsx)(Ae,{itemWidth:ae+16})]})},fixedHeader:!0,children:[(0,a.jsx)("div",{className:X.container,children:(0,a.jsx)(P.Z,{loading:M,children:ve.length?(0,a.jsx)(h(),{options:{gutter:16,horizontalOrder:!0,transitionDuration:0},onImagesLoaded:function(){return T()},enableResizableChildren:!0,children:ve.map(function(I,ge){return(0,a.jsxs)("div",{className:X.item,style:{width:ae},onClick:function(){return G(ge)},onDoubleClick:function(){return ce(ge)},children:[(0,a.jsx)("div",{className:X.itemImgWrap,style:{width:ae,height:je?ae*3/4:"auto"},children:(0,a.jsx)(Te.D5,{categories:r.filters.categories,data:I,wrapWidth:ae,wrapHeight:je?ae*3/4:void 0,minHeight:ae*3/4,objectsFilter:z,getCustomObjectStyles:te,displayOptionsResult:H,displayAnnotationType:d.filterValues.displayAnnotationType})}),I.flag>0&&(0,a.jsx)(Ze.r,{fill:m.a5[I.flag],className:X.flagIcon}),H.showImgDesc&&(0,a.jsxs)("div",{className:X.label,children:[" ",I.caption||I.desc," "]}),je&&I.selected?(0,a.jsx)("div",{className:X.itemSelectedMask}):null]},"".concat(I.id,"_").concat(ge))})}):null})}),!M&&(0,a.jsx)(Q.ZJ,{current:d.page,size:d.pageSize,total:r.total,onPageChange:ee,onPageSizeChange:ue}),(0,a.jsx)(Te.j5,{visible:d.previewIndex>=0&&!l,categories:r.filters.categories,list:ve,current:d.previewIndex,onCancel:k,onNext:Z()(x()().mark(function I(){return x()().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:d.previewIndex0&&j(d.previewIndex-1);case 1:case"end":return U.stop()}},I)})),objectsFilter:z,getCustomObjectStyles:te,displayOptionsResult:H,displayAnnotationType:d.filterValues.displayAnnotationType}),r.screenLoading?(0,a.jsx)("div",{className:X.pageSpin,children:(0,a.jsx)(i.Z,{spinning:!0,tip:r.screenLoading})}):null]})},Ve=Be},4394:function(se,A,e){e.d(A,{r:function(){return W}});var Y=e(58757),x=Object.defineProperty,S=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,o=(i,s,h)=>s in i?x(i,s,{enumerable:!0,configurable:!0,writable:!0,value:h}):i[s]=h,V=(i,s)=>{for(var h in s||(s={}))Z.call(s,h)&&o(i,h,s[h]);if(S)for(var h of S(s))u.call(s,h)&&o(i,h,s[h]);return i};const W=i=>Y.createElement("svg",V({viewBox:"0 0 16 16",fill:"#52C41A",xmlns:"http://www.w3.org/2000/svg"},i),Y.createElement("path",{d:"M12.633 4.84 3.838 1.05A.599.599 0 0 0 3 1.602v12.793a.602.602 0 1 0 1.204 0v-4l8.475-4.47a.601.601 0 0 0-.046-1.086Z"}));var P="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9IiM1MkM0MUEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjYzMyA0Ljg0IDMuODM4IDEuMDVBLjU5OS41OTkgMCAwIDAgMyAxLjYwMnYxMi43OTNhLjYwMi42MDIgMCAxIDAgMS4yMDQgMHYtNGw4LjQ3NS00LjQ3YS42MDEuNjAxIDAgMCAwLS4wNDYtMS4wODZaIi8+PC9zdmc+"}}]); diff --git a/deepdataspace/server/static/p__Lab__FlagTool__index.036a40dd.async.js b/deepdataspace/server/static/p__Lab__FlagTool__index.8182d4fa.async.js similarity index 74% rename from deepdataspace/server/static/p__Lab__FlagTool__index.036a40dd.async.js rename to deepdataspace/server/static/p__Lab__FlagTool__index.8182d4fa.async.js index cc4ffac..ce44aad 100644 --- a/deepdataspace/server/static/p__Lab__FlagTool__index.036a40dd.async.js +++ b/deepdataspace/server/static/p__Lab__FlagTool__index.8182d4fa.async.js @@ -1 +1 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[397],{51204:function(_,D,e){e.d(D,{Z:function(){return I}});var V=e(58757),p=e(59504),j=e(53357),M={wrapper:"wrapper___FtwXk"},g=e(35667),i=function(y){var o=(0,j.bU)(),t=o.localeText,u=y.categoryId,n=y.categories,v=y.onCategoryChange;return(0,g.jsxs)("div",{className:M.wrapper,children:[t("dataset.detail.category"),":",(0,g.jsx)(p.Z,{showSearch:!0,style:{width:"160px",marginLeft:"10px"},dropdownMatchSelectWidth:!1,placeholder:"Select a category",optionFilterProp:"children",value:u,onChange:v,filterOption:function(w,d){return d.children.toLowerCase().includes(w.toLowerCase())},getPopupContainer:function(){return document.getElementById("filterWrap")},children:n.map(function(l){return(0,g.jsx)(p.Z.Option,{value:l.id,children:l.name},l.id)})})]})},I=i},85205:function(_,D,e){e.d(D,{Z:function(){return n}});var V=e(58757),p=e(10852),j=e(38904),M=e(57414),g={dropBtn:"dropBtn___SYvIY",displayPanel:"displayPanel___JkzSB",objectTypeOption:"objectTypeOption___O6sJL",typeTitle:"typeTitle___l97pr",displayOptions:"displayOptions___NQVYA"},i=e(87615),I=e(87608),N=e.n(I),y=e(53357),o=e(76180),t=e(35667),u=function(l){var w=(0,y.bU)(),d=w.localeText,z=l.annotationTypes,P=l.disableChangeType,Z=l.displayAnnotationType,b=l.displayOptions,a=l.displayOptionsValue,E=l.onDisplayAnnotationTypeChange,O=l.onDisplayOptionsChange;return(0,t.jsx)(i.Z,{className:g.dropBtn,customOverlay:(0,t.jsxs)("div",{className:N()(g.displayPanel),children:[z.length>0&&(0,t.jsxs)("div",{className:g.objectTypeOption,children:[(0,t.jsxs)("span",{className:g.typeTitle,children:[d("dataset.detail.displayType"),":"]}),(0,t.jsx)(p.ZP.Group,{disabled:P,onChange:function(U){return E(U.target.value)},value:Z,children:z.map(function(C){return(0,t.jsx)(p.ZP,{value:C,children:C},C)})})]}),(0,t.jsx)(j.Z.Group,{className:g.displayOptions,onChange:O,value:a,children:(0,t.jsx)(M.Z,{direction:"vertical",children:b.map(function(C){return(0,t.jsx)(j.Z,{value:C,children:d(o.Ss[C])},C)})})})]}),children:d("dataset.detail.displayOptions")})},n=u},87615:function(_,D,e){e.d(D,{Z:function(){return u}});var V=e(58757),p=e(38904),j=e(10852),M=e(73267),g=e(57414),i=e(12562),I=e(10130),N=e(53357),y={dropdownSelector:"dropdownSelector___gvMFq",dropdownWrap:"dropdownWrap___WWYlz",dropdownBox:"dropdownBox___lpUVf"},o=e(35667),t=function(v){var l=v.data,w=v.multiple,d=v.type,z=d===void 0?"primary":d,P=v.ghost,Z=P===void 0?!0:P,b=v.value,a=v.filterOptionValue,E=v.filterOptionName,O=v.onChange,C=v.className,U=v.children,Q=v.customOverlay,X=w?p.Z:j.ZP,ee=function(S){O&&O(w?S:S.target.value)};return(0,o.jsx)(M.Z,{overlayClassName:y.dropdownSelector,trigger:["click"],dropdownRender:function(){return(0,o.jsx)("div",{className:y.dropdownWrap,children:Q||(0,o.jsx)(X.Group,{className:y.dropdownBox,onChange:ee,value:b,children:(0,o.jsx)(g.Z,{direction:"vertical",children:l==null?void 0:l.map(function(S,Y){var $=a?a(S):S,A=E?E(S):S;return(0,o.jsx)(X,{value:$,children:(0,N._w)(A)},Y)})})})})},children:(0,o.jsxs)(i.ZP,{className:C,type:z,ghost:Z,children:[U,(0,o.jsx)(I.Z,{})]})})},u=t},77589:function(_,D,e){e.d(D,{Z:function(){return l}});var V=e(58757),p=e(38904),j=e(57414),M=e(94706),g=e(10852),i={labelsPanel:"labelsPanel___nCoUr",labels:"labels___f2KO4",labelTitle:"labelTitle___C12Si",optionRow:"optionRow___X46cn",checkbox:"checkbox___Z6wLJ",slider:"slider___GUIhq",lineStyle:"lineStyle___Kmd9H",actionBtns:"actionBtns___JfDVN",modes:"modes___HaJVD"},I=e(87615),N=e(87608),y=e.n(N),o=e(76180),t=e(74595),u=e(53357),n=e(35667),v=function(d){var z=(0,u.bU)(),P=z.localeText,Z=d.showMatting,b=d.showKeyPoints,a=d.isTiledDiff,E=d.labels,O=d.selectedLabelIds,C=d.diffMode,U=d.disableChangeDiffMode,Q=d.onLabelsChange,X=d.onLabelConfidenceChange,ee=d.onLabelsDiffModeChange;return(0,n.jsx)(I.Z,{customOverlay:(0,n.jsxs)("div",{className:y()(i.labelsPanel),id:"labelsPanel",children:[(0,n.jsxs)("div",{className:i.labels,children:[(0,n.jsxs)("div",{className:i.labelTitle,children:[(0,n.jsx)("div",{style:{width:"240px",paddingLeft:"24px"},children:P("dataset.detail.labelSetsName")}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{width:"132px"},children:P("dataset.detail.confidence")}),(0,n.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:P("dataset.detail.style")})]})]}),(0,n.jsx)(p.Z.Group,{onChange:Q,value:O,className:i.options,children:(0,n.jsx)(j.Z,{direction:"vertical",children:E.map(function(f,S){var Y=(0,t.iE)(f.id,O,a),$=Y.strokeDash,A=Y.lineWidth,B=Y.colorAplha;return(0,n.jsxs)("div",{className:i.optionRow,children:[(0,n.jsx)(p.Z,{value:f.id,className:i.checkbox,disabled:!O.includes(f.id)&&O.length>=o.JQ.length,children:f.name}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(M.Z,{tooltip:{open:!0,prefixCls:"slider-tooltip",getPopupContainer:function(){return document.getElementById("labelsPanel")}},className:i.slider,range:!0,min:0,max:1,value:f.confidenceRange,step:.01,onChange:function(ie){return X(S,ie)},disabled:f.source!==o.$j.pred}),(0,n.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:O.includes(f.id)&&(0,n.jsxs)("svg",{className:i.lineStyle,children:[(0,n.jsx)("line",{x1:5,y1:5,x2:70,y2:5,strokeDasharray:$.join(","),strokeWidth:"".concat(A,"pt")}),b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:5,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(B,")")}),(0,n.jsx)("circle",{cx:70,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(B,")")})]})]})})]})]},f.id)})})})]}),!Z&&!U&&(0,n.jsx)("div",{className:i.modes,children:(0,n.jsx)(g.ZP.Group,{onChange:function(S){return ee(S.target.value)},value:C,children:o.Wp.map(function(f){return(0,n.jsx)(g.ZP,{value:f,children:P(f)},f)})})})]}),children:P("dataset.detail.labelSets")})},l=v},14481:function(_,D,e){e.r(D),e.d(D,{default:function(){return je}});var V=e(24454),p=e.n(V),j=e(56592),M=e.n(j),g=e(58757),i=e(97375),I=e(9457),N=e(61845),y=e(37617),o=e(79233),t=e(6233),u=e.n(t),n=e(12562),v=e(92183),l=e(76180),w=e(23707),d=e(51204),z=e(77589),P=e(85205),Z=e(2258),b={fixMenu:"fixMenu___3BTI4",filter:"filter___f53Ll",rightFilters:"rightFilters___PcqUj",backBtn:"backBtn___zqjXV",dropBtn:"dropBtn___f3XQO"},a=e(35667),E=function(){var r=(0,i.useModel)("dataset.common",function(J){return{isTiledDiff:J.isTiledDiff,cloumnCount:J.pageState.cloumnCount,filters:J.pageData.filters,filterValues:J.pageState.filterValues,comparisons:J.pageState.comparisons}}),s=r.filters,h=r.filterValues,x=r.comparisons,G=r.isTiledDiff,F=r.cloumnCount,T=(0,i.useModel)("dataset.filters"),K=T.onCategoryChange,ae=T.onDisplayOptionsChange,k=T.onDisplayAnnotationTypeChange,ne=T.onLabelsChange,c=T.onLabelConfidenceChange,m=T.onLabelsDiffModeChange,H=T.onColumnCountChange,de=s.labels,ce=h.selectedLabelIds,ge=h.displayAnnotationType===l.JJ.Matting,ue=h.displayAnnotationType===l.JJ.KeyPoints;return(0,a.jsxs)("div",{className:b.fixMenu,id:"filterWrap",children:[(0,a.jsxs)("div",{className:b.filter,children:[(0,a.jsx)(n.ZP,{icon:(0,a.jsx)(v.Z,{}),type:"text",className:b.backBtn,onClick:function(){return(0,w.yS)("/dataset")}}),(0,a.jsx)(d.Z,{categoryId:h.categoryId,categories:s.categories,onCategoryChange:K})]}),(0,a.jsxs)("div",{className:b.rightFilters,children:[(0,a.jsx)(z.Z,{showMatting:ge,showKeyPoints:ue,isTiledDiff:G,labels:de,selectedLabelIds:ce,diffMode:l.uP.Overlay,disableChangeDiffMode:!0,onLabelsChange:ne,onLabelConfidenceChange:c,onLabelsDiffModeChange:m}),(0,a.jsx)(P.Z,{annotationTypes:s.annotationTypes,disableChangeType:!!x,displayAnnotationType:h.displayAnnotationType,displayOptions:s.displayOptions,displayOptionsValue:h.displayOptions,onDisplayAnnotationTypeChange:k,onDisplayOptionsChange:ae}),!G&&(0,a.jsx)(Z.ii,{cloumnCount:F,onColumnCountChange:H})]})]})},O=E,C=e(38904),U=e(74820),Q=e(60698),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},ee=X,f=e(17202),S=function(r,s){return g.createElement(f.Z,(0,Q.Z)({},r,{ref:s,icon:ee}))},Y=g.forwardRef(S),$=e(4394),A=e(53357),B={toolsBar:"toolsBar___BaJ18",selector:"selector___oykI4",antiBtn:"antiBtn___BMNv_",flagTip:"flagTip___jQeUr",flag:"flag___AuDg7",flagBtn:"flagBtn___kI5rw",rightContent:"rightContent___J7I4T",lineSplit:"lineSplit___cRXnA"},se=e(87615),ie=function(){var r,s=(0,i.useModel)("dataset.common",function(c){var m;return{pageSize:c.pageState.pageSize,flagStatus:(m=c.pageState.flagTools)===null||m===void 0?void 0:m.flagStatus,flagTools:c.pageState.flagTools&&c.pageData.flagTools}}),h=s.flagTools,x=s.flagStatus,G=s.pageSize,F=(0,i.useModel)("dataset.flag"),T=F.onChangeFlagStatus,K=F.changeSelectAll,ae=F.antiSelect,k=F.saveFlag,ne=F.updateOrder;return h?(0,a.jsxs)("div",{className:B.toolsBar,children:[(0,a.jsxs)("div",{className:B.selector,children:[(0,a.jsx)(C.Z,{indeterminate:h.count>0&&h.count!==G,checked:(h==null?void 0:h.count)===G,onChange:K,children:h.count===0?(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectAll"}):(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectSome",values:{num:h.count}})}),(0,a.jsx)(n.ZP,{onClick:function(){return ae()},className:B.antiBtn,children:(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectInvert"})}),(0,a.jsxs)(se.Z,{data:l.j3,value:x,filterOptionName:function(m){return m.name},filterOptionValue:function(m){return m.value},onChange:function(m){return T(m)},ghost:!1,type:"default",className:B.antiBtn,children:[(0,a.jsx)(A.Og,{id:"lab.toolsBar.filter"})," :"," ",(r=l.j3.find(function(c){return c.value===x}))===null||r===void 0?void 0:r.name]}),(0,a.jsxs)("div",{className:B.flagTip,children:[(0,a.jsx)(A.Og,{id:"lab.toolsBar.saveAs"}),"\uFF1A"]}),l.YC.map(function(c){return(0,a.jsx)(U.Z,{placement:"bottom",title:c.tip,children:(0,a.jsx)(n.ZP,{ghost:!0,onClick:function(){return k(c.value)},className:B.flagBtn,style:{borderColor:l.a5[c.value],opacity:h.count<=0?.5:1},icon:(0,a.jsx)($.r,{fill:l.a5[c.value]})})},c.value)})]}),(0,a.jsx)("div",{className:B.rightContent,children:(0,a.jsxs)(n.ZP,{onClick:ne,children:[(0,a.jsx)(Y,{}),(0,a.jsx)(A.Og,{id:"lab.toolsBar.updateOrder"})]})})]}):null},me=ie,he=e(14122),ye=e(74595),R={page:"page___gO_hp",container:"container___ZoYU1",item:"item___gLaMX",itemImgWrap:"itemImgWrap___I92CG",flagIcon:"flagIcon___snhaL",label:"label___m8WJS",itemSelectedMask:"itemSelectedMask___oYwMk",pagination:"pagination___Z13Xp",editor:"editor___ZxT8b",pageSpin:"pageSpin___kIm_a"},Ce=e(95073),xe=function(){var r=(0,i.useModel)("dataset.common"),s=r.pageState,h=r.onInitPageState,x=r.pageData,G=r.loading,F=r.displayLabelIds,T=r.isTiledDiff,K=r.displayOptionsResult,ae=r.onPageContentLoaded,k=r.onPreviewIndexChange,ne=r.exitPreview,c=r.displayObjectsFilter,m=r.getCustomObjectStyles,H=(0,i.useModel)("Lab.FlagTool.model"),de=H.onPageDidMount,ce=H.onPageWillUnmount,ge=H.clickItem,ue=H.doubleClickItem,J=H.onPageChange,Oe=H.onPageSizeChange,Se=s.cloumnCount,Te=s.isSingleAnnotation,De=s.filterValues,ve=s.flagTools;(0,I._)({onPageDidMount:de,onPageWillUnmount:ce,onInitPageState:h,pageState:s});var oe=(0,Ce.Z)(function(){return document.querySelector(".ant-pro-page-container")}),pe=oe!=null&&oe.width?oe.width-80:0,te=(0,g.useMemo)(function(){return T?(0,ye.JC)(x.imgList,F,De.displayAnnotationType):x.imgList},[T,x.imgList,F]),fe=T?te.length/(x.imgList.length||1):Se,q=pe?(pe-16*(fe-1))/(fe||1):0;return(0,a.jsxs)(N._z,{ghost:!0,className:R.page,pageHeaderRender:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O,{}),(0,a.jsx)(me,{})]})},fixedHeader:!0,children:[(0,a.jsx)("div",{className:R.container,children:(0,a.jsx)(y.Z,{loading:G,children:te.length?(0,a.jsx)(u(),{options:{gutter:16,horizontalOrder:!0,transitionDuration:0},onImagesLoaded:function(){return ae()},children:te.map(function(L,le){return(0,a.jsxs)("div",{className:R.item,style:{width:q},onClick:function(){return ge(le)},onDoubleClick:function(){return ue(le)},children:[(0,a.jsx)("div",{className:R.itemImgWrap,style:{width:q,height:ve?q*3/4:"auto"},children:(0,a.jsx)(he.D5,{categories:x.filters.categories,data:L,wrapWidth:q,wrapHeight:ve?q*3/4:void 0,minHeight:q*3/4,objectsFilter:c,getCustomObjectStyles:m,displayOptionsResult:K,displayAnnotationType:s.filterValues.displayAnnotationType})}),L.flag>0&&(0,a.jsx)($.r,{fill:l.a5[L.flag],className:R.flagIcon}),K.showImgDesc&&(0,a.jsxs)("div",{className:R.label,children:[" ",L.desc," "]}),ve&&L.selected?(0,a.jsx)("div",{className:R.itemSelectedMask}):null]},"".concat(L.id,"_").concat(le))})}):null})}),!G&&(0,a.jsx)(Z.ZJ,{current:s.page,size:s.pageSize,total:x.total,onPageChange:J,onPageSizeChange:Oe}),(0,a.jsx)(he.j5,{visible:s.previewIndex>=0&&!Te,categories:x.filters.categories,list:te,current:s.previewIndex,onCancel:ne,onNext:M()(p()().mark(function L(){return p()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:s.previewIndex0&&k(s.previewIndex-1);case 1:case"end":return W.stop()}},L)})),objectsFilter:c,getCustomObjectStyles:m,displayOptionsResult:K,displayAnnotationType:s.filterValues.displayAnnotationType}),x.screenLoading?(0,a.jsx)("div",{className:R.pageSpin,children:(0,a.jsx)(o.Z,{spinning:!0,tip:x.screenLoading})}):null]})},je=xe},4394:function(_,D,e){e.d(D,{r:function(){return N}});var V=e(58757),p=Object.defineProperty,j=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,i=(o,t,u)=>t in o?p(o,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):o[t]=u,I=(o,t)=>{for(var u in t||(t={}))M.call(t,u)&&i(o,u,t[u]);if(j)for(var u of j(t))g.call(t,u)&&i(o,u,t[u]);return o};const N=o=>V.createElement("svg",I({viewBox:"0 0 16 16",fill:"#52C41A",xmlns:"http://www.w3.org/2000/svg"},o),V.createElement("path",{d:"M12.633 4.84 3.838 1.05A.599.599 0 0 0 3 1.602v12.793a.602.602 0 1 0 1.204 0v-4l8.475-4.47a.601.601 0 0 0-.046-1.086Z"}));var y="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9IiM1MkM0MUEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjYzMyA0Ljg0IDMuODM4IDEuMDVBLjU5OS41OTkgMCAwIDAgMyAxLjYwMnYxMi43OTNhLjYwMi42MDIgMCAxIDAgMS4yMDQgMHYtNGw4LjQ3NS00LjQ3YS42MDEuNjAxIDAgMCAwLS4wNDYtMS4wODZaIi8+PC9zdmc+"}}]); +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[397],{51204:function(_,M,e){e.d(M,{Z:function(){return I}});var V=e(58757),p=e(59504),j=e(53357),P={wrapper:"wrapper___FtwXk"},g=e(35667),i=function(y){var o=(0,j.bU)(),t=o.localeText,u=y.categoryId,n=y.categories,v=y.onCategoryChange;return(0,g.jsxs)("div",{className:P.wrapper,children:[t("dataset.detail.category"),":",(0,g.jsx)(p.Z,{showSearch:!0,style:{width:"160px",marginLeft:"10px"},dropdownMatchSelectWidth:!1,placeholder:"Select a category",optionFilterProp:"children",value:u,onChange:v,filterOption:function(w,d){return d.children.toLowerCase().includes(w.toLowerCase())},getPopupContainer:function(){return document.getElementById("filterWrap")},children:n.map(function(l){return(0,g.jsx)(p.Z.Option,{value:l.id,children:l.name},l.id)})})]})},I=i},85205:function(_,M,e){e.d(M,{Z:function(){return n}});var V=e(58757),p=e(10852),j=e(38904),P=e(57414),g={dropBtn:"dropBtn___SYvIY",displayPanel:"displayPanel___JkzSB",objectTypeOption:"objectTypeOption___O6sJL",typeTitle:"typeTitle___l97pr",displayOptions:"displayOptions___NQVYA"},i=e(87615),I=e(87608),N=e.n(I),y=e(53357),o=e(76180),t=e(35667),u=function(l){var w=(0,y.bU)(),d=w.localeText,z=l.annotationTypes,L=l.disableChangeType,Z=l.displayAnnotationType,b=l.displayOptions,a=l.displayOptionsValue,E=l.onDisplayAnnotationTypeChange,O=l.onDisplayOptionsChange;return(0,t.jsx)(i.Z,{className:g.dropBtn,customOverlay:(0,t.jsxs)("div",{className:N()(g.displayPanel),children:[z.length>0&&(0,t.jsxs)("div",{className:g.objectTypeOption,children:[(0,t.jsxs)("span",{className:g.typeTitle,children:[d("dataset.detail.displayType"),":"]}),(0,t.jsx)(p.ZP.Group,{disabled:L,onChange:function(U){return E(U.target.value)},value:Z,children:z.map(function(C){return(0,t.jsx)(p.ZP,{value:C,children:C},C)})})]}),(0,t.jsx)(j.Z.Group,{className:g.displayOptions,onChange:O,value:a,children:(0,t.jsx)(P.Z,{direction:"vertical",children:b.map(function(C){return(0,t.jsx)(j.Z,{value:C,children:d(o.Ss[C])},C)})})})]}),children:d("dataset.detail.displayOptions")})},n=u},87615:function(_,M,e){e.d(M,{Z:function(){return u}});var V=e(58757),p=e(38904),j=e(10852),P=e(73267),g=e(57414),i=e(12562),I=e(10130),N=e(53357),y={dropdownSelector:"dropdownSelector___gvMFq",dropdownWrap:"dropdownWrap___WWYlz",dropdownBox:"dropdownBox___lpUVf"},o=e(35667),t=function(v){var l=v.data,w=v.multiple,d=v.type,z=d===void 0?"primary":d,L=v.ghost,Z=L===void 0?!0:L,b=v.value,a=v.filterOptionValue,E=v.filterOptionName,O=v.onChange,C=v.className,U=v.children,Q=v.customOverlay,X=w?p.Z:j.ZP,ee=function(S){O&&O(w?S:S.target.value)};return(0,o.jsx)(P.Z,{overlayClassName:y.dropdownSelector,trigger:["click"],dropdownRender:function(){return(0,o.jsx)("div",{className:y.dropdownWrap,children:Q||(0,o.jsx)(X.Group,{className:y.dropdownBox,onChange:ee,value:b,children:(0,o.jsx)(g.Z,{direction:"vertical",children:l==null?void 0:l.map(function(S,Y){var $=a?a(S):S,A=E?E(S):S;return(0,o.jsx)(X,{value:$,children:(0,N._w)(A)},Y)})})})})},children:(0,o.jsxs)(i.ZP,{className:C,type:z,ghost:Z,children:[U,(0,o.jsx)(I.Z,{})]})})},u=t},77589:function(_,M,e){e.d(M,{Z:function(){return l}});var V=e(58757),p=e(38904),j=e(57414),P=e(94706),g=e(10852),i={labelsPanel:"labelsPanel___nCoUr",labels:"labels___f2KO4",labelTitle:"labelTitle___C12Si",optionRow:"optionRow___X46cn",checkbox:"checkbox___Z6wLJ",slider:"slider___GUIhq",lineStyle:"lineStyle___Kmd9H",actionBtns:"actionBtns___JfDVN",modes:"modes___HaJVD"},I=e(87615),N=e(87608),y=e.n(N),o=e(76180),t=e(74595),u=e(53357),n=e(35667),v=function(d){var z=(0,u.bU)(),L=z.localeText,Z=d.showMatting,b=d.showKeyPoints,a=d.isTiledDiff,E=d.labels,O=d.selectedLabelIds,C=d.diffMode,U=d.disableChangeDiffMode,Q=d.onLabelsChange,X=d.onLabelConfidenceChange,ee=d.onLabelsDiffModeChange;return(0,n.jsx)(I.Z,{customOverlay:(0,n.jsxs)("div",{className:y()(i.labelsPanel),id:"labelsPanel",children:[(0,n.jsxs)("div",{className:i.labels,children:[(0,n.jsxs)("div",{className:i.labelTitle,children:[(0,n.jsx)("div",{style:{width:"240px",paddingLeft:"24px"},children:L("dataset.detail.labelSetsName")}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{style:{width:"132px"},children:L("dataset.detail.confidence")}),(0,n.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:L("dataset.detail.style")})]})]}),(0,n.jsx)(p.Z.Group,{onChange:Q,value:O,className:i.options,children:(0,n.jsx)(j.Z,{direction:"vertical",children:E.map(function(f,S){var Y=(0,t.iE)(f.id,O,a),$=Y.strokeDash,A=Y.lineWidth,B=Y.colorAplha;return(0,n.jsxs)("div",{className:i.optionRow,children:[(0,n.jsx)(p.Z,{value:f.id,className:i.checkbox,disabled:!O.includes(f.id)&&O.length>=o.JQ.length,children:f.name}),!Z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(P.Z,{tooltip:{open:!0,prefixCls:"slider-tooltip",getPopupContainer:function(){return document.getElementById("labelsPanel")}},className:i.slider,range:!0,min:0,max:1,value:f.confidenceRange,step:.01,onChange:function(ie){return X(S,ie)},disabled:f.source!==o.$j.pred}),(0,n.jsx)("div",{style:{width:"100px",marginLeft:"40px"},children:O.includes(f.id)&&(0,n.jsxs)("svg",{className:i.lineStyle,children:[(0,n.jsx)("line",{x1:5,y1:5,x2:70,y2:5,strokeDasharray:$.join(","),strokeWidth:"".concat(A,"pt")}),b&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("circle",{cx:5,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(B,")")}),(0,n.jsx)("circle",{cx:70,cy:5,r:3,stroke:"black",strokeWidth:1,fill:"rgba(133, 208, 252, ".concat(B,")")})]})]})})]})]},f.id)})})})]}),!Z&&!U&&(0,n.jsx)("div",{className:i.modes,children:(0,n.jsx)(g.ZP.Group,{onChange:function(S){return ee(S.target.value)},value:C,children:o.Wp.map(function(f){return(0,n.jsx)(g.ZP,{value:f,children:L(f)},f)})})})]}),children:L("dataset.detail.labelSets")})},l=v},14481:function(_,M,e){e.r(M),e.d(M,{default:function(){return je}});var V=e(24454),p=e.n(V),j=e(56592),P=e.n(j),g=e(58757),i=e(97375),I=e(9457),N=e(61845),y=e(37617),o=e(79233),t=e(6233),u=e.n(t),n=e(12562),v=e(92183),l=e(76180),w=e(23707),d=e(51204),z=e(77589),L=e(85205),Z=e(2258),b={fixMenu:"fixMenu___3BTI4",filter:"filter___f53Ll",rightFilters:"rightFilters___PcqUj",backBtn:"backBtn___zqjXV",dropBtn:"dropBtn___f3XQO"},a=e(35667),E=function(){var r=(0,i.useModel)("dataset.common",function(J){return{isTiledDiff:J.isTiledDiff,cloumnCount:J.pageState.cloumnCount,filters:J.pageData.filters,filterValues:J.pageState.filterValues,comparisons:J.pageState.comparisons}}),s=r.filters,h=r.filterValues,x=r.comparisons,G=r.isTiledDiff,F=r.cloumnCount,T=(0,i.useModel)("dataset.filters"),K=T.onCategoryChange,ae=T.onDisplayOptionsChange,k=T.onDisplayAnnotationTypeChange,ne=T.onLabelsChange,c=T.onLabelConfidenceChange,m=T.onLabelsDiffModeChange,H=T.onColumnCountChange,de=s.labels,ce=h.selectedLabelIds,ge=h.displayAnnotationType===l.JJ.Matting,ue=h.displayAnnotationType===l.JJ.KeyPoints;return(0,a.jsxs)("div",{className:b.fixMenu,id:"filterWrap",children:[(0,a.jsxs)("div",{className:b.filter,children:[(0,a.jsx)(n.ZP,{icon:(0,a.jsx)(v.Z,{}),type:"text",className:b.backBtn,onClick:function(){return(0,w.yS)("/dataset")}}),(0,a.jsx)(d.Z,{categoryId:h.categoryId,categories:s.categories,onCategoryChange:K})]}),(0,a.jsxs)("div",{className:b.rightFilters,children:[(0,a.jsx)(z.Z,{showMatting:ge,showKeyPoints:ue,isTiledDiff:G,labels:de,selectedLabelIds:ce,diffMode:l.uP.Overlay,disableChangeDiffMode:!0,onLabelsChange:ne,onLabelConfidenceChange:c,onLabelsDiffModeChange:m}),(0,a.jsx)(L.Z,{annotationTypes:s.annotationTypes,disableChangeType:!!x,displayAnnotationType:h.displayAnnotationType,displayOptions:s.displayOptions,displayOptionsValue:h.displayOptions,onDisplayAnnotationTypeChange:k,onDisplayOptionsChange:ae}),!G&&(0,a.jsx)(Z.ii,{cloumnCount:F,onColumnCountChange:H})]})]})},O=E,C=e(38904),U=e(74820),Q=e(60698),X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},ee=X,f=e(17202),S=function(r,s){return g.createElement(f.Z,(0,Q.Z)({},r,{ref:s,icon:ee}))},Y=g.forwardRef(S),$=e(4394),A=e(53357),B={toolsBar:"toolsBar___BaJ18",selector:"selector___oykI4",antiBtn:"antiBtn___BMNv_",flagTip:"flagTip___jQeUr",flag:"flag___AuDg7",flagBtn:"flagBtn___kI5rw",rightContent:"rightContent___J7I4T",lineSplit:"lineSplit___cRXnA"},se=e(87615),ie=function(){var r,s=(0,i.useModel)("dataset.common",function(c){var m;return{pageSize:c.pageState.pageSize,flagStatus:(m=c.pageState.flagTools)===null||m===void 0?void 0:m.flagStatus,flagTools:c.pageState.flagTools&&c.pageData.flagTools}}),h=s.flagTools,x=s.flagStatus,G=s.pageSize,F=(0,i.useModel)("dataset.flag"),T=F.onChangeFlagStatus,K=F.changeSelectAll,ae=F.antiSelect,k=F.saveFlag,ne=F.updateOrder;return h?(0,a.jsxs)("div",{className:B.toolsBar,children:[(0,a.jsxs)("div",{className:B.selector,children:[(0,a.jsx)(C.Z,{indeterminate:h.count>0&&h.count!==G,checked:(h==null?void 0:h.count)===G,onChange:K,children:h.count===0?(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectAll"}):(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectSome",values:{num:h.count}})}),(0,a.jsx)(n.ZP,{onClick:function(){return ae()},className:B.antiBtn,children:(0,a.jsx)(A.Og,{id:"lab.toolsBar.selectInvert"})}),(0,a.jsxs)(se.Z,{data:l.j3,value:x,filterOptionName:function(m){return m.name},filterOptionValue:function(m){return m.value},onChange:function(m){return T(m)},ghost:!1,type:"default",className:B.antiBtn,children:[(0,a.jsx)(A.Og,{id:"lab.toolsBar.filter"})," :"," ",(r=l.j3.find(function(c){return c.value===x}))===null||r===void 0?void 0:r.name]}),(0,a.jsxs)("div",{className:B.flagTip,children:[(0,a.jsx)(A.Og,{id:"lab.toolsBar.saveAs"}),"\uFF1A"]}),l.YC.map(function(c){return(0,a.jsx)(U.Z,{placement:"bottom",title:c.tip,children:(0,a.jsx)(n.ZP,{ghost:!0,onClick:function(){return k(c.value)},className:B.flagBtn,style:{borderColor:l.a5[c.value],opacity:h.count<=0?.5:1},icon:(0,a.jsx)($.r,{fill:l.a5[c.value]})})},c.value)})]}),(0,a.jsx)("div",{className:B.rightContent,children:(0,a.jsxs)(n.ZP,{onClick:ne,children:[(0,a.jsx)(Y,{}),(0,a.jsx)(A.Og,{id:"lab.toolsBar.updateOrder"})]})})]}):null},me=ie,he=e(14122),ye=e(74595),R={page:"page___gO_hp",container:"container___ZoYU1",item:"item___gLaMX",itemImgWrap:"itemImgWrap___I92CG",flagIcon:"flagIcon___snhaL",label:"label___m8WJS",itemSelectedMask:"itemSelectedMask___oYwMk",pagination:"pagination___Z13Xp",editor:"editor___ZxT8b",pageSpin:"pageSpin___kIm_a"},Ce=e(95073),xe=function(){var r=(0,i.useModel)("dataset.common"),s=r.pageState,h=r.onInitPageState,x=r.pageData,G=r.loading,F=r.displayLabelIds,T=r.isTiledDiff,K=r.displayOptionsResult,ae=r.onPageContentLoaded,k=r.onPreviewIndexChange,ne=r.exitPreview,c=r.displayObjectsFilter,m=r.getCustomObjectStyles,H=(0,i.useModel)("Lab.FlagTool.model"),de=H.onPageDidMount,ce=H.onPageWillUnmount,ge=H.clickItem,ue=H.doubleClickItem,J=H.onPageChange,Oe=H.onPageSizeChange,Se=s.cloumnCount,Te=s.isSingleAnnotation,De=s.filterValues,ve=s.flagTools;(0,I._)({onPageDidMount:de,onPageWillUnmount:ce,onInitPageState:h,pageState:s});var oe=(0,Ce.Z)(function(){return document.querySelector(".ant-pro-page-container")}),pe=oe!=null&&oe.width?oe.width-80:0,te=(0,g.useMemo)(function(){return T?(0,ye.JC)(x.imgList,F,De.displayAnnotationType):x.imgList},[T,x.imgList,F]),fe=T?te.length/(x.imgList.length||1):Se,q=pe?(pe-16*(fe-1))/(fe||1):0;return(0,a.jsxs)(N._z,{ghost:!0,className:R.page,pageHeaderRender:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(O,{}),(0,a.jsx)(me,{})]})},fixedHeader:!0,children:[(0,a.jsx)("div",{className:R.container,children:(0,a.jsx)(y.Z,{loading:G,children:te.length?(0,a.jsx)(u(),{options:{gutter:16,horizontalOrder:!0,transitionDuration:0},onImagesLoaded:function(){return ae()},children:te.map(function(D,le){return(0,a.jsxs)("div",{className:R.item,style:{width:q},onClick:function(){return ge(le)},onDoubleClick:function(){return ue(le)},children:[(0,a.jsx)("div",{className:R.itemImgWrap,style:{width:q,height:ve?q*3/4:"auto"},children:(0,a.jsx)(he.D5,{categories:x.filters.categories,data:D,wrapWidth:q,wrapHeight:ve?q*3/4:void 0,minHeight:q*3/4,objectsFilter:c,getCustomObjectStyles:m,displayOptionsResult:K,displayAnnotationType:s.filterValues.displayAnnotationType})}),D.flag>0&&(0,a.jsx)($.r,{fill:l.a5[D.flag],className:R.flagIcon}),K.showImgDesc&&(0,a.jsxs)("div",{className:R.label,children:[" ",D.caption||D.desc," "]}),ve&&D.selected?(0,a.jsx)("div",{className:R.itemSelectedMask}):null]},"".concat(D.id,"_").concat(le))})}):null})}),!G&&(0,a.jsx)(Z.ZJ,{current:s.page,size:s.pageSize,total:x.total,onPageChange:J,onPageSizeChange:Oe}),(0,a.jsx)(he.j5,{visible:s.previewIndex>=0&&!Te,categories:x.filters.categories,list:te,current:s.previewIndex,onCancel:ne,onNext:P()(p()().mark(function D(){return p()().wrap(function(W){for(;;)switch(W.prev=W.next){case 0:s.previewIndex0&&k(s.previewIndex-1);case 1:case"end":return W.stop()}},D)})),objectsFilter:c,getCustomObjectStyles:m,displayOptionsResult:K,displayAnnotationType:s.filterValues.displayAnnotationType}),x.screenLoading?(0,a.jsx)("div",{className:R.pageSpin,children:(0,a.jsx)(o.Z,{spinning:!0,tip:x.screenLoading})}):null]})},je=xe},4394:function(_,M,e){e.d(M,{r:function(){return N}});var V=e(58757),p=Object.defineProperty,j=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,i=(o,t,u)=>t in o?p(o,t,{enumerable:!0,configurable:!0,writable:!0,value:u}):o[t]=u,I=(o,t)=>{for(var u in t||(t={}))P.call(t,u)&&i(o,u,t[u]);if(j)for(var u of j(t))g.call(t,u)&&i(o,u,t[u]);return o};const N=o=>V.createElement("svg",I({viewBox:"0 0 16 16",fill:"#52C41A",xmlns:"http://www.w3.org/2000/svg"},o),V.createElement("path",{d:"M12.633 4.84 3.838 1.05A.599.599 0 0 0 3 1.602v12.793a.602.602 0 1 0 1.204 0v-4l8.475-4.47a.601.601 0 0 0-.046-1.086Z"}));var y="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9IiM1MkM0MUEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyLjYzMyA0Ljg0IDMuODM4IDEuMDVBLjU5OS41OTkgMCAwIDAgMyAxLjYwMnYxMi43OTNhLjYwMi42MDIgMCAxIDAgMS4yMDQgMHYtNGw4LjQ3NS00LjQ3YS42MDEuNjAxIDAgMCAwLS4wNDYtMS4wODZaIi8+PC9zdmc+"}}]); diff --git a/deepdataspace/server/static/umi.910c5012.js b/deepdataspace/server/static/umi.d0ec6102.js similarity index 73% rename from deepdataspace/server/static/umi.910c5012.js rename to deepdataspace/server/static/umi.d0ec6102.js index a6152ae..6dc683c 100644 --- a/deepdataspace/server/static/umi.910c5012.js +++ b/deepdataspace/server/static/umi.d0ec6102.js @@ -1,5 +1,5 @@ -!(function(){var mg=Object.defineProperty,pg=Object.defineProperties;var hg=Object.getOwnPropertyDescriptors;var _f=Object.getOwnPropertySymbols;var yg=Object.prototype.hasOwnProperty,Mg=Object.prototype.propertyIsEnumerable;var Hf=(Jl,Dl,vt)=>Dl in Jl?mg(Jl,Dl,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Jl[Dl]=vt,La=(Jl,Dl)=>{for(var vt in Dl||(Dl={}))yg.call(Dl,vt)&&Hf(Jl,vt,Dl[vt]);if(_f)for(var vt of _f(Dl))Mg.call(Dl,vt)&&Hf(Jl,vt,Dl[vt]);return Jl},Zs=(Jl,Dl)=>pg(Jl,hg(Dl));var xf=(Jl,Dl,vt)=>new Promise((If,M)=>{var b=t=>{try{i(vt.next(t))}catch(o){M(o)}},e=t=>{try{i(vt.throw(t))}catch(o){M(o)}},i=t=>t.done?If(t.value):Promise.resolve(t.value).then(b,e);i((vt=vt.apply(Jl,Dl)).next())});(function(){var Jl={26134:function(M,b,e){"use strict";e.r(b),e.d(b,{blue:function(){return ce},cyan:function(){return ie},geekblue:function(){return te},generate:function(){return F},gold:function(){return I},gray:function(){return k},green:function(){return H},grey:function(){return O},lime:function(){return K},magenta:function(){return G},orange:function(){return $},presetDarkPalettes:function(){return z},presetPalettes:function(){return T},presetPrimaryColors:function(){return R},purple:function(){return W},red:function(){return A},volcano:function(){return L},yellow:function(){return B}});var i=e(20117),t=e(76981),o=2,s=.16,n=.05,c=.05,l=.15,v=5,h=4,m=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function C(Y){var P=Y.r,Q=Y.g,fe=Y.b,Ce=(0,i.py)(P,Q,fe);return{h:Ce.h*360,s:Ce.s,v:Ce.v}}function p(Y){var P=Y.r,Q=Y.g,fe=Y.b;return"#".concat((0,i.vq)(P,Q,fe,!1))}function S(Y,P,Q){var fe=Q/100,Ce={r:(P.r-Y.r)*fe+Y.r,g:(P.g-Y.g)*fe+Y.g,b:(P.b-Y.b)*fe+Y.b};return Ce}function w(Y,P,Q){var fe;return Math.round(Y.h)>=60&&Math.round(Y.h)<=240?fe=Q?Math.round(Y.h)-o*P:Math.round(Y.h)+o*P:fe=Q?Math.round(Y.h)+o*P:Math.round(Y.h)-o*P,fe<0?fe+=360:fe>=360&&(fe-=360),fe}function y(Y,P,Q){if(Y.h===0&&Y.s===0)return Y.s;var fe;return Q?fe=Y.s-s*P:P===h?fe=Y.s+s:fe=Y.s+n*P,fe>1&&(fe=1),Q&&P===v&&fe>.1&&(fe=.1),fe<.06&&(fe=.06),Number(fe.toFixed(2))}function Z(Y,P,Q){var fe;return Q?fe=Y.v+c*P:fe=Y.v-l*P,fe>1&&(fe=1),Number(fe.toFixed(2))}function F(Y){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=[],fe=(0,t.uA)(Y),Ce=v;Ce>0;Ce-=1){var ge=C(fe),Me=p((0,t.uA)({h:w(ge,Ce,!0),s:y(ge,Ce,!0),v:Z(ge,Ce,!0)}));Q.push(Me)}Q.push(p(fe));for(var Re=1;Re<=h;Re+=1){var Qe=C(fe),Ve=p((0,t.uA)({h:w(Qe,Re),s:y(Qe,Re),v:Z(Qe,Re)}));Q.push(Ve)}return P.theme==="dark"?m.map(function(qe){var Mt=qe.index,wt=qe.opacity,mt=p(S((0,t.uA)(P.backgroundColor||"#141414"),(0,t.uA)(Q[Mt]),wt*100));return mt}):Q}var R={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"},T={},z={};Object.keys(R).forEach(function(Y){T[Y]=F(R[Y]),T[Y].primary=T[Y][5],z[Y]=F(R[Y],{theme:"dark",backgroundColor:"#141414"}),z[Y].primary=z[Y][5]});var A=T.red,L=T.volcano,I=T.gold,$=T.orange,B=T.yellow,K=T.lime,H=T.green,ie=T.cyan,ce=T.blue,te=T.geekblue,W=T.purple,G=T.magenta,O=T.grey,k=T.grey},57793:function(M,b,e){"use strict";e.d(b,{E4:function(){return br},jG:function(){return k},t2:function(){return Je},fp:function(){return Ae},xy:function(){return Jt}});var i=e(29140),t=e(57370);function o(Tt){for(var Kt=0,sn,An=0,_n=Tt.length;_n>=4;++An,_n-=4)sn=Tt.charCodeAt(An)&255|(Tt.charCodeAt(++An)&255)<<8|(Tt.charCodeAt(++An)&255)<<16|(Tt.charCodeAt(++An)&255)<<24,sn=(sn&65535)*1540483477+((sn>>>16)*59797<<16),sn^=sn>>>24,Kt=(sn&65535)*1540483477+((sn>>>16)*59797<<16)^(Kt&65535)*1540483477+((Kt>>>16)*59797<<16);switch(_n){case 3:Kt^=(Tt.charCodeAt(An+2)&255)<<16;case 2:Kt^=(Tt.charCodeAt(An+1)&255)<<8;case 1:Kt^=Tt.charCodeAt(An)&255,Kt=(Kt&65535)*1540483477+((Kt>>>16)*59797<<16)}return Kt^=Kt>>>13,Kt=(Kt&65535)*1540483477+((Kt>>>16)*59797<<16),((Kt^Kt>>>15)>>>0).toString(36)}var s=o,n=e(58757),c=e.t(n,2),l=e(27903),v=e(7637),h=e(60412),m=e(14346),C=e(37734),p="%",S=function(){function Tt(Kt){(0,h.Z)(this,Tt),(0,C.Z)(this,"instanceId",void 0),(0,C.Z)(this,"cache",new Map),this.instanceId=Kt}return(0,m.Z)(Tt,[{key:"get",value:function(sn){return this.cache.get(sn.join(p))||null}},{key:"update",value:function(sn,An){var _n=sn.join(p),fr=this.cache.get(_n),Er=An(fr);Er===null?this.cache.delete(_n):this.cache.set(_n,Er)}}]),Tt}(),w=S,y=null,Z="data-token-hash",F="data-css-hash",R="data-cache-path",T="__cssinjs_instance__";function z(){var Tt=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Kt=document.body.querySelectorAll("style[".concat(F,"]"))||[],sn=document.head.firstChild;Array.from(Kt).forEach(function(_n){_n[T]=_n[T]||Tt,_n[T]===Tt&&document.head.insertBefore(_n,sn)});var An={};Array.from(document.querySelectorAll("style[".concat(F,"]"))).forEach(function(_n){var fr=_n.getAttribute(F);if(An[fr]){if(_n[T]===Tt){var Er;(Er=_n.parentNode)===null||Er===void 0||Er.removeChild(_n)}}else An[fr]=!0})}return new w(Tt)}var A=n.createContext({hashPriority:"low",cache:z(),defaultCache:!0}),L=function(Kt){var sn=Kt.children,An=_objectWithoutProperties(Kt,y),_n=React.useContext(A),fr=useMemo(function(){var Er=_objectSpread({},_n);Object.keys(An).forEach(function(vr){var Ar=An[vr];An[vr]!==void 0&&(Er[vr]=Ar)});var wn=An.cache;return Er.cache=Er.cache||z(),Er.defaultCache=!wn&&_n.defaultCache,Er},[_n,An],function(Er,wn){return!isEqual(Er[0],wn[0],!0)||!isEqual(Er[1],wn[1],!0)});return React.createElement(A.Provider,{value:fr},sn)},I=A,$=e(38790),B=e(19075),K=e(39678),H=e(28314);function ie(Tt,Kt){if(Tt.length!==Kt.length)return!1;for(var sn=0;sn1&&arguments[1]!==void 0?arguments[1]:!1,Er={map:this.cache};return sn.forEach(function(wn){if(!Er)Er=void 0;else{var vr,Ar;Er=(vr=Er)===null||vr===void 0||(Ar=vr.map)===null||Ar===void 0?void 0:Ar.get(wn)}}),(An=Er)!==null&&An!==void 0&&An.value&&fr&&(Er.value[1]=this.cacheCallTimes++),(_n=Er)===null||_n===void 0?void 0:_n.value}},{key:"get",value:function(sn){var An;return(An=this.internalGet(sn,!0))===null||An===void 0?void 0:An[0]}},{key:"has",value:function(sn){return!!this.internalGet(sn)}},{key:"set",value:function(sn,An){var _n=this;if(!this.has(sn)){if(this.size()+1>Tt.MAX_CACHE_SIZE+Tt.MAX_CACHE_OFFSET){var fr=this.keys.reduce(function(Ar,ia){var na=(0,H.Z)(Ar,2),Wa=na[1];return _n.internalGet(ia)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),W+=1}return(0,m.Z)(Tt,[{key:"getDerivativeToken",value:function(sn){return this.derivatives.reduce(function(An,_n){return _n(sn,An)},void 0)}}]),Tt}(),O=new ce;function k(Tt){var Kt=Array.isArray(Tt)?Tt:[Tt];return O.has(Kt)||O.set(Kt,new G(Kt)),O.get(Kt)}var Y=new WeakMap;function P(Tt){var Kt=Y.get(Tt)||"";return Kt||(Object.keys(Tt).forEach(function(sn){var An=Tt[sn];Kt+=sn,An instanceof G?Kt+=An.id:An&&(0,$.Z)(An)==="object"?Kt+=P(An):Kt+=An}),Y.set(Tt,Kt)),Kt}function Q(Tt,Kt){return s("".concat(Kt,"_").concat(P(Tt)))}var fe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ce="_bAmBoO_";function ge(Tt,Kt,sn){if((0,B.Z)()){var An,_n;(0,K.hq)(Tt,fe);var fr=document.createElement("div");fr.style.position="fixed",fr.style.left="0",fr.style.top="0",Kt==null||Kt(fr),document.body.appendChild(fr);var Er=sn?sn(fr):(An=getComputedStyle(fr).content)===null||An===void 0?void 0:An.includes(Ce);return(_n=fr.parentNode)===null||_n===void 0||_n.removeChild(fr),(0,K.jL)(fe),Er}return!1}var Me=void 0;function Re(){return Me===void 0&&(Me=ge("@layer ".concat(fe," { .").concat(fe,' { content: "').concat(Ce,'"!important; } }'),function(Tt){Tt.className=fe})),Me}var Qe=void 0;function Ve(){return Qe===void 0&&(Qe=ge(":where(.".concat(fe,') { content: "').concat(Ce,'"!important; }'),function(Tt){Tt.className=fe})),Qe}var qe=void 0;function Mt(){return qe===void 0&&(qe=ge(".".concat(fe," { inset-block: 93px !important; }"),function(Tt){Tt.className=fe},function(Tt){return getComputedStyle(Tt).bottom==="93px"})),qe}var wt=e(81334),mt=(0,t.Z)({},c),Nt=mt.useInsertionEffect,ke=function(Kt,sn,An){n.useMemo(Kt,An),(0,wt.Z)(function(){return sn(!0)},An)},He=Nt?function(Tt,Kt,sn){return Nt(function(){return Tt(),Kt()},sn)}:ke,et=He,Fe=(0,t.Z)({},c),ue=Fe.useInsertionEffect,V=function(Kt){var sn=[],An=!1;function _n(fr){An||sn.push(fr)}return n.useEffect(function(){return An=!1,function(){An=!0,sn.length&&sn.forEach(function(fr){return fr()})}},Kt),_n},U=function(){return function(Kt){Kt()}},N=typeof ue!="undefined"?V:U,D=N;function ee(){return!1}var se=!1;function X(){return se}var re=ee;if(!1)var Ie,Se;function he(Tt,Kt,sn,An,_n){var fr=n.useContext(I),Er=fr.cache,wn=[Tt].concat((0,i.Z)(Kt)),vr=wn.join("_"),Ar=D([vr]),ia=re(),na=function(Ka){Er.update(wn,function(To){var vo=To||[],qr=(0,H.Z)(vo,2),Na=qr[0],Oo=Na===void 0?0:Na,oi=qr[1],di=oi,go=di||sn(),Oi=[Oo,go];return Ka?Ka(Oi):Oi})};n.useMemo(function(){na()},[vr]);var Wa=Er.get(wn),Eo=Wa[1];return et(function(){_n==null||_n(Eo)},function(Ro){return na(function(Ka){var To=(0,H.Z)(Ka,2),vo=To[0],qr=To[1];return Ro&&vo===0&&(_n==null||_n(Eo)),[vo+1,qr]}),function(){Er.update(wn,function(Ka){var To=Ka||[],vo=(0,H.Z)(To,2),qr=vo[0],Na=qr===void 0?0:qr,Oo=vo[1],oi=Na-1;return oi===0?(Ar(function(){return An==null?void 0:An(Oo,!1)}),null):[Na-1,Oo]})}},[vr]),Eo}var We={},de="css",le=new Map;function ve(Tt){le.set(Tt,(le.get(Tt)||0)+1)}function xe(Tt,Kt){if(typeof document!="undefined"){var sn=document.querySelectorAll("style[".concat(Z,'="').concat(Tt,'"]'));sn.forEach(function(An){if(An[T]===Kt){var _n;(_n=An.parentNode)===null||_n===void 0||_n.removeChild(An)}})}}var Ze=0;function pe(Tt,Kt){le.set(Tt,(le.get(Tt)||0)-1);var sn=Array.from(le.keys()),An=sn.filter(function(_n){var fr=le.get(_n)||0;return fr<=0});sn.length-An.length>Ze&&An.forEach(function(_n){xe(_n,Kt),le.delete(_n)})}var Je=function(Kt,sn,An,_n){var fr=An.getDerivativeToken(Kt),Er=(0,t.Z)((0,t.Z)({},fr),sn);return _n&&(Er=_n(Er)),Er};function Ae(Tt,Kt){var sn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},An=(0,n.useContext)(I),_n=An.cache.instanceId,fr=sn.salt,Er=fr===void 0?"":fr,wn=sn.override,vr=wn===void 0?We:wn,Ar=sn.formatToken,ia=sn.getComputedToken,na=n.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(Kt)))},[Kt]),Wa=n.useMemo(function(){return P(na)},[na]),Eo=n.useMemo(function(){return P(vr)},[vr]),Ro=he("token",[Er,Tt.id,Wa,Eo],function(){var Ka=ia?ia(na,vr,Tt):Je(na,vr,Tt,Ar),To=Q(Ka,Er);Ka._tokenKey=To,ve(To);var vo="".concat(de,"-").concat(s(To));return Ka._hashId=vo,[Ka,vo]},function(Ka){pe(Ka[0]._tokenKey,_n)});return Ro}var oe=e(60698),ye={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},Be=ye,De="-ms-",Pe="-moz-",we="-webkit-",Le="comm",Ye="rule",Ue="decl",dt="@page",bt="@media",ft="@import",At="@charset",Ot="@viewport",jt="@supports",Gt="@document",Xt="@namespace",zn="@keyframes",fn="@font-face",Bn="@counter-style",On="@font-feature-values",Mn="@layer",_e=Math.abs,at=String.fromCharCode,Vt=Object.assign;function rn(Tt,Kt){return gt(Tt,0)^45?(((Kt<<2^gt(Tt,0))<<2^gt(Tt,1))<<2^gt(Tt,2))<<2^gt(Tt,3):0}function st(Tt){return Tt.trim()}function ut(Tt,Kt){return(Tt=Kt.exec(Tt))?Tt[0]:Tt}function $t(Tt,Kt,sn){return Tt.replace(Kt,sn)}function nt(Tt,Kt){return Tt.indexOf(Kt)}function gt(Tt,Kt){return Tt.charCodeAt(Kt)|0}function Dt(Tt,Kt,sn){return Tt.slice(Kt,sn)}function xn(Tt){return Tt.length}function tn(Tt){return Tt.length}function Hn(Tt,Kt){return Kt.push(Tt),Tt}function Nn(Tt,Kt){return Tt.map(Kt).join("")}function pr(Tt,Kt){return Tt.filter(function(sn){return!ut(sn,Kt)})}function gr(Tt,Kt){for(var sn="",An=0;An0?gt(zt,--Lr):0,mr--,Kn===10&&(mr=1,ar--),Kn}function dn(){return Kn=Lr2||lt(Kn)>3?"":" "}function yn(Tt){for(;dn();)switch(lt(Kn)){case 0:append(Dn(Lr-1),Tt);break;case 2:append(Lt(Kn),Tt);break;default:append(from(Kn),Tt)}return Tt}function kn(Tt,Kt){for(;--Kt&&dn()&&!(Kn<48||Kn>102||Kn>57&&Kn<65||Kn>70&&Kn<97););return ct(Tt,qn()+(Kt<6&&$n()==32&&dn()==32))}function hr(Tt){for(;dn();)switch(Kn){case Tt:return Lr;case 34:case 39:Tt!==34&&Tt!==39&&hr(Kn);break;case 40:Tt===41&&hr(Tt);break;case 92:dn();break}return Lr}function cr(Tt,Kt){for(;dn()&&Tt+Kn!==57;)if(Tt+Kn===84&&$n()===47)break;return"/*"+ct(Kt,Lr-1)+"*"+at(Tt===47?Tt:dn())}function Dn(Tt){for(;!lt($n());)dn();return ct(Tt,Lr)}function Rr(Tt){return St(or("",null,null,null,[""],Tt=xt(Tt),0,[0],Tt))}function or(Tt,Kt,sn,An,_n,fr,Er,wn,vr){for(var Ar=0,ia=0,na=Er,Wa=0,Eo=0,Ro=0,Ka=1,To=1,vo=1,qr=0,Na="",Oo=_n,oi=fr,di=An,go=Na;To;)switch(Ro=qr,qr=dn()){case 40:if(Ro!=108&>(go,na-1)==58){nt(go+=$t(Lt(qr),"&","&\f"),"&\f")!=-1&&(vo=-1);break}case 34:case 39:case 91:go+=Lt(qr);break;case 9:case 10:case 13:case 32:go+=Wt(Ro);break;case 92:go+=kn(qn()-1,7);continue;case 47:switch($n()){case 42:case 47:Hn(Ir(cr(dn(),qn()),Kt,sn,vr),vr);break;default:go+="/"}break;case 123*Ka:wn[Ar++]=xn(go)*vo;case 125*Ka:case 59:case 0:switch(qr){case 0:case 125:To=0;case 59+ia:vo==-1&&(go=$t(go,/\f/g,"")),Eo>0&&xn(go)-na&&Hn(Eo>32?jn(go+";",An,sn,na-1,vr):jn($t(go," ","")+";",An,sn,na-2,vr),vr);break;case 59:go+=";";default:if(Hn(di=Gr(go,Kt,sn,Ar,ia,_n,wn,Na,Oo=[],oi=[],na,fr),fr),qr===123)if(ia===0)or(go,Kt,di,di,Oo,fr,na,wn,oi);else switch(Wa===99&>(go,3)===110?100:Wa){case 100:case 108:case 109:case 115:or(Tt,di,di,An&&Hn(Gr(Tt,di,di,0,0,_n,wn,Na,_n,Oo=[],na,oi),oi),_n,oi,na,wn,An?Oo:oi);break;default:or(go,di,di,di,[""],oi,0,wn,oi)}}Ar=ia=Eo=0,Ka=vo=1,Na=go="",na=Er;break;case 58:na=1+xn(go),Eo=Ro;default:if(Ka<1){if(qr==123)--Ka;else if(qr==125&&Ka++==0&&hn()==125)continue}switch(go+=at(qr),qr*Ka){case 38:vo=ia>0?1:(go+="\f",-1);break;case 44:wn[Ar++]=(xn(go)-1)*vo,vo=1;break;case 64:$n()===45&&(go+=Lt(dn())),Wa=$n(),ia=na=xn(Na=go+=Dn(qn())),qr++;break;case 45:Ro===45&&xn(go)==2&&(Ka=0)}}return fr}function Gr(Tt,Kt,sn,An,_n,fr,Er,wn,vr,Ar,ia,na){for(var Wa=_n-1,Eo=_n===0?fr:[""],Ro=tn(Eo),Ka=0,To=0,vo=0;Ka0?Eo[qr]+" "+Na:$t(Na,/&\f/g,Eo[qr])))&&(vr[vo++]=Oo);return Ft(Tt,Kt,sn,_n===0?Ye:wn,vr,Ar,ia,na)}function Ir(Tt,Kt,sn,An){return Ft(Tt,Kt,sn,Le,at(kt()),Dt(Tt,2,-2),0,An)}function jn(Tt,Kt,sn,An,_n){return Ft(Tt,Kt,sn,Ue,Dt(Tt,0,An),Dt(Tt,An+1,-1),An,_n)}function vn(Tt,Kt){var sn=Kt.path,An=Kt.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(sn?"Error in ".concat(sn,": "):"").concat(Tt).concat(An.length?" Selector: ".concat(An.join(" | ")):""))}var Ln=function(Kt,sn,An){if(Kt==="content"){var _n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,fr=["normal","none","initial","inherit","unset"];(typeof sn!="string"||fr.indexOf(sn)===-1&&!_n.test(sn)&&(sn.charAt(0)!==sn.charAt(sn.length-1)||sn.charAt(0)!=='"'&&sn.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(sn,"\"'`."),An)}},Zn=null,yr=function(Kt,sn,An){Kt==="animation"&&An.hashId&&sn!=="none"&&lintWarning("You seem to be using hashed animation '".concat(sn,"', in which case 'animationName' with Keyframe as value is recommended."),An)},Fr=null;function Kr(Tt){var Kt,sn=((Kt=Tt.match(/:not\(([^)]*)\)/))===null||Kt===void 0?void 0:Kt[1])||"",An=sn.split(/(\[[^[]*])|(?=[.#])/).filter(function(_n){return _n});return An.length>1}function aa(Tt){return Tt.parentSelectors.reduce(function(Kt,sn){return Kt?sn.includes("&")?sn.replace(/&/g,Kt):"".concat(Kt," ").concat(sn):sn},"")}var Jr=function(Kt,sn,An){var _n=aa(An),fr=_n.match(/:not\([^)]*\)/g)||[];fr.length>0&&fr.some(Kr)&&lintWarning("Concat ':not' selector not support in legacy browsers.",An)},Zr=null,Ca=function(Kt,sn,An){switch(Kt){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Kt,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof sn=="string"){var _n=sn.split(" ").map(function(wn){return wn.trim()});_n.length===4&&_n[1]!==_n[3]&&lintWarning("You seem to be using '".concat(Kt,"' property with different left ").concat(Kt," and right ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An)}return;case"clear":case"textAlign":(sn==="left"||sn==="right")&&lintWarning("You seem to be using non-logical value '".concat(sn,"' of ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An);return;case"borderRadius":if(typeof sn=="string"){var fr=sn.split("/").map(function(wn){return wn.trim()}),Er=fr.reduce(function(wn,vr){if(wn)return wn;var Ar=vr.split(" ").map(function(ia){return ia.trim()});return Ar.length>=2&&Ar[0]!==Ar[1]||Ar.length===3&&Ar[1]!==Ar[2]||Ar.length===4&&Ar[2]!==Ar[3]?!0:wn},!1);Er&&lintWarning("You seem to be using non-logical value '".concat(sn,"' of ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An)}return;default:}},la=null,Tn=function(Kt,sn,An){An.parentSelectors.some(function(_n){var fr=_n.split(",");return fr.some(function(Er){return Er.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",An)},In=null,Yn="data-ant-cssinjs-cache-path",Nr="_FILE_STYLE__";function zr(Tt){return Object.keys(Tt).map(function(Kt){var sn=Tt[Kt];return"".concat(Kt,":").concat(sn)}).join(";")}var Br,Ma=!0;function uo(Tt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Br=Tt,Ma=Kt}function to(){if(!Br&&(Br={},(0,B.Z)())){var Tt=document.createElement("div");Tt.className=Yn,Tt.style.position="fixed",Tt.style.visibility="hidden",Tt.style.top="-9999px",document.body.appendChild(Tt);var Kt=getComputedStyle(Tt).content||"";Kt=Kt.replace(/^"/,"").replace(/"$/,""),Kt.split(";").forEach(function(_n){var fr=_n.split(":"),Er=(0,H.Z)(fr,2),wn=Er[0],vr=Er[1];Br[wn]=vr});var sn=document.querySelector("style[".concat(Yn,"]"));if(sn){var An;Ma=!1,(An=sn.parentNode)===null||An===void 0||An.removeChild(sn)}document.body.removeChild(Tt)}}function Io(Tt){return to(),!!Br[Tt]}function ja(Tt){var Kt=Br[Tt],sn=null;if(Kt&&(0,B.Z)())if(Ma)sn=Nr;else{var An=document.querySelector("style[".concat(F,'="').concat(Br[Tt],'"]'));An?sn=An.innerHTML:delete Br[Tt]}return[sn,Kt]}var Ua=(0,B.Z)(),qa="_skip_check_",Fo="_multi_value_";function Lo(Tt){var Kt=gr(Rr(Tt),Or);return Kt.replace(/\{%%%\:[^;];}/g,";")}function Bo(Tt){return(0,$.Z)(Tt)==="object"&&Tt&&(qa in Tt||Fo in Tt)}function ot(Tt,Kt,sn){if(!Kt)return Tt;var An=".".concat(Kt),_n=sn==="low"?":where(".concat(An,")"):An,fr=Tt.split(",").map(function(Er){var wn,vr=Er.trim().split(/\s+/),Ar=vr[0]||"",ia=((wn=Ar.match(/^\w+/))===null||wn===void 0?void 0:wn[0])||"";return Ar="".concat(ia).concat(_n).concat(Ar.slice(ia.length)),[Ar].concat((0,i.Z)(vr.slice(1))).join(" ")});return fr.join(",")}var yt=function Tt(Kt){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},_n=An.root,fr=An.injectHash,Er=An.parentSelectors,wn=sn.hashId,vr=sn.layer,Ar=sn.path,ia=sn.hashPriority,na=sn.transformers,Wa=na===void 0?[]:na,Eo=sn.linters,Ro=Eo===void 0?[]:Eo,Ka="",To={};function vo(di){var go=di.getName(wn);if(!To[go]){var Oi=Tt(di.style,sn,{root:!1,parentSelectors:Er}),Li=(0,H.Z)(Oi,1),ii=Li[0];To[go]="@keyframes ".concat(di.getName(wn)).concat(ii)}}function qr(di){var go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return di.forEach(function(Oi){Array.isArray(Oi)?qr(Oi,go):Oi&&go.push(Oi)}),go}var Na=qr(Array.isArray(Kt)?Kt:[Kt]);if(Na.forEach(function(di){var go=typeof di=="string"&&!_n?{}:di;if(typeof go=="string")Ka+="".concat(go,` -`);else if(go._keyframe)vo(go);else{var Oi=Wa.reduce(function(Li,ii){var Di;return(ii==null||(Di=ii.visit)===null||Di===void 0?void 0:Di.call(ii,Li))||Li},go);Object.keys(Oi).forEach(function(Li){var ii=Oi[Li];if((0,$.Z)(ii)==="object"&&ii&&(Li!=="animationName"||!ii._keyframe)&&!Bo(ii)){var Di=!1,$i=Li.trim(),wi=!1;(_n||fr)&&wn?$i.startsWith("@")?Di=!0:$i=ot(Li,wn,ia):_n&&!wn&&($i==="&"||$i==="")&&($i="",wi=!0);var Ti=Tt(ii,sn,{root:wi,injectHash:Di,parentSelectors:[].concat((0,i.Z)(Er),[$i])}),ns=(0,H.Z)(Ti,2),Fi=ns[0],ro=ns[1];To=(0,t.Z)((0,t.Z)({},To),ro),Ka+="".concat($i).concat(Fi)}else{let si=function(Zo,Yo){var Ni=Zo.replace(/[A-Z]/g,function(Gi){return"-".concat(Gi.toLowerCase())}),Xi=Yo;!Be[Zo]&&typeof Xi=="number"&&Xi!==0&&(Xi="".concat(Xi,"px")),Zo==="animationName"&&Yo!==null&&Yo!==void 0&&Yo._keyframe&&(vo(Yo),Xi=Yo.getName(wn)),Ka+="".concat(Ni,":").concat(Xi,";")};var Va,gi=(Va=ii==null?void 0:ii.value)!==null&&Va!==void 0?Va:ii;(0,$.Z)(ii)==="object"&&ii!==null&&ii!==void 0&&ii[Fo]&&Array.isArray(gi)?gi.forEach(function(Zo){si(Li,Zo)}):si(Li,gi)}})}}),!_n)Ka="{".concat(Ka,"}");else if(vr&&Re()){var Oo=vr.split(","),oi=Oo[Oo.length-1].trim();Ka="@layer ".concat(oi," {").concat(Ka,"}"),Oo.length>1&&(Ka="@layer ".concat(vr,"{%%%:%}").concat(Ka))}return[Ka,To]};function be(Tt,Kt){return s("".concat(Tt.join("%")).concat(Kt))}function Bt(){return null}function Jt(Tt,Kt){var sn=Tt.token,An=Tt.path,_n=Tt.hashId,fr=Tt.layer,Er=Tt.nonce,wn=Tt.clientOnly,vr=Tt.order,Ar=vr===void 0?0:vr,ia=n.useContext(I),na=ia.autoClear,Wa=ia.mock,Eo=ia.defaultCache,Ro=ia.hashPriority,Ka=ia.container,To=ia.ssrInline,vo=ia.transformers,qr=ia.linters,Na=ia.cache,Oo=sn._tokenKey,oi=[Oo].concat((0,i.Z)(An)),di=Ua,go=he("style",oi,function(){var $i=oi.join("|");if(Io($i)){var wi=ja($i),Ti=(0,H.Z)(wi,2),ns=Ti[0],Fi=Ti[1];if(ns)return[ns,Oo,Fi,{},wn,Ar]}var ro=Kt(),Va=yt(ro,{hashId:_n,hashPriority:Ro,layer:fr,path:An.join("-"),transformers:vo,linters:qr}),gi=(0,H.Z)(Va,2),si=gi[0],Zo=gi[1],Yo=Lo(si),Ni=be(oi,Yo);return[Yo,Oo,Ni,Zo,wn,Ar]},function($i,wi){var Ti=(0,H.Z)($i,3),ns=Ti[2];(wi||na)&&Ua&&(0,K.jL)(ns,{mark:F})},function($i){var wi=(0,H.Z)($i,4),Ti=wi[0],ns=wi[1],Fi=wi[2],ro=wi[3];if(di&&Ti!==Nr){var Va={mark:F,prepend:"queue",attachTo:Ka,priority:Ar},gi=typeof Er=="function"?Er():Er;gi&&(Va.csp={nonce:gi});var si=(0,K.hq)(Ti,Fi,Va);si[T]=Na.instanceId,si.setAttribute(Z,Oo),Object.keys(ro).forEach(function(Zo){(0,K.hq)(Lo(ro[Zo]),"_effect-".concat(Zo),Va)})}}),Oi=(0,H.Z)(go,3),Li=Oi[0],ii=Oi[1],Di=Oi[2];return function($i){var wi;if(!To||di||!Eo)wi=n.createElement(Bt,null);else{var Ti;wi=n.createElement("style",(0,oe.Z)({},(Ti={},(0,C.Z)(Ti,Z,ii),(0,C.Z)(Ti,F,Di),Ti),{dangerouslySetInnerHTML:{__html:Li}}))}return n.createElement(n.Fragment,null,wi,$i)}}function Xn(Tt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn="style%",An=Array.from(Tt.cache.keys()).filter(function(Ar){return Ar.startsWith(sn)}),_n={},fr={},Er="";function wn(Ar,ia,na){var Wa,Eo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Ro=_objectSpread(_objectSpread({},Eo),{},(Wa={},_defineProperty(Wa,ATTR_TOKEN,ia),_defineProperty(Wa,ATTR_MARK,na),Wa)),Ka=Object.keys(Ro).map(function(To){var vo=Ro[To];return vo?"".concat(To,'="').concat(vo,'"'):null}).filter(function(To){return To}).join(" ");return Kt?Ar:"")}var vr=An.map(function(Ar){var ia=Ar.slice(sn.length).replace(/%/g,"|"),na=_slicedToArray(Tt.cache.get(Ar)[1],6),Wa=na[0],Eo=na[1],Ro=na[2],Ka=na[3],To=na[4],vo=na[5];if(To)return null;var qr={"data-rc-order":"prependQueue","data-rc-priority":"".concat(vo)},Na=wn(Wa,Eo,Ro,qr);fr[ia]=Ro,Ka&&Object.keys(Ka).forEach(function(oi){_n[oi]||(_n[oi]=!0,Na+=wn(Lo(Ka[oi]),Eo,"_effect-".concat(oi),qr))});var Oo=[vo,Na];return Oo}).filter(function(Ar){return Ar});return vr.sort(function(Ar,ia){return Ar[0]-ia[0]}).forEach(function(Ar){var ia=_slicedToArray(Ar,2),na=ia[1];Er+=na}),Er+=wn(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(fr),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),Er}var Gn=function(){function Tt(Kt,sn){(0,h.Z)(this,Tt),(0,C.Z)(this,"name",void 0),(0,C.Z)(this,"style",void 0),(0,C.Z)(this,"_keyframe",!0),this.name=Kt,this.style=sn}return(0,m.Z)(Tt,[{key:"getName",value:function(){var sn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return sn?"".concat(sn,"-").concat(this.name):this.name}}]),Tt}(),br=Gn;function ta(Tt){if(typeof Tt=="number")return[[Tt],!1];var Kt=String(Tt).trim(),sn=Kt.match(/(.*)(!important)/),An=(sn?sn[1]:Kt).trim().split(/\s+/),_n="",fr=0;return[An.reduce(function(Er,wn){return wn.includes("(")?(_n+=wn,fr+=wn.split("(").length-1):wn.includes(")")?(_n+=wn,fr-=wn.split(")").length-1,fr===0&&(Er.push(_n),_n="")):fr>0?_n+=wn:Er.push(wn),Er},[]),!!sn]}function ka(Tt){return Tt.notSplit=!0,Tt}var kr={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:ka(["borderTop","borderBottom"]),borderBlockStart:ka(["borderTop"]),borderBlockEnd:ka(["borderBottom"]),borderInline:ka(["borderLeft","borderRight"]),borderInlineStart:ka(["borderLeft"]),borderInlineEnd:ka(["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 Dr(Tt,Kt){var sn=Tt;return Kt&&(sn="".concat(sn," !important")),{_skip_check_:!0,value:sn}}var wr={visit:function(Kt){var sn={};return Object.keys(Kt).forEach(function(An){var _n=Kt[An],fr=kr[An];if(fr&&(typeof _n=="number"||typeof _n=="string")){var Er=ta(_n),wn=(0,H.Z)(Er,2),vr=wn[0],Ar=wn[1];fr.length&&fr.notSplit?fr.forEach(function(ia){sn[ia]=Dr(_n,Ar)}):fr.length===1?sn[fr[0]]=Dr(_n,Ar):fr.length===2?fr.forEach(function(ia,na){var Wa;sn[ia]=Dr((Wa=vr[na])!==null&&Wa!==void 0?Wa:vr[0],Ar)}):fr.length===4?fr.forEach(function(ia,na){var Wa,Eo;sn[ia]=Dr((Wa=(Eo=vr[na])!==null&&Eo!==void 0?Eo:vr[na-2])!==null&&Wa!==void 0?Wa:vr[0],Ar)}):sn[An]=_n}else sn[An]=_n}),sn}},sr=null,dr=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function jr(Tt,Kt){var sn=Math.pow(10,Kt+1),An=Math.floor(Tt*sn);return Math.round(An/10)*10/sn}var va=function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},sn=Kt.rootValue,An=sn===void 0?16:sn,_n=Kt.precision,fr=_n===void 0?5:_n,Er=Kt.mediaQuery,wn=Er===void 0?!1:Er,vr=function(na,Wa){if(!Wa)return na;var Eo=parseFloat(Wa);if(Eo<=1)return na;var Ro=jr(Eo/An,fr);return"".concat(Ro,"rem")},Ar=function(na){var Wa=_objectSpread({},na);return Object.entries(na).forEach(function(Eo){var Ro=_slicedToArray(Eo,2),Ka=Ro[0],To=Ro[1];if(typeof To=="string"&&To.includes("px")){var vo=To.replace(dr,vr);Wa[Ka]=vo}!unitless[Ka]&&typeof To=="number"&&To!==0&&(Wa[Ka]="".concat(To,"px").replace(dr,vr));var qr=Ka.trim();if(qr.startsWith("@")&&qr.includes("px")&&wn){var Na=Ka.replace(dr,vr);Wa[Na]=Wa[Ka],delete Wa[Ka]}}),Wa};return{visit:Ar}},co=null,Qa={supportModernCSS:function(){return Ve()&&Mt()}}},17202:function(M,b,e){"use strict";e.d(b,{Z:function(){return L}});var i=e(60698),t=e(28314),o=e(37734),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(26134),h=e(71048),m=e(57370),C=e(17332),p=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function w(I){var $=I.primaryColor,B=I.secondaryColor;S.primaryColor=$,S.secondaryColor=B||(0,C.pw)($),S.calculated=!!B}function y(){return(0,m.Z)({},S)}var Z=function($){var B=$.icon,K=$.className,H=$.onClick,ie=$.style,ce=$.primaryColor,te=$.secondaryColor,W=(0,s.Z)($,p),G=n.useRef(),O=S;if(ce&&(O={primaryColor:ce,secondaryColor:te||(0,C.pw)(ce)}),(0,C.C3)(G),(0,C.Kp)((0,C.r)(B),"icon should be icon definiton, but got ".concat(B)),!(0,C.r)(B))return null;var k=B;return k&&typeof k.icon=="function"&&(k=(0,m.Z)((0,m.Z)({},k),{},{icon:k.icon(O.primaryColor,O.secondaryColor)})),(0,C.R_)(k.icon,"svg-".concat(k.name),(0,m.Z)((0,m.Z)({className:K,onClick:H,style:ie,"data-icon":k.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},W),{},{ref:G}))};Z.displayName="IconReact",Z.getTwoToneColors=y,Z.setTwoToneColors=w;var F=Z;function R(I){var $=(0,C.H9)(I),B=(0,t.Z)($,2),K=B[0],H=B[1];return F.setTwoToneColors({primaryColor:K,secondaryColor:H})}function T(){var I=F.getTwoToneColors();return I.calculated?[I.primaryColor,I.secondaryColor]:I.primaryColor}var z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R(v.blue.primary);var A=n.forwardRef(function(I,$){var B,K=I.className,H=I.icon,ie=I.spin,ce=I.rotate,te=I.tabIndex,W=I.onClick,G=I.twoToneColor,O=(0,s.Z)(I,z),k=n.useContext(h.Z),Y=k.prefixCls,P=Y===void 0?"anticon":Y,Q=k.rootClassName,fe=l()(Q,P,(B={},(0,o.Z)(B,"".concat(P,"-").concat(H.name),!!H.name),(0,o.Z)(B,"".concat(P,"-spin"),!!ie||H.name==="loading"),B),K),Ce=te;Ce===void 0&&W&&(Ce=-1);var ge=ce?{msTransform:"rotate(".concat(ce,"deg)"),transform:"rotate(".concat(ce,"deg)")}:void 0,Me=(0,C.H9)(G),Re=(0,t.Z)(Me,2),Qe=Re[0],Ve=Re[1];return n.createElement("span",(0,i.Z)({role:"img","aria-label":H.name},O,{ref:$,tabIndex:Ce,onClick:W,className:fe}),n.createElement(F,{icon:H,primaryColor:Qe,secondaryColor:Ve,style:ge}))});A.displayName="AntdIcon",A.getTwoToneColor=T,A.setTwoToneColor=R;var L=A},71048:function(M,b,e){"use strict";var i=e(58757),t=(0,i.createContext)({});b.Z=t},39875:function(M,b,e){"use strict";var i=e(60698),t=e(57370),o=e(37734),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(21319),h=e(71048),m=e(17332),C=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=n.forwardRef(function(S,w){var y=S.className,Z=S.component,F=S.viewBox,R=S.spin,T=S.rotate,z=S.tabIndex,A=S.onClick,L=S.children,I=(0,s.Z)(S,C),$=n.useRef(),B=(0,v.x1)($,w);(0,m.Kp)(!!(Z||L),"Should have `component` prop or `children`."),(0,m.C3)($);var K=n.useContext(h.Z),H=K.prefixCls,ie=H===void 0?"anticon":H,ce=K.rootClassName,te=l()(ce,ie,y),W=l()((0,o.Z)({},"".concat(ie,"-spin"),!!R)),G=T?{msTransform:"rotate(".concat(T,"deg)"),transform:"rotate(".concat(T,"deg)")}:void 0,O=(0,t.Z)((0,t.Z)({},m.vD),{},{className:W,style:G,viewBox:F});F||delete O.viewBox;var k=function(){return Z?n.createElement(Z,O,L):L?((0,m.Kp)(!!F||n.Children.count(L)===1&&n.isValidElement(L)&&n.Children.only(L).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),n.createElement("svg",(0,i.Z)({},O,{viewBox:F}),L)):null},Y=z;return Y===void 0&&A&&(Y=-1),n.createElement("span",(0,i.Z)({role:"img"},I,{ref:B,tabIndex:Y,onClick:A,className:te}),k())});p.displayName="AntdIcon",b.Z=p},92183:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},85678:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},35725:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},79999:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},52495:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},23605:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},10130:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},18974:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},69831:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},83720:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},56019:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},33064:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},99142:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},25755:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},12673:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},22283:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},91169:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},99534:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},23926:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},98030:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},2528:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},17332:function(M,b,e){"use strict";e.d(b,{C3:function(){return T},H9:function(){return Z},Kp:function(){return C},R_:function(){return w},pw:function(){return y},r:function(){return p},vD:function(){return F}});var i=e(57370),t=e(38790),o=e(26134),s=e(61012),n=e.n(s),c=e(39678),l=e(4171),v=e(75556),h=e(58757),m=e(71048);function C(z,A){(0,v.ZP)(z,"[@ant-design/icons] ".concat(A))}function p(z){return(0,t.Z)(z)==="object"&&typeof z.name=="string"&&typeof z.theme=="string"&&((0,t.Z)(z.icon)==="object"||typeof z.icon=="function")}function S(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(z).reduce(function(A,L){var I=z[L];switch(L){case"class":A.className=I,delete A.class;break;default:delete A[L],A[n()(L)]=I}return A},{})}function w(z,A,L){return L?h.createElement(z.tag,(0,i.Z)((0,i.Z)({key:A},S(z.attrs)),L),(z.children||[]).map(function(I,$){return w(I,"".concat(A,"-").concat(z.tag,"-").concat($))})):h.createElement(z.tag,(0,i.Z)({key:A},S(z.attrs)),(z.children||[]).map(function(I,$){return w(I,"".concat(A,"-").concat(z.tag,"-").concat($))}))}function y(z){return(0,o.generate)(z)[0]}function Z(z){return z?Array.isArray(z)?z:[z]:[]}var F={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},R=` +!(function(){var mg=Object.defineProperty,pg=Object.defineProperties;var hg=Object.getOwnPropertyDescriptors;var _f=Object.getOwnPropertySymbols;var yg=Object.prototype.hasOwnProperty,Mg=Object.prototype.propertyIsEnumerable;var Hf=(Jl,Dl,vt)=>Dl in Jl?mg(Jl,Dl,{enumerable:!0,configurable:!0,writable:!0,value:vt}):Jl[Dl]=vt,Na=(Jl,Dl)=>{for(var vt in Dl||(Dl={}))yg.call(Dl,vt)&&Hf(Jl,vt,Dl[vt]);if(_f)for(var vt of _f(Dl))Mg.call(Dl,vt)&&Hf(Jl,vt,Dl[vt]);return Jl},Zs=(Jl,Dl)=>pg(Jl,hg(Dl));var xf=(Jl,Dl,vt)=>new Promise((If,M)=>{var b=t=>{try{i(vt.next(t))}catch(o){M(o)}},e=t=>{try{i(vt.throw(t))}catch(o){M(o)}},i=t=>t.done?If(t.value):Promise.resolve(t.value).then(b,e);i((vt=vt.apply(Jl,Dl)).next())});(function(){var Jl={26134:function(M,b,e){"use strict";e.r(b),e.d(b,{blue:function(){return ce},cyan:function(){return ie},geekblue:function(){return te},generate:function(){return F},gold:function(){return I},gray:function(){return k},green:function(){return H},grey:function(){return O},lime:function(){return K},magenta:function(){return G},orange:function(){return $},presetDarkPalettes:function(){return z},presetPalettes:function(){return T},presetPrimaryColors:function(){return R},purple:function(){return W},red:function(){return A},volcano:function(){return L},yellow:function(){return B}});var i=e(20117),t=e(76981),o=2,s=.16,n=.05,c=.05,l=.15,v=5,h=4,m=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function C(Y){var P=Y.r,Q=Y.g,fe=Y.b,Ce=(0,i.py)(P,Q,fe);return{h:Ce.h*360,s:Ce.s,v:Ce.v}}function p(Y){var P=Y.r,Q=Y.g,fe=Y.b;return"#".concat((0,i.vq)(P,Q,fe,!1))}function S(Y,P,Q){var fe=Q/100,Ce={r:(P.r-Y.r)*fe+Y.r,g:(P.g-Y.g)*fe+Y.g,b:(P.b-Y.b)*fe+Y.b};return Ce}function w(Y,P,Q){var fe;return Math.round(Y.h)>=60&&Math.round(Y.h)<=240?fe=Q?Math.round(Y.h)-o*P:Math.round(Y.h)+o*P:fe=Q?Math.round(Y.h)+o*P:Math.round(Y.h)-o*P,fe<0?fe+=360:fe>=360&&(fe-=360),fe}function y(Y,P,Q){if(Y.h===0&&Y.s===0)return Y.s;var fe;return Q?fe=Y.s-s*P:P===h?fe=Y.s+s:fe=Y.s+n*P,fe>1&&(fe=1),Q&&P===v&&fe>.1&&(fe=.1),fe<.06&&(fe=.06),Number(fe.toFixed(2))}function Z(Y,P,Q){var fe;return Q?fe=Y.v+c*P:fe=Y.v-l*P,fe>1&&(fe=1),Number(fe.toFixed(2))}function F(Y){for(var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Q=[],fe=(0,t.uA)(Y),Ce=v;Ce>0;Ce-=1){var ge=C(fe),Me=p((0,t.uA)({h:w(ge,Ce,!0),s:y(ge,Ce,!0),v:Z(ge,Ce,!0)}));Q.push(Me)}Q.push(p(fe));for(var Ne=1;Ne<=h;Ne+=1){var Qe=C(fe),Ve=p((0,t.uA)({h:w(Qe,Ne),s:y(Qe,Ne),v:Z(Qe,Ne)}));Q.push(Ve)}return P.theme==="dark"?m.map(function(qe){var Mt=qe.index,wt=qe.opacity,gt=p(S((0,t.uA)(P.backgroundColor||"#141414"),(0,t.uA)(Q[Mt]),wt*100));return gt}):Q}var R={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"},T={},z={};Object.keys(R).forEach(function(Y){T[Y]=F(R[Y]),T[Y].primary=T[Y][5],z[Y]=F(R[Y],{theme:"dark",backgroundColor:"#141414"}),z[Y].primary=z[Y][5]});var A=T.red,L=T.volcano,I=T.gold,$=T.orange,B=T.yellow,K=T.lime,H=T.green,ie=T.cyan,ce=T.blue,te=T.geekblue,W=T.purple,G=T.magenta,O=T.grey,k=T.grey},57793:function(M,b,e){"use strict";e.d(b,{E4:function(){return br},jG:function(){return k},t2:function(){return Je},fp:function(){return Ae},xy:function(){return Jt}});var i=e(29140),t=e(57370);function o(Tt){for(var Kt=0,ln,An=0,_n=Tt.length;_n>=4;++An,_n-=4)ln=Tt.charCodeAt(An)&255|(Tt.charCodeAt(++An)&255)<<8|(Tt.charCodeAt(++An)&255)<<16|(Tt.charCodeAt(++An)&255)<<24,ln=(ln&65535)*1540483477+((ln>>>16)*59797<<16),ln^=ln>>>24,Kt=(ln&65535)*1540483477+((ln>>>16)*59797<<16)^(Kt&65535)*1540483477+((Kt>>>16)*59797<<16);switch(_n){case 3:Kt^=(Tt.charCodeAt(An+2)&255)<<16;case 2:Kt^=(Tt.charCodeAt(An+1)&255)<<8;case 1:Kt^=Tt.charCodeAt(An)&255,Kt=(Kt&65535)*1540483477+((Kt>>>16)*59797<<16)}return Kt^=Kt>>>13,Kt=(Kt&65535)*1540483477+((Kt>>>16)*59797<<16),((Kt^Kt>>>15)>>>0).toString(36)}var s=o,n=e(58757),c=e.t(n,2),l=e(27903),v=e(7637),h=e(60412),m=e(14346),C=e(37734),p="%",S=function(){function Tt(Kt){(0,h.Z)(this,Tt),(0,C.Z)(this,"instanceId",void 0),(0,C.Z)(this,"cache",new Map),this.instanceId=Kt}return(0,m.Z)(Tt,[{key:"get",value:function(ln){return this.cache.get(ln.join(p))||null}},{key:"update",value:function(ln,An){var _n=ln.join(p),fr=this.cache.get(_n),Er=An(fr);Er===null?this.cache.delete(_n):this.cache.set(_n,Er)}}]),Tt}(),w=S,y=null,Z="data-token-hash",F="data-css-hash",R="data-cache-path",T="__cssinjs_instance__";function z(){var Tt=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var Kt=document.body.querySelectorAll("style[".concat(F,"]"))||[],ln=document.head.firstChild;Array.from(Kt).forEach(function(_n){_n[T]=_n[T]||Tt,_n[T]===Tt&&document.head.insertBefore(_n,ln)});var An={};Array.from(document.querySelectorAll("style[".concat(F,"]"))).forEach(function(_n){var fr=_n.getAttribute(F);if(An[fr]){if(_n[T]===Tt){var Er;(Er=_n.parentNode)===null||Er===void 0||Er.removeChild(_n)}}else An[fr]=!0})}return new w(Tt)}var A=n.createContext({hashPriority:"low",cache:z(),defaultCache:!0}),L=function(Kt){var ln=Kt.children,An=_objectWithoutProperties(Kt,y),_n=React.useContext(A),fr=useMemo(function(){var Er=_objectSpread({},_n);Object.keys(An).forEach(function(vr){var Ar=An[vr];An[vr]!==void 0&&(Er[vr]=Ar)});var wn=An.cache;return Er.cache=Er.cache||z(),Er.defaultCache=!wn&&_n.defaultCache,Er},[_n,An],function(Er,wn){return!isEqual(Er[0],wn[0],!0)||!isEqual(Er[1],wn[1],!0)});return React.createElement(A.Provider,{value:fr},ln)},I=A,$=e(38790),B=e(19075),K=e(39678),H=e(28314);function ie(Tt,Kt){if(Tt.length!==Kt.length)return!1;for(var ln=0;ln1&&arguments[1]!==void 0?arguments[1]:!1,Er={map:this.cache};return ln.forEach(function(wn){if(!Er)Er=void 0;else{var vr,Ar;Er=(vr=Er)===null||vr===void 0||(Ar=vr.map)===null||Ar===void 0?void 0:Ar.get(wn)}}),(An=Er)!==null&&An!==void 0&&An.value&&fr&&(Er.value[1]=this.cacheCallTimes++),(_n=Er)===null||_n===void 0?void 0:_n.value}},{key:"get",value:function(ln){var An;return(An=this.internalGet(ln,!0))===null||An===void 0?void 0:An[0]}},{key:"has",value:function(ln){return!!this.internalGet(ln)}},{key:"set",value:function(ln,An){var _n=this;if(!this.has(ln)){if(this.size()+1>Tt.MAX_CACHE_SIZE+Tt.MAX_CACHE_OFFSET){var fr=this.keys.reduce(function(Ar,oa){var ta=(0,H.Z)(Ar,2),Wa=ta[1];return _n.internalGet(oa)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),W+=1}return(0,m.Z)(Tt,[{key:"getDerivativeToken",value:function(ln){return this.derivatives.reduce(function(An,_n){return _n(ln,An)},void 0)}}]),Tt}(),O=new ce;function k(Tt){var Kt=Array.isArray(Tt)?Tt:[Tt];return O.has(Kt)||O.set(Kt,new G(Kt)),O.get(Kt)}var Y=new WeakMap;function P(Tt){var Kt=Y.get(Tt)||"";return Kt||(Object.keys(Tt).forEach(function(ln){var An=Tt[ln];Kt+=ln,An instanceof G?Kt+=An.id:An&&(0,$.Z)(An)==="object"?Kt+=P(An):Kt+=An}),Y.set(Tt,Kt)),Kt}function Q(Tt,Kt){return s("".concat(Kt,"_").concat(P(Tt)))}var fe="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Ce="_bAmBoO_";function ge(Tt,Kt,ln){if((0,B.Z)()){var An,_n;(0,K.hq)(Tt,fe);var fr=document.createElement("div");fr.style.position="fixed",fr.style.left="0",fr.style.top="0",Kt==null||Kt(fr),document.body.appendChild(fr);var Er=ln?ln(fr):(An=getComputedStyle(fr).content)===null||An===void 0?void 0:An.includes(Ce);return(_n=fr.parentNode)===null||_n===void 0||_n.removeChild(fr),(0,K.jL)(fe),Er}return!1}var Me=void 0;function Ne(){return Me===void 0&&(Me=ge("@layer ".concat(fe," { .").concat(fe,' { content: "').concat(Ce,'"!important; } }'),function(Tt){Tt.className=fe})),Me}var Qe=void 0;function Ve(){return Qe===void 0&&(Qe=ge(":where(.".concat(fe,') { content: "').concat(Ce,'"!important; }'),function(Tt){Tt.className=fe})),Qe}var qe=void 0;function Mt(){return qe===void 0&&(qe=ge(".".concat(fe," { inset-block: 93px !important; }"),function(Tt){Tt.className=fe},function(Tt){return getComputedStyle(Tt).bottom==="93px"})),qe}var wt=e(81334),gt=(0,t.Z)({},c),Lt=gt.useInsertionEffect,ke=function(Kt,ln,An){n.useMemo(Kt,An),(0,wt.Z)(function(){return ln(!0)},An)},He=Lt?function(Tt,Kt,ln){return Lt(function(){return Tt(),Kt()},ln)}:ke,et=He,Fe=(0,t.Z)({},c),ue=Fe.useInsertionEffect,V=function(Kt){var ln=[],An=!1;function _n(fr){An||ln.push(fr)}return n.useEffect(function(){return An=!1,function(){An=!0,ln.length&&ln.forEach(function(fr){return fr()})}},Kt),_n},U=function(){return function(Kt){Kt()}},N=typeof ue!="undefined"?V:U,D=N;function ee(){return!1}var se=!1;function X(){return se}var re=ee;if(!1)var Ie,Se;function he(Tt,Kt,ln,An,_n){var fr=n.useContext(I),Er=fr.cache,wn=[Tt].concat((0,i.Z)(Kt)),vr=wn.join("_"),Ar=D([vr]),oa=re(),ta=function(Ga){Er.update(wn,function(To){var vo=To||[],Jr=(0,H.Z)(vo,2),Ra=Jr[0],Ao=Ra===void 0?0:Ra,ai=Jr[1],fi=ai,go=fi||ln(),Oi=[Ao,go];return Ga?Ga(Oi):Oi})};n.useMemo(function(){ta()},[vr]);var Wa=Er.get(wn),bo=Wa[1];return et(function(){_n==null||_n(bo)},function(No){return ta(function(Ga){var To=(0,H.Z)(Ga,2),vo=To[0],Jr=To[1];return No&&vo===0&&(_n==null||_n(bo)),[vo+1,Jr]}),function(){Er.update(wn,function(Ga){var To=Ga||[],vo=(0,H.Z)(To,2),Jr=vo[0],Ra=Jr===void 0?0:Jr,Ao=vo[1],ai=Ra-1;return ai===0?(Ar(function(){return An==null?void 0:An(Ao,!1)}),null):[Ra-1,Ao]})}},[vr]),bo}var We={},de="css",le=new Map;function ve(Tt){le.set(Tt,(le.get(Tt)||0)+1)}function xe(Tt,Kt){if(typeof document!="undefined"){var ln=document.querySelectorAll("style[".concat(Z,'="').concat(Tt,'"]'));ln.forEach(function(An){if(An[T]===Kt){var _n;(_n=An.parentNode)===null||_n===void 0||_n.removeChild(An)}})}}var Ze=0;function pe(Tt,Kt){le.set(Tt,(le.get(Tt)||0)-1);var ln=Array.from(le.keys()),An=ln.filter(function(_n){var fr=le.get(_n)||0;return fr<=0});ln.length-An.length>Ze&&An.forEach(function(_n){xe(_n,Kt),le.delete(_n)})}var Je=function(Kt,ln,An,_n){var fr=An.getDerivativeToken(Kt),Er=(0,t.Z)((0,t.Z)({},fr),ln);return _n&&(Er=_n(Er)),Er};function Ae(Tt,Kt){var ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},An=(0,n.useContext)(I),_n=An.cache.instanceId,fr=ln.salt,Er=fr===void 0?"":fr,wn=ln.override,vr=wn===void 0?We:wn,Ar=ln.formatToken,oa=ln.getComputedToken,ta=n.useMemo(function(){return Object.assign.apply(Object,[{}].concat((0,i.Z)(Kt)))},[Kt]),Wa=n.useMemo(function(){return P(ta)},[ta]),bo=n.useMemo(function(){return P(vr)},[vr]),No=he("token",[Er,Tt.id,Wa,bo],function(){var Ga=oa?oa(ta,vr,Tt):Je(ta,vr,Tt,Ar),To=Q(Ga,Er);Ga._tokenKey=To,ve(To);var vo="".concat(de,"-").concat(s(To));return Ga._hashId=vo,[Ga,vo]},function(Ga){pe(Ga[0]._tokenKey,_n)});return No}var oe=e(60698),ye={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},Be=ye,De="-ms-",Pe="-moz-",we="-webkit-",Le="comm",Ye="rule",Ue="decl",dt="@page",bt="@media",ft="@import",At="@charset",Ot="@viewport",jt="@supports",Gt="@document",Xt="@namespace",Bn="@keyframes",fn="@font-face",$n="@counter-style",On="@font-feature-values",Mn="@layer",_e=Math.abs,at=String.fromCharCode,Vt=Object.assign;function an(Tt,Kt){return mt(Tt,0)^45?(((Kt<<2^mt(Tt,0))<<2^mt(Tt,1))<<2^mt(Tt,2))<<2^mt(Tt,3):0}function st(Tt){return Tt.trim()}function ut(Tt,Kt){return(Tt=Kt.exec(Tt))?Tt[0]:Tt}function $t(Tt,Kt,ln){return Tt.replace(Kt,ln)}function nt(Tt,Kt){return Tt.indexOf(Kt)}function mt(Tt,Kt){return Tt.charCodeAt(Kt)|0}function Dt(Tt,Kt,ln){return Tt.slice(Kt,ln)}function Cn(Tt){return Tt.length}function en(Tt){return Tt.length}function Hn(Tt,Kt){return Kt.push(Tt),Tt}function Rn(Tt,Kt){return Tt.map(Kt).join("")}function pr(Tt,Kt){return Tt.filter(function(ln){return!ut(ln,Kt)})}function gr(Tt,Kt){for(var ln="",An=0;An0?mt(zt,--Pr):0,mr--,Vn===10&&(mr=1,ar--),Vn}function dn(){return Vn=Pr2||lt(Vn)>3?"":" "}function yn(Tt){for(;dn();)switch(lt(Vn)){case 0:append(Dn(Pr-1),Tt);break;case 2:append(Nt(Vn),Tt);break;default:append(from(Vn),Tt)}return Tt}function kn(Tt,Kt){for(;--Kt&&dn()&&!(Vn<48||Vn>102||Vn>57&&Vn<65||Vn>70&&Vn<97););return ct(Tt,tr()+(Kt<6&&Fn()==32&&dn()==32))}function hr(Tt){for(;dn();)switch(Vn){case Tt:return Pr;case 34:case 39:Tt!==34&&Tt!==39&&hr(Vn);break;case 40:Tt===41&&hr(Tt);break;case 92:dn();break}return Pr}function cr(Tt,Kt){for(;dn()&&Tt+Vn!==57;)if(Tt+Vn===84&&Fn()===47)break;return"/*"+ct(Kt,Pr-1)+"*"+at(Tt===47?Tt:dn())}function Dn(Tt){for(;!lt(Fn());)dn();return ct(Tt,Pr)}function Rr(Tt){return St(or("",null,null,null,[""],Tt=xt(Tt),0,[0],Tt))}function or(Tt,Kt,ln,An,_n,fr,Er,wn,vr){for(var Ar=0,oa=0,ta=Er,Wa=0,bo=0,No=0,Ga=1,To=1,vo=1,Jr=0,Ra="",Ao=_n,ai=fr,fi=An,go=Ra;To;)switch(No=Jr,Jr=dn()){case 40:if(No!=108&&mt(go,ta-1)==58){nt(go+=$t(Nt(Jr),"&","&\f"),"&\f")!=-1&&(vo=-1);break}case 34:case 39:case 91:go+=Nt(Jr);break;case 9:case 10:case 13:case 32:go+=Wt(No);break;case 92:go+=kn(tr()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Hn(Ir(cr(dn(),tr()),Kt,ln,vr),vr);break;default:go+="/"}break;case 123*Ga:wn[Ar++]=Cn(go)*vo;case 125*Ga:case 59:case 0:switch(Jr){case 0:case 125:To=0;case 59+oa:vo==-1&&(go=$t(go,/\f/g,"")),bo>0&&Cn(go)-ta&&Hn(bo>32?Pn(go+";",An,ln,ta-1,vr):Pn($t(go," ","")+";",An,ln,ta-2,vr),vr);break;case 59:go+=";";default:if(Hn(fi=Gr(go,Kt,ln,Ar,oa,_n,wn,Ra,Ao=[],ai=[],ta,fr),fr),Jr===123)if(oa===0)or(go,Kt,fi,fi,Ao,fr,ta,wn,ai);else switch(Wa===99&&mt(go,3)===110?100:Wa){case 100:case 108:case 109:case 115:or(Tt,fi,fi,An&&Hn(Gr(Tt,fi,fi,0,0,_n,wn,Ra,_n,Ao=[],ta,ai),ai),_n,ai,ta,wn,An?Ao:ai);break;default:or(go,fi,fi,fi,[""],ai,0,wn,ai)}}Ar=oa=bo=0,Ga=vo=1,Ra=go="",ta=Er;break;case 58:ta=1+Cn(go),bo=No;default:if(Ga<1){if(Jr==123)--Ga;else if(Jr==125&&Ga++==0&&hn()==125)continue}switch(go+=at(Jr),Jr*Ga){case 38:vo=oa>0?1:(go+="\f",-1);break;case 44:wn[Ar++]=(Cn(go)-1)*vo,vo=1;break;case 64:Fn()===45&&(go+=Nt(dn())),Wa=Fn(),oa=ta=Cn(Ra=go+=Dn(tr())),Jr++;break;case 45:No===45&&Cn(go)==2&&(Ga=0)}}return fr}function Gr(Tt,Kt,ln,An,_n,fr,Er,wn,vr,Ar,oa,ta){for(var Wa=_n-1,bo=_n===0?fr:[""],No=en(bo),Ga=0,To=0,vo=0;Ga0?bo[Jr]+" "+Ra:$t(Ra,/&\f/g,bo[Jr])))&&(vr[vo++]=Ao);return Ft(Tt,Kt,ln,_n===0?Ye:wn,vr,Ar,oa,ta)}function Ir(Tt,Kt,ln,An){return Ft(Tt,Kt,ln,Le,at(kt()),Dt(Tt,2,-2),0,An)}function Pn(Tt,Kt,ln,An,_n){return Ft(Tt,Kt,ln,Ue,Dt(Tt,0,An),Dt(Tt,An+1,-1),An,_n)}function vn(Tt,Kt){var ln=Kt.path,An=Kt.parentSelectors;devWarning(!1,"[Ant Design CSS-in-JS] ".concat(ln?"Error in ".concat(ln,": "):"").concat(Tt).concat(An.length?" Selector: ".concat(An.join(" | ")):""))}var Nn=function(Kt,ln,An){if(Kt==="content"){var _n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,fr=["normal","none","initial","inherit","unset"];(typeof ln!="string"||fr.indexOf(ln)===-1&&!_n.test(ln)&&(ln.charAt(0)!==ln.charAt(ln.length-1)||ln.charAt(0)!=='"'&&ln.charAt(0)!=="'"))&&lintWarning("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(ln,"\"'`."),An)}},Zn=null,yr=function(Kt,ln,An){Kt==="animation"&&An.hashId&&ln!=="none"&&lintWarning("You seem to be using hashed animation '".concat(ln,"', in which case 'animationName' with Keyframe as value is recommended."),An)},$r=null;function Kr(Tt){var Kt,ln=((Kt=Tt.match(/:not\(([^)]*)\)/))===null||Kt===void 0?void 0:Kt[1])||"",An=ln.split(/(\[[^[]*])|(?=[.#])/).filter(function(_n){return _n});return An.length>1}function ra(Tt){return Tt.parentSelectors.reduce(function(Kt,ln){return Kt?ln.includes("&")?ln.replace(/&/g,Kt):"".concat(Kt," ").concat(ln):ln},"")}var Xr=function(Kt,ln,An){var _n=ra(An),fr=_n.match(/:not\([^)]*\)/g)||[];fr.length>0&&fr.some(Kr)&&lintWarning("Concat ':not' selector not support in legacy browsers.",An)},Fr=null,xa=function(Kt,ln,An){switch(Kt){case"marginLeft":case"marginRight":case"paddingLeft":case"paddingRight":case"left":case"right":case"borderLeft":case"borderLeftWidth":case"borderLeftStyle":case"borderLeftColor":case"borderRight":case"borderRightWidth":case"borderRightStyle":case"borderRightColor":case"borderTopLeftRadius":case"borderTopRightRadius":case"borderBottomLeftRadius":case"borderBottomRightRadius":lintWarning("You seem to be using non-logical property '".concat(Kt,"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An);return;case"margin":case"padding":case"borderWidth":case"borderStyle":if(typeof ln=="string"){var _n=ln.split(" ").map(function(wn){return wn.trim()});_n.length===4&&_n[1]!==_n[3]&&lintWarning("You seem to be using '".concat(Kt,"' property with different left ").concat(Kt," and right ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An)}return;case"clear":case"textAlign":(ln==="left"||ln==="right")&&lintWarning("You seem to be using non-logical value '".concat(ln,"' of ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An);return;case"borderRadius":if(typeof ln=="string"){var fr=ln.split("/").map(function(wn){return wn.trim()}),Er=fr.reduce(function(wn,vr){if(wn)return wn;var Ar=vr.split(" ").map(function(oa){return oa.trim()});return Ar.length>=2&&Ar[0]!==Ar[1]||Ar.length===3&&Ar[1]!==Ar[2]||Ar.length===4&&Ar[2]!==Ar[3]?!0:wn},!1);Er&&lintWarning("You seem to be using non-logical value '".concat(ln,"' of ").concat(Kt,", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties."),An)}return;default:}},la=null,Tn=function(Kt,ln,An){An.parentSelectors.some(function(_n){var fr=_n.split(",");return fr.some(function(Er){return Er.split("&").length>2})})&&lintWarning("Should not use more than one `&` in a selector.",An)},xn=null,Gn="data-ant-cssinjs-cache-path",Lr="_FILE_STYLE__";function zr(Tt){return Object.keys(Tt).map(function(Kt){var ln=Tt[Kt];return"".concat(Kt,":").concat(ln)}).join(";")}var Br,Ma=!0;function co(Tt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;Br=Tt,Ma=Kt}function ro(){if(!Br&&(Br={},(0,B.Z)())){var Tt=document.createElement("div");Tt.className=Gn,Tt.style.position="fixed",Tt.style.visibility="hidden",Tt.style.top="-9999px",document.body.appendChild(Tt);var Kt=getComputedStyle(Tt).content||"";Kt=Kt.replace(/^"/,"").replace(/"$/,""),Kt.split(";").forEach(function(_n){var fr=_n.split(":"),Er=(0,H.Z)(fr,2),wn=Er[0],vr=Er[1];Br[wn]=vr});var ln=document.querySelector("style[".concat(Gn,"]"));if(ln){var An;Ma=!1,(An=ln.parentNode)===null||An===void 0||An.removeChild(ln)}document.body.removeChild(Tt)}}function xo(Tt){return ro(),!!Br[Tt]}function Pa(Tt){var Kt=Br[Tt],ln=null;if(Kt&&(0,B.Z)())if(Ma)ln=Lr;else{var An=document.querySelector("style[".concat(F,'="').concat(Br[Tt],'"]'));An?ln=An.innerHTML:delete Br[Tt]}return[ln,Kt]}var Ua=(0,B.Z)(),eo="_skip_check_",Fo="_multi_value_";function jo(Tt){var Kt=gr(Rr(Tt),Or);return Kt.replace(/\{%%%\:[^;];}/g,";")}function Bo(Tt){return(0,$.Z)(Tt)==="object"&&Tt&&(eo in Tt||Fo in Tt)}function ot(Tt,Kt,ln){if(!Kt)return Tt;var An=".".concat(Kt),_n=ln==="low"?":where(".concat(An,")"):An,fr=Tt.split(",").map(function(Er){var wn,vr=Er.trim().split(/\s+/),Ar=vr[0]||"",oa=((wn=Ar.match(/^\w+/))===null||wn===void 0?void 0:wn[0])||"";return Ar="".concat(oa).concat(_n).concat(Ar.slice(oa.length)),[Ar].concat((0,i.Z)(vr.slice(1))).join(" ")});return fr.join(",")}var yt=function Tt(Kt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},An=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},_n=An.root,fr=An.injectHash,Er=An.parentSelectors,wn=ln.hashId,vr=ln.layer,Ar=ln.path,oa=ln.hashPriority,ta=ln.transformers,Wa=ta===void 0?[]:ta,bo=ln.linters,No=bo===void 0?[]:bo,Ga="",To={};function vo(fi){var go=fi.getName(wn);if(!To[go]){var Oi=Tt(fi.style,ln,{root:!1,parentSelectors:Er}),Li=(0,H.Z)(Oi,1),oi=Li[0];To[go]="@keyframes ".concat(fi.getName(wn)).concat(oi)}}function Jr(fi){var go=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return fi.forEach(function(Oi){Array.isArray(Oi)?Jr(Oi,go):Oi&&go.push(Oi)}),go}var Ra=Jr(Array.isArray(Kt)?Kt:[Kt]);if(Ra.forEach(function(fi){var go=typeof fi=="string"&&!_n?{}:fi;if(typeof go=="string")Ga+="".concat(go,` +`);else if(go._keyframe)vo(go);else{var Oi=Wa.reduce(function(Li,oi){var Di;return(oi==null||(Di=oi.visit)===null||Di===void 0?void 0:Di.call(oi,Li))||Li},go);Object.keys(Oi).forEach(function(Li){var oi=Oi[Li];if((0,$.Z)(oi)==="object"&&oi&&(Li!=="animationName"||!oi._keyframe)&&!Bo(oi)){var Di=!1,Fi=Li.trim(),wi=!1;(_n||fr)&&wn?Fi.startsWith("@")?Di=!0:Fi=ot(Li,wn,oa):_n&&!wn&&(Fi==="&"||Fi==="")&&(Fi="",wi=!0);var Ti=Tt(oi,ln,{root:wi,injectHash:Di,parentSelectors:[].concat((0,i.Z)(Er),[Fi])}),ns=(0,H.Z)(Ti,2),Zi=ns[0],ao=ns[1];To=(0,t.Z)((0,t.Z)({},To),ao),Ga+="".concat(Fi).concat(Zi)}else{let ii=function(Zo,Ko){var Ni=Zo.replace(/[A-Z]/g,function(Ki){return"-".concat(Ki.toLowerCase())}),Ji=Ko;!Be[Zo]&&typeof Ji=="number"&&Ji!==0&&(Ji="".concat(Ji,"px")),Zo==="animationName"&&Ko!==null&&Ko!==void 0&&Ko._keyframe&&(vo(Ko),Ji=Ko.getName(wn)),Ga+="".concat(Ni,":").concat(Ji,";")};var Ka,mi=(Ka=oi==null?void 0:oi.value)!==null&&Ka!==void 0?Ka:oi;(0,$.Z)(oi)==="object"&&oi!==null&&oi!==void 0&&oi[Fo]&&Array.isArray(mi)?mi.forEach(function(Zo){ii(Li,Zo)}):ii(Li,mi)}})}}),!_n)Ga="{".concat(Ga,"}");else if(vr&&Ne()){var Ao=vr.split(","),ai=Ao[Ao.length-1].trim();Ga="@layer ".concat(ai," {").concat(Ga,"}"),Ao.length>1&&(Ga="@layer ".concat(vr,"{%%%:%}").concat(Ga))}return[Ga,To]};function be(Tt,Kt){return s("".concat(Tt.join("%")).concat(Kt))}function Bt(){return null}function Jt(Tt,Kt){var ln=Tt.token,An=Tt.path,_n=Tt.hashId,fr=Tt.layer,Er=Tt.nonce,wn=Tt.clientOnly,vr=Tt.order,Ar=vr===void 0?0:vr,oa=n.useContext(I),ta=oa.autoClear,Wa=oa.mock,bo=oa.defaultCache,No=oa.hashPriority,Ga=oa.container,To=oa.ssrInline,vo=oa.transformers,Jr=oa.linters,Ra=oa.cache,Ao=ln._tokenKey,ai=[Ao].concat((0,i.Z)(An)),fi=Ua,go=he("style",ai,function(){var Fi=ai.join("|");if(xo(Fi)){var wi=Pa(Fi),Ti=(0,H.Z)(wi,2),ns=Ti[0],Zi=Ti[1];if(ns)return[ns,Ao,Zi,{},wn,Ar]}var ao=Kt(),Ka=yt(ao,{hashId:_n,hashPriority:No,layer:fr,path:An.join("-"),transformers:vo,linters:Jr}),mi=(0,H.Z)(Ka,2),ii=mi[0],Zo=mi[1],Ko=jo(ii),Ni=be(ai,Ko);return[Ko,Ao,Ni,Zo,wn,Ar]},function(Fi,wi){var Ti=(0,H.Z)(Fi,3),ns=Ti[2];(wi||ta)&&Ua&&(0,K.jL)(ns,{mark:F})},function(Fi){var wi=(0,H.Z)(Fi,4),Ti=wi[0],ns=wi[1],Zi=wi[2],ao=wi[3];if(fi&&Ti!==Lr){var Ka={mark:F,prepend:"queue",attachTo:Ga,priority:Ar},mi=typeof Er=="function"?Er():Er;mi&&(Ka.csp={nonce:mi});var ii=(0,K.hq)(Ti,Zi,Ka);ii[T]=Ra.instanceId,ii.setAttribute(Z,Ao),Object.keys(ao).forEach(function(Zo){(0,K.hq)(jo(ao[Zo]),"_effect-".concat(Zo),Ka)})}}),Oi=(0,H.Z)(go,3),Li=Oi[0],oi=Oi[1],Di=Oi[2];return function(Fi){var wi;if(!To||fi||!bo)wi=n.createElement(Bt,null);else{var Ti;wi=n.createElement("style",(0,oe.Z)({},(Ti={},(0,C.Z)(Ti,Z,oi),(0,C.Z)(Ti,F,Di),Ti),{dangerouslySetInnerHTML:{__html:Li}}))}return n.createElement(n.Fragment,null,wi,Fi)}}function Jn(Tt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln="style%",An=Array.from(Tt.cache.keys()).filter(function(Ar){return Ar.startsWith(ln)}),_n={},fr={},Er="";function wn(Ar,oa,ta){var Wa,bo=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},No=_objectSpread(_objectSpread({},bo),{},(Wa={},_defineProperty(Wa,ATTR_TOKEN,oa),_defineProperty(Wa,ATTR_MARK,ta),Wa)),Ga=Object.keys(No).map(function(To){var vo=No[To];return vo?"".concat(To,'="').concat(vo,'"'):null}).filter(function(To){return To}).join(" ");return Kt?Ar:"")}var vr=An.map(function(Ar){var oa=Ar.slice(ln.length).replace(/%/g,"|"),ta=_slicedToArray(Tt.cache.get(Ar)[1],6),Wa=ta[0],bo=ta[1],No=ta[2],Ga=ta[3],To=ta[4],vo=ta[5];if(To)return null;var Jr={"data-rc-order":"prependQueue","data-rc-priority":"".concat(vo)},Ra=wn(Wa,bo,No,Jr);fr[oa]=No,Ga&&Object.keys(Ga).forEach(function(ai){_n[ai]||(_n[ai]=!0,Ra+=wn(jo(Ga[ai]),bo,"_effect-".concat(ai),Jr))});var Ao=[vo,Ra];return Ao}).filter(function(Ar){return Ar});return vr.sort(function(Ar,oa){return Ar[0]-oa[0]}).forEach(function(Ar){var oa=_slicedToArray(Ar,2),ta=oa[1];Er+=ta}),Er+=wn(".".concat(ATTR_CACHE_MAP,'{content:"').concat(serializeCacheMap(fr),'";}'),void 0,void 0,_defineProperty({},ATTR_CACHE_MAP,ATTR_CACHE_MAP)),Er}var Kn=function(){function Tt(Kt,ln){(0,h.Z)(this,Tt),(0,C.Z)(this,"name",void 0),(0,C.Z)(this,"style",void 0),(0,C.Z)(this,"_keyframe",!0),this.name=Kt,this.style=ln}return(0,m.Z)(Tt,[{key:"getName",value:function(){var ln=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return ln?"".concat(ln,"-").concat(this.name):this.name}}]),Tt}(),br=Kn;function ea(Tt){if(typeof Tt=="number")return[[Tt],!1];var Kt=String(Tt).trim(),ln=Kt.match(/(.*)(!important)/),An=(ln?ln[1]:Kt).trim().split(/\s+/),_n="",fr=0;return[An.reduce(function(Er,wn){return wn.includes("(")?(_n+=wn,fr+=wn.split("(").length-1):wn.includes(")")?(_n+=wn,fr-=wn.split(")").length-1,fr===0&&(Er.push(_n),_n="")):fr>0?_n+=wn:Er.push(wn),Er},[]),!!ln]}function ka(Tt){return Tt.notSplit=!0,Tt}var kr={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:ka(["borderTop","borderBottom"]),borderBlockStart:ka(["borderTop"]),borderBlockEnd:ka(["borderBottom"]),borderInline:ka(["borderLeft","borderRight"]),borderInlineStart:ka(["borderLeft"]),borderInlineEnd:ka(["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 Dr(Tt,Kt){var ln=Tt;return Kt&&(ln="".concat(ln," !important")),{_skip_check_:!0,value:ln}}var wr={visit:function(Kt){var ln={};return Object.keys(Kt).forEach(function(An){var _n=Kt[An],fr=kr[An];if(fr&&(typeof _n=="number"||typeof _n=="string")){var Er=ea(_n),wn=(0,H.Z)(Er,2),vr=wn[0],Ar=wn[1];fr.length&&fr.notSplit?fr.forEach(function(oa){ln[oa]=Dr(_n,Ar)}):fr.length===1?ln[fr[0]]=Dr(_n,Ar):fr.length===2?fr.forEach(function(oa,ta){var Wa;ln[oa]=Dr((Wa=vr[ta])!==null&&Wa!==void 0?Wa:vr[0],Ar)}):fr.length===4?fr.forEach(function(oa,ta){var Wa,bo;ln[oa]=Dr((Wa=(bo=vr[ta])!==null&&bo!==void 0?bo:vr[ta-2])!==null&&Wa!==void 0?Wa:vr[0],Ar)}):ln[An]=_n}else ln[An]=_n}),ln}},sr=null,dr=/url\([^)]+\)|var\([^)]+\)|(\d*\.?\d+)px/g;function Tr(Tt,Kt){var ln=Math.pow(10,Kt+1),An=Math.floor(Tt*ln);return Math.round(An/10)*10/ln}var ga=function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=Kt.rootValue,An=ln===void 0?16:ln,_n=Kt.precision,fr=_n===void 0?5:_n,Er=Kt.mediaQuery,wn=Er===void 0?!1:Er,vr=function(ta,Wa){if(!Wa)return ta;var bo=parseFloat(Wa);if(bo<=1)return ta;var No=Tr(bo/An,fr);return"".concat(No,"rem")},Ar=function(ta){var Wa=_objectSpread({},ta);return Object.entries(ta).forEach(function(bo){var No=_slicedToArray(bo,2),Ga=No[0],To=No[1];if(typeof To=="string"&&To.includes("px")){var vo=To.replace(dr,vr);Wa[Ga]=vo}!unitless[Ga]&&typeof To=="number"&&To!==0&&(Wa[Ga]="".concat(To,"px").replace(dr,vr));var Jr=Ga.trim();if(Jr.startsWith("@")&&Jr.includes("px")&&wn){var Ra=Ga.replace(dr,vr);Wa[Ra]=Wa[Ga],delete Wa[Ga]}}),Wa};return{visit:Ar}},fo=null,Xa={supportModernCSS:function(){return Ve()&&Mt()}}},17202:function(M,b,e){"use strict";e.d(b,{Z:function(){return L}});var i=e(60698),t=e(28314),o=e(37734),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(26134),h=e(71048),m=e(57370),C=e(17332),p=["icon","className","onClick","style","primaryColor","secondaryColor"],S={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function w(I){var $=I.primaryColor,B=I.secondaryColor;S.primaryColor=$,S.secondaryColor=B||(0,C.pw)($),S.calculated=!!B}function y(){return(0,m.Z)({},S)}var Z=function($){var B=$.icon,K=$.className,H=$.onClick,ie=$.style,ce=$.primaryColor,te=$.secondaryColor,W=(0,s.Z)($,p),G=n.useRef(),O=S;if(ce&&(O={primaryColor:ce,secondaryColor:te||(0,C.pw)(ce)}),(0,C.C3)(G),(0,C.Kp)((0,C.r)(B),"icon should be icon definiton, but got ".concat(B)),!(0,C.r)(B))return null;var k=B;return k&&typeof k.icon=="function"&&(k=(0,m.Z)((0,m.Z)({},k),{},{icon:k.icon(O.primaryColor,O.secondaryColor)})),(0,C.R_)(k.icon,"svg-".concat(k.name),(0,m.Z)((0,m.Z)({className:K,onClick:H,style:ie,"data-icon":k.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},W),{},{ref:G}))};Z.displayName="IconReact",Z.getTwoToneColors=y,Z.setTwoToneColors=w;var F=Z;function R(I){var $=(0,C.H9)(I),B=(0,t.Z)($,2),K=B[0],H=B[1];return F.setTwoToneColors({primaryColor:K,secondaryColor:H})}function T(){var I=F.getTwoToneColors();return I.calculated?[I.primaryColor,I.secondaryColor]:I.primaryColor}var z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];R(v.blue.primary);var A=n.forwardRef(function(I,$){var B,K=I.className,H=I.icon,ie=I.spin,ce=I.rotate,te=I.tabIndex,W=I.onClick,G=I.twoToneColor,O=(0,s.Z)(I,z),k=n.useContext(h.Z),Y=k.prefixCls,P=Y===void 0?"anticon":Y,Q=k.rootClassName,fe=l()(Q,P,(B={},(0,o.Z)(B,"".concat(P,"-").concat(H.name),!!H.name),(0,o.Z)(B,"".concat(P,"-spin"),!!ie||H.name==="loading"),B),K),Ce=te;Ce===void 0&&W&&(Ce=-1);var ge=ce?{msTransform:"rotate(".concat(ce,"deg)"),transform:"rotate(".concat(ce,"deg)")}:void 0,Me=(0,C.H9)(G),Ne=(0,t.Z)(Me,2),Qe=Ne[0],Ve=Ne[1];return n.createElement("span",(0,i.Z)({role:"img","aria-label":H.name},O,{ref:$,tabIndex:Ce,onClick:W,className:fe}),n.createElement(F,{icon:H,primaryColor:Qe,secondaryColor:Ve,style:ge}))});A.displayName="AntdIcon",A.getTwoToneColor=T,A.setTwoToneColor=R;var L=A},71048:function(M,b,e){"use strict";var i=e(58757),t=(0,i.createContext)({});b.Z=t},39875:function(M,b,e){"use strict";var i=e(60698),t=e(57370),o=e(37734),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(21319),h=e(71048),m=e(17332),C=["className","component","viewBox","spin","rotate","tabIndex","onClick","children"],p=n.forwardRef(function(S,w){var y=S.className,Z=S.component,F=S.viewBox,R=S.spin,T=S.rotate,z=S.tabIndex,A=S.onClick,L=S.children,I=(0,s.Z)(S,C),$=n.useRef(),B=(0,v.x1)($,w);(0,m.Kp)(!!(Z||L),"Should have `component` prop or `children`."),(0,m.C3)($);var K=n.useContext(h.Z),H=K.prefixCls,ie=H===void 0?"anticon":H,ce=K.rootClassName,te=l()(ce,ie,y),W=l()((0,o.Z)({},"".concat(ie,"-spin"),!!R)),G=T?{msTransform:"rotate(".concat(T,"deg)"),transform:"rotate(".concat(T,"deg)")}:void 0,O=(0,t.Z)((0,t.Z)({},m.vD),{},{className:W,style:G,viewBox:F});F||delete O.viewBox;var k=function(){return Z?n.createElement(Z,O,L):L?((0,m.Kp)(!!F||n.Children.count(L)===1&&n.isValidElement(L)&&n.Children.only(L).type==="use","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon."),n.createElement("svg",(0,i.Z)({},O,{viewBox:F}),L)):null},Y=z;return Y===void 0&&A&&(Y=-1),n.createElement("span",(0,i.Z)({role:"img"},I,{ref:B,tabIndex:Y,onClick:A,className:te}),k())});p.displayName="AntdIcon",b.Z=p},92183:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},85678:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},35725:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},79999:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},52495:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},23605:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},10130:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},18974:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},69831:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},83720:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},56019:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},33064:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},99142:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},25755:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},12673:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},22283:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},91169:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},99534:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},23926:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={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"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},98030:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},2528:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(60698),t=e(58757),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},s=o,n=e(17202),c=function(h,m){return t.createElement(n.Z,(0,i.Z)({},h,{ref:m,icon:s}))},l=t.forwardRef(c)},17332:function(M,b,e){"use strict";e.d(b,{C3:function(){return T},H9:function(){return Z},Kp:function(){return C},R_:function(){return w},pw:function(){return y},r:function(){return p},vD:function(){return F}});var i=e(57370),t=e(38790),o=e(26134),s=e(61012),n=e.n(s),c=e(39678),l=e(4171),v=e(75556),h=e(58757),m=e(71048);function C(z,A){(0,v.ZP)(z,"[@ant-design/icons] ".concat(A))}function p(z){return(0,t.Z)(z)==="object"&&typeof z.name=="string"&&typeof z.theme=="string"&&((0,t.Z)(z.icon)==="object"||typeof z.icon=="function")}function S(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(z).reduce(function(A,L){var I=z[L];switch(L){case"class":A.className=I,delete A.class;break;default:delete A[L],A[n()(L)]=I}return A},{})}function w(z,A,L){return L?h.createElement(z.tag,(0,i.Z)((0,i.Z)({key:A},S(z.attrs)),L),(z.children||[]).map(function(I,$){return w(I,"".concat(A,"-").concat(z.tag,"-").concat($))})):h.createElement(z.tag,(0,i.Z)({key:A},S(z.attrs)),(z.children||[]).map(function(I,$){return w(I,"".concat(A,"-").concat(z.tag,"-").concat($))}))}function y(z){return(0,o.generate)(z)[0]}function Z(z){return z?Array.isArray(z)?z:[z]:[]}var F={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},R=` .anticon { display: inline-block; color: inherit; @@ -111,35 +111,35 @@ html body { overflow-y: hidden; `.concat(W?"width: calc(100% - ".concat(te,"px);"):"",` -}`),ce)}else(0,S.jL)(ce);return function(){(0,S.jL)(ce)}},[K,ce])}var T=!1;function z(B){return typeof B=="boolean"&&(T=B),T}var A=function(K){return K===!1?!1:!(0,s.Z)()||!K?null:typeof K=="string"?document.querySelector(K):typeof K=="function"?K():K},L=t.forwardRef(function(B,K){var H=B.open,ie=B.autoLock,ce=B.getContainer,te=B.debug,W=B.autoDestroy,G=W===void 0?!0:W,O=B.children,k=t.useState(H),Y=(0,i.Z)(k,2),P=Y[0],Q=Y[1],fe=P||H;t.useEffect(function(){(G||H)&&Q(H)},[H,G]);var Ce=t.useState(function(){return A(ce)}),ge=(0,i.Z)(Ce,2),Me=ge[0],Re=ge[1];t.useEffect(function(){var Fe=A(ce);Re(Fe!=null?Fe:null)});var Qe=p(fe&&!Me,te),Ve=(0,i.Z)(Qe,2),qe=Ve[0],Mt=Ve[1],wt=Me!=null?Me:qe;R(ie&&H&&(0,s.Z)()&&(wt===qe||wt===document.body));var mt=null;if(O&&(0,c.Yr)(O)&&K){var Nt=O;mt=Nt.ref}var ke=(0,c.x1)(mt,K);if(!fe||!(0,s.Z)()||Me===void 0)return null;var He=wt===!1||z(),et=O;return K&&(et=t.cloneElement(O,{ref:ke})),t.createElement(v.Provider,{value:Mt},He?et:(0,o.createPortal)(et,wt))}),I=L,$=I},99863:function(M,b,e){"use strict";e.d(b,{Z:function(){return Fe}});var i=e(57370),t=e(28314),o=e(47075),s=e(57127),n=e(87608),c=e.n(n),l=e(19425),v=e(69188),h=e(4171),m=e(51729),C=e(97071),p=e(81334),S=e(21618),w=e(58757),y=e(26736),Z=w.createContext(null),F=Z;function R(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function T(ue,V,U,N){return w.useMemo(function(){var D=R(U!=null?U:V),ee=R(N!=null?N:V),se=new Set(D),X=new Set(ee);return ue&&(se.has("hover")&&(se.delete("hover"),se.add("click")),X.has("hover")&&(X.delete("hover"),X.add("click"))),[se,X]},[ue,V,U,N])}var z=e(46499);function A(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=arguments.length>2?arguments[2]:void 0;return U?ue[0]===V[0]:ue[0]===V[0]&&ue[1]===V[1]}function L(ue,V,U,N){for(var D=U.points,ee=Object.keys(ue),se=0;se1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ue)?V:ue}function H(ue){return K(parseFloat(ue),0)}function ie(ue,V){var U=(0,i.Z)({},ue);return(V||[]).forEach(function(N){if(!(N instanceof HTMLBodyElement||N instanceof HTMLHtmlElement)){var D=$(N).getComputedStyle(N),ee=D.overflow,se=D.overflowClipMargin,X=D.borderTopWidth,re=D.borderBottomWidth,Ie=D.borderLeftWidth,Se=D.borderRightWidth,he=N.getBoundingClientRect(),We=N.offsetHeight,de=N.clientHeight,le=N.offsetWidth,ve=N.clientWidth,xe=H(X),Ze=H(re),pe=H(Ie),Je=H(Se),Ae=K(Math.round(he.width/le*1e3)/1e3),oe=K(Math.round(he.height/We*1e3)/1e3),ye=(le-ve-pe-Je)*Ae,Be=(We-de-xe-Ze)*oe,De=xe*oe,Pe=Ze*oe,we=pe*Ae,Le=Je*Ae,Ye=0,Ue=0;if(ee==="clip"){var dt=H(se);Ye=dt*Ae,Ue=dt*oe}var bt=he.x+we-Ye,ft=he.y+De-Ue,At=bt+he.width+2*Ye-we-Le-ye,Ot=ft+he.height+2*Ue-De-Pe-Be;U.left=Math.max(U.left,bt),U.top=Math.max(U.top,ft),U.right=Math.min(U.right,At),U.bottom=Math.min(U.bottom,Ot)}}),U}function ce(ue){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U="".concat(V),N=U.match(/^(.*)\%$/);return N?ue*(parseFloat(N[1])/100):parseFloat(U)}function te(ue,V){var U=V||[],N=(0,t.Z)(U,2),D=N[0],ee=N[1];return[ce(ue.width,D),ce(ue.height,ee)]}function W(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ue[0],ue[1]]}function G(ue,V){var U=V[0],N=V[1],D,ee;return U==="t"?ee=ue.y:U==="b"?ee=ue.y+ue.height:ee=ue.y+ue.height/2,N==="l"?D=ue.x:N==="r"?D=ue.x+ue.width:D=ue.x+ue.width/2,{x:D,y:ee}}function O(ue,V){var U={t:"b",b:"t",l:"r",r:"l"};return ue.map(function(N,D){return D===V?U[N]||"c":N}).join("")}function k(ue,V,U,N,D,ee,se){var X=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:D[N]||{}}),re=(0,t.Z)(X,2),Ie=re[0],Se=re[1],he=w.useRef(0),We=w.useMemo(function(){return V?B(V):[]},[V]),de=w.useRef({}),le=function(){de.current={}};ue||le();var ve=(0,m.Z)(function(){if(V&&U&&ue){let jr=function(co,Qa){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn,Kt=jt.x+co,sn=jt.y+Qa,An=Kt+at,_n=sn+_e,fr=Math.max(Kt,Tt.left),Er=Math.max(sn,Tt.top),wn=Math.min(An,Tt.right),vr=Math.min(_n,Tt.bottom);return Math.max(0,(wn-fr)*(vr-Er))},va=function(){Zn=jt.y+Wt,yr=Zn+_e,Fr=jt.x+_t,Kr=Fr+at};var pe,Je,Ae=V,oe=Ae.ownerDocument,ye=$(Ae),Be=ye.getComputedStyle(Ae),De=Be.width,Pe=Be.height,we=Be.position,Le=Ae.style.left,Ye=Ae.style.top,Ue=Ae.style.right,dt=Ae.style.bottom,bt=(0,i.Z)((0,i.Z)({},D[N]),ee),ft=oe.createElement("div");(pe=Ae.parentElement)===null||pe===void 0||pe.appendChild(ft),ft.style.left="".concat(Ae.offsetLeft,"px"),ft.style.top="".concat(Ae.offsetTop,"px"),ft.style.position=we,ft.style.height="".concat(Ae.offsetHeight,"px"),ft.style.width="".concat(Ae.offsetWidth,"px"),Ae.style.left="0",Ae.style.top="0",Ae.style.right="auto",Ae.style.bottom="auto";var At;if(Array.isArray(U))At={x:U[0],y:U[1],width:0,height:0};else{var Ot=U.getBoundingClientRect();At={x:Ot.x,y:Ot.y,width:Ot.width,height:Ot.height}}var jt=Ae.getBoundingClientRect(),Gt=oe.documentElement,Xt=Gt.clientWidth,zn=Gt.clientHeight,fn=Gt.scrollWidth,Bn=Gt.scrollHeight,On=Gt.scrollTop,Mn=Gt.scrollLeft,_e=jt.height,at=jt.width,Vt=At.height,rn=At.width,st={left:0,top:0,right:Xt,bottom:zn},ut={left:-Mn,top:-On,right:fn-Mn,bottom:Bn-On},$t=bt.htmlRegion,nt="visible",gt="visibleFirst";$t!=="scroll"&&$t!==gt&&($t=nt);var Dt=$t===gt,xn=ie(ut,We),tn=ie(st,We),Hn=$t===nt?tn:xn,Nn=Dt?tn:Hn;Ae.style.left="auto",Ae.style.top="auto",Ae.style.right="0",Ae.style.bottom="0";var pr=Ae.getBoundingClientRect();Ae.style.left=Le,Ae.style.top=Ye,Ae.style.right=Ue,Ae.style.bottom=dt,(Je=Ae.parentElement)===null||Je===void 0||Je.removeChild(ft);var gr=K(Math.round(at/parseFloat(De)*1e3)/1e3),Or=K(Math.round(_e/parseFloat(Pe)*1e3)/1e3);if(gr===0||Or===0||(0,v.S)(U)&&!(0,z.Z)(U))return;var ar=bt.offset,mr=bt.targetOffset,ea=te(jt,ar),Lr=(0,t.Z)(ea,2),Kn=Lr[0],zt=Lr[1],Ft=te(At,mr),on=(0,t.Z)(Ft,2),nn=on[0],kt=on[1];At.x-=nn,At.y-=kt;var hn=bt.points||[],dn=(0,t.Z)(hn,2),$n=dn[0],qn=dn[1],ct=W(qn),lt=W($n),xt=G(At,ct),St=G(jt,lt),Lt=(0,i.Z)({},bt),_t=xt.x-St.x+Kn,Wt=xt.y-St.y+zt,yn=jr(_t,Wt),kn=jr(_t,Wt,tn),hr=G(At,["t","l"]),cr=G(jt,["t","l"]),Dn=G(At,["b","r"]),Rr=G(jt,["b","r"]),or=bt.overflow||{},Gr=or.adjustX,Ir=or.adjustY,jn=or.shiftX,vn=or.shiftY,Ln=function(Qa){return typeof Qa=="boolean"?Qa:Qa>=0},Zn,yr,Fr,Kr;va();var aa=Ln(Ir),Jr=lt[0]===ct[0];if(aa&<[0]==="t"&&(yr>Nn.bottom||de.current.bt)){var Zr=Wt;Jr?Zr-=_e-Vt:Zr=hr.y-Rr.y-zt;var Ca=jr(_t,Zr),la=jr(_t,Zr,tn);Ca>yn||Ca===yn&&(!Dt||la>=kn)?(de.current.bt=!0,Wt=Zr,zt=-zt,Lt.points=[O(lt,0),O(ct,0)]):de.current.bt=!1}if(aa&<[0]==="b"&&(Znyn||In===yn&&(!Dt||Yn>=kn)?(de.current.tb=!0,Wt=Tn,zt=-zt,Lt.points=[O(lt,0),O(ct,0)]):de.current.tb=!1}var Nr=Ln(Gr),zr=lt[1]===ct[1];if(Nr&<[1]==="l"&&(Kr>Nn.right||de.current.rl)){var Br=_t;zr?Br-=at-rn:Br=hr.x-Rr.x-Kn;var Ma=jr(Br,Wt),uo=jr(Br,Wt,tn);Ma>yn||Ma===yn&&(!Dt||uo>=kn)?(de.current.rl=!0,_t=Br,Kn=-Kn,Lt.points=[O(lt,1),O(ct,1)]):de.current.rl=!1}if(Nr&<[1]==="r"&&(Fryn||Io===yn&&(!Dt||ja>=kn)?(de.current.lr=!0,_t=to,Kn=-Kn,Lt.points=[O(lt,1),O(ct,1)]):de.current.lr=!1}va();var Ua=jn===!0?0:jn;typeof Ua=="number"&&(Frtn.right&&(_t-=Kr-tn.right-Kn,At.x>tn.right-Ua&&(_t+=At.x-tn.right+Ua)));var qa=vn===!0?0:vn;typeof qa=="number"&&(Zntn.bottom&&(Wt-=yr-tn.bottom-zt,At.y>tn.bottom-qa&&(Wt+=At.y-tn.bottom+qa)));var Fo=jt.x+_t,Lo=Fo+at,Bo=jt.y+Wt,ot=Bo+_e,yt=At.x,be=yt+rn,Bt=At.y,Jt=Bt+Vt,Xn=Math.max(Fo,yt),Gn=Math.min(Lo,be),br=(Xn+Gn)/2,ta=br-Fo,ka=Math.max(Bo,Bt),kr=Math.min(ot,Jt),Dr=(ka+kr)/2,wr=Dr-Bo;se==null||se(V,Lt);var sr=pr.right-jt.x-(_t+jt.width),dr=pr.bottom-jt.y-(Wt+jt.height);Se({ready:!0,offsetX:_t/gr,offsetY:Wt/Or,offsetR:sr/gr,offsetB:dr/Or,arrowX:ta/gr,arrowY:wr/Or,scaleX:gr,scaleY:Or,align:Lt})}}),xe=function(){he.current+=1;var Je=he.current;Promise.resolve().then(function(){he.current===Je&&ve()})},Ze=function(){Se(function(Je){return(0,i.Z)((0,i.Z)({},Je),{},{ready:!1})})};return(0,p.Z)(Ze,[N]),(0,p.Z)(function(){ue||Ze()},[ue]),[Ie.ready,Ie.offsetX,Ie.offsetY,Ie.offsetR,Ie.offsetB,Ie.arrowX,Ie.arrowY,Ie.scaleX,Ie.scaleY,Ie.align,xe]}var Y=e(29140);function P(ue,V,U,N,D){(0,p.Z)(function(){if(ue&&V&&U){let he=function(){N(),D()};var ee=V,se=U,X=B(ee),re=B(se),Ie=$(se),Se=new Set([Ie].concat((0,Y.Z)(X),(0,Y.Z)(re)));return Se.forEach(function(We){We.addEventListener("scroll",he,{passive:!0})}),Ie.addEventListener("resize",he,{passive:!0}),N(),function(){Se.forEach(function(We){We.removeEventListener("scroll",he),Ie.removeEventListener("resize",he)})}}},[ue,V,U])}var Q=e(71219),fe=e(61834);function Ce(ue,V,U,N,D,ee,se,X){var re=w.useRef(ue),Ie=w.useRef(!1);re.current!==ue&&(Ie.current=!0,re.current=ue),w.useEffect(function(){var Se=(0,fe.Z)(function(){Ie.current=!1});return function(){fe.Z.cancel(Se)}},[ue]),w.useEffect(function(){if(V&&N&&(!D||ee)){var Se=function(){var we=!1,Le=function(dt){var bt=dt.target;we=se(bt)},Ye=function(dt){var bt=dt.target;!Ie.current&&re.current&&!we&&!se(bt)&&X(!1)};return[Le,Ye]},he=Se(),We=(0,t.Z)(he,2),de=We[0],le=We[1],ve=Se(),xe=(0,t.Z)(ve,2),Ze=xe[0],pe=xe[1],Je=$(N);Je.addEventListener("mousedown",de,!0),Je.addEventListener("click",le,!0),Je.addEventListener("contextmenu",le,!0);var Ae=(0,h.A)(U);if(Ae&&(Ae.addEventListener("mousedown",Ze,!0),Ae.addEventListener("click",pe,!0),Ae.addEventListener("contextmenu",pe,!0)),!1)var oe,ye,Be,De;return function(){Je.removeEventListener("mousedown",de,!0),Je.removeEventListener("click",le,!0),Je.removeEventListener("contextmenu",le,!0),Ae&&(Ae.removeEventListener("mousedown",Ze,!0),Ae.removeEventListener("click",pe,!0),Ae.removeEventListener("contextmenu",pe,!0))}}},[V,U,N,D,ee])}var ge=e(60698),Me=e(17598),Re=e(21319);function Qe(ue){var V=ue.prefixCls,U=ue.align,N=ue.arrow,D=ue.arrowPos,ee=N||{},se=ee.className,X=ee.content,re=D.x,Ie=re===void 0?0:re,Se=D.y,he=Se===void 0?0:Se,We=w.useRef();if(!U||!U.points)return null;var de={position:"absolute"};if(U.autoArrow!==!1){var le=U.points[0],ve=U.points[1],xe=le[0],Ze=le[1],pe=ve[0],Je=ve[1];xe===pe||!["t","b"].includes(xe)?de.top=he:xe==="t"?de.top=0:de.bottom=0,Ze===Je||!["l","r"].includes(Ze)?de.left=Ie:Ze==="l"?de.left=0:de.right=0}return w.createElement("div",{ref:We,className:c()("".concat(V,"-arrow"),se),style:de},X)}function Ve(ue){var V=ue.prefixCls,U=ue.open,N=ue.zIndex,D=ue.mask,ee=ue.motion;return D?w.createElement(Me.ZP,(0,ge.Z)({},ee,{motionAppear:!0,visible:U,removeOnLeave:!0}),function(se){var X=se.className;return w.createElement("div",{style:{zIndex:N},className:c()("".concat(V,"-mask"),X)})}):null}var qe=w.memo(function(ue){var V=ue.children;return V},function(ue,V){return V.cache}),Mt=qe,wt=w.forwardRef(function(ue,V){var U=ue.popup,N=ue.className,D=ue.prefixCls,ee=ue.style,se=ue.target,X=ue.onVisibleChanged,re=ue.open,Ie=ue.keepDom,Se=ue.onClick,he=ue.mask,We=ue.arrow,de=ue.arrowPos,le=ue.align,ve=ue.motion,xe=ue.maskMotion,Ze=ue.forceRender,pe=ue.getPopupContainer,Je=ue.autoDestroy,Ae=ue.portal,oe=ue.zIndex,ye=ue.onMouseEnter,Be=ue.onMouseLeave,De=ue.onPointerEnter,Pe=ue.ready,we=ue.offsetX,Le=ue.offsetY,Ye=ue.offsetR,Ue=ue.offsetB,dt=ue.onAlign,bt=ue.onPrepare,ft=ue.stretch,At=ue.targetWidth,Ot=ue.targetHeight,jt=typeof U=="function"?U():U,Gt=re||Ie,Xt=(pe==null?void 0:pe.length)>0,zn=w.useState(!pe||!Xt),fn=(0,t.Z)(zn,2),Bn=fn[0],On=fn[1];if((0,p.Z)(function(){!Bn&&Xt&&se&&On(!0)},[Bn,Xt,se]),!Bn)return null;var Mn="auto",_e={left:"-1000vw",top:"-1000vh",right:Mn,bottom:Mn};if(Pe||!re){var at=le.points,Vt=le._experimental,rn=Vt==null?void 0:Vt.dynamicInset,st=rn&&at[0][1]==="r",ut=rn&&at[0][0]==="b";st?(_e.right=Ye,_e.left=Mn):(_e.left=we,_e.right=Mn),ut?(_e.bottom=Ue,_e.top=Mn):(_e.top=Le,_e.bottom=Mn)}var $t={};return ft&&(ft.includes("height")&&Ot?$t.height=Ot:ft.includes("minHeight")&&Ot&&($t.minHeight=Ot),ft.includes("width")&&At?$t.width=At:ft.includes("minWidth")&&At&&($t.minWidth=At)),re||($t.pointerEvents="none"),w.createElement(Ae,{open:Ze||Gt,getContainer:pe&&function(){return pe(se)},autoDestroy:Je},w.createElement(Ve,{prefixCls:D,open:re,zIndex:oe,mask:he,motion:xe}),w.createElement(l.Z,{onResize:dt,disabled:!re},function(nt){return w.createElement(Me.ZP,(0,ge.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ze,leavedClassName:"".concat(D,"-hidden")},ve,{onAppearPrepare:bt,onEnterPrepare:bt,visible:re,onVisibleChanged:function(Dt){var xn;ve==null||(xn=ve.onVisibleChanged)===null||xn===void 0||xn.call(ve,Dt),X(Dt)}}),function(gt,Dt){var xn=gt.className,tn=gt.style,Hn=c()(D,xn,N);return w.createElement("div",{ref:(0,Re.sQ)(nt,V,Dt),className:Hn,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(de.x||0,"px"),"--arrow-y":"".concat(de.y||0,"px")},_e),$t),tn),{},{boxSizing:"border-box",zIndex:oe},ee),onMouseEnter:ye,onMouseLeave:Be,onPointerEnter:De,onClick:Se},We&&w.createElement(Qe,{prefixCls:D,arrow:We,arrowPos:de,align:le}),w.createElement(Mt,{cache:!re},jt))})}))}),mt=wt,Nt=w.forwardRef(function(ue,V){var U=ue.children,N=ue.getTriggerDOMNode,D=(0,Re.Yr)(U),ee=w.useCallback(function(X){(0,Re.mH)(V,N?N(X):X)},[N]),se=(0,Re.x1)(ee,U.ref);return D?w.cloneElement(U,{ref:se}):U}),ke=Nt,He=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function et(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.Z,V=w.forwardRef(function(U,N){var D=U.prefixCls,ee=D===void 0?"rc-trigger-popup":D,se=U.children,X=U.action,re=X===void 0?"hover":X,Ie=U.showAction,Se=U.hideAction,he=U.popupVisible,We=U.defaultPopupVisible,de=U.onPopupVisibleChange,le=U.afterPopupVisibleChange,ve=U.mouseEnterDelay,xe=U.mouseLeaveDelay,Ze=xe===void 0?.1:xe,pe=U.focusDelay,Je=U.blurDelay,Ae=U.mask,oe=U.maskClosable,ye=oe===void 0?!0:oe,Be=U.getPopupContainer,De=U.forceRender,Pe=U.autoDestroy,we=U.destroyPopupOnHide,Le=U.popup,Ye=U.popupClassName,Ue=U.popupStyle,dt=U.popupPlacement,bt=U.builtinPlacements,ft=bt===void 0?{}:bt,At=U.popupAlign,Ot=U.zIndex,jt=U.stretch,Gt=U.getPopupClassNameFromAlign,Xt=U.alignPoint,zn=U.onPopupClick,fn=U.onPopupAlign,Bn=U.arrow,On=U.popupMotion,Mn=U.maskMotion,_e=U.popupTransitionName,at=U.popupAnimation,Vt=U.maskTransitionName,rn=U.maskAnimation,st=U.className,ut=U.getTriggerDOMNode,$t=(0,o.Z)(U,He),nt=Pe||we||!1,gt=w.useState(!1),Dt=(0,t.Z)(gt,2),xn=Dt[0],tn=Dt[1];(0,p.Z)(function(){tn((0,S.Z)())},[]);var Hn=w.useRef({}),Nn=w.useContext(F),pr=w.useMemo(function(){return{registerSubPopup:function(vr,Ar){Hn.current[vr]=Ar,Nn==null||Nn.registerSubPopup(vr,Ar)}}},[Nn]),gr=(0,C.Z)(),Or=w.useState(null),ar=(0,t.Z)(Or,2),mr=ar[0],ea=ar[1],Lr=(0,m.Z)(function(wn){(0,v.S)(wn)&&mr!==wn&&ea(wn),Nn==null||Nn.registerSubPopup(gr,wn)}),Kn=w.useState(null),zt=(0,t.Z)(Kn,2),Ft=zt[0],on=zt[1],nn=(0,m.Z)(function(wn){(0,v.S)(wn)&&Ft!==wn&&on(wn)}),kt=w.Children.only(se),hn=(kt==null?void 0:kt.props)||{},dn={},$n=(0,m.Z)(function(wn){var vr,Ar,ia=Ft;return(ia==null?void 0:ia.contains(wn))||((vr=(0,h.A)(ia))===null||vr===void 0?void 0:vr.host)===wn||wn===ia||(mr==null?void 0:mr.contains(wn))||((Ar=(0,h.A)(mr))===null||Ar===void 0?void 0:Ar.host)===wn||wn===mr||Object.values(Hn.current).some(function(na){return(na==null?void 0:na.contains(wn))||wn===na})}),qn=I(ee,On,at,_e),ct=I(ee,Mn,rn,Vt),lt=w.useState(We||!1),xt=(0,t.Z)(lt,2),St=xt[0],Lt=xt[1],_t=he!=null?he:St,Wt=(0,m.Z)(function(wn){he===void 0&&Lt(wn)});(0,p.Z)(function(){Lt(he||!1)},[he]);var yn=w.useRef(_t);yn.current=_t;var kn=(0,m.Z)(function(wn){(0,y.flushSync)(function(){_t!==wn&&(Wt(wn),de==null||de(wn))})}),hr=w.useRef(),cr=function(){clearTimeout(hr.current)},Dn=function(vr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;cr(),Ar===0?kn(vr):hr.current=setTimeout(function(){kn(vr)},Ar*1e3)};w.useEffect(function(){return cr},[]);var Rr=w.useState(!1),or=(0,t.Z)(Rr,2),Gr=or[0],Ir=or[1];(0,p.Z)(function(wn){(!wn||_t)&&Ir(!0)},[_t]);var jn=w.useState(null),vn=(0,t.Z)(jn,2),Ln=vn[0],Zn=vn[1],yr=w.useState([0,0]),Fr=(0,t.Z)(yr,2),Kr=Fr[0],aa=Fr[1],Jr=function(vr){aa([vr.clientX,vr.clientY])},Zr=k(_t,mr,Xt?Kr:Ft,dt,ft,At,fn),Ca=(0,t.Z)(Zr,11),la=Ca[0],Tn=Ca[1],In=Ca[2],Yn=Ca[3],Nr=Ca[4],zr=Ca[5],Br=Ca[6],Ma=Ca[7],uo=Ca[8],to=Ca[9],Io=Ca[10],ja=T(xn,re,Ie,Se),Ua=(0,t.Z)(ja,2),qa=Ua[0],Fo=Ua[1],Lo=qa.has("click"),Bo=Fo.has("click")||Fo.has("contextMenu"),ot=(0,m.Z)(function(){Gr||Io()}),yt=function(){yn.current&&Xt&&Bo&&Dn(!1)};P(_t,Ft,mr,ot,yt),(0,p.Z)(function(){ot()},[Kr,dt]),(0,p.Z)(function(){_t&&!(ft!=null&&ft[dt])&&ot()},[JSON.stringify(At)]);var be=w.useMemo(function(){var wn=L(ft,ee,to,Xt);return c()(wn,Gt==null?void 0:Gt(to))},[to,Gt,ft,ee,Xt]);w.useImperativeHandle(N,function(){return{forceAlign:ot}});var Bt=w.useState(0),Jt=(0,t.Z)(Bt,2),Xn=Jt[0],Gn=Jt[1],br=w.useState(0),ta=(0,t.Z)(br,2),ka=ta[0],kr=ta[1],Dr=function(){if(jt&&Ft){var vr=Ft.getBoundingClientRect();Gn(vr.width),kr(vr.height)}},wr=function(){Dr(),ot()},sr=function(vr){Ir(!1),Io(),le==null||le(vr)},dr=function(){return new Promise(function(vr){Dr(),Zn(function(){return vr})})};(0,p.Z)(function(){Ln&&(Io(),Ln(),Zn(null))},[Ln]);function jr(wn,vr,Ar,ia){dn[wn]=function(na){var Wa;ia==null||ia(na),Dn(vr,Ar);for(var Eo=arguments.length,Ro=new Array(Eo>1?Eo-1:0),Ka=1;Ka1?Ar-1:0),na=1;na1?Ar-1:0),na=1;naDate.now()/1e3};function n(){const{performance:y}=o;if(!y||!y.now)return;const Z=Date.now()-y.now();return{now:()=>y.now(),timeOrigin:Z}}function c(){try{return(0,i.l$)(M,"perf_hooks").performance}catch(y){return}}const l=(0,i.KV)()?c():n(),v=l===void 0?s:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},h=s.nowSeconds.bind(s),m=v.nowSeconds.bind(v),C=null,p=l!==void 0;let S;const w=(()=>{const{performance:y}=o;if(!y||!y.now){S="none";return}const Z=3600*1e3,F=y.now(),R=Date.now(),T=y.timeOrigin?Math.abs(y.timeOrigin+F-R):Z,z=T_.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,Oe=>(Oe^(me()&15)>>Oe/4).toString(16))}function L(q){return q.exception&&q.exception.values?q.exception.values[0]:void 0}function I(q){const{message:_,event_id:me}=q;if(_)return _;const Oe=L(q);return Oe?Oe.type&&Oe.value?`${Oe.type}: ${Oe.value}`:Oe.type||Oe.value||me||"":me||""}function $(q,_,me){const Oe=q.exception=q.exception||{},Xe=Oe.values=Oe.values||[],pt=Xe[0]=Xe[0]||{};pt.value||(pt.value=_||""),pt.type||(pt.type=me||"Error")}function B(q,_){const me=L(q);if(!me)return;const Oe={type:"generic",handled:!0},Xe=me.mechanism;if(me.mechanism=La(La(La({},Oe),Xe),_),_&&"data"in _){const pt=La(La({},Xe&&Xe.data),_.data);me.mechanism.data=pt}}const K=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function H(q){const _=q.match(K)||[],me=parseInt(_[1],10),Oe=parseInt(_[2],10),Xe=parseInt(_[3],10);return{buildmetadata:_[5],major:isNaN(me)?void 0:me,minor:isNaN(Oe)?void 0:Oe,patch:isNaN(Xe)?void 0:Xe,prerelease:_[4]}}function ie(q,_,me=5){if(_.lineno===void 0)return;const Oe=q.length,Xe=Math.max(Math.min(Oe-1,_.lineno-1),0);_.pre_context=q.slice(Math.max(0,Xe-me),Xe).map(pt=>snipLine(pt,0)),_.context_line=snipLine(q[Math.min(Oe-1,Xe)],_.colno||0),_.post_context=q.slice(Math.min(Xe+1,Oe),Xe+1+me).map(pt=>snipLine(pt,0))}function ce(q){if(q&&q.__sentry_captured__)return!0;try{addNonEnumerableProperty(q,"__sentry_captured__",!0)}catch(_){}return!1}function te(q){return Array.isArray(q)?q:[q]}var W=e(43038);const G="Sentry Logger ",O=["debug","info","warn","error","log","assert","trace"];function k(q){if(!("console"in z.n2))return q();const _=z.n2.console,me={};O.forEach(Oe=>{const Xe=_[Oe]&&_[Oe].__sentry_original__;Oe in _&&Xe&&(me[Oe]=_[Oe],_[Oe]=Xe)});try{return q()}finally{Object.keys(me).forEach(Oe=>{_[Oe]=me[Oe]})}}function Y(){let q=!1;const _={enable:()=>{q=!0},disable:()=>{q=!1}};return typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?O.forEach(me=>{_[me]=(...Oe)=>{q&&k(()=>{z.n2.console[me](`${G}[${me}]:`,...Oe)})}}):O.forEach(me=>{_[me]=()=>{}}),_}let P;typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?P=(0,z.YO)("logger",Y):P=Y();const Q="production",fe=Object.prototype.toString;function Ce(q){switch(fe.call(q)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fe(q,Error)}}function ge(q,_){return fe.call(q)===`[object ${_}]`}function Me(q){return ge(q,"ErrorEvent")}function Re(q){return ge(q,"DOMError")}function Qe(q){return ge(q,"DOMException")}function Ve(q){return ge(q,"String")}function qe(q){return q===null||typeof q!="object"&&typeof q!="function"}function Mt(q){return ge(q,"Object")}function wt(q){return typeof Event!="undefined"&&Fe(q,Event)}function mt(q){return typeof Element!="undefined"&&Fe(q,Element)}function Nt(q){return ge(q,"RegExp")}function ke(q){return!!(q&&q.then&&typeof q.then=="function")}function He(q){return Mt(q)&&"nativeEvent"in q&&"preventDefault"in q&&"stopPropagation"in q}function et(q){return typeof q=="number"&&q!==q}function Fe(q,_){try{return q instanceof _}catch(me){return!1}}var ue;(function(q){q[q.PENDING=0]="PENDING";const me=1;q[q.RESOLVED=me]="RESOLVED";const Oe=2;q[q.REJECTED=Oe]="REJECTED"})(ue||(ue={}));function V(q){return new N(_=>{_(q)})}function U(q){return new N((_,me)=>{me(q)})}class N{constructor(_){N.prototype.__init.call(this),N.prototype.__init2.call(this),N.prototype.__init3.call(this),N.prototype.__init4.call(this),this._state=ue.PENDING,this._handlers=[];try{_(this._resolve,this._reject)}catch(me){this._reject(me)}}then(_,me){return new N((Oe,Xe)=>{this._handlers.push([!1,pt=>{if(!_)Oe(pt);else try{Oe(_(pt))}catch(Ht){Xe(Ht)}},pt=>{if(!me)Xe(pt);else try{Oe(me(pt))}catch(Ht){Xe(Ht)}}]),this._executeHandlers()})}catch(_){return this.then(me=>me,_)}finally(_){return new N((me,Oe)=>{let Xe,pt;return this.then(Ht=>{pt=!1,Xe=Ht,_&&_()},Ht=>{pt=!0,Xe=Ht,_&&_()}).then(()=>{if(pt){Oe(Xe);return}me(Xe)})})}__init(){this._resolve=_=>{this._setResult(ue.RESOLVED,_)}}__init2(){this._reject=_=>{this._setResult(ue.REJECTED,_)}}__init3(){this._setResult=(_,me)=>{if(this._state===ue.PENDING){if(ke(me)){me.then(this._resolve,this._reject);return}this._state=_,this._value=me,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ue.PENDING)return;const _=this._handlers.slice();this._handlers=[],_.forEach(me=>{me[0]||(this._state===ue.RESOLVED&&me[1](this._value),this._state===ue.REJECTED&&me[2](this._value),me[0]=!0)})}}}const D=(0,z.Rf)(),ee=80;function se(q,_={}){try{let me=q;const Oe=5,Xe=[];let pt=0,Ht=0;const an=" > ",En=an.length;let Qn;const _r=Array.isArray(_)?_:_.keyAttrs,Hr=!Array.isArray(_)&&_.maxStringLength||ee;for(;me&&pt++1&&Ht+Xe.length*En+Qn.length>=Hr));)Xe.push(Qn),Ht+=Qn.length,me=me.parentNode;return Xe.reverse().join(an)}catch(me){return""}}function X(q,_){const me=q,Oe=[];let Xe,pt,Ht,an,En;if(!me||!me.tagName)return"";Oe.push(me.tagName.toLowerCase());const Qn=_&&_.length?_.filter(Hr=>me.getAttribute(Hr)).map(Hr=>[Hr,me.getAttribute(Hr)]):null;if(Qn&&Qn.length)Qn.forEach(Hr=>{Oe.push(`[${Hr[0]}="${Hr[1]}"]`)});else if(me.id&&Oe.push(`#${me.id}`),Xe=me.className,Xe&&Ve(Xe))for(pt=Xe.split(/\s+/),En=0;EnOe&&(_=Oe);let Xe=Math.max(_-60,0);Xe<5&&(Xe=0);let pt=Math.min(Xe+140,Oe);return pt>Oe-5&&(pt=Oe),pt===Oe&&(Xe=Math.max(pt-140,0)),me=me.slice(Xe,pt),Xe>0&&(me=`'{snip} ${me}`),ptde(q,Oe,me))}function ve(q,_,me){if(!(_ in q))return;const Oe=q[_],Xe=me(Oe);if(typeof Xe=="function")try{Ze(Xe,Oe)}catch(pt){}q[_]=Xe}function xe(q,_,me){Object.defineProperty(q,_,{value:me,writable:!0,configurable:!0})}function Ze(q,_){const me=_.prototype||{};q.prototype=_.prototype=me,xe(q,"__sentry_original__",_)}function pe(q){return q.__sentry_original__}function Je(q){return Object.keys(q).map(_=>`${encodeURIComponent(_)}=${encodeURIComponent(q[_])}`).join("&")}function Ae(q){if(Ce(q))return La({message:q.message,name:q.name,stack:q.stack},ye(q));if(wt(q)){const _=La({type:q.type,target:oe(q.target),currentTarget:oe(q.currentTarget)},ye(q));return typeof CustomEvent!="undefined"&&Fe(q,CustomEvent)&&(_.detail=q.detail),_}else return q}function oe(q){try{return mt(q)?se(q):Object.prototype.toString.call(q)}catch(_){return""}}function ye(q){if(typeof q=="object"&&q!==null){const _={};for(const me in q)Object.prototype.hasOwnProperty.call(q,me)&&(_[me]=q[me]);return _}else return{}}function Be(q,_=40){const me=Object.keys(Ae(q));if(me.sort(),!me.length)return"[object has no keys]";if(me[0].length>=_)return Se(me[0],_);for(let Oe=me.length;Oe>0;Oe--){const Xe=me.slice(0,Oe).join(", ");if(!(Xe.length>_))return Oe===me.length?Xe:Se(Xe,_)}return""}function De(q){return Pe(q,new Map)}function Pe(q,_){if(Mt(q)){const me=_.get(q);if(me!==void 0)return me;const Oe={};_.set(q,Oe);for(const Xe of Object.keys(q))typeof q[Xe]!="undefined"&&(Oe[Xe]=Pe(q[Xe],_));return Oe}if(Array.isArray(q)){const me=_.get(q);if(me!==void 0)return me;const Oe=[];return _.set(q,Oe),q.forEach(Xe=>{Oe.push(Pe(Xe,_))}),Oe}return q}function we(q){let _;switch(!0){case q==null:_=new String(q);break;case(typeof q=="symbol"||typeof q=="bigint"):_=Object(q);break;case isPrimitive(q):_=new q.constructor(q);break;default:_=q;break}return _}function Le(q){const _=(0,W.ph)(),me={sid:A(),init:!0,timestamp:_,started:_,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>dt(me)};return q&&Ye(me,q),me}function Ye(q,_={}){if(_.user&&(!q.ipAddress&&_.user.ip_address&&(q.ipAddress=_.user.ip_address),!q.did&&!_.did&&(q.did=_.user.id||_.user.email||_.user.username)),q.timestamp=_.timestamp||(0,W.ph)(),_.ignoreDuration&&(q.ignoreDuration=_.ignoreDuration),_.sid&&(q.sid=_.sid.length===32?_.sid:A()),_.init!==void 0&&(q.init=_.init),!q.did&&_.did&&(q.did=`${_.did}`),typeof _.started=="number"&&(q.started=_.started),q.ignoreDuration)q.duration=void 0;else if(typeof _.duration=="number")q.duration=_.duration;else{const me=q.timestamp-q.started;q.duration=me>=0?me:0}_.release&&(q.release=_.release),_.environment&&(q.environment=_.environment),!q.ipAddress&&_.ipAddress&&(q.ipAddress=_.ipAddress),!q.userAgent&&_.userAgent&&(q.userAgent=_.userAgent),typeof _.errors=="number"&&(q.errors=_.errors),_.status&&(q.status=_.status)}function Ue(q,_){let me={};_?me={status:_}:q.status==="ok"&&(me={status:"exited"}),Ye(q,me)}function dt(q){return De({sid:`${q.sid}`,init:q.init,started:new Date(q.started*1e3).toISOString(),timestamp:new Date(q.timestamp*1e3).toISOString(),status:q.status,errors:q.errors,did:typeof q.did=="number"||typeof q.did=="string"?`${q.did}`:void 0,duration:q.duration,attrs:{release:q.release,environment:q.environment,ip_address:q.ipAddress,user_agent:q.userAgent}})}const bt=100;class ft{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jt()}static clone(_){const me=new ft;return _&&(me._breadcrumbs=[..._._breadcrumbs],me._tags=La({},_._tags),me._extra=La({},_._extra),me._contexts=La({},_._contexts),me._user=_._user,me._level=_._level,me._span=_._span,me._session=_._session,me._transactionName=_._transactionName,me._fingerprint=_._fingerprint,me._eventProcessors=[..._._eventProcessors],me._requestSession=_._requestSession,me._attachments=[..._._attachments],me._sdkProcessingMetadata=La({},_._sdkProcessingMetadata),me._propagationContext=La({},_._propagationContext)),me}addScopeListener(_){this._scopeListeners.push(_)}addEventProcessor(_){return this._eventProcessors.push(_),this}setUser(_){return this._user=_||{},this._session&&Ye(this._session,{user:_}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(_){return this._requestSession=_,this}setTags(_){return this._tags=La(La({},this._tags),_),this._notifyScopeListeners(),this}setTag(_,me){return this._tags=Zs(La({},this._tags),{[_]:me}),this._notifyScopeListeners(),this}setExtras(_){return this._extra=La(La({},this._extra),_),this._notifyScopeListeners(),this}setExtra(_,me){return this._extra=Zs(La({},this._extra),{[_]:me}),this._notifyScopeListeners(),this}setFingerprint(_){return this._fingerprint=_,this._notifyScopeListeners(),this}setLevel(_){return this._level=_,this._notifyScopeListeners(),this}setTransactionName(_){return this._transactionName=_,this._notifyScopeListeners(),this}setContext(_,me){return me===null?delete this._contexts[_]:this._contexts[_]=me,this._notifyScopeListeners(),this}setSpan(_){return this._span=_,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const _=this.getSpan();return _&&_.transaction}setSession(_){return _?this._session=_:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(_){if(!_)return this;if(typeof _=="function"){const me=_(this);return me instanceof ft?me:this}return _ instanceof ft?(this._tags=La(La({},this._tags),_._tags),this._extra=La(La({},this._extra),_._extra),this._contexts=La(La({},this._contexts),_._contexts),_._user&&Object.keys(_._user).length&&(this._user=_._user),_._level&&(this._level=_._level),_._fingerprint&&(this._fingerprint=_._fingerprint),_._requestSession&&(this._requestSession=_._requestSession),_._propagationContext&&(this._propagationContext=_._propagationContext)):Mt(_)&&(_=_,this._tags=La(La({},this._tags),_.tags),this._extra=La(La({},this._extra),_.extra),this._contexts=La(La({},this._contexts),_.contexts),_.user&&(this._user=_.user),_.level&&(this._level=_.level),_.fingerprint&&(this._fingerprint=_.fingerprint),_.requestSession&&(this._requestSession=_.requestSession),_.propagationContext&&(this._propagationContext=_.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=jt(),this}addBreadcrumb(_,me){const Oe=typeof me=="number"?me:bt;if(Oe<=0)return this;const Xe=La({timestamp:(0,W.yW)()},_);return this._breadcrumbs=[...this._breadcrumbs,Xe].slice(-Oe),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(_){return this._attachments.push(_),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(_,me={}){if(this._extra&&Object.keys(this._extra).length&&(_.extra=La(La({},this._extra),_.extra)),this._tags&&Object.keys(this._tags).length&&(_.tags=La(La({},this._tags),_.tags)),this._user&&Object.keys(this._user).length&&(_.user=La(La({},this._user),_.user)),this._contexts&&Object.keys(this._contexts).length&&(_.contexts=La(La({},this._contexts),_.contexts)),this._level&&(_.level=this._level),this._transactionName&&(_.transaction=this._transactionName),this._span){_.contexts=La({trace:this._span.getTraceContext()},_.contexts);const Oe=this._span.transaction;if(Oe){_.sdkProcessingMetadata=La({dynamicSamplingContext:Oe.getDynamicSamplingContext()},_.sdkProcessingMetadata);const Xe=Oe.name;Xe&&(_.tags=La({transaction:Xe},_.tags))}}return this._applyFingerprint(_),_.breadcrumbs=[..._.breadcrumbs||[],...this._breadcrumbs],_.breadcrumbs=_.breadcrumbs.length>0?_.breadcrumbs:void 0,_.sdkProcessingMetadata=Zs(La(La({},_.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),this._notifyEventProcessors([...At(),...this._eventProcessors],_,me)}setSDKProcessingMetadata(_){return this._sdkProcessingMetadata=La(La({},this._sdkProcessingMetadata),_),this}setPropagationContext(_){return this._propagationContext=_,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(_,me,Oe,Xe=0){return new N((pt,Ht)=>{const an=_[Xe];if(me===null||typeof an!="function")pt(me);else{const En=an(La({},me),Oe);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&an.id&&En===null&&P.log(`Event processor "${an.id}" dropped event`),ke(En)?En.then(Qn=>this._notifyEventProcessors(_,Qn,Oe,Xe+1).then(pt)).then(null,Ht):this._notifyEventProcessors(_,En,Oe,Xe+1).then(pt).then(null,Ht)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(_=>{_(this)}),this._notifyingListeners=!1)}_applyFingerprint(_){_.fingerprint=_.fingerprint?te(_.fingerprint):[],this._fingerprint&&(_.fingerprint=_.fingerprint.concat(this._fingerprint)),_.fingerprint&&!_.fingerprint.length&&delete _.fingerprint}}function At(){return(0,z.YO)("globalEventProcessors",()=>[])}function Ot(q){At().push(q)}function jt(){return{traceId:A(),spanId:A().substring(16),sampled:!1}}const Gt=4,Xt=100;class zn{constructor(_,me=new ft,Oe=Gt){this._version=Oe,this._stack=[{scope:me}],_&&this.bindClient(_)}isOlderThan(_){return this._version<_}bindClient(_){const me=this.getStackTop();me.client=_,_&&_.setupIntegrations&&_.setupIntegrations()}pushScope(){const _=ft.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:_}),_}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(_){const me=this.pushScope();try{_(me)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(_,me){const Oe=this._lastEventId=me&&me.event_id?me.event_id:A(),Xe=new Error("Sentry syntheticException");return this._withClient((pt,Ht)=>{pt.captureException(_,Zs(La({originalException:_,syntheticException:Xe},me),{event_id:Oe}),Ht)}),Oe}captureMessage(_,me,Oe){const Xe=this._lastEventId=Oe&&Oe.event_id?Oe.event_id:A(),pt=new Error(_);return this._withClient((Ht,an)=>{Ht.captureMessage(_,me,Zs(La({originalException:_,syntheticException:pt},Oe),{event_id:Xe}),an)}),Xe}captureEvent(_,me){const Oe=me&&me.event_id?me.event_id:A();return _.type||(this._lastEventId=Oe),this._withClient((Xe,pt)=>{Xe.captureEvent(_,Zs(La({},me),{event_id:Oe}),pt)}),Oe}lastEventId(){return this._lastEventId}addBreadcrumb(_,me){const{scope:Oe,client:Xe}=this.getStackTop();if(!Xe)return;const{beforeBreadcrumb:pt=null,maxBreadcrumbs:Ht=Xt}=Xe.getOptions&&Xe.getOptions()||{};if(Ht<=0)return;const an=(0,W.yW)(),En=La({timestamp:an},_),Qn=pt?k(()=>pt(En,me)):En;Qn!==null&&(Xe.emit&&Xe.emit("beforeAddBreadcrumb",Qn,me),Oe.addBreadcrumb(Qn,Ht))}setUser(_){this.getScope().setUser(_)}setTags(_){this.getScope().setTags(_)}setExtras(_){this.getScope().setExtras(_)}setTag(_,me){this.getScope().setTag(_,me)}setExtra(_,me){this.getScope().setExtra(_,me)}setContext(_,me){this.getScope().setContext(_,me)}configureScope(_){const{scope:me,client:Oe}=this.getStackTop();Oe&&_(me)}run(_){const me=Bn(this);try{_(this)}finally{Bn(me)}}getIntegration(_){const me=this.getClient();if(!me)return null;try{return me.getIntegration(_)}catch(Oe){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Cannot retrieve integration ${_.id} from the current Hub`),null}}startTransaction(_,me){const Oe=this._callExtensionMethod("startTransaction",_,me);if((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&!Oe){const Xe=this.getClient();console.warn(Xe?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +}`),ce)}else(0,S.jL)(ce);return function(){(0,S.jL)(ce)}},[K,ce])}var T=!1;function z(B){return typeof B=="boolean"&&(T=B),T}var A=function(K){return K===!1?!1:!(0,s.Z)()||!K?null:typeof K=="string"?document.querySelector(K):typeof K=="function"?K():K},L=t.forwardRef(function(B,K){var H=B.open,ie=B.autoLock,ce=B.getContainer,te=B.debug,W=B.autoDestroy,G=W===void 0?!0:W,O=B.children,k=t.useState(H),Y=(0,i.Z)(k,2),P=Y[0],Q=Y[1],fe=P||H;t.useEffect(function(){(G||H)&&Q(H)},[H,G]);var Ce=t.useState(function(){return A(ce)}),ge=(0,i.Z)(Ce,2),Me=ge[0],Ne=ge[1];t.useEffect(function(){var Fe=A(ce);Ne(Fe!=null?Fe:null)});var Qe=p(fe&&!Me,te),Ve=(0,i.Z)(Qe,2),qe=Ve[0],Mt=Ve[1],wt=Me!=null?Me:qe;R(ie&&H&&(0,s.Z)()&&(wt===qe||wt===document.body));var gt=null;if(O&&(0,c.Yr)(O)&&K){var Lt=O;gt=Lt.ref}var ke=(0,c.x1)(gt,K);if(!fe||!(0,s.Z)()||Me===void 0)return null;var He=wt===!1||z(),et=O;return K&&(et=t.cloneElement(O,{ref:ke})),t.createElement(v.Provider,{value:Mt},He?et:(0,o.createPortal)(et,wt))}),I=L,$=I},99863:function(M,b,e){"use strict";e.d(b,{Z:function(){return Fe}});var i=e(57370),t=e(28314),o=e(47075),s=e(57127),n=e(87608),c=e.n(n),l=e(19425),v=e(69188),h=e(4171),m=e(51729),C=e(97071),p=e(81334),S=e(21618),w=e(58757),y=e(26736),Z=w.createContext(null),F=Z;function R(ue){return ue?Array.isArray(ue)?ue:[ue]:[]}function T(ue,V,U,N){return w.useMemo(function(){var D=R(U!=null?U:V),ee=R(N!=null?N:V),se=new Set(D),X=new Set(ee);return ue&&(se.has("hover")&&(se.delete("hover"),se.add("click")),X.has("hover")&&(X.delete("hover"),X.add("click"))),[se,X]},[ue,V,U,N])}var z=e(46499);function A(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],U=arguments.length>2?arguments[2]:void 0;return U?ue[0]===V[0]:ue[0]===V[0]&&ue[1]===V[1]}function L(ue,V,U,N){for(var D=U.points,ee=Object.keys(ue),se=0;se1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(ue)?V:ue}function H(ue){return K(parseFloat(ue),0)}function ie(ue,V){var U=(0,i.Z)({},ue);return(V||[]).forEach(function(N){if(!(N instanceof HTMLBodyElement||N instanceof HTMLHtmlElement)){var D=$(N).getComputedStyle(N),ee=D.overflow,se=D.overflowClipMargin,X=D.borderTopWidth,re=D.borderBottomWidth,Ie=D.borderLeftWidth,Se=D.borderRightWidth,he=N.getBoundingClientRect(),We=N.offsetHeight,de=N.clientHeight,le=N.offsetWidth,ve=N.clientWidth,xe=H(X),Ze=H(re),pe=H(Ie),Je=H(Se),Ae=K(Math.round(he.width/le*1e3)/1e3),oe=K(Math.round(he.height/We*1e3)/1e3),ye=(le-ve-pe-Je)*Ae,Be=(We-de-xe-Ze)*oe,De=xe*oe,Pe=Ze*oe,we=pe*Ae,Le=Je*Ae,Ye=0,Ue=0;if(ee==="clip"){var dt=H(se);Ye=dt*Ae,Ue=dt*oe}var bt=he.x+we-Ye,ft=he.y+De-Ue,At=bt+he.width+2*Ye-we-Le-ye,Ot=ft+he.height+2*Ue-De-Pe-Be;U.left=Math.max(U.left,bt),U.top=Math.max(U.top,ft),U.right=Math.min(U.right,At),U.bottom=Math.min(U.bottom,Ot)}}),U}function ce(ue){var V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U="".concat(V),N=U.match(/^(.*)\%$/);return N?ue*(parseFloat(N[1])/100):parseFloat(U)}function te(ue,V){var U=V||[],N=(0,t.Z)(U,2),D=N[0],ee=N[1];return[ce(ue.width,D),ce(ue.height,ee)]}function W(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[ue[0],ue[1]]}function G(ue,V){var U=V[0],N=V[1],D,ee;return U==="t"?ee=ue.y:U==="b"?ee=ue.y+ue.height:ee=ue.y+ue.height/2,N==="l"?D=ue.x:N==="r"?D=ue.x+ue.width:D=ue.x+ue.width/2,{x:D,y:ee}}function O(ue,V){var U={t:"b",b:"t",l:"r",r:"l"};return ue.map(function(N,D){return D===V?U[N]||"c":N}).join("")}function k(ue,V,U,N,D,ee,se){var X=w.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:D[N]||{}}),re=(0,t.Z)(X,2),Ie=re[0],Se=re[1],he=w.useRef(0),We=w.useMemo(function(){return V?B(V):[]},[V]),de=w.useRef({}),le=function(){de.current={}};ue||le();var ve=(0,m.Z)(function(){if(V&&U&&ue){let Tr=function(fo,Xa){var Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn,Kt=jt.x+fo,ln=jt.y+Xa,An=Kt+at,_n=ln+_e,fr=Math.max(Kt,Tt.left),Er=Math.max(ln,Tt.top),wn=Math.min(An,Tt.right),vr=Math.min(_n,Tt.bottom);return Math.max(0,(wn-fr)*(vr-Er))},ga=function(){Zn=jt.y+Wt,yr=Zn+_e,$r=jt.x+_t,Kr=$r+at};var pe,Je,Ae=V,oe=Ae.ownerDocument,ye=$(Ae),Be=ye.getComputedStyle(Ae),De=Be.width,Pe=Be.height,we=Be.position,Le=Ae.style.left,Ye=Ae.style.top,Ue=Ae.style.right,dt=Ae.style.bottom,bt=(0,i.Z)((0,i.Z)({},D[N]),ee),ft=oe.createElement("div");(pe=Ae.parentElement)===null||pe===void 0||pe.appendChild(ft),ft.style.left="".concat(Ae.offsetLeft,"px"),ft.style.top="".concat(Ae.offsetTop,"px"),ft.style.position=we,ft.style.height="".concat(Ae.offsetHeight,"px"),ft.style.width="".concat(Ae.offsetWidth,"px"),Ae.style.left="0",Ae.style.top="0",Ae.style.right="auto",Ae.style.bottom="auto";var At;if(Array.isArray(U))At={x:U[0],y:U[1],width:0,height:0};else{var Ot=U.getBoundingClientRect();At={x:Ot.x,y:Ot.y,width:Ot.width,height:Ot.height}}var jt=Ae.getBoundingClientRect(),Gt=oe.documentElement,Xt=Gt.clientWidth,Bn=Gt.clientHeight,fn=Gt.scrollWidth,$n=Gt.scrollHeight,On=Gt.scrollTop,Mn=Gt.scrollLeft,_e=jt.height,at=jt.width,Vt=At.height,an=At.width,st={left:0,top:0,right:Xt,bottom:Bn},ut={left:-Mn,top:-On,right:fn-Mn,bottom:$n-On},$t=bt.htmlRegion,nt="visible",mt="visibleFirst";$t!=="scroll"&&$t!==mt&&($t=nt);var Dt=$t===mt,Cn=ie(ut,We),en=ie(st,We),Hn=$t===nt?en:Cn,Rn=Dt?en:Hn;Ae.style.left="auto",Ae.style.top="auto",Ae.style.right="0",Ae.style.bottom="0";var pr=Ae.getBoundingClientRect();Ae.style.left=Le,Ae.style.top=Ye,Ae.style.right=Ue,Ae.style.bottom=dt,(Je=Ae.parentElement)===null||Je===void 0||Je.removeChild(ft);var gr=K(Math.round(at/parseFloat(De)*1e3)/1e3),Or=K(Math.round(_e/parseFloat(Pe)*1e3)/1e3);if(gr===0||Or===0||(0,v.S)(U)&&!(0,z.Z)(U))return;var ar=bt.offset,mr=bt.targetOffset,qr=te(jt,ar),Pr=(0,t.Z)(qr,2),Vn=Pr[0],zt=Pr[1],Ft=te(At,mr),sn=(0,t.Z)(Ft,2),tn=sn[0],kt=sn[1];At.x-=tn,At.y-=kt;var hn=bt.points||[],dn=(0,t.Z)(hn,2),Fn=dn[0],tr=dn[1],ct=W(tr),lt=W(Fn),xt=G(At,ct),St=G(jt,lt),Nt=(0,i.Z)({},bt),_t=xt.x-St.x+Vn,Wt=xt.y-St.y+zt,yn=Tr(_t,Wt),kn=Tr(_t,Wt,en),hr=G(At,["t","l"]),cr=G(jt,["t","l"]),Dn=G(At,["b","r"]),Rr=G(jt,["b","r"]),or=bt.overflow||{},Gr=or.adjustX,Ir=or.adjustY,Pn=or.shiftX,vn=or.shiftY,Nn=function(Xa){return typeof Xa=="boolean"?Xa:Xa>=0},Zn,yr,$r,Kr;ga();var ra=Nn(Ir),Xr=lt[0]===ct[0];if(ra&<[0]==="t"&&(yr>Rn.bottom||de.current.bt)){var Fr=Wt;Xr?Fr-=_e-Vt:Fr=hr.y-Rr.y-zt;var xa=Tr(_t,Fr),la=Tr(_t,Fr,en);xa>yn||xa===yn&&(!Dt||la>=kn)?(de.current.bt=!0,Wt=Fr,zt=-zt,Nt.points=[O(lt,0),O(ct,0)]):de.current.bt=!1}if(ra&<[0]==="b"&&(Znyn||xn===yn&&(!Dt||Gn>=kn)?(de.current.tb=!0,Wt=Tn,zt=-zt,Nt.points=[O(lt,0),O(ct,0)]):de.current.tb=!1}var Lr=Nn(Gr),zr=lt[1]===ct[1];if(Lr&<[1]==="l"&&(Kr>Rn.right||de.current.rl)){var Br=_t;zr?Br-=at-an:Br=hr.x-Rr.x-Vn;var Ma=Tr(Br,Wt),co=Tr(Br,Wt,en);Ma>yn||Ma===yn&&(!Dt||co>=kn)?(de.current.rl=!0,_t=Br,Vn=-Vn,Nt.points=[O(lt,1),O(ct,1)]):de.current.rl=!1}if(Lr&<[1]==="r"&&($ryn||xo===yn&&(!Dt||Pa>=kn)?(de.current.lr=!0,_t=ro,Vn=-Vn,Nt.points=[O(lt,1),O(ct,1)]):de.current.lr=!1}ga();var Ua=Pn===!0?0:Pn;typeof Ua=="number"&&($ren.right&&(_t-=Kr-en.right-Vn,At.x>en.right-Ua&&(_t+=At.x-en.right+Ua)));var eo=vn===!0?0:vn;typeof eo=="number"&&(Znen.bottom&&(Wt-=yr-en.bottom-zt,At.y>en.bottom-eo&&(Wt+=At.y-en.bottom+eo)));var Fo=jt.x+_t,jo=Fo+at,Bo=jt.y+Wt,ot=Bo+_e,yt=At.x,be=yt+an,Bt=At.y,Jt=Bt+Vt,Jn=Math.max(Fo,yt),Kn=Math.min(jo,be),br=(Jn+Kn)/2,ea=br-Fo,ka=Math.max(Bo,Bt),kr=Math.min(ot,Jt),Dr=(ka+kr)/2,wr=Dr-Bo;se==null||se(V,Nt);var sr=pr.right-jt.x-(_t+jt.width),dr=pr.bottom-jt.y-(Wt+jt.height);Se({ready:!0,offsetX:_t/gr,offsetY:Wt/Or,offsetR:sr/gr,offsetB:dr/Or,arrowX:ea/gr,arrowY:wr/Or,scaleX:gr,scaleY:Or,align:Nt})}}),xe=function(){he.current+=1;var Je=he.current;Promise.resolve().then(function(){he.current===Je&&ve()})},Ze=function(){Se(function(Je){return(0,i.Z)((0,i.Z)({},Je),{},{ready:!1})})};return(0,p.Z)(Ze,[N]),(0,p.Z)(function(){ue||Ze()},[ue]),[Ie.ready,Ie.offsetX,Ie.offsetY,Ie.offsetR,Ie.offsetB,Ie.arrowX,Ie.arrowY,Ie.scaleX,Ie.scaleY,Ie.align,xe]}var Y=e(29140);function P(ue,V,U,N,D){(0,p.Z)(function(){if(ue&&V&&U){let he=function(){N(),D()};var ee=V,se=U,X=B(ee),re=B(se),Ie=$(se),Se=new Set([Ie].concat((0,Y.Z)(X),(0,Y.Z)(re)));return Se.forEach(function(We){We.addEventListener("scroll",he,{passive:!0})}),Ie.addEventListener("resize",he,{passive:!0}),N(),function(){Se.forEach(function(We){We.removeEventListener("scroll",he),Ie.removeEventListener("resize",he)})}}},[ue,V,U])}var Q=e(71219),fe=e(61834);function Ce(ue,V,U,N,D,ee,se,X){var re=w.useRef(ue),Ie=w.useRef(!1);re.current!==ue&&(Ie.current=!0,re.current=ue),w.useEffect(function(){var Se=(0,fe.Z)(function(){Ie.current=!1});return function(){fe.Z.cancel(Se)}},[ue]),w.useEffect(function(){if(V&&N&&(!D||ee)){var Se=function(){var we=!1,Le=function(dt){var bt=dt.target;we=se(bt)},Ye=function(dt){var bt=dt.target;!Ie.current&&re.current&&!we&&!se(bt)&&X(!1)};return[Le,Ye]},he=Se(),We=(0,t.Z)(he,2),de=We[0],le=We[1],ve=Se(),xe=(0,t.Z)(ve,2),Ze=xe[0],pe=xe[1],Je=$(N);Je.addEventListener("mousedown",de,!0),Je.addEventListener("click",le,!0),Je.addEventListener("contextmenu",le,!0);var Ae=(0,h.A)(U);if(Ae&&(Ae.addEventListener("mousedown",Ze,!0),Ae.addEventListener("click",pe,!0),Ae.addEventListener("contextmenu",pe,!0)),!1)var oe,ye,Be,De;return function(){Je.removeEventListener("mousedown",de,!0),Je.removeEventListener("click",le,!0),Je.removeEventListener("contextmenu",le,!0),Ae&&(Ae.removeEventListener("mousedown",Ze,!0),Ae.removeEventListener("click",pe,!0),Ae.removeEventListener("contextmenu",pe,!0))}}},[V,U,N,D,ee])}var ge=e(60698),Me=e(17598),Ne=e(21319);function Qe(ue){var V=ue.prefixCls,U=ue.align,N=ue.arrow,D=ue.arrowPos,ee=N||{},se=ee.className,X=ee.content,re=D.x,Ie=re===void 0?0:re,Se=D.y,he=Se===void 0?0:Se,We=w.useRef();if(!U||!U.points)return null;var de={position:"absolute"};if(U.autoArrow!==!1){var le=U.points[0],ve=U.points[1],xe=le[0],Ze=le[1],pe=ve[0],Je=ve[1];xe===pe||!["t","b"].includes(xe)?de.top=he:xe==="t"?de.top=0:de.bottom=0,Ze===Je||!["l","r"].includes(Ze)?de.left=Ie:Ze==="l"?de.left=0:de.right=0}return w.createElement("div",{ref:We,className:c()("".concat(V,"-arrow"),se),style:de},X)}function Ve(ue){var V=ue.prefixCls,U=ue.open,N=ue.zIndex,D=ue.mask,ee=ue.motion;return D?w.createElement(Me.ZP,(0,ge.Z)({},ee,{motionAppear:!0,visible:U,removeOnLeave:!0}),function(se){var X=se.className;return w.createElement("div",{style:{zIndex:N},className:c()("".concat(V,"-mask"),X)})}):null}var qe=w.memo(function(ue){var V=ue.children;return V},function(ue,V){return V.cache}),Mt=qe,wt=w.forwardRef(function(ue,V){var U=ue.popup,N=ue.className,D=ue.prefixCls,ee=ue.style,se=ue.target,X=ue.onVisibleChanged,re=ue.open,Ie=ue.keepDom,Se=ue.onClick,he=ue.mask,We=ue.arrow,de=ue.arrowPos,le=ue.align,ve=ue.motion,xe=ue.maskMotion,Ze=ue.forceRender,pe=ue.getPopupContainer,Je=ue.autoDestroy,Ae=ue.portal,oe=ue.zIndex,ye=ue.onMouseEnter,Be=ue.onMouseLeave,De=ue.onPointerEnter,Pe=ue.ready,we=ue.offsetX,Le=ue.offsetY,Ye=ue.offsetR,Ue=ue.offsetB,dt=ue.onAlign,bt=ue.onPrepare,ft=ue.stretch,At=ue.targetWidth,Ot=ue.targetHeight,jt=typeof U=="function"?U():U,Gt=re||Ie,Xt=(pe==null?void 0:pe.length)>0,Bn=w.useState(!pe||!Xt),fn=(0,t.Z)(Bn,2),$n=fn[0],On=fn[1];if((0,p.Z)(function(){!$n&&Xt&&se&&On(!0)},[$n,Xt,se]),!$n)return null;var Mn="auto",_e={left:"-1000vw",top:"-1000vh",right:Mn,bottom:Mn};if(Pe||!re){var at=le.points,Vt=le._experimental,an=Vt==null?void 0:Vt.dynamicInset,st=an&&at[0][1]==="r",ut=an&&at[0][0]==="b";st?(_e.right=Ye,_e.left=Mn):(_e.left=we,_e.right=Mn),ut?(_e.bottom=Ue,_e.top=Mn):(_e.top=Le,_e.bottom=Mn)}var $t={};return ft&&(ft.includes("height")&&Ot?$t.height=Ot:ft.includes("minHeight")&&Ot&&($t.minHeight=Ot),ft.includes("width")&&At?$t.width=At:ft.includes("minWidth")&&At&&($t.minWidth=At)),re||($t.pointerEvents="none"),w.createElement(Ae,{open:Ze||Gt,getContainer:pe&&function(){return pe(se)},autoDestroy:Je},w.createElement(Ve,{prefixCls:D,open:re,zIndex:oe,mask:he,motion:xe}),w.createElement(l.Z,{onResize:dt,disabled:!re},function(nt){return w.createElement(Me.ZP,(0,ge.Z)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:Ze,leavedClassName:"".concat(D,"-hidden")},ve,{onAppearPrepare:bt,onEnterPrepare:bt,visible:re,onVisibleChanged:function(Dt){var Cn;ve==null||(Cn=ve.onVisibleChanged)===null||Cn===void 0||Cn.call(ve,Dt),X(Dt)}}),function(mt,Dt){var Cn=mt.className,en=mt.style,Hn=c()(D,Cn,N);return w.createElement("div",{ref:(0,Ne.sQ)(nt,V,Dt),className:Hn,style:(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({"--arrow-x":"".concat(de.x||0,"px"),"--arrow-y":"".concat(de.y||0,"px")},_e),$t),en),{},{boxSizing:"border-box",zIndex:oe},ee),onMouseEnter:ye,onMouseLeave:Be,onPointerEnter:De,onClick:Se},We&&w.createElement(Qe,{prefixCls:D,arrow:We,arrowPos:de,align:le}),w.createElement(Mt,{cache:!re},jt))})}))}),gt=wt,Lt=w.forwardRef(function(ue,V){var U=ue.children,N=ue.getTriggerDOMNode,D=(0,Ne.Yr)(U),ee=w.useCallback(function(X){(0,Ne.mH)(V,N?N(X):X)},[N]),se=(0,Ne.x1)(ee,U.ref);return D?w.cloneElement(U,{ref:se}):U}),ke=Lt,He=["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","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function et(){var ue=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s.Z,V=w.forwardRef(function(U,N){var D=U.prefixCls,ee=D===void 0?"rc-trigger-popup":D,se=U.children,X=U.action,re=X===void 0?"hover":X,Ie=U.showAction,Se=U.hideAction,he=U.popupVisible,We=U.defaultPopupVisible,de=U.onPopupVisibleChange,le=U.afterPopupVisibleChange,ve=U.mouseEnterDelay,xe=U.mouseLeaveDelay,Ze=xe===void 0?.1:xe,pe=U.focusDelay,Je=U.blurDelay,Ae=U.mask,oe=U.maskClosable,ye=oe===void 0?!0:oe,Be=U.getPopupContainer,De=U.forceRender,Pe=U.autoDestroy,we=U.destroyPopupOnHide,Le=U.popup,Ye=U.popupClassName,Ue=U.popupStyle,dt=U.popupPlacement,bt=U.builtinPlacements,ft=bt===void 0?{}:bt,At=U.popupAlign,Ot=U.zIndex,jt=U.stretch,Gt=U.getPopupClassNameFromAlign,Xt=U.alignPoint,Bn=U.onPopupClick,fn=U.onPopupAlign,$n=U.arrow,On=U.popupMotion,Mn=U.maskMotion,_e=U.popupTransitionName,at=U.popupAnimation,Vt=U.maskTransitionName,an=U.maskAnimation,st=U.className,ut=U.getTriggerDOMNode,$t=(0,o.Z)(U,He),nt=Pe||we||!1,mt=w.useState(!1),Dt=(0,t.Z)(mt,2),Cn=Dt[0],en=Dt[1];(0,p.Z)(function(){en((0,S.Z)())},[]);var Hn=w.useRef({}),Rn=w.useContext(F),pr=w.useMemo(function(){return{registerSubPopup:function(vr,Ar){Hn.current[vr]=Ar,Rn==null||Rn.registerSubPopup(vr,Ar)}}},[Rn]),gr=(0,C.Z)(),Or=w.useState(null),ar=(0,t.Z)(Or,2),mr=ar[0],qr=ar[1],Pr=(0,m.Z)(function(wn){(0,v.S)(wn)&&mr!==wn&&qr(wn),Rn==null||Rn.registerSubPopup(gr,wn)}),Vn=w.useState(null),zt=(0,t.Z)(Vn,2),Ft=zt[0],sn=zt[1],tn=(0,m.Z)(function(wn){(0,v.S)(wn)&&Ft!==wn&&sn(wn)}),kt=w.Children.only(se),hn=(kt==null?void 0:kt.props)||{},dn={},Fn=(0,m.Z)(function(wn){var vr,Ar,oa=Ft;return(oa==null?void 0:oa.contains(wn))||((vr=(0,h.A)(oa))===null||vr===void 0?void 0:vr.host)===wn||wn===oa||(mr==null?void 0:mr.contains(wn))||((Ar=(0,h.A)(mr))===null||Ar===void 0?void 0:Ar.host)===wn||wn===mr||Object.values(Hn.current).some(function(ta){return(ta==null?void 0:ta.contains(wn))||wn===ta})}),tr=I(ee,On,at,_e),ct=I(ee,Mn,an,Vt),lt=w.useState(We||!1),xt=(0,t.Z)(lt,2),St=xt[0],Nt=xt[1],_t=he!=null?he:St,Wt=(0,m.Z)(function(wn){he===void 0&&Nt(wn)});(0,p.Z)(function(){Nt(he||!1)},[he]);var yn=w.useRef(_t);yn.current=_t;var kn=(0,m.Z)(function(wn){(0,y.flushSync)(function(){_t!==wn&&(Wt(wn),de==null||de(wn))})}),hr=w.useRef(),cr=function(){clearTimeout(hr.current)},Dn=function(vr){var Ar=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;cr(),Ar===0?kn(vr):hr.current=setTimeout(function(){kn(vr)},Ar*1e3)};w.useEffect(function(){return cr},[]);var Rr=w.useState(!1),or=(0,t.Z)(Rr,2),Gr=or[0],Ir=or[1];(0,p.Z)(function(wn){(!wn||_t)&&Ir(!0)},[_t]);var Pn=w.useState(null),vn=(0,t.Z)(Pn,2),Nn=vn[0],Zn=vn[1],yr=w.useState([0,0]),$r=(0,t.Z)(yr,2),Kr=$r[0],ra=$r[1],Xr=function(vr){ra([vr.clientX,vr.clientY])},Fr=k(_t,mr,Xt?Kr:Ft,dt,ft,At,fn),xa=(0,t.Z)(Fr,11),la=xa[0],Tn=xa[1],xn=xa[2],Gn=xa[3],Lr=xa[4],zr=xa[5],Br=xa[6],Ma=xa[7],co=xa[8],ro=xa[9],xo=xa[10],Pa=T(Cn,re,Ie,Se),Ua=(0,t.Z)(Pa,2),eo=Ua[0],Fo=Ua[1],jo=eo.has("click"),Bo=Fo.has("click")||Fo.has("contextMenu"),ot=(0,m.Z)(function(){Gr||xo()}),yt=function(){yn.current&&Xt&&Bo&&Dn(!1)};P(_t,Ft,mr,ot,yt),(0,p.Z)(function(){ot()},[Kr,dt]),(0,p.Z)(function(){_t&&!(ft!=null&&ft[dt])&&ot()},[JSON.stringify(At)]);var be=w.useMemo(function(){var wn=L(ft,ee,ro,Xt);return c()(wn,Gt==null?void 0:Gt(ro))},[ro,Gt,ft,ee,Xt]);w.useImperativeHandle(N,function(){return{forceAlign:ot}});var Bt=w.useState(0),Jt=(0,t.Z)(Bt,2),Jn=Jt[0],Kn=Jt[1],br=w.useState(0),ea=(0,t.Z)(br,2),ka=ea[0],kr=ea[1],Dr=function(){if(jt&&Ft){var vr=Ft.getBoundingClientRect();Kn(vr.width),kr(vr.height)}},wr=function(){Dr(),ot()},sr=function(vr){Ir(!1),xo(),le==null||le(vr)},dr=function(){return new Promise(function(vr){Dr(),Zn(function(){return vr})})};(0,p.Z)(function(){Nn&&(xo(),Nn(),Zn(null))},[Nn]);function Tr(wn,vr,Ar,oa){dn[wn]=function(ta){var Wa;oa==null||oa(ta),Dn(vr,Ar);for(var bo=arguments.length,No=new Array(bo>1?bo-1:0),Ga=1;Ga1?Ar-1:0),ta=1;ta1?Ar-1:0),ta=1;taDate.now()/1e3};function n(){const{performance:y}=o;if(!y||!y.now)return;const Z=Date.now()-y.now();return{now:()=>y.now(),timeOrigin:Z}}function c(){try{return(0,i.l$)(M,"perf_hooks").performance}catch(y){return}}const l=(0,i.KV)()?c():n(),v=l===void 0?s:{nowSeconds:()=>(l.timeOrigin+l.now())/1e3},h=s.nowSeconds.bind(s),m=v.nowSeconds.bind(v),C=null,p=l!==void 0;let S;const w=(()=>{const{performance:y}=o;if(!y||!y.now){S="none";return}const Z=3600*1e3,F=y.now(),R=Date.now(),T=y.timeOrigin?Math.abs(y.timeOrigin+F-R):Z,z=T_.getRandomValues(new Uint8Array(1))[0]:()=>Math.random()*16;return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,Oe=>(Oe^(me()&15)>>Oe/4).toString(16))}function L(q){return q.exception&&q.exception.values?q.exception.values[0]:void 0}function I(q){const{message:_,event_id:me}=q;if(_)return _;const Oe=L(q);return Oe?Oe.type&&Oe.value?`${Oe.type}: ${Oe.value}`:Oe.type||Oe.value||me||"":me||""}function $(q,_,me){const Oe=q.exception=q.exception||{},Xe=Oe.values=Oe.values||[],pt=Xe[0]=Xe[0]||{};pt.value||(pt.value=_||""),pt.type||(pt.type=me||"Error")}function B(q,_){const me=L(q);if(!me)return;const Oe={type:"generic",handled:!0},Xe=me.mechanism;if(me.mechanism=Na(Na(Na({},Oe),Xe),_),_&&"data"in _){const pt=Na(Na({},Xe&&Xe.data),_.data);me.mechanism.data=pt}}const K=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/;function H(q){const _=q.match(K)||[],me=parseInt(_[1],10),Oe=parseInt(_[2],10),Xe=parseInt(_[3],10);return{buildmetadata:_[5],major:isNaN(me)?void 0:me,minor:isNaN(Oe)?void 0:Oe,patch:isNaN(Xe)?void 0:Xe,prerelease:_[4]}}function ie(q,_,me=5){if(_.lineno===void 0)return;const Oe=q.length,Xe=Math.max(Math.min(Oe-1,_.lineno-1),0);_.pre_context=q.slice(Math.max(0,Xe-me),Xe).map(pt=>snipLine(pt,0)),_.context_line=snipLine(q[Math.min(Oe-1,Xe)],_.colno||0),_.post_context=q.slice(Math.min(Xe+1,Oe),Xe+1+me).map(pt=>snipLine(pt,0))}function ce(q){if(q&&q.__sentry_captured__)return!0;try{addNonEnumerableProperty(q,"__sentry_captured__",!0)}catch(_){}return!1}function te(q){return Array.isArray(q)?q:[q]}var W=e(43038);const G="Sentry Logger ",O=["debug","info","warn","error","log","assert","trace"];function k(q){if(!("console"in z.n2))return q();const _=z.n2.console,me={};O.forEach(Oe=>{const Xe=_[Oe]&&_[Oe].__sentry_original__;Oe in _&&Xe&&(me[Oe]=_[Oe],_[Oe]=Xe)});try{return q()}finally{Object.keys(me).forEach(Oe=>{_[Oe]=me[Oe]})}}function Y(){let q=!1;const _={enable:()=>{q=!0},disable:()=>{q=!1}};return typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?O.forEach(me=>{_[me]=(...Oe)=>{q&&k(()=>{z.n2.console[me](`${G}[${me}]:`,...Oe)})}}):O.forEach(me=>{_[me]=()=>{}}),_}let P;typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__?P=(0,z.YO)("logger",Y):P=Y();const Q="production",fe=Object.prototype.toString;function Ce(q){switch(fe.call(q)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return Fe(q,Error)}}function ge(q,_){return fe.call(q)===`[object ${_}]`}function Me(q){return ge(q,"ErrorEvent")}function Ne(q){return ge(q,"DOMError")}function Qe(q){return ge(q,"DOMException")}function Ve(q){return ge(q,"String")}function qe(q){return q===null||typeof q!="object"&&typeof q!="function"}function Mt(q){return ge(q,"Object")}function wt(q){return typeof Event!="undefined"&&Fe(q,Event)}function gt(q){return typeof Element!="undefined"&&Fe(q,Element)}function Lt(q){return ge(q,"RegExp")}function ke(q){return!!(q&&q.then&&typeof q.then=="function")}function He(q){return Mt(q)&&"nativeEvent"in q&&"preventDefault"in q&&"stopPropagation"in q}function et(q){return typeof q=="number"&&q!==q}function Fe(q,_){try{return q instanceof _}catch(me){return!1}}var ue;(function(q){q[q.PENDING=0]="PENDING";const me=1;q[q.RESOLVED=me]="RESOLVED";const Oe=2;q[q.REJECTED=Oe]="REJECTED"})(ue||(ue={}));function V(q){return new N(_=>{_(q)})}function U(q){return new N((_,me)=>{me(q)})}class N{constructor(_){N.prototype.__init.call(this),N.prototype.__init2.call(this),N.prototype.__init3.call(this),N.prototype.__init4.call(this),this._state=ue.PENDING,this._handlers=[];try{_(this._resolve,this._reject)}catch(me){this._reject(me)}}then(_,me){return new N((Oe,Xe)=>{this._handlers.push([!1,pt=>{if(!_)Oe(pt);else try{Oe(_(pt))}catch(Ht){Xe(Ht)}},pt=>{if(!me)Xe(pt);else try{Oe(me(pt))}catch(Ht){Xe(Ht)}}]),this._executeHandlers()})}catch(_){return this.then(me=>me,_)}finally(_){return new N((me,Oe)=>{let Xe,pt;return this.then(Ht=>{pt=!1,Xe=Ht,_&&_()},Ht=>{pt=!0,Xe=Ht,_&&_()}).then(()=>{if(pt){Oe(Xe);return}me(Xe)})})}__init(){this._resolve=_=>{this._setResult(ue.RESOLVED,_)}}__init2(){this._reject=_=>{this._setResult(ue.REJECTED,_)}}__init3(){this._setResult=(_,me)=>{if(this._state===ue.PENDING){if(ke(me)){me.then(this._resolve,this._reject);return}this._state=_,this._value=me,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===ue.PENDING)return;const _=this._handlers.slice();this._handlers=[],_.forEach(me=>{me[0]||(this._state===ue.RESOLVED&&me[1](this._value),this._state===ue.REJECTED&&me[2](this._value),me[0]=!0)})}}}const D=(0,z.Rf)(),ee=80;function se(q,_={}){try{let me=q;const Oe=5,Xe=[];let pt=0,Ht=0;const on=" > ",Sn=on.length;let Xn;const _r=Array.isArray(_)?_:_.keyAttrs,Hr=!Array.isArray(_)&&_.maxStringLength||ee;for(;me&&pt++1&&Ht+Xe.length*Sn+Xn.length>=Hr));)Xe.push(Xn),Ht+=Xn.length,me=me.parentNode;return Xe.reverse().join(on)}catch(me){return""}}function X(q,_){const me=q,Oe=[];let Xe,pt,Ht,on,Sn;if(!me||!me.tagName)return"";Oe.push(me.tagName.toLowerCase());const Xn=_&&_.length?_.filter(Hr=>me.getAttribute(Hr)).map(Hr=>[Hr,me.getAttribute(Hr)]):null;if(Xn&&Xn.length)Xn.forEach(Hr=>{Oe.push(`[${Hr[0]}="${Hr[1]}"]`)});else if(me.id&&Oe.push(`#${me.id}`),Xe=me.className,Xe&&Ve(Xe))for(pt=Xe.split(/\s+/),Sn=0;SnOe&&(_=Oe);let Xe=Math.max(_-60,0);Xe<5&&(Xe=0);let pt=Math.min(Xe+140,Oe);return pt>Oe-5&&(pt=Oe),pt===Oe&&(Xe=Math.max(pt-140,0)),me=me.slice(Xe,pt),Xe>0&&(me=`'{snip} ${me}`),ptde(q,Oe,me))}function ve(q,_,me){if(!(_ in q))return;const Oe=q[_],Xe=me(Oe);if(typeof Xe=="function")try{Ze(Xe,Oe)}catch(pt){}q[_]=Xe}function xe(q,_,me){Object.defineProperty(q,_,{value:me,writable:!0,configurable:!0})}function Ze(q,_){const me=_.prototype||{};q.prototype=_.prototype=me,xe(q,"__sentry_original__",_)}function pe(q){return q.__sentry_original__}function Je(q){return Object.keys(q).map(_=>`${encodeURIComponent(_)}=${encodeURIComponent(q[_])}`).join("&")}function Ae(q){if(Ce(q))return Na({message:q.message,name:q.name,stack:q.stack},ye(q));if(wt(q)){const _=Na({type:q.type,target:oe(q.target),currentTarget:oe(q.currentTarget)},ye(q));return typeof CustomEvent!="undefined"&&Fe(q,CustomEvent)&&(_.detail=q.detail),_}else return q}function oe(q){try{return gt(q)?se(q):Object.prototype.toString.call(q)}catch(_){return""}}function ye(q){if(typeof q=="object"&&q!==null){const _={};for(const me in q)Object.prototype.hasOwnProperty.call(q,me)&&(_[me]=q[me]);return _}else return{}}function Be(q,_=40){const me=Object.keys(Ae(q));if(me.sort(),!me.length)return"[object has no keys]";if(me[0].length>=_)return Se(me[0],_);for(let Oe=me.length;Oe>0;Oe--){const Xe=me.slice(0,Oe).join(", ");if(!(Xe.length>_))return Oe===me.length?Xe:Se(Xe,_)}return""}function De(q){return Pe(q,new Map)}function Pe(q,_){if(Mt(q)){const me=_.get(q);if(me!==void 0)return me;const Oe={};_.set(q,Oe);for(const Xe of Object.keys(q))typeof q[Xe]!="undefined"&&(Oe[Xe]=Pe(q[Xe],_));return Oe}if(Array.isArray(q)){const me=_.get(q);if(me!==void 0)return me;const Oe=[];return _.set(q,Oe),q.forEach(Xe=>{Oe.push(Pe(Xe,_))}),Oe}return q}function we(q){let _;switch(!0){case q==null:_=new String(q);break;case(typeof q=="symbol"||typeof q=="bigint"):_=Object(q);break;case isPrimitive(q):_=new q.constructor(q);break;default:_=q;break}return _}function Le(q){const _=(0,W.ph)(),me={sid:A(),init:!0,timestamp:_,started:_,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>dt(me)};return q&&Ye(me,q),me}function Ye(q,_={}){if(_.user&&(!q.ipAddress&&_.user.ip_address&&(q.ipAddress=_.user.ip_address),!q.did&&!_.did&&(q.did=_.user.id||_.user.email||_.user.username)),q.timestamp=_.timestamp||(0,W.ph)(),_.ignoreDuration&&(q.ignoreDuration=_.ignoreDuration),_.sid&&(q.sid=_.sid.length===32?_.sid:A()),_.init!==void 0&&(q.init=_.init),!q.did&&_.did&&(q.did=`${_.did}`),typeof _.started=="number"&&(q.started=_.started),q.ignoreDuration)q.duration=void 0;else if(typeof _.duration=="number")q.duration=_.duration;else{const me=q.timestamp-q.started;q.duration=me>=0?me:0}_.release&&(q.release=_.release),_.environment&&(q.environment=_.environment),!q.ipAddress&&_.ipAddress&&(q.ipAddress=_.ipAddress),!q.userAgent&&_.userAgent&&(q.userAgent=_.userAgent),typeof _.errors=="number"&&(q.errors=_.errors),_.status&&(q.status=_.status)}function Ue(q,_){let me={};_?me={status:_}:q.status==="ok"&&(me={status:"exited"}),Ye(q,me)}function dt(q){return De({sid:`${q.sid}`,init:q.init,started:new Date(q.started*1e3).toISOString(),timestamp:new Date(q.timestamp*1e3).toISOString(),status:q.status,errors:q.errors,did:typeof q.did=="number"||typeof q.did=="string"?`${q.did}`:void 0,duration:q.duration,attrs:{release:q.release,environment:q.environment,ip_address:q.ipAddress,user_agent:q.userAgent}})}const bt=100;class ft{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=jt()}static clone(_){const me=new ft;return _&&(me._breadcrumbs=[..._._breadcrumbs],me._tags=Na({},_._tags),me._extra=Na({},_._extra),me._contexts=Na({},_._contexts),me._user=_._user,me._level=_._level,me._span=_._span,me._session=_._session,me._transactionName=_._transactionName,me._fingerprint=_._fingerprint,me._eventProcessors=[..._._eventProcessors],me._requestSession=_._requestSession,me._attachments=[..._._attachments],me._sdkProcessingMetadata=Na({},_._sdkProcessingMetadata),me._propagationContext=Na({},_._propagationContext)),me}addScopeListener(_){this._scopeListeners.push(_)}addEventProcessor(_){return this._eventProcessors.push(_),this}setUser(_){return this._user=_||{},this._session&&Ye(this._session,{user:_}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(_){return this._requestSession=_,this}setTags(_){return this._tags=Na(Na({},this._tags),_),this._notifyScopeListeners(),this}setTag(_,me){return this._tags=Zs(Na({},this._tags),{[_]:me}),this._notifyScopeListeners(),this}setExtras(_){return this._extra=Na(Na({},this._extra),_),this._notifyScopeListeners(),this}setExtra(_,me){return this._extra=Zs(Na({},this._extra),{[_]:me}),this._notifyScopeListeners(),this}setFingerprint(_){return this._fingerprint=_,this._notifyScopeListeners(),this}setLevel(_){return this._level=_,this._notifyScopeListeners(),this}setTransactionName(_){return this._transactionName=_,this._notifyScopeListeners(),this}setContext(_,me){return me===null?delete this._contexts[_]:this._contexts[_]=me,this._notifyScopeListeners(),this}setSpan(_){return this._span=_,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const _=this.getSpan();return _&&_.transaction}setSession(_){return _?this._session=_:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(_){if(!_)return this;if(typeof _=="function"){const me=_(this);return me instanceof ft?me:this}return _ instanceof ft?(this._tags=Na(Na({},this._tags),_._tags),this._extra=Na(Na({},this._extra),_._extra),this._contexts=Na(Na({},this._contexts),_._contexts),_._user&&Object.keys(_._user).length&&(this._user=_._user),_._level&&(this._level=_._level),_._fingerprint&&(this._fingerprint=_._fingerprint),_._requestSession&&(this._requestSession=_._requestSession),_._propagationContext&&(this._propagationContext=_._propagationContext)):Mt(_)&&(_=_,this._tags=Na(Na({},this._tags),_.tags),this._extra=Na(Na({},this._extra),_.extra),this._contexts=Na(Na({},this._contexts),_.contexts),_.user&&(this._user=_.user),_.level&&(this._level=_.level),_.fingerprint&&(this._fingerprint=_.fingerprint),_.requestSession&&(this._requestSession=_.requestSession),_.propagationContext&&(this._propagationContext=_.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=jt(),this}addBreadcrumb(_,me){const Oe=typeof me=="number"?me:bt;if(Oe<=0)return this;const Xe=Na({timestamp:(0,W.yW)()},_);return this._breadcrumbs=[...this._breadcrumbs,Xe].slice(-Oe),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(_){return this._attachments.push(_),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(_,me={}){if(this._extra&&Object.keys(this._extra).length&&(_.extra=Na(Na({},this._extra),_.extra)),this._tags&&Object.keys(this._tags).length&&(_.tags=Na(Na({},this._tags),_.tags)),this._user&&Object.keys(this._user).length&&(_.user=Na(Na({},this._user),_.user)),this._contexts&&Object.keys(this._contexts).length&&(_.contexts=Na(Na({},this._contexts),_.contexts)),this._level&&(_.level=this._level),this._transactionName&&(_.transaction=this._transactionName),this._span){_.contexts=Na({trace:this._span.getTraceContext()},_.contexts);const Oe=this._span.transaction;if(Oe){_.sdkProcessingMetadata=Na({dynamicSamplingContext:Oe.getDynamicSamplingContext()},_.sdkProcessingMetadata);const Xe=Oe.name;Xe&&(_.tags=Na({transaction:Xe},_.tags))}}return this._applyFingerprint(_),_.breadcrumbs=[..._.breadcrumbs||[],...this._breadcrumbs],_.breadcrumbs=_.breadcrumbs.length>0?_.breadcrumbs:void 0,_.sdkProcessingMetadata=Zs(Na(Na({},_.sdkProcessingMetadata),this._sdkProcessingMetadata),{propagationContext:this._propagationContext}),this._notifyEventProcessors([...At(),...this._eventProcessors],_,me)}setSDKProcessingMetadata(_){return this._sdkProcessingMetadata=Na(Na({},this._sdkProcessingMetadata),_),this}setPropagationContext(_){return this._propagationContext=_,this}getPropagationContext(){return this._propagationContext}_notifyEventProcessors(_,me,Oe,Xe=0){return new N((pt,Ht)=>{const on=_[Xe];if(me===null||typeof on!="function")pt(me);else{const Sn=on(Na({},me),Oe);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&on.id&&Sn===null&&P.log(`Event processor "${on.id}" dropped event`),ke(Sn)?Sn.then(Xn=>this._notifyEventProcessors(_,Xn,Oe,Xe+1).then(pt)).then(null,Ht):this._notifyEventProcessors(_,Sn,Oe,Xe+1).then(pt).then(null,Ht)}})}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(_=>{_(this)}),this._notifyingListeners=!1)}_applyFingerprint(_){_.fingerprint=_.fingerprint?te(_.fingerprint):[],this._fingerprint&&(_.fingerprint=_.fingerprint.concat(this._fingerprint)),_.fingerprint&&!_.fingerprint.length&&delete _.fingerprint}}function At(){return(0,z.YO)("globalEventProcessors",()=>[])}function Ot(q){At().push(q)}function jt(){return{traceId:A(),spanId:A().substring(16),sampled:!1}}const Gt=4,Xt=100;class Bn{constructor(_,me=new ft,Oe=Gt){this._version=Oe,this._stack=[{scope:me}],_&&this.bindClient(_)}isOlderThan(_){return this._version<_}bindClient(_){const me=this.getStackTop();me.client=_,_&&_.setupIntegrations&&_.setupIntegrations()}pushScope(){const _=ft.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:_}),_}popScope(){return this.getStack().length<=1?!1:!!this.getStack().pop()}withScope(_){const me=this.pushScope();try{_(me)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(_,me){const Oe=this._lastEventId=me&&me.event_id?me.event_id:A(),Xe=new Error("Sentry syntheticException");return this._withClient((pt,Ht)=>{pt.captureException(_,Zs(Na({originalException:_,syntheticException:Xe},me),{event_id:Oe}),Ht)}),Oe}captureMessage(_,me,Oe){const Xe=this._lastEventId=Oe&&Oe.event_id?Oe.event_id:A(),pt=new Error(_);return this._withClient((Ht,on)=>{Ht.captureMessage(_,me,Zs(Na({originalException:_,syntheticException:pt},Oe),{event_id:Xe}),on)}),Xe}captureEvent(_,me){const Oe=me&&me.event_id?me.event_id:A();return _.type||(this._lastEventId=Oe),this._withClient((Xe,pt)=>{Xe.captureEvent(_,Zs(Na({},me),{event_id:Oe}),pt)}),Oe}lastEventId(){return this._lastEventId}addBreadcrumb(_,me){const{scope:Oe,client:Xe}=this.getStackTop();if(!Xe)return;const{beforeBreadcrumb:pt=null,maxBreadcrumbs:Ht=Xt}=Xe.getOptions&&Xe.getOptions()||{};if(Ht<=0)return;const on=(0,W.yW)(),Sn=Na({timestamp:on},_),Xn=pt?k(()=>pt(Sn,me)):Sn;Xn!==null&&(Xe.emit&&Xe.emit("beforeAddBreadcrumb",Xn,me),Oe.addBreadcrumb(Xn,Ht))}setUser(_){this.getScope().setUser(_)}setTags(_){this.getScope().setTags(_)}setExtras(_){this.getScope().setExtras(_)}setTag(_,me){this.getScope().setTag(_,me)}setExtra(_,me){this.getScope().setExtra(_,me)}setContext(_,me){this.getScope().setContext(_,me)}configureScope(_){const{scope:me,client:Oe}=this.getStackTop();Oe&&_(me)}run(_){const me=$n(this);try{_(this)}finally{$n(me)}}getIntegration(_){const me=this.getClient();if(!me)return null;try{return me.getIntegration(_)}catch(Oe){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Cannot retrieve integration ${_.id} from the current Hub`),null}}startTransaction(_,me){const Oe=this._callExtensionMethod("startTransaction",_,me);if((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&!Oe){const Xe=this.getClient();console.warn(Xe?`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': Sentry.addTracingExtensions(); Sentry.init({...}); -`:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return Oe}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(_=!1){if(_)return this.endSession();this._sendSessionUpdate()}endSession(){const me=this.getStackTop().scope,Oe=me.getSession();Oe&&Ue(Oe),this._sendSessionUpdate(),me.setSession()}startSession(_){const{scope:me,client:Oe}=this.getStackTop(),{release:Xe,environment:pt=Q}=Oe&&Oe.getOptions()||{},{userAgent:Ht}=z.n2.navigator||{},an=Le(La(La({release:Xe,environment:pt,user:me.getUser()},Ht&&{userAgent:Ht}),_)),En=me.getSession&&me.getSession();return En&&En.status==="ok"&&Ye(En,{status:"exited"}),this.endSession(),me.setSession(an),an}shouldSendDefaultPii(){const _=this.getClient(),me=_&&_.getOptions();return!!(me&&me.sendDefaultPii)}_sendSessionUpdate(){const{scope:_,client:me}=this.getStackTop(),Oe=_.getSession();Oe&&me&&me.captureSession&&me.captureSession(Oe)}_withClient(_){const{scope:me,client:Oe}=this.getStackTop();Oe&&_(Oe,me)}_callExtensionMethod(_,...me){const Xe=fn().__SENTRY__;if(Xe&&Xe.extensions&&typeof Xe.extensions[_]=="function")return Xe.extensions[_].apply(this,me);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Extension method ${_} couldn't be found, doing nothing.`)}}function fn(){return z.n2.__SENTRY__=z.n2.__SENTRY__||{extensions:{},hub:void 0},z.n2}function Bn(q){const _=fn(),me=st(_);return ut(_,q),me}function On(){const q=fn();if(q.__SENTRY__&&q.__SENTRY__.acs){const _=q.__SENTRY__.acs.getCurrentHub();if(_)return _}return Mn(q)}function Mn(q=fn()){return(!rn(q)||st(q).isOlderThan(Gt))&&ut(q,new zn),st(q)}function _e(q,_=Mn()){if(!rn(q)||st(q).isOlderThan(Gt)){const me=_.getStackTop();ut(q,new zn(me.client,Scope.clone(me.scope)))}}function at(q){const _=fn();_.__SENTRY__=_.__SENTRY__||{},_.__SENTRY__.acs=q}function Vt(q,_={}){const me=fn();return me.__SENTRY__&&me.__SENTRY__.acs?me.__SENTRY__.acs.runWithAsyncContext(q,_):q()}function rn(q){return!!(q&&q.__SENTRY__&&q.__SENTRY__.hub)}function st(q){return(0,z.YO)("hub",()=>new zn,q)}function ut(q,_){if(!q)return!1;const me=q.__SENTRY__=q.__SENTRY__||{};return me.hub=_,!0}const $t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],nt=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class gt{static __initStatic(){this.id="InboundFilters"}constructor(_={}){this.name=gt.id,this._options=_}setupOnce(_,me){const Oe=Xe=>{const pt=me();if(pt){const Ht=pt.getIntegration(gt);if(Ht){const an=pt.getClient(),En=an?an.getOptions():{},Qn=Dt(Ht._options,En);return xn(Xe,Qn)?null:Xe}}return Xe};Oe.id=this.name,_(Oe)}}gt.__initStatic();function Dt(q={},_={}){return{allowUrls:[...q.allowUrls||[],..._.allowUrls||[]],denyUrls:[...q.denyUrls||[],..._.denyUrls||[]],ignoreErrors:[...q.ignoreErrors||[],..._.ignoreErrors||[],...q.disableErrorDefaults?[]:$t],ignoreTransactions:[...q.ignoreTransactions||[],..._.ignoreTransactions||[],...q.disableTransactionDefaults?[]:nt],ignoreInternal:q.ignoreInternal!==void 0?q.ignoreInternal:!0}}function xn(q,_){return _.ignoreInternal&&Or(q)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being internal Sentry Error. -Event: ${I(q)}`),!0):tn(q,_.ignoreErrors)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +`:"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return Oe}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(_=!1){if(_)return this.endSession();this._sendSessionUpdate()}endSession(){const me=this.getStackTop().scope,Oe=me.getSession();Oe&&Ue(Oe),this._sendSessionUpdate(),me.setSession()}startSession(_){const{scope:me,client:Oe}=this.getStackTop(),{release:Xe,environment:pt=Q}=Oe&&Oe.getOptions()||{},{userAgent:Ht}=z.n2.navigator||{},on=Le(Na(Na({release:Xe,environment:pt,user:me.getUser()},Ht&&{userAgent:Ht}),_)),Sn=me.getSession&&me.getSession();return Sn&&Sn.status==="ok"&&Ye(Sn,{status:"exited"}),this.endSession(),me.setSession(on),on}shouldSendDefaultPii(){const _=this.getClient(),me=_&&_.getOptions();return!!(me&&me.sendDefaultPii)}_sendSessionUpdate(){const{scope:_,client:me}=this.getStackTop(),Oe=_.getSession();Oe&&me&&me.captureSession&&me.captureSession(Oe)}_withClient(_){const{scope:me,client:Oe}=this.getStackTop();Oe&&_(Oe,me)}_callExtensionMethod(_,...me){const Xe=fn().__SENTRY__;if(Xe&&Xe.extensions&&typeof Xe.extensions[_]=="function")return Xe.extensions[_].apply(this,me);(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Extension method ${_} couldn't be found, doing nothing.`)}}function fn(){return z.n2.__SENTRY__=z.n2.__SENTRY__||{extensions:{},hub:void 0},z.n2}function $n(q){const _=fn(),me=st(_);return ut(_,q),me}function On(){const q=fn();if(q.__SENTRY__&&q.__SENTRY__.acs){const _=q.__SENTRY__.acs.getCurrentHub();if(_)return _}return Mn(q)}function Mn(q=fn()){return(!an(q)||st(q).isOlderThan(Gt))&&ut(q,new Bn),st(q)}function _e(q,_=Mn()){if(!an(q)||st(q).isOlderThan(Gt)){const me=_.getStackTop();ut(q,new Bn(me.client,Scope.clone(me.scope)))}}function at(q){const _=fn();_.__SENTRY__=_.__SENTRY__||{},_.__SENTRY__.acs=q}function Vt(q,_={}){const me=fn();return me.__SENTRY__&&me.__SENTRY__.acs?me.__SENTRY__.acs.runWithAsyncContext(q,_):q()}function an(q){return!!(q&&q.__SENTRY__&&q.__SENTRY__.hub)}function st(q){return(0,z.YO)("hub",()=>new Bn,q)}function ut(q,_){if(!q)return!1;const me=q.__SENTRY__=q.__SENTRY__||{};return me.hub=_,!0}const $t=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],nt=[/^.*healthcheck.*$/,/^.*healthy.*$/,/^.*live.*$/,/^.*ready.*$/,/^.*heartbeat.*$/,/^.*\/health$/,/^.*\/healthz$/];class mt{static __initStatic(){this.id="InboundFilters"}constructor(_={}){this.name=mt.id,this._options=_}setupOnce(_,me){const Oe=Xe=>{const pt=me();if(pt){const Ht=pt.getIntegration(mt);if(Ht){const on=pt.getClient(),Sn=on?on.getOptions():{},Xn=Dt(Ht._options,Sn);return Cn(Xe,Xn)?null:Xe}}return Xe};Oe.id=this.name,_(Oe)}}mt.__initStatic();function Dt(q={},_={}){return{allowUrls:[...q.allowUrls||[],..._.allowUrls||[]],denyUrls:[...q.denyUrls||[],..._.denyUrls||[]],ignoreErrors:[...q.ignoreErrors||[],..._.ignoreErrors||[],...q.disableErrorDefaults?[]:$t],ignoreTransactions:[...q.ignoreTransactions||[],..._.ignoreTransactions||[],...q.disableTransactionDefaults?[]:nt],ignoreInternal:q.ignoreInternal!==void 0?q.ignoreInternal:!0}}function Cn(q,_){return _.ignoreInternal&&Or(q)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being internal Sentry Error. +Event: ${I(q)}`),!0):en(q,_.ignoreErrors)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being matched by \`ignoreErrors\` option. Event: ${I(q)}`),!0):Hn(q,_.ignoreTransactions)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${I(q)}`),!0):Nn(q,_.denyUrls)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${I(q)}`),!0):Rn(q,_.denyUrls)?((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to being matched by \`denyUrls\` option. Event: ${I(q)}. Url: ${mr(q)}`),!0):pr(q,_.allowUrls)?!1:((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`Event dropped due to not being matched by \`allowUrls\` option. Event: ${I(q)}. -Url: ${mr(q)}`),!0)}function tn(q,_){return q.type||!_||!_.length?!1:gr(q).some(me=>le(me,_))}function Hn(q,_){if(q.type!=="transaction"||!_||!_.length)return!1;const me=q.transaction;return me?le(me,_):!1}function Nn(q,_){if(!_||!_.length)return!1;const me=mr(q);return me?le(me,_):!1}function pr(q,_){if(!_||!_.length)return!0;const me=mr(q);return me?le(me,_):!0}function gr(q){if(q.message)return[q.message];if(q.exception){const{values:_}=q.exception;try{const{type:me="",value:Oe=""}=_&&_[_.length-1]||{};return[`${Oe}`,`${me}: ${Oe}`]}catch(me){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Cannot extract message for event ${I(q)}`),[]}}return[]}function Or(q){try{return q.exception.values[0].type==="SentryError"}catch(_){}return!1}function ar(q=[]){for(let _=q.length-1;_>=0;_--){const me=q[_];if(me&&me.filename!==""&&me.filename!=="[native code]")return me.filename||null}return null}function mr(q){try{let _;try{_=q.exception.values[0].stacktrace.frames}catch(me){}return _?ar(_):null}catch(_){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Cannot extract url for event ${I(q)}`),null}}let ea;class Lr{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Lr.id}setupOnce(){ea=Function.prototype.toString;try{Function.prototype.toString=function(..._){const me=pe(this)||this;return ea.apply(me,_)}}catch(_){}}}Lr.__initStatic();const Kn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zt(q){return q==="http"||q==="https"}function Ft(q,_=!1){const{host:me,path:Oe,pass:Xe,port:pt,projectId:Ht,protocol:an,publicKey:En}=q;return`${an}://${En}${_&&Xe?`:${Xe}`:""}@${me}${pt?`:${pt}`:""}/${Oe&&`${Oe}/`}${Ht}`}function on(q){const _=Kn.exec(q);if(!_){console.error(`Invalid Sentry Dsn: ${q}`);return}const[me,Oe,Xe="",pt,Ht="",an]=_.slice(1);let En="",Qn=an;const _r=Qn.split("/");if(_r.length>1&&(En=_r.slice(0,-1).join("/"),Qn=_r.pop()),Qn){const Hr=Qn.match(/^\d+/);Hr&&(Qn=Hr[0])}return nn({host:pt,pass:Xe,path:En,projectId:Qn,port:Ht,protocol:me,publicKey:Oe})}function nn(q){return{protocol:q.protocol,publicKey:q.publicKey||"",pass:q.pass||"",host:q.host,port:q.port||"",path:q.path||"",projectId:q.projectId}}function kt(q){if(!(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__))return!0;const{port:_,projectId:me,protocol:Oe}=q;return["protocol","publicKey","host","projectId"].find(Ht=>q[Ht]?!1:(P.error(`Invalid Sentry Dsn: ${Ht} missing`),!0))?!1:me.match(/^\d+$/)?zt(Oe)?_&&isNaN(parseInt(_,10))?(P.error(`Invalid Sentry Dsn: Invalid port ${_}`),!1):!0:(P.error(`Invalid Sentry Dsn: Invalid protocol ${Oe}`),!1):(P.error(`Invalid Sentry Dsn: Invalid projectId ${me}`),!1)}function hn(q){const _=typeof q=="string"?on(q):nn(q);if(!(!_||!kt(_)))return _}const dn="7";function $n(q){const _=q.protocol?`${q.protocol}:`:"",me=q.port?`:${q.port}`:"";return`${_}//${q.host}${me}${q.path?`/${q.path}`:""}/api/`}function qn(q){return`${$n(q)}${q.projectId}/envelope/`}function ct(q,_){return urlEncode(La({sentry_key:q.publicKey,sentry_version:dn},_&&{sentry_client:`${_.name}/${_.version}`}))}function lt(q,_={}){const me=typeof _=="string"?_:_.tunnel,Oe=typeof _=="string"||!_._metadata?void 0:_._metadata.sdk;return me||`${qn(q)}?${ct(q,Oe)}`}function xt(q,_){const me=hn(q);if(!me)return"";const Oe=`${$n(me)}embed/error-page/`;let Xe=`dsn=${Ft(me)}`;for(const pt in _)if(pt!=="dsn")if(pt==="user"){const Ht=_.user;if(!Ht)continue;Ht.name&&(Xe+=`&name=${encodeURIComponent(Ht.name)}`),Ht.email&&(Xe+=`&email=${encodeURIComponent(Ht.email)}`)}else Xe+=`&${encodeURIComponent(pt)}=${encodeURIComponent(_[pt])}`;return`${Oe}?${Xe}`}function St(q,_){return On().captureException(q,{captureContext:_})}function Lt(q,_){const me=typeof _=="string"?_:void 0,Oe=typeof _!="string"?{captureContext:_}:void 0;return getCurrentHub().captureMessage(q,me,Oe)}function _t(q,_){return getCurrentHub().captureEvent(q,_)}function Wt(q){getCurrentHub().configureScope(q)}function yn(q){getCurrentHub().addBreadcrumb(q)}function kn(q,_){getCurrentHub().setContext(q,_)}function hr(q){getCurrentHub().setExtras(q)}function cr(q,_){getCurrentHub().setExtra(q,_)}function Dn(q){getCurrentHub().setTags(q)}function Rr(q,_){getCurrentHub().setTag(q,_)}function or(q){getCurrentHub().setUser(q)}function Gr(q){On().withScope(q)}function Ir(q,_){return getCurrentHub().startTransaction(La({},q),_)}function jn(q,_){const me=getCurrentHub(),Oe=me.getScope(),Xe=me.getClient();if(!Xe)(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot capture check-in. No client defined.");else if(!Xe.captureCheckIn)(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return Xe.captureCheckIn(q,_,Oe);return uuid4()}function vn(q){return xf(this,null,function*(){const _=getCurrentHub().getClient();return _?_.flush(q):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))})}function Ln(q){return xf(this,null,function*(){const _=getCurrentHub().getClient();return _?_.close(q):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))})}function Zn(){return getCurrentHub().lastEventId()}const yr=z.n2;let Fr=0;function Kr(){return Fr>0}function aa(){Fr++,setTimeout(()=>{Fr--})}function Jr(q,_={},me){if(typeof q!="function")return q;try{const Xe=q.__sentry_wrapped__;if(Xe)return Xe;if(pe(q))return q}catch(Xe){return q}const Oe=function(){const Xe=Array.prototype.slice.call(arguments);try{me&&typeof me=="function"&&me.apply(this,arguments);const pt=Xe.map(Ht=>Jr(Ht,_));return q.apply(this,pt)}catch(pt){throw aa(),Gr(Ht=>{Ht.addEventProcessor(an=>(_.mechanism&&($(an,void 0,void 0),B(an,_.mechanism)),an.extra=Zs(La({},an.extra),{arguments:Xe}),an)),St(pt)}),pt}};try{for(const Xe in q)Object.prototype.hasOwnProperty.call(q,Xe)&&(Oe[Xe]=q[Xe])}catch(Xe){}Ze(Oe,q),xe(q,"__sentry_wrapped__",Oe);try{Object.getOwnPropertyDescriptor(Oe,"name").configurable&&Object.defineProperty(Oe,"name",{get(){return q.name}})}catch(Xe){}return Oe}const Zr=50,Ca=/\(error: (.*)\)/,la=/captureMessage|captureException/;function Tn(...q){const _=q.sort((me,Oe)=>me[0]-Oe[0]).map(me=>me[1]);return(me,Oe=0)=>{const Xe=[],pt=me.split(` -`);for(let Ht=Oe;Ht1024)continue;const En=Ca.test(an)?an.replace(Ca,"$1"):an;if(!En.match(/\S*Error: /)){for(const Qn of _){const _r=Qn(En);if(_r){Xe.push(_r);break}}if(Xe.length>=Zr)break}}return Yn(Xe)}}function In(q){return Array.isArray(q)?Tn(...q):q}function Yn(q){if(!q.length)return[];const _=Array.from(q);return/sentryWrapped/.test(_[_.length-1].function||"")&&_.pop(),_.reverse(),la.test(_[_.length-1].function||"")&&(_.pop(),la.test(_[_.length-1].function||"")&&_.pop()),_.slice(0,Zr).map(me=>Zs(La({},me),{filename:me.filename||_[_.length-1].filename,function:me.function||"?"}))}const Nr="";function zr(q){try{return!q||typeof q!="function"?Nr:q.name||Nr}catch(_){return Nr}}function Br(q){return[90,node(q)]}const Ma=(0,z.Rf)();function uo(){try{return new ErrorEvent(""),!0}catch(q){return!1}}function to(){try{return new DOMError(""),!0}catch(q){return!1}}function Io(){try{return new DOMException(""),!0}catch(q){return!1}}function ja(){if(!("fetch"in Ma))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(q){return!1}}function Ua(q){return q&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(q.toString())}function qa(){if(!ja())return!1;if(Ua(Ma.fetch))return!0;let q=!1;const _=Ma.document;if(_&&typeof _.createElement=="function")try{const me=_.createElement("iframe");me.hidden=!0,_.head.appendChild(me),me.contentWindow&&me.contentWindow.fetch&&(q=Ua(me.contentWindow.fetch)),_.head.removeChild(me)}catch(me){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",me)}return q}function Fo(){return"ReportingObserver"in Ma}function Lo(){if(!ja())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(q){return!1}}const Bo=(0,z.Rf)();function ot(){const q=Bo.chrome,_=q&&q.app&&q.app.runtime,me="history"in Bo&&!!Bo.history.pushState&&!!Bo.history.replaceState;return!_&&me}const yt=(0,z.Rf)(),be="__sentry_xhr_v2__",Bt={},Jt={};function Xn(q){if(!Jt[q])switch(Jt[q]=!0,q){case"console":ta();break;case"dom":An();break;case"xhr":sr();break;case"fetch":ka();break;case"history":jr();break;case"error":fr();break;case"unhandledrejection":wn();break;default:(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("unknown instrumentation type:",q);return}}function Gn(q,_){Bt[q]=Bt[q]||[],Bt[q].push(_),Xn(q)}function br(q,_){if(!(!q||!Bt[q]))for(const me of Bt[q]||[])try{me(_)}catch(Oe){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Error while triggering instrumentation handler. +Url: ${mr(q)}`),!0)}function en(q,_){return q.type||!_||!_.length?!1:gr(q).some(me=>le(me,_))}function Hn(q,_){if(q.type!=="transaction"||!_||!_.length)return!1;const me=q.transaction;return me?le(me,_):!1}function Rn(q,_){if(!_||!_.length)return!1;const me=mr(q);return me?le(me,_):!1}function pr(q,_){if(!_||!_.length)return!0;const me=mr(q);return me?le(me,_):!0}function gr(q){if(q.message)return[q.message];if(q.exception){const{values:_}=q.exception;try{const{type:me="",value:Oe=""}=_&&_[_.length-1]||{};return[`${Oe}`,`${me}: ${Oe}`]}catch(me){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Cannot extract message for event ${I(q)}`),[]}}return[]}function Or(q){try{return q.exception.values[0].type==="SentryError"}catch(_){}return!1}function ar(q=[]){for(let _=q.length-1;_>=0;_--){const me=q[_];if(me&&me.filename!==""&&me.filename!=="[native code]")return me.filename||null}return null}function mr(q){try{let _;try{_=q.exception.values[0].stacktrace.frames}catch(me){}return _?ar(_):null}catch(_){return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Cannot extract url for event ${I(q)}`),null}}let qr;class Pr{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=Pr.id}setupOnce(){qr=Function.prototype.toString;try{Function.prototype.toString=function(..._){const me=pe(this)||this;return qr.apply(me,_)}}catch(_){}}}Pr.__initStatic();const Vn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function zt(q){return q==="http"||q==="https"}function Ft(q,_=!1){const{host:me,path:Oe,pass:Xe,port:pt,projectId:Ht,protocol:on,publicKey:Sn}=q;return`${on}://${Sn}${_&&Xe?`:${Xe}`:""}@${me}${pt?`:${pt}`:""}/${Oe&&`${Oe}/`}${Ht}`}function sn(q){const _=Vn.exec(q);if(!_){console.error(`Invalid Sentry Dsn: ${q}`);return}const[me,Oe,Xe="",pt,Ht="",on]=_.slice(1);let Sn="",Xn=on;const _r=Xn.split("/");if(_r.length>1&&(Sn=_r.slice(0,-1).join("/"),Xn=_r.pop()),Xn){const Hr=Xn.match(/^\d+/);Hr&&(Xn=Hr[0])}return tn({host:pt,pass:Xe,path:Sn,projectId:Xn,port:Ht,protocol:me,publicKey:Oe})}function tn(q){return{protocol:q.protocol,publicKey:q.publicKey||"",pass:q.pass||"",host:q.host,port:q.port||"",path:q.path||"",projectId:q.projectId}}function kt(q){if(!(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__))return!0;const{port:_,projectId:me,protocol:Oe}=q;return["protocol","publicKey","host","projectId"].find(Ht=>q[Ht]?!1:(P.error(`Invalid Sentry Dsn: ${Ht} missing`),!0))?!1:me.match(/^\d+$/)?zt(Oe)?_&&isNaN(parseInt(_,10))?(P.error(`Invalid Sentry Dsn: Invalid port ${_}`),!1):!0:(P.error(`Invalid Sentry Dsn: Invalid protocol ${Oe}`),!1):(P.error(`Invalid Sentry Dsn: Invalid projectId ${me}`),!1)}function hn(q){const _=typeof q=="string"?sn(q):tn(q);if(!(!_||!kt(_)))return _}const dn="7";function Fn(q){const _=q.protocol?`${q.protocol}:`:"",me=q.port?`:${q.port}`:"";return`${_}//${q.host}${me}${q.path?`/${q.path}`:""}/api/`}function tr(q){return`${Fn(q)}${q.projectId}/envelope/`}function ct(q,_){return urlEncode(Na({sentry_key:q.publicKey,sentry_version:dn},_&&{sentry_client:`${_.name}/${_.version}`}))}function lt(q,_={}){const me=typeof _=="string"?_:_.tunnel,Oe=typeof _=="string"||!_._metadata?void 0:_._metadata.sdk;return me||`${tr(q)}?${ct(q,Oe)}`}function xt(q,_){const me=hn(q);if(!me)return"";const Oe=`${Fn(me)}embed/error-page/`;let Xe=`dsn=${Ft(me)}`;for(const pt in _)if(pt!=="dsn")if(pt==="user"){const Ht=_.user;if(!Ht)continue;Ht.name&&(Xe+=`&name=${encodeURIComponent(Ht.name)}`),Ht.email&&(Xe+=`&email=${encodeURIComponent(Ht.email)}`)}else Xe+=`&${encodeURIComponent(pt)}=${encodeURIComponent(_[pt])}`;return`${Oe}?${Xe}`}function St(q,_){return On().captureException(q,{captureContext:_})}function Nt(q,_){const me=typeof _=="string"?_:void 0,Oe=typeof _!="string"?{captureContext:_}:void 0;return getCurrentHub().captureMessage(q,me,Oe)}function _t(q,_){return getCurrentHub().captureEvent(q,_)}function Wt(q){getCurrentHub().configureScope(q)}function yn(q){getCurrentHub().addBreadcrumb(q)}function kn(q,_){getCurrentHub().setContext(q,_)}function hr(q){getCurrentHub().setExtras(q)}function cr(q,_){getCurrentHub().setExtra(q,_)}function Dn(q){getCurrentHub().setTags(q)}function Rr(q,_){getCurrentHub().setTag(q,_)}function or(q){getCurrentHub().setUser(q)}function Gr(q){On().withScope(q)}function Ir(q,_){return getCurrentHub().startTransaction(Na({},q),_)}function Pn(q,_){const me=getCurrentHub(),Oe=me.getScope(),Xe=me.getClient();if(!Xe)(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot capture check-in. No client defined.");else if(!Xe.captureCheckIn)(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot capture check-in. Client does not support sending check-ins.");else return Xe.captureCheckIn(q,_,Oe);return uuid4()}function vn(q){return xf(this,null,function*(){const _=getCurrentHub().getClient();return _?_.flush(q):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot flush events. No client defined."),Promise.resolve(!1))})}function Nn(q){return xf(this,null,function*(){const _=getCurrentHub().getClient();return _?_.close(q):((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&logger.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))})}function Zn(){return getCurrentHub().lastEventId()}const yr=z.n2;let $r=0;function Kr(){return $r>0}function ra(){$r++,setTimeout(()=>{$r--})}function Xr(q,_={},me){if(typeof q!="function")return q;try{const Xe=q.__sentry_wrapped__;if(Xe)return Xe;if(pe(q))return q}catch(Xe){return q}const Oe=function(){const Xe=Array.prototype.slice.call(arguments);try{me&&typeof me=="function"&&me.apply(this,arguments);const pt=Xe.map(Ht=>Xr(Ht,_));return q.apply(this,pt)}catch(pt){throw ra(),Gr(Ht=>{Ht.addEventProcessor(on=>(_.mechanism&&($(on,void 0,void 0),B(on,_.mechanism)),on.extra=Zs(Na({},on.extra),{arguments:Xe}),on)),St(pt)}),pt}};try{for(const Xe in q)Object.prototype.hasOwnProperty.call(q,Xe)&&(Oe[Xe]=q[Xe])}catch(Xe){}Ze(Oe,q),xe(q,"__sentry_wrapped__",Oe);try{Object.getOwnPropertyDescriptor(Oe,"name").configurable&&Object.defineProperty(Oe,"name",{get(){return q.name}})}catch(Xe){}return Oe}const Fr=50,xa=/\(error: (.*)\)/,la=/captureMessage|captureException/;function Tn(...q){const _=q.sort((me,Oe)=>me[0]-Oe[0]).map(me=>me[1]);return(me,Oe=0)=>{const Xe=[],pt=me.split(` +`);for(let Ht=Oe;Ht1024)continue;const Sn=xa.test(on)?on.replace(xa,"$1"):on;if(!Sn.match(/\S*Error: /)){for(const Xn of _){const _r=Xn(Sn);if(_r){Xe.push(_r);break}}if(Xe.length>=Fr)break}}return Gn(Xe)}}function xn(q){return Array.isArray(q)?Tn(...q):q}function Gn(q){if(!q.length)return[];const _=Array.from(q);return/sentryWrapped/.test(_[_.length-1].function||"")&&_.pop(),_.reverse(),la.test(_[_.length-1].function||"")&&(_.pop(),la.test(_[_.length-1].function||"")&&_.pop()),_.slice(0,Fr).map(me=>Zs(Na({},me),{filename:me.filename||_[_.length-1].filename,function:me.function||"?"}))}const Lr="";function zr(q){try{return!q||typeof q!="function"?Lr:q.name||Lr}catch(_){return Lr}}function Br(q){return[90,node(q)]}const Ma=(0,z.Rf)();function co(){try{return new ErrorEvent(""),!0}catch(q){return!1}}function ro(){try{return new DOMError(""),!0}catch(q){return!1}}function xo(){try{return new DOMException(""),!0}catch(q){return!1}}function Pa(){if(!("fetch"in Ma))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(q){return!1}}function Ua(q){return q&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(q.toString())}function eo(){if(!Pa())return!1;if(Ua(Ma.fetch))return!0;let q=!1;const _=Ma.document;if(_&&typeof _.createElement=="function")try{const me=_.createElement("iframe");me.hidden=!0,_.head.appendChild(me),me.contentWindow&&me.contentWindow.fetch&&(q=Ua(me.contentWindow.fetch)),_.head.removeChild(me)}catch(me){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",me)}return q}function Fo(){return"ReportingObserver"in Ma}function jo(){if(!Pa())return!1;try{return new Request("_",{referrerPolicy:"origin"}),!0}catch(q){return!1}}const Bo=(0,z.Rf)();function ot(){const q=Bo.chrome,_=q&&q.app&&q.app.runtime,me="history"in Bo&&!!Bo.history.pushState&&!!Bo.history.replaceState;return!_&&me}const yt=(0,z.Rf)(),be="__sentry_xhr_v2__",Bt={},Jt={};function Jn(q){if(!Jt[q])switch(Jt[q]=!0,q){case"console":ea();break;case"dom":An();break;case"xhr":sr();break;case"fetch":ka();break;case"history":Tr();break;case"error":fr();break;case"unhandledrejection":wn();break;default:(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("unknown instrumentation type:",q);return}}function Kn(q,_){Bt[q]=Bt[q]||[],Bt[q].push(_),Jn(q)}function br(q,_){if(!(!q||!Bt[q]))for(const me of Bt[q]||[])try{me(_)}catch(Oe){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.error(`Error while triggering instrumentation handler. Type: ${q} Name: ${zr(me)} -Error:`,Oe)}}function ta(){"console"in yt&&O.forEach(function(q){q in yt.console&&ve(yt.console,q,function(_){return function(...me){br("console",{args:me,level:q}),_&&_.apply(yt.console,me)}})})}function ka(){qa()&&ve(yt,"fetch",function(q){return function(..._){const{method:me,url:Oe}=wr(_),Xe={args:_,fetchData:{method:me,url:Oe},startTimestamp:Date.now()};return br("fetch",La({},Xe)),q.apply(yt,_).then(pt=>(br("fetch",Zs(La({},Xe),{endTimestamp:Date.now(),response:pt})),pt),pt=>{throw br("fetch",Zs(La({},Xe),{endTimestamp:Date.now(),error:pt})),pt})}})}function kr(q,_){return!!q&&typeof q=="object"&&!!q[_]}function Dr(q){return typeof q=="string"?q:q?kr(q,"url")?q.url:q.toString?q.toString():"":""}function wr(q){if(q.length===0)return{method:"GET",url:""};if(q.length===2){const[me,Oe]=q;return{url:Dr(me),method:kr(Oe,"method")?String(Oe.method).toUpperCase():"GET"}}const _=q[0];return{url:Dr(_),method:kr(_,"method")?String(_.method).toUpperCase():"GET"}}function sr(){if(!("XMLHttpRequest"in yt))return;const q=XMLHttpRequest.prototype;ve(q,"open",function(_){return function(...me){const Oe=me[1],Xe=this[be]={method:Ve(me[0])?me[0].toUpperCase():me[0],url:me[1],request_headers:{}};Ve(Oe)&&Xe.method==="POST"&&Oe.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const pt=()=>{const Ht=this[be];if(Ht&&this.readyState===4){try{Ht.status_code=this.status}catch(an){}br("xhr",{args:me,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ve(this,"onreadystatechange",function(Ht){return function(...an){return pt(),Ht.apply(this,an)}}):this.addEventListener("readystatechange",pt),ve(this,"setRequestHeader",function(Ht){return function(...an){const[En,Qn]=an,_r=this[be];return _r&&(_r.request_headers[En.toLowerCase()]=Qn),Ht.apply(this,an)}}),_.apply(this,me)}}),ve(q,"send",function(_){return function(...me){const Oe=this[be];return Oe&&me[0]!==void 0&&(Oe.body=me[0]),br("xhr",{args:me,startTimestamp:Date.now(),xhr:this}),_.apply(this,me)}})}let dr;function jr(){if(!ot())return;const q=yt.onpopstate;yt.onpopstate=function(...me){const Oe=yt.location.href,Xe=dr;if(dr=Oe,br("history",{from:Xe,to:Oe}),q)try{return q.apply(this,me)}catch(pt){}};function _(me){return function(...Oe){const Xe=Oe.length>2?Oe[2]:void 0;if(Xe){const pt=dr,Ht=String(Xe);dr=Ht,br("history",{from:pt,to:Ht})}return me.apply(this,Oe)}}ve(yt.history,"pushState",_),ve(yt.history,"replaceState",_)}const va=1e3;let co,Qa;function Tt(q,_){if(!q||q.type!==_.type)return!0;try{if(q.target!==_.target)return!0}catch(me){}return!1}function Kt(q){if(q.type!=="keypress")return!1;try{const _=q.target;if(!_||!_.tagName)return!0;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return!1}catch(_){}return!0}function sn(q,_=!1){return me=>{if(!me||Qa===me||Kt(me))return;const Oe=me.type==="keypress"?"input":me.type;co===void 0?(q({event:me,name:Oe,global:_}),Qa=me):Tt(Qa,me)&&(q({event:me,name:Oe,global:_}),Qa=me),clearTimeout(co),co=yt.setTimeout(()=>{co=void 0},va)}}function An(){if(!("document"in yt))return;const q=br.bind(null,"dom"),_=sn(q,!0);yt.document.addEventListener("click",_,!1),yt.document.addEventListener("keypress",_,!1),["EventTarget","Node"].forEach(me=>{const Oe=yt[me]&&yt[me].prototype;!Oe||!Oe.hasOwnProperty||!Oe.hasOwnProperty("addEventListener")||(ve(Oe,"addEventListener",function(Xe){return function(pt,Ht,an){if(pt==="click"||pt=="keypress")try{const En=this,Qn=En.__sentry_instrumentation_handlers__=En.__sentry_instrumentation_handlers__||{},_r=Qn[pt]=Qn[pt]||{refCount:0};if(!_r.handler){const Hr=sn(q);_r.handler=Hr,Xe.call(this,pt,Hr,an)}_r.refCount++}catch(En){}return Xe.call(this,pt,Ht,an)}}),ve(Oe,"removeEventListener",function(Xe){return function(pt,Ht,an){if(pt==="click"||pt=="keypress")try{const En=this,Qn=En.__sentry_instrumentation_handlers__||{},_r=Qn[pt];_r&&(_r.refCount--,_r.refCount<=0&&(Xe.call(this,pt,_r.handler,an),_r.handler=void 0,delete Qn[pt]),Object.keys(Qn).length===0&&delete En.__sentry_instrumentation_handlers__)}catch(En){}return Xe.call(this,pt,Ht,an)}}))})}let _n=null;function fr(){_n=yt.onerror,yt.onerror=function(q,_,me,Oe,Xe){return br("error",{column:Oe,error:Xe,line:me,msg:q,url:_}),_n&&!_n.__SENTRY_LOADER__?_n.apply(this,arguments):!1},yt.onerror.__SENTRY_INSTRUMENTED__=!0}let Er=null;function wn(){Er=yt.onunhandledrejection,yt.onunhandledrejection=function(q){return br("unhandledrejection",q),Er&&!Er.__SENTRY_LOADER__?Er.apply(this,arguments):!0},yt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function vr(){const q=typeof WeakSet=="function",_=q?new WeakSet:[];function me(Xe){if(q)return _.has(Xe)?!0:(_.add(Xe),!1);for(let pt=0;pt<_.length;pt++)if(_[pt]===Xe)return!0;return _.push(Xe),!1}function Oe(Xe){if(q)_.delete(Xe);else for(let pt=0;pt<_.length;pt++)if(_[pt]===Xe){_.splice(pt,1);break}}return[me,Oe]}function Ar(q,_=100,me=1/0){try{return na("",q,_,me)}catch(Oe){return{ERROR:`**non-serializable** (${Oe})`}}}function ia(q,_=3,me=102400){const Oe=Ar(q,_);return Ka(Oe)>me?ia(q,_-1,me):Oe}function na(q,_,me=1/0,Oe=1/0,Xe=vr()){const[pt,Ht]=Xe;if(_==null||["number","boolean","string"].includes(typeof _)&&!et(_))return _;const an=Wa(q,_);if(!an.startsWith("[object "))return an;if(_.__sentry_skip_normalization__)return _;const En=typeof _.__sentry_override_normalization_depth__=="number"?_.__sentry_override_normalization_depth__:me;if(En===0)return an.replace("object ","");if(pt(_))return"[Circular ~]";const Qn=_;if(Qn&&typeof Qn.toJSON=="function")try{const Ta=Qn.toJSON();return na("",Ta,En-1,Oe,Xe)}catch(Ta){}const _r=Array.isArray(_)?[]:{};let Hr=0;const ga=Ae(_);for(const Ta in ga){if(!Object.prototype.hasOwnProperty.call(ga,Ta))continue;if(Hr>=Oe){_r[Ta]="[MaxProperties ~]";break}const Da=ga[Ta];_r[Ta]=na(Ta,Da,En-1,Oe,Xe),Hr++}return Ht(_),_r}function Wa(q,_){try{if(q==="domain"&&_&&typeof _=="object"&&_._events)return"[Domain]";if(q==="domainEmitter")return"[DomainEmitter]";if(typeof e.g!="undefined"&&_===e.g)return"[Global]";if(typeof window!="undefined"&&_===window)return"[Window]";if(typeof document!="undefined"&&_===document)return"[Document]";if(He(_))return"[SyntheticEvent]";if(typeof _=="number"&&_!==_)return"[NaN]";if(typeof _=="function")return`[Function: ${zr(_)}]`;if(typeof _=="symbol")return`[${String(_)}]`;if(typeof _=="bigint")return`[BigInt: ${String(_)}]`;const me=Eo(_);return/^HTML(\w*)Element$/.test(me)?`[HTMLElement: ${me}]`:`[object ${me}]`}catch(me){return`**non-serializable** (${me})`}}function Eo(q){const _=Object.getPrototypeOf(q);return _?_.constructor.name:"null prototype"}function Ro(q){return~-encodeURI(q).split(/%..|./).length}function Ka(q){return Ro(JSON.stringify(q))}function To(q,_){const me=Na(q,_),Oe={type:_&&_.name,value:di(_)};return me.length&&(Oe.stacktrace={frames:me}),Oe.type===void 0&&Oe.value===""&&(Oe.value="Unrecoverable error caught"),Oe}function vo(q,_,me,Oe){const pt=On().getClient(),Ht=pt&&pt.getOptions().normalizeDepth,an={exception:{values:[{type:wt(_)?_.constructor.name:Oe?"UnhandledRejection":"Error",value:Di(_,{isUnhandledRejection:Oe})}]},extra:{__serialized__:ia(_,Ht)}};if(me){const En=Na(q,me);En.length&&(an.exception.values[0].stacktrace={frames:En})}return an}function qr(q,_){return{exception:{values:[To(q,_)]}}}function Na(q,_){const me=_.stacktrace||_.stack||"",Oe=oi(_);try{return q(me,Oe)}catch(Xe){}return[]}const Oo=/Minified React error #\d+;/i;function oi(q){if(q){if(typeof q.framesToPop=="number")return q.framesToPop;if(Oo.test(q.message))return 1}return 0}function di(q){const _=q&&q.message;return _?_.error&&typeof _.error.message=="string"?_.error.message:_:"No error message"}function go(q,_,me,Oe){const Xe=me&&me.syntheticException||void 0,pt=Li(q,_,Xe,Oe);return addExceptionMechanism(pt),pt.level="error",me&&me.event_id&&(pt.event_id=me.event_id),resolvedSyncPromise(pt)}function Oi(q,_,me="info",Oe,Xe){const pt=Oe&&Oe.syntheticException||void 0,Ht=ii(q,_,pt,Xe);return Ht.level=me,Oe&&Oe.event_id&&(Ht.event_id=Oe.event_id),resolvedSyncPromise(Ht)}function Li(q,_,me,Oe,Xe){let pt;if(Me(_)&&_.error)return qr(q,_.error);if(Re(_)||Qe(_)){const Ht=_;if("stack"in _)pt=qr(q,_);else{const an=Ht.name||(Re(Ht)?"DOMError":"DOMException"),En=Ht.message?`${an}: ${Ht.message}`:an;pt=ii(q,En,me,Oe),$(pt,En)}return"code"in Ht&&(pt.tags=Zs(La({},pt.tags),{"DOMException.code":`${Ht.code}`})),pt}return Ce(_)?qr(q,_):Mt(_)||wt(_)?(pt=vo(q,_,me,Xe),B(pt,{synthetic:!0}),pt):(pt=ii(q,_,me,Oe),$(pt,`${_}`,void 0),B(pt,{synthetic:!0}),pt)}function ii(q,_,me,Oe){const Xe={message:_};if(Oe&&me){const pt=Na(q,me);pt.length&&(Xe.exception={values:[{value:_,stacktrace:{frames:pt}}]})}return Xe}function Di(q,{isUnhandledRejection:_}){const me=Be(q),Oe=_?"promise rejection":"exception";return Me(q)?`Event \`ErrorEvent\` captured as ${Oe} with message \`${q.message}\``:wt(q)?`Event \`${$i(q)}\` (type=${q.type}) captured as ${Oe}`:`Object captured as ${Oe} with keys: ${me}`}function $i(q){try{const _=Object.getPrototypeOf(q);return _?_.constructor.name:void 0}catch(_){}}class wi{static __initStatic(){this.id="GlobalHandlers"}constructor(_){this.name=wi.id,this._options=La({onerror:!0,onunhandledrejection:!0},_),this._installFunc={onerror:Ti,onunhandledrejection:ns}}setupOnce(){Error.stackTraceLimit=50;const _=this._options;for(const me in _){const Oe=this._installFunc[me];Oe&&_[me]&&(gi(me),Oe(),this._installFunc[me]=void 0)}}}wi.__initStatic();function Ti(){Gn("error",q=>{const[_,me,Oe]=Zo();if(!_.getIntegration(wi))return;const{msg:Xe,url:pt,line:Ht,column:an,error:En}=q;if(Kr()||En&&En.__sentry_own_request__)return;const Qn=En===void 0&&Ve(Xe)?ro(Xe,pt,Ht,an):Va(Li(me,En||Xe,void 0,Oe,!1),pt,Ht,an);Qn.level="error",si(_,En,Qn,"onerror")})}function ns(){Gn("unhandledrejection",q=>{const[_,me,Oe]=Zo();if(!_.getIntegration(wi))return;let Xe=q;try{"reason"in q?Xe=q.reason:"detail"in q&&"reason"in q.detail&&(Xe=q.detail.reason)}catch(Ht){}if(Kr()||Xe&&Xe.__sentry_own_request__)return!0;const pt=qe(Xe)?Fi(Xe):Li(me,Xe,void 0,Oe,!0);pt.level="error",si(_,Xe,pt,"onunhandledrejection")})}function Fi(q){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(q)}`}]}}}function ro(q,_,me,Oe){const Xe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let pt=Me(q)?q.message:q,Ht="Error";const an=pt.match(Xe);return an&&(Ht=an[1],pt=an[2]),Va({exception:{values:[{type:Ht,value:pt}]}},_,me,Oe)}function Va(q,_,me,Oe){const Xe=q.exception=q.exception||{},pt=Xe.values=Xe.values||[],Ht=pt[0]=pt[0]||{},an=Ht.stacktrace=Ht.stacktrace||{},En=an.frames=an.frames||[],Qn=isNaN(parseInt(Oe,10))?void 0:Oe,_r=isNaN(parseInt(me,10))?void 0:me,Hr=Ve(_)&&_.length>0?_:re();return En.length===0&&En.push({colno:Qn,filename:Hr,function:"?",in_app:!0,lineno:_r}),q}function gi(q){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.log(`Global Handler attached: ${q}`)}function si(q,_,me,Oe){B(me,{handled:!1,type:Oe}),q.captureEvent(me,{originalException:_})}function Zo(){const q=On(),_=q.getClient(),me=_&&_.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[q,me.stackParser,me.attachStacktrace]}const Yo=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ni{static __initStatic(){this.id="TryCatch"}constructor(_){this.name=Ni.id,this._options=La({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},_)}setupOnce(){this._options.setTimeout&&ve(yr,"setTimeout",Xi),this._options.setInterval&&ve(yr,"setInterval",Xi),this._options.requestAnimationFrame&&ve(yr,"requestAnimationFrame",Gi),this._options.XMLHttpRequest&&"XMLHttpRequest"in yr&&ve(XMLHttpRequest.prototype,"send",Is);const _=this._options.eventTarget;_&&(Array.isArray(_)?_:Yo).forEach(hs)}}Ni.__initStatic();function Xi(q){return function(..._){const me=_[0];return _[0]=Jr(me,{mechanism:{data:{function:zr(q)},handled:!0,type:"instrument"}}),q.apply(this,_)}}function Gi(q){return function(_){return q.apply(this,[Jr(_,{mechanism:{data:{function:"requestAnimationFrame",handler:zr(q)},handled:!0,type:"instrument"}})])}}function Is(q){return function(..._){const me=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(Xe=>{Xe in me&&typeof me[Xe]=="function"&&ve(me,Xe,function(pt){const Ht={mechanism:{data:{function:Xe,handler:zr(pt)},handled:!0,type:"instrument"}},an=pe(pt);return an&&(Ht.mechanism.data.handler=zr(an)),Jr(pt,Ht)})}),q.apply(this,_)}}function hs(q){const _=yr,me=_[q]&&_[q].prototype;!me||!me.hasOwnProperty||!me.hasOwnProperty("addEventListener")||(ve(me,"addEventListener",function(Oe){return function(Xe,pt,Ht){try{typeof pt.handleEvent=="function"&&(pt.handleEvent=Jr(pt.handleEvent,{mechanism:{data:{function:"handleEvent",handler:zr(pt),target:q},handled:!0,type:"instrument"}}))}catch(an){}return Oe.apply(this,[Xe,Jr(pt,{mechanism:{data:{function:"addEventListener",handler:zr(pt),target:q},handled:!0,type:"instrument"}}),Ht])}}),ve(me,"removeEventListener",function(Oe){return function(Xe,pt,Ht){const an=pt;try{const En=an&&an.__sentry_wrapped__;En&&Oe.call(this,Xe,En,Ht)}catch(En){}return Oe.call(this,Xe,an,Ht)}}))}const Ns=["fatal","error","warning","log","info","debug"];function bl(q){return bn(q)}function bn(q){return q==="warn"?"warning":Ns.includes(q)?q:"log"}function Mr(q){if(!q)return{};const _=q.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!_)return{};const me=_[6]||"",Oe=_[8]||"";return{host:_[4],path:_[5],protocol:_[2],search:me,hash:Oe,relative:_[5]+me+Oe}}function er(q){return q.split(/[\?#]/,1)[0]}function ur(q){return q.split(/\\?\//).filter(_=>_.length>0&&_!==",").length}function Cr(q){const{protocol:_,host:me,path:Oe}=q,Xe=me&&me.replace(/^.*@/,"[filtered]:[filtered]@").replace(":80","").replace(":443","")||"";return`${_?`${_}://`:""}${Xe}${Oe}`}const ca=1024,ha="Breadcrumbs";class da{static __initStatic(){this.id=ha}constructor(_){this.name=da.id,this.options=La({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},_)}setupOnce(){this.options.console&&Gn("console",li),this.options.dom&&Gn("dom",_o(this.options.dom)),this.options.xhr&&Gn("xhr",Xo),this.options.fetch&&Gn("fetch",_i),this.options.history&&Gn("history",bs)}addSentryBreadcrumb(_){this.options.sentry&&On().addBreadcrumb({category:`sentry.${_.type==="transaction"?"transaction":"event"}`,event_id:_.event_id,level:_.level,message:I(_)},{event:_})}}da.__initStatic();function _o(q){function _(me){let Oe,Xe=typeof q=="object"?q.serializeAttribute:void 0,pt=typeof q=="object"&&typeof q.maxStringLength=="number"?q.maxStringLength:void 0;pt&&pt>ca&&((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`\`dom.maxStringLength\` cannot exceed ${ca}, but a value of ${pt} was configured. Sentry will use ${ca} instead.`),pt=ca),typeof Xe=="string"&&(Xe=[Xe]);try{const Ht=me.event;Oe=ss(Ht)?se(Ht.target,{keyAttrs:Xe,maxStringLength:pt}):se(Ht,{keyAttrs:Xe,maxStringLength:pt})}catch(Ht){Oe=""}Oe.length!==0&&On().addBreadcrumb({category:`ui.${me.name}`,message:Oe},{event:me.event,name:me.name,global:me.global})}return _}function li(q){for(let me=0;me0?pt.exception.values[pt.exception.values.length-1]:void 0;an&&(pt.exception.values=ol(us(q,_,Xe,Ht.originalException,Oe,pt.exception.values,an,0),me))}function us(q,_,me,Oe,Xe,pt,Ht,an){if(pt.length>=me+1)return pt;let En=[...pt];if(Fe(Oe[Xe],Error)){ri(Ht,an);const Qn=q(_,Oe[Xe]),_r=En.length;$l(Qn,Xe,_r,an),En=us(q,_,me,Oe[Xe],Xe,[Qn,...En],Qn,_r)}return Array.isArray(Oe.errors)&&Oe.errors.forEach((Qn,_r)=>{if(Fe(Qn,Error)){ri(Ht,an);const Hr=q(_,Qn),ga=En.length;$l(Hr,`errors[${_r}]`,ga,an),En=us(q,_,me,Qn,Xe,[Hr,...En],Hr,ga)}}),En}function ri(q,_){q.mechanism=q.mechanism||{type:"generic",handled:!0},q.mechanism=Zs(La({},q.mechanism),{is_exception_group:!0,exception_id:_})}function $l(q,_,me,Oe){q.mechanism=q.mechanism||{type:"generic",handled:!0},q.mechanism=Zs(La({},q.mechanism),{type:"chained",source:_,exception_id:me,parent_id:Oe})}function ol(q,_){return q.map(me=>(me.value&&(me.value=Se(me.value,_)),me))}const il="cause",Fl=5;class Qs{static __initStatic(){this.id="LinkedErrors"}constructor(_={}){this.name=Qs.id,this._key=_.key||il,this._limit=_.limit||Fl}setupOnce(_,me){_((Oe,Xe)=>{const pt=me(),Ht=pt.getClient(),an=pt.getIntegration(Qs);if(!Ht||!an)return Oe;const En=Ht.getOptions();return As(To,En.stackParser,En.maxValueLength,an._key,an._limit,Oe,Xe),Oe})}}Qs.__initStatic();class Xs{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Xs.id}setupOnce(){Ot(_=>{if(On().getIntegration(Xs)){if(!yr.navigator&&!yr.location&&!yr.document)return _;const me=_.request&&_.request.url||yr.location&&yr.location.href,{referrer:Oe}=yr.document||{},{userAgent:Xe}=yr.navigator||{},pt=La(La(La({},_.request&&_.request.headers),Oe&&{Referer:Oe}),Xe&&{"User-Agent":Xe}),Ht=Zs(La(La({},_.request),me&&{url:me}),{headers:pt});return Zs(La({},_),{request:Ht})}return _})}}Xs.__initStatic();class Os{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Os.id}setupOnce(_,me){const Oe=Xe=>{if(Xe.type)return Xe;const pt=me().getIntegration(Os);if(pt){try{if(Us(Xe,pt._previousEvent))return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(Ht){return pt._previousEvent=Xe}return pt._previousEvent=Xe}return Xe};Oe.id=this.name,_(Oe)}}Os.__initStatic();function Us(q,_){return _?!!(sl(q,_)||Hl(q,_)):!1}function sl(q,_){const me=q.message,Oe=_.message;return!(!me&&!Oe||me&&!Oe||!me&&Oe||me!==Oe||!Ss(q,_)||!vs(q,_))}function Hl(q,_){const me=Ds(_),Oe=Ds(q);return!(!me||!Oe||me.type!==Oe.type||me.value!==Oe.value||!Ss(q,_)||!vs(q,_))}function vs(q,_){let me=Rs(q),Oe=Rs(_);if(!me&&!Oe)return!0;if(me&&!Oe||!me&&Oe||(me=me,Oe=Oe,Oe.length!==me.length))return!1;for(let Xe=0;Xe{_===void 0||_===me||xo(getCurrentHub())}))}function xr(q){const _=getCurrentHub().getClient();_&&_.captureUserFeedback(q)}var qs=e(10063);const ul="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function ws(q){const _=q.match(/^([^.]+)/);return _!==null&&parseInt(_[0])>=17}const cl="unknown",wl={componentStack:null,error:null,eventId:null};function zo(q,_){const me=new WeakMap;function Oe(Xe,pt){if(!me.has(Xe)){if(Xe.cause)return me.set(Xe,!0),Oe(Xe.cause,pt);Xe.cause=pt}}Oe(q,_)}class ji extends y.Component{constructor(_){super(_),ji.prototype.__init.call(this),this.state=wl,this._openFallbackReportDialog=!0;const me=On().getClient();me&&me.on&&_.showDialog&&(this._openFallbackReportDialog=!1,me.on("afterSendEvent",Oe=>{!Oe.type&&Oe.event_id===this._lastEventId&&cs(Zs(La({},_.dialogOptions),{eventId:this._lastEventId}))}))}componentDidCatch(_,{componentStack:me}){const{beforeCapture:Oe,onError:Xe,showDialog:pt,dialogOptions:Ht}=this.props;Gr(an=>{if(ws(y.version)&&Ce(_)){const Qn=new Error(_.message);Qn.name=`React ErrorBoundary ${Qn.name}`,Qn.stack=me,zo(_,Qn)}Oe&&Oe(an,_,me);const En=St(_,{contexts:{react:{componentStack:me}}});Xe&&Xe(_,me,En),pt&&(this._lastEventId=En,this._openFallbackReportDialog&&cs(Zs(La({},Ht),{eventId:En}))),this.setState({error:_,componentStack:me,eventId:En})})}componentDidMount(){const{onMount:_}=this.props;_&&_()}componentWillUnmount(){const{error:_,componentStack:me,eventId:Oe}=this.state,{onUnmount:Xe}=this.props;Xe&&Xe(_,me,Oe)}__init(){this.resetErrorBoundary=()=>{const{onReset:_}=this.props,{error:me,componentStack:Oe,eventId:Xe}=this.state;_&&_(me,Oe,Xe),this.setState(wl)}}render(){const{fallback:_,children:me}=this.props,Oe=this.state;if(Oe.error){let Xe;return typeof _=="function"?Xe=_({error:Oe.error,componentStack:Oe.componentStack,resetError:this.resetErrorBoundary,eventId:Oe.eventId}):Xe=_,y.isValidElement(Xe)?Xe:(_&&(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("fallback did not produce a valid ReactElement"),null)}return typeof me=="function"?me():me}}function Eu(q,_){const me=q.displayName||q.name||cl,Oe=Xe=>React.createElement(ji,Zs(La({},_),{__self:this,__source:{fileName:ul,lineNumber:227}}),React.createElement(q,Zs(La({},Xe),{__self:this,__source:{fileName:ul,lineNumber:228}})));return Oe.displayName=`errorBoundary(${me})`,hoistNonReactStatics(Oe,q),Oe}var Pu=e(2258),yo=e(76180),ds=e(53357),ks={200:"requestConfig.success.msg",401:"requestConfig.unAuth.msg",403:"requestConfig.permissionDenied.msg",429:"errCode.TokenExceedsRateLimit",500:"requestConfig.responseStatus.msg"},ba={101:"requestConfig.errorContent.msg",200001:"errCode.PartialSuccessBatchAssignLeaders",200002:"errCode.PartialSuccessBatchAssignWorkers",4e5:"errCode.BadRequest",400001:"errCode.ParameterMissing",400002:"errCode.ParameterIsInvalid",400050:"errCode.AnnotationNotListOfObj",400051:"errCode.AnnotationMissingCatName",400052:"errCode.AnnotationMissingBBox",400053:"errCode.AnnotationBBoxFormatError",400054:"errCode.AnnotationFormatError",400100:"errCode.FlagGroupsNotListOfObj",400101:"errCode.FlagObjectMissingFlag",400102:"errCode.FlagObjectFlagValueInvalid",400103:"errCode.FlagObjectMissingIDs",400104:"errCode.FlagObjectIDsNotList",400150:"errCode.LabelSetNameInvalid",400151:"errCode.LabelSetNameConflicts",400200:"errCode.UserNotFoundForLabelProject",400201:"errCode.UserNotActiveForLabelProject",400202:"errCode.DatasetNotFoundForLabelProject",400203:"errCode.LabelTaskNotFoundForLabelProject",400204:"errCode.CreateLabelProjectRequireManager",400205:"errCode.CreateLabelProjectRequireDataset",400206:"errCode.CreateLabelProjectRequireCategory",400207:"errCode.CreateLabelProjectDatasetOccupied",400208:"errCode.EditLabelProjectRequireManager",400209:"errCode.InitLabelProjectMustBeWaiting",400210:"errCode.InitLabelProjectTaskConfigError",400211:"errCode.QALabelProjectActionError",400212:"errCode.QALabelProjectMustBeReviewing",400213:"errCode.ExportLabelProjectMustBeAccepted",400214:"errCode.LeaderIDIsRequired",400215:"errCode.LabelerIDIsRequired",400216:"errCode.LabelProjectRoleIsNotTaskLevel",400217:"errCode.CantReplaceRoleWithTheSameUser",400218:"errCode.OldUserDoesNotHaveTheTaskRole",400219:"errCode.NewUserAlreadyHaveTheTaskRole",400220:"errCode.CantTransferRoleBetweenDifferentTask",400221:"errCode.CantTransferRoleToDifferentKind",400222:"errCode.RestartLabelTaskMustBeRejected",400223:"errCode.QALabelTaskActionError",400224:"errCode.AcceptLabelTaskMustBeReviewing",400225:"errCode.RejectLabelTaskMustBeReviewing",400226:"errCode.ForceAcceptLabelTaskMustBeRejected",400227:"errCode.LabelAnnotationMissingFields",400228:"errCode.LabelAnnotationFieldValueInvalid",400229:"errCode.LabelImageRequireTaskStatusWorking",400230:"errCode.LabelImageRequireUnfinishedReviewing",400231:"errCode.ReviewImageRequireTaskStatusWorking",400232:"errCode.ReviewImageRequireFinishedLabeling",400233:"errCode.ReviewImageTargetLabelNotFound",400234:"errCode.ReviewImageFoundExistedReview",400235:"errCode.CantDeleteAllOwnersOfLabelProject",400236:"errCode.NumOfTaskLeaderMismatchesConfig",400237:"errCode.TaskDoesNotRequireReviewer",400238:"errCode.NumOfTaskLabelerMismatchesConfig",400239:"errCode.NumOfTaskReviewerMismatchesConfig",400240:"errCode.TryInitRoleForTaskWithActiveRoles",400241:"errCode.TaskRoleNotOfLeaderKind",401e3:"errCode.Unauthorized",401001:"requestConfig.unAuth.msg",403e3:"errCode.Forbidden",403001:"requestConfig.permissionDenied.msg",403050:"errCode.UserAuthenticationFailed",403051:"errCode.UserCantViewLabelProjectTask",403052:"errCode.UserCantViewLabelProjectRole",403053:"errCode.UserCantCreateLabelProject",403054:"errCode.UserCantViewLabelProject",403055:"errCode.UserCantEditLabelProject",403056:"errCode.UserCantInitLabelProject",403057:"errCode.UserCantQALabelProject",403058:"errCode.UserCantExportLabelProject",403059:"errCode.UserCantAssignLabelTaskLeader",403060:"errCode.UserCantAssignLabelTaskWorker",403061:"errCode.UserCantRestartLabelTask",403062:"errCode.UserCantQALabelTask",403063:"errCode.UserCantLabelTaskImage",403064:"errCode.UserCantReviewTaskImage",404e3:"errCode.NotFound",404050:"errCode.DatasetNotFound",404051:"errCode.DatasetNotReadable",404052:"errCode.DatasetMissingEmbdFile",404053:"errCode.DatasetImageNotFound",404054:"errCode.DatasetHasNoFNFPData",404055:"errCode.DatasetLabelNotFound",404056:"errCode.DatasetFNFPPrecisionNotFound",404100:"errCode.ReRankByFlagTaskNotFound",404150:"errCode.LabelProjectNotFound",404151:"errCode.LabelProjectRoleNotFound",404152:"errCode.LabelProjectTaskNotFound",404153:"errCode.LabelTaskImageNotFound",429002:"errCode.TokenExceedsRateLimit",5e5:"errCode.InternalError",500001:"errCode.FailedToCloneLabelSet"},Tl=function(_,me){return _&&ba[_]?(0,ds._w)(ba[_]):me&&ks[me]?(0,ds._w)(ks[me]):(0,ds._w)("requestConfig.errorData.msg",{code:"".concat(me).concat(_?"-".concat(_):"")})},rs=e(35667);function dl(){return fl.apply(this,arguments)}function fl(){return fl=w()(m()().mark(function q(){return m()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return document.addEventListener("wheel",function(Oe){(Oe.ctrlKey||Oe.detail)&&Oe.preventDefault()},{capture:!1,passive:!1}),document.addEventListener("keydown",function(Oe){(Oe.ctrlKey===!0||Oe.metaKey===!0)&&(Oe.keyCode===61||Oe.keyCode===107||Oe.keyCode===173||Oe.keyCode===109||Oe.keyCode===187||Oe.keyCode===189)&&Oe.preventDefault()},!1),R.ZP.config({duration:1.5,maxCount:2}),me.abrupt("return",{name:"@umijs/max"});case 4:case"end":return me.stop()}},q)})),fl.apply(this,arguments)}var Ul=function(){return{pure:!0,title:(0,ds._w)("layout.title")}};function Sl(q){var _={showDialog:!0,fallback:function(Oe){return(0,rs.jsx)(Pu.xA,p()({},Oe))}};return y.createElement(ji,_,q)}var Lu={baseURL:"",timeout:1e5,headers:{"Content-Type":"application/json"},errorConfig:{errorHandler:function(_,me){var Oe;if(!/^2/.test(_.status)&&!(me!=null&&me.skipErrorHandler)&&(((Oe=_.response)===null||Oe===void 0?void 0:Oe.status)===401&&(T.history.push("/"),localStorage.removeItem(yo.Uf.AUTH_TOKEN)),!(me!=null&&me.hideCodeErrorMsg)))if(_.response){var Xe;R.ZP.error(Tl((Xe=_.response.data)===null||Xe===void 0?void 0:Xe.code,_.response.status))}else _.request?R.ZP.error((0,ds._w)("requestConfig.noResponse.msg")):R.ZP.error((0,ds._w)("requestConfig.requestError.msg"))}},requestInterceptors:[function(q){if(q.params&&(q.params=F().decamelizeKeys(q.params)),q.data&&(q.data=F().decamelizeKeys(q.data)),q.headers){var _,me;if((_=q.url)!==null&&_!==void 0&&_.includes("https://api.deepdataspace.com"))q.headers.Token="dds-tool-free";else if(((me=q.url)===null||me===void 0?void 0:me.indexOf("http"))!==0){var Oe=localStorage.getItem(yo.Uf.AUTH_TOKEN);Oe&&(q.headers.Token=Oe)}}return p()({},q)}],responseInterceptors:[function(q){var _;if(((_=q.data)===null||_===void 0?void 0:_.code)===0){var me;return q.data=F().camelizeKeys(((me=q.data)===null||me===void 0?void 0:me.data)||{}),q}else{var Oe;if(!((Oe=q.config)!==null&&Oe!==void 0&&Oe.hideCodeErrorMsg)){var Xe;R.ZP.error(Tl((Xe=q.data)===null||Xe===void 0?void 0:Xe.code,200))}throw q}}]},ql=e(7862),Ho=e.n(ql),fu=e(81690),El=e.n(fu),Es=e(21700),Ws=e.n(Es),vl=e(31236),It=e.n(vl);function Pi(){return Pi=Object.assign||function(q){for(var _=1;_=0||(Xe[me]=q[me]);return Xe}var bo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},eu={rel:["amphtml","canonical","alternate"]},tu={type:["application/ld+json"]},ys={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"]},gl=Object.keys(bo).map(function(q){return bo[q]}),Ii={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ri=Object.keys(Ii).reduce(function(q,_){return q[Ii[_]]=_,q},{}),tt=function(q,_){for(var me=q.length-1;me>=0;me-=1){var Oe=q[me];if(Object.prototype.hasOwnProperty.call(Oe,_))return Oe[_]}return null},$e=function(q){var _=tt(q,bo.TITLE),me=tt(q,"titleTemplate");if(Array.isArray(_)&&(_=_.join("")),me&&_)return me.replace(/%s/g,function(){return _});var Oe=tt(q,"defaultTitle");return _||Oe||void 0},Ge=function(q){return tt(q,"onChangeClientState")||function(){}},cn=function(q,_){return _.filter(function(me){return me[q]!==void 0}).map(function(me){return me[q]}).reduce(function(me,Oe){return Pi({},me,Oe)},{})},qt=function(q,_){return _.filter(function(me){return me[bo.BASE]!==void 0}).map(function(me){return me[bo.BASE]}).reverse().reduce(function(me,Oe){if(!me.length)for(var Xe=Object.keys(Oe),pt=0;pt/g,">").replace(/"/g,""").replace(/'/g,"'")},Un=function(q){return Object.keys(q).reduce(function(_,me){var Oe=q[me]!==void 0?me+'="'+q[me]+'"':""+me;return _?_+" "+Oe:Oe},"")},wa=function(q,_){return _===void 0&&(_={}),Object.keys(q).reduce(function(me,Oe){return me[Ii[Oe]||Oe]=q[Oe],me},_)},ya=function(q,_){return _.map(function(me,Oe){var Xe,pt=((Xe={key:Oe})["data-rh"]=!0,Xe);return Object.keys(me).forEach(function(Ht){var an=Ii[Ht]||Ht;an==="innerHTML"||an==="cssText"?pt.dangerouslySetInnerHTML={__html:me.innerHTML||me.cssText}:pt[an]=me[Ht]}),y.createElement(q,pt)})},Qt=function(q,_,me){switch(q){case bo.TITLE:return{toComponent:function(){return Xe=_.titleAttributes,(pt={key:Oe=_.title})["data-rh"]=!0,Ht=wa(Xe,pt),[y.createElement(bo.TITLE,Ht,Oe)];var Oe,Xe,pt,Ht},toString:function(){return function(Oe,Xe,pt,Ht){var an=Un(pt),En=Rn(Xe);return an?"<"+Oe+' data-rh="true" '+an+">"+Vn(En,Ht)+"":"<"+Oe+' data-rh="true">'+Vn(En,Ht)+""}(q,_.title,_.titleAttributes,me)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return wa(_)},toString:function(){return Un(_)}};default:return{toComponent:function(){return ya(q,_)},toString:function(){return function(Oe,Xe,pt){return Xe.reduce(function(Ht,an){var En=Object.keys(an).filter(function(Hr){return!(Hr==="innerHTML"||Hr==="cssText")}).reduce(function(Hr,ga){var Ta=an[ga]===void 0?ga:ga+'="'+Vn(an[ga],pt)+'"';return Hr?Hr+" "+Ta:Ta},""),Qn=an.innerHTML||an.cssText||"",_r=lr.indexOf(Oe)===-1;return Ht+"<"+Oe+' data-rh="true" '+En+(_r?"/>":">"+Qn+"")},"")}(q,_,me)}}}},Ne=function(q){var _=q.baseTag,me=q.bodyAttributes,Oe=q.encode,Xe=q.htmlAttributes,pt=q.noscriptTags,Ht=q.styleTags,an=q.title,En=an===void 0?"":an,Qn=q.titleAttributes,_r=q.linkTags,Hr=q.metaTags,ga=q.scriptTags,Ta={toComponent:function(){},toString:function(){return""}};if(q.prioritizeSeoTags){var Da=function(io){var ho=io.linkTags,Mo=io.scriptTags,yi=io.encode,Vo=nr(io.metaTags,ys),Mi=nr(ho,eu),fs=nr(Mo,tu);return{priorityMethods:{toComponent:function(){return[].concat(ya(bo.META,Vo.priority),ya(bo.LINK,Mi.priority),ya(bo.SCRIPT,fs.priority))},toString:function(){return Qt(bo.META,Vo.priority,yi)+" "+Qt(bo.LINK,Mi.priority,yi)+" "+Qt(bo.SCRIPT,fs.priority,yi)}},metaTags:Vo.default,linkTags:Mi.default,scriptTags:fs.default}}(q);Ta=Da.priorityMethods,_r=Da.linkTags,Hr=Da.metaTags,ga=Da.scriptTags}return{priority:Ta,base:Qt(bo.BASE,_,Oe),bodyAttributes:Qt("bodyAttributes",me,Oe),htmlAttributes:Qt("htmlAttributes",Xe,Oe),link:Qt(bo.LINK,_r,Oe),meta:Qt(bo.META,Hr,Oe),noscript:Qt(bo.NOSCRIPT,pt,Oe),script:Qt(bo.SCRIPT,ga,Oe),style:Qt(bo.STYLE,Ht,Oe),title:Qt(bo.TITLE,{title:En,titleAttributes:Qn},Oe)}},rt=[],Rt=function(q,_){var me=this;_===void 0&&(_=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Oe){me.context.helmet=Oe},helmetInstances:{get:function(){return me.canUseDOM?rt:me.instances},add:function(Oe){(me.canUseDOM?rt:me.instances).push(Oe)},remove:function(Oe){var Xe=(me.canUseDOM?rt:me.instances).indexOf(Oe);(me.canUseDOM?rt:me.instances).splice(Xe,1)}}},this.context=q,this.canUseDOM=_,_||(q.helmet=Ne({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Ut=y.createContext({}),ln=Ho().shape({setHelmet:Ho().func,helmetInstances:Ho().shape({get:Ho().func,add:Ho().func,remove:Ho().func})}),mn=typeof document!="undefined",Sn=function(q){function _(me){var Oe;return(Oe=q.call(this,me)||this).helmetData=new Rt(Oe.props.context,_.canUseDOM),Oe}return jl(_,q),_.prototype.render=function(){return y.createElement(Ut.Provider,{value:this.helmetData.value},this.props.children)},_}(y.Component);Sn.canUseDOM=mn,Sn.propTypes={context:Ho().shape({helmet:Ho().shape()}),children:Ho().node.isRequired},Sn.defaultProps={context:{}},Sn.displayName="HelmetProvider";var un=function(q,_){var me,Oe=document.head||document.querySelector(bo.HEAD),Xe=Oe.querySelectorAll(q+"[data-rh]"),pt=[].slice.call(Xe),Ht=[];return _&&_.length&&_.forEach(function(an){var En=document.createElement(q);for(var Qn in an)Object.prototype.hasOwnProperty.call(an,Qn)&&(Qn==="innerHTML"?En.innerHTML=an.innerHTML:Qn==="cssText"?En.styleSheet?En.styleSheet.cssText=an.cssText:En.appendChild(document.createTextNode(an.cssText)):En.setAttribute(Qn,an[Qn]===void 0?"":an[Qn]));En.setAttribute("data-rh","true"),pt.some(function(_r,Hr){return me=Hr,En.isEqualNode(_r)})?pt.splice(me,1):Ht.push(En)}),pt.forEach(function(an){return an.parentNode.removeChild(an)}),Ht.forEach(function(an){return Oe.appendChild(an)}),{oldTags:pt,newTags:Ht}},$r=function(q,_){var me=document.getElementsByTagName(q)[0];if(me){for(var Oe=me.getAttribute("data-rh"),Xe=Oe?Oe.split(","):[],pt=[].concat(Xe),Ht=Object.keys(_),an=0;an=0;Hr-=1)me.removeAttribute(pt[Hr]);Xe.length===pt.length?me.removeAttribute("data-rh"):me.getAttribute("data-rh")!==Ht.join(",")&&me.setAttribute("data-rh",Ht.join(","))}},Qr=function(q,_){var me=q.baseTag,Oe=q.htmlAttributes,Xe=q.linkTags,pt=q.metaTags,Ht=q.noscriptTags,an=q.onChangeClientState,En=q.scriptTags,Qn=q.styleTags,_r=q.title,Hr=q.titleAttributes;$r(bo.BODY,q.bodyAttributes),$r(bo.HTML,Oe),function(io,ho){io!==void 0&&document.title!==io&&(document.title=Rn(io)),$r(bo.TITLE,ho)}(_r,Hr);var ga={baseTag:un(bo.BASE,me),linkTags:un(bo.LINK,Xe),metaTags:un(bo.META,pt),noscriptTags:un(bo.NOSCRIPT,Ht),scriptTags:un(bo.SCRIPT,En),styleTags:un(bo.STYLE,Qn)},Ta={},Da={};Object.keys(ga).forEach(function(io){var ho=ga[io],Mo=ho.newTags,yi=ho.oldTags;Mo.length&&(Ta[io]=Mo),yi.length&&(Da[io]=ga[io].oldTags)}),_&&_(),an(q,Ta,Da)},Sa=null,ua=function(q){function _(){for(var Oe,Xe=arguments.length,pt=new Array(Xe),Ht=0;Ht elements are self-closing and can not contain children. Refer to our API for more information.")}},me.flattenArrayTypeChildren=function(Oe){var Xe,pt=Oe.child,Ht=Oe.arrayTypeChildren;return Pi({},Ht,((Xe={})[pt.type]=[].concat(Ht[pt.type]||[],[Pi({},Oe.newChildProps,this.mapNestedChildrenToProps(pt,Oe.nestedChildren))]),Xe))},me.mapObjectTypeChildren=function(Oe){var Xe,pt,Ht=Oe.child,an=Oe.newProps,En=Oe.newChildProps,Qn=Oe.nestedChildren;switch(Ht.type){case bo.TITLE:return Pi({},an,((Xe={})[Ht.type]=Qn,Xe.titleAttributes=Pi({},En),Xe));case bo.BODY:return Pi({},an,{bodyAttributes:Pi({},En)});case bo.HTML:return Pi({},an,{htmlAttributes:Pi({},En)});default:return Pi({},an,((pt={})[Ht.type]=Pi({},En),pt))}},me.mapArrayTypeChildrenToProps=function(Oe,Xe){var pt=Pi({},Xe);return Object.keys(Oe).forEach(function(Ht){var an;pt=Pi({},pt,((an={})[Ht]=Oe[Ht],an))}),pt},me.warnOnInvalidChildren=function(Oe,Xe){return Ws()(gl.some(function(pt){return Oe.type===pt}),typeof Oe.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+gl.join(", ")+" are allowed. Helmet does not support rendering <"+Oe.type+"> elements. Refer to our API for more information."),Ws()(!Xe||typeof Xe=="string"||Array.isArray(Xe)&&!Xe.some(function(pt){return typeof pt!="string"}),"Helmet expects a string as a child of <"+Oe.type+">. Did you forget to wrap your children in braces? ( <"+Oe.type+">{``} ) Refer to our API for more information."),!0},me.mapChildrenToProps=function(Oe,Xe){var pt=this,Ht={};return y.Children.forEach(Oe,function(an){if(an&&an.props){var En=an.props,Qn=En.children,_r=Go(En,Ia),Hr=Object.keys(_r).reduce(function(Ta,Da){return Ta[Ri[Da]||Da]=_r[Da],Ta},{}),ga=an.type;switch(typeof ga=="symbol"?ga=ga.toString():pt.warnOnInvalidChildren(an,Qn),ga){case bo.FRAGMENT:Xe=pt.mapChildrenToProps(Qn,Xe);break;case bo.LINK:case bo.META:case bo.NOSCRIPT:case bo.SCRIPT:case bo.STYLE:Ht=pt.flattenArrayTypeChildren({child:an,arrayTypeChildren:Ht,newChildProps:Hr,nestedChildren:Qn});break;default:Xe=pt.mapObjectTypeChildren({child:an,newProps:Xe,newChildProps:Hr,nestedChildren:Qn})}}}),this.mapArrayTypeChildrenToProps(Ht,Xe)},me.render=function(){var Oe=this.props,Xe=Oe.children,pt=Go(Oe,jo),Ht=Pi({},pt),an=pt.helmetData;return Xe&&(Ht=this.mapChildrenToProps(Xe,Ht)),!an||an instanceof Rt||(an=new Rt(an.context,an.instances)),an?y.createElement(ua,Pi({},Ht,{context:an.value,helmetData:void 0})):y.createElement(Ut.Consumer,null,function(En){return y.createElement(ua,Pi({},Ht,{context:En}))})},_}(y.Component);fo.propTypes={base:Ho().object,bodyAttributes:Ho().object,children:Ho().oneOfType([Ho().arrayOf(Ho().node),Ho().node]),defaultTitle:Ho().string,defer:Ho().bool,encodeSpecialCharacters:Ho().bool,htmlAttributes:Ho().object,link:Ho().arrayOf(Ho().object),meta:Ho().arrayOf(Ho().object),noscript:Ho().arrayOf(Ho().object),onChangeClientState:Ho().func,script:Ho().arrayOf(Ho().object),style:Ho().arrayOf(Ho().object),title:Ho().string,titleAttributes:Ho().object,titleTemplate:Ho().string,prioritizeSeoTags:Ho().bool,helmetData:Ho().object},fo.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},fo.displayName="Helmet";var Aa={},xa=function(_){return y.createElement(Sn,{context:Aa},_)},oa=e(96662);function mo(q){var _={};return(0,rs.jsx)(oa.J.Provider,{value:_,children:q.children})}function Sr(q){return(0,rs.jsx)(mo,{children:q})}var Tr=e(62376),Ra=e.n(Tr),Wr=e(62109),Xr=e(65388),_a=e(42505),za=["appConfig"],ma=null,so=function(){return ma||(ma=Gu().applyPlugins({key:"antd",type:T.ApplyPluginsType.modify,initialValue:p()({},{theme:{token:{colorLink:"#1e53f5",colorPrimary:"#1e53f5"}}})})),ma};function Ba(q){var _=so(),me=_.appConfig,Oe=Ra()(_,za),Xe=q;return Oe.prefixCls&&(Wr.Z.config({rootPrefixCls:Oe.prefixCls}),R.ZP.config({prefixCls:"".concat(Oe.prefixCls,"-message")}),Xr.Z.config({prefixCls:"".concat(Oe.prefixCls,"-notification")})),Oe.iconPrefixCls&&_a.ZP.config({iconPrefixCls:Oe.iconPrefixCls}),Oe.theme&&_a.ZP.config({theme:Oe.theme}),Xe=(0,rs.jsx)(_a.ZP,p()(p()({},Oe),{},{children:Xe})),Xe}var pa=e(47338);function no(){return(0,rs.jsx)("div",{})}function Ha(q){var _=y.useRef(!1),me=(0,pa.t)("@@initialState")||{},Oe=me.loading,Xe=Oe===void 0?!1:Oe;return y.useEffect(function(){Xe||(_.current=!0)},[Xe]),Xe&&!_.current?(0,rs.jsx)(no,{}):q.children}function Ao(q){return(0,rs.jsx)(Ha,{children:q})}var oo={};function Oa(q){return q.replace(q[0],q[0].toUpperCase()).replace(/-(w)/g,function(_,me){return me.toUpperCase()})}function $a(q){var _=q.routes;Object.keys(_).forEach(function(me){var Oe=_[me].icon;if(Oe&&typeof Oe=="string"){var Xe=Oa(Oe);(oo[Xe]||oo[Xe+"Outlined"])&&(_[me].icon=y.createElement(oo[Xe]||oo[Xe+"Outlined"]))}})}var ui=e(88205),Ya=e.n(ui),hi=e(6901),ai=e.n(hi),Ja=e(85417),Uo=e(16221);function Do(){var q=getLocale();if(moment!=null&&moment.locale){var _;moment.locale(((_=localeInfo[q])===null||_===void 0?void 0:_.momentLocale)||"")}setIntl(q)}var Po=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,Xa=function(_){var me,Oe=(0,Uo.Kd)(),Xe=y.useState(Oe),pt=Ya()(Xe,2),Ht=pt[0],an=pt[1],En=y.useState(function(){return(0,Uo.lw)(Ht,!0)}),Qn=Ya()(En,2),_r=Qn[0],Hr=Qn[1],ga=function(ho){if(ai()!==null&&ai()!==void 0&&ai().locale){var Mo;ai().locale(((Mo=Uo.H8[ho])===null||Mo===void 0?void 0:Mo.momentLocale)||"en")}an(ho),Hr((0,Uo.lw)(ho))};Po(function(){return Uo.B.on(Uo.PZ,ga),function(){Uo.B.off(Uo.PZ,ga)}},[]);var Ta={},Da=(0,Uo.Mg)();return(0,rs.jsx)(_a.ZP,{direction:Da,locale:((me=Uo.H8[Ht])===null||me===void 0?void 0:me.antd)||Ta,children:(0,rs.jsx)(Uo.eU,{value:_r,children:_.children})})};function Jo(q){return y.createElement(Xa,null,q)}var Si=e(34485),mi=e.n(Si),qo=e(65246),Ki=e(7986);function as(q,_){return os.apply(this,arguments)}function os(){return os=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/datasets",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),os.apply(this,arguments)}function qi(q,_){return Zi.apply(this,arguments)}function Zi(){return Zi=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/datasets/".concat(_.datasetId),p()({method:"GET"},me||{})));case 1:case"end":return Xe.stop()}},q)})),Zi.apply(this,arguments)}function Ko(q,_){return j.apply(this,arguments)}function j(){return j=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/images",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),j.apply(this,arguments)}function ae(q,_){return je.apply(this,arguments)}function je(){return je=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/image_flags",p()({method:"POST",data:p()({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),je.apply(this,arguments)}function Ke(q,_){return ht.apply(this,arguments)}function ht(){return ht=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/tasks/rerank_by_flags",p()({method:"POST",data:p()({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),ht.apply(this,arguments)}function en(q,_){return ir.apply(this,arguments)}function ir(){return ir=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/tasks/".concat(_.name,"/").concat(_.id),p()({method:"GET"},me||{})));case 1:case"end":return Xe.stop()}},q)})),ir.apply(this,arguments)}function ao(q,_){return po.apply(this,arguments)}function po(){return po=_asyncToGenerator(_regeneratorRuntime().mark(function q(_,me){return _regeneratorRuntime().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",request("/api/v1/annotations",_objectSpread({method:"POST",data:_objectSpread({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),po.apply(this,arguments)}function fi(q,_){return Vi.apply(this,arguments)}function Vi(){return Vi=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/comparisons",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),Vi.apply(this,arguments)}function Cs(q,_){return zs.apply(this,arguments)}function zs(){return zs=_asyncToGenerator(_regeneratorRuntime().mark(function q(_,me){return _regeneratorRuntime().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",request("/api/v1/label_clone",_objectSpread({method:"POST",data:_objectSpread({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),zs.apply(this,arguments)}var Pl=e(74595),Ui={categoryId:"All",displayAnnotationType:void 0,displayOptions:[yo.zY.showAnnotations,yo.zY.showAllCategory],selectedLabelIds:[],diffMode:yo.uP.Overlay},Yl={datasetId:"",datasetName:"",page:1,pageSize:yo.L8,cloumnCount:5,isSingleAnnotation:!1,previewIndex:-1,filterValues:p()({},Ui),comparisons:void 0,flagTools:void 0},Cu={imgList:[],total:0,flagTools:{lastShiftIndex:-1,lastSavedIndexs:[],count:0}},vu=p()(p()({},Cu),{},{screenLoading:"",hasEmbedFile:!1,filters:{categories:[],annotationTypes:[],displayOptions:yo.EX,labels:[]}}),xu=e(39378),Iu=function(){var q,_,me,Oe=(0,qo.x)(p()({},Yl)),Xe=Ya()(Oe,2),pt=Xe[0],Ht=Xe[1],an=(0,qo.x)(p()({},vu)),En=Ya()(an,2),Qn=En[0],_r=En[1],Hr=pt.filterValues,ga=pt.comparisons,Ta=Qn.filters,Da=function(ko){Ht(function(fa){Object.assign(fa,Yl,ko)})},io=function(){},ho=(0,Ki.Z)(function(Qo){if(!pt.datasetId)throw null;return qi({datasetId:pt.datasetId})},{refreshDeps:[pt.datasetId],onSuccess:function(ko,fa){var ms=ko.categoryList,Al=ko.labelList,Ci=ko.objectTypes,mu=fa.length>0?fa[0]:yo.$j.gt,pl=Ci.filter(function(Ai){return Ai!==yo.JJ.Classification}),Vl=pt.filterValues.displayAnnotationType&&pl.find(function(Ai){return Ai===pt.filterValues.displayAnnotationType});_r(function(Ai){var Tu=Vl||pl[0],Sc=(0,Pl.B8)(pt.filterValues.displayOptions,Tu),rl=Ya()(Sc,2),jc=rl[0],Ec=rl[1];Ai.filters.categories=[{id:"All",name:"All"}].concat(mi()(ms)),Ai.filters.annotationTypes=pl,Ai.filters.displayOptions=jc,Vl||Ht(function(hl){hl.filterValues.displayOptions=Ec,hl.filterValues.displayAnnotationType=Tu}),pt.filterValues.categoryId||Ht(function(hl){hl.filterValues.categoryId="All"}),Al&&Al.length&&(Ai.filters.labels=Al.map(function(hl){return hl.confidenceRange=hl.source===yo.$j.pred?[.2,1]:[0,1],hl.source===mu&&!Vl&&Ht(function(js){js.filterValues.selectedLabelIds=[hl.id]}),hl}))})},onError:function(){}},[function(Qo){return{onBefore:function(){var fa;return{loading:!(!((fa=Qo.state.params)===null||fa===void 0)&&fa.length)}}}}]),Mo=ho.loading,yi=ho.runAsync,Vo=(0,Ki.Z)(function(){var Qo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!pt.datasetId||!pt.filterValues.categoryId)throw null;Qo||(_r(function(ms){Object.assign(ms,Cu)}),window.scrollTo(0,0));var ko=pt.filterValues.categoryId==="All"?void 0:pt.filterValues.categoryId,fa={datasetId:pt.datasetId,categoryId:ko,pageNum:pt.page,pageSize:pt.pageSize};return pt.comparisons?fi(p()(p()({},fa),{},{labelId:pt.comparisons.label.id,precision:pt.comparisons.precision,orderBy:pt.comparisons.orderBy,displayCategoryId:ko})):(pt.flagTools&&pt.flagTools.flagStatus>=0&&Object.assign(fa,{flag:pt.flagTools.flagStatus}),Ko(fa))},{debounceWait:20,refreshDeps:[pt.datasetId,pt.filterValues.categoryId,pt.page,pt.pageSize,(q=pt.comparisons)===null||q===void 0?void 0:q.precision,(_=pt.comparisons)===null||_===void 0?void 0:_.orderBy,(me=pt.flagTools)===null||me===void 0?void 0:me.flagStatus],onSuccess:function(ko){_r(function(fa){fa.imgList=ko.imageList,fa.total=ko.total})},onError:function(){}},[function(Qo){return{onBefore:function(){var fa;return{loading:!(!((fa=Qo.state.params)===null||fa===void 0)&&fa.length)}}}}]),Mi=Vo.loading,fs=Vo.run,Hi=function(ko){Ht(function(fa){fa.previewIndex=ko})},Co=function(){Ht(function(ko){ko.previewIndex=-1})},ci=Mo||Mi,Ei=(0,y.useMemo)(function(){if(ga){var Qo=[],ko=Ta.labels.find(function(fa){return fa.source===yo.$j.gt});return(ga.displays.includes(yo.$j.gt)||ga.displays.includes(yo.BP.fn))&&ko&&Qo.push(ko.id),(ga.displays.includes(yo.$j.pred)||ga.displays.includes(yo.BP.fp))&&Qo.push(ga.label.id),Qo}return Hr.selectedLabelIds},[ga,Hr.selectedLabelIds,Ta.labels]),zi=(0,y.useMemo)(function(){return Ei.length>1&&(Hr.displayAnnotationType===yo.JJ.Matting||(ga?ga.diffMode===yo.uP.Tiled:Hr.diffMode===yo.uP.Tiled))},[ga,Hr.diffMode,Ei]),Qi=(0,y.useMemo)(function(){var Qo={};return Object.keys(yo.zY).forEach(function(ko){var fa;Qo[ko]=!!(!((fa=Hr.displayOptions)===null||fa===void 0)&&fa.find(function(ms){return ms===ko}))}),Qo},[pt.filterValues.displayOptions]),ts=(0,y.useCallback)(function(Qo){var ko=mi()(Qo.objects)||[],fa=pt.comparisons,ms={labels:Qn.filters.labels,displayLabelIds:Ei,isTiledDiff:zi};if(fa){var Al=ko.filter(function(Ci){return Ci.source===yo.$j.pred});ko=ko.filter(function(Ci){return(Ci.conf||0)>=fa.score}),ko=ko.map(function(Ci){var mu=p()({},Ci);if(Ci.source===yo.$j.gt){var pl=(0,xu.isNumber)(Ci.matchedDetIdx)&&Ci.matchedDetIdx>=0&&ko.includes(Al[Ci.matchedDetIdx])?yo.BP.ok:yo.BP.fn;mu.compareResult=pl}return mu}),ko=ko.filter(function(Ci){return Ci.compareResult===yo.BP.ok?Ci.source&&fa.displays.includes(Ci.source):Ci.compareResult&&fa.displays.includes(Ci.compareResult)})}return ko.filter(function(Ci){var mu=Qi.showAnnotations,pl=Qi.showAllCategory,Vl=pt.filterValues.categoryId||"";if(!mu||!pl&&Ci.categoryId!==Vl||ms&&Ci.labelId&&!ms.displayLabelIds.includes(Ci.labelId)||ms&&ms.isTiledDiff&&Ci.labelId!==Qo.curLabelId)return!1;if(!fa&&ms){var Ai=ms.labels.find(function(Tu){return Tu.id===Ci.labelId});return Ai?Ai.source===yo.$j.gt?!0:Ci.conf!==void 0&&Ci.conf>=(Ai==null?void 0:Ai.confidenceRange[0])&&Ci.conf<=(Ai==null?void 0:Ai.confidenceRange[1]):!1}return!0})},[pt.comparisons,Qn.filters.labels,Ei,zi,Qi]),Kl=(0,y.useCallback)(function(Qo){var ko=(0,Pl.iE)(Qo.labelId,Ei,zi||!!pt.comparisons),fa=ko.colorAplha,ms=ko.strokeDash,Al=ko.lineWidth;return pt.comparisons&&Qo.compareResult?{pointAplha:fa,strokeDash:ms,thickness:Al,fillColor:yo.pB[Qo.compareResult]||"transparent"}:{pointAplha:fa,strokeDash:ms,thickness:Al}},[Ei,zi,!!pt.comparisons]);return{pageState:pt,setPageState:Ht,pageData:Qn,setPageData:_r,onInitPageState:Da,onPageContentLoaded:io,onPreviewIndexChange:Hi,exitPreview:Co,loadDatasetInfo:yi,loadImgList:fs,loading:ci,displayLabelIds:Ei,isTiledDiff:zi,displayOptionsResult:Qi,displayObjectsFilter:ts,getCustomObjectStyles:Kl}},el=e(41260),es=function(){var q=(0,y.useState)(!1),_=Ya()(q,2),me=_[0],Oe=_[1],Xe=(0,T.useModel)("dataset.common"),pt=Xe.setPageState,Ht=function(){Oe(!0)},an=function(){Oe(!1)},En=function(ga){pt(function(Ta){Ta.page=1,Ta.filterValues.displayAnnotationType=yo.JJ.Detection,Ta.flagTools=void 0,Ta.comparisons={label:ga,orderBy:yo.YZ.fn,precision:ga.comparePrecisions[0].precision,displays:yo.G3.map(function(Da){return Da.value}),diffMode:yo.uP.Overlay,score:(0,el.p)(ga.comparePrecisions[0].threshold,2)}})},Qn=function(){pt(function(ga){ga.page=1,ga.comparisons=void 0})},_r=function(ga,Ta){pt(function(Da){if(Da.comparisons&&(Da.comparisons[ga]=Ta,ga==="precision")){var io=Da.comparisons.label.comparePrecisions.find(function(ho){return ho.precision===Ta});io&&(Da.comparisons.score=(0,el.p)(io.threshold,2))}})};return{showAnalysisModal:me,openAnalysisModal:Ht,closeAnalysisModal:an,compareLabelSet:En,exitComparisons:Qn,onFilterComparisonsPrecision:_r}},Fa=function(){var q=(0,T.useModel)("dataset.common"),_=q.pageState,me=q.setPageState,Oe=q.pageData,Xe=q.setPageData,pt=function(Ta){me(function(Da){Da.filterValues.categoryId=Ta,Da.page=1})},Ht=function(Ta){var Da;typeof Ta=="number"?Da=Ta:Ta?Da=_.cloumnCount1?_.cloumnCount-1:_.cloumnCount,me(function(io){io.cloumnCount=Da})},an=function(Ta){me(function(Da){Da.filterValues.displayOptions=Ta})},En=function(Ta){me(function(Da){Da.filterValues.selectedLabelIds=Ta.sort(function(io,ho){return Oe.filters.labels.findIndex(function(Mo){return Mo.id===io})-Oe.filters.labels.findIndex(function(Mo){return Mo.id===ho})})})},Qn=function(Ta){me(function(Da){Da.filterValues.diffMode=Ta})},_r=function(Ta,Da){Xe(function(io){io.filters.labels[Ta].confidenceRange=Da})},Hr=function(Ta){var Da=(0,Pl.B8)(_.filterValues.displayOptions,Ta),io=Ya()(Da,2),ho=io[0],Mo=io[1];Xe(function(yi){yi.filters.displayOptions=ho}),me(function(yi){yi.filterValues.displayAnnotationType=Ta,yi.filterValues.displayOptions=Mo})};return{onCategoryChange:pt,onColumnCountChange:Ht,onDisplayOptionsChange:an,onDisplayAnnotationTypeChange:Hr,onLabelsChange:En,onLabelsDiffModeChange:Qn,onLabelConfidenceChange:_r}},gs=e(2556),Nu=function(_){var me=[],Oe=[];return _.forEach(function(Xe,pt){Xe.selected&&(me.push(pt),Oe.push(Xe.id))}),{selectIndexs:me,selectedIds:Oe}},Gl=function(){var q=(0,T.useModel)("dataset.common"),_=q.pageState,me=q.setPageState,Oe=q.pageData,Xe=q.setPageData,pt=q.loadImgList,Ht=(0,qo.x)(!1),an=Ya()(Ht,2),En=an[0],Qn=an[1],_r=function(Co){Xe(function(ci){if(_.flagTools){var Ei=!ci.imgList[Co].selected;if(En&&ci.flagTools.lastShiftIndex>=0&&Co!==ci.flagTools.lastShiftIndex){var zi=ci.flagTools.count;ci.imgList.forEach(function(Qi,ts){(ts>=ci.flagTools.lastShiftIndex&&ts<=Co||ts>=Co&&ts<=ci.flagTools.lastShiftIndex)&&(zi+=Qi.selected?0:1,Qi.selected=!0)}),ci.flagTools.lastShiftIndex=-1,ci.flagTools.count=zi}else ci.imgList[Co].selected=Ei,ci.flagTools.lastShiftIndex=Ei?Co:-1,ci.flagTools.count+=Ei?1:-1}})},Hr=function(){var Co=Oe.flagTools.count!==_.pageSize;Xe(function(ci){ci.imgList.forEach(function(Ei){Ei.selected=Co}),ci.flagTools.lastShiftIndex=-1,ci.flagTools.count=Co?_.pageSize:0})},ga=function(){Xe(function(Co){Co.imgList.forEach(function(ci){ci.selected=!ci.selected}),Co.flagTools.lastShiftIndex=-1,Co.flagTools.count=_.pageSize-Co.flagTools.count})},Ta=function(){return new Promise(function(Co){if(!_.flagTools){Co(null);return}var ci=Nu(Oe.imgList),Ei=ci.selectIndexs;if(Ei.length>0&&(Ei.length!==Oe.flagTools.lastSavedIndexs.length||Oe.flagTools.lastSavedIndexs.find(function(zi){return!Ei.includes(zi)}))){Wr.Z.confirm({content:"Now selected items have not been saved, these will lose if you click 'OK', are you sure?",onOk:function(){Co(null)}});return}Co(null)})},Da=function(Co){Ta().then(function(){me(function(ci){ci.page=1,ci.flagTools.flagStatus=Co})})},io=function(){Xe(function(Co){Co.flagTools.lastShiftIndex=-1,Co.flagTools.lastSavedIndexs=[],Co.flagTools.count=0}),me(function(Co){Co.page=1,Co.flagTools={flagStatus:yo.po.all}})},ho=function(){Ta().then(function(){me(function(Co){Co.page=1,Co.flagTools=void 0})})},Mo=function(){var Hi=w()(m()().mark(function Co(ci){var Ei,zi,Qi,ts;return m()().wrap(function(Qo){for(;;)switch(Qo.prev=Qo.next){case 0:if(!(Oe.flagTools.count<=0)){Qo.next=3;break}return R.ZP.warning("No any image to be selected!"),Qo.abrupt("return");case 3:return Ei=Nu(Oe.imgList),zi=Ei.selectIndexs,Qi=Ei.selectedIds,ts=R.ZP.loading("Flag saving..."),Qo.prev=5,Qo.next=8,ae({datasetId:_.datasetId,flagGroups:[{flag:ci,ids:Qi}]});case 8:ts(),Xe(function(ko){ko.imgList.forEach(function(fa){fa.selected&&(fa.flag=ci)}),ko.flagTools.lastSavedIndexs=zi}),Qo.next=17;break;case 12:Qo.prev=12,Qo.t0=Qo.catch(5),console.error("error",Qo.t0),ts(),R.ZP.error("Flag save fail, please retry!");case 17:case"end":return Qo.stop()}},Co,null,[[5,12]])}));return function(ci){return Hi.apply(this,arguments)}}(),yi=(0,Ki.Z)(function(Hi){return en(Hi)},{manual:!0,pollingInterval:1e3,pollingWhenHidden:!0,onSuccess:function(Co){var ci=Co.status;ci==="success"?(Mi(),R.ZP.success("Order update success!"),Xe(function(Ei){Ei.screenLoading=""}),me(function(Ei){Ei.page=1}),pt()):ci==="fail"&&(Mi(),R.ZP.error("Query order task fail, Please retry!"),Xe(function(Ei){Ei.screenLoading=""}))}}),Vo=yi.run,Mi=yi.cancel,fs=function(){var Hi=w()(m()().mark(function Co(){var ci,Ei,zi;return m()().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.prev=0,Xe(function(Kl){Kl.screenLoading="Updating order..."}),ts.next=4,Ke({datasetId:_.datasetId});case 4:ci=ts.sent,Ei=ci.id,zi=ci.name,Vo({id:Ei,name:zi}),ts.next=14;break;case 10:ts.prev=10,ts.t0=ts.catch(0),console.error("error",ts.t0),Xe(function(Kl){Kl.screenLoading=""});case 14:case"end":return ts.stop()}},Co,null,[[0,10]])}));return function(){return Hi.apply(this,arguments)}}();return(0,gs.Z)(["Shift"],function(Hi){!_.flagTools||_.previewIndex>=0||Qn(Hi.type==="keydown")},{events:["keydown","keyup"]}),(0,gs.Z)(["shift.q","shift.Q","shift.e","shift.E","v","V"],function(Hi){!_.flagTools||_.previewIndex>=0||(["v","V"].includes(Hi.key)&&ga(),["q","Q"].includes(Hi.key)&&Hi.shiftKey&&Mo(yo.po.picked),["e","E"].includes(Hi.key)&&Hi.shiftKey&&Mo(yo.po.rejected))}),{enterFlagTools:io,exitFlagTools:ho,onChangeFlagStatus:Da,selectItem:_r,changeSelectAll:Hr,antiSelect:ga,limitNoSaveChangePage:Ta,saveFlag:Mo,updateOrder:fs}},Au=function(){var q=(0,qo.x)({page:1,pageSize:yo.L8}),_=Ya()(q,2),me=_[0],Oe=_[1],Xe=(0,qo.x)({list:[],total:0}),pt=Ya()(Xe,2),Ht=pt[0],an=pt[1],En=(0,Ki.Z)(function(Ta,Da){return as({pageNum:Ta||me.page,pageSize:Da||me.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[me.page,me.pageSize],onSuccess:function(Da){var io=Da.datasetList,ho=Da.total;an(function(Mo){Mo.list=io,Mo.total=ho})},onError:function(){}}),Qn=En.loading,_r=En.run,Hr=function(Da){Oe(function(io){io.page=Da}),_r(Da)},ga=function(Da,io){Oe(function(ho){ho.page=Da,ho.pageSize=io}),_r(Da,io)};return{loading:Qn,pagination:me,datasetsData:Ht,loadDatasets:_r,setPagination:Oe,onPageChange:Hr,onPageSizeChange:ga}},hc=e(7214),Bs=e(21325),_s=!1;(0,hc.ac)(function(q){_s=q});var Ju=function(){var q=(0,y.useState)(!1),_=Ya()(q,2),me=_[0],Oe=_[1],Xe=(0,y.useState)(""),pt=Ya()(Xe,2),Ht=pt[0],an=pt[1],En=(0,y.useState)(_s),Qn=Ya()(En,2),_r=Qn[0],Hr=Qn[1],ga=(0,y.useState)(0),Ta=Ya()(ga,2),Da=Ta[0],io=Ta[1],ho=(0,y.useState)(window.innerWidth),Mo=Ya()(ho,2),yi=Mo[0],Vo=Mo[1];return(0,y.useEffect)(function(){(0,hc.ac)(function(Mi){Hr(Mi)})},[]),(0,y.useEffect)(function(){Vo(window.innerWidth-Da)},[Da]),(0,Bs.Z)("resize",function(){var Mi=window.innerWidth-Da;Vo(Mi)},{target:window}),{loading:me,setLoading:Oe,loadingTip:Ht,setLoadingTip:an,isMobile:_r,fixSliderWidth:Da,setFixSliderWidth:io,layoutInnerWidth:yi}};function Ou(q){return tl.apply(this,arguments)}function tl(){return tl=w()(m()().mark(function q(_){return m()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",(0,T.request)("/api/v1/user_info",p()({method:"GET",skipErrorHandler:!0},_||{})));case 1:case"end":return Oe.stop()}},q)})),tl.apply(this,arguments)}function nl(q,_){return nu.apply(this,arguments)}function nu(){return nu=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/login",p()({method:"POST",data:p()({},_),skipErrorHandler:!0},me||{})));case 1:case"end":return Xe.stop()}},q)})),nu.apply(this,arguments)}function Hs(q){return Cl.apply(this,arguments)}function Cl(){return Cl=w()(m()().mark(function q(_){return m()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",(0,T.request)("/api/v1/logout",p()({method:"POST"},_||{})));case 1:case"end":return Oe.stop()}},q)})),Cl.apply(this,arguments)}var Uu=function(){var q=(0,T.useModel)("global"),_=q.setLoading,me=(0,y.useState)(!1),Oe=Ya()(me,2),Xe=Oe[0],pt=Oe[1],Ht=(0,qo.x)({}),an=Ya()(Ht,2),En=an[0],Qn=an[1],_r=function(){return new Promise(function(io){if(En.isLogin){io(null);return}pt(!0)})},Hr=function(){var Da=w()(m()().mark(function io(){var ho,Mo,yi,Vo,Mi,fs;return m()().wrap(function(Co){for(;;)switch(Co.prev=Co.next){case 0:return Co.prev=0,ho=localStorage.getItem(yo.Uf.AUTH_TOKEN),Co.next=4,Ou();case 4:Mo=Co.sent,yi=Mo.id,Vo=Mo.name,Mi=Mo.status,fs=Mo.isStaff,ho&&Mi===yo.oC.Active&&Qn({isLogin:!0,username:Vo,userId:yi,token:ho,isStaff:fs}),Co.next=16;break;case 12:Co.prev=12,Co.t0=Co.catch(0),console.error("error",Co.t0),Qn({isLogin:!1});case 16:case"end":return Co.stop()}},io,null,[[0,12]])}));return function(){return Da.apply(this,arguments)}}(),ga=function(){var Da=w()(m()().mark(function io(ho){var Mo,yi,Vo,Mi,fs,Hi,Co,ci,Ei;return m()().wrap(function(Qi){for(;;)switch(Qi.prev=Qi.next){case 0:return Mo=ho.username,yi=ho.password,Vo=window.location.pathname,Mi=Vo.includes("page/login"),_(!0),Qi.prev=4,Qi.next=7,nl({username:Mo,password:yi});case 7:fs=Qi.sent,Hi=fs.username,Co=fs.userId,ci=fs.token,Ei=fs.isStaff,Qn({isLogin:!0,username:Hi,token:ci,userId:Co,isStaff:Ei}),localStorage.setItem(yo.Uf.AUTH_TOKEN,ci),Mi||pt(!1),R.ZP.success((0,ds._w)("loginSuccess")),Qi.next=21;break;case 18:Qi.prev=18,Qi.t0=Qi.catch(4),R.ZP.error((0,ds._w)("loginAuthenticationFailed"));case 21:return Qi.prev=21,_(!1),Qi.finish(21);case 24:case"end":return Qi.stop()}},io,null,[[4,18,21,24]])}));return function(ho){return Da.apply(this,arguments)}}(),Ta=function(){var Da=w()(m()().mark(function io(){return m()().wrap(function(Mo){for(;;)switch(Mo.prev=Mo.next){case 0:return Mo.prev=0,Mo.next=3,Hs();case 3:Qn({isLogin:!1}),R.ZP.success((0,ds._w)("logoutSuccess")),localStorage.removeItem(yo.Uf.AUTH_TOKEN),T.history.push("/"),Mo.next=13;break;case 9:Mo.prev=9,Mo.t0=Mo.catch(0),console.error("error",Mo.t0),R.ZP.error((0,ds._w)("logoutFailed"));case 13:case"end":return Mo.stop()}},io,null,[[0,9]])}));return function(){return Da.apply(this,arguments)}}();return{user:En,setUser:Qn,checkLoginStatus:Hr,onLogin:ga,onLogout:Ta,showLoginModal:Xe,setShowLoginModal:pt,limitLoginAction:_r}},qu=e(1239),Ru=e(32694),ec=e(54518),ku=e(93059);function Wu(q,_,me){var Oe=new Date(q),Xe=Oe.getFullYear(),pt=(0,el.p)(Oe.getMonth()+1),Ht=(0,el.p)(Oe.getDate()),an=(0,el.p)(Oe.getHours()),En=(0,el.p)(Oe.getMinutes()),Qn=(0,el.p)(Oe.getSeconds()),_r=(0,el.p)(Oe.getMilliseconds(),3),Hr="".concat(Xe,"_").concat(pt,"_").concat(Ht,"_").concat(an,"_").concat(En,"_").concat(Qn,"_").concat(_r);return _&&(Hr="".concat(_,"_").concat(Hr)),me&&(Hr="".concat(Hr,".").concat(me)),Hr}function _u(q,_){var me=JSON.stringify(q),Oe=new Blob([me],{type:"application/json"}),Xe=URL.createObjectURL(Oe),pt=document.createElement("a");pt.href=Xe,pt.download=_,document.body.appendChild(pt),pt.click(),document.body.removeChild(pt),URL.revokeObjectURL(Xe)}var gu=function(_){return new Promise(function(me,Oe){var Xe=new Image;Xe.src=_,Xe.onload=function(){me(Xe)},Xe.onerror=function(){Oe(Xe)}})},Ll=e(67761),kl=e(46134),Nl=function(_,me){var Oe={info:{year:new Date().getFullYear(),version:"1.0",description:"Annotations in COCO format, labeled by DeepDataSpace",contributor:"",date_created:new Date().toISOString()},images:[],categories:[],annotations:[]},Xe={};return me.forEach(function(pt,Ht){var an=Ht;Xe[pt.name]=an,Oe.categories.push({id:an,name:pt.name})}),_.forEach(function(pt,Ht){var an=Ht;Oe.images.push({id:an,file_name:pt.fileName,width:pt.width,height:pt.height}),pt.objects.forEach(function(En){var Qn={id:Oe.annotations.length,image_id:an,bbox:[],area:0,segmentation:[],iscrowd:0};if(Xe&&En.categoryName&&Xe[En.categoryName]!==void 0&&(Qn.category_id=Xe[En.categoryName]),En.boundingBox){var _r=(0,kl.cO)(En.boundingBox,{width:pt.width,height:pt.height}),Hr=_r.x,ga=_r.y,Ta=_r.width,Da=_r.height,io=Ta*Da,ho=[Hr,ga,Ta,Da];Object.assign(Qn,{area:io,bbox:ho})}if(En.segmentation){for(var Mo=En.segmentation.split("/").map(function(pu){return pu.split(",").map(function(Cc){return parseFloat(Cc)})}),yi=Mo.reduce(function(pu,Cc){var Pc=(0,kl.X6)(Cc),oc=(0,kl.I4)(Pc);return pu+oc},0),Vo=Mo.flat(),Mi=[],fs=0;fs0){var fa=En.mask,ms=(0,Ll.ei)(fa,{width:pt.width,height:pt.height},"#fff");if(ms){var Al=(0,kl.e4)(ms),Ci=Al.area,mu=Al.bbox,pl=(0,kl.cO)(mu,{width:1,height:1}),Vl=pl.x,Ai=pl.y,Tu=pl.width,Sc=pl.height;Object.assign(Qn,{segmentation:fa,area:Ci,bbox:[Vl,Ai,Tu,Sc]})}else Object.assign(Qn,{segmentation:fa})}if(En.points&&En.points.length>0){for(var rl=En.points,jc=En.pointNames,Ec=En.lines,hl=En.categoryName,js=[],Zc=0,Pa=0;Pa*6=0||_||(["a","A"].includes(Mo.key)&&Oe.page>1&&Ta(Oe.page-1),["d","D"].includes(Mo.key)&&Oe.page=0)&&(xt[Lt]=ct[Lt]);return xt}const v=["onClick","reloadDocument","replace","state","target","to"],h=null;function m(ct,lt){if(!ct){typeof console!="undefined"&&console.warn(lt);try{throw new Error(lt)}catch(xt){}}}function C(ct){let{basename:lt,children:xt,window:St}=ct,Lt=useRef();Lt.current==null&&(Lt.current=createBrowserHistory({window:St}));let _t=Lt.current,[Wt,yn]=useState({action:_t.action,location:_t.location});return useLayoutEffect(()=>_t.listen(yn),[_t]),createElement(Router,{basename:lt,children:xt,location:Wt.location,navigationType:Wt.action,navigator:_t})}function p(ct){let{basename:lt,children:xt,window:St}=ct,Lt=useRef();Lt.current==null&&(Lt.current=createHashHistory({window:St}));let _t=Lt.current,[Wt,yn]=useState({action:_t.action,location:_t.location});return useLayoutEffect(()=>_t.listen(yn),[_t]),createElement(Router,{basename:lt,children:xt,location:Wt.location,navigationType:Wt.action,navigator:_t})}function S(ct){let{basename:lt,children:xt,history:St}=ct;const[Lt,_t]=useState({action:St.action,location:St.location});return useLayoutEffect(()=>St.listen(_t),[St]),createElement(Router,{basename:lt,children:xt,location:Lt.location,navigationType:Lt.action,navigator:St})}function w(ct){return!!(ct.metaKey||ct.altKey||ct.ctrlKey||ct.shiftKey)}const y=(0,o.forwardRef)(function(lt,xt){let{onClick:St,reloadDocument:Lt,replace:_t=!1,state:Wt,target:yn,to:kn}=lt,hr=l(lt,v),cr=(0,s.useHref)(kn),Dn=F(kn,{replace:_t,state:Wt,target:yn});function Rr(or){St&&St(or),!or.defaultPrevented&&!Lt&&Dn(or)}return(0,o.createElement)("a",c({},hr,{href:cr,onClick:Rr,ref:xt,target:yn}))}),Z=null;function F(ct,lt){let{target:xt,replace:St,state:Lt}=lt===void 0?{}:lt,_t=(0,s.useNavigate)(),Wt=(0,s.useLocation)(),yn=(0,s.useResolvedPath)(ct);return(0,o.useCallback)(kn=>{if(kn.button===0&&(!xt||xt==="_self")&&!w(kn)){kn.preventDefault();let hr=!!St||(0,n.Ep)(Wt)===(0,n.Ep)(yn);_t(ct,{replace:hr,state:Lt})}},[Wt,_t,yn,St,Lt,xt,ct])}function R(ct){let lt=useRef(T(ct)),xt=useLocation(),St=useMemo(()=>{let Wt=T(xt.search);for(let yn of lt.current.keys())Wt.has(yn)||lt.current.getAll(yn).forEach(kn=>{Wt.append(yn,kn)});return Wt},[xt.search]),Lt=useNavigate(),_t=useCallback((Wt,yn)=>{Lt("?"+T(Wt),yn)},[Lt]);return[St,_t]}function T(ct){return ct===void 0&&(ct=""),new URLSearchParams(typeof ct=="string"||Array.isArray(ct)||ct instanceof URLSearchParams?ct:Object.keys(ct).reduce((lt,xt)=>{let St=ct[xt];return lt.concat(Array.isArray(St)?St.map(Lt=>[xt,Lt]):[[xt,St]])},[]))}var z=e(60581),A=["prefetch"];function L(ct){var lt,xt=ct.prefetch,St=(0,t.Z)(ct,A),Lt=(0,z.Ov)(),_t=typeof ct.to=="string"?ct.to:(lt=ct.to)===null||lt===void 0?void 0:lt.pathname;return _t?o.createElement(y,(0,i.Z)({onMouseEnter:function(){var yn;return xt&&_t&&((yn=Lt.preloadRoute)===null||yn===void 0?void 0:yn.call(Lt,_t))}},St),ct.children):null}var I=e(83753);function $(){"use strict";$=function(){return ct};var ct={},lt=Object.prototype,xt=lt.hasOwnProperty,St=Object.defineProperty||function(Tn,In,Yn){Tn[In]=Yn.value},Lt=typeof Symbol=="function"?Symbol:{},_t=Lt.iterator||"@@iterator",Wt=Lt.asyncIterator||"@@asyncIterator",yn=Lt.toStringTag||"@@toStringTag";function kn(Tn,In,Yn){return Object.defineProperty(Tn,In,{value:Yn,enumerable:!0,configurable:!0,writable:!0}),Tn[In]}try{kn({},"")}catch(Tn){kn=function(Yn,Nr,zr){return Yn[Nr]=zr}}function hr(Tn,In,Yn,Nr){var zr=In&&In.prototype instanceof Rr?In:Rr,Br=Object.create(zr.prototype),Ma=new Zr(Nr||[]);return St(Br,"_invoke",{value:Fr(Tn,Yn,Ma)}),Br}function cr(Tn,In,Yn){try{return{type:"normal",arg:Tn.call(In,Yn)}}catch(Nr){return{type:"throw",arg:Nr}}}ct.wrap=hr;var Dn={};function Rr(){}function or(){}function Gr(){}var Ir={};kn(Ir,_t,function(){return this});var jn=Object.getPrototypeOf,vn=jn&&jn(jn(Ca([])));vn&&vn!==lt&&xt.call(vn,_t)&&(Ir=vn);var Ln=Gr.prototype=Rr.prototype=Object.create(Ir);function Zn(Tn){["next","throw","return"].forEach(function(In){kn(Tn,In,function(Yn){return this._invoke(In,Yn)})})}function yr(Tn,In){function Yn(zr,Br,Ma,uo){var to=cr(Tn[zr],Tn,Br);if(to.type!=="throw"){var Io=to.arg,ja=Io.value;return ja&&(0,I.Z)(ja)=="object"&&xt.call(ja,"__await")?In.resolve(ja.__await).then(function(Ua){Yn("next",Ua,Ma,uo)},function(Ua){Yn("throw",Ua,Ma,uo)}):In.resolve(ja).then(function(Ua){Io.value=Ua,Ma(Io)},function(Ua){return Yn("throw",Ua,Ma,uo)})}uo(to.arg)}var Nr;St(this,"_invoke",{value:function(Br,Ma){function uo(){return new In(function(to,Io){Yn(Br,Ma,to,Io)})}return Nr=Nr?Nr.then(uo,uo):uo()}})}function Fr(Tn,In,Yn){var Nr="suspendedStart";return function(zr,Br){if(Nr==="executing")throw new Error("Generator is already running");if(Nr==="completed"){if(zr==="throw")throw Br;return la()}for(Yn.method=zr,Yn.arg=Br;;){var Ma=Yn.delegate;if(Ma){var uo=Kr(Ma,Yn);if(uo){if(uo===Dn)continue;return uo}}if(Yn.method==="next")Yn.sent=Yn._sent=Yn.arg;else if(Yn.method==="throw"){if(Nr==="suspendedStart")throw Nr="completed",Yn.arg;Yn.dispatchException(Yn.arg)}else Yn.method==="return"&&Yn.abrupt("return",Yn.arg);Nr="executing";var to=cr(Tn,In,Yn);if(to.type==="normal"){if(Nr=Yn.done?"completed":"suspendedYield",to.arg===Dn)continue;return{value:to.arg,done:Yn.done}}to.type==="throw"&&(Nr="completed",Yn.method="throw",Yn.arg=to.arg)}}}function Kr(Tn,In){var Yn=In.method,Nr=Tn.iterator[Yn];if(Nr===void 0)return In.delegate=null,Yn==="throw"&&Tn.iterator.return&&(In.method="return",In.arg=void 0,Kr(Tn,In),In.method==="throw")||Yn!=="return"&&(In.method="throw",In.arg=new TypeError("The iterator does not provide a '"+Yn+"' method")),Dn;var zr=cr(Nr,Tn.iterator,In.arg);if(zr.type==="throw")return In.method="throw",In.arg=zr.arg,In.delegate=null,Dn;var Br=zr.arg;return Br?Br.done?(In[Tn.resultName]=Br.value,In.next=Tn.nextLoc,In.method!=="return"&&(In.method="next",In.arg=void 0),In.delegate=null,Dn):Br:(In.method="throw",In.arg=new TypeError("iterator result is not an object"),In.delegate=null,Dn)}function aa(Tn){var In={tryLoc:Tn[0]};1 in Tn&&(In.catchLoc=Tn[1]),2 in Tn&&(In.finallyLoc=Tn[2],In.afterLoc=Tn[3]),this.tryEntries.push(In)}function Jr(Tn){var In=Tn.completion||{};In.type="normal",delete In.arg,Tn.completion=In}function Zr(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(aa,this),this.reset(!0)}function Ca(Tn){if(Tn){var In=Tn[_t];if(In)return In.call(Tn);if(typeof Tn.next=="function")return Tn;if(!isNaN(Tn.length)){var Yn=-1,Nr=function zr(){for(;++Yn=0;--zr){var Br=this.tryEntries[zr],Ma=Br.completion;if(Br.tryLoc==="root")return Nr("end");if(Br.tryLoc<=this.prev){var uo=xt.call(Br,"catchLoc"),to=xt.call(Br,"finallyLoc");if(uo&&to){if(this.prev=0;--Nr){var zr=this.tryEntries[Nr];if(zr.tryLoc<=this.prev&&xt.call(zr,"finallyLoc")&&this.prev=0;--Yn){var Nr=this.tryEntries[Yn];if(Nr.finallyLoc===In)return this.complete(Nr.completion,Nr.afterLoc),Jr(Nr),Dn}},catch:function(In){for(var Yn=this.tryEntries.length-1;Yn>=0;--Yn){var Nr=this.tryEntries[Yn];if(Nr.tryLoc===In){var zr=Nr.completion;if(zr.type==="throw"){var Br=zr.arg;Jr(Nr)}return Br}}throw new Error("illegal catch attempt")},delegateYield:function(In,Yn,Nr){return this.delegate={iterator:Ca(In),resultName:Yn,nextLoc:Nr},this.method==="next"&&(this.arg=void 0),Dn}},ct}var B=e(5452);function K(ct,lt,xt,St,Lt,_t,Wt){try{var yn=ct[_t](Wt),kn=yn.value}catch(hr){xt(hr);return}yn.done?lt(kn):Promise.resolve(kn).then(St,Lt)}function H(ct){return function(){var lt=this,xt=arguments;return new Promise(function(St,Lt){var _t=ct.apply(lt,xt);function Wt(kn){K(_t,St,Lt,Wt,yn,"next",kn)}function yn(kn){K(_t,St,Lt,Wt,yn,"throw",kn)}Wt(void 0)})}}var ie=e(50648);function ce(ct,lt){var xt=typeof Symbol!="undefined"&&ct[Symbol.iterator]||ct["@@iterator"];if(!xt){if(Array.isArray(ct)||(xt=(0,ie.Z)(ct))||lt&&ct&&typeof ct.length=="number"){xt&&(ct=xt);var St=0,Lt=function(){};return{s:Lt,n:function(){return St>=ct.length?{done:!0}:{done:!1,value:ct[St++]}},e:function(hr){throw hr},f:Lt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _t=!0,Wt=!1,yn;return{s:function(){xt=xt.call(ct)},n:function(){var hr=xt.next();return _t=hr.done,hr},e:function(hr){Wt=!0,yn=hr},f:function(){try{!_t&&xt.return!=null&&xt.return()}finally{if(Wt)throw yn}}}}var te=e(40642);function W(ct){if(typeof Symbol!="undefined"&&ct[Symbol.iterator]!=null||ct["@@iterator"]!=null)return Array.from(ct)}var G=e(8010);function O(ct){return(0,te.Z)(ct)||W(ct)||(0,ie.Z)(ct)||(0,G.Z)()}function k(ct,lt){if(!(ct instanceof lt))throw new TypeError("Cannot call a class as a function")}var Y=e(4566);function P(ct,lt){for(var xt=0;xt-1,"register failed, invalid key ".concat(Lt," ").concat(xt.path?"from plugin ".concat(xt.path):"",".")),St.hooks[Lt]=(St.hooks[Lt]||[]).concat(xt.apply[Lt])})}},{key:"getHooks",value:function(xt){var St=xt.split("."),Lt=O(St),_t=Lt[0],Wt=Lt.slice(1),yn=this.hooks[_t]||[];return Wt.length&&(yn=yn.map(function(kn){try{var hr=kn,cr=ce(Wt),Dn;try{for(cr.s();!(Dn=cr.n()).done;){var Rr=Dn.value;hr=hr[Rr]}}catch(or){cr.e(or)}finally{cr.f()}return hr}catch(or){return null}}).filter(Boolean)),yn}},{key:"applyPlugins",value:function(xt){var St=xt.key,Lt=xt.type,_t=xt.initialValue,Wt=xt.args,yn=xt.async,kn=this.getHooks(St)||[];switch(Wt&&Ce((0,I.Z)(Wt)==="object","applyPlugins failed, args must be plain object."),yn&&Ce(Lt===Re.modify||Lt===Re.event,"async only works with modify and event type."),Lt){case Re.modify:return yn?kn.reduce(function(){var hr=H($().mark(function cr(Dn,Rr){var or;return $().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(Ce(typeof Rr=="function"||(0,I.Z)(Rr)==="object"||Me(Rr),"applyPlugins failed, all hooks for key ".concat(St," must be function, plain object or Promise.")),!Me(Dn)){Ir.next=5;break}return Ir.next=4,Dn;case 4:Dn=Ir.sent;case 5:if(typeof Rr!="function"){Ir.next=16;break}if(or=Rr(Dn,Wt),!Me(or)){Ir.next=13;break}return Ir.next=10,or;case 10:return Ir.abrupt("return",Ir.sent);case 13:return Ir.abrupt("return",or);case 14:Ir.next=21;break;case 16:if(!Me(Rr)){Ir.next=20;break}return Ir.next=19,Rr;case 19:Rr=Ir.sent;case 20:return Ir.abrupt("return",(0,B.Z)((0,B.Z)({},Dn),Rr));case 21:case"end":return Ir.stop()}},cr)}));return function(cr,Dn){return hr.apply(this,arguments)}}(),Me(_t)?_t:Promise.resolve(_t)):kn.reduce(function(hr,cr){return Ce(typeof cr=="function"||(0,I.Z)(cr)==="object","applyPlugins failed, all hooks for key ".concat(St," must be function or plain object.")),typeof cr=="function"?cr(hr,Wt):(0,B.Z)((0,B.Z)({},hr),cr)},_t);case Re.event:return H($().mark(function hr(){var cr,Dn,Rr,or;return $().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:cr=ce(kn),Ir.prev=1,cr.s();case 3:if((Dn=cr.n()).done){Ir.next=12;break}if(Rr=Dn.value,Ce(typeof Rr=="function","applyPlugins failed, all hooks for key ".concat(St," must be function.")),or=Rr(Wt),!(yn&&Me(or))){Ir.next=10;break}return Ir.next=10,or;case 10:Ir.next=3;break;case 12:Ir.next=17;break;case 14:Ir.prev=14,Ir.t0=Ir.catch(1),cr.e(Ir.t0);case 17:return Ir.prev=17,cr.f(),Ir.finish(17);case 20:case"end":return Ir.stop()}},hr,null,[[1,14,17,20]])}))();case Re.compose:return function(){return ge({fns:kn.concat(_t),args:Wt})()}}}}],[{key:"create",value:function(xt){var St=new ct({validKeys:xt.validKeys});return xt.plugins.forEach(function(Lt){St.register(Lt)}),St}}]),ct}(),Ve=e(12763),qe=e(16962),Mt=e.n(qe),wt=0,mt=0;function Nt(ct,lt){if(!1)var xt}function ke(ct){return JSON.stringify(ct,null,2)}function He(ct){var lt=ct.length>1?ct.map(et).join(" "):ct[0];return Mt()(lt)==="object"?"".concat(ke(lt)):lt.toString()}function et(ct){return Mt()(ct)==="object"?"".concat(JSON.stringify(ct)):ct.toString()}var Fe={log:function(){for(var lt=arguments.length,xt=new Array(lt),St=0;St-1&&(_t=setTimeout(function(){le.delete(lt)},xt)),le.set(lt,{data:St,timer:_t,startTime:new Date().getTime()})},xe=function(lt){var xt=le.get(lt);return{data:xt==null?void 0:xt.data,startTime:xt==null?void 0:xt.startTime}},Ze=function(ct,lt){var xt=typeof Symbol=="function"&&ct[Symbol.iterator];if(!xt)return ct;var St=xt.call(ct),Lt,_t=[],Wt;try{for(;(lt===void 0||lt-- >0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},pe=function(){for(var ct=[],lt=0;lt0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},oe=function(){for(var ct=[],lt=0;lt0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},zn=function(){for(var ct=[],lt=0;lt0){var sr=Zr&&((wr=getCache(Zr))===null||wr===void 0?void 0:wr.startTime)||0;In===-1||new Date().getTime()-sr<=In||Object.values(Bt).forEach(function(dr){dr.refresh()})}else ta.current.apply(ta,zn(Zn))},[]);var kr=useCallback(function(){Object.values(Xn.current).forEach(function(wr){wr.unmount()}),Io.current=fn,Jt({}),Xn.current={}},[Jt]);useUpdateEffect(function(){Wt||Object.values(Xn.current).forEach(function(wr){wr.refresh()})},zn(Lt)),useEffect(function(){return function(){Object.values(Xn.current).forEach(function(wr){wr.unmount()})}},[]);var Dr=useCallback(function(wr){return function(){console.warn("You should't call "+wr+" when service not executed once.")}},[]);return Gt(Gt({loading:Ma&&!Wt||Rr,data:zr,error:void 0,params:[],cancel:Dr("cancel"),refresh:Dr("refresh"),mutate:Dr("mutate")},Bt[Io.current]||{}),{run:br,fetches:Bt,reset:kr})}var Mn=null,_e=function(){return _e=Object.assign||function(ct){for(var lt,xt=1,St=arguments.length;xt0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},rn=function(){for(var ct=[],lt=0;lt0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},Dt=function(){for(var ct=[],lt=0;ltto&&(Ma=Math.max(1,to)),Jr({current:Ma,pageSize:uo})},[Zr,Jr]),Tn=useCallback(function(zr){la(zr,Zn)},[la,Zn]),In=useCallback(function(zr){la(vn,zr)},[la,vn]),Yn=useRef(Tn);Yn.current=Tn,useUpdateEffect(function(){lt.manual||Yn.current(1)},Dt(Wt));var Nr=useCallback(function(zr,Br,Ma){Jr({current:zr.current,pageSize:zr.pageSize||Lt,filters:Br,sorter:Ma})},[aa,Fr,Jr]);return $t({loading:or,data:cr,params:Dn,run:Rr,pagination:{current:vn,pageSize:Zn,total:Zr,totalPage:Ca,onChange:la,changeCurrent:Tn,changePageSize:In},tableProps:{dataSource:(cr==null?void 0:cr.list)||[],loading:or,onChange:Nr,pagination:{current:vn,pageSize:Zn,total:Zr}},sorter:Fr,filters:aa},Gr)}var tn=null,Hn=o.createContext({});Hn.displayName="UseRequestConfigContext";var Nn=Hn,pr=function(){return pr=Object.assign||function(ct){for(var lt,xt=1,St=arguments.length;xt0)&&!(Lt=St.next()).done;)_t.push(Lt.value)}catch(yn){Wt={error:yn}}finally{try{Lt&&!Lt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},ar=function(){for(var ct=[],lt=0;lt1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(ct,_objectSpread({formatResult:function(St){return St==null?void 0:St.data},requestMethod:function(St){if(typeof St=="string")return $n(St);if(_typeof(St)==="object"){var Lt=St.url,_t=_objectWithoutProperties(St,Ft);return $n(Lt,_t)}throw new Error("request options error")}},lt))}var nn,kt,hn=function(){return kt||(kt=(0,zt.We)().applyPlugins({key:"request",type:Re.modify,initialValue:{}}),kt)},dn=function(){var lt,xt;if(nn)return nn;var St=hn();return nn=X().create(St),St==null||(lt=St.requestInterceptors)===null||lt===void 0||lt.forEach(function(Lt){Lt instanceof Array?nn.interceptors.request.use(function(_t){var Wt=_t.url;if(Lt[0].length===2){var yn=Lt[0](Wt,_t),kn=yn.url,hr=yn.options;return ee()(ee()({},hr),{},{url:kn})}return Lt[0](_t)},Lt[1]):nn.interceptors.request.use(function(_t){var Wt=_t.url;if(Lt.length===2){var yn=Lt(Wt,_t),kn=yn.url,hr=yn.options;return ee()(ee()({},hr),{},{url:kn})}return Lt(_t)})}),St==null||(xt=St.responseInterceptors)===null||xt===void 0||xt.forEach(function(Lt){Lt instanceof Array?nn.interceptors.response.use(Lt[0],Lt[1]):nn.interceptors.response.use(Lt)}),nn.interceptors.response.use(function(Lt){var _t,Wt=Lt.data;return(Wt==null?void 0:Wt.success)===!1&&St!==null&&St!==void 0&&(_t=St.errorConfig)!==null&&_t!==void 0&&_t.errorThrower&&St.errorConfig.errorThrower(Wt),Lt}),nn},$n=function(lt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},St=dn(),Lt=hn(),_t=xt.getResponse,Wt=_t===void 0?!1:_t,yn=xt.requestInterceptors,kn=xt.responseInterceptors,hr=yn==null?void 0:yn.map(function(Dn){return Dn instanceof Array?St.interceptors.request.use(function(Rr){var or=Rr.url;if(Dn[0].length===2){var Gr=Dn[0](or,Rr),Ir=Gr.url,jn=Gr.options;return ee()(ee()({},jn),{},{url:Ir})}return Dn[0](Rr)},Dn[1]):St.interceptors.request.use(function(Rr){var or=Rr.url;if(Dn.length===2){var Gr=Dn(or,Rr),Ir=Gr.url,jn=Gr.options;return ee()(ee()({},jn),{},{url:Ir})}return Dn(Rr)})}),cr=kn==null?void 0:kn.map(function(Dn){return Dn instanceof Array?St.interceptors.response.use(Dn[0],Dn[1]):St.interceptors.response.use(Dn)});return new Promise(function(Dn,Rr){St.request(ee()(ee()({},xt),{},{url:lt})).then(function(or){hr==null||hr.forEach(function(Gr){St.interceptors.request.eject(Gr)}),cr==null||cr.forEach(function(Gr){St.interceptors.response.eject(Gr)}),Dn(Wt?or:or.data)}).catch(function(or){hr==null||hr.forEach(function(jn){St.interceptors.request.eject(jn)}),cr==null||cr.forEach(function(jn){St.interceptors.response.eject(jn)});try{var Gr,Ir=Lt==null||(Gr=Lt.errorConfig)===null||Gr===void 0?void 0:Gr.errorHandler;Ir&&Ir(or,xt,Lt)}catch(jn){Rr(jn)}Rr(or)})})},qn=function(){}},96662:function(M,b,e){"use strict";e.d(b,{J:function(){return t}});var i=e(58757),t=i.createContext(null)},64470:function(M,b,e){"use strict";e.d(b,{Mf:function(){return c}});var i=e(58757),t=e(96662),o=e(35667),s=function(){return i.useContext(t.J)},n=function(v){return _jsx(_Fragment,{children:v.accessible?v.children:v.fallback})},c=function(v){var h=s(),m=i.useMemo(function(){var C=function p(S,w,y){var Z,F,R=S.access,T=S;if(!R&&w&&(R=w,T=y),S.unaccessible=!1,typeof R=="string"){var z=h[R];typeof z=="function"?S.unaccessible=!z(T):typeof z=="boolean"?S.unaccessible=!z:typeof z=="undefined"&&(S.unaccessible=!0)}if((Z=S.children)!==null&&Z!==void 0&&Z.length){var A=!S.children.reduce(function(I,$){return p($,R,S),I||!$.unaccessible},!1);A&&(S.unaccessible=!0)}if((F=S.routes)!==null&&F!==void 0&&F.length){var L=!S.routes.reduce(function(I,$){return p($,R,S),I||!$.unaccessible},!1);L&&(S.unaccessible=!0)}return S};return v.map(function(p){return C(p)})},[v.length,h]);return m}},93325:function(M,b,e){"use strict";e.d(b,{_H:function(){return i._H},pD:function(){return T},wv:function(){return i.wv},Kd:function(){return i.Kd},i_:function(){return i.i_},YB:function(){return i.YB}});var i=e(16221),t=e(88205),o=e.n(t),s=e(2657),n=e(63900),c=e.n(n),l=e(62376),v=e.n(l),h=e(58757),m=e(73267),C=e(93430),p=e(85706),S=e(35667),w=["overlayClassName"],y=["globalIconClassName","postLocalesData","onItemClick","icon","style","reload"],Z=function(A){var L=A.overlayClassName,I=v()(A,w);return(0,S.jsx)(m.Z,c()({overlayClassName:L},I))},F=function(A){return A.reduce(function(L,I){return I.lang?_objectSpread(_objectSpread({},L),{},_defineProperty({},I.lang,I)):L},{})},R={"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"bn-BD":{lang:"bn-BD",label:"\u09AC\u09BE\u0982\u09B2\u09BE",icon:"\u{1F1E7}\u{1F1E9}",title:"\u09AD\u09BE\u09B7\u09BE"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"kn-IN",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"\u{1F1F5}\u{1F1F1}",title:"J\u0119zyk"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u9AD4\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},T=function(A){var L,I=A.globalIconClassName,$=A.postLocalesData,B=A.onItemClick,K=A.icon,H=A.style,ie=A.reload,ce=v()(A,y),te=(0,h.useState)(function(){return(0,i.Kd)()}),W=o()(te,2),G=W[0],O=W[1],k=function(Ve){var qe=Ve.key;(0,i.i_)(qe,ie),O((0,i.Kd)())},Y=(0,i.XZ)().map(function(Qe){return R[Qe]||{lang:Qe,label:Qe,icon:"\u{1F310}",title:Qe}}),P=($==null?void 0:$(Y))||Y,Q=B?function(Qe){return B(Qe)}:k,fe={minWidth:"160px"},Ce={marginRight:"8px"},ge={selectedKeys:[G],onClick:Q,items:P.map(function(Qe){return{key:Qe.lang||Qe.key,style:fe,label:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{role:"img","aria-label":(Qe==null?void 0:Qe.label)||"en-US",style:Ce,children:(Qe==null?void 0:Qe.icon)||"\u{1F310}"}),(Qe==null?void 0:Qe.label)||"en-US"]})}})},Me;C.Z.startsWith("5.")||C.Z.startsWith("4.24.")?Me={menu:ge}:C.Z.startsWith("3.")?Me={overlay:(0,S.jsx)(p.Z,{children:ge.items.map(function(Qe){return(0,S.jsx)(p.Z.Item,{onClick:Qe.onClick,children:Qe.label},Qe.key)})})}:Me={overlay:(0,S.jsx)(p.Z,c()({},ge))};var Re=c()({cursor:"pointer",padding:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:18,verticalAlign:"middle"},H);return(0,S.jsx)(Z,c()(c()(c()({},Me),{},{placement:"bottomRight"},ce),{},{children:(0,S.jsx)("span",{className:I,style:Re,children:(0,S.jsx)("i",{className:"anticon",title:(L=P[G])===null||L===void 0?void 0:L.title,children:K||(0,S.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[(0,S.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,S.jsx)("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",className:"css-c4d79v"})]})})})}))}},16221:function(M,b,e){"use strict";e.d(b,{_H:function(){return vn},PZ:function(){return Nr},eU:function(){return I},B:function(){return Yn},wv:function(){return Lo},XZ:function(){return Bo},Mg:function(){return Ua},lw:function(){return to},Kd:function(){return ja},H8:function(){return zr},i_:function(){return qa},YB:function(){return Ln}});var i=e(62376),t=e.n(i),o=e(63900),s=e.n(o),n=e(77016),c=e.n(n),l=e(61697),v=e.n(l),h=e(1769),m=e.n(h),C=e(19881),p=e.n(C),S=e(58757),w=e.t(S,2),y=e(2657),Z=e(10063),F=e.n(Z),R=F()||Z;function T(ot){return ot.displayName||ot.name||"Component"}var z=S.createContext(null),A=z.Consumer,L=z.Provider,I=L,$=z;function B(ot,yt){var be=yt||{},Bt=be.intlPropName,Jt=Bt===void 0?"intl":Bt,Xn=be.forwardRef,Gn=Xn===void 0?!1:Xn,br=be.enforceContext,ta=br===void 0?!0:br,ka=function(Dr){return React.createElement(A,null,function(wr){return ta&&invariantIntlContext(wr),React.createElement(ot,Object.assign({},Dr,_defineProperty({},Jt,wr),{ref:Gn?Dr.forwardedRef:null}))})};return ka.displayName="injectIntl(".concat(T(ot),")"),ka.WrappedComponent=ot,R(Gn?React.forwardRef(function(kr,Dr){return React.createElement(ka,Object.assign({},kr,{forwardedRef:Dr}))}):ka,ot)}var K;(function(ot){ot[ot.literal=0]="literal",ot[ot.argument=1]="argument",ot[ot.number=2]="number",ot[ot.date=3]="date",ot[ot.time=4]="time",ot[ot.select=5]="select",ot[ot.plural=6]="plural",ot[ot.pound=7]="pound"})(K||(K={}));function H(ot){return ot.type===K.literal}function ie(ot){return ot.type===K.argument}function ce(ot){return ot.type===K.number}function te(ot){return ot.type===K.date}function W(ot){return ot.type===K.time}function G(ot){return ot.type===K.select}function O(ot){return ot.type===K.plural}function k(ot){return ot.type===K.pound}function Y(ot){return!!(ot&&typeof ot=="object"&&ot.type===0)}function P(ot){return!!(ot&&typeof ot=="object"&&ot.type===1)}function Q(ot){return{type:K.literal,value:ot}}function fe(ot,yt){return{type:K.number,value:ot,style:yt}}var Ce=function(){var ot=function(yt,be){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Jt){Bt.__proto__=Jt}||function(Bt,Jt){for(var Xn in Jt)Jt.hasOwnProperty(Xn)&&(Bt[Xn]=Jt[Xn])},ot(yt,be)};return function(yt,be){ot(yt,be);function Bt(){this.constructor=yt}yt.prototype=be===null?Object.create(be):(Bt.prototype=be.prototype,new Bt)}}(),ge=function(){return ge=Object.assign||function(ot){for(var yt,be=1,Bt=arguments.length;be0){for(wr=1,sr=1;wrxo&&(xo=Et,ll=[]),ll.push(Ne))}function Tl(Ne,rt){return new Me(Ne,[],"",rt)}function rs(Ne,rt,Rt){return new Me(Me.buildMessage(Ne,rt),Ne,rt,Rt)}function dl(){var Ne;return Ne=fl(),Ne}function fl(){var Ne,rt;for(Ne=[],rt=Ul();rt!==be;)Ne.push(rt),rt=Ul();return Ne}function Ul(){var Ne;return Ne=Lu(),Ne===be&&(Ne=Ho(),Ne===be&&(Ne=eu(),Ne===be&&(Ne=tu(),Ne===be&&(Ne=ys(),Ne===be&&(Ne=ql()))))),Ne}function Sl(){var Ne,rt,Rt;if(Ne=Et,rt=[],Rt=Fn(),Rt===be&&(Rt=tr(),Rt===be&&(Rt=Rn())),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Fn(),Rt===be&&(Rt=tr(),Rt===be&&(Rt=Rn()));else rt=be;return rt!==be&&(No=Ne,rt=Xn(rt)),Ne=rt,Ne}function Lu(){var Ne,rt;return Ne=Et,rt=Sl(),rt!==be&&(No=Ne,rt=Gn(rt)),Ne=rt,Ne}function ql(){var Ne,rt;return Ne=Et,ot.charCodeAt(Et)===35?(rt=br,Et++):(rt=be,xr===0&&ba(ta)),rt!==be&&(No=Ne,rt=ka()),Ne=rt,Ne}function Ho(){var Ne,rt,Rt,Ut,ln,mn;return xr++,Ne=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ge(),Rt!==be?(Ut=Ur(),Ut!==be?(ln=Ge(),ln!==be?(ot.charCodeAt(Et)===125?(mn=sr,Et++):(mn=be,xr===0&&ba(dr)),mn!==be?(No=Ne,rt=jr(Ut),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),xr--,Ne===be&&(rt=be,xr===0&&ba(kr)),Ne}function fu(){var Ne,rt,Rt,Ut,ln;if(xr++,Ne=Et,rt=[],Rt=Et,Ut=Et,xr++,ln=tt(),ln===be&&(co.test(ot.charAt(Et))?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Qa))),xr--,ln===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Tt)),ln!==be?(Ut=[Ut,ln],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Et,Ut=Et,xr++,ln=tt(),ln===be&&(co.test(ot.charAt(Et))?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Qa))),xr--,ln===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Tt)),ln!==be?(Ut=[Ut,ln],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be);else rt=be;return rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,xr--,Ne===be&&(rt=be,xr===0&&ba(va)),Ne}function El(){var Ne,rt,Rt;return xr++,Ne=Et,ot.charCodeAt(Et)===47?(rt=sn,Et++):(rt=be,xr===0&&ba(An)),rt!==be?(Rt=fu(),Rt!==be?(No=Ne,rt=_n(Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),xr--,Ne===be&&(rt=be,xr===0&&ba(Kt)),Ne}function Es(){var Ne,rt,Rt,Ut,ln;if(xr++,Ne=Et,rt=Ge(),rt!==be)if(Rt=fu(),Rt!==be){for(Ut=[],ln=El();ln!==be;)Ut.push(ln),ln=El();Ut!==be?(No=Ne,rt=Er(Rt,Ut),Ne=rt):(Et=Ne,Ne=be)}else Et=Ne,Ne=be;else Et=Ne,Ne=be;return xr--,Ne===be&&(rt=be,xr===0&&ba(fr)),Ne}function Ws(){var Ne,rt,Rt;if(Ne=Et,rt=[],Rt=Es(),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Es();else rt=be;return rt!==be&&(No=Ne,rt=wn(rt)),Ne=rt,Ne}function vl(){var Ne,rt,Rt;return Ne=Et,ot.substr(Et,2)===vr?(rt=vr,Et+=2):(rt=be,xr===0&&ba(Ar)),rt!==be?(Rt=Ws(),Rt!==be?(No=Ne,rt=ia(Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne===be&&(Ne=Et,No=Et,rt=na(),rt?rt=void 0:rt=be,rt!==be?(Rt=Sl(),Rt!==be?(No=Ne,rt=Wa(Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)),Ne}function It(){var Ne,rt,Rt,Ut,ln,mn,Sn,un,$r,Qr,Sa,ua,Ia;return Ne=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ge(),Rt!==be?(Ut=Ur(),Ut!==be?(ln=Ge(),ln!==be?(ot.charCodeAt(Et)===44?(mn=Eo,Et++):(mn=be,xr===0&&ba(Ro)),mn!==be?(Sn=Ge(),Sn!==be?(ot.substr(Et,6)===Ka?(un=Ka,Et+=6):(un=be,xr===0&&ba(To)),un!==be?($r=Ge(),$r!==be?(Qr=Et,ot.charCodeAt(Et)===44?(Sa=Eo,Et++):(Sa=be,xr===0&&ba(Ro)),Sa!==be?(ua=Ge(),ua!==be?(Ia=vl(),Ia!==be?(Sa=[Sa,ua,Ia],Qr=Sa):(Et=Qr,Qr=be)):(Et=Qr,Qr=be)):(Et=Qr,Qr=be),Qr===be&&(Qr=null),Qr!==be?(Sa=Ge(),Sa!==be?(ot.charCodeAt(Et)===125?(ua=sr,Et++):(ua=be,xr===0&&ba(dr)),ua!==be?(No=Ne,rt=vo(Ut,un,Qr),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne}function Pi(){var Ne,rt,Rt,Ut;if(Ne=Et,ot.charCodeAt(Et)===39?(rt=qr,Et++):(rt=be,xr===0&&ba(Na)),rt!==be){if(Rt=[],Ut=Fn(),Ut===be&&(Oo.test(ot.charAt(Et))?(Ut=ot.charAt(Et),Et++):(Ut=be,xr===0&&ba(oi))),Ut!==be)for(;Ut!==be;)Rt.push(Ut),Ut=Fn(),Ut===be&&(Oo.test(ot.charAt(Et))?(Ut=ot.charAt(Et),Et++):(Ut=be,xr===0&&ba(oi)));else Rt=be;Rt!==be?(ot.charCodeAt(Et)===39?(Ut=qr,Et++):(Ut=be,xr===0&&ba(Na)),Ut!==be?(rt=[rt,Rt,Ut],Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)}else Et=Ne,Ne=be;if(Ne===be)if(Ne=[],rt=Fn(),rt===be&&(di.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(go))),rt!==be)for(;rt!==be;)Ne.push(rt),rt=Fn(),rt===be&&(di.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(go)));else Ne=be;return Ne}function jl(){var Ne,rt;if(Ne=[],Oi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(Li)),rt!==be)for(;rt!==be;)Ne.push(rt),Oi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(Li));else Ne=be;return Ne}function Ji(){var Ne,rt,Rt,Ut;if(Ne=Et,rt=Et,Rt=[],Ut=Pi(),Ut===be&&(Ut=jl()),Ut!==be)for(;Ut!==be;)Rt.push(Ut),Ut=Pi(),Ut===be&&(Ut=jl());else Rt=be;return Rt!==be?rt=ot.substring(rt,Et):rt=Rt,rt!==be&&(No=Ne,rt=ii(rt)),Ne=rt,Ne}function Go(){var Ne,rt,Rt;return Ne=Et,ot.substr(Et,2)===vr?(rt=vr,Et+=2):(rt=be,xr===0&&ba(Ar)),rt!==be?(Rt=Ji(),Rt!==be?(No=Ne,rt=ia(Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne===be&&(Ne=Et,No=Et,rt=Di(),rt?rt=void 0:rt=be,rt!==be?(Rt=Sl(),Rt!==be?(No=Ne,rt=Wa(Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)),Ne}function bo(){var Ne,rt,Rt,Ut,ln,mn,Sn,un,$r,Qr,Sa,ua,Ia;return Ne=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ge(),Rt!==be?(Ut=Ur(),Ut!==be?(ln=Ge(),ln!==be?(ot.charCodeAt(Et)===44?(mn=Eo,Et++):(mn=be,xr===0&&ba(Ro)),mn!==be?(Sn=Ge(),Sn!==be?(ot.substr(Et,4)===$i?(un=$i,Et+=4):(un=be,xr===0&&ba(wi)),un===be&&(ot.substr(Et,4)===Ti?(un=Ti,Et+=4):(un=be,xr===0&&ba(ns))),un!==be?($r=Ge(),$r!==be?(Qr=Et,ot.charCodeAt(Et)===44?(Sa=Eo,Et++):(Sa=be,xr===0&&ba(Ro)),Sa!==be?(ua=Ge(),ua!==be?(Ia=Go(),Ia!==be?(Sa=[Sa,ua,Ia],Qr=Sa):(Et=Qr,Qr=be)):(Et=Qr,Qr=be)):(Et=Qr,Qr=be),Qr===be&&(Qr=null),Qr!==be?(Sa=Ge(),Sa!==be?(ot.charCodeAt(Et)===125?(ua=sr,Et++):(ua=be,xr===0&&ba(dr)),ua!==be?(No=Ne,rt=vo(Ut,un,Qr),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne}function eu(){var Ne;return Ne=It(),Ne===be&&(Ne=bo()),Ne}function tu(){var Ne,rt,Rt,Ut,ln,mn,Sn,un,$r,Qr,Sa,ua,Ia,jo,fo,Aa;if(Ne=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be)if(Rt=Ge(),Rt!==be)if(Ut=Ur(),Ut!==be)if(ln=Ge(),ln!==be)if(ot.charCodeAt(Et)===44?(mn=Eo,Et++):(mn=be,xr===0&&ba(Ro)),mn!==be)if(Sn=Ge(),Sn!==be)if(ot.substr(Et,6)===Fi?(un=Fi,Et+=6):(un=be,xr===0&&ba(ro)),un===be&&(ot.substr(Et,13)===Va?(un=Va,Et+=13):(un=be,xr===0&&ba(gi))),un!==be)if($r=Ge(),$r!==be)if(ot.charCodeAt(Et)===44?(Qr=Eo,Et++):(Qr=be,xr===0&&ba(Ro)),Qr!==be)if(Sa=Ge(),Sa!==be)if(ua=Et,ot.substr(Et,7)===si?(Ia=si,Et+=7):(Ia=be,xr===0&&ba(Zo)),Ia!==be?(jo=Ge(),jo!==be?(fo=cn(),fo!==be?(Ia=[Ia,jo,fo],ua=Ia):(Et=ua,ua=be)):(Et=ua,ua=be)):(Et=ua,ua=be),ua===be&&(ua=null),ua!==be)if(Ia=Ge(),Ia!==be){if(jo=[],fo=Ri(),fo!==be)for(;fo!==be;)jo.push(fo),fo=Ri();else jo=be;jo!==be?(fo=Ge(),fo!==be?(ot.charCodeAt(Et)===125?(Aa=sr,Et++):(Aa=be,xr===0&&ba(dr)),Aa!==be?(No=Ne,rt=Yo(Ut,un,ua,jo),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)}else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;return Ne}function ys(){var Ne,rt,Rt,Ut,ln,mn,Sn,un,$r,Qr,Sa,ua,Ia,jo;if(Ne=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be)if(Rt=Ge(),Rt!==be)if(Ut=Ur(),Ut!==be)if(ln=Ge(),ln!==be)if(ot.charCodeAt(Et)===44?(mn=Eo,Et++):(mn=be,xr===0&&ba(Ro)),mn!==be)if(Sn=Ge(),Sn!==be)if(ot.substr(Et,6)===Ni?(un=Ni,Et+=6):(un=be,xr===0&&ba(Xi)),un!==be)if($r=Ge(),$r!==be)if(ot.charCodeAt(Et)===44?(Qr=Eo,Et++):(Qr=be,xr===0&&ba(Ro)),Qr!==be)if(Sa=Ge(),Sa!==be){if(ua=[],Ia=Ii(),Ia!==be)for(;Ia!==be;)ua.push(Ia),Ia=Ii();else ua=be;ua!==be?(Ia=Ge(),Ia!==be?(ot.charCodeAt(Et)===125?(jo=sr,Et++):(jo=be,xr===0&&ba(dr)),jo!==be?(No=Ne,rt=Gi(Ut,ua),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)}else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;else Et=Ne,Ne=be;return Ne}function gl(){var Ne,rt,Rt,Ut;return Ne=Et,rt=Et,ot.charCodeAt(Et)===61?(Rt=Is,Et++):(Rt=be,xr===0&&ba(hs)),Rt!==be?(Ut=cn(),Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,Ne===be&&(Ne=Vn()),Ne}function Ii(){var Ne,rt,Rt,Ut,ln,mn,Sn,un;return Ne=Et,rt=Ge(),rt!==be?(Rt=Vn(),Rt!==be?(Ut=Ge(),Ut!==be?(ot.charCodeAt(Et)===123?(ln=Dr,Et++):(ln=be,xr===0&&ba(wr)),ln!==be?(No=Et,mn=Ns(Rt),mn?mn=void 0:mn=be,mn!==be?(Sn=fl(),Sn!==be?(ot.charCodeAt(Et)===125?(un=sr,Et++):(un=be,xr===0&&ba(dr)),un!==be?(No=Ne,rt=bl(Rt,Sn),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne}function Ri(){var Ne,rt,Rt,Ut,ln,mn,Sn,un;return Ne=Et,rt=Ge(),rt!==be?(Rt=gl(),Rt!==be?(Ut=Ge(),Ut!==be?(ot.charCodeAt(Et)===123?(ln=Dr,Et++):(ln=be,xr===0&&ba(wr)),ln!==be?(No=Et,mn=bn(Rt),mn?mn=void 0:mn=be,mn!==be?(Sn=fl(),Sn!==be?(ot.charCodeAt(Et)===125?(un=sr,Et++):(un=be,xr===0&&ba(dr)),un!==be?(No=Ne,rt=Mr(Rt,Sn),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),Ne}function tt(){var Ne,rt;return xr++,ur.test(ot.charAt(Et))?(Ne=ot.charAt(Et),Et++):(Ne=be,xr===0&&ba(Cr)),xr--,Ne===be&&(rt=be,xr===0&&ba(er)),Ne}function $e(){var Ne,rt;return xr++,ha.test(ot.charAt(Et))?(Ne=ot.charAt(Et),Et++):(Ne=be,xr===0&&ba(da)),xr--,Ne===be&&(rt=be,xr===0&&ba(ca)),Ne}function Ge(){var Ne,rt,Rt;for(xr++,Ne=Et,rt=[],Rt=tt();Rt!==be;)rt.push(Rt),Rt=tt();return rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,xr--,Ne===be&&(rt=be,xr===0&&ba(_o)),Ne}function cn(){var Ne,rt,Rt;return xr++,Ne=Et,ot.charCodeAt(Et)===45?(rt=Xo,Et++):(rt=be,xr===0&&ba(_i)),rt===be&&(rt=null),rt!==be?(Rt=lr(),Rt!==be?(No=Ne,rt=bs(rt,Rt),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be),xr--,Ne===be&&(rt=be,xr===0&&ba(li)),Ne}function qt(){var Ne,rt;return xr++,ot.charCodeAt(Et)===39?(Ne=qr,Et++):(Ne=be,xr===0&&ba(Na)),xr--,Ne===be&&(rt=be,xr===0&&ba(ss)),Ne}function Fn(){var Ne,rt;return xr++,Ne=Et,ot.substr(Et,2)===us?(rt=us,Et+=2):(rt=be,xr===0&&ba(ri)),rt!==be&&(No=Ne,rt=$l()),Ne=rt,xr--,Ne===be&&(rt=be,xr===0&&ba(As)),Ne}function tr(){var Ne,rt,Rt,Ut,ln,mn;if(Ne=Et,ot.charCodeAt(Et)===39?(rt=qr,Et++):(rt=be,xr===0&&ba(Na)),rt!==be)if(Rt=nr(),Rt!==be){for(Ut=Et,ln=[],ot.substr(Et,2)===us?(mn=us,Et+=2):(mn=be,xr===0&&ba(ri)),mn===be&&(Oo.test(ot.charAt(Et))?(mn=ot.charAt(Et),Et++):(mn=be,xr===0&&ba(oi)));mn!==be;)ln.push(mn),ot.substr(Et,2)===us?(mn=us,Et+=2):(mn=be,xr===0&&ba(ri)),mn===be&&(Oo.test(ot.charAt(Et))?(mn=ot.charAt(Et),Et++):(mn=be,xr===0&&ba(oi)));ln!==be?Ut=ot.substring(Ut,Et):Ut=ln,Ut!==be?(ot.charCodeAt(Et)===39?(ln=qr,Et++):(ln=be,xr===0&&ba(Na)),ln===be&&(ln=null),ln!==be?(No=Ne,rt=ol(Rt,Ut),Ne=rt):(Et=Ne,Ne=be)):(Et=Ne,Ne=be)}else Et=Ne,Ne=be;else Et=Ne,Ne=be;return Ne}function Rn(){var Ne,rt,Rt,Ut;return Ne=Et,rt=Et,ot.length>Et?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Tt)),Rt!==be?(No=Et,Ut=il(Rt),Ut?Ut=void 0:Ut=be,Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt===be&&(ot.charCodeAt(Et)===10?(rt=Fl,Et++):(rt=be,xr===0&&ba(Qs))),rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,Ne}function nr(){var Ne,rt,Rt,Ut;return Ne=Et,rt=Et,ot.length>Et?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Tt)),Rt!==be?(No=Et,Ut=Xs(Rt),Ut?Ut=void 0:Ut=be,Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,Ne}function Ur(){var Ne,rt;return xr++,Ne=Et,rt=lr(),rt===be&&(rt=Vn()),rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,xr--,Ne===be&&(rt=be,xr===0&&ba(Os)),Ne}function lr(){var Ne,rt,Rt,Ut,ln;if(xr++,Ne=Et,ot.charCodeAt(Et)===48?(rt=sl,Et++):(rt=be,xr===0&&ba(Hl)),rt!==be&&(No=Ne,rt=vs()),Ne=rt,Ne===be){if(Ne=Et,rt=Et,Ss.test(ot.charAt(Et))?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Ds)),Rt!==be){for(Ut=[],Rs.test(ot.charAt(Et))?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Zl));ln!==be;)Ut.push(ln),Rs.test(ot.charAt(Et))?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Zl));Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)}else Et=rt,rt=be;rt!==be&&(No=Ne,rt=Js(rt)),Ne=rt}return xr--,Ne===be&&(rt=be,xr===0&&ba(Us)),Ne}function Vn(){var Ne,rt,Rt,Ut,ln;if(xr++,Ne=Et,rt=[],Rt=Et,Ut=Et,xr++,ln=tt(),ln===be&&(ln=$e()),xr--,ln===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Tt)),ln!==be?(Ut=[Ut,ln],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Et,Ut=Et,xr++,ln=tt(),ln===be&&(ln=$e()),xr--,ln===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(ln=ot.charAt(Et),Et++):(ln=be,xr===0&&ba(Tt)),ln!==be?(Ut=[Ut,ln],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be);else rt=be;return rt!==be?Ne=ot.substring(Ne,Et):Ne=rt,xr--,Ne===be&&(rt=be,xr===0&&ba(cs)),Ne}var Un=["root"];function wa(){return Un.length>1}function ya(){return Un[Un.length-1]==="plural"}function Qt(){return yt&&yt.captureLocation?{location:ws()}:{}}if(qs=Jt(),qs!==be&&Et===ot.length)return qs;throw qs!==be&&Et1)throw new RangeError("Fraction-precision stems only accept a single optional option");Jt.stem.replace(N,function(Gn,br,ta){return Gn==="."?yt.maximumFractionDigits=0:ta==="+"?yt.minimumFractionDigits=ta.length:br[0]==="#"?yt.maximumFractionDigits=br.length:(yt.minimumFractionDigits=br.length,yt.maximumFractionDigits=br.length+(typeof ta=="string"?ta.length:0)),""}),Jt.options.length&&(yt=Fe(Fe({},yt),ee(Jt.options[0])));continue}if(D.test(Jt.stem)){yt=Fe(Fe({},yt),ee(Jt.stem));continue}var Xn=se(Jt.stem);Xn&&(yt=Fe(Fe({},yt),Xn))}return yt}var Ie=function(){var ot=function(yt,be){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Jt){Bt.__proto__=Jt}||function(Bt,Jt){for(var Xn in Jt)Jt.hasOwnProperty(Xn)&&(Bt[Xn]=Jt[Xn])},ot(yt,be)};return function(yt,be){ot(yt,be);function Bt(){this.constructor=yt}yt.prototype=be===null?Object.create(be):(Bt.prototype=be.prototype,new Bt)}}(),Se=function(){for(var ot=0,yt=0,be=arguments.length;yt(br("fetch",Zs(Na({},Xe),{endTimestamp:Date.now(),response:pt})),pt),pt=>{throw br("fetch",Zs(Na({},Xe),{endTimestamp:Date.now(),error:pt})),pt})}})}function kr(q,_){return!!q&&typeof q=="object"&&!!q[_]}function Dr(q){return typeof q=="string"?q:q?kr(q,"url")?q.url:q.toString?q.toString():"":""}function wr(q){if(q.length===0)return{method:"GET",url:""};if(q.length===2){const[me,Oe]=q;return{url:Dr(me),method:kr(Oe,"method")?String(Oe.method).toUpperCase():"GET"}}const _=q[0];return{url:Dr(_),method:kr(_,"method")?String(_.method).toUpperCase():"GET"}}function sr(){if(!("XMLHttpRequest"in yt))return;const q=XMLHttpRequest.prototype;ve(q,"open",function(_){return function(...me){const Oe=me[1],Xe=this[be]={method:Ve(me[0])?me[0].toUpperCase():me[0],url:me[1],request_headers:{}};Ve(Oe)&&Xe.method==="POST"&&Oe.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const pt=()=>{const Ht=this[be];if(Ht&&this.readyState===4){try{Ht.status_code=this.status}catch(on){}br("xhr",{args:me,endTimestamp:Date.now(),startTimestamp:Date.now(),xhr:this})}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?ve(this,"onreadystatechange",function(Ht){return function(...on){return pt(),Ht.apply(this,on)}}):this.addEventListener("readystatechange",pt),ve(this,"setRequestHeader",function(Ht){return function(...on){const[Sn,Xn]=on,_r=this[be];return _r&&(_r.request_headers[Sn.toLowerCase()]=Xn),Ht.apply(this,on)}}),_.apply(this,me)}}),ve(q,"send",function(_){return function(...me){const Oe=this[be];return Oe&&me[0]!==void 0&&(Oe.body=me[0]),br("xhr",{args:me,startTimestamp:Date.now(),xhr:this}),_.apply(this,me)}})}let dr;function Tr(){if(!ot())return;const q=yt.onpopstate;yt.onpopstate=function(...me){const Oe=yt.location.href,Xe=dr;if(dr=Oe,br("history",{from:Xe,to:Oe}),q)try{return q.apply(this,me)}catch(pt){}};function _(me){return function(...Oe){const Xe=Oe.length>2?Oe[2]:void 0;if(Xe){const pt=dr,Ht=String(Xe);dr=Ht,br("history",{from:pt,to:Ht})}return me.apply(this,Oe)}}ve(yt.history,"pushState",_),ve(yt.history,"replaceState",_)}const ga=1e3;let fo,Xa;function Tt(q,_){if(!q||q.type!==_.type)return!0;try{if(q.target!==_.target)return!0}catch(me){}return!1}function Kt(q){if(q.type!=="keypress")return!1;try{const _=q.target;if(!_||!_.tagName)return!0;if(_.tagName==="INPUT"||_.tagName==="TEXTAREA"||_.isContentEditable)return!1}catch(_){}return!0}function ln(q,_=!1){return me=>{if(!me||Xa===me||Kt(me))return;const Oe=me.type==="keypress"?"input":me.type;fo===void 0?(q({event:me,name:Oe,global:_}),Xa=me):Tt(Xa,me)&&(q({event:me,name:Oe,global:_}),Xa=me),clearTimeout(fo),fo=yt.setTimeout(()=>{fo=void 0},ga)}}function An(){if(!("document"in yt))return;const q=br.bind(null,"dom"),_=ln(q,!0);yt.document.addEventListener("click",_,!1),yt.document.addEventListener("keypress",_,!1),["EventTarget","Node"].forEach(me=>{const Oe=yt[me]&&yt[me].prototype;!Oe||!Oe.hasOwnProperty||!Oe.hasOwnProperty("addEventListener")||(ve(Oe,"addEventListener",function(Xe){return function(pt,Ht,on){if(pt==="click"||pt=="keypress")try{const Sn=this,Xn=Sn.__sentry_instrumentation_handlers__=Sn.__sentry_instrumentation_handlers__||{},_r=Xn[pt]=Xn[pt]||{refCount:0};if(!_r.handler){const Hr=ln(q);_r.handler=Hr,Xe.call(this,pt,Hr,on)}_r.refCount++}catch(Sn){}return Xe.call(this,pt,Ht,on)}}),ve(Oe,"removeEventListener",function(Xe){return function(pt,Ht,on){if(pt==="click"||pt=="keypress")try{const Sn=this,Xn=Sn.__sentry_instrumentation_handlers__||{},_r=Xn[pt];_r&&(_r.refCount--,_r.refCount<=0&&(Xe.call(this,pt,_r.handler,on),_r.handler=void 0,delete Xn[pt]),Object.keys(Xn).length===0&&delete Sn.__sentry_instrumentation_handlers__)}catch(Sn){}return Xe.call(this,pt,Ht,on)}}))})}let _n=null;function fr(){_n=yt.onerror,yt.onerror=function(q,_,me,Oe,Xe){return br("error",{column:Oe,error:Xe,line:me,msg:q,url:_}),_n&&!_n.__SENTRY_LOADER__?_n.apply(this,arguments):!1},yt.onerror.__SENTRY_INSTRUMENTED__=!0}let Er=null;function wn(){Er=yt.onunhandledrejection,yt.onunhandledrejection=function(q){return br("unhandledrejection",q),Er&&!Er.__SENTRY_LOADER__?Er.apply(this,arguments):!0},yt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function vr(){const q=typeof WeakSet=="function",_=q?new WeakSet:[];function me(Xe){if(q)return _.has(Xe)?!0:(_.add(Xe),!1);for(let pt=0;pt<_.length;pt++)if(_[pt]===Xe)return!0;return _.push(Xe),!1}function Oe(Xe){if(q)_.delete(Xe);else for(let pt=0;pt<_.length;pt++)if(_[pt]===Xe){_.splice(pt,1);break}}return[me,Oe]}function Ar(q,_=100,me=1/0){try{return ta("",q,_,me)}catch(Oe){return{ERROR:`**non-serializable** (${Oe})`}}}function oa(q,_=3,me=102400){const Oe=Ar(q,_);return Ga(Oe)>me?oa(q,_-1,me):Oe}function ta(q,_,me=1/0,Oe=1/0,Xe=vr()){const[pt,Ht]=Xe;if(_==null||["number","boolean","string"].includes(typeof _)&&!et(_))return _;const on=Wa(q,_);if(!on.startsWith("[object "))return on;if(_.__sentry_skip_normalization__)return _;const Sn=typeof _.__sentry_override_normalization_depth__=="number"?_.__sentry_override_normalization_depth__:me;if(Sn===0)return on.replace("object ","");if(pt(_))return"[Circular ~]";const Xn=_;if(Xn&&typeof Xn.toJSON=="function")try{const ja=Xn.toJSON();return ta("",ja,Sn-1,Oe,Xe)}catch(ja){}const _r=Array.isArray(_)?[]:{};let Hr=0;const ma=Ae(_);for(const ja in ma){if(!Object.prototype.hasOwnProperty.call(ma,ja))continue;if(Hr>=Oe){_r[ja]="[MaxProperties ~]";break}const wa=ma[ja];_r[ja]=ta(ja,wa,Sn-1,Oe,Xe),Hr++}return Ht(_),_r}function Wa(q,_){try{if(q==="domain"&&_&&typeof _=="object"&&_._events)return"[Domain]";if(q==="domainEmitter")return"[DomainEmitter]";if(typeof e.g!="undefined"&&_===e.g)return"[Global]";if(typeof window!="undefined"&&_===window)return"[Window]";if(typeof document!="undefined"&&_===document)return"[Document]";if(He(_))return"[SyntheticEvent]";if(typeof _=="number"&&_!==_)return"[NaN]";if(typeof _=="function")return`[Function: ${zr(_)}]`;if(typeof _=="symbol")return`[${String(_)}]`;if(typeof _=="bigint")return`[BigInt: ${String(_)}]`;const me=bo(_);return/^HTML(\w*)Element$/.test(me)?`[HTMLElement: ${me}]`:`[object ${me}]`}catch(me){return`**non-serializable** (${me})`}}function bo(q){const _=Object.getPrototypeOf(q);return _?_.constructor.name:"null prototype"}function No(q){return~-encodeURI(q).split(/%..|./).length}function Ga(q){return No(JSON.stringify(q))}function To(q,_){const me=Ra(q,_),Oe={type:_&&_.name,value:fi(_)};return me.length&&(Oe.stacktrace={frames:me}),Oe.type===void 0&&Oe.value===""&&(Oe.value="Unrecoverable error caught"),Oe}function vo(q,_,me,Oe){const pt=On().getClient(),Ht=pt&&pt.getOptions().normalizeDepth,on={exception:{values:[{type:wt(_)?_.constructor.name:Oe?"UnhandledRejection":"Error",value:Di(_,{isUnhandledRejection:Oe})}]},extra:{__serialized__:oa(_,Ht)}};if(me){const Sn=Ra(q,me);Sn.length&&(on.exception.values[0].stacktrace={frames:Sn})}return on}function Jr(q,_){return{exception:{values:[To(q,_)]}}}function Ra(q,_){const me=_.stacktrace||_.stack||"",Oe=ai(_);try{return q(me,Oe)}catch(Xe){}return[]}const Ao=/Minified React error #\d+;/i;function ai(q){if(q){if(typeof q.framesToPop=="number")return q.framesToPop;if(Ao.test(q.message))return 1}return 0}function fi(q){const _=q&&q.message;return _?_.error&&typeof _.error.message=="string"?_.error.message:_:"No error message"}function go(q,_,me,Oe){const Xe=me&&me.syntheticException||void 0,pt=Li(q,_,Xe,Oe);return addExceptionMechanism(pt),pt.level="error",me&&me.event_id&&(pt.event_id=me.event_id),resolvedSyncPromise(pt)}function Oi(q,_,me="info",Oe,Xe){const pt=Oe&&Oe.syntheticException||void 0,Ht=oi(q,_,pt,Xe);return Ht.level=me,Oe&&Oe.event_id&&(Ht.event_id=Oe.event_id),resolvedSyncPromise(Ht)}function Li(q,_,me,Oe,Xe){let pt;if(Me(_)&&_.error)return Jr(q,_.error);if(Ne(_)||Qe(_)){const Ht=_;if("stack"in _)pt=Jr(q,_);else{const on=Ht.name||(Ne(Ht)?"DOMError":"DOMException"),Sn=Ht.message?`${on}: ${Ht.message}`:on;pt=oi(q,Sn,me,Oe),$(pt,Sn)}return"code"in Ht&&(pt.tags=Zs(Na({},pt.tags),{"DOMException.code":`${Ht.code}`})),pt}return Ce(_)?Jr(q,_):Mt(_)||wt(_)?(pt=vo(q,_,me,Xe),B(pt,{synthetic:!0}),pt):(pt=oi(q,_,me,Oe),$(pt,`${_}`,void 0),B(pt,{synthetic:!0}),pt)}function oi(q,_,me,Oe){const Xe={message:_};if(Oe&&me){const pt=Ra(q,me);pt.length&&(Xe.exception={values:[{value:_,stacktrace:{frames:pt}}]})}return Xe}function Di(q,{isUnhandledRejection:_}){const me=Be(q),Oe=_?"promise rejection":"exception";return Me(q)?`Event \`ErrorEvent\` captured as ${Oe} with message \`${q.message}\``:wt(q)?`Event \`${Fi(q)}\` (type=${q.type}) captured as ${Oe}`:`Object captured as ${Oe} with keys: ${me}`}function Fi(q){try{const _=Object.getPrototypeOf(q);return _?_.constructor.name:void 0}catch(_){}}class wi{static __initStatic(){this.id="GlobalHandlers"}constructor(_){this.name=wi.id,this._options=Na({onerror:!0,onunhandledrejection:!0},_),this._installFunc={onerror:Ti,onunhandledrejection:ns}}setupOnce(){Error.stackTraceLimit=50;const _=this._options;for(const me in _){const Oe=this._installFunc[me];Oe&&_[me]&&(mi(me),Oe(),this._installFunc[me]=void 0)}}}wi.__initStatic();function Ti(){Kn("error",q=>{const[_,me,Oe]=Zo();if(!_.getIntegration(wi))return;const{msg:Xe,url:pt,line:Ht,column:on,error:Sn}=q;if(Kr()||Sn&&Sn.__sentry_own_request__)return;const Xn=Sn===void 0&&Ve(Xe)?ao(Xe,pt,Ht,on):Ka(Li(me,Sn||Xe,void 0,Oe,!1),pt,Ht,on);Xn.level="error",ii(_,Sn,Xn,"onerror")})}function ns(){Kn("unhandledrejection",q=>{const[_,me,Oe]=Zo();if(!_.getIntegration(wi))return;let Xe=q;try{"reason"in q?Xe=q.reason:"detail"in q&&"reason"in q.detail&&(Xe=q.detail.reason)}catch(Ht){}if(Kr()||Xe&&Xe.__sentry_own_request__)return!0;const pt=qe(Xe)?Zi(Xe):Li(me,Xe,void 0,Oe,!0);pt.level="error",ii(_,Xe,pt,"onunhandledrejection")})}function Zi(q){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(q)}`}]}}}function ao(q,_,me,Oe){const Xe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let pt=Me(q)?q.message:q,Ht="Error";const on=pt.match(Xe);return on&&(Ht=on[1],pt=on[2]),Ka({exception:{values:[{type:Ht,value:pt}]}},_,me,Oe)}function Ka(q,_,me,Oe){const Xe=q.exception=q.exception||{},pt=Xe.values=Xe.values||[],Ht=pt[0]=pt[0]||{},on=Ht.stacktrace=Ht.stacktrace||{},Sn=on.frames=on.frames||[],Xn=isNaN(parseInt(Oe,10))?void 0:Oe,_r=isNaN(parseInt(me,10))?void 0:me,Hr=Ve(_)&&_.length>0?_:re();return Sn.length===0&&Sn.push({colno:Xn,filename:Hr,function:"?",in_app:!0,lineno:_r}),q}function mi(q){(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.log(`Global Handler attached: ${q}`)}function ii(q,_,me,Oe){B(me,{handled:!1,type:Oe}),q.captureEvent(me,{originalException:_})}function Zo(){const q=On(),_=q.getClient(),me=_&&_.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[q,me.stackParser,me.attachStacktrace]}const Ko=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class Ni{static __initStatic(){this.id="TryCatch"}constructor(_){this.name=Ni.id,this._options=Na({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},_)}setupOnce(){this._options.setTimeout&&ve(yr,"setTimeout",Ji),this._options.setInterval&&ve(yr,"setInterval",Ji),this._options.requestAnimationFrame&&ve(yr,"requestAnimationFrame",Ki),this._options.XMLHttpRequest&&"XMLHttpRequest"in yr&&ve(XMLHttpRequest.prototype,"send",Is);const _=this._options.eventTarget;_&&(Array.isArray(_)?_:Ko).forEach(hs)}}Ni.__initStatic();function Ji(q){return function(..._){const me=_[0];return _[0]=Xr(me,{mechanism:{data:{function:zr(q)},handled:!0,type:"instrument"}}),q.apply(this,_)}}function Ki(q){return function(_){return q.apply(this,[Xr(_,{mechanism:{data:{function:"requestAnimationFrame",handler:zr(q)},handled:!0,type:"instrument"}})])}}function Is(q){return function(..._){const me=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(Xe=>{Xe in me&&typeof me[Xe]=="function"&&ve(me,Xe,function(pt){const Ht={mechanism:{data:{function:Xe,handler:zr(pt)},handled:!0,type:"instrument"}},on=pe(pt);return on&&(Ht.mechanism.data.handler=zr(on)),Xr(pt,Ht)})}),q.apply(this,_)}}function hs(q){const _=yr,me=_[q]&&_[q].prototype;!me||!me.hasOwnProperty||!me.hasOwnProperty("addEventListener")||(ve(me,"addEventListener",function(Oe){return function(Xe,pt,Ht){try{typeof pt.handleEvent=="function"&&(pt.handleEvent=Xr(pt.handleEvent,{mechanism:{data:{function:"handleEvent",handler:zr(pt),target:q},handled:!0,type:"instrument"}}))}catch(on){}return Oe.apply(this,[Xe,Xr(pt,{mechanism:{data:{function:"addEventListener",handler:zr(pt),target:q},handled:!0,type:"instrument"}}),Ht])}}),ve(me,"removeEventListener",function(Oe){return function(Xe,pt,Ht){const on=pt;try{const Sn=on&&on.__sentry_wrapped__;Sn&&Oe.call(this,Xe,Sn,Ht)}catch(Sn){}return Oe.call(this,Xe,on,Ht)}}))}const Ns=["fatal","error","warning","log","info","debug"];function bl(q){return bn(q)}function bn(q){return q==="warn"?"warning":Ns.includes(q)?q:"log"}function Mr(q){if(!q)return{};const _=q.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!_)return{};const me=_[6]||"",Oe=_[8]||"";return{host:_[4],path:_[5],protocol:_[2],search:me,hash:Oe,relative:_[5]+me+Oe}}function nr(q){return q.split(/[\?#]/,1)[0]}function ur(q){return q.split(/\\?\//).filter(_=>_.length>0&&_!==",").length}function Cr(q){const{protocol:_,host:me,path:Oe}=q,Xe=me&&me.replace(/^.*@/,"[filtered]:[filtered]@").replace(":80","").replace(":443","")||"";return`${_?`${_}://`:""}${Xe}${Oe}`}const ca=1024,pa="Breadcrumbs";class fa{static __initStatic(){this.id=pa}constructor(_){this.name=fa.id,this.options=Na({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},_)}setupOnce(){this.options.console&&Kn("console",si),this.options.dom&&Kn("dom",Ho(this.options.dom)),this.options.xhr&&Kn("xhr",Jo),this.options.fetch&&Kn("fetch",Wi),this.options.history&&Kn("history",bs)}addSentryBreadcrumb(_){this.options.sentry&&On().addBreadcrumb({category:`sentry.${_.type==="transaction"?"transaction":"event"}`,event_id:_.event_id,level:_.level,message:I(_)},{event:_})}}fa.__initStatic();function Ho(q){function _(me){let Oe,Xe=typeof q=="object"?q.serializeAttribute:void 0,pt=typeof q=="object"&&typeof q.maxStringLength=="number"?q.maxStringLength:void 0;pt&&pt>ca&&((typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn(`\`dom.maxStringLength\` cannot exceed ${ca}, but a value of ${pt} was configured. Sentry will use ${ca} instead.`),pt=ca),typeof Xe=="string"&&(Xe=[Xe]);try{const Ht=me.event;Oe=ss(Ht)?se(Ht.target,{keyAttrs:Xe,maxStringLength:pt}):se(Ht,{keyAttrs:Xe,maxStringLength:pt})}catch(Ht){Oe=""}Oe.length!==0&&On().addBreadcrumb({category:`ui.${me.name}`,message:Oe},{event:me.event,name:me.name,global:me.global})}return _}function si(q){for(let me=0;me0?pt.exception.values[pt.exception.values.length-1]:void 0;on&&(pt.exception.values=ol(us(q,_,Xe,Ht.originalException,Oe,pt.exception.values,on,0),me))}function us(q,_,me,Oe,Xe,pt,Ht,on){if(pt.length>=me+1)return pt;let Sn=[...pt];if(Fe(Oe[Xe],Error)){ri(Ht,on);const Xn=q(_,Oe[Xe]),_r=Sn.length;$l(Xn,Xe,_r,on),Sn=us(q,_,me,Oe[Xe],Xe,[Xn,...Sn],Xn,_r)}return Array.isArray(Oe.errors)&&Oe.errors.forEach((Xn,_r)=>{if(Fe(Xn,Error)){ri(Ht,on);const Hr=q(_,Xn),ma=Sn.length;$l(Hr,`errors[${_r}]`,ma,on),Sn=us(q,_,me,Xn,Xe,[Hr,...Sn],Hr,ma)}}),Sn}function ri(q,_){q.mechanism=q.mechanism||{type:"generic",handled:!0},q.mechanism=Zs(Na({},q.mechanism),{is_exception_group:!0,exception_id:_})}function $l(q,_,me,Oe){q.mechanism=q.mechanism||{type:"generic",handled:!0},q.mechanism=Zs(Na({},q.mechanism),{type:"chained",source:_,exception_id:me,parent_id:Oe})}function ol(q,_){return q.map(me=>(me.value&&(me.value=Se(me.value,_)),me))}const il="cause",Fl=5;class Qs{static __initStatic(){this.id="LinkedErrors"}constructor(_={}){this.name=Qs.id,this._key=_.key||il,this._limit=_.limit||Fl}setupOnce(_,me){_((Oe,Xe)=>{const pt=me(),Ht=pt.getClient(),on=pt.getIntegration(Qs);if(!Ht||!on)return Oe;const Sn=Ht.getOptions();return As(To,Sn.stackParser,Sn.maxValueLength,on._key,on._limit,Oe,Xe),Oe})}}Qs.__initStatic();class Xs{static __initStatic(){this.id="HttpContext"}constructor(){this.name=Xs.id}setupOnce(){Ot(_=>{if(On().getIntegration(Xs)){if(!yr.navigator&&!yr.location&&!yr.document)return _;const me=_.request&&_.request.url||yr.location&&yr.location.href,{referrer:Oe}=yr.document||{},{userAgent:Xe}=yr.navigator||{},pt=Na(Na(Na({},_.request&&_.request.headers),Oe&&{Referer:Oe}),Xe&&{"User-Agent":Xe}),Ht=Zs(Na(Na({},_.request),me&&{url:me}),{headers:pt});return Zs(Na({},_),{request:Ht})}return _})}}Xs.__initStatic();class Os{static __initStatic(){this.id="Dedupe"}constructor(){this.name=Os.id}setupOnce(_,me){const Oe=Xe=>{if(Xe.type)return Xe;const pt=me().getIntegration(Os);if(pt){try{if(Us(Xe,pt._previousEvent))return(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(Ht){return pt._previousEvent=Xe}return pt._previousEvent=Xe}return Xe};Oe.id=this.name,_(Oe)}}Os.__initStatic();function Us(q,_){return _?!!(sl(q,_)||Hl(q,_)):!1}function sl(q,_){const me=q.message,Oe=_.message;return!(!me&&!Oe||me&&!Oe||!me&&Oe||me!==Oe||!Ss(q,_)||!vs(q,_))}function Hl(q,_){const me=Ds(_),Oe=Ds(q);return!(!me||!Oe||me.type!==Oe.type||me.value!==Oe.value||!Ss(q,_)||!vs(q,_))}function vs(q,_){let me=Rs(q),Oe=Rs(_);if(!me&&!Oe)return!0;if(me&&!Oe||!me&&Oe||(me=me,Oe=Oe,Oe.length!==me.length))return!1;for(let Xe=0;Xe{_===void 0||_===me||Eo(getCurrentHub())}))}function xr(q){const _=getCurrentHub().getClient();_&&_.captureUserFeedback(q)}var qs=e(10063);const ul="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx";function ws(q){const _=q.match(/^([^.]+)/);return _!==null&&parseInt(_[0])>=17}const cl="unknown",wl={componentStack:null,error:null,eventId:null};function Ro(q,_){const me=new WeakMap;function Oe(Xe,pt){if(!me.has(Xe)){if(Xe.cause)return me.set(Xe,!0),Oe(Xe.cause,pt);Xe.cause=pt}}Oe(q,_)}class ji extends y.Component{constructor(_){super(_),ji.prototype.__init.call(this),this.state=wl,this._openFallbackReportDialog=!0;const me=On().getClient();me&&me.on&&_.showDialog&&(this._openFallbackReportDialog=!1,me.on("afterSendEvent",Oe=>{!Oe.type&&Oe.event_id===this._lastEventId&&cs(Zs(Na({},_.dialogOptions),{eventId:this._lastEventId}))}))}componentDidCatch(_,{componentStack:me}){const{beforeCapture:Oe,onError:Xe,showDialog:pt,dialogOptions:Ht}=this.props;Gr(on=>{if(ws(y.version)&&Ce(_)){const Xn=new Error(_.message);Xn.name=`React ErrorBoundary ${Xn.name}`,Xn.stack=me,Ro(_,Xn)}Oe&&Oe(on,_,me);const Sn=St(_,{contexts:{react:{componentStack:me}}});Xe&&Xe(_,me,Sn),pt&&(this._lastEventId=Sn,this._openFallbackReportDialog&&cs(Zs(Na({},Ht),{eventId:Sn}))),this.setState({error:_,componentStack:me,eventId:Sn})})}componentDidMount(){const{onMount:_}=this.props;_&&_()}componentWillUnmount(){const{error:_,componentStack:me,eventId:Oe}=this.state,{onUnmount:Xe}=this.props;Xe&&Xe(_,me,Oe)}__init(){this.resetErrorBoundary=()=>{const{onReset:_}=this.props,{error:me,componentStack:Oe,eventId:Xe}=this.state;_&&_(me,Oe,Xe),this.setState(wl)}}render(){const{fallback:_,children:me}=this.props,Oe=this.state;if(Oe.error){let Xe;return typeof _=="function"?Xe=_({error:Oe.error,componentStack:Oe.componentStack,resetError:this.resetErrorBoundary,eventId:Oe.eventId}):Xe=_,y.isValidElement(Xe)?Xe:(_&&(typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__)&&P.warn("fallback did not produce a valid ReactElement"),null)}return typeof me=="function"?me():me}}function Eu(q,_){const me=q.displayName||q.name||cl,Oe=Xe=>React.createElement(ji,Zs(Na({},_),{__self:this,__source:{fileName:ul,lineNumber:227}}),React.createElement(q,Zs(Na({},Xe),{__self:this,__source:{fileName:ul,lineNumber:228}})));return Oe.displayName=`errorBoundary(${me})`,hoistNonReactStatics(Oe,q),Oe}var Pu=e(2258),po=e(76180),ds=e(53357),ks={200:"requestConfig.success.msg",401:"requestConfig.unAuth.msg",403:"requestConfig.permissionDenied.msg",429:"errCode.TokenExceedsRateLimit",500:"requestConfig.responseStatus.msg"},ba={101:"requestConfig.errorContent.msg",200001:"errCode.PartialSuccessBatchAssignLeaders",200002:"errCode.PartialSuccessBatchAssignWorkers",4e5:"errCode.BadRequest",400001:"errCode.ParameterMissing",400002:"errCode.ParameterIsInvalid",400050:"errCode.AnnotationNotListOfObj",400051:"errCode.AnnotationMissingCatName",400052:"errCode.AnnotationMissingBBox",400053:"errCode.AnnotationBBoxFormatError",400054:"errCode.AnnotationFormatError",400100:"errCode.FlagGroupsNotListOfObj",400101:"errCode.FlagObjectMissingFlag",400102:"errCode.FlagObjectFlagValueInvalid",400103:"errCode.FlagObjectMissingIDs",400104:"errCode.FlagObjectIDsNotList",400150:"errCode.LabelSetNameInvalid",400151:"errCode.LabelSetNameConflicts",400200:"errCode.UserNotFoundForLabelProject",400201:"errCode.UserNotActiveForLabelProject",400202:"errCode.DatasetNotFoundForLabelProject",400203:"errCode.LabelTaskNotFoundForLabelProject",400204:"errCode.CreateLabelProjectRequireManager",400205:"errCode.CreateLabelProjectRequireDataset",400206:"errCode.CreateLabelProjectRequireCategory",400207:"errCode.CreateLabelProjectDatasetOccupied",400208:"errCode.EditLabelProjectRequireManager",400209:"errCode.InitLabelProjectMustBeWaiting",400210:"errCode.InitLabelProjectTaskConfigError",400211:"errCode.QALabelProjectActionError",400212:"errCode.QALabelProjectMustBeReviewing",400213:"errCode.ExportLabelProjectMustBeAccepted",400214:"errCode.LeaderIDIsRequired",400215:"errCode.LabelerIDIsRequired",400216:"errCode.LabelProjectRoleIsNotTaskLevel",400217:"errCode.CantReplaceRoleWithTheSameUser",400218:"errCode.OldUserDoesNotHaveTheTaskRole",400219:"errCode.NewUserAlreadyHaveTheTaskRole",400220:"errCode.CantTransferRoleBetweenDifferentTask",400221:"errCode.CantTransferRoleToDifferentKind",400222:"errCode.RestartLabelTaskMustBeRejected",400223:"errCode.QALabelTaskActionError",400224:"errCode.AcceptLabelTaskMustBeReviewing",400225:"errCode.RejectLabelTaskMustBeReviewing",400226:"errCode.ForceAcceptLabelTaskMustBeRejected",400227:"errCode.LabelAnnotationMissingFields",400228:"errCode.LabelAnnotationFieldValueInvalid",400229:"errCode.LabelImageRequireTaskStatusWorking",400230:"errCode.LabelImageRequireUnfinishedReviewing",400231:"errCode.ReviewImageRequireTaskStatusWorking",400232:"errCode.ReviewImageRequireFinishedLabeling",400233:"errCode.ReviewImageTargetLabelNotFound",400234:"errCode.ReviewImageFoundExistedReview",400235:"errCode.CantDeleteAllOwnersOfLabelProject",400236:"errCode.NumOfTaskLeaderMismatchesConfig",400237:"errCode.TaskDoesNotRequireReviewer",400238:"errCode.NumOfTaskLabelerMismatchesConfig",400239:"errCode.NumOfTaskReviewerMismatchesConfig",400240:"errCode.TryInitRoleForTaskWithActiveRoles",400241:"errCode.TaskRoleNotOfLeaderKind",401e3:"errCode.Unauthorized",401001:"requestConfig.unAuth.msg",403e3:"errCode.Forbidden",403001:"requestConfig.permissionDenied.msg",403050:"errCode.UserAuthenticationFailed",403051:"errCode.UserCantViewLabelProjectTask",403052:"errCode.UserCantViewLabelProjectRole",403053:"errCode.UserCantCreateLabelProject",403054:"errCode.UserCantViewLabelProject",403055:"errCode.UserCantEditLabelProject",403056:"errCode.UserCantInitLabelProject",403057:"errCode.UserCantQALabelProject",403058:"errCode.UserCantExportLabelProject",403059:"errCode.UserCantAssignLabelTaskLeader",403060:"errCode.UserCantAssignLabelTaskWorker",403061:"errCode.UserCantRestartLabelTask",403062:"errCode.UserCantQALabelTask",403063:"errCode.UserCantLabelTaskImage",403064:"errCode.UserCantReviewTaskImage",404e3:"errCode.NotFound",404050:"errCode.DatasetNotFound",404051:"errCode.DatasetNotReadable",404052:"errCode.DatasetMissingEmbdFile",404053:"errCode.DatasetImageNotFound",404054:"errCode.DatasetHasNoFNFPData",404055:"errCode.DatasetLabelNotFound",404056:"errCode.DatasetFNFPPrecisionNotFound",404100:"errCode.ReRankByFlagTaskNotFound",404150:"errCode.LabelProjectNotFound",404151:"errCode.LabelProjectRoleNotFound",404152:"errCode.LabelProjectTaskNotFound",404153:"errCode.LabelTaskImageNotFound",429002:"errCode.TokenExceedsRateLimit",5e5:"errCode.InternalError",500001:"errCode.FailedToCloneLabelSet"},Tl=function(_,me){return _&&ba[_]?(0,ds._w)(ba[_]):me&&ks[me]?(0,ds._w)(ks[me]):(0,ds._w)("requestConfig.errorData.msg",{code:"".concat(me).concat(_?"-".concat(_):"")})},rs=e(35667);function dl(){return fl.apply(this,arguments)}function fl(){return fl=w()(m()().mark(function q(){return m()().wrap(function(me){for(;;)switch(me.prev=me.next){case 0:return document.addEventListener("wheel",function(Oe){(Oe.ctrlKey||Oe.detail)&&Oe.preventDefault()},{capture:!1,passive:!1}),document.addEventListener("keydown",function(Oe){(Oe.ctrlKey===!0||Oe.metaKey===!0)&&(Oe.keyCode===61||Oe.keyCode===107||Oe.keyCode===173||Oe.keyCode===109||Oe.keyCode===187||Oe.keyCode===189)&&Oe.preventDefault()},!1),R.ZP.config({duration:1.5,maxCount:2}),me.abrupt("return",{name:"@umijs/max"});case 4:case"end":return me.stop()}},q)})),fl.apply(this,arguments)}var Ul=function(){return{pure:!0,title:(0,ds._w)("layout.title")}};function Sl(q){var _={showDialog:!0,fallback:function(Oe){return(0,rs.jsx)(Pu.xA,p()({},Oe))}};return y.createElement(ji,_,q)}var Lu={baseURL:"",timeout:1e5,headers:{"Content-Type":"application/json"},errorConfig:{errorHandler:function(_,me){var Oe;if(!/^2/.test(_.status)&&!(me!=null&&me.skipErrorHandler)&&(((Oe=_.response)===null||Oe===void 0?void 0:Oe.status)===401&&(T.history.push("/"),localStorage.removeItem(po.Uf.AUTH_TOKEN)),!(me!=null&&me.hideCodeErrorMsg)))if(_.response){var Xe;R.ZP.error(Tl((Xe=_.response.data)===null||Xe===void 0?void 0:Xe.code,_.response.status))}else _.request?R.ZP.error((0,ds._w)("requestConfig.noResponse.msg")):R.ZP.error((0,ds._w)("requestConfig.requestError.msg"))}},requestInterceptors:[function(q){if(q.params&&(q.params=F().decamelizeKeys(q.params)),q.data&&(q.data=F().decamelizeKeys(q.data)),q.headers){var _,me;if((_=q.url)!==null&&_!==void 0&&_.includes("https://api.deepdataspace.com"))q.headers.Token="dds-tool-free";else if(((me=q.url)===null||me===void 0?void 0:me.indexOf("http"))!==0){var Oe=localStorage.getItem(po.Uf.AUTH_TOKEN);Oe&&(q.headers.Token=Oe)}}return p()({},q)}],responseInterceptors:[function(q){var _;if(((_=q.data)===null||_===void 0?void 0:_.code)===0){var me;return q.data=F().camelizeKeys(((me=q.data)===null||me===void 0?void 0:me.data)||{}),q}else{var Oe;if(!((Oe=q.config)!==null&&Oe!==void 0&&Oe.hideCodeErrorMsg)){var Xe;R.ZP.error(Tl((Xe=q.data)===null||Xe===void 0?void 0:Xe.code,200))}throw q}}]},ql=e(7862),Yo=e.n(ql),fu=e(81690),El=e.n(fu),Es=e(21700),Ws=e.n(Es),vl=e(31236),It=e.n(vl);function Pi(){return Pi=Object.assign||function(q){for(var _=1;_=0||(Xe[me]=q[me]);return Xe}var yo={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},eu={rel:["amphtml","canonical","alternate"]},tu={type:["application/ld+json"]},ys={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"]},gl=Object.keys(yo).map(function(q){return yo[q]}),Ii={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Ri=Object.keys(Ii).reduce(function(q,_){return q[Ii[_]]=_,q},{}),tt=function(q,_){for(var me=q.length-1;me>=0;me-=1){var Oe=q[me];if(Object.prototype.hasOwnProperty.call(Oe,_))return Oe[_]}return null},$e=function(q){var _=tt(q,yo.TITLE),me=tt(q,"titleTemplate");if(Array.isArray(_)&&(_=_.join("")),me&&_)return me.replace(/%s/g,function(){return _});var Oe=tt(q,"defaultTitle");return _||Oe||void 0},Ke=function(q){return tt(q,"onChangeClientState")||function(){}},cn=function(q,_){return _.filter(function(me){return me[q]!==void 0}).map(function(me){return me[q]}).reduce(function(me,Oe){return Pi({},me,Oe)},{})},nn=function(q,_){return _.filter(function(me){return me[yo.BASE]!==void 0}).map(function(me){return me[yo.BASE]}).reverse().reduce(function(me,Oe){if(!me.length)for(var Xe=Object.keys(Oe),pt=0;pt/g,">").replace(/"/g,""").replace(/'/g,"'")},Un=function(q){return Object.keys(q).reduce(function(_,me){var Oe=q[me]!==void 0?me+'="'+q[me]+'"':""+me;return _?_+" "+Oe:Oe},"")},Ta=function(q,_){return _===void 0&&(_={}),Object.keys(q).reduce(function(me,Oe){return me[Ii[Oe]||Oe]=q[Oe],me},_)},ha=function(q,_){return _.map(function(me,Oe){var Xe,pt=((Xe={key:Oe})["data-rh"]=!0,Xe);return Object.keys(me).forEach(function(Ht){var on=Ii[Ht]||Ht;on==="innerHTML"||on==="cssText"?pt.dangerouslySetInnerHTML={__html:me.innerHTML||me.cssText}:pt[on]=me[Ht]}),y.createElement(q,pt)})},Qt=function(q,_,me){switch(q){case yo.TITLE:return{toComponent:function(){return Xe=_.titleAttributes,(pt={key:Oe=_.title})["data-rh"]=!0,Ht=Ta(Xe,pt),[y.createElement(yo.TITLE,Ht,Oe)];var Oe,Xe,pt,Ht},toString:function(){return function(Oe,Xe,pt,Ht){var on=Un(pt),Sn=zn(Xe);return on?"<"+Oe+' data-rh="true" '+on+">"+Qn(Sn,Ht)+"":"<"+Oe+' data-rh="true">'+Qn(Sn,Ht)+""}(q,_.title,_.titleAttributes,me)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return Ta(_)},toString:function(){return Un(_)}};default:return{toComponent:function(){return ha(q,_)},toString:function(){return function(Oe,Xe,pt){return Xe.reduce(function(Ht,on){var Sn=Object.keys(on).filter(function(Hr){return!(Hr==="innerHTML"||Hr==="cssText")}).reduce(function(Hr,ma){var ja=on[ma]===void 0?ma:ma+'="'+Qn(on[ma],pt)+'"';return Hr?Hr+" "+ja:ja},""),Xn=on.innerHTML||on.cssText||"",_r=ir.indexOf(Oe)===-1;return Ht+"<"+Oe+' data-rh="true" '+Sn+(_r?"/>":">"+Xn+"")},"")}(q,_,me)}}}},Re=function(q){var _=q.baseTag,me=q.bodyAttributes,Oe=q.encode,Xe=q.htmlAttributes,pt=q.noscriptTags,Ht=q.styleTags,on=q.title,Sn=on===void 0?"":on,Xn=q.titleAttributes,_r=q.linkTags,Hr=q.metaTags,ma=q.scriptTags,ja={toComponent:function(){},toString:function(){return""}};if(q.prioritizeSeoTags){var wa=function(so){var mo=so.linkTags,ho=so.scriptTags,yi=so.encode,Qo=Yn(so.metaTags,ys),Mi=Yn(mo,eu),fs=Yn(ho,tu);return{priorityMethods:{toComponent:function(){return[].concat(ha(yo.META,Qo.priority),ha(yo.LINK,Mi.priority),ha(yo.SCRIPT,fs.priority))},toString:function(){return Qt(yo.META,Qo.priority,yi)+" "+Qt(yo.LINK,Mi.priority,yi)+" "+Qt(yo.SCRIPT,fs.priority,yi)}},metaTags:Qo.default,linkTags:Mi.default,scriptTags:fs.default}}(q);ja=wa.priorityMethods,_r=wa.linkTags,Hr=wa.metaTags,ma=wa.scriptTags}return{priority:ja,base:Qt(yo.BASE,_,Oe),bodyAttributes:Qt("bodyAttributes",me,Oe),htmlAttributes:Qt("htmlAttributes",Xe,Oe),link:Qt(yo.LINK,_r,Oe),meta:Qt(yo.META,Hr,Oe),noscript:Qt(yo.NOSCRIPT,pt,Oe),script:Qt(yo.SCRIPT,ma,Oe),style:Qt(yo.STYLE,Ht,Oe),title:Qt(yo.TITLE,{title:Sn,titleAttributes:Xn},Oe)}},rt=[],Rt=function(q,_){var me=this;_===void 0&&(_=typeof document!="undefined"),this.instances=[],this.value={setHelmet:function(Oe){me.context.helmet=Oe},helmetInstances:{get:function(){return me.canUseDOM?rt:me.instances},add:function(Oe){(me.canUseDOM?rt:me.instances).push(Oe)},remove:function(Oe){var Xe=(me.canUseDOM?rt:me.instances).indexOf(Oe);(me.canUseDOM?rt:me.instances).splice(Xe,1)}}},this.context=q,this.canUseDOM=_,_||(q.helmet=Re({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Ut=y.createContext({}),un=Yo().shape({setHelmet:Yo().func,helmetInstances:Yo().shape({get:Yo().func,add:Yo().func,remove:Yo().func})}),In=typeof document!="undefined",gn=function(q){function _(me){var Oe;return(Oe=q.call(this,me)||this).helmetData=new Rt(Oe.props.context,_.canUseDOM),Oe}return jl(_,q),_.prototype.render=function(){return y.createElement(Ut.Provider,{value:this.helmetData.value},this.props.children)},_}(y.Component);gn.canUseDOM=In,gn.propTypes={context:Yo().shape({helmet:Yo().shape()}),children:Yo().node.isRequired},gn.defaultProps={context:{}},gn.displayName="HelmetProvider";var rn=function(q,_){var me,Oe=document.head||document.querySelector(yo.HEAD),Xe=Oe.querySelectorAll(q+"[data-rh]"),pt=[].slice.call(Xe),Ht=[];return _&&_.length&&_.forEach(function(on){var Sn=document.createElement(q);for(var Xn in on)Object.prototype.hasOwnProperty.call(on,Xn)&&(Xn==="innerHTML"?Sn.innerHTML=on.innerHTML:Xn==="cssText"?Sn.styleSheet?Sn.styleSheet.cssText=on.cssText:Sn.appendChild(document.createTextNode(on.cssText)):Sn.setAttribute(Xn,on[Xn]===void 0?"":on[Xn]));Sn.setAttribute("data-rh","true"),pt.some(function(_r,Hr){return me=Hr,Sn.isEqualNode(_r)})?pt.splice(me,1):Ht.push(Sn)}),pt.forEach(function(on){return on.parentNode.removeChild(on)}),Ht.forEach(function(on){return Oe.appendChild(on)}),{oldTags:pt,newTags:Ht}},Ur=function(q,_){var me=document.getElementsByTagName(q)[0];if(me){for(var Oe=me.getAttribute("data-rh"),Xe=Oe?Oe.split(","):[],pt=[].concat(Xe),Ht=Object.keys(_),on=0;on=0;Hr-=1)me.removeAttribute(pt[Hr]);Xe.length===pt.length?me.removeAttribute("data-rh"):me.getAttribute("data-rh")!==Ht.join(",")&&me.setAttribute("data-rh",Ht.join(","))}},aa=function(q,_){var me=q.baseTag,Oe=q.htmlAttributes,Xe=q.linkTags,pt=q.metaTags,Ht=q.noscriptTags,on=q.onChangeClientState,Sn=q.scriptTags,Xn=q.styleTags,_r=q.title,Hr=q.titleAttributes;Ur(yo.BODY,q.bodyAttributes),Ur(yo.HTML,Oe),function(so,mo){so!==void 0&&document.title!==so&&(document.title=zn(so)),Ur(yo.TITLE,mo)}(_r,Hr);var ma={baseTag:rn(yo.BASE,me),linkTags:rn(yo.LINK,Xe),metaTags:rn(yo.META,pt),noscriptTags:rn(yo.NOSCRIPT,Ht),scriptTags:rn(yo.SCRIPT,Sn),styleTags:rn(yo.STYLE,Xn)},ja={},wa={};Object.keys(ma).forEach(function(so){var mo=ma[so],ho=mo.newTags,yi=mo.oldTags;ho.length&&(ja[so]=ho),yi.length&&(wa[so]=ma[so].oldTags)}),_&&_(),on(q,ja,wa)},da=null,ua=function(q){function _(){for(var Oe,Xe=arguments.length,pt=new Array(Xe),Ht=0;Ht elements are self-closing and can not contain children. Refer to our API for more information.")}},me.flattenArrayTypeChildren=function(Oe){var Xe,pt=Oe.child,Ht=Oe.arrayTypeChildren;return Pi({},Ht,((Xe={})[pt.type]=[].concat(Ht[pt.type]||[],[Pi({},Oe.newChildProps,this.mapNestedChildrenToProps(pt,Oe.nestedChildren))]),Xe))},me.mapObjectTypeChildren=function(Oe){var Xe,pt,Ht=Oe.child,on=Oe.newProps,Sn=Oe.newChildProps,Xn=Oe.nestedChildren;switch(Ht.type){case yo.TITLE:return Pi({},on,((Xe={})[Ht.type]=Xn,Xe.titleAttributes=Pi({},Sn),Xe));case yo.BODY:return Pi({},on,{bodyAttributes:Pi({},Sn)});case yo.HTML:return Pi({},on,{htmlAttributes:Pi({},Sn)});default:return Pi({},on,((pt={})[Ht.type]=Pi({},Sn),pt))}},me.mapArrayTypeChildrenToProps=function(Oe,Xe){var pt=Pi({},Xe);return Object.keys(Oe).forEach(function(Ht){var on;pt=Pi({},pt,((on={})[Ht]=Oe[Ht],on))}),pt},me.warnOnInvalidChildren=function(Oe,Xe){return Ws()(gl.some(function(pt){return Oe.type===pt}),typeof Oe.type=="function"?"You may be attempting to nest components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+gl.join(", ")+" are allowed. Helmet does not support rendering <"+Oe.type+"> elements. Refer to our API for more information."),Ws()(!Xe||typeof Xe=="string"||Array.isArray(Xe)&&!Xe.some(function(pt){return typeof pt!="string"}),"Helmet expects a string as a child of <"+Oe.type+">. Did you forget to wrap your children in braces? ( <"+Oe.type+">{``} ) Refer to our API for more information."),!0},me.mapChildrenToProps=function(Oe,Xe){var pt=this,Ht={};return y.Children.forEach(Oe,function(on){if(on&&on.props){var Sn=on.props,Xn=Sn.children,_r=Vo(Sn,Aa),Hr=Object.keys(_r).reduce(function(ja,wa){return ja[Ri[wa]||wa]=_r[wa],ja},{}),ma=on.type;switch(typeof ma=="symbol"?ma=ma.toString():pt.warnOnInvalidChildren(on,Xn),ma){case yo.FRAGMENT:Xe=pt.mapChildrenToProps(Xn,Xe);break;case yo.LINK:case yo.META:case yo.NOSCRIPT:case yo.SCRIPT:case yo.STYLE:Ht=pt.flattenArrayTypeChildren({child:on,arrayTypeChildren:Ht,newChildProps:Hr,nestedChildren:Xn});break;default:Xe=pt.mapObjectTypeChildren({child:on,newProps:Xe,newChildProps:Hr,nestedChildren:Xn})}}}),this.mapArrayTypeChildrenToProps(Ht,Xe)},me.render=function(){var Oe=this.props,Xe=Oe.children,pt=Vo(Oe,Oo),Ht=Pi({},pt),on=pt.helmetData;return Xe&&(Ht=this.mapChildrenToProps(Xe,Ht)),!on||on instanceof Rt||(on=new Rt(on.context,on.instances)),on?y.createElement(ua,Pi({},Ht,{context:on.value,helmetData:void 0})):y.createElement(Ut.Consumer,null,function(Sn){return y.createElement(ua,Pi({},Ht,{context:Sn}))})},_}(y.Component);Co.propTypes={base:Yo().object,bodyAttributes:Yo().object,children:Yo().oneOfType([Yo().arrayOf(Yo().node),Yo().node]),defaultTitle:Yo().string,defer:Yo().bool,encodeSpecialCharacters:Yo().bool,htmlAttributes:Yo().object,link:Yo().arrayOf(Yo().object),meta:Yo().arrayOf(Yo().object),noscript:Yo().arrayOf(Yo().object),onChangeClientState:Yo().func,script:Yo().arrayOf(Yo().object),style:Yo().arrayOf(Yo().object),title:Yo().string,titleAttributes:Yo().object,titleTemplate:Yo().string,prioritizeSeoTags:Yo().bool,helmetData:Yo().object},Co.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},Co.displayName="Helmet";var Sa={},Ia=function(_){return y.createElement(gn,{context:Sa},_)},ia=e(96662);function oo(q){var _={};return(0,rs.jsx)(ia.J.Provider,{value:_,children:q.children})}function Sr(q){return(0,rs.jsx)(oo,{children:q})}var Nr=e(62376),Da=e.n(Nr),Wr=e(62109),Qr=e(65388),_a=e(42505),za=["appConfig"],ya=null,io=function(){return ya||(ya=Gu().applyPlugins({key:"antd",type:T.ApplyPluginsType.modify,initialValue:p()({},{theme:{token:{colorLink:"#1e53f5",colorPrimary:"#1e53f5"}}})})),ya};function Ba(q){var _=io(),me=_.appConfig,Oe=Da()(_,za),Xe=q;return Oe.prefixCls&&(Wr.Z.config({rootPrefixCls:Oe.prefixCls}),R.ZP.config({prefixCls:"".concat(Oe.prefixCls,"-message")}),Qr.Z.config({prefixCls:"".concat(Oe.prefixCls,"-notification")})),Oe.iconPrefixCls&&_a.ZP.config({iconPrefixCls:Oe.iconPrefixCls}),Oe.theme&&_a.ZP.config({theme:Oe.theme}),Xe=(0,rs.jsx)(_a.ZP,p()(p()({},Oe),{},{children:Xe})),Xe}var Ea=e(47338);function qa(){return(0,rs.jsx)("div",{})}function Ha(q){var _=y.useRef(!1),me=(0,Ea.t)("@@initialState")||{},Oe=me.loading,Xe=Oe===void 0?!1:Oe;return y.useEffect(function(){Xe||(_.current=!0)},[Xe]),Xe&&!_.current?(0,rs.jsx)(qa,{}):q.children}function Do(q){return(0,rs.jsx)(Ha,{children:q})}var lo={};function Oa(q){return q.replace(q[0],q[0].toUpperCase()).replace(/-(w)/g,function(_,me){return me.toUpperCase()})}function $a(q){var _=q.routes;Object.keys(_).forEach(function(me){var Oe=_[me].icon;if(Oe&&typeof Oe=="string"){var Xe=Oa(Oe);(lo[Xe]||lo[Xe+"Outlined"])&&(_[me].icon=y.createElement(lo[Xe]||lo[Xe+"Outlined"]))}})}var li=e(88205),Va=e.n(li),pi=e(6901),ui=e.n(pi),Ja=e(85417),ko=e(16221);function Io(){var q=getLocale();if(moment!=null&&moment.locale){var _;moment.locale(((_=localeInfo[q])===null||_===void 0?void 0:_.momentLocale)||"")}setIntl(q)}var Lo=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?y.useLayoutEffect:y.useEffect,Qa=function(_){var me,Oe=(0,ko.Kd)(),Xe=y.useState(Oe),pt=Va()(Xe,2),Ht=pt[0],on=pt[1],Sn=y.useState(function(){return(0,ko.lw)(Ht,!0)}),Xn=Va()(Sn,2),_r=Xn[0],Hr=Xn[1],ma=function(mo){if(ui()!==null&&ui()!==void 0&&ui().locale){var ho;ui().locale(((ho=ko.H8[mo])===null||ho===void 0?void 0:ho.momentLocale)||"en")}on(mo),Hr((0,ko.lw)(mo))};Lo(function(){return ko.B.on(ko.PZ,ma),function(){ko.B.off(ko.PZ,ma)}},[]);var ja={},wa=(0,ko.Mg)();return(0,rs.jsx)(_a.ZP,{direction:wa,locale:((me=ko.H8[Ht])===null||me===void 0?void 0:me.antd)||ja,children:(0,rs.jsx)(ko.eU,{value:_r,children:_.children})})};function ci(q){return y.createElement(Qa,null,q)}var bi=e(34485),vi=e.n(bi),qo=e(65246),Vi=e(7986);function as(q,_){return os.apply(this,arguments)}function os(){return os=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/datasets",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),os.apply(this,arguments)}function Qi(q,_){return _i.apply(this,arguments)}function _i(){return _i=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/datasets/".concat(_.datasetId),p()({method:"GET"},me||{})));case 1:case"end":return Xe.stop()}},q)})),_i.apply(this,arguments)}function Go(q,_){return j.apply(this,arguments)}function j(){return j=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/images",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),j.apply(this,arguments)}function ae(q,_){return je.apply(this,arguments)}function je(){return je=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/image_flags",p()({method:"POST",data:p()({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),je.apply(this,arguments)}function Ge(q,_){return ht.apply(this,arguments)}function ht(){return ht=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/tasks/rerank_by_flags",p()({method:"POST",data:p()({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),ht.apply(this,arguments)}function qt(q,_){return er.apply(this,arguments)}function er(){return er=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/tasks/".concat(_.name,"/").concat(_.id),p()({method:"GET"},me||{})));case 1:case"end":return Xe.stop()}},q)})),er.apply(this,arguments)}function to(q,_){return zo.apply(this,arguments)}function zo(){return zo=_asyncToGenerator(_regeneratorRuntime().mark(function q(_,me){return _regeneratorRuntime().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",request("/api/v1/annotations",_objectSpread({method:"POST",data:_objectSpread({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),zo.apply(this,arguments)}function Uo(q,_){return Hi.apply(this,arguments)}function Hi(){return Hi=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/comparisons",p()({method:"GET",params:_},me||{})));case 1:case"end":return Xe.stop()}},q)})),Hi.apply(this,arguments)}function Cs(q,_){return zs.apply(this,arguments)}function zs(){return zs=_asyncToGenerator(_regeneratorRuntime().mark(function q(_,me){return _regeneratorRuntime().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",request("/api/v1/label_clone",_objectSpread({method:"POST",data:_objectSpread({},_)},me||{})));case 1:case"end":return Xe.stop()}},q)})),zs.apply(this,arguments)}var Yl=e(74595),zi={categoryId:"All",displayAnnotationType:void 0,displayOptions:[po.zY.showAnnotations,po.zY.showAllCategory],selectedLabelIds:[],diffMode:po.uP.Overlay},Pl={datasetId:"",datasetName:"",page:1,pageSize:po.L8,cloumnCount:5,isSingleAnnotation:!1,previewIndex:-1,filterValues:p()({},zi),comparisons:void 0,flagTools:void 0},Cu={imgList:[],total:0,flagTools:{lastShiftIndex:-1,lastSavedIndexs:[],count:0}},vu=p()(p()({},Cu),{},{screenLoading:"",hasEmbedFile:!1,filters:{categories:[],annotationTypes:[],displayOptions:po.EX,labels:[]}}),xu=e(39378),Iu=function(){var q,_,me,Oe=(0,qo.x)(p()({},Pl)),Xe=Va()(Oe,2),pt=Xe[0],Ht=Xe[1],on=(0,qo.x)(p()({},vu)),Sn=Va()(on,2),Xn=Sn[0],_r=Sn[1],Hr=pt.filterValues,ma=pt.comparisons,ja=Xn.filters,wa=function(Wo){Ht(function(va){Object.assign(va,Pl,Wo)})},so=function(){},mo=(0,Vi.Z)(function(Xo){if(!pt.datasetId)throw null;return Qi({datasetId:pt.datasetId})},{refreshDeps:[pt.datasetId],onSuccess:function(Wo,va){var ms=Wo.categoryList,Al=Wo.labelList,Ci=Wo.objectTypes,mu=va.length>0?va[0]:po.$j.gt,pl=Ci.filter(function(Ai){return Ai!==po.JJ.Classification}),Vl=pt.filterValues.displayAnnotationType&&pl.find(function(Ai){return Ai===pt.filterValues.displayAnnotationType});_r(function(Ai){var Tu=Vl||pl[0],Sc=(0,Yl.B8)(pt.filterValues.displayOptions,Tu),rl=Va()(Sc,2),jc=rl[0],Ec=rl[1];Ai.filters.categories=[{id:"All",name:"All"}].concat(vi()(ms)),Ai.filters.annotationTypes=pl,Ai.filters.displayOptions=jc,Vl||Ht(function(hl){hl.filterValues.displayOptions=Ec,hl.filterValues.displayAnnotationType=Tu}),pt.filterValues.categoryId||Ht(function(hl){hl.filterValues.categoryId="All"}),Al&&Al.length&&(Ai.filters.labels=Al.map(function(hl){return hl.confidenceRange=hl.source===po.$j.pred?[.2,1]:[0,1],hl.source===mu&&!Vl&&Ht(function(js){js.filterValues.selectedLabelIds=[hl.id]}),hl}))})},onError:function(){}},[function(Xo){return{onBefore:function(){var va;return{loading:!(!((va=Xo.state.params)===null||va===void 0)&&va.length)}}}}]),ho=mo.loading,yi=mo.runAsync,Qo=(0,Vi.Z)(function(){var Xo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!pt.datasetId||!pt.filterValues.categoryId)throw null;Xo||(_r(function(ms){Object.assign(ms,Cu)}),window.scrollTo(0,0));var Wo=pt.filterValues.categoryId==="All"?void 0:pt.filterValues.categoryId,va={datasetId:pt.datasetId,categoryId:Wo,pageNum:pt.page,pageSize:pt.pageSize};return pt.comparisons?Uo(p()(p()({},va),{},{labelId:pt.comparisons.label.id,precision:pt.comparisons.precision,orderBy:pt.comparisons.orderBy,displayCategoryId:Wo})):(pt.flagTools&&pt.flagTools.flagStatus>=0&&Object.assign(va,{flag:pt.flagTools.flagStatus}),Go(va))},{debounceWait:20,refreshDeps:[pt.datasetId,pt.filterValues.categoryId,pt.page,pt.pageSize,(q=pt.comparisons)===null||q===void 0?void 0:q.precision,(_=pt.comparisons)===null||_===void 0?void 0:_.orderBy,(me=pt.flagTools)===null||me===void 0?void 0:me.flagStatus],onSuccess:function(Wo){_r(function(va){va.imgList=Wo.imageList,va.total=Wo.total})},onError:function(){}},[function(Xo){return{onBefore:function(){var va;return{loading:!(!((va=Xo.state.params)===null||va===void 0)&&va.length)}}}}]),Mi=Qo.loading,fs=Qo.run,Yi=function(Wo){Ht(function(va){va.previewIndex=Wo})},So=function(){Ht(function(Wo){Wo.previewIndex=-1})},di=ho||Mi,Ei=(0,y.useMemo)(function(){if(ma){var Xo=[],Wo=ja.labels.find(function(va){return va.source===po.$j.gt});return(ma.displays.includes(po.$j.gt)||ma.displays.includes(po.BP.fn))&&Wo&&Xo.push(Wo.id),(ma.displays.includes(po.$j.pred)||ma.displays.includes(po.BP.fp))&&Xo.push(ma.label.id),Xo}return Hr.selectedLabelIds},[ma,Hr.selectedLabelIds,ja.labels]),Bi=(0,y.useMemo)(function(){return Ei.length>1&&(Hr.displayAnnotationType===po.JJ.Matting||(ma?ma.diffMode===po.uP.Tiled:Hr.diffMode===po.uP.Tiled))},[ma,Hr.diffMode,Ei]),Xi=(0,y.useMemo)(function(){var Xo={};return Object.keys(po.zY).forEach(function(Wo){var va;Xo[Wo]=!!(!((va=Hr.displayOptions)===null||va===void 0)&&va.find(function(ms){return ms===Wo}))}),Xo},[pt.filterValues.displayOptions]),ts=(0,y.useCallback)(function(Xo){var Wo=vi()(Xo.objects)||[],va=pt.comparisons,ms={labels:Xn.filters.labels,displayLabelIds:Ei,isTiledDiff:Bi};if(va){var Al=Wo.filter(function(Ci){return Ci.source===po.$j.pred});Wo=Wo.filter(function(Ci){return(Ci.conf||0)>=va.score}),Wo=Wo.map(function(Ci){var mu=p()({},Ci);if(Ci.source===po.$j.gt){var pl=(0,xu.isNumber)(Ci.matchedDetIdx)&&Ci.matchedDetIdx>=0&&Wo.includes(Al[Ci.matchedDetIdx])?po.BP.ok:po.BP.fn;mu.compareResult=pl}return mu}),Wo=Wo.filter(function(Ci){return Ci.compareResult===po.BP.ok?Ci.source&&va.displays.includes(Ci.source):Ci.compareResult&&va.displays.includes(Ci.compareResult)})}return Wo.filter(function(Ci){var mu=Xi.showAnnotations,pl=Xi.showAllCategory,Vl=pt.filterValues.categoryId||"";if(!mu||!pl&&Ci.categoryId!==Vl||ms&&Ci.labelId&&!ms.displayLabelIds.includes(Ci.labelId)||ms&&ms.isTiledDiff&&Ci.labelId!==Xo.curLabelId)return!1;if(!va&&ms){var Ai=ms.labels.find(function(Tu){return Tu.id===Ci.labelId});return Ai?Ai.source===po.$j.gt?!0:Ci.conf!==void 0&&Ci.conf>=(Ai==null?void 0:Ai.confidenceRange[0])&&Ci.conf<=(Ai==null?void 0:Ai.confidenceRange[1]):!1}return!0})},[pt.comparisons,Xn.filters.labels,Ei,Bi,Xi]),Kl=(0,y.useCallback)(function(Xo){var Wo=(0,Yl.iE)(Xo.labelId,Ei,Bi||!!pt.comparisons),va=Wo.colorAplha,ms=Wo.strokeDash,Al=Wo.lineWidth;return pt.comparisons&&Xo.compareResult?{pointAplha:va,strokeDash:ms,thickness:Al,fillColor:po.pB[Xo.compareResult]||"transparent"}:{pointAplha:va,strokeDash:ms,thickness:Al}},[Ei,Bi,!!pt.comparisons]);return{pageState:pt,setPageState:Ht,pageData:Xn,setPageData:_r,onInitPageState:wa,onPageContentLoaded:so,onPreviewIndexChange:Yi,exitPreview:So,loadDatasetInfo:yi,loadImgList:fs,loading:di,displayLabelIds:Ei,isTiledDiff:Bi,displayOptionsResult:Xi,displayObjectsFilter:ts,getCustomObjectStyles:Kl}},el=e(41260),es=function(){var q=(0,y.useState)(!1),_=Va()(q,2),me=_[0],Oe=_[1],Xe=(0,T.useModel)("dataset.common"),pt=Xe.setPageState,Ht=function(){Oe(!0)},on=function(){Oe(!1)},Sn=function(ma){pt(function(ja){ja.page=1,ja.filterValues.displayAnnotationType=po.JJ.Detection,ja.flagTools=void 0,ja.comparisons={label:ma,orderBy:po.YZ.fn,precision:ma.comparePrecisions[0].precision,displays:po.G3.map(function(wa){return wa.value}),diffMode:po.uP.Overlay,score:(0,el.p)(ma.comparePrecisions[0].threshold,2)}})},Xn=function(){pt(function(ma){ma.page=1,ma.comparisons=void 0})},_r=function(ma,ja){pt(function(wa){if(wa.comparisons&&(wa.comparisons[ma]=ja,ma==="precision")){var so=wa.comparisons.label.comparePrecisions.find(function(mo){return mo.precision===ja});so&&(wa.comparisons.score=(0,el.p)(so.threshold,2))}})};return{showAnalysisModal:me,openAnalysisModal:Ht,closeAnalysisModal:on,compareLabelSet:Sn,exitComparisons:Xn,onFilterComparisonsPrecision:_r}},Fa=function(){var q=(0,T.useModel)("dataset.common"),_=q.pageState,me=q.setPageState,Oe=q.pageData,Xe=q.setPageData,pt=function(ja){me(function(wa){wa.filterValues.categoryId=ja,wa.page=1})},Ht=function(ja){var wa;typeof ja=="number"?wa=ja:ja?wa=_.cloumnCount1?_.cloumnCount-1:_.cloumnCount,me(function(so){so.cloumnCount=wa})},on=function(ja){me(function(wa){wa.filterValues.displayOptions=ja})},Sn=function(ja){me(function(wa){wa.filterValues.selectedLabelIds=ja.sort(function(so,mo){return Oe.filters.labels.findIndex(function(ho){return ho.id===so})-Oe.filters.labels.findIndex(function(ho){return ho.id===mo})})})},Xn=function(ja){me(function(wa){wa.filterValues.diffMode=ja})},_r=function(ja,wa){Xe(function(so){so.filters.labels[ja].confidenceRange=wa})},Hr=function(ja){var wa=(0,Yl.B8)(_.filterValues.displayOptions,ja),so=Va()(wa,2),mo=so[0],ho=so[1];Xe(function(yi){yi.filters.displayOptions=mo}),me(function(yi){yi.filterValues.displayAnnotationType=ja,yi.filterValues.displayOptions=ho})};return{onCategoryChange:pt,onColumnCountChange:Ht,onDisplayOptionsChange:on,onDisplayAnnotationTypeChange:Hr,onLabelsChange:Sn,onLabelsDiffModeChange:Xn,onLabelConfidenceChange:_r}},gs=e(2556),Nu=function(_){var me=[],Oe=[];return _.forEach(function(Xe,pt){Xe.selected&&(me.push(pt),Oe.push(Xe.id))}),{selectIndexs:me,selectedIds:Oe}},Gl=function(){var q=(0,T.useModel)("dataset.common"),_=q.pageState,me=q.setPageState,Oe=q.pageData,Xe=q.setPageData,pt=q.loadImgList,Ht=(0,qo.x)(!1),on=Va()(Ht,2),Sn=on[0],Xn=on[1],_r=function(So){Xe(function(di){if(_.flagTools){var Ei=!di.imgList[So].selected;if(Sn&&di.flagTools.lastShiftIndex>=0&&So!==di.flagTools.lastShiftIndex){var Bi=di.flagTools.count;di.imgList.forEach(function(Xi,ts){(ts>=di.flagTools.lastShiftIndex&&ts<=So||ts>=So&&ts<=di.flagTools.lastShiftIndex)&&(Bi+=Xi.selected?0:1,Xi.selected=!0)}),di.flagTools.lastShiftIndex=-1,di.flagTools.count=Bi}else di.imgList[So].selected=Ei,di.flagTools.lastShiftIndex=Ei?So:-1,di.flagTools.count+=Ei?1:-1}})},Hr=function(){var So=Oe.flagTools.count!==_.pageSize;Xe(function(di){di.imgList.forEach(function(Ei){Ei.selected=So}),di.flagTools.lastShiftIndex=-1,di.flagTools.count=So?_.pageSize:0})},ma=function(){Xe(function(So){So.imgList.forEach(function(di){di.selected=!di.selected}),So.flagTools.lastShiftIndex=-1,So.flagTools.count=_.pageSize-So.flagTools.count})},ja=function(){return new Promise(function(So){if(!_.flagTools){So(null);return}var di=Nu(Oe.imgList),Ei=di.selectIndexs;if(Ei.length>0&&(Ei.length!==Oe.flagTools.lastSavedIndexs.length||Oe.flagTools.lastSavedIndexs.find(function(Bi){return!Ei.includes(Bi)}))){Wr.Z.confirm({content:"Now selected items have not been saved, these will lose if you click 'OK', are you sure?",onOk:function(){So(null)}});return}So(null)})},wa=function(So){ja().then(function(){me(function(di){di.page=1,di.flagTools.flagStatus=So})})},so=function(){Xe(function(So){So.flagTools.lastShiftIndex=-1,So.flagTools.lastSavedIndexs=[],So.flagTools.count=0}),me(function(So){So.page=1,So.flagTools={flagStatus:po.po.all}})},mo=function(){ja().then(function(){me(function(So){So.page=1,So.flagTools=void 0})})},ho=function(){var Yi=w()(m()().mark(function So(di){var Ei,Bi,Xi,ts;return m()().wrap(function(Xo){for(;;)switch(Xo.prev=Xo.next){case 0:if(!(Oe.flagTools.count<=0)){Xo.next=3;break}return R.ZP.warning("No any image to be selected!"),Xo.abrupt("return");case 3:return Ei=Nu(Oe.imgList),Bi=Ei.selectIndexs,Xi=Ei.selectedIds,ts=R.ZP.loading("Flag saving..."),Xo.prev=5,Xo.next=8,ae({datasetId:_.datasetId,flagGroups:[{flag:di,ids:Xi}]});case 8:ts(),Xe(function(Wo){Wo.imgList.forEach(function(va){va.selected&&(va.flag=di)}),Wo.flagTools.lastSavedIndexs=Bi}),Xo.next=17;break;case 12:Xo.prev=12,Xo.t0=Xo.catch(5),console.error("error",Xo.t0),ts(),R.ZP.error("Flag save fail, please retry!");case 17:case"end":return Xo.stop()}},So,null,[[5,12]])}));return function(di){return Yi.apply(this,arguments)}}(),yi=(0,Vi.Z)(function(Yi){return qt(Yi)},{manual:!0,pollingInterval:1e3,pollingWhenHidden:!0,onSuccess:function(So){var di=So.status;di==="success"?(Mi(),R.ZP.success("Order update success!"),Xe(function(Ei){Ei.screenLoading=""}),me(function(Ei){Ei.page=1}),pt()):di==="fail"&&(Mi(),R.ZP.error("Query order task fail, Please retry!"),Xe(function(Ei){Ei.screenLoading=""}))}}),Qo=yi.run,Mi=yi.cancel,fs=function(){var Yi=w()(m()().mark(function So(){var di,Ei,Bi;return m()().wrap(function(ts){for(;;)switch(ts.prev=ts.next){case 0:return ts.prev=0,Xe(function(Kl){Kl.screenLoading="Updating order..."}),ts.next=4,Ge({datasetId:_.datasetId});case 4:di=ts.sent,Ei=di.id,Bi=di.name,Qo({id:Ei,name:Bi}),ts.next=14;break;case 10:ts.prev=10,ts.t0=ts.catch(0),console.error("error",ts.t0),Xe(function(Kl){Kl.screenLoading=""});case 14:case"end":return ts.stop()}},So,null,[[0,10]])}));return function(){return Yi.apply(this,arguments)}}();return(0,gs.Z)(["Shift"],function(Yi){!_.flagTools||_.previewIndex>=0||Xn(Yi.type==="keydown")},{events:["keydown","keyup"]}),(0,gs.Z)(["shift.q","shift.Q","shift.e","shift.E","v","V"],function(Yi){!_.flagTools||_.previewIndex>=0||(["v","V"].includes(Yi.key)&&ma(),["q","Q"].includes(Yi.key)&&Yi.shiftKey&&ho(po.po.picked),["e","E"].includes(Yi.key)&&Yi.shiftKey&&ho(po.po.rejected))}),{enterFlagTools:so,exitFlagTools:mo,onChangeFlagStatus:wa,selectItem:_r,changeSelectAll:Hr,antiSelect:ma,limitNoSaveChangePage:ja,saveFlag:ho,updateOrder:fs}},Au=function(){var q=(0,qo.x)({page:1,pageSize:po.L8}),_=Va()(q,2),me=_[0],Oe=_[1],Xe=(0,qo.x)({list:[],total:0}),pt=Va()(Xe,2),Ht=pt[0],on=pt[1],Sn=(0,Vi.Z)(function(ja,wa){return as({pageNum:ja||me.page,pageSize:wa||me.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[me.page,me.pageSize],onSuccess:function(wa){var so=wa.datasetList,mo=wa.total;on(function(ho){ho.list=so,ho.total=mo})},onError:function(){}}),Xn=Sn.loading,_r=Sn.run,Hr=function(wa){Oe(function(so){so.page=wa}),_r(wa)},ma=function(wa,so){Oe(function(mo){mo.page=wa,mo.pageSize=so}),_r(wa,so)};return{loading:Xn,pagination:me,datasetsData:Ht,loadDatasets:_r,setPagination:Oe,onPageChange:Hr,onPageSizeChange:ma}},hc=e(7214),Bs=e(21325),_s=!1;(0,hc.ac)(function(q){_s=q});var Ju=function(){var q=(0,y.useState)(!1),_=Va()(q,2),me=_[0],Oe=_[1],Xe=(0,y.useState)(""),pt=Va()(Xe,2),Ht=pt[0],on=pt[1],Sn=(0,y.useState)(_s),Xn=Va()(Sn,2),_r=Xn[0],Hr=Xn[1],ma=(0,y.useState)(0),ja=Va()(ma,2),wa=ja[0],so=ja[1],mo=(0,y.useState)(window.innerWidth),ho=Va()(mo,2),yi=ho[0],Qo=ho[1];return(0,y.useEffect)(function(){(0,hc.ac)(function(Mi){Hr(Mi)})},[]),(0,y.useEffect)(function(){Qo(window.innerWidth-wa)},[wa]),(0,Bs.Z)("resize",function(){var Mi=window.innerWidth-wa;Qo(Mi)},{target:window}),{loading:me,setLoading:Oe,loadingTip:Ht,setLoadingTip:on,isMobile:_r,fixSliderWidth:wa,setFixSliderWidth:so,layoutInnerWidth:yi}};function Ou(q){return tl.apply(this,arguments)}function tl(){return tl=w()(m()().mark(function q(_){return m()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",(0,T.request)("/api/v1/user_info",p()({method:"GET",skipErrorHandler:!0},_||{})));case 1:case"end":return Oe.stop()}},q)})),tl.apply(this,arguments)}function nl(q,_){return nu.apply(this,arguments)}function nu(){return nu=w()(m()().mark(function q(_,me){return m()().wrap(function(Xe){for(;;)switch(Xe.prev=Xe.next){case 0:return Xe.abrupt("return",(0,T.request)("/api/v1/login",p()({method:"POST",data:p()({},_),skipErrorHandler:!0},me||{})));case 1:case"end":return Xe.stop()}},q)})),nu.apply(this,arguments)}function Hs(q){return Cl.apply(this,arguments)}function Cl(){return Cl=w()(m()().mark(function q(_){return m()().wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return Oe.abrupt("return",(0,T.request)("/api/v1/logout",p()({method:"POST"},_||{})));case 1:case"end":return Oe.stop()}},q)})),Cl.apply(this,arguments)}var Uu=function(){var q=(0,T.useModel)("global"),_=q.setLoading,me=(0,y.useState)(!1),Oe=Va()(me,2),Xe=Oe[0],pt=Oe[1],Ht=(0,qo.x)({}),on=Va()(Ht,2),Sn=on[0],Xn=on[1],_r=function(){return new Promise(function(so){if(Sn.isLogin){so(null);return}pt(!0)})},Hr=function(){var wa=w()(m()().mark(function so(){var mo,ho,yi,Qo,Mi,fs;return m()().wrap(function(So){for(;;)switch(So.prev=So.next){case 0:return So.prev=0,mo=localStorage.getItem(po.Uf.AUTH_TOKEN),So.next=4,Ou();case 4:ho=So.sent,yi=ho.id,Qo=ho.name,Mi=ho.status,fs=ho.isStaff,mo&&Mi===po.oC.Active&&Xn({isLogin:!0,username:Qo,userId:yi,token:mo,isStaff:fs}),So.next=16;break;case 12:So.prev=12,So.t0=So.catch(0),console.error("error",So.t0),Xn({isLogin:!1});case 16:case"end":return So.stop()}},so,null,[[0,12]])}));return function(){return wa.apply(this,arguments)}}(),ma=function(){var wa=w()(m()().mark(function so(mo){var ho,yi,Qo,Mi,fs,Yi,So,di,Ei;return m()().wrap(function(Xi){for(;;)switch(Xi.prev=Xi.next){case 0:return ho=mo.username,yi=mo.password,Qo=window.location.pathname,Mi=Qo.includes("page/login"),_(!0),Xi.prev=4,Xi.next=7,nl({username:ho,password:yi});case 7:fs=Xi.sent,Yi=fs.username,So=fs.userId,di=fs.token,Ei=fs.isStaff,Xn({isLogin:!0,username:Yi,token:di,userId:So,isStaff:Ei}),localStorage.setItem(po.Uf.AUTH_TOKEN,di),Mi||pt(!1),R.ZP.success((0,ds._w)("loginSuccess")),Xi.next=21;break;case 18:Xi.prev=18,Xi.t0=Xi.catch(4),R.ZP.error((0,ds._w)("loginAuthenticationFailed"));case 21:return Xi.prev=21,_(!1),Xi.finish(21);case 24:case"end":return Xi.stop()}},so,null,[[4,18,21,24]])}));return function(mo){return wa.apply(this,arguments)}}(),ja=function(){var wa=w()(m()().mark(function so(){return m()().wrap(function(ho){for(;;)switch(ho.prev=ho.next){case 0:return ho.prev=0,ho.next=3,Hs();case 3:Xn({isLogin:!1}),R.ZP.success((0,ds._w)("logoutSuccess")),localStorage.removeItem(po.Uf.AUTH_TOKEN),T.history.push("/"),ho.next=13;break;case 9:ho.prev=9,ho.t0=ho.catch(0),console.error("error",ho.t0),R.ZP.error((0,ds._w)("logoutFailed"));case 13:case"end":return ho.stop()}},so,null,[[0,9]])}));return function(){return wa.apply(this,arguments)}}();return{user:Sn,setUser:Xn,checkLoginStatus:Hr,onLogin:ma,onLogout:ja,showLoginModal:Xe,setShowLoginModal:pt,limitLoginAction:_r}},qu=e(1239),Ru=e(32694),ec=e(54518),ku=e(93059);function Wu(q,_,me){var Oe=new Date(q),Xe=Oe.getFullYear(),pt=(0,el.p)(Oe.getMonth()+1),Ht=(0,el.p)(Oe.getDate()),on=(0,el.p)(Oe.getHours()),Sn=(0,el.p)(Oe.getMinutes()),Xn=(0,el.p)(Oe.getSeconds()),_r=(0,el.p)(Oe.getMilliseconds(),3),Hr="".concat(Xe,"_").concat(pt,"_").concat(Ht,"_").concat(on,"_").concat(Sn,"_").concat(Xn,"_").concat(_r);return _&&(Hr="".concat(_,"_").concat(Hr)),me&&(Hr="".concat(Hr,".").concat(me)),Hr}function _u(q,_){var me=JSON.stringify(q),Oe=new Blob([me],{type:"application/json"}),Xe=URL.createObjectURL(Oe),pt=document.createElement("a");pt.href=Xe,pt.download=_,document.body.appendChild(pt),pt.click(),document.body.removeChild(pt),URL.revokeObjectURL(Xe)}var gu=function(_){return new Promise(function(me,Oe){var Xe=new Image;Xe.src=_,Xe.onload=function(){me(Xe)},Xe.onerror=function(){Oe(Xe)}})},Ll=e(67761),kl=e(46134),Nl=function(_,me){var Oe={info:{year:new Date().getFullYear(),version:"1.0",description:"Annotations in COCO format, labeled by DeepDataSpace",contributor:"",date_created:new Date().toISOString()},images:[],categories:[],annotations:[]},Xe={};return me.forEach(function(pt,Ht){var on=Ht;Xe[pt.name]=on,Oe.categories.push({id:on,name:pt.name})}),_.forEach(function(pt,Ht){var on=Ht;Oe.images.push({id:on,file_name:pt.fileName,width:pt.width,height:pt.height}),pt.objects.forEach(function(Sn){var Xn={id:Oe.annotations.length,image_id:on,bbox:[],area:0,segmentation:[],iscrowd:0};if(Xe&&Sn.categoryName&&Xe[Sn.categoryName]!==void 0&&(Xn.category_id=Xe[Sn.categoryName]),Sn.boundingBox){var _r=(0,kl.cO)(Sn.boundingBox,{width:pt.width,height:pt.height}),Hr=_r.x,ma=_r.y,ja=_r.width,wa=_r.height,so=ja*wa,mo=[Hr,ma,ja,wa];Object.assign(Xn,{area:so,bbox:mo})}if(Sn.segmentation){for(var ho=Sn.segmentation.split("/").map(function(pu){return pu.split(",").map(function(Cc){return parseFloat(Cc)})}),yi=ho.reduce(function(pu,Cc){var Pc=(0,kl.X6)(Cc),oc=(0,kl.I4)(Pc);return pu+oc},0),Qo=ho.flat(),Mi=[],fs=0;fs0){var va=Sn.mask,ms=(0,Ll.ei)(va,{width:pt.width,height:pt.height},"#fff");if(ms){var Al=(0,kl.e4)(ms),Ci=Al.area,mu=Al.bbox,pl=(0,kl.cO)(mu,{width:1,height:1}),Vl=pl.x,Ai=pl.y,Tu=pl.width,Sc=pl.height;Object.assign(Xn,{segmentation:va,area:Ci,bbox:[Vl,Ai,Tu,Sc]})}else Object.assign(Xn,{segmentation:va})}if(Sn.points&&Sn.points.length>0){for(var rl=Sn.points,jc=Sn.pointNames,Ec=Sn.lines,hl=Sn.categoryName,js=[],Zc=0,La=0;La*6=0||_||(["a","A"].includes(ho.key)&&Oe.page>1&&ja(Oe.page-1),["d","D"].includes(ho.key)&&Oe.page=0)&&(xt[Nt]=ct[Nt]);return xt}const v=["onClick","reloadDocument","replace","state","target","to"],h=null;function m(ct,lt){if(!ct){typeof console!="undefined"&&console.warn(lt);try{throw new Error(lt)}catch(xt){}}}function C(ct){let{basename:lt,children:xt,window:St}=ct,Nt=useRef();Nt.current==null&&(Nt.current=createBrowserHistory({window:St}));let _t=Nt.current,[Wt,yn]=useState({action:_t.action,location:_t.location});return useLayoutEffect(()=>_t.listen(yn),[_t]),createElement(Router,{basename:lt,children:xt,location:Wt.location,navigationType:Wt.action,navigator:_t})}function p(ct){let{basename:lt,children:xt,window:St}=ct,Nt=useRef();Nt.current==null&&(Nt.current=createHashHistory({window:St}));let _t=Nt.current,[Wt,yn]=useState({action:_t.action,location:_t.location});return useLayoutEffect(()=>_t.listen(yn),[_t]),createElement(Router,{basename:lt,children:xt,location:Wt.location,navigationType:Wt.action,navigator:_t})}function S(ct){let{basename:lt,children:xt,history:St}=ct;const[Nt,_t]=useState({action:St.action,location:St.location});return useLayoutEffect(()=>St.listen(_t),[St]),createElement(Router,{basename:lt,children:xt,location:Nt.location,navigationType:Nt.action,navigator:St})}function w(ct){return!!(ct.metaKey||ct.altKey||ct.ctrlKey||ct.shiftKey)}const y=(0,o.forwardRef)(function(lt,xt){let{onClick:St,reloadDocument:Nt,replace:_t=!1,state:Wt,target:yn,to:kn}=lt,hr=l(lt,v),cr=(0,s.useHref)(kn),Dn=F(kn,{replace:_t,state:Wt,target:yn});function Rr(or){St&&St(or),!or.defaultPrevented&&!Nt&&Dn(or)}return(0,o.createElement)("a",c({},hr,{href:cr,onClick:Rr,ref:xt,target:yn}))}),Z=null;function F(ct,lt){let{target:xt,replace:St,state:Nt}=lt===void 0?{}:lt,_t=(0,s.useNavigate)(),Wt=(0,s.useLocation)(),yn=(0,s.useResolvedPath)(ct);return(0,o.useCallback)(kn=>{if(kn.button===0&&(!xt||xt==="_self")&&!w(kn)){kn.preventDefault();let hr=!!St||(0,n.Ep)(Wt)===(0,n.Ep)(yn);_t(ct,{replace:hr,state:Nt})}},[Wt,_t,yn,St,Nt,xt,ct])}function R(ct){let lt=useRef(T(ct)),xt=useLocation(),St=useMemo(()=>{let Wt=T(xt.search);for(let yn of lt.current.keys())Wt.has(yn)||lt.current.getAll(yn).forEach(kn=>{Wt.append(yn,kn)});return Wt},[xt.search]),Nt=useNavigate(),_t=useCallback((Wt,yn)=>{Nt("?"+T(Wt),yn)},[Nt]);return[St,_t]}function T(ct){return ct===void 0&&(ct=""),new URLSearchParams(typeof ct=="string"||Array.isArray(ct)||ct instanceof URLSearchParams?ct:Object.keys(ct).reduce((lt,xt)=>{let St=ct[xt];return lt.concat(Array.isArray(St)?St.map(Nt=>[xt,Nt]):[[xt,St]])},[]))}var z=e(60581),A=["prefetch"];function L(ct){var lt,xt=ct.prefetch,St=(0,t.Z)(ct,A),Nt=(0,z.Ov)(),_t=typeof ct.to=="string"?ct.to:(lt=ct.to)===null||lt===void 0?void 0:lt.pathname;return _t?o.createElement(y,(0,i.Z)({onMouseEnter:function(){var yn;return xt&&_t&&((yn=Nt.preloadRoute)===null||yn===void 0?void 0:yn.call(Nt,_t))}},St),ct.children):null}var I=e(83753);function $(){"use strict";$=function(){return ct};var ct={},lt=Object.prototype,xt=lt.hasOwnProperty,St=Object.defineProperty||function(Tn,xn,Gn){Tn[xn]=Gn.value},Nt=typeof Symbol=="function"?Symbol:{},_t=Nt.iterator||"@@iterator",Wt=Nt.asyncIterator||"@@asyncIterator",yn=Nt.toStringTag||"@@toStringTag";function kn(Tn,xn,Gn){return Object.defineProperty(Tn,xn,{value:Gn,enumerable:!0,configurable:!0,writable:!0}),Tn[xn]}try{kn({},"")}catch(Tn){kn=function(Gn,Lr,zr){return Gn[Lr]=zr}}function hr(Tn,xn,Gn,Lr){var zr=xn&&xn.prototype instanceof Rr?xn:Rr,Br=Object.create(zr.prototype),Ma=new Fr(Lr||[]);return St(Br,"_invoke",{value:$r(Tn,Gn,Ma)}),Br}function cr(Tn,xn,Gn){try{return{type:"normal",arg:Tn.call(xn,Gn)}}catch(Lr){return{type:"throw",arg:Lr}}}ct.wrap=hr;var Dn={};function Rr(){}function or(){}function Gr(){}var Ir={};kn(Ir,_t,function(){return this});var Pn=Object.getPrototypeOf,vn=Pn&&Pn(Pn(xa([])));vn&&vn!==lt&&xt.call(vn,_t)&&(Ir=vn);var Nn=Gr.prototype=Rr.prototype=Object.create(Ir);function Zn(Tn){["next","throw","return"].forEach(function(xn){kn(Tn,xn,function(Gn){return this._invoke(xn,Gn)})})}function yr(Tn,xn){function Gn(zr,Br,Ma,co){var ro=cr(Tn[zr],Tn,Br);if(ro.type!=="throw"){var xo=ro.arg,Pa=xo.value;return Pa&&(0,I.Z)(Pa)=="object"&&xt.call(Pa,"__await")?xn.resolve(Pa.__await).then(function(Ua){Gn("next",Ua,Ma,co)},function(Ua){Gn("throw",Ua,Ma,co)}):xn.resolve(Pa).then(function(Ua){xo.value=Ua,Ma(xo)},function(Ua){return Gn("throw",Ua,Ma,co)})}co(ro.arg)}var Lr;St(this,"_invoke",{value:function(Br,Ma){function co(){return new xn(function(ro,xo){Gn(Br,Ma,ro,xo)})}return Lr=Lr?Lr.then(co,co):co()}})}function $r(Tn,xn,Gn){var Lr="suspendedStart";return function(zr,Br){if(Lr==="executing")throw new Error("Generator is already running");if(Lr==="completed"){if(zr==="throw")throw Br;return la()}for(Gn.method=zr,Gn.arg=Br;;){var Ma=Gn.delegate;if(Ma){var co=Kr(Ma,Gn);if(co){if(co===Dn)continue;return co}}if(Gn.method==="next")Gn.sent=Gn._sent=Gn.arg;else if(Gn.method==="throw"){if(Lr==="suspendedStart")throw Lr="completed",Gn.arg;Gn.dispatchException(Gn.arg)}else Gn.method==="return"&&Gn.abrupt("return",Gn.arg);Lr="executing";var ro=cr(Tn,xn,Gn);if(ro.type==="normal"){if(Lr=Gn.done?"completed":"suspendedYield",ro.arg===Dn)continue;return{value:ro.arg,done:Gn.done}}ro.type==="throw"&&(Lr="completed",Gn.method="throw",Gn.arg=ro.arg)}}}function Kr(Tn,xn){var Gn=xn.method,Lr=Tn.iterator[Gn];if(Lr===void 0)return xn.delegate=null,Gn==="throw"&&Tn.iterator.return&&(xn.method="return",xn.arg=void 0,Kr(Tn,xn),xn.method==="throw")||Gn!=="return"&&(xn.method="throw",xn.arg=new TypeError("The iterator does not provide a '"+Gn+"' method")),Dn;var zr=cr(Lr,Tn.iterator,xn.arg);if(zr.type==="throw")return xn.method="throw",xn.arg=zr.arg,xn.delegate=null,Dn;var Br=zr.arg;return Br?Br.done?(xn[Tn.resultName]=Br.value,xn.next=Tn.nextLoc,xn.method!=="return"&&(xn.method="next",xn.arg=void 0),xn.delegate=null,Dn):Br:(xn.method="throw",xn.arg=new TypeError("iterator result is not an object"),xn.delegate=null,Dn)}function ra(Tn){var xn={tryLoc:Tn[0]};1 in Tn&&(xn.catchLoc=Tn[1]),2 in Tn&&(xn.finallyLoc=Tn[2],xn.afterLoc=Tn[3]),this.tryEntries.push(xn)}function Xr(Tn){var xn=Tn.completion||{};xn.type="normal",delete xn.arg,Tn.completion=xn}function Fr(Tn){this.tryEntries=[{tryLoc:"root"}],Tn.forEach(ra,this),this.reset(!0)}function xa(Tn){if(Tn){var xn=Tn[_t];if(xn)return xn.call(Tn);if(typeof Tn.next=="function")return Tn;if(!isNaN(Tn.length)){var Gn=-1,Lr=function zr(){for(;++Gn=0;--zr){var Br=this.tryEntries[zr],Ma=Br.completion;if(Br.tryLoc==="root")return Lr("end");if(Br.tryLoc<=this.prev){var co=xt.call(Br,"catchLoc"),ro=xt.call(Br,"finallyLoc");if(co&&ro){if(this.prev=0;--Lr){var zr=this.tryEntries[Lr];if(zr.tryLoc<=this.prev&&xt.call(zr,"finallyLoc")&&this.prev=0;--Gn){var Lr=this.tryEntries[Gn];if(Lr.finallyLoc===xn)return this.complete(Lr.completion,Lr.afterLoc),Xr(Lr),Dn}},catch:function(xn){for(var Gn=this.tryEntries.length-1;Gn>=0;--Gn){var Lr=this.tryEntries[Gn];if(Lr.tryLoc===xn){var zr=Lr.completion;if(zr.type==="throw"){var Br=zr.arg;Xr(Lr)}return Br}}throw new Error("illegal catch attempt")},delegateYield:function(xn,Gn,Lr){return this.delegate={iterator:xa(xn),resultName:Gn,nextLoc:Lr},this.method==="next"&&(this.arg=void 0),Dn}},ct}var B=e(5452);function K(ct,lt,xt,St,Nt,_t,Wt){try{var yn=ct[_t](Wt),kn=yn.value}catch(hr){xt(hr);return}yn.done?lt(kn):Promise.resolve(kn).then(St,Nt)}function H(ct){return function(){var lt=this,xt=arguments;return new Promise(function(St,Nt){var _t=ct.apply(lt,xt);function Wt(kn){K(_t,St,Nt,Wt,yn,"next",kn)}function yn(kn){K(_t,St,Nt,Wt,yn,"throw",kn)}Wt(void 0)})}}var ie=e(50648);function ce(ct,lt){var xt=typeof Symbol!="undefined"&&ct[Symbol.iterator]||ct["@@iterator"];if(!xt){if(Array.isArray(ct)||(xt=(0,ie.Z)(ct))||lt&&ct&&typeof ct.length=="number"){xt&&(ct=xt);var St=0,Nt=function(){};return{s:Nt,n:function(){return St>=ct.length?{done:!0}:{done:!1,value:ct[St++]}},e:function(hr){throw hr},f:Nt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _t=!0,Wt=!1,yn;return{s:function(){xt=xt.call(ct)},n:function(){var hr=xt.next();return _t=hr.done,hr},e:function(hr){Wt=!0,yn=hr},f:function(){try{!_t&&xt.return!=null&&xt.return()}finally{if(Wt)throw yn}}}}var te=e(40642);function W(ct){if(typeof Symbol!="undefined"&&ct[Symbol.iterator]!=null||ct["@@iterator"]!=null)return Array.from(ct)}var G=e(8010);function O(ct){return(0,te.Z)(ct)||W(ct)||(0,ie.Z)(ct)||(0,G.Z)()}function k(ct,lt){if(!(ct instanceof lt))throw new TypeError("Cannot call a class as a function")}var Y=e(4566);function P(ct,lt){for(var xt=0;xt-1,"register failed, invalid key ".concat(Nt," ").concat(xt.path?"from plugin ".concat(xt.path):"",".")),St.hooks[Nt]=(St.hooks[Nt]||[]).concat(xt.apply[Nt])})}},{key:"getHooks",value:function(xt){var St=xt.split("."),Nt=O(St),_t=Nt[0],Wt=Nt.slice(1),yn=this.hooks[_t]||[];return Wt.length&&(yn=yn.map(function(kn){try{var hr=kn,cr=ce(Wt),Dn;try{for(cr.s();!(Dn=cr.n()).done;){var Rr=Dn.value;hr=hr[Rr]}}catch(or){cr.e(or)}finally{cr.f()}return hr}catch(or){return null}}).filter(Boolean)),yn}},{key:"applyPlugins",value:function(xt){var St=xt.key,Nt=xt.type,_t=xt.initialValue,Wt=xt.args,yn=xt.async,kn=this.getHooks(St)||[];switch(Wt&&Ce((0,I.Z)(Wt)==="object","applyPlugins failed, args must be plain object."),yn&&Ce(Nt===Ne.modify||Nt===Ne.event,"async only works with modify and event type."),Nt){case Ne.modify:return yn?kn.reduce(function(){var hr=H($().mark(function cr(Dn,Rr){var or;return $().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:if(Ce(typeof Rr=="function"||(0,I.Z)(Rr)==="object"||Me(Rr),"applyPlugins failed, all hooks for key ".concat(St," must be function, plain object or Promise.")),!Me(Dn)){Ir.next=5;break}return Ir.next=4,Dn;case 4:Dn=Ir.sent;case 5:if(typeof Rr!="function"){Ir.next=16;break}if(or=Rr(Dn,Wt),!Me(or)){Ir.next=13;break}return Ir.next=10,or;case 10:return Ir.abrupt("return",Ir.sent);case 13:return Ir.abrupt("return",or);case 14:Ir.next=21;break;case 16:if(!Me(Rr)){Ir.next=20;break}return Ir.next=19,Rr;case 19:Rr=Ir.sent;case 20:return Ir.abrupt("return",(0,B.Z)((0,B.Z)({},Dn),Rr));case 21:case"end":return Ir.stop()}},cr)}));return function(cr,Dn){return hr.apply(this,arguments)}}(),Me(_t)?_t:Promise.resolve(_t)):kn.reduce(function(hr,cr){return Ce(typeof cr=="function"||(0,I.Z)(cr)==="object","applyPlugins failed, all hooks for key ".concat(St," must be function or plain object.")),typeof cr=="function"?cr(hr,Wt):(0,B.Z)((0,B.Z)({},hr),cr)},_t);case Ne.event:return H($().mark(function hr(){var cr,Dn,Rr,or;return $().wrap(function(Ir){for(;;)switch(Ir.prev=Ir.next){case 0:cr=ce(kn),Ir.prev=1,cr.s();case 3:if((Dn=cr.n()).done){Ir.next=12;break}if(Rr=Dn.value,Ce(typeof Rr=="function","applyPlugins failed, all hooks for key ".concat(St," must be function.")),or=Rr(Wt),!(yn&&Me(or))){Ir.next=10;break}return Ir.next=10,or;case 10:Ir.next=3;break;case 12:Ir.next=17;break;case 14:Ir.prev=14,Ir.t0=Ir.catch(1),cr.e(Ir.t0);case 17:return Ir.prev=17,cr.f(),Ir.finish(17);case 20:case"end":return Ir.stop()}},hr,null,[[1,14,17,20]])}))();case Ne.compose:return function(){return ge({fns:kn.concat(_t),args:Wt})()}}}}],[{key:"create",value:function(xt){var St=new ct({validKeys:xt.validKeys});return xt.plugins.forEach(function(Nt){St.register(Nt)}),St}}]),ct}(),Ve=e(12763),qe=e(16962),Mt=e.n(qe),wt=0,gt=0;function Lt(ct,lt){if(!1)var xt}function ke(ct){return JSON.stringify(ct,null,2)}function He(ct){var lt=ct.length>1?ct.map(et).join(" "):ct[0];return Mt()(lt)==="object"?"".concat(ke(lt)):lt.toString()}function et(ct){return Mt()(ct)==="object"?"".concat(JSON.stringify(ct)):ct.toString()}var Fe={log:function(){for(var lt=arguments.length,xt=new Array(lt),St=0;St-1&&(_t=setTimeout(function(){le.delete(lt)},xt)),le.set(lt,{data:St,timer:_t,startTime:new Date().getTime()})},xe=function(lt){var xt=le.get(lt);return{data:xt==null?void 0:xt.data,startTime:xt==null?void 0:xt.startTime}},Ze=function(ct,lt){var xt=typeof Symbol=="function"&&ct[Symbol.iterator];if(!xt)return ct;var St=xt.call(ct),Nt,_t=[],Wt;try{for(;(lt===void 0||lt-- >0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},pe=function(){for(var ct=[],lt=0;lt0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},oe=function(){for(var ct=[],lt=0;lt0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},Bn=function(){for(var ct=[],lt=0;lt0){var sr=Fr&&((wr=getCache(Fr))===null||wr===void 0?void 0:wr.startTime)||0;xn===-1||new Date().getTime()-sr<=xn||Object.values(Bt).forEach(function(dr){dr.refresh()})}else ea.current.apply(ea,Bn(Zn))},[]);var kr=useCallback(function(){Object.values(Jn.current).forEach(function(wr){wr.unmount()}),xo.current=fn,Jt({}),Jn.current={}},[Jt]);useUpdateEffect(function(){Wt||Object.values(Jn.current).forEach(function(wr){wr.refresh()})},Bn(Nt)),useEffect(function(){return function(){Object.values(Jn.current).forEach(function(wr){wr.unmount()})}},[]);var Dr=useCallback(function(wr){return function(){console.warn("You should't call "+wr+" when service not executed once.")}},[]);return Gt(Gt({loading:Ma&&!Wt||Rr,data:zr,error:void 0,params:[],cancel:Dr("cancel"),refresh:Dr("refresh"),mutate:Dr("mutate")},Bt[xo.current]||{}),{run:br,fetches:Bt,reset:kr})}var Mn=null,_e=function(){return _e=Object.assign||function(ct){for(var lt,xt=1,St=arguments.length;xt0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},an=function(){for(var ct=[],lt=0;lt0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},Dt=function(){for(var ct=[],lt=0;ltro&&(Ma=Math.max(1,ro)),Xr({current:Ma,pageSize:co})},[Fr,Xr]),Tn=useCallback(function(zr){la(zr,Zn)},[la,Zn]),xn=useCallback(function(zr){la(vn,zr)},[la,vn]),Gn=useRef(Tn);Gn.current=Tn,useUpdateEffect(function(){lt.manual||Gn.current(1)},Dt(Wt));var Lr=useCallback(function(zr,Br,Ma){Xr({current:zr.current,pageSize:zr.pageSize||Nt,filters:Br,sorter:Ma})},[ra,$r,Xr]);return $t({loading:or,data:cr,params:Dn,run:Rr,pagination:{current:vn,pageSize:Zn,total:Fr,totalPage:xa,onChange:la,changeCurrent:Tn,changePageSize:xn},tableProps:{dataSource:(cr==null?void 0:cr.list)||[],loading:or,onChange:Lr,pagination:{current:vn,pageSize:Zn,total:Fr}},sorter:$r,filters:ra},Gr)}var en=null,Hn=o.createContext({});Hn.displayName="UseRequestConfigContext";var Rn=Hn,pr=function(){return pr=Object.assign||function(ct){for(var lt,xt=1,St=arguments.length;xt0)&&!(Nt=St.next()).done;)_t.push(Nt.value)}catch(yn){Wt={error:yn}}finally{try{Nt&&!Nt.done&&(xt=St.return)&&xt.call(St)}finally{if(Wt)throw Wt.error}}return _t},ar=function(){for(var ct=[],lt=0;lt1&&arguments[1]!==void 0?arguments[1]:{};return useUmiRequest(ct,_objectSpread({formatResult:function(St){return St==null?void 0:St.data},requestMethod:function(St){if(typeof St=="string")return Fn(St);if(_typeof(St)==="object"){var Nt=St.url,_t=_objectWithoutProperties(St,Ft);return Fn(Nt,_t)}throw new Error("request options error")}},lt))}var tn,kt,hn=function(){return kt||(kt=(0,zt.We)().applyPlugins({key:"request",type:Ne.modify,initialValue:{}}),kt)},dn=function(){var lt,xt;if(tn)return tn;var St=hn();return tn=X().create(St),St==null||(lt=St.requestInterceptors)===null||lt===void 0||lt.forEach(function(Nt){Nt instanceof Array?tn.interceptors.request.use(function(_t){var Wt=_t.url;if(Nt[0].length===2){var yn=Nt[0](Wt,_t),kn=yn.url,hr=yn.options;return ee()(ee()({},hr),{},{url:kn})}return Nt[0](_t)},Nt[1]):tn.interceptors.request.use(function(_t){var Wt=_t.url;if(Nt.length===2){var yn=Nt(Wt,_t),kn=yn.url,hr=yn.options;return ee()(ee()({},hr),{},{url:kn})}return Nt(_t)})}),St==null||(xt=St.responseInterceptors)===null||xt===void 0||xt.forEach(function(Nt){Nt instanceof Array?tn.interceptors.response.use(Nt[0],Nt[1]):tn.interceptors.response.use(Nt)}),tn.interceptors.response.use(function(Nt){var _t,Wt=Nt.data;return(Wt==null?void 0:Wt.success)===!1&&St!==null&&St!==void 0&&(_t=St.errorConfig)!==null&&_t!==void 0&&_t.errorThrower&&St.errorConfig.errorThrower(Wt),Nt}),tn},Fn=function(lt){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{method:"GET"},St=dn(),Nt=hn(),_t=xt.getResponse,Wt=_t===void 0?!1:_t,yn=xt.requestInterceptors,kn=xt.responseInterceptors,hr=yn==null?void 0:yn.map(function(Dn){return Dn instanceof Array?St.interceptors.request.use(function(Rr){var or=Rr.url;if(Dn[0].length===2){var Gr=Dn[0](or,Rr),Ir=Gr.url,Pn=Gr.options;return ee()(ee()({},Pn),{},{url:Ir})}return Dn[0](Rr)},Dn[1]):St.interceptors.request.use(function(Rr){var or=Rr.url;if(Dn.length===2){var Gr=Dn(or,Rr),Ir=Gr.url,Pn=Gr.options;return ee()(ee()({},Pn),{},{url:Ir})}return Dn(Rr)})}),cr=kn==null?void 0:kn.map(function(Dn){return Dn instanceof Array?St.interceptors.response.use(Dn[0],Dn[1]):St.interceptors.response.use(Dn)});return new Promise(function(Dn,Rr){St.request(ee()(ee()({},xt),{},{url:lt})).then(function(or){hr==null||hr.forEach(function(Gr){St.interceptors.request.eject(Gr)}),cr==null||cr.forEach(function(Gr){St.interceptors.response.eject(Gr)}),Dn(Wt?or:or.data)}).catch(function(or){hr==null||hr.forEach(function(Pn){St.interceptors.request.eject(Pn)}),cr==null||cr.forEach(function(Pn){St.interceptors.response.eject(Pn)});try{var Gr,Ir=Nt==null||(Gr=Nt.errorConfig)===null||Gr===void 0?void 0:Gr.errorHandler;Ir&&Ir(or,xt,Nt)}catch(Pn){Rr(Pn)}Rr(or)})})},tr=function(){}},96662:function(M,b,e){"use strict";e.d(b,{J:function(){return t}});var i=e(58757),t=i.createContext(null)},64470:function(M,b,e){"use strict";e.d(b,{Mf:function(){return c}});var i=e(58757),t=e(96662),o=e(35667),s=function(){return i.useContext(t.J)},n=function(v){return _jsx(_Fragment,{children:v.accessible?v.children:v.fallback})},c=function(v){var h=s(),m=i.useMemo(function(){var C=function p(S,w,y){var Z,F,R=S.access,T=S;if(!R&&w&&(R=w,T=y),S.unaccessible=!1,typeof R=="string"){var z=h[R];typeof z=="function"?S.unaccessible=!z(T):typeof z=="boolean"?S.unaccessible=!z:typeof z=="undefined"&&(S.unaccessible=!0)}if((Z=S.children)!==null&&Z!==void 0&&Z.length){var A=!S.children.reduce(function(I,$){return p($,R,S),I||!$.unaccessible},!1);A&&(S.unaccessible=!0)}if((F=S.routes)!==null&&F!==void 0&&F.length){var L=!S.routes.reduce(function(I,$){return p($,R,S),I||!$.unaccessible},!1);L&&(S.unaccessible=!0)}return S};return v.map(function(p){return C(p)})},[v.length,h]);return m}},93325:function(M,b,e){"use strict";e.d(b,{_H:function(){return i._H},pD:function(){return T},wv:function(){return i.wv},Kd:function(){return i.Kd},i_:function(){return i.i_},YB:function(){return i.YB}});var i=e(16221),t=e(88205),o=e.n(t),s=e(2657),n=e(63900),c=e.n(n),l=e(62376),v=e.n(l),h=e(58757),m=e(73267),C=e(93430),p=e(85706),S=e(35667),w=["overlayClassName"],y=["globalIconClassName","postLocalesData","onItemClick","icon","style","reload"],Z=function(A){var L=A.overlayClassName,I=v()(A,w);return(0,S.jsx)(m.Z,c()({overlayClassName:L},I))},F=function(A){return A.reduce(function(L,I){return I.lang?_objectSpread(_objectSpread({},L),{},_defineProperty({},I.lang,I)):L},{})},R={"ar-EG":{lang:"ar-EG",label:"\u0627\u0644\u0639\u0631\u0628\u064A\u0629",icon:"\u{1F1EA}\u{1F1EC}",title:"\u0644\u063A\u0629"},"az-AZ":{lang:"az-AZ",label:"Az\u0259rbaycan dili",icon:"\u{1F1E6}\u{1F1FF}",title:"Dil"},"bg-BG":{lang:"bg-BG",label:"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438 \u0435\u0437\u0438\u043A",icon:"\u{1F1E7}\u{1F1EC}",title:"\u0435\u0437\u0438\u043A"},"bn-BD":{lang:"bn-BD",label:"\u09AC\u09BE\u0982\u09B2\u09BE",icon:"\u{1F1E7}\u{1F1E9}",title:"\u09AD\u09BE\u09B7\u09BE"},"ca-ES":{lang:"ca-ES",label:"Catal\xE1",icon:"\u{1F1E8}\u{1F1E6}",title:"llengua"},"cs-CZ":{lang:"cs-CZ",label:"\u010Ce\u0161tina",icon:"\u{1F1E8}\u{1F1FF}",title:"Jazyk"},"da-DK":{lang:"da-DK",label:"Dansk",icon:"\u{1F1E9}\u{1F1F0}",title:"Sprog"},"de-DE":{lang:"de-DE",label:"Deutsch",icon:"\u{1F1E9}\u{1F1EA}",title:"Sprache"},"el-GR":{lang:"el-GR",label:"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC",icon:"\u{1F1EC}\u{1F1F7}",title:"\u0393\u03BB\u03CE\u03C3\u03C3\u03B1"},"en-GB":{lang:"en-GB",label:"English",icon:"\u{1F1EC}\u{1F1E7}",title:"Language"},"en-US":{lang:"en-US",label:"English",icon:"\u{1F1FA}\u{1F1F8}",title:"Language"},"es-ES":{lang:"es-ES",label:"Espa\xF1ol",icon:"\u{1F1EA}\u{1F1F8}",title:"Idioma"},"et-EE":{lang:"et-EE",label:"Eesti",icon:"\u{1F1EA}\u{1F1EA}",title:"Keel"},"fa-IR":{lang:"fa-IR",label:"\u0641\u0627\u0631\u0633\u06CC",icon:"\u{1F1EE}\u{1F1F7}",title:"\u0632\u0628\u0627\u0646"},"fi-FI":{lang:"fi-FI",label:"Suomi",icon:"\u{1F1EB}\u{1F1EE}",title:"Kieli"},"fr-BE":{lang:"fr-BE",label:"Fran\xE7ais",icon:"\u{1F1E7}\u{1F1EA}",title:"Langue"},"fr-FR":{lang:"fr-FR",label:"Fran\xE7ais",icon:"\u{1F1EB}\u{1F1F7}",title:"Langue"},"ga-IE":{lang:"ga-IE",label:"Gaeilge",icon:"\u{1F1EE}\u{1F1EA}",title:"Teanga"},"he-IL":{lang:"he-IL",label:"\u05E2\u05D1\u05E8\u05D9\u05EA",icon:"\u{1F1EE}\u{1F1F1}",title:"\u05E9\u05E4\u05D4"},"hi-IN":{lang:"hi-IN",label:"\u0939\u093F\u0928\u094D\u0926\u0940, \u0939\u093F\u0902\u0926\u0940",icon:"\u{1F1EE}\u{1F1F3}",title:"\u092D\u093E\u0937\u093E: \u0939\u093F\u0928\u094D\u0926\u0940"},"hr-HR":{lang:"hr-HR",label:"Hrvatski jezik",icon:"\u{1F1ED}\u{1F1F7}",title:"Jezik"},"hu-HU":{lang:"hu-HU",label:"Magyar",icon:"\u{1F1ED}\u{1F1FA}",title:"Nyelv"},"hy-AM":{lang:"hu-HU",label:"\u0540\u0561\u0575\u0565\u0580\u0565\u0576",icon:"\u{1F1E6}\u{1F1F2}",title:"\u053C\u0565\u0566\u0578\u0582"},"id-ID":{lang:"id-ID",label:"Bahasa Indonesia",icon:"\u{1F1EE}\u{1F1E9}",title:"Bahasa"},"it-IT":{lang:"it-IT",label:"Italiano",icon:"\u{1F1EE}\u{1F1F9}",title:"Linguaggio"},"is-IS":{lang:"is-IS",label:"\xCDslenska",icon:"\u{1F1EE}\u{1F1F8}",title:"Tungum\xE1l"},"ja-JP":{lang:"ja-JP",label:"\u65E5\u672C\u8A9E",icon:"\u{1F1EF}\u{1F1F5}",title:"\u8A00\u8A9E"},"ku-IQ":{lang:"ku-IQ",label:"\u06A9\u0648\u0631\u062F\u06CC",icon:"\u{1F1EE}\u{1F1F6}",title:"Ziman"},"kn-IN":{lang:"kn-IN",label:"\u0C95\u0CA8\u0CCD\u0CA8\u0CA1",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0CAD\u0CBE\u0CB7\u0CC6"},"ko-KR":{lang:"ko-KR",label:"\uD55C\uAD6D\uC5B4",icon:"\u{1F1F0}\u{1F1F7}",title:"\uC5B8\uC5B4"},"lv-LV":{lang:"lv-LV",label:"Latvie\u0161u valoda",icon:"\u{1F1F1}\u{1F1EE}",title:"Kalba"},"mk-MK":{lang:"mk-MK",label:"\u043C\u0430\u043A\u0435\u0434\u043E\u043D\u0441\u043A\u0438 \u0458\u0430\u0437\u0438\u043A",icon:"\u{1F1F2}\u{1F1F0}",title:"\u0408\u0430\u0437\u0438\u043A"},"mn-MN":{lang:"mn-MN",label:"\u041C\u043E\u043D\u0433\u043E\u043B \u0445\u044D\u043B",icon:"\u{1F1F2}\u{1F1F3}",title:"\u0425\u044D\u043B"},"ms-MY":{lang:"ms-MY",label:"\u0628\u0647\u0627\u0633 \u0645\u0644\u0627\u064A\u0648\u200E",icon:"\u{1F1F2}\u{1F1FE}",title:"Bahasa"},"nb-NO":{lang:"nb-NO",label:"Norsk",icon:"\u{1F1F3}\u{1F1F4}",title:"Spr\xE5k"},"ne-NP":{lang:"ne-NP",label:"\u0928\u0947\u092A\u093E\u0932\u0940",icon:"\u{1F1F3}\u{1F1F5}",title:"\u092D\u093E\u0937\u093E"},"nl-BE":{lang:"nl-BE",label:"Vlaams",icon:"\u{1F1E7}\u{1F1EA}",title:"Taal"},"nl-NL":{lang:"nl-NL",label:"Vlaams",icon:"\u{1F1F3}\u{1F1F1}",title:"Taal"},"pl-PL":{lang:"pl-PL",label:"Polski",icon:"\u{1F1F5}\u{1F1F1}",title:"J\u0119zyk"},"pt-BR":{lang:"pt-BR",label:"Portugu\xEAs",icon:"\u{1F1E7}\u{1F1F7}",title:"Idiomas"},"pt-PT":{lang:"pt-PT",label:"Portugu\xEAs",icon:"\u{1F1F5}\u{1F1F9}",title:"Idiomas"},"ro-RO":{lang:"ro-RO",label:"Rom\xE2n\u0103",icon:"\u{1F1F7}\u{1F1F4}",title:"Limba"},"ru-RU":{lang:"ru-RU",label:"\u0420\u0443\u0441\u0441\u043A\u0438\u0439",icon:"\u{1F1F7}\u{1F1FA}",title:"\u044F\u0437\u044B\u043A"},"sk-SK":{lang:"sk-SK",label:"Sloven\u010Dina",icon:"\u{1F1F8}\u{1F1F0}",title:"Jazyk"},"sr-RS":{lang:"sr-RS",label:"\u0441\u0440\u043F\u0441\u043A\u0438 \u0458\u0435\u0437\u0438\u043A",icon:"\u{1F1F8}\u{1F1F7}",title:"\u0408\u0435\u0437\u0438\u043A"},"sl-SI":{lang:"sl-SI",label:"Sloven\u0161\u010Dina",icon:"\u{1F1F8}\u{1F1F1}",title:"Jezik"},"sv-SE":{lang:"sv-SE",label:"Svenska",icon:"\u{1F1F8}\u{1F1EA}",title:"Spr\xE5k"},"ta-IN":{lang:"ta-IN",label:"\u0BA4\u0BAE\u0BBF\u0BB4\u0BCD",icon:"\u{1F1EE}\u{1F1F3}",title:"\u0BAE\u0BCA\u0BB4\u0BBF"},"th-TH":{lang:"th-TH",label:"\u0E44\u0E17\u0E22",icon:"\u{1F1F9}\u{1F1ED}",title:"\u0E20\u0E32\u0E29\u0E32"},"tr-TR":{lang:"tr-TR",label:"T\xFCrk\xE7e",icon:"\u{1F1F9}\u{1F1F7}",title:"Dil"},"uk-UA":{lang:"uk-UA",label:"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430",icon:"\u{1F1FA}\u{1F1F0}",title:"\u041C\u043E\u0432\u0430"},"vi-VN":{lang:"vi-VN",label:"Ti\u1EBFng Vi\u1EC7t",icon:"\u{1F1FB}\u{1F1F3}",title:"Ng\xF4n ng\u1EEF"},"zh-CN":{lang:"zh-CN",label:"\u7B80\u4F53\u4E2D\u6587",icon:"\u{1F1E8}\u{1F1F3}",title:"\u8BED\u8A00"},"zh-TW":{lang:"zh-TW",label:"\u7E41\u9AD4\u4E2D\u6587",icon:"\u{1F1ED}\u{1F1F0}",title:"\u8A9E\u8A00"}},T=function(A){var L,I=A.globalIconClassName,$=A.postLocalesData,B=A.onItemClick,K=A.icon,H=A.style,ie=A.reload,ce=v()(A,y),te=(0,h.useState)(function(){return(0,i.Kd)()}),W=o()(te,2),G=W[0],O=W[1],k=function(Ve){var qe=Ve.key;(0,i.i_)(qe,ie),O((0,i.Kd)())},Y=(0,i.XZ)().map(function(Qe){return R[Qe]||{lang:Qe,label:Qe,icon:"\u{1F310}",title:Qe}}),P=($==null?void 0:$(Y))||Y,Q=B?function(Qe){return B(Qe)}:k,fe={minWidth:"160px"},Ce={marginRight:"8px"},ge={selectedKeys:[G],onClick:Q,items:P.map(function(Qe){return{key:Qe.lang||Qe.key,style:fe,label:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)("span",{role:"img","aria-label":(Qe==null?void 0:Qe.label)||"en-US",style:Ce,children:(Qe==null?void 0:Qe.icon)||"\u{1F310}"}),(Qe==null?void 0:Qe.label)||"en-US"]})}})},Me;C.Z.startsWith("5.")||C.Z.startsWith("4.24.")?Me={menu:ge}:C.Z.startsWith("3.")?Me={overlay:(0,S.jsx)(p.Z,{children:ge.items.map(function(Qe){return(0,S.jsx)(p.Z.Item,{onClick:Qe.onClick,children:Qe.label},Qe.key)})})}:Me={overlay:(0,S.jsx)(p.Z,c()({},ge))};var Ne=c()({cursor:"pointer",padding:"12px",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:18,verticalAlign:"middle"},H);return(0,S.jsx)(Z,c()(c()(c()({},Me),{},{placement:"bottomRight"},ce),{},{children:(0,S.jsx)("span",{className:I,style:Ne,children:(0,S.jsx)("i",{className:"anticon",title:(L=P[G])===null||L===void 0?void 0:L.title,children:K||(0,S.jsxs)("svg",{viewBox:"0 0 24 24",focusable:"false",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:[(0,S.jsx)("path",{d:"M0 0h24v24H0z",fill:"none"}),(0,S.jsx)("path",{d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z ",className:"css-c4d79v"})]})})})}))}},16221:function(M,b,e){"use strict";e.d(b,{_H:function(){return vn},PZ:function(){return Lr},eU:function(){return I},B:function(){return Gn},wv:function(){return jo},XZ:function(){return Bo},Mg:function(){return Ua},lw:function(){return ro},Kd:function(){return Pa},H8:function(){return zr},i_:function(){return eo},YB:function(){return Nn}});var i=e(62376),t=e.n(i),o=e(63900),s=e.n(o),n=e(77016),c=e.n(n),l=e(61697),v=e.n(l),h=e(1769),m=e.n(h),C=e(19881),p=e.n(C),S=e(58757),w=e.t(S,2),y=e(2657),Z=e(10063),F=e.n(Z),R=F()||Z;function T(ot){return ot.displayName||ot.name||"Component"}var z=S.createContext(null),A=z.Consumer,L=z.Provider,I=L,$=z;function B(ot,yt){var be=yt||{},Bt=be.intlPropName,Jt=Bt===void 0?"intl":Bt,Jn=be.forwardRef,Kn=Jn===void 0?!1:Jn,br=be.enforceContext,ea=br===void 0?!0:br,ka=function(Dr){return React.createElement(A,null,function(wr){return ea&&invariantIntlContext(wr),React.createElement(ot,Object.assign({},Dr,_defineProperty({},Jt,wr),{ref:Kn?Dr.forwardedRef:null}))})};return ka.displayName="injectIntl(".concat(T(ot),")"),ka.WrappedComponent=ot,R(Kn?React.forwardRef(function(kr,Dr){return React.createElement(ka,Object.assign({},kr,{forwardedRef:Dr}))}):ka,ot)}var K;(function(ot){ot[ot.literal=0]="literal",ot[ot.argument=1]="argument",ot[ot.number=2]="number",ot[ot.date=3]="date",ot[ot.time=4]="time",ot[ot.select=5]="select",ot[ot.plural=6]="plural",ot[ot.pound=7]="pound"})(K||(K={}));function H(ot){return ot.type===K.literal}function ie(ot){return ot.type===K.argument}function ce(ot){return ot.type===K.number}function te(ot){return ot.type===K.date}function W(ot){return ot.type===K.time}function G(ot){return ot.type===K.select}function O(ot){return ot.type===K.plural}function k(ot){return ot.type===K.pound}function Y(ot){return!!(ot&&typeof ot=="object"&&ot.type===0)}function P(ot){return!!(ot&&typeof ot=="object"&&ot.type===1)}function Q(ot){return{type:K.literal,value:ot}}function fe(ot,yt){return{type:K.number,value:ot,style:yt}}var Ce=function(){var ot=function(yt,be){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Jt){Bt.__proto__=Jt}||function(Bt,Jt){for(var Jn in Jt)Jt.hasOwnProperty(Jn)&&(Bt[Jn]=Jt[Jn])},ot(yt,be)};return function(yt,be){ot(yt,be);function Bt(){this.constructor=yt}yt.prototype=be===null?Object.create(be):(Bt.prototype=be.prototype,new Bt)}}(),ge=function(){return ge=Object.assign||function(ot){for(var yt,be=1,Bt=arguments.length;be0){for(wr=1,sr=1;wrEo&&(Eo=Et,ll=[]),ll.push(Re))}function Tl(Re,rt){return new Me(Re,[],"",rt)}function rs(Re,rt,Rt){return new Me(Me.buildMessage(Re,rt),Re,rt,Rt)}function dl(){var Re;return Re=fl(),Re}function fl(){var Re,rt;for(Re=[],rt=Ul();rt!==be;)Re.push(rt),rt=Ul();return Re}function Ul(){var Re;return Re=Lu(),Re===be&&(Re=Yo(),Re===be&&(Re=eu(),Re===be&&(Re=tu(),Re===be&&(Re=ys(),Re===be&&(Re=ql()))))),Re}function Sl(){var Re,rt,Rt;if(Re=Et,rt=[],Rt=jn(),Rt===be&&(Rt=lr(),Rt===be&&(Rt=zn())),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=jn(),Rt===be&&(Rt=lr(),Rt===be&&(Rt=zn()));else rt=be;return rt!==be&&(Po=Re,rt=Jn(rt)),Re=rt,Re}function Lu(){var Re,rt;return Re=Et,rt=Sl(),rt!==be&&(Po=Re,rt=Kn(rt)),Re=rt,Re}function ql(){var Re,rt;return Re=Et,ot.charCodeAt(Et)===35?(rt=br,Et++):(rt=be,xr===0&&ba(ea)),rt!==be&&(Po=Re,rt=ka()),Re=rt,Re}function Yo(){var Re,rt,Rt,Ut,un,In;return xr++,Re=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ke(),Rt!==be?(Ut=Zr(),Ut!==be?(un=Ke(),un!==be?(ot.charCodeAt(Et)===125?(In=sr,Et++):(In=be,xr===0&&ba(dr)),In!==be?(Po=Re,rt=Tr(Ut),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be),xr--,Re===be&&(rt=be,xr===0&&ba(kr)),Re}function fu(){var Re,rt,Rt,Ut,un;if(xr++,Re=Et,rt=[],Rt=Et,Ut=Et,xr++,un=tt(),un===be&&(fo.test(ot.charAt(Et))?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Xa))),xr--,un===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Tt)),un!==be?(Ut=[Ut,un],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Et,Ut=Et,xr++,un=tt(),un===be&&(fo.test(ot.charAt(Et))?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Xa))),xr--,un===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Tt)),un!==be?(Ut=[Ut,un],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be);else rt=be;return rt!==be?Re=ot.substring(Re,Et):Re=rt,xr--,Re===be&&(rt=be,xr===0&&ba(ga)),Re}function El(){var Re,rt,Rt;return xr++,Re=Et,ot.charCodeAt(Et)===47?(rt=ln,Et++):(rt=be,xr===0&&ba(An)),rt!==be?(Rt=fu(),Rt!==be?(Po=Re,rt=_n(Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be),xr--,Re===be&&(rt=be,xr===0&&ba(Kt)),Re}function Es(){var Re,rt,Rt,Ut,un;if(xr++,Re=Et,rt=Ke(),rt!==be)if(Rt=fu(),Rt!==be){for(Ut=[],un=El();un!==be;)Ut.push(un),un=El();Ut!==be?(Po=Re,rt=Er(Rt,Ut),Re=rt):(Et=Re,Re=be)}else Et=Re,Re=be;else Et=Re,Re=be;return xr--,Re===be&&(rt=be,xr===0&&ba(fr)),Re}function Ws(){var Re,rt,Rt;if(Re=Et,rt=[],Rt=Es(),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Es();else rt=be;return rt!==be&&(Po=Re,rt=wn(rt)),Re=rt,Re}function vl(){var Re,rt,Rt;return Re=Et,ot.substr(Et,2)===vr?(rt=vr,Et+=2):(rt=be,xr===0&&ba(Ar)),rt!==be?(Rt=Ws(),Rt!==be?(Po=Re,rt=oa(Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be),Re===be&&(Re=Et,Po=Et,rt=ta(),rt?rt=void 0:rt=be,rt!==be?(Rt=Sl(),Rt!==be?(Po=Re,rt=Wa(Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)),Re}function It(){var Re,rt,Rt,Ut,un,In,gn,rn,Ur,aa,da,ua,Aa;return Re=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ke(),Rt!==be?(Ut=Zr(),Ut!==be?(un=Ke(),un!==be?(ot.charCodeAt(Et)===44?(In=bo,Et++):(In=be,xr===0&&ba(No)),In!==be?(gn=Ke(),gn!==be?(ot.substr(Et,6)===Ga?(rn=Ga,Et+=6):(rn=be,xr===0&&ba(To)),rn!==be?(Ur=Ke(),Ur!==be?(aa=Et,ot.charCodeAt(Et)===44?(da=bo,Et++):(da=be,xr===0&&ba(No)),da!==be?(ua=Ke(),ua!==be?(Aa=vl(),Aa!==be?(da=[da,ua,Aa],aa=da):(Et=aa,aa=be)):(Et=aa,aa=be)):(Et=aa,aa=be),aa===be&&(aa=null),aa!==be?(da=Ke(),da!==be?(ot.charCodeAt(Et)===125?(ua=sr,Et++):(ua=be,xr===0&&ba(dr)),ua!==be?(Po=Re,rt=vo(Ut,rn,aa),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be),Re}function Pi(){var Re,rt,Rt,Ut;if(Re=Et,ot.charCodeAt(Et)===39?(rt=Jr,Et++):(rt=be,xr===0&&ba(Ra)),rt!==be){if(Rt=[],Ut=jn(),Ut===be&&(Ao.test(ot.charAt(Et))?(Ut=ot.charAt(Et),Et++):(Ut=be,xr===0&&ba(ai))),Ut!==be)for(;Ut!==be;)Rt.push(Ut),Ut=jn(),Ut===be&&(Ao.test(ot.charAt(Et))?(Ut=ot.charAt(Et),Et++):(Ut=be,xr===0&&ba(ai)));else Rt=be;Rt!==be?(ot.charCodeAt(Et)===39?(Ut=Jr,Et++):(Ut=be,xr===0&&ba(Ra)),Ut!==be?(rt=[rt,Rt,Ut],Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)}else Et=Re,Re=be;if(Re===be)if(Re=[],rt=jn(),rt===be&&(fi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(go))),rt!==be)for(;rt!==be;)Re.push(rt),rt=jn(),rt===be&&(fi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(go)));else Re=be;return Re}function jl(){var Re,rt;if(Re=[],Oi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(Li)),rt!==be)for(;rt!==be;)Re.push(rt),Oi.test(ot.charAt(Et))?(rt=ot.charAt(Et),Et++):(rt=be,xr===0&&ba(Li));else Re=be;return Re}function qi(){var Re,rt,Rt,Ut;if(Re=Et,rt=Et,Rt=[],Ut=Pi(),Ut===be&&(Ut=jl()),Ut!==be)for(;Ut!==be;)Rt.push(Ut),Ut=Pi(),Ut===be&&(Ut=jl());else Rt=be;return Rt!==be?rt=ot.substring(rt,Et):rt=Rt,rt!==be&&(Po=Re,rt=oi(rt)),Re=rt,Re}function Vo(){var Re,rt,Rt;return Re=Et,ot.substr(Et,2)===vr?(rt=vr,Et+=2):(rt=be,xr===0&&ba(Ar)),rt!==be?(Rt=qi(),Rt!==be?(Po=Re,rt=oa(Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be),Re===be&&(Re=Et,Po=Et,rt=Di(),rt?rt=void 0:rt=be,rt!==be?(Rt=Sl(),Rt!==be?(Po=Re,rt=Wa(Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)),Re}function yo(){var Re,rt,Rt,Ut,un,In,gn,rn,Ur,aa,da,ua,Aa;return Re=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be?(Rt=Ke(),Rt!==be?(Ut=Zr(),Ut!==be?(un=Ke(),un!==be?(ot.charCodeAt(Et)===44?(In=bo,Et++):(In=be,xr===0&&ba(No)),In!==be?(gn=Ke(),gn!==be?(ot.substr(Et,4)===Fi?(rn=Fi,Et+=4):(rn=be,xr===0&&ba(wi)),rn===be&&(ot.substr(Et,4)===Ti?(rn=Ti,Et+=4):(rn=be,xr===0&&ba(ns))),rn!==be?(Ur=Ke(),Ur!==be?(aa=Et,ot.charCodeAt(Et)===44?(da=bo,Et++):(da=be,xr===0&&ba(No)),da!==be?(ua=Ke(),ua!==be?(Aa=Vo(),Aa!==be?(da=[da,ua,Aa],aa=da):(Et=aa,aa=be)):(Et=aa,aa=be)):(Et=aa,aa=be),aa===be&&(aa=null),aa!==be?(da=Ke(),da!==be?(ot.charCodeAt(Et)===125?(ua=sr,Et++):(ua=be,xr===0&&ba(dr)),ua!==be?(Po=Re,rt=vo(Ut,rn,aa),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be),Re}function eu(){var Re;return Re=It(),Re===be&&(Re=yo()),Re}function tu(){var Re,rt,Rt,Ut,un,In,gn,rn,Ur,aa,da,ua,Aa,Oo,Co,Sa;if(Re=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be)if(Rt=Ke(),Rt!==be)if(Ut=Zr(),Ut!==be)if(un=Ke(),un!==be)if(ot.charCodeAt(Et)===44?(In=bo,Et++):(In=be,xr===0&&ba(No)),In!==be)if(gn=Ke(),gn!==be)if(ot.substr(Et,6)===Zi?(rn=Zi,Et+=6):(rn=be,xr===0&&ba(ao)),rn===be&&(ot.substr(Et,13)===Ka?(rn=Ka,Et+=13):(rn=be,xr===0&&ba(mi))),rn!==be)if(Ur=Ke(),Ur!==be)if(ot.charCodeAt(Et)===44?(aa=bo,Et++):(aa=be,xr===0&&ba(No)),aa!==be)if(da=Ke(),da!==be)if(ua=Et,ot.substr(Et,7)===ii?(Aa=ii,Et+=7):(Aa=be,xr===0&&ba(Zo)),Aa!==be?(Oo=Ke(),Oo!==be?(Co=cn(),Co!==be?(Aa=[Aa,Oo,Co],ua=Aa):(Et=ua,ua=be)):(Et=ua,ua=be)):(Et=ua,ua=be),ua===be&&(ua=null),ua!==be)if(Aa=Ke(),Aa!==be){if(Oo=[],Co=Ri(),Co!==be)for(;Co!==be;)Oo.push(Co),Co=Ri();else Oo=be;Oo!==be?(Co=Ke(),Co!==be?(ot.charCodeAt(Et)===125?(Sa=sr,Et++):(Sa=be,xr===0&&ba(dr)),Sa!==be?(Po=Re,rt=Ko(Ut,rn,ua,Oo),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)}else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;return Re}function ys(){var Re,rt,Rt,Ut,un,In,gn,rn,Ur,aa,da,ua,Aa,Oo;if(Re=Et,ot.charCodeAt(Et)===123?(rt=Dr,Et++):(rt=be,xr===0&&ba(wr)),rt!==be)if(Rt=Ke(),Rt!==be)if(Ut=Zr(),Ut!==be)if(un=Ke(),un!==be)if(ot.charCodeAt(Et)===44?(In=bo,Et++):(In=be,xr===0&&ba(No)),In!==be)if(gn=Ke(),gn!==be)if(ot.substr(Et,6)===Ni?(rn=Ni,Et+=6):(rn=be,xr===0&&ba(Ji)),rn!==be)if(Ur=Ke(),Ur!==be)if(ot.charCodeAt(Et)===44?(aa=bo,Et++):(aa=be,xr===0&&ba(No)),aa!==be)if(da=Ke(),da!==be){if(ua=[],Aa=Ii(),Aa!==be)for(;Aa!==be;)ua.push(Aa),Aa=Ii();else ua=be;ua!==be?(Aa=Ke(),Aa!==be?(ot.charCodeAt(Et)===125?(Oo=sr,Et++):(Oo=be,xr===0&&ba(dr)),Oo!==be?(Po=Re,rt=Ki(Ut,ua),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)}else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;else Et=Re,Re=be;return Re}function gl(){var Re,rt,Rt,Ut;return Re=Et,rt=Et,ot.charCodeAt(Et)===61?(Rt=Is,Et++):(Rt=be,xr===0&&ba(hs)),Rt!==be?(Ut=cn(),Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt!==be?Re=ot.substring(Re,Et):Re=rt,Re===be&&(Re=Qn()),Re}function Ii(){var Re,rt,Rt,Ut,un,In,gn,rn;return Re=Et,rt=Ke(),rt!==be?(Rt=Qn(),Rt!==be?(Ut=Ke(),Ut!==be?(ot.charCodeAt(Et)===123?(un=Dr,Et++):(un=be,xr===0&&ba(wr)),un!==be?(Po=Et,In=Ns(Rt),In?In=void 0:In=be,In!==be?(gn=fl(),gn!==be?(ot.charCodeAt(Et)===125?(rn=sr,Et++):(rn=be,xr===0&&ba(dr)),rn!==be?(Po=Re,rt=bl(Rt,gn),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be),Re}function Ri(){var Re,rt,Rt,Ut,un,In,gn,rn;return Re=Et,rt=Ke(),rt!==be?(Rt=gl(),Rt!==be?(Ut=Ke(),Ut!==be?(ot.charCodeAt(Et)===123?(un=Dr,Et++):(un=be,xr===0&&ba(wr)),un!==be?(Po=Et,In=bn(Rt),In?In=void 0:In=be,In!==be?(gn=fl(),gn!==be?(ot.charCodeAt(Et)===125?(rn=sr,Et++):(rn=be,xr===0&&ba(dr)),rn!==be?(Po=Re,rt=Mr(Rt,gn),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be)):(Et=Re,Re=be),Re}function tt(){var Re,rt;return xr++,ur.test(ot.charAt(Et))?(Re=ot.charAt(Et),Et++):(Re=be,xr===0&&ba(Cr)),xr--,Re===be&&(rt=be,xr===0&&ba(nr)),Re}function $e(){var Re,rt;return xr++,pa.test(ot.charAt(Et))?(Re=ot.charAt(Et),Et++):(Re=be,xr===0&&ba(fa)),xr--,Re===be&&(rt=be,xr===0&&ba(ca)),Re}function Ke(){var Re,rt,Rt;for(xr++,Re=Et,rt=[],Rt=tt();Rt!==be;)rt.push(Rt),Rt=tt();return rt!==be?Re=ot.substring(Re,Et):Re=rt,xr--,Re===be&&(rt=be,xr===0&&ba(Ho)),Re}function cn(){var Re,rt,Rt;return xr++,Re=Et,ot.charCodeAt(Et)===45?(rt=Jo,Et++):(rt=be,xr===0&&ba(Wi)),rt===be&&(rt=null),rt!==be?(Rt=ir(),Rt!==be?(Po=Re,rt=bs(rt,Rt),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be),xr--,Re===be&&(rt=be,xr===0&&ba(si)),Re}function nn(){var Re,rt;return xr++,ot.charCodeAt(Et)===39?(Re=Jr,Et++):(Re=be,xr===0&&ba(Ra)),xr--,Re===be&&(rt=be,xr===0&&ba(ss)),Re}function jn(){var Re,rt;return xr++,Re=Et,ot.substr(Et,2)===us?(rt=us,Et+=2):(rt=be,xr===0&&ba(ri)),rt!==be&&(Po=Re,rt=$l()),Re=rt,xr--,Re===be&&(rt=be,xr===0&&ba(As)),Re}function lr(){var Re,rt,Rt,Ut,un,In;if(Re=Et,ot.charCodeAt(Et)===39?(rt=Jr,Et++):(rt=be,xr===0&&ba(Ra)),rt!==be)if(Rt=Yn(),Rt!==be){for(Ut=Et,un=[],ot.substr(Et,2)===us?(In=us,Et+=2):(In=be,xr===0&&ba(ri)),In===be&&(Ao.test(ot.charAt(Et))?(In=ot.charAt(Et),Et++):(In=be,xr===0&&ba(ai)));In!==be;)un.push(In),ot.substr(Et,2)===us?(In=us,Et+=2):(In=be,xr===0&&ba(ri)),In===be&&(Ao.test(ot.charAt(Et))?(In=ot.charAt(Et),Et++):(In=be,xr===0&&ba(ai)));un!==be?Ut=ot.substring(Ut,Et):Ut=un,Ut!==be?(ot.charCodeAt(Et)===39?(un=Jr,Et++):(un=be,xr===0&&ba(Ra)),un===be&&(un=null),un!==be?(Po=Re,rt=ol(Rt,Ut),Re=rt):(Et=Re,Re=be)):(Et=Re,Re=be)}else Et=Re,Re=be;else Et=Re,Re=be;return Re}function zn(){var Re,rt,Rt,Ut;return Re=Et,rt=Et,ot.length>Et?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Tt)),Rt!==be?(Po=Et,Ut=il(Rt),Ut?Ut=void 0:Ut=be,Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt===be&&(ot.charCodeAt(Et)===10?(rt=Fl,Et++):(rt=be,xr===0&&ba(Qs))),rt!==be?Re=ot.substring(Re,Et):Re=rt,Re}function Yn(){var Re,rt,Rt,Ut;return Re=Et,rt=Et,ot.length>Et?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Tt)),Rt!==be?(Po=Et,Ut=Xs(Rt),Ut?Ut=void 0:Ut=be,Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)):(Et=rt,rt=be),rt!==be?Re=ot.substring(Re,Et):Re=rt,Re}function Zr(){var Re,rt;return xr++,Re=Et,rt=ir(),rt===be&&(rt=Qn()),rt!==be?Re=ot.substring(Re,Et):Re=rt,xr--,Re===be&&(rt=be,xr===0&&ba(Os)),Re}function ir(){var Re,rt,Rt,Ut,un;if(xr++,Re=Et,ot.charCodeAt(Et)===48?(rt=sl,Et++):(rt=be,xr===0&&ba(Hl)),rt!==be&&(Po=Re,rt=vs()),Re=rt,Re===be){if(Re=Et,rt=Et,Ss.test(ot.charAt(Et))?(Rt=ot.charAt(Et),Et++):(Rt=be,xr===0&&ba(Ds)),Rt!==be){for(Ut=[],Rs.test(ot.charAt(Et))?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Zl));un!==be;)Ut.push(un),Rs.test(ot.charAt(Et))?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Zl));Ut!==be?(Rt=[Rt,Ut],rt=Rt):(Et=rt,rt=be)}else Et=rt,rt=be;rt!==be&&(Po=Re,rt=Js(rt)),Re=rt}return xr--,Re===be&&(rt=be,xr===0&&ba(Us)),Re}function Qn(){var Re,rt,Rt,Ut,un;if(xr++,Re=Et,rt=[],Rt=Et,Ut=Et,xr++,un=tt(),un===be&&(un=$e()),xr--,un===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Tt)),un!==be?(Ut=[Ut,un],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be),Rt!==be)for(;Rt!==be;)rt.push(Rt),Rt=Et,Ut=Et,xr++,un=tt(),un===be&&(un=$e()),xr--,un===be?Ut=void 0:(Et=Ut,Ut=be),Ut!==be?(ot.length>Et?(un=ot.charAt(Et),Et++):(un=be,xr===0&&ba(Tt)),un!==be?(Ut=[Ut,un],Rt=Ut):(Et=Rt,Rt=be)):(Et=Rt,Rt=be);else rt=be;return rt!==be?Re=ot.substring(Re,Et):Re=rt,xr--,Re===be&&(rt=be,xr===0&&ba(cs)),Re}var Un=["root"];function Ta(){return Un.length>1}function ha(){return Un[Un.length-1]==="plural"}function Qt(){return yt&&yt.captureLocation?{location:ws()}:{}}if(qs=Jt(),qs!==be&&Et===ot.length)return qs;throw qs!==be&&Et1)throw new RangeError("Fraction-precision stems only accept a single optional option");Jt.stem.replace(N,function(Kn,br,ea){return Kn==="."?yt.maximumFractionDigits=0:ea==="+"?yt.minimumFractionDigits=ea.length:br[0]==="#"?yt.maximumFractionDigits=br.length:(yt.minimumFractionDigits=br.length,yt.maximumFractionDigits=br.length+(typeof ea=="string"?ea.length:0)),""}),Jt.options.length&&(yt=Fe(Fe({},yt),ee(Jt.options[0])));continue}if(D.test(Jt.stem)){yt=Fe(Fe({},yt),ee(Jt.stem));continue}var Jn=se(Jt.stem);Jn&&(yt=Fe(Fe({},yt),Jn))}return yt}var Ie=function(){var ot=function(yt,be){return ot=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Bt,Jt){Bt.__proto__=Jt}||function(Bt,Jt){for(var Jn in Jt)Jt.hasOwnProperty(Jn)&&(Bt[Jn]=Jt[Jn])},ot(yt,be)};return function(yt,be){ot(yt,be);function Bt(){this.constructor=yt}yt.prototype=be===null?Object.create(be):(Bt.prototype=be.prototype,new Bt)}}(),Se=function(){for(var ot=0,yt=0,be=arguments.length;yt(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ye=Date.now()+"@@",Be=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function De(ot,yt,be){var Bt=ot.tagName,Jt=ot.outerHTML,Xn=ot.textContent,Gn=ot.childNodes;if(!Bt)return Ae(Xn||"",yt);Bt=Bt.toLowerCase();var br=~Be.indexOf(Bt),ta=be[Bt];if(ta&&br)throw new he(Bt+" is a self-closing tag and can not be used, please use another tag name.");if(!Gn.length)return[Jt];var ka=Array.prototype.slice.call(Gn).reduce(function(kr,Dr){return kr.concat(De(Dr,yt,be))},[]);return ta?typeof ta=="function"?[ta.apply(void 0,ka)]:[ta]:Se(["<"+Bt+">"],ka,[""])}function Pe(ot,yt,be,Bt,Jt,Xn){var Gn=de(ot,yt,be,Bt,Jt,void 0,Xn),br={},ta=Gn.reduce(function(wr,sr){if(sr.type===0)return wr+=sr.value;var dr=Je();return br[dr]=sr.value,wr+=""+xe+dr+xe},"");if(!oe.test(ta))return Ae(ta,br);if(!Jt)throw new he("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new he("Cannot format XML message without DOMParser");ve||(ve=new DOMParser);var ka=ve.parseFromString(''+ta+"","text/html").getElementById(ye);if(!ka)throw new he("Malformed HTML message "+ta);var kr=Object.keys(Jt).filter(function(wr){return!!ka.getElementsByTagName(wr).length});if(!kr.length)return Ae(ta,br);var Dr=kr.filter(function(wr){return wr!==wr.toLowerCase()});if(Dr.length)throw new he("HTML tag must be lowercased but the following tags are not: "+Dr.join(", "));return Array.prototype.slice.call(ka.childNodes).reduce(function(wr,sr){return wr.concat(De(sr,br,Jt))},[])}var we=function(){return we=Object.assign||function(ot){for(var yt,be=1,Bt=arguments.length;be<"']/g;function Gt(ot){return(""+ot).replace(jt,function(yt){return Ot[yt.charCodeAt(0)]})}function Xt(ot,yt){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return yt.reduce(function(Bt,Jt){return Jt in ot?Bt[Jt]=ot[Jt]:Jt in be&&(Bt[Jt]=be[Jt]),Bt},{})}function zn(ot){At(ot,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function fn(ot,yt){var be=yt?` -`.concat(yt.stack):"";return"[React Intl] ".concat(ot).concat(be)}function Bn(ot){}var On={formats:{},messages:{},timeZone:void 0,textComponent:S.Fragment,defaultLocale:"en",defaultFormats:{},onError:Bn};function Mn(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function _e(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn(),yt=Intl.RelativeTimeFormat,be=Intl.ListFormat,Bt=Intl.DisplayNames;return{getDateTimeFormat:et(Intl.DateTimeFormat,ot.dateTime),getNumberFormat:et(Intl.NumberFormat,ot.number),getMessageFormat:et(ft,ot.message),getRelativeTimeFormat:et(yt,ot.relativeTime),getPluralRules:et(Intl.PluralRules,ot.pluralRules),getListFormat:et(be,ot.list),getDisplayNames:et(Bt,ot.displayNames)}}function at(ot,yt,be,Bt){var Jt=ot&&ot[yt],Xn;if(Jt&&(Xn=Jt[be]),Xn)return Xn;Bt(fn("No ".concat(yt," format named: ").concat(be)))}var Vt=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function rn(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.onError,Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gn=Xn.format,br=Gn&&at(Bt,"number",Gn,Jt)||{},ta=Xt(Xn,Vt,br);return yt(be,ta)}function st(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return rn(ot,yt,Bt).format(be)}catch(Jt){ot.onError(fn("Error formatting number.",Jt))}return String(be)}function ut(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return rn(ot,yt,Bt).formatToParts(be)}catch(Jt){ot.onError(fn("Error formatting number.",Jt))}return[]}var $t=["numeric","style"];function nt(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.onError,Xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Gn=Xn.format,br=!!Gn&&at(Bt,"relative",Gn,Jt)||{},ta=Xt(Xn,$t,br);return yt(be,ta)}function gt(ot,yt,be,Bt){var Jt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};Bt||(Bt="second");var Xn=Intl.RelativeTimeFormat;Xn||ot.onError(fn(`Intl.RelativeTimeFormat is not available in this environment. +`);var Tr=be.getPluralRules(yt,{type:kr.pluralType}).select(wr-(kr.offset||0));dr=kr.options[Tr]||kr.options.other}if(!dr)throw new RangeError('Invalid values for "'+kr.value+'": "'+wr+'". Options are "'+Object.keys(kr.options).join('", "')+'"');br.push.apply(br,de(dr.value,yt,be,Bt,Jt,wr-(kr.offset||0)));continue}}return We(br)}function le(ot,yt,be,Bt,Jt,Jn){var Kn=de(ot,yt,be,Bt,Jt,void 0,Jn);return Kn.length===1?Kn[0].value:Kn.reduce(function(br,ea){return br+=ea.value},"")}var ve,xe="@@",Ze=/@@(\d+_\d+)@@/g,pe=0;function Je(){return Date.now()+"_"+ ++pe}function Ae(ot,yt){return ot.split(Ze).filter(Boolean).map(function(be){return yt[be]!=null?yt[be]:be}).reduce(function(be,Bt){return be.length&&typeof Bt=="string"&&typeof be[be.length-1]=="string"?be[be.length-1]+=Bt:be.push(Bt),be},[])}var oe=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,ye=Date.now()+"@@",Be=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function De(ot,yt,be){var Bt=ot.tagName,Jt=ot.outerHTML,Jn=ot.textContent,Kn=ot.childNodes;if(!Bt)return Ae(Jn||"",yt);Bt=Bt.toLowerCase();var br=~Be.indexOf(Bt),ea=be[Bt];if(ea&&br)throw new he(Bt+" is a self-closing tag and can not be used, please use another tag name.");if(!Kn.length)return[Jt];var ka=Array.prototype.slice.call(Kn).reduce(function(kr,Dr){return kr.concat(De(Dr,yt,be))},[]);return ea?typeof ea=="function"?[ea.apply(void 0,ka)]:[ea]:Se(["<"+Bt+">"],ka,[""])}function Pe(ot,yt,be,Bt,Jt,Jn){var Kn=de(ot,yt,be,Bt,Jt,void 0,Jn),br={},ea=Kn.reduce(function(wr,sr){if(sr.type===0)return wr+=sr.value;var dr=Je();return br[dr]=sr.value,wr+=""+xe+dr+xe},"");if(!oe.test(ea))return Ae(ea,br);if(!Jt)throw new he("Message has placeholders but no values was given");if(typeof DOMParser=="undefined")throw new he("Cannot format XML message without DOMParser");ve||(ve=new DOMParser);var ka=ve.parseFromString(''+ea+"","text/html").getElementById(ye);if(!ka)throw new he("Malformed HTML message "+ea);var kr=Object.keys(Jt).filter(function(wr){return!!ka.getElementsByTagName(wr).length});if(!kr.length)return Ae(ea,br);var Dr=kr.filter(function(wr){return wr!==wr.toLowerCase()});if(Dr.length)throw new he("HTML tag must be lowercased but the following tags are not: "+Dr.join(", "));return Array.prototype.slice.call(ka.childNodes).reduce(function(wr,sr){return wr.concat(De(sr,br,Jt))},[])}var we=function(){return we=Object.assign||function(ot){for(var yt,be=1,Bt=arguments.length;be<"']/g;function Gt(ot){return(""+ot).replace(jt,function(yt){return Ot[yt.charCodeAt(0)]})}function Xt(ot,yt){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return yt.reduce(function(Bt,Jt){return Jt in ot?Bt[Jt]=ot[Jt]:Jt in be&&(Bt[Jt]=be[Jt]),Bt},{})}function Bn(ot){At(ot,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function fn(ot,yt){var be=yt?` +`.concat(yt.stack):"";return"[React Intl] ".concat(ot).concat(be)}function $n(ot){}var On={formats:{},messages:{},timeZone:void 0,textComponent:S.Fragment,defaultLocale:"en",defaultFormats:{},onError:$n};function Mn(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function _e(){var ot=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mn(),yt=Intl.RelativeTimeFormat,be=Intl.ListFormat,Bt=Intl.DisplayNames;return{getDateTimeFormat:et(Intl.DateTimeFormat,ot.dateTime),getNumberFormat:et(Intl.NumberFormat,ot.number),getMessageFormat:et(ft,ot.message),getRelativeTimeFormat:et(yt,ot.relativeTime),getPluralRules:et(Intl.PluralRules,ot.pluralRules),getListFormat:et(be,ot.list),getDisplayNames:et(Bt,ot.displayNames)}}function at(ot,yt,be,Bt){var Jt=ot&&ot[yt],Jn;if(Jt&&(Jn=Jt[be]),Jn)return Jn;Bt(fn("No ".concat(yt," format named: ").concat(be)))}var Vt=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function an(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.onError,Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Kn=Jn.format,br=Kn&&at(Bt,"number",Kn,Jt)||{},ea=Xt(Jn,Vt,br);return yt(be,ea)}function st(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return an(ot,yt,Bt).format(be)}catch(Jt){ot.onError(fn("Error formatting number.",Jt))}return String(be)}function ut(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};try{return an(ot,yt,Bt).formatToParts(be)}catch(Jt){ot.onError(fn("Error formatting number.",Jt))}return[]}var $t=["numeric","style"];function nt(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.onError,Jn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Kn=Jn.format,br=!!Kn&&at(Bt,"relative",Kn,Jt)||{},ea=Xt(Jn,$t,br);return yt(be,ea)}function mt(ot,yt,be,Bt){var Jt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{};Bt||(Bt="second");var Jn=Intl.RelativeTimeFormat;Jn||ot.onError(fn(`Intl.RelativeTimeFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-relativetimeformat" -`));try{return nt(ot,yt,Jt).format(be,Bt)}catch(Gn){ot.onError(fn("Error formatting relative time.",Gn))}return String(be)}var Dt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function xn(ot,yt,be){var Bt=ot.locale,Jt=ot.formats,Xn=ot.onError,Gn=ot.timeZone,br=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ta=br.format,ka=Object.assign(Object.assign({},Gn&&{timeZone:Gn}),ta&&at(Jt,yt,ta,Xn)),kr=Xt(br,Dt,ka);return yt==="time"&&!kr.hour&&!kr.minute&&!kr.second&&(kr=Object.assign(Object.assign({},kr),{hour:"numeric",minute:"numeric"})),be(Bt,kr)}function tn(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return xn(ot,"date",yt,Bt).format(Jt)}catch(Xn){ot.onError(fn("Error formatting date.",Xn))}return String(Jt)}function Hn(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return xn(ot,"time",yt,Bt).format(Jt)}catch(Xn){ot.onError(fn("Error formatting time.",Xn))}return String(Jt)}function Nn(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return xn(ot,"date",yt,Bt).formatToParts(Jt)}catch(Xn){ot.onError(fn("Error formatting date.",Xn))}return[]}function pr(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return xn(ot,"time",yt,Bt).formatToParts(Jt)}catch(Xn){ot.onError(fn("Error formatting time.",Xn))}return[]}var gr=["localeMatcher","type"];function Or(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||Jt(fn(`Intl.PluralRules is not available in this environment. +`));try{return nt(ot,yt,Jt).format(be,Bt)}catch(Kn){ot.onError(fn("Error formatting relative time.",Kn))}return String(be)}var Dt=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Cn(ot,yt,be){var Bt=ot.locale,Jt=ot.formats,Jn=ot.onError,Kn=ot.timeZone,br=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},ea=br.format,ka=Object.assign(Object.assign({},Kn&&{timeZone:Kn}),ea&&at(Jt,yt,ea,Jn)),kr=Xt(br,Dt,ka);return yt==="time"&&!kr.hour&&!kr.minute&&!kr.second&&(kr=Object.assign(Object.assign({},kr),{hour:"numeric",minute:"numeric"})),be(Bt,kr)}function en(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return Cn(ot,"date",yt,Bt).format(Jt)}catch(Jn){ot.onError(fn("Error formatting date.",Jn))}return String(Jt)}function Hn(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return Cn(ot,"time",yt,Bt).format(Jt)}catch(Jn){ot.onError(fn("Error formatting time.",Jn))}return String(Jt)}function Rn(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return Cn(ot,"date",yt,Bt).formatToParts(Jt)}catch(Jn){ot.onError(fn("Error formatting date.",Jn))}return[]}function pr(ot,yt,be){var Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=typeof be=="string"?new Date(be||0):be;try{return Cn(ot,"time",yt,Bt).formatToParts(Jt)}catch(Jn){ot.onError(fn("Error formatting time.",Jn))}return[]}var gr=["localeMatcher","type"];function Or(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};Intl.PluralRules||Jt(fn(`Intl.PluralRules is not available in this environment. Try polyfilling it using "@formatjs/intl-pluralrules" -`));var Gn=Xt(Xn,gr);try{return yt(Bt,Gn).select(be)}catch(br){Jt(fn("Error formatting plural.",br))}return"other"}var ar=e(34485),mr=e.n(ar);function ea(ot,yt){return Object.keys(ot).reduce(function(be,Bt){return be[Bt]=Object.assign({timeZone:yt},ot[Bt]),be},{})}function Lr(ot,yt){var be=Object.keys(Object.assign(Object.assign({},ot),yt));return be.reduce(function(Bt,Jt){return Bt[Jt]=Object.assign(Object.assign({},ot[Jt]||{}),yt[Jt]||{}),Bt},{})}function Kn(ot,yt){if(!yt)return ot;var be=ft.formats;return Object.assign(Object.assign(Object.assign({},be),ot),{date:Lr(ea(be.date,yt),ea(ot.date||{},yt)),time:Lr(ea(be.time,yt),ea(ot.time||{},yt))})}var zt=function(yt){return S.createElement.apply(w,[S.Fragment,null].concat(mr()(yt)))};function Ft(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.messages,Xn=ot.defaultLocale,Gn=ot.defaultFormats,br=ot.onError,ta=ot.timeZone,ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},kr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Dr=ka.id,wr=ka.defaultMessage;At(!!Dr,"[React Intl] An `id` must be provided to format a message.");var sr=Jt&&Jt[String(Dr)];Bt=Kn(Bt,ta),Gn=Kn(Gn,ta);var dr=[];if(sr)try{var jr=yt.getMessageFormat(sr,be,Bt,{formatters:yt});dr=jr.formatHTMLMessage(kr)}catch(co){br(fn('Error formatting message: "'.concat(Dr,'" for locale: "').concat(be,'"')+(wr?", using default message as fallback.":""),co))}else(!wr||be&&be.toLowerCase()!==Xn.toLowerCase())&&br(fn('Missing message: "'.concat(Dr,'" for locale: "').concat(be,'"')+(wr?", using default message as fallback.":"")));if(!dr.length&&wr)try{var va=yt.getMessageFormat(wr,Xn,Gn);dr=va.formatHTMLMessage(kr)}catch(co){br(fn('Error formatting the default message for: "'.concat(Dr,'"'),co))}return dr.length?dr.length===1&&typeof dr[0]=="string"?dr[0]||wr||String(Dr):zt(dr):(br(fn('Cannot format message: "'.concat(Dr,'", ')+"using message ".concat(sr||wr?"source":"id"," as fallback."))),typeof sr=="string"?sr||wr||String(Dr):wr||String(Dr))}function on(ot,yt){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=Object.keys(Bt).reduce(function(Xn,Gn){var br=Bt[Gn];return Xn[Gn]=typeof br=="string"?Gt(br):br,Xn},{});return Ft(ot,yt,be,Jt)}var nn=e(57761),kt=e.n(nn),hn=e(16962),dn=e.n(hn),$n=["localeMatcher","type","style"],qn=Date.now();function ct(ot){return"".concat(qn,"_").concat(ot,"_").concat(qn)}function lt(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gn=Intl.ListFormat;Gn||Jt(fn(`Intl.ListFormat is not available in this environment. +`));var Kn=Xt(Jn,gr);try{return yt(Bt,Kn).select(be)}catch(br){Jt(fn("Error formatting plural.",br))}return"other"}var ar=e(34485),mr=e.n(ar);function qr(ot,yt){return Object.keys(ot).reduce(function(be,Bt){return be[Bt]=Object.assign({timeZone:yt},ot[Bt]),be},{})}function Pr(ot,yt){var be=Object.keys(Object.assign(Object.assign({},ot),yt));return be.reduce(function(Bt,Jt){return Bt[Jt]=Object.assign(Object.assign({},ot[Jt]||{}),yt[Jt]||{}),Bt},{})}function Vn(ot,yt){if(!yt)return ot;var be=ft.formats;return Object.assign(Object.assign(Object.assign({},be),ot),{date:Pr(qr(be.date,yt),qr(ot.date||{},yt)),time:Pr(qr(be.time,yt),qr(ot.time||{},yt))})}var zt=function(yt){return S.createElement.apply(w,[S.Fragment,null].concat(mr()(yt)))};function Ft(ot,yt){var be=ot.locale,Bt=ot.formats,Jt=ot.messages,Jn=ot.defaultLocale,Kn=ot.defaultFormats,br=ot.onError,ea=ot.timeZone,ka=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},kr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Dr=ka.id,wr=ka.defaultMessage;At(!!Dr,"[React Intl] An `id` must be provided to format a message.");var sr=Jt&&Jt[String(Dr)];Bt=Vn(Bt,ea),Kn=Vn(Kn,ea);var dr=[];if(sr)try{var Tr=yt.getMessageFormat(sr,be,Bt,{formatters:yt});dr=Tr.formatHTMLMessage(kr)}catch(fo){br(fn('Error formatting message: "'.concat(Dr,'" for locale: "').concat(be,'"')+(wr?", using default message as fallback.":""),fo))}else(!wr||be&&be.toLowerCase()!==Jn.toLowerCase())&&br(fn('Missing message: "'.concat(Dr,'" for locale: "').concat(be,'"')+(wr?", using default message as fallback.":"")));if(!dr.length&&wr)try{var ga=yt.getMessageFormat(wr,Jn,Kn);dr=ga.formatHTMLMessage(kr)}catch(fo){br(fn('Error formatting the default message for: "'.concat(Dr,'"'),fo))}return dr.length?dr.length===1&&typeof dr[0]=="string"?dr[0]||wr||String(Dr):zt(dr):(br(fn('Cannot format message: "'.concat(Dr,'", ')+"using message ".concat(sr||wr?"source":"id"," as fallback."))),typeof sr=="string"?sr||wr||String(Dr):wr||String(Dr))}function sn(ot,yt){var be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{id:""},Bt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Jt=Object.keys(Bt).reduce(function(Jn,Kn){var br=Bt[Kn];return Jn[Kn]=typeof br=="string"?Gt(br):br,Jn},{});return Ft(ot,yt,be,Jt)}var tn=e(57761),kt=e.n(tn),hn=e(16962),dn=e.n(hn),Fn=["localeMatcher","type","style"],tr=Date.now();function ct(ot){return"".concat(tr,"_").concat(ot,"_").concat(tr)}function lt(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Kn=Intl.ListFormat;Kn||Jt(fn(`Intl.ListFormat is not available in this environment. Try polyfilling it using "@formatjs/intl-listformat" -`));var br=Xt(Xn,$n);try{var ta={},ka=be.map(function(Dr,wr){if(dn()(Dr)==="object"){var sr=ct(wr);return ta[sr]=Dr,sr}return String(Dr)});if(!Object.keys(ta).length)return yt(Bt,br).format(ka);var kr=yt(Bt,br).formatToParts(ka);return kr.reduce(function(Dr,wr){var sr=wr.value;return ta[sr]?Dr.push(ta[sr]):typeof Dr[Dr.length-1]=="string"?Dr[Dr.length-1]+=sr:Dr.push(sr),Dr},[])}catch(Dr){Jt(fn("Error formatting list.",Dr))}return be}var xt=["localeMatcher","style","type","fallback"];function St(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Xn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Gn=Intl.DisplayNames;Gn||Jt(fn(`Intl.DisplayNames is not available in this environment. +`));var br=Xt(Jn,Fn);try{var ea={},ka=be.map(function(Dr,wr){if(dn()(Dr)==="object"){var sr=ct(wr);return ea[sr]=Dr,sr}return String(Dr)});if(!Object.keys(ea).length)return yt(Bt,br).format(ka);var kr=yt(Bt,br).formatToParts(ka);return kr.reduce(function(Dr,wr){var sr=wr.value;return ea[sr]?Dr.push(ea[sr]):typeof Dr[Dr.length-1]=="string"?Dr[Dr.length-1]+=sr:Dr.push(sr),Dr},[])}catch(Dr){Jt(fn("Error formatting list.",Dr))}return be}var xt=["localeMatcher","style","type","fallback"];function St(ot,yt,be){var Bt=ot.locale,Jt=ot.onError,Jn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},Kn=Intl.DisplayNames;Kn||Jt(fn(`Intl.DisplayNames is not available in this environment. Try polyfilling it using "@formatjs/intl-displaynames" -`));var br=Xt(Xn,xt);try{return yt(Bt,br).of(be)}catch(ta){Jt(fn("Error formatting display name.",ta))}}var Lt=kt()||nn;function _t(ot){return{locale:ot.locale,timeZone:ot.timeZone,formats:ot.formats,textComponent:ot.textComponent,messages:ot.messages,defaultLocale:ot.defaultLocale,defaultFormats:ot.defaultFormats,onError:ot.onError}}function Wt(ot,yt){var be=_e(yt),Bt=Object.assign(Object.assign({},On),ot),Jt=Bt.locale,Xn=Bt.defaultLocale,Gn=Bt.onError;return Jt?!Intl.NumberFormat.supportedLocalesOf(Jt).length&&Gn?Gn(fn('Missing locale data for locale: "'.concat(Jt,'" in Intl.NumberFormat. Using default locale: "').concat(Xn,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(Jt).length&&Gn&&Gn(fn('Missing locale data for locale: "'.concat(Jt,'" in Intl.DateTimeFormat. Using default locale: "').concat(Xn,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details'))):(Gn&&Gn(fn('"locale" was not configured, using "'.concat(Xn,'" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details'))),Bt.locale=Bt.defaultLocale||"en"),Object.assign(Object.assign({},Bt),{formatters:be,formatNumber:st.bind(null,Bt,be.getNumberFormat),formatNumberToParts:ut.bind(null,Bt,be.getNumberFormat),formatRelativeTime:gt.bind(null,Bt,be.getRelativeTimeFormat),formatDate:tn.bind(null,Bt,be.getDateTimeFormat),formatDateToParts:Nn.bind(null,Bt,be.getDateTimeFormat),formatTime:Hn.bind(null,Bt,be.getDateTimeFormat),formatTimeToParts:pr.bind(null,Bt,be.getDateTimeFormat),formatPlural:Or.bind(null,Bt,be.getPluralRules),formatMessage:Ft.bind(null,Bt,be),formatHTMLMessage:on.bind(null,Bt,be),formatList:lt.bind(null,Bt,be.getListFormat),formatDisplayName:St.bind(null,Bt,be.getDisplayNames)})}var yn=function(ot){m()(be,ot);var yt=p()(be);function be(){var Bt;return c()(this,be),Bt=yt.apply(this,arguments),Bt.cache=Mn(),Bt.state={cache:Bt.cache,intl:Wt(_t(Bt.props),Bt.cache),prevConfig:_t(Bt.props)},Bt}return v()(be,[{key:"render",value:function(){return zn(this.state.intl),S.createElement(I,{value:this.state.intl},this.props.children)}}],[{key:"getDerivedStateFromProps",value:function(Jt,Xn){var Gn=Xn.prevConfig,br=Xn.cache,ta=_t(Jt);return Lt(Gn,ta)?null:{intl:Wt(ta,br),prevConfig:ta}}}]),be}(S.PureComponent);yn.displayName="IntlProvider",yn.defaultProps=On;var kn=e(15198),hr=e(87308),cr=e.n(hr),Dn=e(62118),Rr=e.n(Dn),or=function(ot,yt){var be={};for(var Bt in ot)Object.prototype.hasOwnProperty.call(ot,Bt)&&yt.indexOf(Bt)<0&&(be[Bt]=ot[Bt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Jt=0,Bt=Object.getOwnPropertySymbols(ot);Jt1&&arguments[1]!==void 0?arguments[1]:!0,Bt=function(){if(ja()!==yt){if(navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&In&&window.localStorage.setItem("umi_locale",yt||""),Io(yt),be)window.location.reload();else if(Yn.emit(Nr,yt),window.dispatchEvent){var Xn=new Event("languagechange");window.dispatchEvent(Xn)}}};Bt()},Fo=!0,Lo=function(yt,be){return Fo&&(Rr()(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl. + car`,"annotator.formModal.categoriesCount":"\u5F53\u524D\u7C7B\u522B\u6807\u7B7E\u6570\u91CF","annotator.formModal.fileRequiredMsg":"\u8BF7\u81F3\u5C11\u5BFC\u5165\u4E00\u5F20\u56FE\u7247","annotator.formModal.fileCountLimitMsg":"\u56FE\u7247\u91CF\u4E0D\u80FD\u8D85\u8FC7{count}\u5F20","annotator.formModal.fileSizeLimitMsg":"\u5355\u5F20\u56FE\u7247\u4E0D\u80FD\u8D85\u8FC7{size}MB","annotator.formModal.categoryRequiredMsg":"\u8BF7\u81F3\u5C11\u8F93\u5165\u4E00\u4E2A\u7C7B\u522B\u6807\u7B7E","annotator.formModal.deleteCategory.title":"\u6CE8\u610F","annotator.formModal.deleteCategory.desc":"\u6709\u6807\u6CE8\u4E2D\u4F7F\u7528\u4E86\u8FD9\u4E2A\u7C7B\u522B\uFF0C\u8BF7\u5148\u624B\u52A8\u5220\u9664\u8FD9\u4E9B\u6807\u6CE8\u6216\u4FEE\u6539\u5B83\u4EEC\u7684\u7C7B\u522B","annotator.formModal.deleteImage.title":"\u6CE8\u610F","annotator.formModal.deleteImage.desc":"\u8BE5\u56FE\u7247\u5185\u5305\u542B\u6807\u6CE8\u4FE1\u606F\uFF0C\u8BF7\u5148\u624B\u52A8\u5220\u9664\u8FD9\u4E9B\u6807\u6CE8","proj.title":"\u9879\u76EE","proj.table.name":"\u9879\u76EE\u540D\u79F0","proj.table.owner":"\u9879\u76EE\u6240\u6709\u8005","proj.table.datasets":"\u6570\u636E\u96C6","proj.table.progress":"\u4EFB\u52A1\u8FDB\u5EA6","proj.table.PM":"\u9879\u76EE\u7ECF\u7406","proj.table.status":"\u72B6\u6001","proj.table.createAt":"\u521B\u5EFA\u65F6\u95F4","proj.table.action":"\u64CD\u4F5C","proj.table.action.accept":"\u901A\u8FC7","proj.table.action.reject":"\u62D2\u7EDD","proj.table.action.reject.tips":"\u786E\u5B9A\u8981\u62D2\u7EDD\u8FD9\u4E2A\u9879\u76EE\u5417\uFF1F","proj.table.action.edit":"\u7F16\u8F91","proj.table.action.init":"\u521D\u59CB\u5316","proj.table.action.info":"\u4FE1\u606F","proj.table.action.detail":"\u8BE6\u60C5","proj.table.action.export":"\u5BFC\u51FA","proj.table.newProject":"\u65B0\u5EFA\u9879\u76EE","proj.table.detail.index":"\u7D22\u5F15","proj.table.detail.labelLeader":"\u6807\u6CE8\u7EC4\u957F","proj.table.detail.labeler":"\u6807\u6CE8\u5458","proj.table.detail.reviewLeader":"\u5BA1\u6838\u7EC4\u957F","proj.table.detail.reviewer":"\u5BA1\u6838\u5458","proj.table.detail.progress":"\u8FDB\u5EA6","proj.table.detail.status":"\u72B6\u6001","proj.table.detail.action":"\u64CD\u4F5C","proj.table.detail.action.assignLeader":"\u5206\u914D\u7EC4\u957F","proj.table.detail.action.assignWorker":"\u5206\u914D\u64CD\u4F5C\u4EBA","proj.table.detail.action.detail":"\u8BE6\u60C5","proj.table.detail.action.restart":"\u91CD\u65B0\u5F00\u59CB","proj.table.detail.action.accept":"\u901A\u8FC7","proj.table.detail.action.reject":"\u62D2\u7EDD","proj.table.detail.action.reject.tips":"\u786E\u5B9A\u8981\u62D2\u7EDD\u8FD9\u4E2A\u4EFB\u52A1\u5417\uFF1F","proj.table.detail.action.view":"\u67E5\u770B","proj.table.detail.action.startLabel":"\u5F00\u59CB\u6807\u6CE8","proj.table.detail.action.startReview":"\u5F00\u59CB\u5BA1\u6838","proj.table.detail.batchAssignLeader":"\u6279\u91CF\u5206\u914D\u7EC4\u957F","proj.detail.owner":"\u9879\u76EE\u6240\u6709\u8005","proj.detail.managers":"\u9879\u76EE\u7ECF\u7406","proj.assign.modal.assign":"\u5206\u914D","proj.assign.modal.reassign":"\u91CD\u65B0\u5206\u914D","proj.assign.modal.ll.label":"\u6807\u6CE8\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.ll.placeholder":"\u9009\u62E9\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u56E2\u961F\u8D1F\u8D23\u4EBA\u6765\u5206\u914D\u6807\u6CE8\u5458","proj.assign.modal.ll.tooltip":"\u4E5F\u53EF\u4EE5\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.ll.msg":"\u8BF7\u9009\u62E9\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u6B64\u4EFB\u52A1\u7684\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.rl.label":"\u5BA1\u6838\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.rl.placeholder":"\u9009\u62E9\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u56E2\u961F\u8D1F\u8D23\u4EBA\u6765\u5206\u914D\u5BA1\u6838\u5458","proj.assign.modal.rl.tooltip":"\u4E5F\u53EF\u4EE5\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.rl.msg":"\u8BF7\u9009\u62E9\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u6B64\u4EFB\u52A1\u7684\u56E2\u961F\u8D1F\u8D23\u4EBA","proj.assign.modal.ler.label":"\u6807\u6CE8\u5458","proj.assign.modal.ler.placeholder":"\u9009\u62E9{times}\u540D\u6210\u5458\u4F5C\u4E3A\u6807\u6CE8\u5458\u5DE5\u4F5C","proj.assign.modal.ler.tootltip":"\u4E5F\u53EF\u4EE5\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u6807\u6CE8\u5458","proj.assign.modal.ler.msg":"\u8BF7\u9009\u62E9{times}\u540D\u6210\u5458\u4F5C\u4E3A\u6B64\u4EFB\u52A1\u7684\u6807\u6CE8\u5458","proj.assign.modal.ler.msgTimes":"\u5FC5\u987B\u662F{times}\u540D\u6210\u5458","proj.assign.modal.rer.label":"\u5BA1\u6838\u5458","proj.assign.modal.rer.placeholder":"\u9009\u62E9{times}\u540D\u6210\u5458\u4F5C\u4E3A\u6807\u6CE8\u5458\u5DE5\u4F5C","proj.assign.modal.rer.tootltip":"\u4E5F\u53EF\u4EE5\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u5BA1\u6838\u5458","proj.assign.modal.rer.msg":"\u8BF7\u9009\u62E9{times}\u540D\u6210\u5458\u4F5C\u4E3A\u6B64\u4EFB\u52A1\u7684\u5BA1\u6838\u5458","proj.assign.modal.rer.msgTimes":"\u5FC5\u987B\u662F{times}\u540D\u6210\u5458","proj.assign.modal.reassign.label":"\u91CD\u65B0\u5206\u914D\u7ED9","proj.assign.modal.reassign.placeholder":"\u9009\u62E9\u4E00\u540D\u6210\u5458\u8FDB\u884C\u91CD\u65B0\u5206\u914D","proj.assign.modal.reassign.msg":"\u8BF7\u9009\u62E9\u4E00\u540D\u6210\u5458\u8FDB\u884C\u91CD\u65B0\u5206\u914D","proj.detail.modal.reassign":"\u91CD\u65B0\u5206\u914D","proj.detail.modal.index":"\u7D22\u5F15","proj.detail.modal.role":"\u89D2\u8272","proj.detail.modal.worker":"\u4EBA\u5458","proj.detail.modal.progress":"\u8FDB\u5EA6","proj.detail.modal.action":"\u64CD\u4F5C","proj.detail.modal.title":"ID\uFF1A{id} \u7684\u4EFB\u52A1\u8BE6\u60C5","proj.taskProgress.done":"\u5B8C\u6210","proj.taskProgress.inRework":"\u5DF2\u9A73\u56DE","proj.taskProgress.toReview":"\u5F85\u5BA1\u6838","proj.taskProgress.toLabel":"\u5F85\u6807\u6CE8","proj.assignModalFinish.assignLeader":"\u5206\u914D\u56E2\u961F\u8D1F\u8D23\u4EBA\u6210\u529F!","proj.assignModalFinish.assignWorker":"\u5206\u914D\u56E2\u961F\u5DE5\u4F5C\u4EBA\u5458\u6210\u529F!","proj.assignModalFinish.reassignWorker":"\u91CD\u65B0\u5206\u914D\u56E2\u961F\u5DE5\u4F5C\u4EBA\u5458\u6210\u529F!","proj.assignModalFinish.restarTask":"\u91CD\u65B0\u5F00\u59CB\u4EFB\u52A1\u6210\u529F!","proj.assignModalFinish.commiTask":"\u63D0\u4EA4\u4EFB\u52A1\u6210\u529F!","proj.assignModalFinish.changeTaskStatus":"\u4FEE\u6539\u4EFB\u52A1\u72B6\u6001\u6210\u529F!","proj.projectModalFinish.new":"\u65B0\u5EFA\u9879\u76EE\u6210\u529F!","proj.projectModalFinish.edit":"\u7F16\u8F91\u9879\u76EE\u6210\u529F!","proj.projectModalFinish.init":"\u521D\u59CB\u5316\u9879\u76EE\u6210\u529F!","proj.projectModalFinish.change":"\u4FEE\u6539\u9879\u76EE\u72B6\u6001\u6210\u529F!","proj.onLabelSave.warning":"\u6CA1\u6709\u6DFB\u52A0\u4EFB\u4F55\u6807\u6CE8\uFF0C\u8BF7\u68C0\u67E5","proj.onLabelSave.loading":"\u6B63\u5728\u4FDD\u5B58\u6807\u6CE8...","proj.onLabelSave.save":"\u4FDD\u5B58\u6210\u529F\uFF01","proj.onLabelSave.finish":"\u5B8C\u6210\u5DE5\u4F5C\uFF01","proj.onLabelSave.error":"\u4FDD\u5B58\u6807\u6CE8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","proj.onReviewResult.loading":"\u6B63\u5728\u4FDD\u5B58\u5BA1\u6838\u7ED3\u679C...","proj.onReviewResult.save":"\u4FDD\u5B58\u6210\u529F\uFF01","proj.onReviewResult.finish":"\u5B8C\u6210\u5DE5\u4F5C\uFF01","proj.onReviewResult.error":"\u4FDD\u5B58\u5BA1\u6838\u7ED3\u679C\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5","proj.tabItems.toLabel":"\u5F85\u6807\u6CE8 ({num})","proj.tabItems.toReview":"\u5F85\u5BA1\u6838 ({num})","proj.tabItems.inRework":"\u5DF2\u9A73\u56DE ({num})","proj.tabItems.done":"\u5DF2\u5B8C\u6210 ({num})","proj.editModal.editProj":"\u7F16\u8F91\u9879\u76EE","proj.editModal.newProj":"\u65B0\u5EFA\u9879\u76EE","proj.editModal.stepForm.title":"\u57FA\u7840\u4FE1\u606F","proj.editModal.stepForm.desc":"\u4EC5\u9650\u7BA1\u7406\u5458","proj.editModal.stepForm.name.label":"\u9879\u76EE\u540D\u79F0","proj.editModal.stepForm.name.placeholder":"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0","proj.editModal.stepForm.name.rule":"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0","proj.editModal.stepForm.desc.label":"\u63CF\u8FF0","proj.editModal.stepForm.desc.placeholder":"\u9009\u586B\uFF0C\u5173\u4E8E\u9879\u76EE\u7684\u63CF\u8FF0","proj.editModal.stepForm.dataset.label":"\u6570\u636E\u96C6","proj.editModal.stepForm.dataset.placeholder":"\u8BF7\u81F3\u5C11\u8FDE\u63A5\u4E00\u4E2A\u6570\u636E\u96C6\u81F3\u6B64\u9879\u76EE","proj.editModal.stepForm.dataset.rule":"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u6570\u636E\u96C6","proj.editModal.stepForm.preLabel.label":"\u9884\u6807\u6CE8","proj.editModal.stepForm.preLabel.placeholder":"\u8BF7\u8F93\u5165\u9884\u6807\u6CE8\u540D\u79F0","proj.editModal.stepForm.category.label":"\u5206\u7C7B","proj.editModal.stepForm.category.placeholder":"\u8BF7\u4EE5\u9017\u53F7\u5206\u9694\u8F93\u5165\u9879\u76EE\u5206\u7C7B","proj.editModal.stepForm.category.rule":"\u8BF7\u8F93\u5165\u9879\u76EE\u5206\u7C7B","proj.editModal.stepForm.PM.label":"\u9879\u76EE\u7ECF\u7406","proj.editModal.stepForm.PM.placeholder":"\u8BF7\u9009\u62E9\u81F3\u5C11\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u9879\u76EE\u7ECF\u7406\u6765\u7BA1\u7406\u4EFB\u52A1","proj.editModal.stepForm.PM.extra":"\u4E5F\u53EF\u4EE5\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u9879\u76EE\u7ECF\u7406","proj.editModal.stepForm.PM.rule":"\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u540D\u6210\u5458\u4F5C\u4E3A\u9879\u76EE\u7ECF\u7406","proj.editModal.stepForm.task.title":"\u6D41\u7A0B\u8BBE\u7F6E","proj.editModal.stepForm.task.desc":"\u4EC5\u9879\u76EE\u7ECF\u7406\u53EF\u89C1","proj.editModal.stepForm.task.msg":"\u4EC5\u9879\u76EE\u7ECF\u7406\u53EF\u89C1\uFF08\u60A8\u4E5F\u53EF\u4EE5\u5728\u524D\u4E00\u6B65\u4E2D\u5C06\u81EA\u5DF1\u5206\u914D\u4E3A\u9879\u76EE\u7ECF\u7406\uFF09\u3002","proj.editModal.stepForm.radio.label":"\u4EFB\u52A1\u5206\u914D\u65B9\u5F0F","proj.editModal.stepForm.radio.dataset":"\u6570\u636E\u96C6","proj.editModal.stepForm.radio.size":"\u6279\u6B21\u5927\u5C0F","proj.editModal.stepForm.batchSize.label":"\u6279\u6B21\u5927\u5C0F","proj.editModal.stepForm.batchSize.placeholder":"\u8BF7\u8F93\u5165\u6279\u6B21\u5927\u5C0F","proj.editModal.stepForm.batchSize.tooltip":"\u6279\u6B21\u5927\u5C0F\u8BBE\u7F6E\u4E3A\u6BCF\u4E2A\u4EFB\u52A1\u7684\u56FE\u50CF\u6570\u91CF","proj.editModal.stepForm.batchSize.msg":"\u8BF7\u8F93\u5165\u6279\u6B21\u5927\u5C0F","proj.editModal.stepForm.rview.label":"\u5BA1\u6838\u8005\u8BBE\u7F6E","proj.editModal.stepForm.rview.no":"\u65E0\u5BA1\u6838\u8005","proj.editModal.stepForm.rview.one":"1 \u540D\u5BA1\u6838\u8005","proj.editModal.setWorkflowNow":"\u7ACB\u5373\u8BBE\u7F6E\u5DE5\u4F5C\u6D41\u7A0B","proj.infoModal.title":"\u9879\u76EE\u4FE1\u606F","proj.infoModal.name":"\u9879\u76EE\u540D\u79F0","proj.infoModal.desc":"\u63CF\u8FF0","proj.infoModal.label":"\u9879\u76EE\u7ECF\u7406","proj.exportModal.title":"\u5BFC\u51FA\u5230\u6570\u636E\u96C6","proj.exportModal.labelName.name":"\u6807\u6CE8\u96C6\u540D\u79F0","proj.exportModal.labelName.rule":"\u8BF7\u8F93\u5165\u6807\u6CE8\u96C6\u540D\u79F0","proj.exportModal.labelName.tips":"\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u540E\uFF0C\u53EF\u4EE5\u7528\u6807\u6CE8\u96C6\u540D\u79F0\u67E5\u770B\u6240\u9009\u6570\u636E\u96C6\u7684\u6807\u6CE8\u7ED3\u679C\u3002","proj.exportModal.submitSuccess":'\u5DF2\u6210\u529F\u5BFC\u51FA\u6807\u6CE8\u96C6 "{name}" \u5230\u6240\u9009\u6570\u636E\u96C6\uFF0C\u60A8\u53EF\u4EE5\u5728\u6570\u636E\u96C6\u6A21\u5757\u4E2D\u67E5\u770B\u6807\u6CE8\u7ED3\u679C\u3002',"proj.workspace.eTask.startLabel":"\u5F00\u59CB\u6807\u6CE8","proj.workspace.eTask.edit":"\u7F16\u8F91","proj.workspace.eTask.startRework":"\u5904\u7406\u9A73\u56DE","proj.workspace.eTask.startReview":"\u5F00\u59CB\u5BA1\u6838","proj.workspace.eProj.startLabeling":"\u5F00\u59CB\u6807\u6CE8","proj.workspace.eProj.startRework":"\u5904\u7406\u9A73\u56DE","proj.workspace.eProj.startReview":"\u5F00\u59CB\u5BA1\u6838","proj.workspace.eProj.role":"\u5F53\u524D\u89D2\u8272","proj.statusMap.waiting":"\u7B49\u5F85\u4E2D","proj.statusMap.initializing":"\u521D\u59CB\u5316\u4E2D","proj.statusMap.working":"\u8FDB\u884C\u4E2D","proj.statusMap.reviewing":"\u5BA1\u6838\u4E2D","proj.statusMap.rejected":"\u5DF2\u62D2\u7EDD","proj.statusMap.accepted":"\u5DF2\u901A\u8FC7","proj.statusMap.exported":"\u5DF2\u5BFC\u51FA","proj.eTaskStatus.waiting":"\u7B49\u5F85\u4E2D","proj.eTaskStatus.working":"\u8FDB\u884C\u4E2D","proj.eTaskStatus.reviewing":"\u5BA1\u6838\u4E2D","proj.eTaskStatus.rejected":"\u5DF2\u62D2\u7EDD","proj.eTaskStatus.accepted":"\u5DF2\u901A\u8FC7","lab.card.title":"\u6807\u8BB0\u5DE5\u5177","lab.card.subTitle":"\u9009\u62E9\u9700\u8981\u6807\u8BB0\u7684\u56FE\u50CF","lab.toolsBar.selectAll":"\u5168\u9009","lab.toolsBar.selectSome":"\u5DF2\u9009\u62E9 {num} \u5F20","lab.toolsBar.selectInvert":"\u53CD\u9009","lab.toolsBar.filter":"\u8FC7\u6EE4","lab.toolsBar.saveAs":"\u5C06\u5DF2\u9009\u9879\u76EE\u4FDD\u5B58\u4E3A","lab.toolsBar.genEmbed":"\u751F\u6210 Embedding","lab.toolsBar.updateOrder":"\u66F4\u65B0\u987A\u5E8F","lab.displayOption.showAnnotations":"\u663E\u793A\u9009\u5B9A\u7C7B\u578B\u7684\u6807\u6CE8","lab.displayOption.showAllCategory":"\u663E\u793A\u6240\u6709\u5206\u7C7B\u7684\u6807\u6CE8","lab.displayOption.showImgDesc":"\u663E\u793A\u56FE\u50CF\u63CF\u8FF0","lab.displayOption.showBoxText":"\u5728\u6846\u4E2D\u663E\u793A\u6587\u672C","lab.displayOption.showSegFilling":"\u663E\u793A\u5206\u5272\u7EBF\u6761\uFF08F\uFF09","lab.displayOption.showSegContour":"\u663E\u793A\u5206\u5272\u8F6E\u5ED3\uFF08C\uFF09","lab.displayOption.showMattingColorFill":"\u663E\u793A\u62A0\u56FE\u989C\u8272\u586B\u5145","lab.displayOption.showKeyPointsLine":"\u663E\u793A\u5173\u952E\u70B9\u7EBF\u6761","lab.displayOption.showKeyPointsBox":"\u663E\u793A\u5173\u952E\u70B9\u6846","lab.onClickCopyLink.success":"\u590D\u5236\u94FE\u63A5\u6210\u529F!","layout.title":"Deep Data Space","requestConfig.errorData.msg":"\u8BF7\u6C42\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5\uFF08{code}\uFF09","requestConfig.success.msg":"\u8BF7\u6C42\u6210\u529F\u3002","requestConfig.unAuth.msg":"\u672A\u6388\u6743\u7684\u8BBF\u95EE\u3002\u8BF7\u767B\u5F55\u3002","requestConfig.permissionDenied.msg":"\u6743\u9650\u88AB\u62D2\u7EDD\u3002\u60A8\u7684\u5E10\u6237\u6CA1\u6709\u6267\u884C\u6B64\u64CD\u4F5C\u6240\u9700\u7684\u6743\u9650\u3002","requestConfig.responseStatus.msg":"\u54CD\u5E94\u72B6\u6001\uFF1A{status}","requestConfig.noResponse.msg":"\u65E0\u54CD\u5E94\uFF01\u8BF7\u91CD\u8BD5\u3002","requestConfig.requestError.msg":"\u8BF7\u6C42\u9519\u8BEF\uFF0C\u8BF7\u91CD\u8BD5\u3002","requestConfig.errorContent.msg":"\u8BF7\u6C42\u6587\u672C\u4E2D\u5B58\u5728\u654F\u611F\u8BCD\uFF0C\u8BF7\u68C0\u67E5\u3002","errCode.PartialSuccessBatchAssignLeaders":"\u6210\u529F\u5206\u914D\u7EC4\u957F\u3002","errCode.PartialSuccessBatchAssignWorkers":"\u6210\u529F\u5206\u914D\u64CD\u4F5C\u4EBA\u3002","errCode.BadRequest":"\u9519\u8BEF\u8BF7\u6C42","errCode.ParameterMissing":"\u53C2\u6570\u7F3A\u5931","errCode.ParameterIsInvalid":"\u53C2\u6570\u65E0\u6548","errCode.CaptchaVerificationFailed":"\u9A8C\u8BC1\u7801\u9A8C\u8BC1\u5931\u8D25\u3002","errCode.AnnotationNotListOfObj":"\u6807\u6CE8\u5BF9\u8C61\u5FC5\u987B\u662F\u4E00\u4E2A\u5BF9\u8C61\u5217\u8868\u3002","errCode.AnnotationMissingCatName":"\u6807\u6CE8\u5BF9\u8C61\u7F3A\u5931\u7C7B\u522B\u540D\u79F0\u3002","errCode.AnnotationMissingBBox":"\u6CE8\u91CA\u5BF9\u8C61\u7F3A\u5C11\u8FB9\u6846\u3002","errCode.AnnotationBBoxFormatError":"\u6807\u6CE8\u5BF9\u8C61\u8FB9\u6846\u683C\u5F0F\u9519\u8BEF","errCode.AnnotationFormatError":"\u6807\u6CE8\u5BF9\u8C61\u683C\u5F0F\u9519\u8BEF\u3002","errCode.FlagGroupsNotListOfObj":"\u6807\u8BB0\u7EC4\u5FC5\u987B\u662F\u4E00\u4E2A\u5BF9\u8C61\u5217\u8868\u3002","errCode.FlagObjectMissingFlag":"\u6807\u8BB0\u5BF9\u8C61\u7F3A\u5931\u6807\u8BB0\u3002","errCode.FlagObjectFlagValueInvalid":"\u6807\u8BB0\u5BF9\u8C61\u6807\u8BB0\u65E0\u6548\uFF0C\u6807\u8BB0\u503C\u5FC5\u987B\u662F[0, 1, 2]\u5176\u4E2D\u4E4B\u4E00\u3002","errCode.FlagObjectMissingIDs":"\u6807\u8BB0\u5BF9\u8C61\u7F3A\u5931ID\u3002","errCode.FlagObjectIDsNotList":"\u6807\u8BB0\u5BF9\u8C61ID\u5FC5\u987B\u662F\u4E00\u4E2A\u5217\u8868\u3002","errCode.LabelSetNameInvalid":"\u6807\u6CE8\u96C6\u540D\u79F0\u4E0D\u80FD\u662FGroundTruth\u548CUserAnnotation\u3002","errCode.LabelSetNameConflicts":"\u76EE\u6807\u6807\u6CE8\u96C6\u540D\u79F0\u5DF2\u88AB\u5360\u7528\u3002","errCode.UserNotFoundForLabelProject":"\u6807\u6CE8\u9879\u76EE\u672A\u627E\u5230\u7528\u6237\u3002","errCode.UserNotActiveForLabelProject":"\u6807\u6CE8\u9879\u76EE\u7528\u6237\u672A\u6FC0\u6D3B\u3002","errCode.DatasetNotFoundForLabelProject":"\u6807\u6CE8\u9879\u76EE\u672A\u627E\u5230\u6570\u636E\u96C6\u3002","errCode.LabelTaskNotFoundForLabelProject":"\u6807\u6CE8\u9879\u76EE\u672A\u627E\u5230\u6807\u6CE8\u4EFB\u52A1\u3002","errCode.CreateLabelProjectRequireManager":"\u521B\u5EFA\u6807\u6CE8\u9879\u76EE\u65F6\u9879\u76EE\u7ECF\u7406\u4E0D\u80FD\u4E3A\u7A7A\u3002","errCode.CreateLabelProjectRequireDataset":"\u521B\u5EFA\u6807\u6CE8\u9879\u76EE\u65F6\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A\u3002","errCode.CreateLabelProjectRequireCategory":"\u521B\u5EFA\u6807\u6CE8\u9879\u76EE\u65F6\u7C7B\u522B\u4E0D\u80FD\u4E3A\u7A7A\u3002","errCode.CreateLabelProjectDatasetOccupied":"\u6570\u636E\u96C6\u5DF2\u88AB\u5176\u4ED6\u6807\u6CE8\u9879\u76EE\u5360\u7528\u3002","errCode.EditLabelProjectRequireManager":"\u7F16\u8F91\u6807\u6CE8\u9879\u76EE\u65F6\u9879\u76EE\u7ECF\u7406\u4E0D\u80FD\u4E3A\u7A7A\u3002","errCode.InitLabelProjectMustBeWaiting":"\u6807\u6CE8\u9879\u76EE\u7684\u521D\u59CB\u5316\u72B6\u6001\u5FC5\u987B\u4E3A\u7B49\u5F85\u4E2D\u3002","errCode.InitLabelProjectTaskConfigError":"\u6279\u6B21\u5927\u5C0F\u3001\u6807\u6CE8\u5458\u3001\u5BA1\u6838\u5458\u5FC5\u987B\u540C\u65F6\u8BBE\u7F6E\u3002","errCode.QALabelProjectActionError":"\u64CD\u4F5C\u9519\u8BEF\uFF0C\u5FC5\u987B\u4E3A\u63A5\u53D7\u6216\u62D2\u7EDD\u3002","errCode.QALabelProjectMustBeReviewing":"\u6807\u6CE8\u9879\u76EE\u7684\u72B6\u6001\u5FC5\u987B\u4E3A\u5BA1\u6838\u4E2D\u3002","errCode.ExportLabelProjectMustBeAccepted":"\u6807\u6CE8\u9879\u76EE\u7684\u72B6\u6001\u5FC5\u987B\u4E3A\u5DF2\u63A5\u53D7\u3002","errCode.LeaderIDIsRequired":"\u6807\u6CE8\u7EC4\u957FID\u548C\u5BA1\u6838\u7EC4\u957FID\u4E0D\u80FD\u540C\u65F6\u4E3A\u7A7A\u3002","errCode.LabelerIDIsRequired":"\u6807\u6CE8\u5458ID\u548C\u5BA1\u6838\u5458ID\u4E0D\u80FD\u540C\u65F6\u4E3A\u7A7A\u3002","errCode.LabelProjectRoleIsNotTaskLevel":"\u6807\u6CE8\u9879\u76EE\u4E2D\u7684\u89D2\u8272\u4E0D\u662F\u4EFB\u52A1\u7EA7\u522B\uFF0C\u56E0\u6B64\u65E0\u6CD5\u88AB\u7ED1\u5B9A\u5230\u67D0\u4E2A\u4EFB\u52A1\u3002","errCode.CantReplaceRoleWithTheSameUser":"\u4E0D\u80FD\u7528\u540C\u4E2A\u7528\u6237\u66FF\u6362\u89D2\u8272\u3002","errCode.OldUserDoesNotHaveTheTaskRole":"\u65E7\u7528\u6237\u6CA1\u6709\u53EF\u88AB\u66FF\u6362\u7684\u4EFB\u52A1\u89D2\u8272\u3002","errCode.NewUserAlreadyHaveTheTaskRole":"\u65B0\u7528\u6237\u5DF2\u6709\u4EFB\u52A1\u89D2\u8272\u3002","errCode.CantTransferRoleBetweenDifferentTask":"\u89D2\u8272\u4E0D\u652F\u6301\u5728\u4E0D\u540C\u4EFB\u52A1\u95F4\u8FC1\u79FB\u3002","errCode.CantTransferRoleToDifferentKind":"\u65E0\u6CD5\u5C06\u89D2\u8272\u8F6C\u6362\u4E3A\u5176\u5B83\u7C7B\u578B\u3002","errCode.RestartLabelTaskMustBeRejected":"\u6807\u6CE8\u4EFB\u52A1\u72B6\u6001\u5FC5\u987B\u4E3A\u62D2\u7EDD\u3002","errCode.QALabelTaskActionError":"\u64CD\u4F5C\u9519\u8BEF\uFF0C\u5FC5\u987B\u4E3A\u63A5\u53D7\u3001\u62D2\u7EDD\u6216\u5F3A\u5236\u63A5\u53D7\u3002","errCode.AcceptLabelTaskMustBeReviewing":"\u63A5\u53D7\u6807\u6CE8\u4EFB\u52A1\u7684\u72B6\u6001\u5FC5\u987B\u4E3A\u5BA1\u6838\u4E2D\u3002","errCode.RejectLabelTaskMustBeReviewing":"\u62D2\u7EDD\u6807\u6CE8\u4EFB\u52A1\u7684\u72B6\u6001\u5FC5\u987B\u4E3A\u5BA1\u6838\u4E2D\u3002","errCode.ForceAcceptLabelTaskMustBeRejected":"\u5F3A\u5236\u63A5\u53D7\u6807\u6CE8\u4EFB\u52A1\u7684\u72B6\u6001\u5FC5\u987B\u4E3A\u5BA1\u6838\u4E2D\u3002","errCode.LabelAnnotationMissingFields":"\u6807\u6CE8\u5B57\u6BB5\u7F3A\u5931\u3002","errCode.LabelAnnotationFieldValueInvalid":"\u6807\u6CE8\u5B57\u6BB5\u5BF9\u5E94\u6570\u503C\u65E0\u6548\u3002","errCode.LabelImageRequireTaskStatusWorking":"\u6807\u6CE8\u56FE\u7247\u8981\u6C42\u4EFB\u52A1\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D\u3002","errCode.LabelImageRequireUnfinishedReviewing":"\u6807\u6CE8\u56FE\u7247\u8981\u6C42\u4EFB\u52A1\u72B6\u6001\u4E3A\u672A\u5B8C\u6210\u5BA1\u6838\u4E2D\u3002","errCode.ReviewImageRequireTaskStatusWorking":"\u5BA1\u6838\u56FE\u7247\u8981\u6C42\u4EFB\u52A1\u72B6\u6001\u4E3A\u8FDB\u884C\u4E2D\u3002","errCode.ReviewImageRequireFinishedLabeling":"\u5BA1\u6838\u56FE\u7247\u9700\u8981\u5DF2\u5B8C\u6210\u6807\u6CE8\u3002","errCode.ReviewImageTargetLabelNotFound":"\u5BA1\u6838\u56FE\u7247\u76EE\u6807\u6807\u7B7E\u672A\u627E\u5230\u3002","errCode.ReviewImageFoundExistedReview":"\u56FE\u7247\u5DF2\u7ECF\u88AB\u5BA1\u6838\u8FC7\u3002","errCode.CantDeleteAllOwnersOfLabelProject":"\u4E0D\u80FD\u5220\u9664\u6807\u6CE8\u9879\u76EE\u7684\u6240\u6709\u6240\u6709\u8005\u3002","errCode.NumOfTaskLeaderMismatchesConfig":"\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u6570\u91CF\u4E0E\u914D\u7F6E\u4E0D\u5339\u914D\u3002","errCode.TaskDoesNotRequireReviewer":"\u4EFB\u52A1\u4E0D\u9700\u8981\u5BA1\u6838\u5458\u3002","errCode.NumOfTaskLabelerMismatchesConfig":"\u4EFB\u52A1\u6807\u6CE8\u5458\u6570\u91CF\u4E0E\u914D\u7F6E\u4E0D\u5339\u914D\u3002","errCode.NumOfTaskReviewerMismatchesConfig":"\u4EFB\u52A1\u5BA1\u6838\u5458\u6570\u91CF\u4E0E\u914D\u7F6E\u4E0D\u5339\u914D\u3002","errCode.TryInitRoleForTaskWithActiveRoles":"\u65E0\u6CD5\u4E3A\u5DF2\u6709\u6D3B\u8DC3\u72B6\u6001\u89D2\u8272\u7684\u4EFB\u52A1\u521D\u59CB\u5316\u89D2\u8272\u3002","errCode.TaskRoleNotOfLeaderKind":"\u4EFB\u52A1\u89D2\u8272\u4E0D\u662F\u9886\u5BFC\u8005\u7C7B\u578B\u3002","errCode.Unauthorized":"\u672A\u7ECF\u6388\u6743\u3002","errCode.Forbidden":"\u7981\u6B62\u8BBF\u95EE\u3002","errCode.UserAuthenticationFailed":"\u7528\u6237\u8BA4\u8BC1\u5931\u8D25\u3002","errCode.UserCantViewLabelProjectTask":"\u7528\u6237\u65E0\u6CD5\u67E5\u770B\u6807\u6CE8\u9879\u76EE\u4EFB\u52A1\u3002","errCode.UserCantViewLabelProjectRole":"\u7528\u6237\u65E0\u6CD5\u67E5\u770B\u6807\u6CE8\u9879\u76EE\u89D2\u8272\u3002","errCode.UserCantCreateLabelProject":"\u7528\u6237\u65E0\u6CD5\u521B\u5EFA\u6807\u6CE8\u9879\u76EE","errCode.UserCantViewLabelProject":"\u7528\u6237\u65E0\u6CD5\u67E5\u770B\u6807\u6CE8\u9879\u76EE\u3002","errCode.UserCantEditLabelProject":"\u7528\u6237\u65E0\u6CD5\u7F16\u8F91\u6807\u6CE8\u9879\u76EE\u3002","errCode.UserCantInitLabelProject":"\u7528\u6237\u65E0\u6CD5\u521D\u59CB\u5316\u6807\u6CE8\u9879\u76EE","errCode.UserCantQALabelProject":"\u7528\u6237\u65E0\u6CD5\u8FDB\u884C\u6807\u6CE8\u9879\u76EE\u7684 QA\u3002","errCode.UserCantExportLabelProject":"\u7528\u6237\u65E0\u6CD5\u5BFC\u51FA\u6807\u6CE8\u9879\u76EE\u3002","errCode.UserCantAssignLabelTaskLeader":"\u7528\u6237\u65E0\u6CD5\u6307\u5B9A\u6807\u6CE8\u4EFB\u52A1\u8D1F\u8D23\u4EBA\u3002","errCode.UserCantAssignLabelTaskWorker":"\u7528\u6237\u65E0\u6CD5\u6307\u5B9A\u6807\u6CE8\u4EFB\u52A1\u6807\u6CE8\u5458\u3002","errCode.UserCantRestartLabelTask":"\u7528\u6237\u65E0\u6CD5\u91CD\u65B0\u542F\u52A8\u6807\u6CE8\u4EFB\u52A1\u3002","errCode.UserCantQALabelTask":"\u7528\u6237\u65E0\u6CD5\u8FDB\u884C\u6807\u6CE8\u4EFB\u52A1\u7684 QA\u3002","errCode.UserCantLabelTaskImage":"\u7528\u6237\u65E0\u6CD5\u6807\u6CE8\u4EFB\u52A1\u56FE\u50CF\u3002","errCode.UserCantReviewTaskImage":"\u7528\u6237\u65E0\u6CD5\u5BA1\u6838\u4EFB\u52A1\u56FE\u50CF\u3002","errCode.NotFound":"\u672A\u627E\u5230\u3002","errCode.DatasetNotFound":"\u6570\u636E\u96C6\u672A\u627E\u5230\u3002","errCode.DatasetNotReadable":"\u6570\u636E\u96C6\u4E0D\u53EF\u8BFB\u3002","errCode.DatasetMissingEmbdFile":"\u6570\u636E\u96C6\u7F3A\u5C11 embedding \u6587\u4EF6\u3002","errCode.DatasetImageNotFound":"\u6570\u636E\u96C6\u56FE\u50CF\u672A\u627E\u5230\u3002","errCode.DatasetHasNoFNFPData":"\u6570\u636E\u96C6\u6CA1\u6709 FN/FP \u6570\u636E\u3002","errCode.DatasetLabelNotFound":"\u6570\u636E\u96C6\u6807\u7B7E\u672A\u627E\u5230\u3002","errCode.DatasetFNFPPrecisionNotFound":"\u6570\u636E\u96C6 FN/FP \u7CBE\u5EA6\u672A\u627E\u5230\u3002","errCode.DatasetSubsetNotFound":"\u6570\u636E\u96C6\u5B50\u96C6\u672A\u627E\u5230\u3002","errCode.LabelProjectNotFound":"\u6807\u6CE8\u9879\u76EE\u672A\u627E\u5230\u3002","errCode.LabelProjectRoleNotFound":"\u6807\u6CE8\u9879\u76EE\u89D2\u8272\u672A\u627E\u5230\u3002","errCode.LabelProjectTaskNotFound":"\u6807\u6CE8\u9879\u76EE\u4EFB\u52A1\u672A\u627E\u5230\u3002","errCode.LabelTaskImageNotFound":"\u6807\u6CE8\u4EFB\u52A1\u56FE\u50CF\u672A\u627E\u5230\u3002","errCode.TokenExceedsRateLimit":"\u8BE5\u8D26\u53F7\u8BF7\u6C42\u8D85\u8FC7\u9650\u9891\u3002","errCode.InternalError":"\u5185\u90E8\u9519\u8BEF\u3002","errCode.FailedToCloneLabelSet":"\u514B\u9686\u6807\u6CE8\u96C6\u5931\u8D25\u3002","errCode.UserPasswordInvalid":"\u7528\u6237\u5BC6\u7801\u65E0\u6548","errCode.UserEmailInvalid":"\u7528\u6237\u7535\u5B50\u90AE\u4EF6\u65E0\u6548","errCode.UserEmailOccupied":"\u7528\u6237\u7535\u5B50\u90AE\u4EF6\u5DF2\u88AB\u5360\u7528","errCode.UserActivationTokenInvalid":"\u7528\u6237\u6FC0\u6D3B\u4EE4\u724C\u65E0\u6548","errCode.UserActivationTokenExpired":"\u7528\u6237\u6FC0\u6D3B\u4EE4\u724C\u5DF2\u8FC7\u671F","errCode.UserActivationTokenUsed":"\u7528\u6237\u6FC0\u6D3B\u4EE4\u724C\u5DF2\u88AB\u4F7F\u7528","errCode.UserAlreadyActivated":"\u7528\u6237\u5DF2\u7ECF\u6FC0\u6D3B","errCode.UserEmailWaitForActivation":"\u8BE5\u90AE\u7BB1\u5DF2\u6CE8\u518C\uFF0C\u7B49\u5F85\u7528\u6237\u6FC0\u6D3B\u3002","errCode.UserNotFound":"\u627E\u4E0D\u5230\u7528\u6237","errCode.UserEmailNotFound":"\u627E\u4E0D\u5230\u7528\u6237\u7535\u5B50\u90AE\u4EF6"},xa=s()(s()({},Xr),Fr),la=["cache"],Tn,xn=!0,Gn=new(cr()),Lr=Symbol("LANG_CHANGE"),zr={"en-US":{messages:s()({},Kr),locale:"en-US",antd:s()({},Zn.Z),momentLocale:""},"zh-CN":{messages:s()({},xa),locale:"zh-CN",antd:s()({},ra.Z),momentLocale:"zh-cn"}},Br=function(yt,be,Bt){var Jt,Jn,Kn,br;if(yt){var ea=(Jt=zr[yt])!==null&&Jt!==void 0&&Jt.messages?Object.assign({},zr[yt].messages,be):be,ka=Bt||{},kr=ka.momentLocale,Dr=kr===void 0?(Jn=zr[yt])===null||Jn===void 0?void 0:Jn.momentLocale:kr,wr=ka.antd,sr=wr===void 0?(Kn=zr[yt])===null||Kn===void 0?void 0:Kn.antd:wr,dr=(br=yt.split("-"))===null||br===void 0?void 0:br.join("-");zr[yt]={messages:ea,locale:dr,momentLocale:Dr,antd:sr},dr===Pa()&&Gn.emit(Lr,dr)}},Ma=function(yt){return(0,kn.We)().applyPlugins({key:"locale",type:"modify",initialValue:yt})},co=function(yt){var be=Ma(zr[yt]),Bt=be.cache,Jt=t()(be,la);return Wt(Jt,Bt)},ro=function(yt,be){return Tn&&!be&&!yt?Tn:(yt||(yt=Pa()),yt&&zr[yt]?co(yt):(Rr()(!yt||!!zr[yt],"The current popular language does not exist, please check the locales folder!"),zr["en-US"]?co("en-US"):Wt({locale:"en-US",messages:{}})))},xo=function(yt){Tn=ro(yt,!0)},Pa=function(){var yt=Ma({});if(typeof(yt==null?void 0:yt.getLocale)=="function")return yt.getLocale();var be=navigator.cookieEnabled&&typeof localStorage!="undefined"&&xn?window.localStorage.getItem("umi_locale"):"",Bt,Jt=typeof navigator!="undefined"&&typeof navigator.language=="string";return Bt=Jt?navigator.language.split("-").join("-"):"",be||Bt||"en-US"},Ua=function(){var yt=Pa(),be=["he","ar","fa","ku"],Bt=be.filter(function(Jt){return yt.startsWith(Jt)}).length?"rtl":"ltr";return Bt},eo=function(yt){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Bt=function(){if(Pa()!==yt){if(navigator.cookieEnabled&&typeof window.localStorage!="undefined"&&xn&&window.localStorage.setItem("umi_locale",yt||""),xo(yt),be)window.location.reload();else if(Gn.emit(Lr,yt),window.dispatchEvent){var Jn=new Event("languagechange");window.dispatchEvent(Jn)}}};Bt()},Fo=!0,jo=function(yt,be){return Fo&&(Rr()(!1,`Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl. \u4F7F\u7528\u6B64 api \u4F1A\u9020\u6210\u5207\u6362\u8BED\u8A00\u7684\u65F6\u5019\u65E0\u6CD5\u81EA\u52A8\u5237\u65B0\uFF0C\u8BF7\u4F7F\u7528 useIntl \u6216 injectIntl\u3002 http://j.mp/37Fkd5Q - `),Fo=!1),Tn||Io(ja()),Tn.formatMessage(yt,be)},Bo=function(){return Object.keys(zr)}},47338:function(M,b,e){"use strict";e.d(b,{t:function(){return R},z:function(){return F}});var i=e(88205),t=e.n(i),o=e(61697),s=e.n(o),n=e(77016),c=e.n(n),l=e(2657),v=e.n(l),h=e(44204),m=e.n(h),C=e(58757),p=e(35667),S=C.createContext(null),w=s()(function T(){var z=this;c()(this,T),v()(this,"callbacks",{}),v()(this,"data",{}),v()(this,"update",function(A){z.callbacks[A]&&z.callbacks[A].forEach(function(L){try{var I=z.data[A];L(I)}catch($){L(void 0)}})})});function y(T){var z=T.hook,A=T.onUpdate,L=T.namespace,I=(0,C.useRef)(A),$=(0,C.useRef)(!1),B;try{B=z()}catch(K){console.error("plugin-model: Invoking '".concat(L||"unknown","' model failed:"),K)}return(0,C.useMemo)(function(){I.current(B)},[]),(0,C.useEffect)(function(){$.current?I.current(B):$.current=!0}),null}var Z=new w;function F(T){return(0,p.jsxs)(S.Provider,{value:{dispatcher:Z},children:[Object.keys(T.models).map(function(z){return(0,p.jsx)(y,{hook:T.models[z],namespace:z,onUpdate:function(L){Z.data[z]=L,Z.update(z)}},z)}),T.children]})}function R(T,z){var A=(0,C.useContext)(S),L=A.dispatcher,I=(0,C.useRef)(z);I.current=z;var $=(0,C.useState)(function(){return I.current?I.current(L.data[T]):L.data[T]}),B=t()($,2),K=B[0],H=B[1],ie=(0,C.useRef)(K);ie.current=K;var ce=(0,C.useRef)(!1);return(0,C.useEffect)(function(){return ce.current=!0,function(){ce.current=!1}},[]),(0,C.useEffect)(function(){var te,W=function(O){if(!ce.current)setTimeout(function(){L.data[T]=O,L.update(T)});else{var k=I.current?I.current(O):O,Y=ie.current;m()(k,Y)||(ie.current=k,H(k))}};return(te=L.callbacks)[T]||(te[T]=new Set),L.callbacks[T].add(W),L.update(T),function(){L.callbacks[T].delete(W)}},[T]),K}},76180:function(M,b,e){"use strict";e.d(b,{AD:function(){return U},JJ:function(){return ue},EX:function(){return D},BP:function(){return Ze},pB:function(){return pe},G3:function(){return Je},YZ:function(){return ve},J1:function(){return xe},L8:function(){return ke},Ss:function(){return N},zY:function(){return V},oC:function(){return oe},gS:function(){return Fe},po:function(){return Se},a5:function(){return he},j3:function(){return de},YC:function(){return We},iP:function(){return se},oM:function(){return X},JQ:function(){return ee},Wp:function(){return Ie},$j:function(){return le},uP:function(){return re},Uf:function(){return Ae}});var i=e(2657),t=e.n(i),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,v=(De,Pe,we)=>Pe in De?s(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,h=(De,Pe)=>{for(var we in Pe||(Pe={}))c.call(Pe,we)&&v(De,we,Pe[we]);if(n)for(var we of n(Pe))l.call(Pe,we)&&v(De,we,Pe[we]);return De};const m=De=>o.createElement("svg",h({className:"classification_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M797.723 912.007h-149.1c-59.634 0-109.325-49.691-109.325-109.326V539.325h263.356c59.635 0 109.326 49.69 109.326 109.325v149.073c0 29.804-9.944 54.65-29.804 79.495-29.83 24.818-54.703 34.762-84.48 34.762zm-422.373 0H226.277c-64.593 0-114.257-49.691-114.257-109.326V653.608c0-29.803 9.917-59.634 34.762-79.494 19.86-19.887 49.691-34.79 79.495-34.79h258.398v263.357c0 29.804-9.943 54.65-29.803 79.495-24.846 19.887-49.691 29.83-79.522 29.83zm422.373-422.373H534.339V226.277c0-29.804 9.97-59.634 34.79-79.495 19.887-19.86 49.69-34.762 79.521-34.762h149.073c59.608 4.932 109.298 54.623 109.298 114.257V375.35c0 29.83-9.916 54.676-29.803 79.495-24.846 24.845-49.691 34.762-79.495 34.762zm-313.048 0H221.32c-59.635 0-109.326-49.691-109.326-109.326V231.235c0-29.803 9.944-59.607 34.79-79.494 19.86-24.819 49.69-34.762 74.536-34.762h149.073c59.634 0 109.298 49.664 109.298 109.298v263.384h4.958v-.027z"}));var C="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTc5Ny43MjMgOTEyLjAwN2gtMTQ5LjFjLTU5LjYzNCAwLTEwOS4zMjUtNDkuNjkxLTEwOS4zMjUtMTA5LjMyNlY1MzkuMzI1aDI2My4zNTZjNTkuNjM1IDAgMTA5LjMyNiA0OS42OSAxMDkuMzI2IDEwOS4zMjV2MTQ5LjA3M2MwIDI5LjgwNC05Ljk0NCA1NC42NS0yOS44MDQgNzkuNDk1LTI5LjgzIDI0LjgxOC01NC43MDMgMzQuNzYyLTg0LjQ4IDM0Ljc2MnptLTQyMi4zNzMgMEgyMjYuMjc3Yy02NC41OTMgMC0xMTQuMjU3LTQ5LjY5MS0xMTQuMjU3LTEwOS4zMjZWNjUzLjYwOGMwLTI5LjgwMyA5LjkxNy01OS42MzQgMzQuNzYyLTc5LjQ5NCAxOS44Ni0xOS44ODcgNDkuNjkxLTM0Ljc5IDc5LjQ5NS0zNC43OWgyNTguMzk4djI2My4zNTdjMCAyOS44MDQtOS45NDMgNTQuNjUtMjkuODAzIDc5LjQ5NS0yNC44NDYgMTkuODg3LTQ5LjY5MSAyOS44My03OS41MjIgMjkuODN6bTQyMi4zNzMtNDIyLjM3M0g1MzQuMzM5VjIyNi4yNzdjMC0yOS44MDQgOS45Ny01OS42MzQgMzQuNzktNzkuNDk1IDE5Ljg4Ny0xOS44NiA0OS42OS0zNC43NjIgNzkuNTIxLTM0Ljc2MmgxNDkuMDczYzU5LjYwOCA0LjkzMiAxMDkuMjk4IDU0LjYyMyAxMDkuMjk4IDExNC4yNTdWMzc1LjM1YzAgMjkuODMtOS45MTYgNTQuNjc2LTI5LjgwMyA3OS40OTUtMjQuODQ2IDI0Ljg0NS00OS42OTEgMzQuNzYyLTc5LjQ5NSAzNC43NjJ6bS0zMTMuMDQ4IDBIMjIxLjMyYy01OS42MzUgMC0xMDkuMzI2LTQ5LjY5MS0xMDkuMzI2LTEwOS4zMjZWMjMxLjIzNWMwLTI5LjgwMyA5Ljk0NC01OS42MDcgMzQuNzktNzkuNDk0IDE5Ljg2LTI0LjgxOSA0OS42OS0zNC43NjIgNzQuNTM2LTM0Ljc2MmgxNDkuMDczYzU5LjYzNCAwIDEwOS4yOTggNDkuNjY0IDEwOS4yOTggMTA5LjI5OHYyNjMuMzg0aDQuOTU4di0uMDI3eiIvPjwvc3ZnPg==",p=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,Z=(De,Pe,we)=>Pe in De?p(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,F=(De,Pe)=>{for(var we in Pe||(Pe={}))w.call(Pe,we)&&Z(De,we,Pe[we]);if(S)for(var we of S(Pe))y.call(Pe,we)&&Z(De,we,Pe[we]);return De};const R=De=>o.createElement("svg",F({className:"datasetDetection_svg__icon",viewBox:"0 0 1092 1024",xmlns:"http://www.w3.org/2000/svg",width:213.281,height:200},De),o.createElement("path",{d:"m514.859 116.928 318.336 130.624-1.28 3.2 2.88-1.152v448l-320 128-320-128v-448l2.816 1.152-1.28-3.2 318.528-130.624zm-256 227.2v310.144l224 89.6V434.24h1.28l-225.28-90.112zm512 0L545.323 434.24h1.408v309.632l224-89.6V344.128zm-256.064-158.08-236.352 97.024L514.795 377.6l236.288-94.528-236.288-97.024zM132.523 728.064v160h160v64h-224v-224h64zm830.272 0v224h-224v-64h160v-160h64zm-670.272-672v64h-160v160h-64v-224h224zm670.272 0v224h-64v-160h-160v-64h224z"}),o.createElement("path",{d:"M4.267 0h1024v1024h-1024z",fill:"none"}));var T="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwOTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEzLjI4MSIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Im01MTQuODU5IDExNi45MjggMzE4LjMzNiAxMzAuNjI0LTEuMjggMy4yIDIuODgtMS4xNTJ2NDQ4bC0zMjAgMTI4LTMyMC0xMjh2LTQ0OGwyLjgxNiAxLjE1Mi0xLjI4LTMuMiAzMTguNTI4LTEzMC42MjR6bS0yNTYgMjI3LjJ2MzEwLjE0NGwyMjQgODkuNlY0MzQuMjRoMS4yOGwtMjI1LjI4LTkwLjExMnptNTEyIDBMNTQ1LjMyMyA0MzQuMjRoMS40MDh2MzA5LjYzMmwyMjQtODkuNlYzNDQuMTI4em0tMjU2LjA2NC0xNTguMDgtMjM2LjM1MiA5Ny4wMjRMNTE0Ljc5NSAzNzcuNmwyMzYuMjg4LTk0LjUyOC0yMzYuMjg4LTk3LjAyNHpNMTMyLjUyMyA3MjguMDY0djE2MGgxNjB2NjRoLTIyNHYtMjI0aDY0em04MzAuMjcyIDB2MjI0aC0yMjR2LTY0aDE2MHYtMTYwaDY0em0tNjcwLjI3Mi02NzJ2NjRoLTE2MHYxNjBoLTY0di0yMjRoMjI0em02NzAuMjcyIDB2MjI0aC02NHYtMTYwaC0xNjB2LTY0aDIyNHoiLz48cGF0aCBkPSJNNC4yNjcgMGgxMDI0djEwMjRoLTEwMjR6IiBmaWxsPSJub25lIi8+PC9zdmc+",z=Object.defineProperty,A=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,$=(De,Pe,we)=>Pe in De?z(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,B=(De,Pe)=>{for(var we in Pe||(Pe={}))L.call(Pe,we)&&$(De,we,Pe[we]);if(A)for(var we of A(Pe))I.call(Pe,we)&&$(De,we,Pe[we]);return De};const K=De=>o.createElement("svg",B({className:"datasetSegment_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M179.2 524.288h678.912a25.6 25.6 0 0 0 0-51.2H179.2a25.6 25.6 0 0 0 0 51.2zm700.672-245.504v-56.32l-164.864 156.16H774.4l105.472-99.84zm0 73.216-27.904 26.624h27.904V352zm-242.176 26.624 242.176-229.376v-15.616h-43.264L578.304 378.624h59.392zm-136.96 0 258.56-244.992h-59.392L441.6 378.624h59.136zm-136.704 0 258.304-244.992h-59.392l-258.56 244.992h59.648zm-136.96 0 258.56-244.992H426.24L167.68 378.624h59.392zm62.72-244.992L156.16 260.352v55.808l192.512-182.528h-58.88zm-133.632 0v53.504l56.32-53.504h-56.32zm618.24 742.4 105.472-99.584v-56.576l-164.864 156.16H774.4zm105.472 0v-26.368l-27.904 26.368h27.904zm-301.568 0h59.392l242.176-229.376v-15.36h-43.264L578.304 876.032zm121.6-244.736L441.6 876.032h59.136l258.56-244.736h-59.392zm-136.96 0-258.56 244.736h59.648l258.304-244.736h-59.392zm-136.704 0L167.68 876.032h59.392l258.56-244.736H426.24zm-136.448 0L156.16 758.016v55.808l192.512-182.528h-58.88zM156.16 684.544l56.32-53.248h-56.32v53.248z"}));var H="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE3OS4yIDUyNC4yODhoNjc4LjkxMmEyNS42IDI1LjYgMCAwIDAgMC01MS4ySDE3OS4yYTI1LjYgMjUuNiAwIDAgMCAwIDUxLjJ6bTcwMC42NzItMjQ1LjUwNHYtNTYuMzJsLTE2NC44NjQgMTU2LjE2SDc3NC40bDEwNS40NzItOTkuODR6bTAgNzMuMjE2LTI3LjkwNCAyNi42MjRoMjcuOTA0VjM1MnptLTI0Mi4xNzYgMjYuNjI0IDI0Mi4xNzYtMjI5LjM3NnYtMTUuNjE2aC00My4yNjRMNTc4LjMwNCAzNzguNjI0aDU5LjM5MnptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkyaC01OS4zOTJMNDQxLjYgMzc4LjYyNGg1OS4xMzZ6bS0xMzYuNzA0IDAgMjU4LjMwNC0yNDQuOTkyaC01OS4zOTJsLTI1OC41NiAyNDQuOTkyaDU5LjY0OHptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkySDQyNi4yNEwxNjcuNjggMzc4LjYyNGg1OS4zOTJ6bTYyLjcyLTI0NC45OTJMMTU2LjE2IDI2MC4zNTJ2NTUuODA4bDE5Mi41MTItMTgyLjUyOGgtNTguODh6bS0xMzMuNjMyIDB2NTMuNTA0bDU2LjMyLTUzLjUwNGgtNTYuMzJ6bTYxOC4yNCA3NDIuNCAxMDUuNDcyLTk5LjU4NHYtNTYuNTc2bC0xNjQuODY0IDE1Ni4xNkg3NzQuNHptMTA1LjQ3MiAwdi0yNi4zNjhsLTI3LjkwNCAyNi4zNjhoMjcuOTA0em0tMzAxLjU2OCAwaDU5LjM5MmwyNDIuMTc2LTIyOS4zNzZ2LTE1LjM2aC00My4yNjRMNTc4LjMwNCA4NzYuMDMyem0xMjEuNi0yNDQuNzM2TDQ0MS42IDg3Ni4wMzJoNTkuMTM2bDI1OC41Ni0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuOTYgMC0yNTguNTYgMjQ0LjczNmg1OS42NDhsMjU4LjMwNC0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuNzA0IDBMMTY3LjY4IDg3Ni4wMzJoNTkuMzkybDI1OC41Ni0yNDQuNzM2SDQyNi4yNHptLTEzNi40NDggMEwxNTYuMTYgNzU4LjAxNnY1NS44MDhsMTkyLjUxMi0xODIuNTI4aC01OC44OHpNMTU2LjE2IDY4NC41NDRsNTYuMzItNTMuMjQ4aC01Ni4zMnY1My4yNDh6Ii8+PC9zdmc+",ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,G=(De,Pe,we)=>Pe in De?ie(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,O=(De,Pe)=>{for(var we in Pe||(Pe={}))te.call(Pe,we)&&G(De,we,Pe[we]);if(ce)for(var we of ce(Pe))W.call(Pe,we)&&G(De,we,Pe[we]);return De};const k=De=>o.createElement("svg",O({className:"datasetMatting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M832 288h-96v-96c0-52.9-43.1-96-96-96H192c-52.9 0-96 43.1-96 96v448c0 52.9 43.1 96 96 96h96v96c0 52.9 43.1 96 96 96h448c52.9 0 96-43.1 96-96V384c0-52.9-43.1-96-96-96zM160 640V192c0-17.6 14.4-32 32-32h448c17.6 0 32 14.4 32 32v96h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32v288c0 17.6-14.4 32-32 32H352v-32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32h-96c-17.6 0-32-14.4-32-32zm704 192c0 17.6-14.4 32-32 32H384c-17.6 0-32-14.4-32-32v-96h288c52.9 0 96-43.1 96-96V352h96c17.6 0 32 14.4 32 32v448z"}),o.createElement("path",{d:"M320 576c17.7 0 32-14.3 32-32v-64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32zm160-224h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-160 64c17.7 0 32-14.3 32-32 0-17.6 14.4-32 32-32 17.7 0 32-14.3 32-32s-14.3-32-32-32c-52.9 0-96 43.1-96 96 0 17.7 14.3 32 32 32z"}));var Y="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgzMiAyODhoLTk2di05NmMwLTUyLjktNDMuMS05Ni05Ni05NkgxOTJjLTUyLjkgMC05NiA0My4xLTk2IDk2djQ0OGMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg5NnY5NmMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg0NDhjNTIuOSAwIDk2LTQzLjEgOTYtOTZWMzg0YzAtNTIuOS00My4xLTk2LTk2LTk2ek0xNjAgNjQwVjE5MmMwLTE3LjYgMTQuNC0zMiAzMi0zMmg0NDhjMTcuNiAwIDMyIDE0LjQgMzIgMzJ2OTZoLTMyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnMxNC4zIDMyIDMyIDMyaDMydjI4OGMwIDE3LjYtMTQuNCAzMi0zMiAzMkgzNTJ2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjMyaC05NmMtMTcuNiAwLTMyLTE0LjQtMzItMzJ6bTcwNCAxOTJjMCAxNy42LTE0LjQgMzItMzIgMzJIMzg0Yy0xNy42IDAtMzItMTQuNC0zMi0zMnYtOTZoMjg4YzUyLjkgMCA5Ni00My4xIDk2LTk2VjM1Mmg5NmMxNy42IDAgMzIgMTQuNCAzMiAzMnY0NDh6Ii8+PHBhdGggZD0iTTMyMCA1NzZjMTcuNyAwIDMyLTE0LjMgMzItMzJ2LTY0YzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyem0xNjAtMjI0aDY0YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMyaC02NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJzMTQuMyAzMiAzMiAzMnptLTE2MCA2NGMxNy43IDAgMzItMTQuMyAzMi0zMiAwLTE3LjYgMTQuNC0zMiAzMi0zMiAxNy43IDAgMzItMTQuMyAzMi0zMnMtMTQuMy0zMi0zMi0zMmMtNTIuOSAwLTk2IDQzLjEtOTYgOTYgMCAxNy43IDE0LjMgMzIgMzIgMzJ6Ii8+PC9zdmc+",P=Object.defineProperty,Q=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(De,Pe,we)=>Pe in De?P(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,Me=(De,Pe)=>{for(var we in Pe||(Pe={}))fe.call(Pe,we)&&ge(De,we,Pe[we]);if(Q)for(var we of Q(Pe))Ce.call(Pe,we)&&ge(De,we,Pe[we]);return De};const Re=De=>o.createElement("svg",Me({className:"datasetKeypoint_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M938.667 298.667c0 70.613-57.387 128-128 128s-128-57.387-128-128c0-1.92 0-3.627.213-5.334L501.12 238.72a107.03 107.03 0 0 1-63.787 55.253l69.334 138.24c15.36-3.626 31.573-5.546 48-5.546C672.213 426.667 768 522.453 768 640s-95.787 213.333-213.333 213.333c-85.334 0-159.147-50.56-193.067-123.093l-34.133 22.613c8.96 17.28 13.866 36.907 13.866 57.814 0 70.613-57.386 128-128 128s-128-57.387-128-128 57.387-128 128-128c34.774 0 66.134 13.653 88.96 36.053l44.8-29.867c-3.84-15.573-5.76-32-5.76-48.853 0-85.973 51.2-160.213 124.587-193.92L391.68 297.6A106.475 106.475 0 0 1 298.667 192c0-58.88 47.786-106.667 106.666-106.667S512 133.12 512 192c0 1.707 0 3.627-.213 5.333l180.053 53.974a127.957 127.957 0 0 1 118.827-80.64c70.613 0 128 57.386 128 128z"}));var Qe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTkzOC42NjcgMjk4LjY2N2MwIDcwLjYxMy01Ny4zODcgMTI4LTEyOCAxMjhzLTEyOC01Ny4zODctMTI4LTEyOGMwLTEuOTIgMC0zLjYyNy4yMTMtNS4zMzRMNTAxLjEyIDIzOC43MmExMDcuMDMgMTA3LjAzIDAgMCAxLTYzLjc4NyA1NS4yNTNsNjkuMzM0IDEzOC4yNGMxNS4zNi0zLjYyNiAzMS41NzMtNS41NDYgNDgtNS41NDZDNjcyLjIxMyA0MjYuNjY3IDc2OCA1MjIuNDUzIDc2OCA2NDBzLTk1Ljc4NyAyMTMuMzMzLTIxMy4zMzMgMjEzLjMzM2MtODUuMzM0IDAtMTU5LjE0Ny01MC41Ni0xOTMuMDY3LTEyMy4wOTNsLTM0LjEzMyAyMi42MTNjOC45NiAxNy4yOCAxMy44NjYgMzYuOTA3IDEzLjg2NiA1Ny44MTQgMCA3MC42MTMtNTcuMzg2IDEyOC0xMjggMTI4cy0xMjgtNTcuMzg3LTEyOC0xMjggNTcuMzg3LTEyOCAxMjgtMTI4YzM0Ljc3NCAwIDY2LjEzNCAxMy42NTMgODguOTYgMzYuMDUzbDQ0LjgtMjkuODY3Yy0zLjg0LTE1LjU3My01Ljc2LTMyLTUuNzYtNDguODUzIDAtODUuOTczIDUxLjItMTYwLjIxMyAxMjQuNTg3LTE5My45MkwzOTEuNjggMjk3LjZBMTA2LjQ3NSAxMDYuNDc1IDAgMCAxIDI5OC42NjcgMTkyYzAtNTguODggNDcuNzg2LTEwNi42NjcgMTA2LjY2Ni0xMDYuNjY3UzUxMiAxMzMuMTIgNTEyIDE5MmMwIDEuNzA3IDAgMy42MjctLjIxMyA1LjMzM2wxODAuMDUzIDUzLjk3NGExMjcuOTU3IDEyNy45NTcgMCAwIDEgMTE4LjgyNy04MC42NGM3MC42MTMgMCAxMjggNTcuMzg2IDEyOCAxMjh6Ii8+PC9zdmc+",Ve,qe,Mt,wt,mt="Deep Data Space",Nt="https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg",ke=50,He=null,et=null,Fe=8,ue=function(De){return De.Classification="Classification",De.Detection="Detection",De.Segmentation="Segmentation",De.Matting="Matting",De.KeyPoints="KeyPoints",De.Mask="Mask",De}({}),V=function(De){return De.showAnnotations="showAnnotations",De.showAllCategory="showAllCategory",De.showImgDesc="showImgDesc",De.showBoxText="showBoxText",De.showSegFilling="showSegFilling",De.showSegContour="showSegContour",De.showMattingColorFill="showMattingColorFill",De.showKeyPointsLine="showKeyPointsLine",De.showKeyPointsBox="showKeyPointsBox",De}({}),U=(Ve={},t()(Ve,ue.Classification,m),t()(Ve,ue.Detection,R),t()(Ve,ue.Segmentation,K),t()(Ve,ue.Matting,k),t()(Ve,ue.KeyPoints,Re),t()(Ve,ue.Mask,k),Ve),N=(qe={},t()(qe,V.showAnnotations,"lab.displayOption.showAnnotations"),t()(qe,V.showAllCategory,"lab.displayOption.showAllCategory"),t()(qe,V.showImgDesc,"lab.displayOption.showImgDesc"),t()(qe,V.showBoxText,"lab.displayOption.showBoxText"),t()(qe,V.showSegFilling,"lab.displayOption.showSegFilling"),t()(qe,V.showSegContour,"lab.displayOption.showSegContour"),t()(qe,V.showMattingColorFill,"lab.displayOption.showMattingColorFill"),t()(qe,V.showKeyPointsLine,"lab.displayOption.showKeyPointsLine"),t()(qe,V.showKeyPointsBox,"lab.displayOption.showKeyPointsBox"),qe),D=[V.showAnnotations,V.showAllCategory,V.showImgDesc],ee=[[0],[2],[5],[10],[1,5,3],[5,2,10]],se=[1,.4,.6,.8,.85,.9],X=[1,1.5,1.75,2,2.25,2.5],re=function(De){return De.Overlay="dataset.diffMode.overlay",De.Tiled="dataset.diffMode.tiled",De}({}),Ie=[re.Overlay,re.Tiled],Se=function(De){return De[De.all=-1]="all",De[De.unflaged=0]="unflaged",De[De.picked=1]="picked",De[De.rejected=2]="rejected",De}({}),he=(Mt={},t()(Mt,Se.all,"transparent"),t()(Mt,Se.unflaged,"#8C8C8C"),t()(Mt,Se.picked,"#52C41A"),t()(Mt,Se.rejected,"#F5222D"),Mt),We=[{value:Se.picked,tip:"save as 'positive'"},{value:Se.rejected,tip:"save as 'negative'"},{value:Se.unflaged,tip:"save as 'unset'"}],de=[{value:Se.all,name:"all"},{value:Se.unflaged,name:"unset"},{value:Se.picked,name:"positive"},{value:Se.rejected,name:"negative"}],le=function(De){return De.gt="GT",De.user="User",De.pred="Pred",De}({}),ve=function(De){return De.fn="fn",De.fp="fp",De}({}),xe=[{value:ve.fn,name:"FN count"},{value:ve.fp,name:"FP count"}],Ze=function(De){return De.ok="OK",De.fn="FN",De.fp="FP",De}({}),pe=(wt={},t()(wt,Ze.ok,""),t()(wt,Ze.fn,"rgba(255,0,0,0.4)"),t()(wt,Ze.fp,"rgba(0,0,255,0.4)"),wt),Je=[{value:le.gt,name:"GT - Matched"},{value:Ze.fn,name:"GT - FN"},{value:le.pred,name:"Prediction - Matched"},{value:Ze.fp,name:"Prediction - FP"}],Ae=function(De){return De.AUTH_TOKEN="auth_token",De}({}),oe=function(De){return De.Active="active",De.Inactive="inactive",De.Activating="activating",De}({}),ye=function(De){return De.Upload="self_uploaded",De.DirectUrl="direct_url",De}({}),Be=function(De){return De.Waiting="waiting",De.Running="running",De.Success="success",De.Failed="failed",De.Fail="fail",De}({})},35459:function(M,b,e){"use strict";e.d(b,{JE:function(){return h},ZA:function(){return v},gZ:function(){return l},j$:function(){return m},mu:function(){return c},tz:function(){return n}});var i=e(2657),t=e.n(i),o,s,n=function(C){return C.Waiting="waiting",C.Initializing="initializing",C.Working="working",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C.Exported="exported",C}({}),c=(o={},t()(o,n.Waiting,{text:"proj.statusMap.waiting",color:"default"}),t()(o,n.Initializing,{text:"proj.statusMap.initializing",color:"default"}),t()(o,n.Working,{text:"proj.statusMap.working",color:"processing"}),t()(o,n.Reviewing,{text:"proj.statusMap.reviewing",color:"warning"}),t()(o,n.Rejected,{text:"proj.statusMap.rejected",color:"error"}),t()(o,n.Accepted,{text:"proj.statusMap.accepted",color:"success"}),t()(o,n.Exported,{text:"proj.statusMap.exported",color:"default"}),o),l=function(C){return C.Waiting="waiting",C.Working="working",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C}({}),v=(s={},t()(s,l.Waiting,{text:"proj.eTaskStatus.waiting",color:"default"}),t()(s,l.Working,{text:"proj.eTaskStatus.working",color:"processing"}),t()(s,l.Reviewing,{text:"proj.eTaskStatus.reviewing",color:"warning"}),t()(s,l.Rejected,{text:"proj.eTaskStatus.rejected",color:"error"}),t()(s,l.Accepted,{text:"proj.eTaskStatus.accepted",color:"success"}),s),h=function(C){return C.Accept="accept",C.Reject="reject",C.ForceAccept="force_accept",C}({}),m=function(C){return C.Labeling="labeling",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C}({})},1239:function(M,b,e){"use strict";e.d(b,{Oc:function(){return c},vb:function(){return n}});var i=e(2657),t=e.n(i),o=e(97375),s,n=function(v){return v.Owner="owner",v.Manager="manager",v.LabelLeader="label_leader",v.ReviewLeader="review_leader",v.Labeler="labeler",v.Reviewer="reviewer",v}({}),c=function(v){return v[v.ProjectEdit=0]="ProjectEdit",v[v.ProjectInfo=1]="ProjectInfo",v[v.ProjectInit=2]="ProjectInit",v[v.ProjectQa=3]="ProjectQa",v[v.ProjectExport=4]="ProjectExport",v[v.AssignLeader=100]="AssignLeader",v[v.TaskQa=101]="TaskQa",v[v.AssignLabeler=102]="AssignLabeler",v[v.AssignReviewer=103]="AssignReviewer",v[v.RestartTask=104]="RestartTask",v[v.StartLabel=105]="StartLabel",v[v.StartReview=106]="StartReview",v[v.CommitReviewTask=107]="CommitReviewTask",v[v.View=108]="View",v}({}),l=(s={},t()(s,n.Owner,[c.ProjectEdit,c.ProjectQa,c.View,c.ProjectExport]),t()(s,n.Manager,[c.ProjectInit,c.ProjectInfo,c.AssignLeader,c.TaskQa,c.View]),t()(s,n.LabelLeader,[c.AssignLabeler,c.RestartTask,c.View]),t()(s,n.ReviewLeader,[c.AssignReviewer,c.View]),t()(s,n.Labeler,[c.StartLabel]),t()(s,n.Reviewer,[c.StartReview,c.CommitReviewTask]),s);b.ZP=function(){var v=(0,o.useModel)("user"),h=v.user,m=function(S,w){if(!h.userId||!S)return[];var y=[];if(h.userId===S.owner.id&&y.push(n.Owner),S.managers.find(function(R){return R.id===h.userId})&&y.push(n.Manager),w){var Z,F;((Z=w.labelLeader)===null||Z===void 0?void 0:Z.userId)===h.userId&&y.push(n.LabelLeader),((F=w.reviewLeader)===null||F===void 0?void 0:F.userId)===h.userId&&y.push(n.ReviewLeader),w.labelers.find(function(R){return R.userId===h.userId})&&y.push(n.Labeler),w.reviewers.find(function(R){return R.userId===h.userId})&&y.push(n.Reviewer)}return y},C=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0,y=[];return S.forEach(function(Z){var F=l[Z];F.forEach(function(R){y.includes(R)||y.push(R)})}),y.includes(w)};return{getUserRoles:m,checkPermission:C}}},32694:function(M,b,e){"use strict";e.d(b,{u:function(){return F}});var i=e(24454),t=e.n(i),o=e(34485),s=e.n(o),n=e(56592),c=e.n(n),l=e(88205),v=e.n(l),h=e(97375),m=e(65246),C=e(7986),p=e(91290),S=e(53357),w=e(84045),y=e(23707),Z=20,F=function(T){return T[T.labelLeader=0]="labelLeader",T[T.reviewLeader=1]="reviewLeader",T[T.labeler=2]="labeler",T[T.reviewer=3]="reviewer",T[T.reassign=4]="reassign",T}({}),R={show:!1,types:[],tasks:[],initialValues:{}};b.Z=function(){var T=(0,h.useModel)("user"),z=T.user,A=(0,m.x)({list:[],total:0,selectedTaskIds:[]}),L=v()(A,2),I=L[0],$=L[1],B=(0,m.x)({page:1,pageSize:Z}),K=v()(B,2),H=K[0],ie=K[1],ce=(0,m.x)(void 0),te=v()(ce,2),W=te[0],G=te[1],O=(0,m.x)(R),k=v()(O,2),Y=k[0],P=k[1],Q=(0,C.Z)(function(ue,V){return $(function(U){U.list=[]}),(0,p.ZJ)({projectId:(0,y.Oe)(),pageNum:ue||H.page,pageSize:V||H.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[H.page,H.pageSize],onSuccess:function(V){var U=V.taskList,N=V.total;$(function(D){D.list=U,D.total=N,D.selectedTaskIds=[]})},onError:function(){}}),fe=Q.loading,Ce=Q.run,ge=(0,C.Z)(function(){return(0,p.NT)((0,y.Oe)())},{manual:!0,debounceWait:100,refreshDeps:[H.page,H.pageSize],onSuccess:function(V){$(function(U){U.projectDetail=V,U.isPm=!!V.managers.find(function(N){return N.id===z.userId})})},onError:function(){}}),Me=ge.run,Re=function(V,U){ie(function(N){N.page=U===N.pageSize?V:1,N.pageSize=U}),Ce(V,U)},Qe=function(V){$(function(U){U.selectedTaskIds=V})},Ve=function(V){if(I.projectDetail){var U=V||I.selectedTaskIds,N=[],D={},ee=I.list.find(function(re){return re.id===U[0]});if(I.projectDetail.labelTimes>0){var se;N.push(F.labelLeader),D.labelLeaderId=ee==null||(se=ee.labelLeader)===null||se===void 0?void 0:se.userId}if(I.projectDetail.reviewTimes>0){var X;N.push(F.reviewLeader),D.reviewLeaderId=ee==null||(X=ee.reviewLeader)===null||X===void 0?void 0:X.userId}P(function(re){re.show=!0,re.types=N,re.tasks=I.list.filter(function(Ie){return U.includes(Ie.id)}),re.initialValues=D})}},qe=function(V,U){if(I.projectDetail){var N={};if(U.includes(F.labeler)){var D;N.labelerIds=(D=V.labelers)===null||D===void 0?void 0:D.map(function(se){return se.userId})}if(U.includes(F.reviewer)){var ee;N.reviewerIds=(ee=V.reviewers)===null||ee===void 0?void 0:ee.map(function(se){return se.userId})}P(function(se){se.show=!0,se.types=U,se.tasks=[V],se.initialValues=N})}},Mt=function(V,U){P(function(N){N.show=!0,N.types=[F.reassign],N.tasks=[V],N.reassignTarget=U})},wt=function(){P(R)},mt=function(){var ue=c()(t()().mark(function V(U){var N,D,ee,se,X;return t()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(N=U.keyWords,D=N===void 0?"":N,ee=[],se=Y.tasks,X=Y.types,se.forEach(function(Se){var he=[];X.includes(F.labelLeader)&&he.push(Se.labelLeader),X.includes(F.reviewLeader)&&he.push(Se.reviewLeader),X.includes(F.labeler)&&he.push.apply(he,s()(Se.labelers)),X.includes(F.reviewer)&&he.push.apply(he,s()(Se.reviewers)),he.forEach(function(We){We&&!ee.find(function(de){return We.userId===de.id})&&ee.push({id:We.userId,name:We.userName})})}),!D){Ie.next=8;break}return Ie.next=7,(0,p.Qm)({name:D});case 7:ee=Ie.sent.userList.map(function(Se){return{name:Se.name,id:Se.id}});case 8:return Ie.abrupt("return",ee.map(function(Se){return{label:Se.name,value:Se.id}}));case 9:case"end":return Ie.stop()}},V)}));return function(U){return ue.apply(this,arguments)}}(),Nt=function(){var ue=c()(t()().mark(function V(U){var N,D,ee,se,X,re;return t()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(N=Y.initialValues,!(Y.types.includes(F.labelLeader)||Y.types.includes(F.reviewLeader))){Se.next=16;break}if(!(U.labelLeaderId!==N.labelLeaderId||U.reviewLeaderId!==N.reviewLeaderId)){Se.next=14;break}return Se.prev=3,Se.next=6,(0,p.nu)({projectId:((D=I.projectDetail)===null||D===void 0?void 0:D.id)||"",taskIds:Y.tasks.map(function(he){return he.id}),labelLeaderId:U.labelLeaderId!==N.labelLeaderId?U.labelLeaderId:void 0,reviewLeaderId:U.reviewLeaderId!==N.reviewLeaderId?U.reviewLeaderId:void 0});case 6:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignLeader")),Se.next=14;break;case 10:return Se.prev=10,Se.t0=Se.catch(3),console.error(Se.t0),Se.abrupt("return",Promise.resolve(!1));case 14:Se.next=43;break;case 16:if(se=Y.tasks[0],!(Y.types.includes(F.labeler)||Y.types.includes(F.reviewer))){Se.next=31;break}return Se.prev=18,Se.next=21,(0,p.zb)(se.id,U);case 21:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignWorker")),Se.next=29;break;case 25:return Se.prev=25,Se.t1=Se.catch(18),console.error(Se.t1),Se.abrupt("return",Promise.resolve(!1));case 29:Se.next=43;break;case 31:if(!(Y.types.includes(F.reassign)&&U.reassigner!==((ee=Y.reassignTarget)===null||ee===void 0?void 0:ee.userId))){Se.next=43;break}return Se.prev=32,Se.next=35,(0,p.xv)(se.id,{oldWorkerId:((X=Y.reassignTarget)===null||X===void 0?void 0:X.userId)||"",newWorkerId:U.reassigner||"",role:((re=Y.reassignTarget)===null||re===void 0?void 0:re.role)||""});case 35:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.reassignWorker")),Se.next=43;break;case 39:return Se.prev=39,Se.t2=Se.catch(32),console.error(Se.t2),Se.abrupt("return",Promise.resolve(!1));case 43:return wt(),Se.abrupt("return",Promise.resolve(!1));case 45:case"end":return Se.stop()}},V,null,[[3,10],[18,25],[32,39]])}));return function(U){return ue.apply(this,arguments)}}(),ke=function(){var ue=c()(t()().mark(function V(U){return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.next=3,(0,p.vo)(U.id);case 3:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.restarTask")),D.next=11;break;case 7:return D.prev=7,D.t0=D.catch(0),console.error(D.t0),D.abrupt("return",Promise.resolve(!1));case 11:case"end":return D.stop()}},V,null,[[0,7]])}));return function(U){return ue.apply(this,arguments)}}(),He=function(){var ue=c()(t()().mark(function V(U){return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.next=3,(0,p.$x)(U.id);case 3:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.commiTask")),D.next=11;break;case 7:return D.prev=7,D.t0=D.catch(0),console.error(D.t0),D.abrupt("return",Promise.resolve(!1));case 11:case"end":return D.stop()}},V,null,[[0,7]])}));return function(U){return ue.apply(this,arguments)}}(),et=function(){var ue=c()(t()().mark(function V(U,N){return t()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.prev=0,ee.next=3,(0,p.d5)(U.id,{action:N});case 3:w.ZP.success((0,S._w)("proj.assignModalFinish.changeTaskStatus")),Ce(),ee.next=11;break;case 7:return ee.prev=7,ee.t0=ee.catch(0),console.error(ee.t0),ee.abrupt("return",Promise.reject(!1));case 11:case"end":return ee.stop()}},V,null,[[0,7]])}));return function(U,N){return ue.apply(this,arguments)}}(),Fe=function(V){ie(function(U){Object.assign(U,{page:1,pageSize:Z},V)}),Me(),Ce()};return{pageData:I,pageState:H,loading:fe,onPageChange:Re,onSelectChange:Qe,onInitPageState:Fe,taskDetailModalIndex:W,setTaskDetailModalIndex:G,assignModal:Y,assignLeaders:Ve,assignWorker:qe,reassignWorker:Mt,onCloseAssignModal:wt,userLintRequest:mt,assignModalFinish:Nt,restartTask:ke,commitReviewTask:He,onChangeTaskResult:et}}},54518:function(M,b,e){"use strict";e.d(b,{I:function(){return T}});var i=e(24454),t=e.n(i),o=e(56592),s=e.n(o),n=e(63900),c=e.n(n),l=e(88205),v=e.n(l),h=e(97375),m=e(65246),C=e(7986),p=e(91290),S=e(84045),w=e(53357),y=e(35459),Z=e(39378),F=e.n(Z),R=20,T="proj.editModal.setWorkflowNow",z={show:!1,current:0,initialValues:{basics:{},settings:{},workflowInitNow:[],hadBatchSize:!1,hadReviewer:!1}};b.Z=function(){var A=(0,h.useModel)("user"),L=A.user,I=(0,h.useModel)("Project.auth"),$=I.getUserRoles,B=(0,m.x)({list:[],total:0}),K=v()(B,2),H=K[0],ie=K[1],ce=(0,m.x)({page:1,pageSize:R}),te=v()(ce,2),W=te[0],G=te[1],O=(0,m.x)(z),k=v()(O,2),Y=k[0],P=k[1],Q=(0,C.Z)(function(ke,He){return ie(function(et){et.list=[]}),(0,p.eK)({pageNum:ke||W.page,pageSize:He||W.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[W.page,W.pageSize],onSuccess:function(He){var et=He.projectList,Fe=He.total;ie({list:et.map(function(ue){return c()(c()({},ue),{},{userRoles:$(ue)})}),total:Fe})},onError:function(){}}),fe=Q.loading,Ce=Q.run,ge=function(He,et){G(function(Fe){Fe.page=et===Fe.pageSize?He:1,Fe.pageSize=et}),Ce(He,et)},Me=function(){P(function(He){He.show=!0})},Re=function(He,et){P(function(Fe){var ue=He.name,V=He.description,U=He.categories,N=He.datasets,D=He.preLabel,ee=He.managers,se=He.batchSize,X=He.reviewTimes,re=He.status;Fe.show=!0,Fe.targetProject=He,Fe.current=et?1:0,Fe.initialValues.basics={name:ue,description:V,categories:U,preLabel:D,datasetIds:N.map(function(Ie){return Ie.id}),managerIds:ee.map(function(Ie){return Ie.id})},Fe.initialValues.settings=re!==y.tz.Waiting?{batchSize:se>0?se:void 0}:{},Fe.initialValues.workflowInitNow=[(0,w._w)(T)],Fe.initialValues.hadBatchSize=se>0,Fe.initialValues.hadReviewer=X>0})},Qe=function(){P(z)},Ve=function(He){P(function(et){He===0&&(et.current=0)})},qe=function(He){return P(function(et){var Fe;et.disableInitProject=!((Fe=He.basics.managerIds)!==null&&Fe!==void 0&&Fe.includes(L.userId)),et.current=1}),Promise.resolve(!1)},Mt=function(){var ke=s()(t()().mark(function He(et){var Fe,ue,V,U,N,D,ee,se;return t()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(V=!1,U=(Fe=Y.targetProject)===null||Fe===void 0?void 0:Fe.id,U){re.next=18;break}return re.prev=3,re.next=6,(0,p.o9)(et.basics);case 6:N=re.sent,U=N.id,P(function(Ie){Ie.targetProject=N}),V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.new")),re.next=16;break;case 13:re.prev=13,re.t0=re.catch(3),console.error(re.t0);case 16:re.next=30;break;case 18:if(D=Y.initialValues.basics,ee=D.description,se=D.managerIds,!(et.basics.description!==ee||!(0,Z.isEqual)(et.basics.managerIds,se))){re.next=30;break}return re.prev=20,re.next=23,(0,p.NV)(U,et.basics);case 23:V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.edit")),re.next=30;break;case 27:re.prev=27,re.t1=re.catch(20),console.error(re.t1);case 30:if(!((!Y.targetProject||((ue=Y.targetProject)===null||ue===void 0?void 0:ue.status)===y.tz.Waiting)&&et.workflowInitNow&&et.workflowInitNow.length)){re.next=41;break}return re.prev=31,re.next=34,(0,p.mN)(U,{batchSize:et.hadBatchSize?et.settings.batchSize:0,labelTimes:1,reviewTimes:et.hadReviewer?1:0});case 34:V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.init")),re.next=41;break;case 38:re.prev=38,re.t2=re.catch(31),console.error(re.t2);case 41:return V&&Ce(),Qe(),re.abrupt("return",Promise.resolve(!1));case 44:case"end":return re.stop()}},He,null,[[3,13],[20,27],[31,38]])}));return function(et){return ke.apply(this,arguments)}}(),wt=function(){var ke=s()(t()().mark(function He(et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.prev=0,V.next=3,(0,p.lw)(et.id,{action:Fe});case 3:S.ZP.success((0,w._w)("proj.projectModalFinish.change")),Ce(),V.next=11;break;case 7:return V.prev=7,V.t0=V.catch(0),console.error(V.t0),V.abrupt("return",Promise.reject(!1));case 11:case"end":return V.stop()}},He,null,[[0,7]])}));return function(et,Fe){return ke.apply(this,arguments)}}(),mt=function(){var ke=s()(t()().mark(function He(et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.prev=0,V.next=3,(0,p.Cd)(et,{labelName:Fe==null?void 0:Fe.labelName});case 3:S.ZP.success((0,w._w)("proj.exportModal.submitSuccess",{name:Fe==null?void 0:Fe.labelName})),Ce(),V.next=10;break;case 7:V.prev=7,V.t0=V.catch(0),console.error(V.t0);case 10:case"end":return V.stop()}},He,null,[[0,7]])}));return function(et,Fe){return ke.apply(this,arguments)}}(),Nt=function(He){G(function(et){Object.assign(et,{page:1,pageSize:R},He)}),Ce()};return{pageData:H,pageState:W,loading:fe,onPageChange:ge,onInitPageState:Nt,projectModal:Y,onNewProject:Me,onEditProject:Re,closeProjectModal:Qe,onProjectModalCurrentChange:Ve,projectModalNext:qe,projectModalFinish:Mt,onChangeProjectResult:wt,onExportLabelProject:mt}}},93059:function(M,b,e){"use strict";e.d(b,{D:function(){return L}});var i=e(63900),t=e.n(i),o=e(24454),s=e.n(o),n=e(56592),c=e.n(n),l=e(34485),v=e.n(l),h=e(88205),m=e.n(h),C=e(65246),p=e(7986),S=e(91290),w=e(35459),y=e(58757),Z=e(84045),F=e(14122),R=e(97375),T=e(23707),z=e(53357),A=100,L={Init:0,More:1};b.Z=function(){var I=(0,R.useModel)("user"),$=I.user,B=(0,R.useModel)("global"),K=B.setLoading,H=(0,C.x)({taskRoles:[],categoryList:[],list:[],curIndex:-1,page:1,pageSize:A,total:0,editorMode:F.je.View}),ie=m()(H,2),ce=ie[0],te=ie[1],W=(0,C.x)({status:w.j$.Labeling,taskStatus:w.gZ.Working}),G=m()(W,2),O=G[0],k=G[1],Y=(0,y.useMemo)(function(){return(0,T.BQ)("projectId")||""},[window.location.search]),P=(0,y.useMemo)(function(){return(0,T.BQ)("taskId")||""},[window.location.search]),Q=(0,y.useMemo)(function(){var X;return(X=ce.taskRoles)===null||X===void 0?void 0:X.find(function(re){return re.id===O.roleId})},[ce.taskRoles,O.roleId]),fe=(0,y.useMemo)(function(){return Q&&$.userId===(Q==null?void 0:Q.userId)?[Q.role]:[]},[$.userId,Q]),Ce=(0,y.useMemo)(function(){var X;return((X=ce.list)===null||X===void 0?void 0:X.map(function(re){var Ie=[],Se="";return O.status===w.j$.Labeling&&!re.labeled?re.defaultLabels&&re.defaultLabels.annotations&&Ie.push.apply(Ie,v()(re.defaultLabels.annotations)):re.labels.forEach(function(he){Se=he.id,Ie.push.apply(Ie,v()(he.annotations))}),{id:re.id,url:re.url,urlFullRes:re.urlFullRes,labelId:Se,objects:Ie}}))||[]},[ce.list,O.status]),ge=function(){var X=c()(s()().mark(function re(Ie,Se){var he,We,de,le;return s()().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(!ce.loadingImagesType){xe.next=2;break}return xe.abrupt("return",Promise.reject(null));case 2:return te(function(Ze){Ze.loadingImagesType=Ie,Ie===L.Init&&(Ze.list=[])}),xe.prev=3,xe.next=6,(0,S.zO)((0,T.BQ)("taskId")||"",{status:Se.status||O.status,roleId:Se.roleId||O.roleId,pageNum:Se.page,pageSize:ce.pageSize});case 6:he=xe.sent,We=he.imageList,de=he.total,le=he.pageNum,te(function(Ze){Ze.list=Ze.list.concat(We),Ze.page=le,Ze.total=de,Ze.loadingImagesType=void 0}),xe.next=17;break;case 13:return xe.prev=13,xe.t0=xe.catch(3),te(function(Ze){Ze.loadingImagesType=void 0}),xe.abrupt("return",Promise.reject(xe.t0));case 17:case"end":return xe.stop()}},re,null,[[3,13]])}));return function(Ie,Se){return X.apply(this,arguments)}}(),Me=(0,p.Z)(function(){return Promise.all([(0,S.Cb)((0,T.BQ)("taskId")||""),(0,S.Iu)((0,T.BQ)("taskId")||"")])},{manual:!0,debounceWait:60,onSuccess:function(re){var Ie=m()(re,2),Se=Ie[0],he=Ie[1];te(function(We){We.categoryList=he.categoryList,We.taskRoles=Se.roleList}),k(function(We){Se.roleList.length&&(!We.roleId||!Se.roleList.find(function(de){return de.id===We.roleId}))&&(We.roleId=Se.roleList[0].id)})},onError:function(){}}),Re=Me.loading,Qe=Me.run,Ve=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Promise.all([Qe(),ge(L.Init,t()(t()({},re),{},{page:1}))])},qe=function(){var X=c()(s()().mark(function re(){return s()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!(ce.list.length0&&(he.curIndex=he.curIndex-1)}),Se.abrupt("return",Promise.resolve());case 2:case"end":return Se.stop()}},re)}));return function(){return X.apply(this,arguments)}}(),ke=function(){var X=c()(s()().mark(function re(){return s()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!(ce.curIndex=0;return{pageData:ce,pageState:O,loading:Re||ce.loadingImagesType===L.Init,loadPageData:Ve,loadMore:qe,onInitPageState:D,projectId:Y,taskId:P,curRole:Q,userRoles:fe,tabItems:ee,labelImages:Ce,isEditorVisible:se,onStatusTabChange:Mt,onRoleChange:wt,clickItem:mt,onExitEditor:V,onPrevImage:Nt,onNextImage:ke,onLabelSave:U,onReviewResult:N,onEnterEdit:He,onStartLabel:et,onStartRework:Fe,onStartReview:ue}}},91290:function(M,b,e){"use strict";e.d(b,{$x:function(){return fe},Cb:function(){return ge},Cd:function(){return z},Iu:function(){return Re},J9:function(){return L},Jg:function(){return mt},NT:function(){return m},NV:function(){return Z},Qm:function(){return $},ZJ:function(){return K},d5:function(){return P},eK:function(){return v},lw:function(){return R},mN:function(){return w},nQ:function(){return Mt},nu:function(){return ie},o9:function(){return p},vo:function(){return k},xv:function(){return G},zO:function(){return Ve},zb:function(){return te}});var i=e(24454),t=e.n(i),o=e(63900),s=e.n(o),n=e(56592),c=e.n(n),l=e(97375);function v(ke,He){return h.apply(this,arguments)}function h(){return h=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),h.apply(this,arguments)}function m(ke,He){return C.apply(this,arguments)}function C(){return C=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),C.apply(this,arguments)}function p(ke,He){return S.apply(this,arguments)}function S(){return S=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"POST",data:s()({},He)},et||{})));case 1:case"end":return ue.stop()}},ke)})),S.apply(this,arguments)}function w(ke,He,et){return y.apply(this,arguments)}function y(){return y=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_configs/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),y.apply(this,arguments)}function Z(ke,He,et){return F.apply(this,arguments)}function F(){return F=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),F.apply(this,arguments)}function R(ke,He,et){return T.apply(this,arguments)}function T(){return T=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_qa/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),T.apply(this,arguments)}function z(ke,He,et){return A.apply(this,arguments)}function A(){return A=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_export/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),A.apply(this,arguments)}function L(ke,He){return I.apply(this,arguments)}function I(){return I=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/dataset_name_lints",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),I.apply(this,arguments)}function $(ke,He){return B.apply(this,arguments)}function B(){return B=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/user_name_lints",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),B.apply(this,arguments)}function K(ke,He){return H.apply(this,arguments)}function H(){return H=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_tasks",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),H.apply(this,arguments)}function ie(ke,He){return ce.apply(this,arguments)}function ce(){return ce=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_leaders",s()({method:"POST",data:s()({},He)},et||{})));case 1:case"end":return ue.stop()}},ke)})),ce.apply(this,arguments)}function te(ke,He,et){return W.apply(this,arguments)}function W(){return W=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_workers/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),W.apply(this,arguments)}function G(ke,He,et){return O.apply(this,arguments)}function O(){return O=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_reassign/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),O.apply(this,arguments)}function k(ke,He){return Y.apply(this,arguments)}function Y(){return Y=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_restart/".concat(He),s()({method:"POST"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Y.apply(this,arguments)}function P(ke,He,et){return Q.apply(this,arguments)}function Q(){return Q=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_qa/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),Q.apply(this,arguments)}function fe(ke,He){return Ce.apply(this,arguments)}function Ce(){return Ce=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_review_commit/".concat(He),s()({method:"POST"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Ce.apply(this,arguments)}function ge(ke,He){return Me.apply(this,arguments)}function Me(){return Me=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_roles/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Me.apply(this,arguments)}function Re(ke,He){return Qe.apply(this,arguments)}function Qe(){return Qe=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_configs/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Qe.apply(this,arguments)}function Ve(ke,He,et){return qe.apply(this,arguments)}function qe(){return qe=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_images/".concat(He),s()({method:"GET",params:et},Fe||{})));case 1:case"end":return V.stop()}},ke)})),qe.apply(this,arguments)}function Mt(ke,He,et){return wt.apply(this,arguments)}function wt(){return wt=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_image_labels/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{hideCodeErrorMsg:!0})));case 1:case"end":return V.stop()}},ke)})),wt.apply(this,arguments)}function mt(ke,He,et){return Nt.apply(this,arguments)}function Nt(){return Nt=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_image_reviews/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{hideCodeErrorMsg:!0})));case 1:case"end":return V.stop()}},ke)})),Nt.apply(this,arguments)}},74595:function(M,b,e){"use strict";e.d(b,{B8:function(){return m},JC:function(){return p},WR:function(){return C},i0:function(){return v},iE:function(){return h}});var i=e(63900),t=e.n(i),o=e(34485),s=e.n(o),n=e(76180),c=e(39378),l=e.n(c),v=function(w){var y=0;return(0,c.includes)(w,"Classification")&&(y=1),(0,c.includes)(w,"Detection")&&(y=2),(0,c.includes)(w,"Segmentation")&&(y=3),(0,c.includes)(w,"Matting")&&(y=4),(0,c.includes)(w,"KeyPoints")&&(y=5),e(14677)("./card_cover_".concat(y,".png"))},h=function(w,y,Z){if(!w||!y||Z)return{colorAplha:n.iP[0],strokeDash:n.JQ[0],lineWidth:n.oM[0]};var F=y.indexOf(w);return{colorAplha:n.iP[F]||n.iP[0],strokeDash:n.JQ[F]||n.JQ[0],lineWidth:n.oM[F]||n.oM[0]}},m=function(w,y){var Z=[],F=[],R=w.filter(function(T){return n.EX.includes(T)});return y===n.JJ.Detection?(Z=[n.zY.showBoxText],F=Z):y===n.JJ.Segmentation?(Z=[n.zY.showSegFilling,n.zY.showSegContour],F=Z):y===n.JJ.Matting?Z=[n.zY.showMattingColorFill]:y===n.JJ.KeyPoints&&(Z=[n.zY.showKeyPointsLine,n.zY.showKeyPointsBox],F=Z),[[].concat(s()(n.EX),s()(Z)),[].concat(s()(R),s()(F))]},C=function(w,y,Z){var F=[];return Z===n.JJ.Matting&&F.push({id:"origin",name:"Origin image",source:n.$j.gt,comparePrecisions:[],confidenceRange:[0,1]}),y.length&&y.forEach(function(R){var T=w.find(function(z){return z.id===R});T&&F.push(t()({},T))}),F},p=function(w,y,Z){var F=[];return y.length?(w.forEach(function(R){Z===n.JJ.Matting&&F.push(t()({},R)),F.push.apply(F,s()(new Array(y.length).fill({}).map(function(T,z){var A=t()({},R);return A.curLabelId=y[z],A})))}),F):w}},86505:function(M,b,e){"use strict";e.d(b,{JJ:function(){return At},v_:function(){return $t},yj:function(){return zn},Uu:function(){return Vt},ru:function(){return Mn},Zo:function(){return _e},QD:function(){return st},Yq:function(){return On},gr:function(){return Bn},jB:function(){return at},ft:function(){return jt},GI:function(){return ut},Fv:function(){return Xt},vL:function(){return Gt},ef:function(){return rn},oP:function(){return fn}});var i=e(2657),t=e.n(i),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,v=(nt,gt,Dt)=>gt in nt?s(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,h=(nt,gt)=>{for(var Dt in gt||(gt={}))c.call(gt,Dt)&&v(nt,Dt,gt[Dt]);if(n)for(var Dt of n(gt))l.call(gt,Dt)&&v(nt,Dt,gt[Dt]);return nt};const m=nt=>o.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("path",{d:"M30.17 8.91a1 1 0 0 0 1-1V3.85a1 1 0 0 0-1-1h-4.05a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1H3.85a1 1 0 0 0-1 1V7.9a1 1 0 0 0 1 1h1v16.2h-1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1H7.9a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V8.91Zm-3 16.2h-1a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1h-1V8.91h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1Z",style:{fill:"#fcfefe"}}),o.createElement("path",{style:{fill:"none"},d:"M2.83 2.83h28.35v28.35H2.83z"}));var C="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PHBhdGggZD0iTTMwLjE3IDguOTFhMSAxIDAgMCAwIDEtMVYzLjg1YTEgMSAwIDAgMC0xLTFoLTQuMDVhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMUgzLjg1YTEgMSAwIDAgMC0xIDFWNy45YTEgMSAwIDAgMCAxIDFoMXYxNi4yaC0xYTEgMSAwIDAgMC0xIDF2NC4wNWExIDEgMCAwIDAgMSAxSDcuOWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDQuMDVhMSAxIDAgMCAwIDEtMXYtNC4wM2ExIDEgMCAwIDAtMS0xaC0xVjguOTFabS0zIDE2LjJoLTFhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMWgtMVY4LjkxaDFhMSAxIDAgMCAwIDEtMXYtMWgxNi4ydjFhMSAxIDAgMCAwIDEgMWgxWiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmUiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48L3N2Zz4=",p=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,Z=(nt,gt,Dt)=>gt in nt?p(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,F=(nt,gt)=>{for(var Dt in gt||(gt={}))w.call(gt,Dt)&&Z(nt,Dt,gt[Dt]);if(S)for(var Dt of S(gt))y.call(gt,Dt)&&Z(nt,Dt,gt[Dt]);return nt};const R=nt=>o.createElement("svg",F({width:27,height:27,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nt),o.createElement("g",{clipPath:"url(#point_svg__a)"},o.createElement("path",{d:"M26.99 22.48a4.457 4.457 0 0 1-1.237 3.295 4.49 4.49 0 0 1-3.248 1.384 4.507 4.507 0 0 1-3.248-1.384 4.471 4.471 0 0 1-1.238-3.296 7.246 7.246 0 0 0-1.824-4.758.638.638 0 0 0-.656-.283.64.64 0 0 0-.233.093 4.065 4.065 0 0 1-3.573 0 .71.71 0 0 0-.956.257 7.131 7.131 0 0 0-1.796 4.682c.02.83-.2 1.65-.633 2.36a4.351 4.351 0 0 1-1.813 1.647 4.304 4.304 0 0 1-4.462-.2 4.486 4.486 0 0 1-1.79-2.2 4.466 4.466 0 0 1 1.504-5.159 4.511 4.511 0 0 1 2.694-.902 7.249 7.249 0 0 0 4.777-1.818.649.649 0 0 0 .2-.895 4.41 4.41 0 0 1 .902-4.98 4.458 4.458 0 0 1 5.004-.881.604.604 0 0 0 .84-.182 7.265 7.265 0 0 0 1.844-4.758 4.459 4.459 0 0 1 1.521-3.406A4.495 4.495 0 0 1 23.152.021a4.502 4.502 0 0 1 3.156 2.001 4.463 4.463 0 0 1 .54 3.688 4.434 4.434 0 0 1-1.593 2.4 4.464 4.464 0 0 1-2.736.922 7.259 7.259 0 0 0-4.7 1.78c-.325.275-.459.494-.249.951a4.07 4.07 0 0 1 0 3.626.608.608 0 0 0 .182.838 7.21 7.21 0 0 0 4.681 1.846 4.486 4.486 0 0 1 3.2 1.257 4.452 4.452 0 0 1 1.358 3.15Zm-15.744-9.004a2.24 2.24 0 0 0 1.376 2.088 2.264 2.264 0 0 0 2.462-.47 2.244 2.244 0 0 0 .504-2.447 2.248 2.248 0 0 0-2.078-1.398 2.242 2.242 0 0 0-2.092 1.368 2.219 2.219 0 0 0-.172.86ZM22.49 24.744a2.242 2.242 0 0 0 2.111-1.37c.115-.274.174-.569.172-.866a2.247 2.247 0 0 0-.646-1.607 2.263 2.263 0 0 0-1.6-.677c-.6.002-1.176.238-1.604.658a2.29 2.29 0 0 0-.688 1.588 2.26 2.26 0 0 0 .656 1.601c.422.426.997.668 1.599.673Zm0-22.507a2.271 2.271 0 0 0-1.605.664 2.254 2.254 0 0 0-.66 1.6c.013.6.259 1.173.687 1.595a2.326 2.326 0 0 0 1.606.67 2.288 2.288 0 0 0 1.597-.686 2.27 2.27 0 0 0 .473-2.464 2.236 2.236 0 0 0-1.226-1.206 2.253 2.253 0 0 0-.863-.164l-.01-.01ZM4.405 24.744a2.271 2.271 0 0 0 2.154-1.31c.125-.27.195-.562.206-.86a2.308 2.308 0 0 0-.623-1.617 2.326 2.326 0 0 0-1.575-.733 2.28 2.28 0 0 0-1.624.613c-.44.41-.697.977-.717 1.576a2.229 2.229 0 0 0 .6 1.62 2.245 2.245 0 0 0 1.579.711Z",fill:"#fff"}),o.createElement("path",{d:"M5.15 7.861a3.376 3.376 0 0 0 3.382-3.369A3.376 3.376 0 0 0 5.15 1.123a3.376 3.376 0 0 0-3.382 3.37A3.376 3.376 0 0 0 5.15 7.86Z",stroke:"#fff",strokeWidth:2,strokeMiterlimit:10})),o.createElement("defs",null,o.createElement("clipPath",{id:"point_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h27v27H0z"}))));var T="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjciIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Ik0yNi45OSAyMi40OGE0LjQ1NyA0LjQ1NyAwIDAgMS0xLjIzNyAzLjI5NSA0LjQ5IDQuNDkgMCAwIDEtMy4yNDggMS4zODQgNC41MDcgNC41MDcgMCAwIDEtMy4yNDgtMS4zODQgNC40NzEgNC40NzEgMCAwIDEtMS4yMzgtMy4yOTYgNy4yNDYgNy4yNDYgMCAwIDAtMS44MjQtNC43NTguNjM4LjYzOCAwIDAgMC0uNjU2LS4yODMuNjQuNjQgMCAwIDAtLjIzMy4wOTMgNC4wNjUgNC4wNjUgMCAwIDEtMy41NzMgMCAuNzEuNzEgMCAwIDAtLjk1Ni4yNTcgNy4xMzEgNy4xMzEgMCAwIDAtMS43OTYgNC42ODJjLjAyLjgzLS4yIDEuNjUtLjYzMyAyLjM2YTQuMzUxIDQuMzUxIDAgMCAxLTEuODEzIDEuNjQ3IDQuMzA0IDQuMzA0IDAgMCAxLTQuNDYyLS4yIDQuNDg2IDQuNDg2IDAgMCAxLTEuNzktMi4yIDQuNDY2IDQuNDY2IDAgMCAxIDEuNTA0LTUuMTU5IDQuNTExIDQuNTExIDAgMCAxIDIuNjk0LS45MDIgNy4yNDkgNy4yNDkgMCAwIDAgNC43NzctMS44MTguNjQ5LjY0OSAwIDAgMCAuMi0uODk1IDQuNDEgNC40MSAwIDAgMSAuOTAyLTQuOTggNC40NTggNC40NTggMCAwIDEgNS4wMDQtLjg4MS42MDQuNjA0IDAgMCAwIC44NC0uMTgyIDcuMjY1IDcuMjY1IDAgMCAwIDEuODQ0LTQuNzU4IDQuNDU5IDQuNDU5IDAgMCAxIDEuNTIxLTMuNDA2QTQuNDk1IDQuNDk1IDAgMCAxIDIzLjE1Mi4wMjFhNC41MDIgNC41MDIgMCAwIDEgMy4xNTYgMi4wMDEgNC40NjMgNC40NjMgMCAwIDEgLjU0IDMuNjg4IDQuNDM0IDQuNDM0IDAgMCAxLTEuNTkzIDIuNCA0LjQ2NCA0LjQ2NCAwIDAgMS0yLjczNi45MjIgNy4yNTkgNy4yNTkgMCAwIDAtNC43IDEuNzhjLS4zMjUuMjc1LS40NTkuNDk0LS4yNDkuOTUxYTQuMDcgNC4wNyAwIDAgMSAwIDMuNjI2LjYwOC42MDggMCAwIDAgLjE4Mi44MzggNy4yMSA3LjIxIDAgMCAwIDQuNjgxIDEuODQ2IDQuNDg2IDQuNDg2IDAgMCAxIDMuMiAxLjI1NyA0LjQ1MiA0LjQ1MiAwIDAgMSAxLjM1OCAzLjE1Wm0tMTUuNzQ0LTkuMDA0YTIuMjQgMi4yNCAwIDAgMCAxLjM3NiAyLjA4OCAyLjI2NCAyLjI2NCAwIDAgMCAyLjQ2Mi0uNDcgMi4yNDQgMi4yNDQgMCAwIDAgLjUwNC0yLjQ0NyAyLjI0OCAyLjI0OCAwIDAgMC0yLjA3OC0xLjM5OCAyLjI0MiAyLjI0MiAwIDAgMC0yLjA5MiAxLjM2OCAyLjIxOSAyLjIxOSAwIDAgMC0uMTcyLjg2Wk0yMi40OSAyNC43NDRhMi4yNDIgMi4yNDIgMCAwIDAgMi4xMTEtMS4zN2MuMTE1LS4yNzQuMTc0LS41NjkuMTcyLS44NjZhMi4yNDcgMi4yNDcgMCAwIDAtLjY0Ni0xLjYwNyAyLjI2MyAyLjI2MyAwIDAgMC0xLjYtLjY3N2MtLjYuMDAyLTEuMTc2LjIzOC0xLjYwNC42NThhMi4yOSAyLjI5IDAgMCAwLS42ODggMS41ODggMi4yNiAyLjI2IDAgMCAwIC42NTYgMS42MDFjLjQyMi40MjYuOTk3LjY2OCAxLjU5OS42NzNabTAtMjIuNTA3YTIuMjcxIDIuMjcxIDAgMCAwLTEuNjA1LjY2NCAyLjI1NCAyLjI1NCAwIDAgMC0uNjYgMS42Yy4wMTMuNi4yNTkgMS4xNzMuNjg3IDEuNTk1YTIuMzI2IDIuMzI2IDAgMCAwIDEuNjA2LjY3IDIuMjg4IDIuMjg4IDAgMCAwIDEuNTk3LS42ODYgMi4yNyAyLjI3IDAgMCAwIC40NzMtMi40NjQgMi4yMzYgMi4yMzYgMCAwIDAtMS4yMjYtMS4yMDYgMi4yNTMgMi4yNTMgMCAwIDAtLjg2My0uMTY0bC0uMDEtLjAxWk00LjQwNSAyNC43NDRhMi4yNzEgMi4yNzEgMCAwIDAgMi4xNTQtMS4zMWMuMTI1LS4yNy4xOTUtLjU2Mi4yMDYtLjg2YTIuMzA4IDIuMzA4IDAgMCAwLS42MjMtMS42MTcgMi4zMjYgMi4zMjYgMCAwIDAtMS41NzUtLjczMyAyLjI4IDIuMjggMCAwIDAtMS42MjQuNjEzYy0uNDQuNDEtLjY5Ny45NzctLjcxNyAxLjU3NmEyLjIyOSAyLjIyOSAwIDAgMCAuNiAxLjYyIDIuMjQ1IDIuMjQ1IDAgMCAwIDEuNTc5LjcxMVoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNS4xNSA3Ljg2MWEzLjM3NiAzLjM3NiAwIDAgMCAzLjM4Mi0zLjM2OUEzLjM3NiAzLjM3NiAwIDAgMCA1LjE1IDEuMTIzYTMuMzc2IDMuMzc2IDAgMCAwLTMuMzgyIDMuMzdBMy4zNzYgMy4zNzYgMCAwIDAgNS4xNSA3Ljg2WiIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjd2MjdIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",z=Object.defineProperty,A=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,$=(nt,gt,Dt)=>gt in nt?z(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,B=(nt,gt)=>{for(var Dt in gt||(gt={}))L.call(gt,Dt)&&$(nt,Dt,gt[Dt]);if(A)for(var Dt of A(gt))I.call(gt,Dt)&&$(nt,Dt,gt[Dt]);return nt};const K=nt=>o.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("defs",null,o.createElement("style",null,".magic_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"magic_svg__cls-1",d:"M26.08 18.47V16.6c0-.58.27-1.19 1-1.25s1.05.45 1.06 1.29v1.83h1.92c.76 0 1.25.46 1.19 1.08a1 1 0 0 1-1.18 1h-1.91v1.74c0 .91-.39 1.41-1.06 1.39s-1-.49-1-1.42v-1.71h-1.91c-.71 0-1.21-.29-1.21-1s.5-1 1.21-1ZM12.81 6.47h1.59a1 1 0 0 1 1 1 1 1 0 0 1-1 1.07h-1.58v1.5c0 .68-.38 1.11-1.07 1.1a1 1 0 0 1-1-1.08V8.54H9.29c-.68 0-1.13-.36-1.12-1s.46-1 1.14-1h1.44V5.01a1 1 0 1 1 2.06 0c.02.38 0 .87 0 1.46ZM19.93 24.67c.11-1.56.33-2 1.05-2s1 .44 1.12 2c.8.17 2.09-.2 2 1.22-.07 1.15-1.14.89-2 .95-.18.8.22 2.11-1.2 2-1.18-.07-.89-1.19-1-2-.84-.09-1.91.21-2-1.06-.07-.7.39-.94 2.03-1.11ZM30.2 6l-2.51-2.49a2.15 2.15 0 0 0-3.06 0L3.27 24.92a2.2 2.2 0 0 0 0 3.08l2.51 2.51a2.17 2.17 0 0 0 3.06 0L30.2 9.09a2.19 2.19 0 0 0 0-3.09ZM29 8.47l-4.39 4.39a.94.94 0 0 1-1.35 0l-2.28-2.28a1 1 0 0 1 0-1.36l4.38-4.39a1 1 0 0 1 1.36 0L29 7.11a1 1 0 0 1 0 1.36Z"}));var H="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjYuMDggMTguNDdWMTYuNmMwLS41OC4yNy0xLjE5IDEtMS4yNXMxLjA1LjQ1IDEuMDYgMS4yOXYxLjgzaDEuOTJjLjc2IDAgMS4yNS40NiAxLjE5IDEuMDhhMSAxIDAgMCAxLTEuMTggMWgtMS45MXYxLjc0YzAgLjkxLS4zOSAxLjQxLTEuMDYgMS4zOXMtMS0uNDktMS0xLjQydi0xLjcxaC0xLjkxYy0uNzEgMC0xLjIxLS4yOS0xLjIxLTFzLjUtMSAxLjIxLTFaTTEyLjgxIDYuNDdoMS41OWExIDEgMCAwIDEgMSAxIDEgMSAwIDAgMS0xIDEuMDdoLTEuNTh2MS41YzAgLjY4LS4zOCAxLjExLTEuMDcgMS4xYTEgMSAwIDAgMS0xLTEuMDhWOC41NEg5LjI5Yy0uNjggMC0xLjEzLS4zNi0xLjEyLTFzLjQ2LTEgMS4xNC0xaDEuNDRWNS4wMWExIDEgMCAxIDEgMi4wNiAwYy4wMi4zOCAwIC44NyAwIDEuNDZaTTE5LjkzIDI0LjY3Yy4xMS0xLjU2LjMzLTIgMS4wNS0yczEgLjQ0IDEuMTIgMmMuOC4xNyAyLjA5LS4yIDIgMS4yMi0uMDcgMS4xNS0xLjE0Ljg5LTIgLjk1LS4xOC44LjIyIDIuMTEtMS4yIDItMS4xOC0uMDctLjg5LTEuMTktMS0yLS44NC0uMDktMS45MS4yMS0yLTEuMDYtLjA3LS43LjM5LS45NCAyLjAzLTEuMTFaTTMwLjIgNmwtMi41MS0yLjQ5YTIuMTUgMi4xNSAwIDAgMC0zLjA2IDBMMy4yNyAyNC45MmEyLjIgMi4yIDAgMCAwIDAgMy4wOGwyLjUxIDIuNTFhMi4xNyAyLjE3IDAgMCAwIDMuMDYgMEwzMC4yIDkuMDlhMi4xOSAyLjE5IDAgMCAwIDAtMy4wOVpNMjkgOC40N2wtNC4zOSA0LjM5YS45NC45NCAwIDAgMS0xLjM1IDBsLTIuMjgtMi4yOGExIDEgMCAwIDEgMC0xLjM2bDQuMzgtNC4zOWExIDEgMCAwIDEgMS4zNiAwTDI5IDcuMTFhMSAxIDAgMCAxIDAgMS4zNloiLz48L3N2Zz4=",ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,G=(nt,gt,Dt)=>gt in nt?ie(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,O=(nt,gt)=>{for(var Dt in gt||(gt={}))te.call(gt,Dt)&&G(nt,Dt,gt[Dt]);if(ce)for(var Dt of ce(gt))W.call(gt,Dt)&&G(nt,Dt,gt[Dt]);return nt};const k=nt=>o.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("defs",null,o.createElement("style",null,".polygon_svg__cls-2{fill:#fff}")),o.createElement("path",{style:{fill:"none",stroke:"#fff",strokeMiterlimit:10,strokeWidth:2},d:"M27.96 5.9H5.75v22.21h22.21l-9.52-10.72L27.96 5.9z"}),o.createElement("rect",{className:"polygon_svg__cls-2",x:2.68,y:2.83,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:2.68,y:25.05,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:24.89,y:25.05,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:24.89,y:2.83,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:15.7,y:13.94,width:6.13,height:6.13,rx:.96}));var Y="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMntmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4IiBkPSJNMjcuOTYgNS45SDUuNzV2MjIuMjFoMjIuMjFsLTkuNTItMTAuNzJMMjcuOTYgNS45eiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMi44MyIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMjUuMDUiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjI0Ljg5IiB5PSIyNS4wNSIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMjQuODkiIHk9IjIuODMiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjE1LjciIHk9IjEzLjk0IiB3aWR0aD0iNi4xMyIgaGVpZ2h0PSI2LjEzIiByeD0iLjk2Ii8+PC9zdmc+",P=Object.defineProperty,Q=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(nt,gt,Dt)=>gt in nt?P(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,Me=(nt,gt)=>{for(var Dt in gt||(gt={}))fe.call(gt,Dt)&&ge(nt,Dt,gt[Dt]);if(Q)for(var Dt of Q(gt))Ce.call(gt,Dt)&&ge(nt,Dt,gt[Dt]);return nt};const Re=nt=>o.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"1em",width:"1em"},nt),o.createElement("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}));var Qe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaGVpZ2h0PSIxZW0iIHdpZHRoPSIxZW0iPjxwYXRoIGQ9Ik0zIDExaDhWM0gzdjh6bTItNmg0djRINVY1em04LTJ2OGg4VjNoLTh6bTYgNmgtNFY1aDR2NHpNMyAyMWg4di04SDN2OHptMi02aDR2NEg1di00em0xMy0yaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yaC0zeiIvPjwvc3ZnPg==",Ve=Object.defineProperty,qe=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,mt=(nt,gt,Dt)=>gt in nt?Ve(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,Nt=(nt,gt)=>{for(var Dt in gt||(gt={}))Mt.call(gt,Dt)&&mt(nt,Dt,gt[Dt]);if(qe)for(var Dt of qe(gt))wt.call(gt,Dt)&&mt(nt,Dt,gt[Dt]);return nt};const ke=nt=>o.createElement("svg",Nt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},nt),o.createElement("defs",null,o.createElement("style",null,".brush_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"brush_svg__cls-1",d:"M17.29 31.49H9.44c-1.68 0-2.24-.66-1.92-2.28.36-1.83.77-3.66 1.13-5.49a.9.9 0 0 1 1-.84h15.39a.91.91 0 0 1 1 .85c.37 1.83.78 3.65 1.13 5.48.32 1.62-.24 2.28-1.92 2.28-2.63.01-5.25 0-7.96 0ZM17.39 20.05H9.92c-1 0-1.09-.12-1.09-1.06v-1.72a1.36 1.36 0 0 1 1.44-1.46h3.51c.56 0 .74-.19.73-.74 0-2.89.05-5.78 0-8.67C14.43 3.93 16 2.94 17.38 3s2.93 1 2.87 3.48c-.07 2.84 0 5.68 0 8.52 0 .64.16.89.84.86 1.09-.05 2.19 0 3.29 0a1.4 1.4 0 0 1 1.56 1.57v1.8c0 .6-.36.89-1 .89Z"}),o.createElement("path",{style:{fill:"none"},d:"M2.89 2.83h28.35v28.35H2.89z"}));var He="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNCAzNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuMjkgMzEuNDlIOS40NGMtMS42OCAwLTIuMjQtLjY2LTEuOTItMi4yOC4zNi0xLjgzLjc3LTMuNjYgMS4xMy01LjQ5YS45LjkgMCAwIDEgMS0uODRoMTUuMzlhLjkxLjkxIDAgMCAxIDEgLjg1Yy4zNyAxLjgzLjc4IDMuNjUgMS4xMyA1LjQ4LjMyIDEuNjItLjI0IDIuMjgtMS45MiAyLjI4LTIuNjMuMDEtNS4yNSAwLTcuOTYgMFpNMTcuMzkgMjAuMDVIOS45MmMtMSAwLTEuMDktLjEyLTEuMDktMS4wNnYtMS43MmExLjM2IDEuMzYgMCAwIDEgMS40NC0xLjQ2aDMuNTFjLjU2IDAgLjc0LS4xOS43My0uNzQgMC0yLjg5LjA1LTUuNzggMC04LjY3QzE0LjQzIDMuOTMgMTYgMi45NCAxNy4zOCAzczIuOTMgMSAyLjg3IDMuNDhjLS4wNyAyLjg0IDAgNS42OCAwIDguNTIgMCAuNjQuMTYuODkuODQuODYgMS4wOS0uMDUgMi4xOSAwIDMuMjkgMGExLjQgMS40IDAgMCAxIDEuNTYgMS41N3YxLjhjMCAuNi0uMzYuODktMSAuODlaIi8+PHBhdGggc3R5bGU9ImZpbGw6bm9uZSIgZD0iTTIuODkgMi44M2gyOC4zNXYyOC4zNUgyLjg5eiIvPjwvc3ZnPg==",et=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,U=(nt,gt,Dt)=>gt in nt?et(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,N=(nt,gt)=>{for(var Dt in gt||(gt={}))ue.call(gt,Dt)&&U(nt,Dt,gt[Dt]);if(Fe)for(var Dt of Fe(gt))V.call(gt,Dt)&&U(nt,Dt,gt[Dt]);return nt};const D=nt=>o.createElement("svg",N({className:"undo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M512 324.267V136.533c0-6.826-3.413-13.653-10.24-13.653-6.827-3.413-13.653-3.413-17.067 0L6.827 430.08C3.413 433.493 0 436.907 0 443.733s3.413 10.24 6.827 13.654L484.693 798.72c6.827 3.413 13.654 3.413 17.067 0 6.827-3.413 10.24-10.24 10.24-13.653V597.333c249.173 10.24 474.453 235.52 477.867 290.134 0 10.24 6.826 17.066 17.066 17.066S1024 897.707 1024 887.467c-3.413-225.28-170.667-552.96-512-563.2z",fill:"#fff"}));var ee="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI0LjI2N1YxMzYuNTMzYzAtNi44MjYtMy40MTMtMTMuNjUzLTEwLjI0LTEzLjY1My02LjgyNy0zLjQxMy0xMy42NTMtMy40MTMtMTcuMDY3IDBMNi44MjcgNDMwLjA4QzMuNDEzIDQzMy40OTMgMCA0MzYuOTA3IDAgNDQzLjczM3MzLjQxMyAxMC4yNCA2LjgyNyAxMy42NTRMNDg0LjY5MyA3OTguNzJjNi44MjcgMy40MTMgMTMuNjU0IDMuNDEzIDE3LjA2NyAwIDYuODI3LTMuNDEzIDEwLjI0LTEwLjI0IDEwLjI0LTEzLjY1M1Y1OTcuMzMzYzI0OS4xNzMgMTAuMjQgNDc0LjQ1MyAyMzUuNTIgNDc3Ljg2NyAyOTAuMTM0IDAgMTAuMjQgNi44MjYgMTcuMDY2IDE3LjA2NiAxNy4wNjZTMTAyNCA4OTcuNzA3IDEwMjQgODg3LjQ2N2MtMy40MTMtMjI1LjI4LTE3MC42NjctNTUyLjk2LTUxMi01NjMuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",se=Object.defineProperty,X=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Se=(nt,gt,Dt)=>gt in nt?se(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,he=(nt,gt)=>{for(var Dt in gt||(gt={}))re.call(gt,Dt)&&Se(nt,Dt,gt[Dt]);if(X)for(var Dt of X(gt))Ie.call(gt,Dt)&&Se(nt,Dt,gt[Dt]);return nt};const We=nt=>o.createElement("svg",he({className:"redo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"m1017.173 430.08-477.866-307.2c-6.827-3.413-13.654-3.413-17.067 0-6.827 3.413-10.24 6.827-10.24 13.653v187.734c-341.333 10.24-508.587 337.92-512 563.2v3.413c0 6.827 6.827 13.653 17.067 13.653s17.066-6.826 17.066-17.066c3.414-51.2 228.694-279.894 477.867-290.134v187.734c0 6.826 3.413 13.653 10.24 13.653 6.827 3.413 13.653 3.413 17.067 0l477.866-341.333c3.414-3.414 6.827-10.24 6.827-13.654s-3.413-10.24-6.827-13.653z",fill:"#fff"}));var de="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Im0xMDE3LjE3MyA0MzAuMDgtNDc3Ljg2Ni0zMDcuMmMtNi44MjctMy40MTMtMTMuNjU0LTMuNDEzLTE3LjA2NyAwLTYuODI3IDMuNDEzLTEwLjI0IDYuODI3LTEwLjI0IDEzLjY1M3YxODcuNzM0Yy0zNDEuMzMzIDEwLjI0LTUwOC41ODcgMzM3LjkyLTUxMiA1NjMuMnYzLjQxM2MwIDYuODI3IDYuODI3IDEzLjY1MyAxNy4wNjcgMTMuNjUzczE3LjA2Ni02LjgyNiAxNy4wNjYtMTcuMDY2YzMuNDE0LTUxLjIgMjI4LjY5NC0yNzkuODk0IDQ3Ny44NjctMjkwLjEzNHYxODcuNzM0YzAgNi44MjYgMy40MTMgMTMuNjUzIDEwLjI0IDEzLjY1MyA2LjgyNyAzLjQxMyAxMy42NTMgMy40MTMgMTcuMDY3IDBsNDc3Ljg2Ni0zNDEuMzMzYzMuNDE0LTMuNDE0IDYuODI3LTEwLjI0IDYuODI3LTEzLjY1NHMtMy40MTMtMTAuMjQtNi44MjctMTMuNjUzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",le=Object.defineProperty,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,pe=(nt,gt,Dt)=>gt in nt?le(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,Je=(nt,gt)=>{for(var Dt in gt||(gt={}))xe.call(gt,Dt)&&pe(nt,Dt,gt[Dt]);if(ve)for(var Dt of ve(gt))Ze.call(gt,Dt)&&pe(nt,Dt,gt[Dt]);return nt};const Ae=nt=>o.createElement("svg",Je({className:"repeat_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M0 448c0 35.4 28.6 64 64 64s64-28.6 64-64c0-106 86-192 192-192h320v64c0 25.8 15.6 49.2 39.6 59.2s51.4 4.4 69.8-13.8l128-128c25-25 25-65.6 0-90.6l-128-128C731 .4 703.6-5 679.6 5S640 38.2 640 64v64H320C143.2 128 0 271.2 0 448zm1024 128c0-35.4-28.6-64-64-64s-64 28.6-64 64c0 106-86 192-192 192H384v-64c0-25.8-15.6-49.2-39.6-59.2s-51.4-4.4-69.8 13.8l-128 128c-25 25-25 65.6 0 90.6l128 128c18.4 18.4 45.8 23.8 69.8 13.8s39.6-33.2 39.6-59.2V896h320c176.8 0 320-143.2 320-320z",fill:"#fff"}));var oe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0wIDQ0OGMwIDM1LjQgMjguNiA2NCA2NCA2NHM2NC0yOC42IDY0LTY0YzAtMTA2IDg2LTE5MiAxOTItMTkyaDMyMHY2NGMwIDI1LjggMTUuNiA0OS4yIDM5LjYgNTkuMnM1MS40IDQuNCA2OS44LTEzLjhsMTI4LTEyOGMyNS0yNSAyNS02NS42IDAtOTAuNmwtMTI4LTEyOEM3MzEgLjQgNzAzLjYtNSA2NzkuNiA1UzY0MCAzOC4yIDY0MCA2NHY2NEgzMjBDMTQzLjIgMTI4IDAgMjcxLjIgMCA0NDh6bTEwMjQgMTI4YzAtMzUuNC0yOC42LTY0LTY0LTY0cy02NCAyOC42LTY0IDY0YzAgMTA2LTg2IDE5Mi0xOTIgMTkySDM4NHYtNjRjMC0yNS44LTE1LjYtNDkuMi0zOS42LTU5LjJzLTUxLjQtNC40LTY5LjggMTMuOGwtMTI4IDEyOGMtMjUgMjUtMjUgNjUuNiAwIDkwLjZsMTI4IDEyOGMxOC40IDE4LjQgNDUuOCAyMy44IDY5LjggMTMuOHMzOS42LTMzLjIgMzkuNi01OS4yVjg5NmgzMjBjMTc2LjggMCAzMjAtMTQzLjIgMzIwLTMyMHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",ye=Object.defineProperty,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,we=(nt,gt,Dt)=>gt in nt?ye(nt,gt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[gt]=Dt,Le=(nt,gt)=>{for(var Dt in gt||(gt={}))De.call(gt,Dt)&&we(nt,Dt,gt[Dt]);if(Be)for(var Dt of Be(gt))Pe.call(gt,Dt)&&we(nt,Dt,gt[Dt]);return nt};const Ye=nt=>o.createElement("svg",Le({className:"delete_all_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M864 192v576h64V192c0-70.4-57.6-128-128-128H352v64h448c35.2 0 64 28.8 64 64z",fill:"#fff"}),o.createElement("path",{d:"M672 192H224c-70.4 0-128 57.6-128 128v512c0 70.4 57.6 128 128 128h448c70.4 0 128-57.6 128-128V320c0-70.4-57.6-128-128-128zm-73.235 489.51c12.445 12.445 12.445 32.81 0 45.255s-32.81 12.445-45.255 0L448 621.255l-105.51 105.51c-12.445 12.445-32.81 12.445-45.255 0s-12.445-32.81 0-45.255L402.745 576l-105.51-105.51c-12.445-12.445-12.445-32.81 0-45.255s32.81-12.445 45.255 0L448 530.745l105.51-105.51c12.445-12.445 32.81-12.445 45.255 0s12.445 32.81 0 45.255L493.255 576l105.51 105.51z",fill:"#fff"}));var Ue="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik04NjQgMTkydjU3Nmg2NFYxOTJjMC03MC40LTU3LjYtMTI4LTEyOC0xMjhIMzUydjY0aDQ0OGMzNS4yIDAgNjQgMjguOCA2NCA2NHoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNjcyIDE5MkgyMjRjLTcwLjQgMC0xMjggNTcuNi0xMjggMTI4djUxMmMwIDcwLjQgNTcuNiAxMjggMTI4IDEyOGg0NDhjNzAuNCAwIDEyOC01Ny42IDEyOC0xMjhWMzIwYzAtNzAuNC01Ny42LTEyOC0xMjgtMTI4em0tNzMuMjM1IDQ4OS41MWMxMi40NDUgMTIuNDQ1IDEyLjQ0NSAzMi44MSAwIDQ1LjI1NXMtMzIuODEgMTIuNDQ1LTQ1LjI1NSAwTDQ0OCA2MjEuMjU1bC0xMDUuNTEgMTA1LjUxYy0xMi40NDUgMTIuNDQ1LTMyLjgxIDEyLjQ0NS00NS4yNTUgMHMtMTIuNDQ1LTMyLjgxIDAtNDUuMjU1TDQwMi43NDUgNTc2bC0xMDUuNTEtMTA1LjUxYy0xMi40NDUtMTIuNDQ1LTEyLjQ0NS0zMi44MSAwLTQ1LjI1NXMzMi44MS0xMi40NDUgNDUuMjU1IDBMNDQ4IDUzMC43NDVsMTA1LjUxLTEwNS41MWMxMi40NDUtMTIuNDQ1IDMyLjgxLTEyLjQ0NSA0NS4yNTUgMHMxMi40NDUgMzIuODEgMCA0NS4yNTVMNDkzLjI1NSA1NzZsMTA1LjUxIDEwNS41MXoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",dt,bt,ft,At=function(nt){return nt.Classification="Classification",nt.Detection="Detection",nt.Segmentation="Segmentation",nt.Matting="Matting",nt.KeyPoints="KeyPoints",nt.Mask="Mask",nt}({}),Ot=function(nt){return nt.showAnnotations="showAnnotations",nt.showAllCategory="showAllCategory",nt.showImgDesc="showImgDesc",nt.showBoxText="showBoxText",nt.showSegFilling="showSegFilling",nt.showSegContour="showSegContour",nt.showMattingColorFill="showMattingColorFill",nt.showKeyPointsLine="showKeyPointsLine",nt.showKeyPointsBox="showKeyPointsBox",nt}({}),jt=function(nt){return nt.Waiting="waiting",nt.Running="running",nt.Success="success",nt.Failed="failed",nt}({}),Gt=.1,Xt=20,zn=.5,fn=.1,Bn=function(nt){return nt.Custom="Custom",nt.Rectangle="Rectangle",nt.Polygon="Polygon",nt.Skeleton="Skeleton",nt.Mask="Mask",nt.Matting="Matting",nt}({}),On=function(nt){return nt.Rect="rect",nt.Circle="circle",nt.Polygon="polygon",nt.None="none",nt}({}),Mn=function(nt){return nt.Drag="Drag",nt.Rectangle="Rect",nt.Polygon="Polygon",nt.Skeleton="Skeleton",nt.Mask="Mask",nt}({}),_e=(dt={},t()(dt,Mn.Drag,Bn.Custom),t()(dt,Mn.Rectangle,Bn.Rectangle),t()(dt,Mn.Polygon,Bn.Polygon),t()(dt,Mn.Skeleton,Bn.Skeleton),t()(dt,Mn.Mask,Bn.Mask),dt),at=function(nt){return nt.PenAdd="PenAdd",nt.PenErase="PenErase",nt.BrushAdd="BrushAdd",nt.BrushErase="BrushErase",nt.AutoSegmentByBox="AutoSegmentByBox",nt.AutoSegmentByClick="AutoSegmentByClick",nt.AutoSegmentByStroke="AutoSegmentByStroke",nt.AutoSegmentEverything="AutoSegmentEverything",nt.AutoEdgeStitching="AutoEdgeStitching",nt}({}),Vt=function(nt){return nt.SmartAnnotation="SmartAnnotation",nt.Undo="Undo",nt.Redo="Redo",nt.RepeatPrevious="RepeatPrevious",nt.DeleteAll="DeleteAll",nt}({}),rn=(bt={},t()(bt,Bn.Rectangle,m),t()(bt,Bn.Skeleton,R),t()(bt,Bn.Polygon,k),t()(bt,Bn.Custom,Re),t()(bt,Bn.Mask,ke),t()(bt,Bn.Matting,ke),bt),st=(ft={},t()(ft,Vt.SmartAnnotation,K),t()(ft,Vt.Undo,D),t()(ft,Vt.Redo,We),t()(ft,Vt.RepeatPrevious,Ae),t()(ft,Vt.DeleteAll,Ye),ft),ut=function(nt){return nt[nt.noLabeled=0]="noLabeled",nt[nt.labeledNotVisible=1]="labeledNotVisible",nt[nt.labeledVisible=2]="labeledVisible",nt}({}),$t={categoryName:"person",boundingBox:{xmax:.44072164948453607,xmin:.2654639175257732,ymax:.5698739977090492,ymin:.09335624284077892},points:[175.25773195876286,61.21134020618557,0,1,2,1,179.9828178694158,41.45189003436426,0,1,2,1,170.96219931271477,41.881443298969074,0,1,2,1,189.86254295532646,51.33161512027492,0,1,2,1,163.23024054982818,50.47250859106529,0,1,2,1,192.86941580756016,68.08419243986253,0,1,2,1,158.295150820924,67.63982699371964,0,1,2,1,202.74914089347078,99.87113402061856,0,1,2,1,150.34364261168383,99.87113402061856,0,1,2,1,208.76288659793815,127.36254295532646,0,1,2,1,142.61168384879724,129.0807560137457,0,1,2,1,182.13058419243984,126.50343642611685,0,1,2,1,162.2279495990836,125.4739898092191,0,1,2,1,184.70790378006873,175.4725085910653,0,1,2,1,158.78675066819395,176.9759450171821,0,1,2,1,190.29209621993127,208.11855670103094,0,1,2,1,152.92096219931273,206.82989690721652,0,1,2,1],lines:[15,13,13,11,16,14,14,12,11,12,5,11,6,12,5,6,5,7,6,8,7,9,8,10,1,2,0,1,0,2,1,3,2,4,3,5,4,6],pointColors:["128","0","0","255","178","102","230","230","0","255","51","255","153","204","255","255","128","0","0","255","255","128","0","255","51","153","255","169","165","139","255","0","0","102","255","102","184","97","134","128","128","0","255","190","255","0","128","0","0","0","255"],pointNames:["nose","left_eye","right_eye","left_ear","right_ear","left_shoulder","right_shoulder","left_elbow","right_elbow","left_wrist","right_wrist","left_hip","right_hip","left_knee","right_knee","left_ankle","right_ankle"]}},34095:function(M,b,e){"use strict";e.d(b,{Bt:function(){return n},XQ:function(){return s},lz:function(){return c},mh:function(){return i},rl:function(){return t},s_:function(){return o}});var i={DEFAULT:0,CREATING:0,SHAPE:.4,FOCUS:.6,ACTIVE:.2,CTRL_TO_SELECT:.1,OTHER:0},t={DEFAULT:1,CREATING:1,CREATING_LINE:.8,FOCUS:1,ACTIVE:1,OTHER:.3},o={CREATING:.7,FOCUS:.6,DEFAULT:.4},s={CREATING:"#fff"},n={CREATING:"transparent",CREATING_POSITIVE:"#2876d4",CREATING_NEGATIVE:"#e91d00"},c={POSITIVE:"rgba(1, 128, 0, 0.7)",NEGATIVE:"rgba(255, 3, 0, 0.7)"}},14122:function(M,b,e){"use strict";e.d(b,{kl:function(){return fl},j5:function(){return gl},D5:function(){return Ri},je:function(){return k.je}});var i=e(34485),t=e.n(i),o=e(88205),s=e.n(o),n=e(58757),c=e(62109),l=e(12562),v=e(51244),h=e(73267),m=e(86505),C=e(65246),p=e(87608),S=e.n(p),w=e(74820),y=e(35667),Z=function($e){var Ge=$e.className,cn=Ge===void 0?"":Ge,qt=$e.children,Fn=$e.leftTools,tr=Fn===void 0?[]:Fn,Rn=$e.rightTools,nr=Rn===void 0?[]:Rn,Ur=function(Vn){return Vn.map(function(Un,wa){var ya=Un.title,Qt=Un.icon,Ne=Un.onClick,rt=Un.disabled,Rt=Un.splitLine,Ut=Un.customElement;return(0,y.jsxs)(n.Fragment,{children:[Ut||(0,y.jsx)(w.Z,{title:ya,children:(0,y.jsx)("div",{className:S()("dds-annnotator-toptools-row-icon",{"dds-annnotator-toptools-row-icon-disabled":!!rt}),onClick:Ne,children:Qt})}),Rt&&(0,y.jsx)("div",{className:"dds-annnotator-toptools-row-split"})]},wa)})};return(0,y.jsxs)("div",{className:S()("dds-annnotator-toptools",cn),onMouseDown:function(Vn){Vn.stopPropagation()},children:[(0,y.jsx)("div",{className:"dds-annnotator-toptools-row",children:Ur(tr)}),(0,y.jsx)("div",{className:"dds-annnotator-toptools-progress",children:qt}),(0,y.jsx)("div",{className:"dds-annnotator-toptools-row",children:Ur(nr)})]})},F=Z,R=e(63900),T=e.n(R),z=e(39378);function A(tt){var $e=tt.visible,Ge=tt.categories,cn=tt.setCategories,qt=tt.drawData,Fn=tt.setDrawData,tr=tt.editState,Rn=tt.updateObjectWithoutHistory,nr=tt.updateAllObjectWithoutHistory,Ur=(0,n.useState)([]),lr=s()(Ur,2),Vn=lr[0],Un=lr[1],wa=(0,n.useCallback)(function(ln){Ge.find(function(mn){return mn.name===ln})||!cn||cn(function(mn){return[].concat(t()(mn),[{id:ln,name:ln}])})},[Ge]);(0,n.useEffect)(function(){var ln=Ge.map(function(Sn){return Sn.name}),mn=Vn.filter(function(Sn){return ln.includes(Sn)});Un(mn)},[Ge]),(0,n.useEffect)(function(){$e||Un([])},[$e]);var ya=qt.objectList,Qt=(0,n.useCallback)(function(ln,mn){var Sn=T()({},qt.objectList[ln]);Sn.hidden=mn,Rn(Sn,ln)},[qt.objectList]),Ne=(0,n.useCallback)(function(ln,mn){var Sn=qt.objectList.map(function(un){var $r=T()({},un);return $r.label===ln&&($r.hidden=mn),$r});nr(Sn)},[qt.objectList]),rt=function(mn,Sn){var un=T()({},qt.objectList[tr.focusObjectIndex]);switch(mn){case m.Yq.Rect:{un.rect&&(un.rect.visible=Sn,Rn(un,tr.focusObjectIndex));break}case m.Yq.Polygon:{un.polygon&&(un.polygon.visible=Sn,Rn(un,tr.focusObjectIndex));break}}},Rt=function(mn){var Sn,un,$r=(0,z.cloneDeep)(qt.objectList[tr.focusObjectIndex]),Qr=(Sn=$r.keypoints)===null||Sn===void 0||(un=Sn.points)===null||un===void 0?void 0:un[tr.focusEleIndex];Qr&&(Qr.visible=mn),Rn($r,tr.focusObjectIndex)},Ut=(0,n.useCallback)(function(ln){Fn(function(mn){ln!==mn.activeClassName&&(mn.activeClassName=ln)})},[]);return(0,n.useEffect)(function(){if(!(qt.activeObjectIndex<0)){var ln=qt.objectList[qt.activeObjectIndex].label;ln!==qt.activeClassName&&Ut(ln)}},[qt.activeObjectIndex]),{aiLabels:Vn,setAiLabels:Un,curObjects:ya,onChangeObjectHidden:Qt,onChangeCategoryHidden:Ne,onChangeElementVisible:rt,onChangePointVisible:Rt,onChangeActiveClass:Ut,onCreateCategory:wa}}var L=e(24454),I=e.n(L),$=e(56592),B=e.n($),K=e(46134),H=e(84045),ie=function(){var tt=B()(I()().mark(function $e(Ge){return I()().wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return qt.abrupt("return",new Promise(function(Fn,tr){window.URL=window.URL||window.webkitURL;var Rn=new XMLHttpRequest;Rn.open("get",Ge,!0),Rn.responseType="blob",Rn.setRequestHeader("If-Modified-Since","0"),Rn.send(),Rn.onload=function(){if(this.status===200){var nr=this.response,Ur=new FileReader;Ur.onloadend=function(lr){var Vn,Un=(Vn=lr.target)===null||Vn===void 0?void 0:Vn.result;Fn(Un)},Ur.onerror=function(lr){tr(lr)},Ur.readAsDataURL(nr)}},Rn.onerror=function(nr){tr(nr)}}));case 1:case"end":return qt.stop()}},$e)}));return function(Ge){return tt.apply(this,arguments)}}(),ce=function($e){var Ge=/^data:image\/(png|jpe?g|gif|svg|webp);base64,/i;return Ge.test($e)},te=function($e){var Ge=/^blob:/i;return Ge.test($e)},W=function($e){return new Promise(function(Ge,cn){var qt=new FileReader;qt.onload=function(Fn){var tr;Ge((tr=Fn.target)===null||tr===void 0?void 0:tr.result)},qt.readAsDataURL($e),qt.onerror=function(Fn){cn(Fn)}})},G=e(53357),O=e(97375),k=e(50910),Y=e(67761),P;(function(tt){var $e=function(Ge){return Ge.Detection="ai_detection",Ge.SegmentByPolygon="ai_segmentation",Ge.SegmentByMask="ai_segmentation_mask",Ge.Pose="ai_pose",Ge.MaskEdgeStitching="ai_mask_edge_stitching",Ge.SegmentEverything="ai_segment_everything",Ge}({});tt.EnumModelType=$e})(P||(P={}));function Q(tt,$e,Ge){return fe.apply(this,arguments)}function fe(){return fe=B()(I()().mark(function tt($e,Ge,cn){return I()().wrap(function(Fn){for(;;)switch(Fn.prev=Fn.next){case 0:return Fn.abrupt("return",(0,O.request)("".concat("https://api.deepdataspace.com","/tasks/").concat($e),T()({method:"POST",data:T()({},Ge)},cn||{hideCodeErrorMsg:!0})));case 1:case"end":return Fn.stop()}},tt)})),fe.apply(this,arguments)}function Ce(tt,$e){return(0,O.request)("".concat("https://api.deepdataspace.com","/task_statuses/").concat(tt),T()({method:"GET"},$e||{}))}function ge(tt,$e){return(0,O.request)("".concat("https://api.deepdataspace.com","/mask_task_statuses/").concat(tt),T()({method:"GET"},$e||{}))}function Me(tt,$e){return Re.apply(this,arguments)}function Re(){return Re=B()(I()().mark(function tt($e,Ge){var cn,qt,Fn,tr,Rn,nr=arguments;return I()().wrap(function(lr){for(;;)switch(lr.prev=lr.next){case 0:cn=nr.length>2&&nr[2]!==void 0?nr[2]:5e3,qt=nr.length>3&&nr[3]!==void 0?nr[3]:1e3,Fn=0;case 3:if(!(Fn=Ha?k.TK.Checked:k.TK.Unchecked,conf:$a.normalizedScore,color:Rt($a.categoryName,!0)}}).reverse(),nr(function($a){$a.isBatchEditing=!0,$a.limitConf=Ha;var ui=$a.objectList.filter(function(Ya){return Ya.status===k.TK.Commited});$a.objectList=[].concat(t()(ui),t()(Ao)),$a.creatingObject&&$a.objectList[$a.activeObjectIndex]&&($a.creatingObject=T()({},$a.objectList[$a.activeObjectIndex]))}),H.ZP.success(un("DDSAnnotator.smart.msg.success"))),Oa.next=11;break;case 8:Oa.prev=8,Oa.t0=Oa.catch(0),H.ZP.error(un("DDSAnnotator.smart.msg.error"));case 11:return Oa.prev=11,Qr(!1),Oa.finish(11);case 14:case"end":return Oa.stop()}},za,null,[[0,8,11,14]])}));return function(ma,so){return _a.apply(this,arguments)}}(),jo=function(){var _a=B()(I()().mark(function za(ma,so,Ba,pa){var no,Ha,Ao,oo,Oa,$a,ui,Ya,hi,ai,Ja,Uo,Do,Po,Xa,Jo;return I()().wrap(function(mi){for(;;)switch(mi.prev=mi.next){case 0:return Ao=((no=ma.creatingObject)===null||no===void 0||(Ha=no.polygon)===null||Ha===void 0?void 0:Ha.group.map(function(qo){return qo.reduce(function(Ki,as){var os=(0,K.AR)([as.x,as.y],Vn,Un),qi=os.x,Zi=os.y;return Ki.concat([qi,Zi])},[])}))||[],oo=(pa==null?void 0:pa.map(function(qo){var Ki=(0,K.AR)([qo.point.x,qo.point.y],Vn,Un),as=Ki.x,os=Ki.y;return{isPositive:qo.isPositive,position:[as,os]}}))||[],Oa={image:so,mask:ma.prompt.segmentationMask||"",polygons:Ao,clicks:oo},Ba&&($a=Ba.xmin,ui=Ba.ymin,Ya=Ba.xmax,hi=Ba.ymax,ai=(0,K.AR)([$a,ui],Vn,Un),Ja=(0,K.AR)([Ya,hi],Vn,Un),Object.assign(Oa,{rect:[ai.x,ai.y,Ja.x,Ja.y]})),mi.prev=4,Qr(!0),mi.next=8,Qe(P.EnumModelType.SegmentByPolygon,Oa);case 8:Uo=mi.sent,Uo&&(Do=Uo.polygon,Po=Uo.mask,Do&&Do.length>0&&(Xa=Do.map(function(qo){for(var Ki=[],as=0;as0&&hi>0&&(Ja=(0,K.Ap)({x:$a,y:ui},Un,Vn),Uo=Ja.x,Do=Ja.y,Po=(0,K.Ap)({x:Ya,y:hi},Un,Vn),Xa=Po.x,Jo=Po.y,ai=[Math.round(Uo),Math.round(Do),Math.round(Xa),Math.round(Jo)]),Si={maskRle:oo||[],maskId:ma.prompt.segmentationMask||"",prompt:fo(Ba||[]),area:ai},Ur.imageCacheId?Object.assign(Si,{imageId:Ur.imageCacheId}):Object.assign(Si,{image:so}),j.prev=8,Qr(!0),j.next=12,Qe(P.EnumModelType.SegmentByMask,Si);case 12:mi=j.sent,mi&&(Ki=mi.maskId,as=mi.maskRle,os=mi.imageId,qi=((qo=ma.creatingObject)===null||qo===void 0?void 0:qo.color)||Rt(rt),Zi={type:m.gr.Mask,hidden:!1,label:rt,currIndex:-1,maskCanvasElement:(0,Y.ei)(as,Vn,qi),maskRle:as,status:k.TK.Checked,color:qi},nr(function(ae){ae.creatingObject=Zi,ae.prompt.maskPrompts=Ba,ae.prompt.segmentationMask=Ki,ae.prompt.creatingMask=void 0}),lr(function(ae){ae.imageCacheId=os}),H.ZP.success(un("DDSAnnotator.smart.msg.success"))),j.next=20;break;case 16:j.prev=16,j.t0=j.catch(8),H.ZP.error(un("DDSAnnotator.smart.msg.error")),nr(function(ae){ae.prompt.creatingMask=void 0});case 20:return j.prev=20,Qr(!1),j.finish(20);case 23:case"end":return j.stop()}},za,null,[[8,16,20,23]])}));return function(ma,so,Ba){return _a.apply(this,arguments)}}(),xa=function(){var _a=B()(I()().mark(function za(ma,so,Ba){var pa,no,Ha,Ao,oo,Oa,$a,ui,Ya,hi,ai;return I()().wrap(function(Uo){for(;;)switch(Uo.prev=Uo.next){case 0:return pa=m.v_.lines,no=m.v_.pointNames,Ha=m.v_.pointColors,Ao={image:so,targets:Ba.join(","),template:{lines:pa,pointNames:no,pointColors:Ha}},ma.isBatchEditing&&(oo=t()(ma.objectList),ma.activeObjectIndex>-1&&oo[ma.activeObjectIndex]&&ma.creatingObject&&(oo[ma.activeObjectIndex]=T()(T()({},oo[ma.activeObjectIndex]),ma.creatingObject)),Oa=oo.filter(function(Do){return Do.type===m.gr.Skeleton&&Do.status===k.TK.Checked}),Oa.length>0&&($a=(0,K.j9)(Oa,Vn,Un),ui=$a.map(function(Do){return{categoryName:Do.categoryName,points:Do.points,boundingBox:Do.boundingBox}}),Object.assign(Ao,{objects:ui}))),Uo.prev=3,Qr(!0),Uo.next=7,Qe(P.EnumModelType.Pose,Ao);case 7:Ya=Uo.sent,Ya&&(hi=Ya.objects,hi&&hi.length>0&&(ai=hi.map(function(Do){var Po=Do.categoryName,Xa=Do.boundingBox,Jo=Do.points,Si=Do.conf,mi={label:Po,color:Rt(Po),type:m.gr.Skeleton,hidden:!1,conf:Si,status:k.TK.Checked};if(Xa){var qo=(0,K.cO)(Xa,Un);Object.assign(mi,{rect:T()({visible:!0},qo)})}if(Jo&&pa&&Ha&&no){var Ki=(0,K.el)(Jo,no,Ha,Vn,Un);Object.assign(mi,{keypoints:{points:Ki,lines:pa}})}return mi}),nr(function(Do){Do.isBatchEditing||(Do.isBatchEditing=!0);var Po=Do.objectList.filter(function(Xa){return Xa.status===k.TK.Commited});Do.objectList=[].concat(t()(Po),t()(ai)),Do.creatingObject&&Do.objectList[Do.activeObjectIndex]&&(Do.creatingObject=T()({},Do.objectList[Do.activeObjectIndex]))}),H.ZP.success(un("DDSAnnotator.smart.msg.success")))),Uo.next=14;break;case 11:Uo.prev=11,Uo.t0=Uo.catch(3),H.ZP.error(un("DDSAnnotator.smart.msg.error"));case 14:return Uo.prev=14,Qr(!1),Uo.finish(14);case 17:case"end":return Uo.stop()}},za,null,[[3,11,14,17]])}));return function(ma,so,Ba){return _a.apply(this,arguments)}}(),oa=function(){var _a=B()(I()().mark(function za(ma,so){var Ba,pa,no,Ha,Ao,oo,Oa,$a,ui,Ya,hi,ai,Ja,Uo;return I()().wrap(function(Po){for(;;)switch(Po.prev=Po.next){case 0:if(!(!((Ba=ma.prompt.creatingMask)!==null&&Ba!==void 0&&Ba.stroke)||!((pa=ma.prompt.creatingMask)!==null&&pa!==void 0&&pa.radius))){Po.next=2;break}return Po.abrupt("return");case 2:if(no=ma.prompt.creatingMask,Ha=no.stroke,Ao=no.radius,oo=ma.objectList.filter(function(Xa){return Xa.type===m.gr.Mask}),!(oo.length<2)){Po.next=8;break}return H.ZP.error("To ensure valid results when using intelligent edge stitching, make sure to use at least 2 mask objects."),Rn(function(Xa){Xa.prompt.creatingMask=void 0}),Po.abrupt("return");case 8:return Oa=oo.map(function(Xa){var Jo=(0,Y.G9)(Un,Vn,[],Xa.maskCanvasElement)||[];return{maskRle:Jo,categoryName:Xa.label}}),$a=Ha.reduce(function(Xa,Jo){var Si=Jo.x,mi=Jo.y,qo=(0,K.AR)([Si,mi],Vn,Un);return Xa.concat([qo.x,qo.y])},[]),ui={rleList:Oa,stroke:$a,radius:Ao},Ur.imageCacheId?Object.assign(ui,{imageId:Ur.imageCacheId}):Object.assign(ui,{image:so}),Object.assign(ui,{image:so}),Po.prev=13,Qr(!0),Po.next=17,Qe(P.EnumModelType.MaskEdgeStitching,ui);case 17:hi=Po.sent,hi&&((Ya=hi.rleList)===null||Ya===void 0?void 0:Ya.length)>0&&(ai=hi.rleList.map(function(Xa){var Jo=Rt(Xa.categoryName);return{type:m.gr.Mask,hidden:!1,label:Xa.categoryName,maskRle:Xa.maskRle,maskCanvasElement:(0,Y.ei)(Xa.maskRle,Vn,Jo),conf:1,status:k.TK.Commited,color:Jo}}),Ja=ma.objectList.filter(function(Xa){return Xa.type!==m.gr.Mask}),Uo=[].concat(t()(Ja),t()(ai)),Qt(Uo),H.ZP.success(un("DDSAnnotator.smart.msg.success"))),Po.next=24;break;case 21:Po.prev=21,Po.t0=Po.catch(13),H.ZP.error(un("DDSAnnotator.smart.msg.error"));case 24:return Po.prev=24,Qr(!1),Rn(function(Xa){Xa.prompt.creatingMask=void 0}),Po.finish(24);case 28:case"end":return Po.stop()}},za,null,[[13,21,24,28]])}));return function(ma,so){return _a.apply(this,arguments)}}(),mo=function(){var _a=B()(I()().mark(function za(ma,so){var Ba,pa,no,Ha;return I()().wrap(function(oo){for(;;)switch(oo.prev=oo.next){case 0:return Ba=T()({},so),Ur.imageCacheId?Object.assign(Ba,{imageId:Ur.imageCacheId}):Object.assign(Ba,{image:ma}),oo.prev=2,Qr(!0),oo.next=6,Qe(P.EnumModelType.SegmentEverything,Ba);case 6:no=oo.sent,no&&((pa=no.rleList)===null||pa===void 0?void 0:pa.length)>0&&(lr(function(Oa){Oa.annotsDisplayOptions.colorByCategory=!1}),Ha=no.rleList.map(function(Oa){var $a=Rt(rt);return{type:m.gr.Mask,hidden:!1,label:rt,maskRle:Oa.maskRle,maskCanvasElement:(0,Y.ei)(Oa.maskRle,Vn,$a),conf:1,status:k.TK.Checked,color:$a}}),nr(function(Oa){Oa.objectList=Ha,Oa.isBatchEditing=!0}),H.ZP.success(un("DDSAnnotator.smart.msg.success"))),oo.next=13;break;case 10:oo.prev=10,oo.t0=oo.catch(2),H.ZP.error(un("DDSAnnotator.smart.msg.error"));case 13:return oo.prev=13,Qr(!1),oo.finish(13);case 16:case"end":return oo.stop()}},za,null,[[2,10,13,16]])}));return function(ma,so){return _a.apply(this,arguments)}}(),Sr=(0,n.useCallback)(function(){var _a=B()(I()().mark(function za(ma){var so,Ba,pa,no,Ha,Ao,oo,Oa,$a,ui,Ya,hi;return I()().wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:if(so=ma.type,Ba=ma.drawData,pa=ma.aiLabels,no=pa===void 0?[]:pa,Ha=ma.bbox,Ao=ma.maskPrompts,oo=ma.segmentationClicks,Oa=ma.segmentEverythingParams,!Sa){Ja.next=3;break}return Ja.abrupt("return");case 3:if($a=Ba||tr,!(!no.length&&[m.ru.Rectangle,m.ru.Skeleton].includes($a.selectedTool))){Ja.next=7;break}return H.ZP.warning(un("DDSAnnotator.smart.msg.labelRequired")),Ja.abrupt("return");case 7:if(ui=H.ZP.loading(un("DDSAnnotator.smart.msg.loading"),1e5),Ya="".concat(cn[qt].urlFullRes),Ja.prev=9,ua(!0),ce(Ya)){Ja.next=15;break}return Ja.next=14,ie(Ya);case 14:Ya=Ja.sent;case 15:Ja.next=20;break;case 17:Ja.prev=17,Ja.t0=Ja.catch(9),H.ZP.error("ImageToBase64 Error:",Ja.t0);case 20:Ja.prev=20,ua(!0),hi=so||m.Zo[$a.selectedTool],Ja.t1=hi,Ja.next=Ja.t1===m.gr.Rectangle?26:Ja.t1===m.gr.Skeleton?29:Ja.t1===m.gr.Polygon?32:Ja.t1===m.gr.Mask?35:48;break;case 26:return Ja.next=28,Ia(Ya,no);case 28:return Ja.abrupt("break",50);case 29:return Ja.next=31,xa($a,Ya,no);case 31:return Ja.abrupt("break",50);case 32:return Ja.next=34,jo($a,Ya,Ha,oo);case 34:return Ja.abrupt("break",50);case 35:if($a.selectedSubTool!==m.jB.AutoEdgeStitching){Ja.next=40;break}return Ja.next=38,oa($a,Ya);case 38:Ja.next=47;break;case 40:if($a.selectedSubTool!==m.jB.AutoSegmentEverything){Ja.next=45;break}return Ja.next=43,mo(Ya,Oa);case 43:Ja.next=47;break;case 45:return Ja.next=47,Aa($a,Ya,Ao);case 47:return Ja.abrupt("break",50);case 48:return H.ZP.warning("Plan to Support!"),Ja.abrupt("break",50);case 50:Ja.next=55;break;case 52:Ja.prev=52,Ja.t2=Ja.catch(20),H.ZP.error(un("DDSAnnotator.smart.msg.error"));case 55:return Ja.prev=55,ua(!1),Rn(function(Uo){Uo.prompt.activeRectWhileLoading=void 0}),ui(),Ja.finish(55);case 60:case"end":return Ja.stop()}},za,null,[[9,17],[20,52,55,60]])}));return function(za){return _a.apply(this,arguments)}}(),[tr]),Tr=function(){var _a=B()(I()().mark(function za(ma){var so;return I()().wrap(function(pa){for(;;)switch(pa.prev=pa.next){case 0:if(!(Sa||!ln)){pa.next=2;break}return pa.abrupt("return");case 2:if(!ma.objectList.find(function(no){return!no.label})){pa.next=5;break}return H.ZP.warning("There are annotations without a category. Please check."),pa.abrupt("return");case 5:return ua(!0),pa.prev=6,so=(0,K.j9)(ma.objectList,Vn,Un),pa.next=10,ln(cn[qt].id,so);case 10:pa.next=15;break;case 12:pa.prev=12,pa.t0=pa.catch(6),console.error(pa.t0);case 15:ua(!1);case 16:case"end":return pa.stop()}},za,null,[[6,12]])}));return function(ma){return _a.apply(this,arguments)}}(),Ra=function(){if(Ge===k.je.Edit&&Ne){Fn.confirm({getContainer:function(){return document.body},content:un("DDSAnnotator.confirmLeave.content"),cancelText:un("DDSAnnotator.confirmLeave.cancel"),okText:un("DDSAnnotator.confirmLeave.ok"),okButtonProps:{danger:!0},onOk:function(){Ut&&Ut()}});return}Ut&&Ut()},Wr=function(){if(Ge===k.je.Review&&mn){var za;mn(((za=cn[qt])===null||za===void 0?void 0:za.id)||"",k.JE.Reject)}},Xr=function(){if(Ge===k.je.Review&&mn){var za;mn(((za=cn[qt])===null||za===void 0?void 0:za.id)||"",k.JE.Accept)}};return{onAiAnnotation:Sr,onSaveAnnotations:Tr,onCancelAnnotations:Ra,onReject:Wr,onAccept:Xr}},Mt=qe,wt=function($e){var Ge=$e.children,cn=$e.eventHandler,qt=function(tr){cn?cn(tr):tr.stopPropagation()};return(0,y.jsx)("div",{onMouseDown:qt,onMouseUp:qt,style:{userSelect:"none"},children:Ge})},mt=function($e){var Ge=$e.index,cn=$e.targetElement,qt=$e.imagePos;return(0,y.jsx)(wt,{children:(0,y.jsx)("div",{className:"dds-annotator-popover-menu",style:{left:cn.x+qt.x+5,top:cn.y+qt.y+5},children:(0,y.jsx)("div",{className:"dds-annotator-popover-menu-content",children:(0,y.jsx)("span",{className:"dds-annotator-popover-menu-text",children:"".concat(Ge+1," ").concat(cn.name)})})})})},Nt=mt,ke=e(82968),He=e(37617),et=e(16951),Fe=Object.defineProperty,ue=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,N=(tt,$e,Ge)=>$e in tt?Fe(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,D=(tt,$e)=>{for(var Ge in $e||($e={}))V.call($e,Ge)&&N(tt,Ge,$e[Ge]);if(ue)for(var Ge of ue($e))U.call($e,Ge)&&N(tt,Ge,$e[Ge]);return tt};const ee=tt=>n.createElement("svg",D({width:10,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.464 5.65A1 1 0 0 0 2.88 7.064l2.12-2.12 2.122 2.12A1 1 0 0 0 8.535 5.65L5.713 2.828a1 1 0 0 0-1.42-.006L1.464 5.65Z",fill:"#fff"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQ2NCA1LjY1QTEgMSAwIDAgMCAyLjg4IDcuMDY0bDIuMTItMi4xMiAyLjEyMiAyLjEyQTEgMSAwIDAgMCA4LjUzNSA1LjY1TDUuNzEzIDIuODI4YTEgMSAwIDAgMC0xLjQyLS4wMDZMMS40NjQgNS42NVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",X=e(83720),re=e(56019),Ie=e(39875),Se=e(23605),he=e(2556),We=e(2657),de=e.n(We),le,ve=function(tt){return tt.Tool="DDSAnnotator.shortcuts.tools",tt.GeneralAction="DDSAnnotator.shortcuts.general",tt.ViewAction="DDSAnnotator.shortcuts.viewControl",tt.AnnotationAction="DDSAnnotator.shortcuts.annotsControl",tt}({}),xe=function(tt){return tt[tt.RectangleTool=0]="RectangleTool",tt[tt.PolygonTool=1]="PolygonTool",tt[tt.SkeletonTool=2]="SkeletonTool",tt[tt.DragTool=3]="DragTool",tt[tt.MaskTool=4]="MaskTool",tt[tt.SmartAnnotation=5]="SmartAnnotation",tt[tt.Undo=6]="Undo",tt[tt.Redo=7]="Redo",tt[tt.RepeatPrevious=8]="RepeatPrevious",tt[tt.DeleteAll=9]="DeleteAll",tt[tt.NextImage=10]="NextImage",tt[tt.PreviousImage=11]="PreviousImage",tt[tt.Save=12]="Save",tt[tt.Accept=13]="Accept",tt[tt.Reject=14]="Reject",tt[tt.ZoomIn=15]="ZoomIn",tt[tt.ZoomOut=16]="ZoomOut",tt[tt.Reset=17]="Reset",tt[tt.HideCurrObject=18]="HideCurrObject",tt[tt.HideCurrCategory=19]="HideCurrCategory",tt[tt.HideAll=20]="HideAll",tt[tt.PanImage=21]="PanImage",tt[tt.DeleteCurrObject=22]="DeleteCurrObject",tt[tt.SaveCurrObject=23]="SaveCurrObject",tt[tt.CancelCurrObject=24]="CancelCurrObject",tt}({}),Ze=(le={},de()(le,xe.RectangleTool,{name:"RectangleTool",type:ve.Tool,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.tools.rectangle"}),de()(le,xe.PolygonTool,{name:"PolygonTool",type:ve.Tool,shortcut:["p"],descTextKey:"DDSAnnotator.shortcuts.tools.polygon"}),de()(le,xe.SkeletonTool,{name:"SkeletonTool",type:ve.Tool,shortcut:["s"],descTextKey:"DDSAnnotator.shortcuts.tools.skeleton"}),de()(le,xe.MaskTool,{name:"MaskTool",type:ve.Tool,shortcut:["m"],descTextKey:"DDSAnnotator.shortcuts.tools.mask"}),de()(le,xe.DragTool,{name:"DragTool",type:ve.Tool,shortcut:["d"],descTextKey:"DDSAnnotator.shortcuts.tools.drag"}),de()(le,xe.SmartAnnotation,{name:"SmartAnnotation",type:ve.GeneralAction,shortcut:["a"],descTextKey:"DDSAnnotator.shortcuts.general.smart"}),de()(le,xe.Undo,{name:"Undo",type:ve.GeneralAction,shortcut:["ctrl.z","meta.z"],descTextKey:"DDSAnnotator.shortcuts.general.undo"}),de()(le,xe.Redo,{name:"Redo",type:ve.GeneralAction,shortcut:["ctrl.shift.z","meta.shift.z"],descTextKey:"DDSAnnotator.shortcuts.general.redo"}),de()(le,xe.RepeatPrevious,{name:"RepeatPrevious",type:ve.GeneralAction,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.general.repeatPrevious"}),de()(le,xe.DeleteAll,{name:"DeleteAll",type:ve.GeneralAction,shortcut:["ctrl.shift.d","meta.shift.d"],descTextKey:"DDSAnnotator.shortcuts.general.deleteAll"}),de()(le,xe.Save,{name:"Save",type:ve.GeneralAction,shortcut:["ctrl.s","meta.s"],descTextKey:"DDSAnnotator.shortcuts.general.save"}),de()(le,xe.HideCurrObject,{name:"HideCurrObject",type:ve.ViewAction,shortcut:["h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrObject"}),de()(le,xe.HideCurrCategory,{name:"HideCurrCategory",type:ve.ViewAction,shortcut:["ctrl.h","meta.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrCategory"}),de()(le,xe.HideAll,{name:"HideAll",type:ve.ViewAction,shortcut:["ctrl.shift.h","meta.shift.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideAll"}),de()(le,xe.ZoomIn,{name:"ZoomIn",type:ve.ViewAction,shortcut:["equalsign"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomIn"}),de()(le,xe.ZoomOut,{name:"ZoomOut",type:ve.ViewAction,shortcut:["dash"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomOut"}),de()(le,xe.Reset,{name:"Reset",type:ve.ViewAction,shortcut:["0"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomReset"}),de()(le,xe.Accept,{name:"Accept",type:ve.GeneralAction,shortcut:["ctrl.a","meta.a"],descTextKey:"DDSAnnotator.shortcuts.general.accept"}),de()(le,xe.Reject,{name:"Reject",type:ve.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.reject"}),de()(le,xe.NextImage,{name:"NextImage",type:ve.ViewAction,shortcut:["rightarrow"],descTextKey:"DDSAnnotator.shortcuts.general.next"}),de()(le,xe.PreviousImage,{name:"PreviousImage",type:ve.ViewAction,shortcut:["leftarrow"],descTextKey:"DDSAnnotator.shortcuts.general.prev"}),de()(le,xe.PanImage,{name:"PanImage",type:ve.ViewAction,shortcut:["Space"],descTextKey:"DDSAnnotator.shortcuts.viewControl.panImage"}),de()(le,xe.SaveCurrObject,{name:"SaveCurrObject",type:ve.AnnotationAction,shortcut:["enter"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.finish"}),de()(le,xe.DeleteCurrObject,{name:"DeleteCurrObject",type:ve.AnnotationAction,shortcut:["Backspace","Delete"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.delete"}),de()(le,xe.CancelCurrObject,{name:"CancelCurrObject",type:ve.AnnotationAction,shortcut:["esc"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.cancel"}),le),pe=function($e){var Ge=$e;switch($e){case"meta":Ge="\u2318";break;case"shift":Ge="\u21E7";break;case"equalsign":case"add":Ge="+";break;case"dash":case"subtract":Ge="-";break;case"leftarrow":Ge="\u2190";break;case"rightarrow":Ge="\u2192";break;default:Ge=$e.toUpperCase();break}return Ge},Je=e(18695),Ae=e(9457),oe=function(tt){return tt.Object="object",tt.Class="class",tt}(oe||{}),ye=function($e,Ge){return(0,z.isEqual)($e.objects,Ge.objects)&&$e.activeObjectIndex===Ge.activeObjectIndex&&$e.supportEdit===Ge.supportEdit&&$e.activeClassName===Ge.activeClassName&&$e.className===Ge.className&&(0,z.isEqual)($e.labelColors,Ge.labelColors)&&$e.onChangeActiveClassName===Ge.onChangeActiveClassName&&$e.onFocusObject===Ge.onFocusObject&&$e.onDeleteObject===Ge.onDeleteObject&&$e.onChangeObjectHidden===Ge.onChangeObjectHidden&&$e.onChangeCategoryHidden===Ge.onChangeCategoryHidden},Be=(0,n.memo)(function(tt){var $e=tt.objects,Ge=tt.labelColors,cn=tt.activeObjectIndex,qt=tt.className,Fn=tt.supportEdit,tr=tt.activeClassName,Rn=tt.onFocusObject,nr=tt.onActiveObject,Ur=tt.onChangeObjectHidden,lr=tt.onDeleteObject,Vn=tt.onChangeCategoryHidden,Un=tt.onChangeActiveClassName,wa=(0,G.bU)(),ya=wa.localeText,Qt=ya("DDSAnnotator.annotsList.uncategorized"),Ne=(0,n.useState)(oe.Class),rt=s()(Ne,2),Rt=rt[0],Ut=rt[1],ln=function(xa){Ut(xa)},mn=(0,Ae.w)(),Sn=mn.height,un=45,$r=35,Qr=Sn-un-56,Sa=(0,n.useRef)(null),ua=(0,n.useMemo)(function(){return!$e.some(function(Aa){return!Aa.hidden})},[$e]),Ia=function(){$e.forEach(function(xa,oa){Ur(oa,!ua)})};(0,he.Z)(Ze[xe.HideAll].shortcut,function(Aa){Aa.preventDefault(),Ia()},{exactMatch:!0});var jo=(0,n.useMemo)(function(){return $e.reduce(function(Aa,xa,oa){var mo=xa.label||Qt;return Aa[mo]||(Aa[mo]=[]),Aa[mo].push(T()(T()({},xa),{},{originIndex:oa})),Aa},{})},[$e]);(0,n.useEffect)(function(){if(!(cn<0)){var Aa=document.querySelector(".ant-tabs-tabpane-active");if(Rt===oe.Object){var xa=Aa==null?void 0:Aa.querySelector(".tab-collapse .ant-collapse-item:nth-child(".concat(cn+1,")"));xa==null||xa.scrollIntoView({behavior:"smooth",block:"nearest"})}else if(Rt===oe.Class&&jo[tr]){var oa=jo[tr].findIndex(function(Sr){return Sr.originIndex===cn});if(oa>-1){var mo;(mo=Sa.current)===null||mo===void 0||mo.scrollTo({index:oa,align:"auto"})}}}},[cn]);var fo=(0,y.jsx)(ke.Z,{accordion:!0,ghost:!0,className:"tab-collapse",activeKey:tr,children:$e.length>0&&Object.keys(jo).sort().map(function(Aa){var xa=jo[Aa],oa=xa.every(function(mo){return mo.hidden});return(0,y.jsx)(ke.Z.Panel,{showArrow:!1,header:(0,y.jsxs)("div",{className:S()("collapse-header",{"collapse-header-selected":tr===Aa}),style:{height:un},onClick:function(){Un(Aa===tr?"":Aa)},children:[tr===Aa&&(0,y.jsx)("div",{className:"selected-line",style:{backgroundColor:Ge[Aa]||"#fff"}}),(0,y.jsx)("div",{className:"label-name",children:Aa}),(0,y.jsxs)("div",{className:"label-actions",children:[(0,y.jsx)("span",{className:"label-count",children:xa.length}),Fn&&(0,y.jsx)(w.Z,{title:ya(oa?"DDSAnnotator.annotsList.showCate":"DDSAnnotator.annotsList.hideCate"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:oa?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:function(Sr){Sr.stopPropagation(),Vn(Aa,!oa)}})}),(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:(0,y.jsx)(ee,{className:"down-arrow"}),shape:"circle"})]})]},Aa),children:tr===Aa&&(0,y.jsx)(He.Z,{children:(0,y.jsx)(Je.Z,{data:xa,height:Qr,fullHeight:!1,itemHeight:$r,itemKey:"originIndex",ref:Sa,children:function(Sr,Tr){return(0,y.jsxs)(He.Z.Item,{className:"collapse-item",style:{height:$r},onMouseOver:function(){Rn(Sr.originIndex)},onClick:function(Wr){Wr.stopPropagation(),nr(Sr.originIndex)},children:[cn===Sr.originIndex&&(0,y.jsx)("div",{className:"color-hint",style:{backgroundColor:Sr.color}}),(0,y.jsx)(Ie.Z,{className:"label-icon",component:m.ef[Sr.type]}),(0,y.jsx)("div",{className:"label",children:Sr.label}),(0,y.jsxs)("div",{className:"label-actions",children:[(0,y.jsx)(w.Z,{title:Sr.hidden?ya("DDSAnnotator.annotsList.show"):ya("DDSAnnotator.annotsList.hide"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:Sr.hidden?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:function(Wr){Wr.stopPropagation(),Ur(Sr.originIndex,!Sr.hidden)}})}),Fn&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(w.Z,{title:ya("DDSAnnotator.annotsList.delete"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:(0,y.jsx)(Se.Z,{}),shape:"circle",onClick:function(Wr){Wr.stopPropagation(),lr(Sr.originIndex)}})})})]})]},Sr.label+Tr)}})})},Aa||Qt)})});return(0,y.jsx)("div",{className:S()("dds-annotator-objectlist",qt),id:"rightOperations",onMouseDown:function(xa){xa.stopPropagation()},children:(0,y.jsx)(et.Z,{activeKey:Rt,onChange:ln,items:[{key:oe.Class,label:ya("DDSAnnotator.annotsList.categories"),children:fo}],tabBarExtraContent:$e.length>0&&(0,y.jsx)(w.Z,{title:ya(ua?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"tab-header-actions",icon:ua?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:Ia})})})})},ye),De=e(33181),Pe=Object.defineProperty,we=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ue=(tt,$e,Ge)=>$e in tt?Pe(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,dt=(tt,$e)=>{for(var Ge in $e||($e={}))Le.call($e,Ge)&&Ue(tt,Ge,$e[Ge]);if(we)for(var Ge of we($e))Ye.call($e,Ge)&&Ue(tt,Ge,$e[Ge]);return tt};const bt=tt=>n.createElement("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 29"},tt),n.createElement("defs",null,n.createElement("style",null,".drag_svg__cls-1{fill:none}.drag_svg__cls-2{fill:#fcfefe}")),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83Z"}),n.createElement("path",{className:"drag_svg__cls-2",d:"m21.73 18.19 8.23 4.8-3.51 1 2.51 4.35-2.05 1.18-2.51-4.35-2.63 2.54-.04-9.52z"}),n.createElement("path",{className:"drag_svg__cls-2",d:"M19.37 9.92h2.36v2.36h5.91a1.18 1.18 0 0 1 1.18 1.18v4.73h-2.36v-3.54H14.65v11.81h4.72v2.36h-5.91a1.18 1.18 0 0 1-1.18-1.18v-5.91H9.92v-2.36h2.36v-5.91a1.18 1.18 0 0 1 1.18-1.18h5.91ZM5.2 19.37h2.36v2.36H5.2zM5.2 14.65h2.36v2.36H5.2zM5.2 9.92h2.36v2.36H5.2zM5.2 5.2h2.36v2.36H5.2zM9.92 5.2h2.36v2.36H9.92zM14.65 5.2h2.36v2.36h-2.36zM19.37 5.2h2.36v2.36h-2.36z"}));var ft="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOSAyOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmV9LmNscy0ye2ZpbGw6I2ZjZmVmZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M1oiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Im0yMS43MyAxOC4xOSA4LjIzIDQuOC0zLjUxIDEgMi41MSA0LjM1LTIuMDUgMS4xOC0yLjUxLTQuMzUtMi42MyAyLjU0LS4wNC05LjUyeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTE5LjM3IDkuOTJoMi4zNnYyLjM2aDUuOTFhMS4xOCAxLjE4IDAgMCAxIDEuMTggMS4xOHY0LjczaC0yLjM2di0zLjU0SDE0LjY1djExLjgxaDQuNzJ2Mi4zNmgtNS45MWExLjE4IDEuMTggMCAwIDEtMS4xOC0xLjE4di01LjkxSDkuOTJ2LTIuMzZoMi4zNnYtNS45MWExLjE4IDEuMTggMCAwIDEgMS4xOC0xLjE4aDUuOTFaTTUuMiAxOS4zN2gyLjM2djIuMzZINS4yek01LjIgMTQuNjVoMi4zNnYyLjM2SDUuMnpNNS4yIDkuOTJoMi4zNnYyLjM2SDUuMnpNNS4yIDUuMmgyLjM2djIuMzZINS4yek05LjkyIDUuMmgyLjM2djIuMzZIOS45MnpNMTQuNjUgNS4yaDIuMzZ2Mi4zNmgtMi4zNnpNMTkuMzcgNS4yaDIuMzZ2Mi4zNmgtMi4zNnoiLz48L3N2Zz4=",At=e(85706),Ot=Object.defineProperty,jt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,zn=(tt,$e,Ge)=>$e in tt?Ot(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,fn=(tt,$e)=>{for(var Ge in $e||($e={}))Gt.call($e,Ge)&&zn(tt,Ge,$e[Ge]);if(jt)for(var Ge of jt($e))Xt.call($e,Ge)&&zn(tt,Ge,$e[Ge]);return tt};const Bn=tt=>n.createElement("svg",fn({className:"keyboard_svg__icon",viewBox:"0 0 1152 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M1056 896H96c-53.02 0-96-42.98-96-96V224c0-53.02 42.98-96 96-96h960c53.02 0 96 42.98 96 96v576c0 53.02-42.98 96-96 96zM256 360v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM352 552v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM256 744v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm576 0v-80c0-13.254-10.746-24-24-24H344c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h464c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24z"}));var On="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDExNTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMDU2IDg5Nkg5NmMtNTMuMDIgMC05Ni00Mi45OC05Ni05NlYyMjRjMC01My4wMiA0Mi45OC05NiA5Ni05Nmg5NjBjNTMuMDIgMCA5NiA0Mi45OCA5NiA5NnY1NzZjMCA1My4wMi00Mi45OCA5Ni05NiA5NnpNMjU2IDM2MHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHpNMzUyIDU1MnYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6TTI1NiA3NDR2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em01NzYgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0SDM0NGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg0NjRjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6Ii8+PC9zdmc+",Mn=function($e){for(var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,cn=navigator.userAgent.toLowerCase(),qt=cn.indexOf("mac")>-1,Fn=[],tr=function(){var lr=$e[Rn];if(!qt&&lr.includes("meta")||qt&&lr.includes("ctrl"))return"continue";if(lr.includes(".")){var Vn=lr.split(".");Vn.forEach(function(wa,ya){var Qt=(0,y.jsx)("span",{className:S()({"dds-annotator-shortcutsinfo-key":Ge}),children:pe(wa)},ya);Fn.push(Qt),ya!==Vn.length-1&&Fn.push((0,y.jsxs)("span",{className:S()({"dds-annotator-shortcutsinfo-combine":Ge}),children:[" ","+"," "]},ya+"and"))})}else{var Un=(0,y.jsx)("span",{className:S()({"dds-annotator-shortcutsinfo-key":Ge}),children:pe(lr)},Rn);Fn.push(Un)}Rn!==$e.length-1&&Fn.push((0,y.jsxs)("span",{className:S()({"dds-annotator-shortcutsinfo-combine":Ge}),children:[" ","/"," "]},Rn+"or"))},Rn=0;Rn<$e.length;Rn++)var nr=tr();return(0,y.jsx)("span",{children:Fn})},_e=(0,n.memo)(function(tt){var $e=tt.viewOnly,Ge=(0,G.bU)(),cn=Ge.localeText,qt=function(Rn){var nr={};for(var Ur in Rn)if(Rn.hasOwnProperty(Ur)){var lr=Rn[Ur],Vn=lr.type,Un=lr.descTextKey,wa=lr.shortcut,ya=cn(Un);if($e&&Vn!==ve.ViewAction)continue;nr[Vn]?nr[Vn].children.push({key:Ur,label:ya,icon:(0,y.jsx)("span",{children:Mn(wa)})}):nr[Vn]={key:Vn,type:"group",label:cn(Vn),children:[{key:Ur,label:ya,icon:(0,y.jsx)("span",{children:Mn(wa)})}]}}return Object.values(nr)},Fn=(0,n.useMemo)(function(){return qt(Ze)||[]},[$e]);return(0,y.jsx)(h.Z,{placement:"bottomLeft",dropdownRender:function(){return(0,y.jsx)(At.Z,{className:"dds-annotator-shortcutsinfo",theme:"dark",items:Fn})},trigger:["click"],children:(0,y.jsx)(w.Z,{title:cn("DDSAnnotator.shortcuts"),children:(0,y.jsx)(Ie.Z,{component:Bn,style:{color:"#fff",width:24}})})})}),at=(0,n.memo)(function(tt){var $e=tt.selectedTool,Ge=tt.isAIAnnotationActive,cn=tt.onChangeSelectedTool,qt=tt.onActiveAIAnnotation,Fn=tt.undo,tr=tt.redo,Rn=tt.repeatPrevious,nr=tt.deleteAll,Ur=(0,G.bU)(),lr=Ur.localeText,Vn=[{key:m.ru.Drag,name:lr("DDSAnnotator.toolbar.drag"),shortcut:Ze[xe.DragTool],icon:(0,y.jsx)(Ie.Z,{component:bt}),description:lr("DDSAnnotator.toolbar.drag.desc")},{key:m.ru.Rectangle,name:lr("DDSAnnotator.toolbar.rectangle"),shortcut:Ze[xe.RectangleTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Rectangle]}),description:lr("DDSAnnotator.toolbar.rectangle.desc")},{key:m.ru.Polygon,name:lr("DDSAnnotator.toolbar.polygon"),shortcut:Ze[xe.PolygonTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Polygon]}),description:lr("DDSAnnotator.toolbar.polygon.desc")},{key:m.ru.Skeleton,name:lr("DDSAnnotator.toolbar.skeleton"),shortcut:Ze[xe.SkeletonTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Skeleton]}),description:lr("DDSAnnotator.toolbar.skeleton.desc")},{key:m.ru.Mask,name:lr("DDSAnnotator.toolbar.mask"),shortcut:Ze[xe.MaskTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Mask]}),description:lr("DDSAnnotator.toolbar.mask.desc")}],Un=[{key:m.Uu.SmartAnnotation,name:lr("DDSAnnotator.toolbar.aiAnno"),shortcut:Ze[xe.SmartAnnotation],icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.SmartAnnotation]}),description:lr("DDSAnnotator.toolbar.aiAnno.desc")}],wa=[{key:m.Uu.Undo,name:lr("DDSAnnotator.toolbar.undo"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.Undo]}),shortcut:Ze[xe.Undo],handler:Fn,description:lr("DDSAnnotator.toolbar.undo.desc")},{key:m.Uu.Redo,name:lr("DDSAnnotator.toolbar.redo"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.Redo]}),shortcut:Ze[xe.Redo],handler:tr,description:lr("DDSAnnotator.toolbar.redo.desc")},{key:m.Uu.RepeatPrevious,name:lr("DDSAnnotator.toolbar.repeatPrevious"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.RepeatPrevious]}),shortcut:Ze[xe.RepeatPrevious],handler:Rn,description:lr("DDSAnnotator.toolbar.repeatPrevious.desc")},{key:m.Uu.DeleteAll,name:lr("DDSAnnotator.toolbar.deleteAll"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.DeleteAll]}),shortcut:Ze[xe.DeleteAll],handler:nr,description:lr("DDSAnnotator.toolbar.deleteAll.desc")}],ya=(0,n.useMemo)(function(){return Vn.reduce(function(rt,Rt){return rt.concat(Rt.shortcut.shortcut)},[])},[Vn]),Qt=(0,n.useMemo)(function(){return Un.reduce(function(rt,Rt){return rt.concat(Rt.shortcut.shortcut)},[])},[wa]);(0,he.Z)(ya,function(rt){var Rt=Vn.find(function(Ut){return Ut.shortcut.shortcut.includes(rt.key)});Rt&&cn(Rt.key)},{exactMatch:!0}),(0,he.Z)(Qt,function(rt){var Rt=Un.find(function(Ut){return Ut.shortcut.shortcut.includes(rt.key)});Rt&&qt(!Ge)},{exactMatch:!0}),(0,he.Z)(Ze[xe.Undo].shortcut,function(rt){rt.preventDefault(),Fn()},{exactMatch:!0}),(0,he.Z)(Ze[xe.Redo].shortcut,function(rt){rt.preventDefault(),tr()},{exactMatch:!0}),(0,he.Z)(Ze[xe.RepeatPrevious].shortcut,function(rt){rt.preventDefault(),Rn()},{exactMatch:!0}),(0,he.Z)(Ze[xe.DeleteAll].shortcut,function(rt){rt.preventDefault(),nr()},{exactMatch:!0});var Ne=function(Rt){var Ut=Mn(Rt.shortcut.shortcut,!1);return(0,y.jsxs)("div",{className:"dds-annotator-maintoolbar-popover",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"popover-title",children:Rt.name}),(0,y.jsx)("span",{className:"popover-key",children:Ut})]}),(0,y.jsx)("div",{className:"popover-divider"}),(0,y.jsx)("div",{className:"popover-description",children:Rt.description})]})};return(0,y.jsx)(wt,{children:(0,y.jsxs)("div",{className:"dds-annotator-maintoolbar",children:[Vn.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Ne(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn",{"maintoolbar-btn-active":$e===rt.key}),icon:rt.icon,onClick:function(){return cn(rt.key)}})},rt.key)}),(0,y.jsx)("div",{className:"maintoolbar-divider"}),Un.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Ne(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn",{"maintoolbar-btn-active":Ge}),icon:rt.icon,onClick:function(){return qt(!Ge)}})},rt.key)}),(0,y.jsx)("div",{className:"maintoolbar-divider"}),wa.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Ne(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn"),icon:rt.icon,onClick:rt.handler})},rt.key)})]})})}),Vt=e(52495),rn=e(38875),st=e(59504),ut=e(18624),$t=e(94706),nt=e(57414),gt=e(12673),Dt=e(21149),xn=(0,n.memo)(function(tt){var $e=tt.onAdd,Ge=(0,G.bU)(),cn=Ge.localeText,qt=(0,n.useRef)(null),Fn=(0,n.useState)(""),tr=s()(Fn,2),Rn=tr[0],nr=tr[1],Ur=function(Un){Un.stopPropagation(),nr(Un.target.value)},lr=function(){var Un;Rn!==""&&($e(Rn),nr(""),(Un=qt.current)===null||Un===void 0||Un.focus())};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.Z,{style:{margin:"8px 0"}}),(0,y.jsxs)(nt.Z,{style:{padding:"0 8px 4px"},children:[(0,y.jsx)(Dt.Z,{placeholder:cn("DDSAnnotator.annotsEditor.addCategory"),ref:qt,value:Rn,onChange:Ur,onKeyDown:function(Un){Un.code==="Enter"&&lr(),Un.stopPropagation()}}),(0,y.jsx)(l.ZP,{type:"text",icon:(0,y.jsx)(gt.Z,{}),onClick:lr,children:cn("DDSAnnotator.annotsEditor.add")})]})]})}),tn=xn,Hn=Object.defineProperty,Nn=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,Or=(tt,$e,Ge)=>$e in tt?Hn(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,ar=(tt,$e)=>{for(var Ge in $e||($e={}))pr.call($e,Ge)&&Or(tt,Ge,$e[Ge]);if(Nn)for(var Ge of Nn($e))gr.call($e,Ge)&&Or(tt,Ge,$e[Ge]);return tt};const mr=tt=>n.createElement("svg",ar({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M23.737 13.118v7.764a6.713 6.713 0 0 1-6.706 6.707 6.713 6.713 0 0 1-6.705-6.707v-7.764a6.713 6.713 0 0 1 6.705-6.707 6.713 6.713 0 0 1 6.706 6.707Zm-.693 3.662H11.018v4.102a6.02 6.02 0 0 0 6.013 6.017 6.02 6.02 0 0 0 6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 0-5.698-6.008v8.977h5.698v-2.969Z",fill:"#fff"}));var ea="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMuNzM3IDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMS02LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMS02LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDEgNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDEgNi43MDYgNi43MDdabS0uNjkzIDMuNjYySDExLjAxOHY0LjEwMmE2LjAyIDYuMDIgMCAwIDAgNi4wMTMgNi4wMTcgNi4wMiA2LjAyIDAgMCAwIDYuMDEzLTYuMDE3VjE2Ljc4Wm0wLTMuNjYyYTYuMDIgNi4wMiAwIDAgMC01LjY5OC02LjAwOHY4Ljk3N2g1LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Lr=Object.defineProperty,Kn=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,on=(tt,$e,Ge)=>$e in tt?Lr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,nn=(tt,$e)=>{for(var Ge in $e||($e={}))zt.call($e,Ge)&&on(tt,Ge,$e[Ge]);if(Kn)for(var Ge of Kn($e))Ft.call($e,Ge)&&on(tt,Ge,$e[Ge]);return tt};const kt=tt=>n.createElement("svg",nn({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M10.263 13.118v7.764a6.713 6.713 0 0 0 6.706 6.707 6.713 6.713 0 0 0 6.705-6.707v-7.764a6.713 6.713 0 0 0-6.705-6.707 6.713 6.713 0 0 0-6.706 6.707Zm.693 3.662h12.026v4.102a6.02 6.02 0 0 1-6.013 6.017 6.02 6.02 0 0 1-6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 1 5.698-6.008v8.977h-5.698v-2.969Z",fill:"#fff"}));var hn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMjYzIDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDAtNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDAtNi43MDYgNi43MDdabS42OTMgMy42NjJoMTIuMDI2djQuMTAyYTYuMDIgNi4wMiAwIDAgMS02LjAxMyA2LjAxNyA2LjAyIDYuMDIgMCAwIDEtNi4wMTMtNi4wMTdWMTYuNzhabTAtMy42NjJhNi4wMiA2LjAyIDAgMCAxIDUuNjk4LTYuMDA4djguOTc3aC01LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",dn=(0,n.memo)(function(tt){var $e,Ge=tt.selectedTool,cn=tt.selectedSubTool,qt=tt.AIAnnotation,Fn=tt.hasPolygonPreds,tr=tt.isBatchEditing,Rn=tt.isCtrlPressed,nr=tt.aiLabels,Ur=tt.categories,lr=tt.naturalSize,Vn=tt.limitConf,Un=tt.setAiLabels,wa=tt.onCreateCategory,ya=tt.onExitAIAnnotation,Qt=tt.onAiAnnotation,Ne=tt.onSaveAIPolygon,rt=tt.onCancelAIPolygon,Rt=tt.onChangeConfidenceRange,Ut=tt.onChangeLimitConf,ln=tt.onAcceptValidObjects,mn=tt.onCancelBatchEdit,Sn=tt.forceChangeTool,un=(0,G.bU)(),$r=un.localeText,Qr=(0,C.x)({predIouThresh:.89,pointsPerSide:32,minMaskRegionArea:300}),Sa=s()(Qr,2),ua=Sa[0],Ia=Sa[1],jo=($e={},de()($e,m.ru.Drag,{name:$r("DDSAnnotator.shortcuts.tools.drag"),icon:bt}),de()($e,m.ru.Rectangle,{name:$r("DDSAnnotator.smart.detection.name"),icon:m.ef[m.gr.Rectangle]}),de()($e,m.ru.Polygon,{name:$r("DDSAnnotator.smart.segmentation.name"),icon:m.ef[m.gr.Polygon]}),de()($e,m.ru.Skeleton,{name:$r("DDSAnnotator.smart.pose.name"),icon:m.ef[m.gr.Skeleton]}),de()($e,m.ru.Mask,{name:$r("DDSAnnotator.smart.mask.name"),icon:m.ef[m.gr.Mask]}),$e),fo=(0,n.useMemo)(function(){if(Ge===m.ru.Rectangle)return Ur==null?void 0:Ur.map(function(Tr){return(0,y.jsx)(st.Z.Option,{value:Tr.name,children:Tr.name},Tr.id)});if(Ge===m.ru.Polygon)return[];if(Ge===m.ru.Skeleton)return["person"].map(function(Tr){return(0,y.jsx)(st.Z.Option,{value:Tr,children:Tr},Tr)})},[Ge,Ur]),Aa=function(Ra){if(Ra.type==="mouseup"&&(Ge===m.ru.Skeleton||Ge===m.ru.Mask&&cn===m.jB.AutoSegmentEverything||Ge===m.ru.Rectangle)){Ra.preventDefault();return}else Ra.stopPropagation()},xa=(0,n.useMemo)(function(){return!(!qt||Ge===m.ru.Drag||Ge===m.ru.Mask&&cn!==m.jB.AutoSegmentEverything||Ge===m.ru.Rectangle&&tr&&Rn)},[Ge,cn,qt,tr,Rn]),oa=function(){ln(),Sn(m.ru.Drag,m.jB.PenAdd)},mo=(0,n.useMemo)(function(){return tr&&Rn?[{text:$r("DDSAnnotator.smart.tip.recover"),logo:(0,y.jsx)(mr,{})},{text:$r("DDSAnnotator.smart.tip.overlayobject"),logo:(0,y.jsx)(kt,{})}]:[]},[tr,Rn]),Sr=(0,n.useMemo)(function(){return lr.width*lr.height},[lr]);return(0,y.jsxs)(wt,{eventHandler:Aa,children:[mo.length>0&&(0,y.jsx)("div",{className:"dds-annotator-operation-tip",children:mo.map(function(Tr){return(0,y.jsxs)("div",{className:"dds-annotator-operation-tip-item",children:[(0,y.jsx)("span",{children:Tr.text}),Tr.logo]},Tr.text)})}),(0,y.jsx)(ut.Z,{id:"smart-annotation-editor",className:S()("dds-annotator-smart-container",{"dds-annotator-smart-container-visible":xa}),title:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-title",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-title-icon",children:[(0,y.jsx)(rn.Z,{component:m.QD[m.Uu.SmartAnnotation]}),(0,y.jsx)("div",{children:jo[Ge].name})]}),(0,y.jsx)(l.ZP,{ghost:!0,className:"dds-annotator-smart-container-btn",icon:(0,y.jsx)(Vt.Z,{}),shape:"circle",size:"small",onClick:function(){ya(),Sn(Ge,m.jB.PenAdd)}})]}),children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content",children:[Ge===m.ru.Rectangle&&(tr?(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:[$r("DDSAnnotator.smart.detection.confidence"),":"]}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",defaultValue:Vn,min:0,max:1,step:.01,onAfterChange:Ut,railStyle:{background:"#99bdff"},trackStyle:{background:"#edf0f3"}})]})}),(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,y.jsxs)("span",{children:[$r("DDSAnnotator.smart.tip"),": "]}),$r("DDSAnnotator.smart.tip.ctrl")]}),(0,y.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,y.jsx)(l.ZP,{style:{marginRight:"10px"},onClick:mn,children:$r("DDSAnnotator.smart.back")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:ln,children:$r("DDSAnnotator.save")})]})]}):(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-item",children:[(0,y.jsx)(st.Z,{style:{width:250},placeholder:$r("DDSAnnotator.smart.detection.input"),showArrow:!0,value:nr,onChange:function(Ra){return Array.isArray(Ra)?Un(Ra):Un([Ra])},onInputKeyDown:function(Ra){Ra.code!=="Enter"&&Ra.stopPropagation()},getPopupContainer:function(){return document.getElementById("smart-annotation-editor")},mode:"multiple",dropdownRender:function(Ra){return(0,y.jsxs)(y.Fragment,{children:[Ra,(0,y.jsx)(tn,{onAdd:function(Xr){wa(Xr),Un([].concat(t()(nr),[Xr]))}})]})},children:fo}),(0,y.jsx)(l.ZP,{type:"primary",onClick:function(){return Qt({aiLabels:nr})},children:$r("DDSAnnotator.smart.annotate")})]})),Ge===m.ru.Skeleton&&(tr?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:$r("DDSAnnotator.confidence")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",range:!0,defaultValue:[0,100],onAfterChange:function(Ra){return Rt([Ra[0]/100,Ra[1]/100])},tooltip:{formatter:function(Ra){return(0,y.jsx)(y.Fragment,{children:"".concat(Ra/100)})},getPopupContainer:function(){return document.getElementById("conf-slider")}}})]})}),(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:ln,children:$r("DDSAnnotator.save")})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:$r("DDSAnnotator.smart.modelTyle")}),(0,y.jsx)(st.Z,{className:"dds-annotator-smart-container-content-param-item-select",placeholder:$r("DDSAnnotator.smart.pose.input"),showArrow:!0,value:nr,onChange:function(Ra){return Array.isArray(Ra)?Un(Ra):Un([Ra])},onInputKeyDown:function(Ra){Ra.code!=="Enter"&&Ra.stopPropagation()},getPopupContainer:function(){return document.getElementById("smart-annotation-editor")},children:fo})]})}),(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return Qt({aiLabels:nr})},children:$r("DDSAnnotator.smart.annotate")})]})),Ge===m.ru.Polygon&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-instruction",children:$r(Fn?"DDSAnnotator.smart.segmentation.tipsNext":"DDSAnnotator.smart.segmentation.tipsInitial")}),Fn&&(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-actions",children:[(0,y.jsx)(l.ZP,{danger:!0,onClick:rt,children:$r("DDSAnnotator.delete")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:Ne,children:$r("DDSAnnotator.save")})]})]}),Ge===m.ru.Mask&&cn===m.jB.AutoSegmentEverything&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{id:"param-controls",className:"dds-annotator-smart-container-content-param-controls",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:$r("DDSAnnotator.smart.iouThres")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:1-ua.predIouThresh,onChange:function(Ra){return Ia(function(Wr){Wr.predIouThresh=1-Ra})},min:0,max:.99,step:.01,reverse:!0,tooltip:{formatter:function(Ra){return"".concat(Math.floor((1-Ra)*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]}),(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:$r("DDSAnnotator.smart.minArea")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:ua.minMaskRegionArea/Sr,onChange:function(Ra){return Ia(function(Wr){Wr.minMaskRegionArea=Ra*Sr})},min:.01,max:.3,step:.01,tooltip:{formatter:function(Ra){return"".concat(Math.ceil(Ra*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]})]}),tr?(0,y.jsxs)(nt.Z,{className:"dds-annotator-smart-container-content-actions",style:{justifyContent:"flex-end"},children:[(0,y.jsx)(l.ZP,{onClick:function(){return Qt({segmentEverythingParams:ua})},children:$r("DDSAnnotator.smart.retry")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:oa,children:$r("DDSAnnotator.annotsEditor.finish")})]}):(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return Qt({segmentEverythingParams:ua})},children:$r("DDSAnnotator.smart.annotate")})]})]})})]})}),$n=dn,qn=e(2528),ct=e(98030),lt=Object.defineProperty,xt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,_t=(tt,$e,Ge)=>$e in tt?lt(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Wt=(tt,$e)=>{for(var Ge in $e||($e={}))St.call($e,Ge)&&_t(tt,Ge,$e[Ge]);if(xt)for(var Ge of xt($e))Lt.call($e,Ge)&&_t(tt,Ge,$e[Ge]);return tt};const yn=tt=>n.createElement("svg",Wt({className:"imgSetting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M512 256a42.667 42.667 0 0 0 42.667-42.667V128a42.667 42.667 0 0 0-85.334 0v85.333A42.667 42.667 0 0 0 512 256zm384 213.333h-85.333a42.667 42.667 0 0 0 0 85.334H896a42.667 42.667 0 0 0 0-85.334zM256 512a42.667 42.667 0 0 0-42.667-42.667H128a42.667 42.667 0 0 0 0 85.334h85.333A42.667 42.667 0 0 0 256 512zm9.387-298.667a42.667 42.667 0 0 0-59.307 62.72l61.44 59.307a42.667 42.667 0 0 0 31.147 11.947 42.667 42.667 0 0 0 30.72-13.227 42.667 42.667 0 0 0 0-60.16zm459.946 133.974a42.667 42.667 0 0 0 29.44-11.947l61.44-59.307a42.667 42.667 0 0 0-57.6-62.72l-61.44 60.587a42.667 42.667 0 0 0 0 60.16 42.667 42.667 0 0 0 28.16 13.227zM512 768a42.667 42.667 0 0 0-42.667 42.667V896a42.667 42.667 0 0 0 85.334 0v-85.333A42.667 42.667 0 0 0 512 768zm244.48-79.36a42.667 42.667 0 0 0-59.307 61.44l61.44 60.587a42.667 42.667 0 0 0 29.44 11.946 42.667 42.667 0 0 0 30.72-12.8 42.667 42.667 0 0 0 0-60.586zm-488.96 0-61.44 59.307a42.667 42.667 0 0 0 0 60.586 42.667 42.667 0 0 0 30.72 12.8 42.667 42.667 0 0 0 28.587-10.666l61.44-59.307a42.667 42.667 0 0 0-59.307-61.44zM512 341.333A170.667 170.667 0 1 0 682.667 512 170.667 170.667 0 0 0 512 341.333z",fill:"#fff"}));var kn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMjU2YTQyLjY2NyA0Mi42NjcgMCAwIDAgNDIuNjY3LTQyLjY2N1YxMjhhNDIuNjY3IDQyLjY2NyAwIDAgMC04NS4zMzQgMHY4NS4zMzNBNDIuNjY3IDQyLjY2NyAwIDAgMCA1MTIgMjU2em0zODQgMjEzLjMzM2gtODUuMzMzYTQyLjY2NyA0Mi42NjcgMCAwIDAgMCA4NS4zMzRIODk2YTQyLjY2NyA0Mi42NjcgMCAwIDAgMC04NS4zMzR6TTI1NiA1MTJhNDIuNjY3IDQyLjY2NyAwIDAgMC00Mi42NjctNDIuNjY3SDEyOGE0Mi42NjcgNDIuNjY3IDAgMCAwIDAgODUuMzM0aDg1LjMzM0E0Mi42NjcgNDIuNjY3IDAgMCAwIDI1NiA1MTJ6bTkuMzg3LTI5OC42NjdhNDIuNjY3IDQyLjY2NyAwIDAgMC01OS4zMDcgNjIuNzJsNjEuNDQgNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAgMzEuMTQ3IDExLjk0NyA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEzLjIyNyA0Mi42NjcgNDIuNjY3IDAgMCAwIDAtNjAuMTZ6bTQ1OS45NDYgMTMzLjk3NGE0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0LTExLjk0N2w2MS40NC01OS4zMDdhNDIuNjY3IDQyLjY2NyAwIDAgMC01Ny42LTYyLjcybC02MS40NCA2MC41ODdhNDIuNjY3IDQyLjY2NyAwIDAgMCAwIDYwLjE2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMjguMTYgMTMuMjI3ek01MTIgNzY4YTQyLjY2NyA0Mi42NjcgMCAwIDAtNDIuNjY3IDQyLjY2N1Y4OTZhNDIuNjY3IDQyLjY2NyAwIDAgMCA4NS4zMzQgMHYtODUuMzMzQTQyLjY2NyA0Mi42NjcgMCAwIDAgNTEyIDc2OHptMjQ0LjQ4LTc5LjM2YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3IDYxLjQ0bDYxLjQ0IDYwLjU4N2E0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0IDExLjk0NiA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEyLjggNDIuNjY3IDQyLjY2NyAwIDAgMCAwLTYwLjU4NnptLTQ4OC45NiAwLTYxLjQ0IDU5LjMwN2E0Mi42NjcgNDIuNjY3IDAgMCAwIDAgNjAuNTg2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMzAuNzIgMTIuOCA0Mi42NjcgNDIuNjY3IDAgMCAwIDI4LjU4Ny0xMC42NjZsNjEuNDQtNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3LTYxLjQ0ek01MTIgMzQxLjMzM0ExNzAuNjY3IDE3MC42NjcgMCAxIDAgNjgyLjY2NyA1MTIgMTcwLjY2NyAxNzAuNjY3IDAgMCAwIDUxMiAzNDEuMzMzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",hr=Object.defineProperty,cr=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,or=(tt,$e,Ge)=>$e in tt?hr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Gr=(tt,$e)=>{for(var Ge in $e||($e={}))Dn.call($e,Ge)&&or(tt,Ge,$e[Ge]);if(cr)for(var Ge of cr($e))Rr.call($e,Ge)&&or(tt,Ge,$e[Ge]);return tt};const Ir=tt=>n.createElement("svg",Gr({className:"palette_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M512 102.39c-226.202 0-409.6 183.367-409.6 409.6S285.798 921.62 512 921.62a408.556 408.556 0 0 0 156.672-31.2 68.332 68.332 0 0 0 22.16-111.402l-48.057-48.056a68.28 68.28 0 0 1 48.261-116.542l162.304-.04a68.26 68.26 0 0 0 68.27-68.26v-34.13c-.01-226.243-183.378-409.6-409.61-409.6zm341.33 443.73-162.304.03c-75.305 0-136.53 61.225-136.53 136.53 0 36.485 14.203 70.738 39.997 96.543l48.067 48.056a338.166 338.166 0 0 1-130.57 26.082c-188.201 0-341.33-153.14-341.33-341.371S323.799 170.65 512 170.65s341.33 153.098 341.33 341.33v34.14z",fill:"#fff"}),n.createElement("path",{d:"M443.73 307.19a68.27 68.27 0 1 0 136.54 0 68.27 68.27 0 1 0-136.54 0ZM300.503 555.254a68.198 68.198 0 0 1 93.225 24.996 68.3 68.3 0 0 1-24.934 93.266 68.352 68.352 0 0 1-93.297-24.996 68.321 68.321 0 0 1 25.006-93.266zM621.056 409.59a68.29 68.29 0 1 0 136.581 0 68.29 68.29 0 1 0-136.581 0ZM300.503 468.716a68.26 68.26 0 0 1-24.965-93.266 68.25 68.25 0 1 1 118.2 68.239 68.27 68.27 0 0 1-93.235 25.027z",fill:"#fff"}));var jn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMTAyLjM5Yy0yMjYuMjAyIDAtNDA5LjYgMTgzLjM2Ny00MDkuNiA0MDkuNlMyODUuNzk4IDkyMS42MiA1MTIgOTIxLjYyYTQwOC41NTYgNDA4LjU1NiAwIDAgMCAxNTYuNjcyLTMxLjIgNjguMzMyIDY4LjMzMiAwIDAgMCAyMi4xNi0xMTEuNDAybC00OC4wNTctNDguMDU2YTY4LjI4IDY4LjI4IDAgMCAxIDQ4LjI2MS0xMTYuNTQybDE2Mi4zMDQtLjA0YTY4LjI2IDY4LjI2IDAgMCAwIDY4LjI3LTY4LjI2di0zNC4xM2MtLjAxLTIyNi4yNDMtMTgzLjM3OC00MDkuNi00MDkuNjEtNDA5LjZ6bTM0MS4zMyA0NDMuNzMtMTYyLjMwNC4wM2MtNzUuMzA1IDAtMTM2LjUzIDYxLjIyNS0xMzYuNTMgMTM2LjUzIDAgMzYuNDg1IDE0LjIwMyA3MC43MzggMzkuOTk3IDk2LjU0M2w0OC4wNjcgNDguMDU2YTMzOC4xNjYgMzM4LjE2NiAwIDAgMS0xMzAuNTcgMjYuMDgyYy0xODguMjAxIDAtMzQxLjMzLTE1My4xNC0zNDEuMzMtMzQxLjM3MVMzMjMuNzk5IDE3MC42NSA1MTIgMTcwLjY1czM0MS4zMyAxNTMuMDk4IDM0MS4zMyAzNDEuMzN2MzQuMTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTQ0My43MyAzMDcuMTlhNjguMjcgNjguMjcgMCAxIDAgMTM2LjU0IDAgNjguMjcgNjguMjcgMCAxIDAtMTM2LjU0IDBaTTMwMC41MDMgNTU1LjI1NGE2OC4xOTggNjguMTk4IDAgMCAxIDkzLjIyNSAyNC45OTYgNjguMyA2OC4zIDAgMCAxLTI0LjkzNCA5My4yNjYgNjguMzUyIDY4LjM1MiAwIDAgMS05My4yOTctMjQuOTk2IDY4LjMyMSA2OC4zMjEgMCAwIDEgMjUuMDA2LTkzLjI2NnpNNjIxLjA1NiA0MDkuNTlhNjguMjkgNjguMjkgMCAxIDAgMTM2LjU4MSAwIDY4LjI5IDY4LjI5IDAgMSAwLTEzNi41ODEgMFpNMzAwLjUwMyA0NjguNzE2YTY4LjI2IDY4LjI2IDAgMCAxLTI0Ljk2NS05My4yNjYgNjguMjUgNjguMjUgMCAxIDEgMTE4LjIgNjguMjM5IDY4LjI3IDY4LjI3IDAgMCAxLTkzLjIzNSAyNS4wMjd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",vn=Object.defineProperty,Ln=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,Fr=(tt,$e,Ge)=>$e in tt?vn(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Kr=(tt,$e)=>{for(var Ge in $e||($e={}))Zn.call($e,Ge)&&Fr(tt,Ge,$e[Ge]);if(Ln)for(var Ge of Ln($e))yr.call($e,Ge)&&Fr(tt,Ge,$e[Ge]);return tt};const aa=tt=>n.createElement("svg",Kr({className:"displayReset_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},tt),n.createElement("path",{d:"m193.07 70.353 5.423.931a34.91 34.91 0 0 1 28.37 40.425l-.024.07-12.87 72.541A448.698 448.698 0 0 1 507.857 75.38c246.831 0 447.023 197.912 447.023 442.182S754.688 959.744 507.857 959.744c-160.186 0-305.687-84.084-385.466-218.159a37.795 37.795 0 0 1 13.359-51.921 38.167 38.167 0 0 1 52.154 13.289c66.21 111.243 186.903 180.992 319.953 180.992 204.87 0 370.851-164.096 370.851-366.383S712.728 151.18 507.858 151.18c-107.288 0-206.802 45.265-276.318 121.995H373.04a34.91 34.91 0 0 1 0 69.818H163.584c-2.607 0-5.19-.279-7.657-.837a34.63 34.63 0 0 1-5.26-.512l-5.422-.931a34.91 34.91 0 0 1-28.346-40.495l35.77-201.588a34.91 34.91 0 0 1 40.402-28.277z",fill:"#fff"}));var Jr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0ibTE5My4wNyA3MC4zNTMgNS40MjMuOTMxYTM0LjkxIDM0LjkxIDAgMCAxIDI4LjM3IDQwLjQyNWwtLjAyNC4wNy0xMi44NyA3Mi41NDFBNDQ4LjY5OCA0NDguNjk4IDAgMCAxIDUwNy44NTcgNzUuMzhjMjQ2LjgzMSAwIDQ0Ny4wMjMgMTk3LjkxMiA0NDcuMDIzIDQ0Mi4xODJTNzU0LjY4OCA5NTkuNzQ0IDUwNy44NTcgOTU5Ljc0NGMtMTYwLjE4NiAwLTMwNS42ODctODQuMDg0LTM4NS40NjYtMjE4LjE1OWEzNy43OTUgMzcuNzk1IDAgMCAxIDEzLjM1OS01MS45MjEgMzguMTY3IDM4LjE2NyAwIDAgMSA1Mi4xNTQgMTMuMjg5YzY2LjIxIDExMS4yNDMgMTg2LjkwMyAxODAuOTkyIDMxOS45NTMgMTgwLjk5MiAyMDQuODcgMCAzNzAuODUxLTE2NC4wOTYgMzcwLjg1MS0zNjYuMzgzUzcxMi43MjggMTUxLjE4IDUwNy44NTggMTUxLjE4Yy0xMDcuMjg4IDAtMjA2LjgwMiA0NS4yNjUtMjc2LjMxOCAxMjEuOTk1SDM3My4wNGEzNC45MSAzNC45MSAwIDAgMSAwIDY5LjgxOEgxNjMuNTg0Yy0yLjYwNyAwLTUuMTktLjI3OS03LjY1Ny0uODM3YTM0LjYzIDM0LjYzIDAgMCAxLTUuMjYtLjUxMmwtNS40MjItLjkzMWEzNC45MSAzNC45MSAwIDAgMS0yOC4zNDYtNDAuNDk1bDM1Ljc3LTIwMS41ODhhMzQuOTEgMzQuOTEgMCAwIDEgNDAuNDAyLTI4LjI3N3oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",Zr=Object.defineProperty,Ca=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,In=(tt,$e,Ge)=>$e in tt?Zr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Yn=(tt,$e)=>{for(var Ge in $e||($e={}))la.call($e,Ge)&&In(tt,Ge,$e[Ge]);if(Ca)for(var Ge of Ca($e))Tn.call($e,Ge)&&In(tt,Ge,$e[Ge]);return tt};const Nr=tt=>n.createElement("svg",Yn({className:"zoomResize_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},tt),n.createElement("path",{d:"M981.333 42.667v938.666H42.667V42.667h938.666zM128 896h768V128H128v768zm170.667-170.667H448v85.334H213.333V576h85.334v149.333zm426.666-426.666H576v-85.334h234.667V448h-85.334V298.667z",fill:"#fff"}));var zr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk4MS4zMzMgNDIuNjY3djkzOC42NjZINDIuNjY3VjQyLjY2N2g5MzguNjY2ek0xMjggODk2aDc2OFYxMjhIMTI4djc2OHptMTcwLjY2Ny0xNzAuNjY3SDQ0OHY4NS4zMzRIMjEzLjMzM1Y1NzZoODUuMzM0djE0OS4zMzN6bTQyNi42NjYtNDI2LjY2Nkg1NzZ2LTg1LjMzNGgyMzQuNjY3VjQ0OGgtODUuMzM0VjI5OC42Njd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",Br=(0,n.memo)(function(tt){var $e=tt.scale,Ge=tt.displayOption,cn=tt.colorByCategory,qt=tt.onZoomIn,Fn=tt.onZoomOut,tr=tt.onReset,Rn=tt.onChangeImageDisplayOpts,nr=tt.onChangeAnnotsDisplayOpts,Ur=(0,G.bU)(),lr=Ur.localeText,Vn=$e>=m.Fv,Un=$e<=m.vL;(0,he.Z)(Ze[xe.ZoomIn].shortcut,function(){Vn||qt()}),(0,he.Z)(Ze[xe.ZoomOut].shortcut,function(){Un||Fn()}),(0,he.Z)(Ze[xe.Reset].shortcut,function(){tr()});var wa=(0,n.useMemo)(function(){return(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container",children:[(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-header",children:[(0,y.jsx)("div",{children:lr("DDSAnnotator.imgDisplayTool.title")}),(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-pop-container-btn",icon:(0,y.jsx)(Ie.Z,{component:aa}),onClick:function(){return Rn(k.O4)}})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:lr("DDSAnnotator.imgDisplayTool.brightness")}),(0,y.jsx)($t.Z,{value:Ge.brightness,onChange:function(rt){return Rn(T()(T()({},Ge),{},{brightness:rt}))},min:0,max:200})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:lr("DDSAnnotator.imgDisplayTool.contrast")}),(0,y.jsx)($t.Z,{value:Ge.contrast,onChange:function(rt){return Rn(T()(T()({},Ge),{},{contrast:rt}))},min:0,max:200})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:lr("DDSAnnotator.imgDisplayTool.saturate")}),(0,y.jsx)($t.Z,{value:Ge.saturate,onChange:function(rt){return Rn(T()(T()({},Ge),{},{saturate:rt}))},min:0,max:200})]})]})},[Ge.brightness,Ge.contrast,Ge.saturate,Rn,nr]),ya=function(rt){rt.type!=="mouseup"&&rt.stopPropagation()},Qt=function(){nr({colorByCategory:!cn})};return(0,y.jsx)(wt,{eventHandler:ya,children:(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar",children:[(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-disabled":Un}),icon:(0,y.jsx)(qn.Z,{}),onClick:Fn}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-scale-text",children:[Math.floor($e*100),"%"]}),(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-disabled":Vn}),icon:(0,y.jsx)(ct.Z,{}),onClick:qt}),(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-btn",onClick:tr,icon:(0,y.jsx)(Ie.Z,{component:Nr})}),(0,y.jsx)(De.Z,{placement:"top",content:wa,trigger:"click",overlayClassName:"dds-annotator-scaletoolbar-popover",color:"#212121",children:(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-btn",icon:(0,y.jsx)(Ie.Z,{component:yn})})}),(0,y.jsx)(De.Z,{placement:"top",content:(0,y.jsx)("span",{style:{color:"#fff"},children:lr("DDSAnnotator.colorMode")}),trigger:"hover",color:"#212121",children:(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-active":!cn}),icon:(0,y.jsx)(Ie.Z,{component:Ir}),onClick:Qt})})]})})}),Ma=e(92183),uo=e(99142),to=e(91169),Io=function($e,Ge){return $e.current===Ge.current&&$e.total===Ge.total&&$e.customText===Ge.customText&&$e.customDisableNext===Ge.customDisableNext},ja=(0,n.memo)(function(tt){var $e=tt.current,Ge=tt.total,cn=tt.customText,qt=tt.customDisableNext,Fn=tt.onPrev,tr=Fn===void 0?function(){return Promise.resolve()}:Fn,Rn=tt.onNext,nr=Rn===void 0?function(){return Promise.resolve()}:Rn,Ur=(0,G.bU)(),lr=Ur.localeText,Vn=(0,n.useState)(!1),Un=s()(Vn,2),wa=Un[0],ya=Un[1],Qt=(0,n.useState)(!1),Ne=s()(Qt,2),rt=Ne[0],Rt=Ne[1],Ut=function(){var un=B()(I()().mark(function $r(){return I()().wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return ya(!0),Sa.next=3,tr();case 3:ya(!1);case 4:case"end":return Sa.stop()}},$r)}));return function(){return un.apply(this,arguments)}}(),ln=function(){var un=B()(I()().mark(function $r(){return I()().wrap(function(Sa){for(;;)switch(Sa.prev=Sa.next){case 0:return Rt(!0),Sa.next=3,nr();case 3:Rt(!1);case 4:case"end":return Sa.stop()}},$r)}));return function(){return un.apply(this,arguments)}}(),mn=$e<=0,Sn=qt!=null?qt:$e>=Ge-1;return(0,he.Z)(Ze[xe.PreviousImage].shortcut,function(){mn||Ut()},{exactMatch:!0}),(0,he.Z)(Ze[xe.NextImage].shortcut,function(){Sn||ln()},{exactMatch:!0}),(0,y.jsxs)("div",{className:"dds-annotator-toppagination",children:[(0,y.jsx)(w.Z,{title:lr("DDSAnnotator.prev"),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":mn}),type:"primary",icon:(0,y.jsx)(uo.Z,{}),loading:wa,onClick:Ut})}),cn||(0,y.jsxs)("div",{className:"dds-annotator-toppagination-scale-text",children:[$e+1," / ",Ge]}),(0,y.jsx)(w.Z,{title:lr("DDSAnnotator.next"),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":Sn}),type:"primary",icon:(0,y.jsx)(to.Z,{}),loading:rt,onClick:ln})})]})},Io),Ua=(0,n.memo)(function(tt){var $e=tt.hideTitle,Ge=tt.allowAddCategory,cn=tt.latestLabel,qt=tt.categories,Fn=tt.currEditObject,tr=tt.onCreateCategory,Rn=tt.onFinishCurrCreate,nr=tt.onDeleteCurrObject,Ur=tt.onCloseAnnotationEditor,lr=(0,G.bU)(),Vn=lr.localeText,Un=(Fn==null?void 0:Fn.label)||cn,wa=(0,n.useState)(Un),ya=s()(wa,2),Qt=ya[0],Ne=ya[1];return(0,n.useEffect)(function(){Ne((Fn==null?void 0:Fn.label)||cn)},[Fn]),(0,he.Z)(Ze[xe.SaveCurrObject].shortcut,function(rt){Fn&&(rt.preventDefault(),Rn(Qt))},{exactMatch:!0}),(0,y.jsx)(wt,{children:(0,y.jsx)(ut.Z,{id:"annotation-editor",className:S()("dds-annotator-anno-editor",{"dds-annotator-anno-editor-visible":Fn}),title:$e?null:(0,y.jsxs)("div",{className:"title",children:[Vn("DDSAnnotator.annotsEditor.title"),(0,y.jsx)(l.ZP,{ghost:!0,className:"btn",icon:(0,y.jsx)(Vt.Z,{}),shape:"circle",size:"small",onClick:Ur})]}),children:(0,y.jsxs)("div",{className:"content",children:[(0,y.jsx)("div",{className:"item",children:(0,y.jsx)(st.Z,{showSearch:!0,className:"selector",placeholder:"Select a label",size:"middle",value:Qt||void 0,onChange:function(Rt){Ne(Rt)},popupClassName:"objects-select-popup",onClick:function(Rt){return Rt.stopPropagation()},onKeyUp:function(Rt){return Rt.stopPropagation()},onInputKeyDown:function(Rt){Rt.code!=="Enter"&&Rt.stopPropagation()},getPopupContainer:function(){return document.getElementById("annotation-editor")},dropdownRender:function(Rt){return(0,y.jsxs)(y.Fragment,{children:[Rt,Ge&&(0,y.jsx)(tn,{onAdd:tr})]})},children:qt==null?void 0:qt.map(function(rt){return(0,y.jsx)(st.Z.Option,{value:rt.name,children:rt.name},rt.id)})})}),(0,y.jsx)("div",{className:"item",children:(0,y.jsxs)("div",{className:"actions",children:[(0,y.jsx)(l.ZP,{danger:!0,onClick:function(Rt){Rt.preventDefault(),nr()},children:Vn("DDSAnnotator.annotsEditor.delete")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:function(Rt){Rt.preventDefault(),Rn(Qt)},children:Vn("DDSAnnotator.annotsEditor.finish")})]})})]})})})}),qa=function($e){var Ge=$e.clientSize,cn=$e.naturalSize,qt=$e.onAutoSave,Fn=$e.setDrawData,tr=(0,C.x)([]),Rn=s()(tr,2),nr=Rn[0],Ur=Rn[1],lr=(0,n.useState)(0),Vn=s()(lr,2),Un=Vn[0],wa=Vn[1],ya=20,Qt=function(Sn){var un=(0,K.j9)(Sn.drawData.objectList,cn,Sn.clientSize,!0);qt&&qt(un,cn)},Ne=(0,n.useCallback)(function(){if(Un>0){wa(function(un){return un-1});var mn=nr[Un-1],Sn=(0,K.hv)(mn.drawData,mn.clientSize,Ge);Fn(Sn),Qt(mn)}},[Un,nr,Ge.width,Ge.height]),rt=(0,n.useCallback)(function(){if(Unya&&un.shift(),wa(un.length-1)}),Qt(Sn)},Ut=(0,n.useCallback)(function(){Ur([])},[]),ln=function(Sn){typeof Sn=="function"?Fn(function(un){Sn(un),Rt((0,z.cloneDeep)({drawData:un,clientSize:Ge}))}):(Fn(Sn),Rt((0,z.cloneDeep)({drawData:Sn,clientSize:Ge})))};return{updateHistory:Rt,undo:Ne,redo:rt,clearHistory:Ut,setDrawDataWithHistory:ln,hadChangeRecord:nr.length>1&&Un!==0}},Fo=qa,Lo=e(14464),Bo=function($e){var Ge=$e.mode,cn=$e.drawData,qt=$e.setDrawData,Fn=$e.setDrawDataWithHistory,tr=$e.setEditState,Rn=$e.clientSize,nr=$e.naturalSize,Ur=$e.editState,lr=$e.displayAnnotationType,Vn=function(mn,Sn){var un=mn.categoryName,$r=mn.boundingBox,Qr=mn.points,Sa=mn.lines,ua=mn.pointNames,Ia=mn.pointColors,jo=mn.segmentation,fo=mn.mask,Aa=mn.alpha,xa=Ur.annotsDisplayOptions.colorByCategory?Sn[un||""]||"#ffffff":(0,Lo.$P)(),oa={label:un||"",type:m.gr.Rectangle,hidden:!1,conf:mn.conf||1,labelId:mn.labelId,compareResult:mn.compareResult,status:k.TK.Commited,color:xa};if($r){var mo=(0,K.cO)($r,Rn);Object.assign(oa,{rect:T()({visible:!0},mo)})}if(Qr&&Qr.length>0&&Sa&&Sa.length>0&&ua&&Ia){var Sr=(0,K.el)(Qr,ua,Ia,nr,Rn);Object.assign(oa,{keypoints:{points:Sr,lines:Sa}})}if(jo){var Tr=(0,K.Vh)(jo,nr,Rn),Ra={group:Tr,visible:!0};Object.assign(oa,{polygon:Ra})}if(fo&&fo.length&&Object.assign(oa,{maskRle:fo,maskCanvasElement:(0,Y.ei)(fo,nr,xa)}),Aa){var Wr=new Image;Wr.src=Aa,Object.assign(oa,{alpha:Aa,alphaImageElement:Wr})}return oa.type=(0,K.tQ)(oa,lr),oa},Un=function(mn,Sn){Fn(function(un){un.objectList=mn.map(function($r){return Vn($r,Sn)}).filter(function($r){return $r.type!==m.gr.Custom})})},wa=function(mn,Sn){Ge===k.je.Edit&&Fn(function(un){un.objectList.push(mn),un.creatingObject=T()({},mn),un.activeObjectIndex=Sn?-1:un.objectList.length-1})},ya=(0,n.useCallback)(function(ln){Ge!==k.je.Edit||!cn.objectList[ln]||(Fn(function(mn){mn.objectList[ln]&&(mn.objectList.splice(ln,1),mn.activeObjectIndex=-1,mn.creatingObject=void 0)}),tr(function(mn){mn.focusObjectIndex=-1,mn.focusEleIndex=-1,mn.focusEleType=m.Yq.Rect}))},[Ge,cn.objectList]),Qt=(0,n.useCallback)(function(){Ge===k.je.Edit&&(Fn(function(ln){ln.objectList=[],ln.creatingObject=void 0,ln.prompt={}}),tr(function(ln){ln.focusObjectIndex=-1,ln.focusEleIndex=-1,ln.focusEleType=m.Yq.Rect}))},[Ge]),Ne=function(mn,Sn){Ge!==k.je.Edit||!cn.objectList[Sn]||Fn(function(un){un.objectList[Sn]=mn,un.creatingObject&&un.activeObjectIndex===Sn&&(un.creatingObject=T()({},mn))})},rt=function(mn){Fn(function(Sn){Sn.objectList=mn,Sn.creatingObject&&Sn.objectList[Sn.activeObjectIndex]&&(Sn.creatingObject=T()({},Sn.objectList[Sn.activeObjectIndex]))})},Rt=function(mn,Sn){cn.objectList[Sn]&&qt(function(un){un.objectList[Sn]=mn,un.creatingObject&&un.activeObjectIndex===Sn&&(un.creatingObject=T()({},mn))})},Ut=function(mn){qt(function(Sn){Sn.objectList=mn,Sn.creatingObject&&Sn.objectList[Sn.activeObjectIndex]&&(Sn.creatingObject=T()({},Sn.objectList[Sn.activeObjectIndex]))})};return{initObjectList:Un,addObject:wa,removeObject:ya,removeAllObjects:Qt,updateObject:Ne,updateAllObject:rt,updateObjectWithoutHistory:Rt,updateAllObjectWithoutHistory:Ut}},ot=Bo,yt=e(95073),be=e(43112),Bt=e(5397),Jt=e(21325),Xn=e(68716),Gn={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},br=function(tt){var $e=(0,be.CR)((0,Bt.Z)(Gn),2),Ge=$e[0],cn=$e[1];return(0,Jt.Z)("mousemove",function(qt){var Fn=qt.screenX,tr=qt.screenY,Rn=qt.clientX,nr=qt.clientY,Ur=qt.pageX,lr=qt.pageY,Vn={screenX:Fn,screenY:tr,clientX:Rn,clientY:nr,pageX:Ur,pageY:lr,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Un=(0,Xn.n)(tt);if(Un){var wa=Un.getBoundingClientRect(),ya=wa.left,Qt=wa.top,Ne=wa.width,rt=wa.height;Vn.elementPosX=ya+window.pageXOffset,Vn.elementPosY=Qt+window.pageYOffset,Vn.elementX=Ur-Vn.elementPosX,Vn.elementY=lr-Vn.elementPosY,Vn.elementW=Ne,Vn.elementH=rt}cn(Vn)},{target:function(){return document}}),Ge},ta=e(41260);function ka(tt){var $e=tt.isRequiring,Ge=tt.visible,cn=tt.minPadding,qt=cn===void 0?{top:0,left:0}:cn,Fn=tt.allowMove,tr=tt.showReferenceLine,Rn=tt.isCustomCursorActive,nr=tt.cursorSize,Ur=tt.onClickMaskBg,lr=(0,n.useRef)(null),Vn=(0,yt.Z)(function(){return lr.current}),Un=br(function(){return lr.current}),wa=(0,n.useState)({width:0,height:0}),ya=s()(wa,2),Qt=ya[0],Ne=ya[1],rt=(0,C.x)({width:Qt.width,height:Qt.height,scale:1}),Rt=s()(rt,2),Ut=Rt[0],ln=Rt[1],mn=(0,n.useRef)({x:0,y:0}),Sn=(0,n.useRef)(void 0),un=(0,n.useMemo)(function(){return T()(T()({},Un),{},{elementW:Ut.width,elementH:Ut.height,elementX:Un.elementX-mn.current.x,elementY:Un.elementY-mn.current.y})},[Un,Ut]),$r=(0,C.x)(null),Qr=s()($r,2),Sa=Qr[0],ua=Qr[1],Ia=function(so){if(so&&Vn){var Ba=Vn.width,pa=Vn.height,no=(0,K.t9)(so.width,so.height,Ba-qt.left*2,pa-qt.top*2),Ha=s()(no,3),Ao=Ha[0],oo=Ha[1],Oa=Ha[2];mn.current={x:(Ba-Ao)*.5,y:(pa-oo)*.5},ln({scale:Oa,width:so.width*Oa,height:so.height*Oa}),Sn.current=void 0}};(0,n.useEffect)(function(){Ia(Qt)},[Qt,Vn]);var jo=function(){if(Vn){var so=Vn==null?void 0:Vn.width,Ba=Vn==null?void 0:Vn.height,pa=.5,no=.5,Ha=so/2,Ao=Ba/2;Sn.current&&(pa=Sn.current.posRatioX,no=Sn.current.posRatioY,Ha=Sn.current.mouseX,Ao=Sn.current.mouseY);var oo=Ha-Ut.width*pa,Oa=Ao-Ut.height*no;mn.current={x:oo,y:Oa}}};(0,n.useEffect)(function(){jo()},[Ut]);var fo=function(so,Ba,pa){!Ge||$e||ln(function(no){var Ha=so?Math.min(m.Fv,(0,ta.O)(no.scale+Ba,2)):Math.max(m.vL,(0,ta.O)(no.scale-Ba,2));if((!Sn.current||Un.elementX!==Sn.current.mouseX||Un.elementY!==Sn.current.mouseY)&&!pa&&!isNaN(un.elementX)&&!isNaN(Un.elementX)&&Ut.width){var Ao={posRatioX:un.elementX/Ut.width,posRatioY:un.elementY/Ut.height,mouseX:Un.elementX,mouseY:Un.elementY};Sn.current=Ao}no.scale=Ha,no.width=Qt.width*Ha,no.height=Qt.height*Ha})},Aa=(0,n.useCallback)(function(){fo(!0,m.yj,!0)},[m.yj,fo]),xa=(0,n.useCallback)(function(){fo(!1,m.yj,!0)},[m.yj,fo]),oa=function(so){if(!(!Ge||$e)){var Ba=so.deltaY;Ba>0?fo(!1,m.oP):Ba<0&&fo(!0,m.oP)}},mo=(0,n.useCallback)(function(){Sn.current=void 0,Ia(Qt)},[Qt.width,Qt.height]);(0,n.useEffect)(function(){Ge||(Ne({width:0,height:0}),ln({scale:1,width:0,height:0}),mn.current={x:0,y:0},Sn.current=void 0)},[Ge]);var Sr=(0,n.useState)(!1),Tr=s()(Sr,2),Ra=Tr[0],Wr=Tr[1];(0,Jt.Z)("mousedown",function(){Wr(!0),!(!Ge||!lr.current)&&ua({x:un.elementX,y:un.elementY})}),(0,Jt.Z)("mousemove",function(){if(Ge&&Sa&&Fn&&Ra){var ma=un.elementX-Sa.x,so=un.elementY-Sa.y,Ba=mn.current,pa=Ba.x,no=Ba.y;mn.current={x:pa+ma,y:no+so}}}),(0,Jt.Z)("mouseup",function(){if(Wr(!1),!(!Ge||!Fn)&&Sa){ua(null);return}}),(0,n.useEffect)(function(){ua(Fn?{x:un.elementX,y:un.elementY}:null)},[Fn]);var Xr=function(so){var Ba=so.target,pa={width:Ba.naturalWidth,height:Ba.naturalHeight};Ne(pa),Ia(pa)},_a=function(so){(0,K.jt)(un)||Ur==null||Ur(so)},za=function(so){var Ba=so.children,pa=so.className;return Ge?(0,y.jsxs)("div",{ref:lr,onWheel:oa,onClick:_a,className:pa,children:[Ba,tr&&!Fn&&(0,K.jt)(un)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:Un.elementX-18,height:1,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.elementPosX,"px, -").concat(window.innerHeight-Un.clientY-1,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",height:1,width:Un.elementW-Un.elementX-18,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.clientX+18,"px, -").concat(window.innerHeight-Un.clientY-1,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:1,height:Un.elementY-18,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.clientX-1,`px, - -`).concat(window.innerHeight-Un.clientY+18,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:1,height:Un.elementH-Un.elementY-18,left:0,bottom:0,transform:"translate(".concat(Un.clientX-1,"px)")}})]}),Rn&&nr>0&&(0,K.jt)(Un)&&(0,K.jt)(un)&&!Fn&&(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"rgba(255, 255, 255, 0.5)",border:"1px solid rgba(255, 255, 255, 0.7)",width:nr*Ut.scale,height:nr*Ut.scale,borderRadius:nr*Ut.scale/2,left:0,top:0,transformOrigin:"top left",transform:"translate(".concat(Un.clientX-nr*Ut.scale/2,"px, ").concat(Un.clientY-nr*Ut.scale/2,"px)")}})]}):null};return{CanvasContainer:za,scale:Ut.scale,containerRef:lr,naturalSize:Qt,clientSize:{width:Ut.width,height:Ut.height},containerSize:Vn,containerMouse:T()(T()({},Un),{},{elementW:(Vn==null?void 0:Vn.width)||Un.elementW,elementH:(Vn==null?void 0:Vn.height)||Un.elementH}),contentMouse:un,imagePos:mn,isMousePress:Ra,onLoadImg:Xr,onZoomIn:Aa,onZoomOut:xa,onWheelMove:oa,onReset:mo}}function kr(tt,$e){var Ge=(0,n.useRef)(),cn=(0,n.useRef)(),qt=typeof $e=="function"?$e(cn.current,tt):!0;qt&&(Ge.current=cn.current,cn.current=tt);var Fn=function(){Ge.current=void 0};return[Ge.current,Fn]}var Dr=Object.defineProperty,wr=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,jr=(tt,$e,Ge)=>$e in tt?Dr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,va=(tt,$e)=>{for(var Ge in $e||($e={}))sr.call($e,Ge)&&jr(tt,Ge,$e[Ge]);if(wr)for(var Ge of wr($e))dr.call($e,Ge)&&jr(tt,Ge,$e[Ge]);return tt};const co=tt=>n.createElement("svg",va({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#pen-add_svg__a)",fill:"#fff"},n.createElement("path",{d:"M16.7 10c0-.1 0-.1.1-.2v-.2c0-.1 0-.1-.1-.1l-3.2-3.2-3.1-3.1v-.1H10.1c-.1.2-.3.3-.6.3-1.7.7-3.4 1.3-5.2 1.9-.1 0-.1.1-.2.1s0 .1 0 .2c-.2.6-.4 1.2-.6 1.9C3 9.2 2.5 11 2 12.7L.3 18.4c-.1.3-.2.7-.3 1l.2-.1L7 12.4l.1-.1V12c-.1-.2-.2-.5-.2-.8 0-.3 0-.6.1-.8.1-.3.3-.5.5-.7.2-.2.4-.3.7-.4H9c.3 0 .5.1.8.3.2.1.4.3.6.6.9-.8 2-1.2 3.3-1.2 1.1 0 2.2.4 3 1Z"}),n.createElement("path",{d:"M8.6 13.2h-.3c-.2-.1-.3-.2-.5-.3L.7 20l4-1.2 5-1.4c-.7-.9-1.2-2-1.2-3.3 0-.3.1-.6.1-.9ZM11.3 2.6 16.7 8l.8.8L20 7.2 12.8 0l-.1.1c-.5.8-1 1.5-1.5 2.2v.2l.1.1c-.1 0-.1 0 0 0ZM16.4 11c-.7-.6-1.7-1.1-2.7-1.1-1.2 0-2.3.5-3 1.3-.4.5-.8 1-.9 1.7-.1.4-.2.7-.2 1.1 0 1.2.5 2.2 1.3 3 .7.7 1.7 1.2 2.9 1.2 2.3 0 4.1-1.9 4.1-4.1-.1-1.2-.7-2.3-1.5-3.1Zm-1.1 4.1h-.7v.8c0 .6-.4 1-1 1s-1-.4-1-1v-.8H12c-.6 0-1-.4-1-1s.4-1 1-1h.6v-.5c0-.6.4-1 1-1s1 .4 1 1v.5h.7c.6 0 1 .4 1 1s-.4 1-1 1Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"pen-add_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var Qa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xNi43IDEwYzAtLjEgMC0uMS4xLS4ydi0uMmMwLS4xIDAtLjEtLjEtLjFsLTMuMi0zLjItMy4xLTMuMXYtLjFIMTAuMWMtLjEuMi0uMy4zLS42LjMtMS43LjctMy40IDEuMy01LjIgMS45LS4xIDAtLjEuMS0uMi4xczAgLjEgMCAuMmMtLjIuNi0uNCAxLjItLjYgMS45QzMgOS4yIDIuNSAxMSAyIDEyLjdMLjMgMTguNGMtLjEuMy0uMi43LS4zIDFsLjItLjFMNyAxMi40bC4xLS4xVjEyYy0uMS0uMi0uMi0uNS0uMi0uOCAwLS4zIDAtLjYuMS0uOC4xLS4zLjMtLjUuNS0uNy4yLS4yLjQtLjMuNy0uNEg5Yy4zIDAgLjUuMS44LjMuMi4xLjQuMy42LjYuOS0uOCAyLTEuMiAzLjMtMS4yIDEuMSAwIDIuMi40IDMgMVoiLz48cGF0aCBkPSJNOC42IDEzLjJoLS4zYy0uMi0uMS0uMy0uMi0uNS0uM0wuNyAyMGw0LTEuMiA1LTEuNGMtLjctLjktMS4yLTItMS4yLTMuMyAwLS4zLjEtLjYuMS0uOVpNMTEuMyAyLjYgMTYuNyA4bC44LjhMMjAgNy4yIDEyLjggMGwtLjEuMWMtLjUuOC0xIDEuNS0xLjUgMi4ydi4ybC4xLjFjLS4xIDAtLjEgMCAwIDBaTTE2LjQgMTFjLS43LS42LTEuNy0xLjEtMi43LTEuMS0xLjIgMC0yLjMuNS0zIDEuMy0uNC41LS44IDEtLjkgMS43LS4xLjQtLjIuNy0uMiAxLjEgMCAxLjIuNSAyLjIgMS4zIDMgLjcuNyAxLjcgMS4yIDIuOSAxLjIgMi4zIDAgNC4xLTEuOSA0LjEtNC4xLS4xLTEuMi0uNy0yLjMtMS41LTMuMVptLTEuMSA0LjFoLS43di44YzAgLjYtLjQgMS0xIDFzLTEtLjQtMS0xdi0uOEgxMmMtLjYgMC0xLS40LTEtMXMuNC0xIDEtMWguNnYtLjVjMC0uNi40LTEgMS0xczEgLjQgMSAxdi41aC43Yy42IDAgMSAuNCAxIDFzLS40IDEtMSAxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",Tt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,sn=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,_n=(tt,$e,Ge)=>$e in tt?Tt(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,fr=(tt,$e)=>{for(var Ge in $e||($e={}))sn.call($e,Ge)&&_n(tt,Ge,$e[Ge]);if(Kt)for(var Ge of Kt($e))An.call($e,Ge)&&_n(tt,Ge,$e[Ge]);return tt};const Er=tt=>n.createElement("svg",fr({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#pen-erase_svg__a)",fill:"#fff"},n.createElement("path",{d:"m16.74 10 .07-.2a.22.22 0 0 0 0-.16.22.22 0 0 0-.09-.12l-3.14-3.16-3.07-3.08a.18.18 0 0 0 0-.07H10.29l-.72.26-5.23 1.82a.42.42 0 0 0-.18.11.35.35 0 0 0-.1.19c-.17.63-.36 1.25-.55 1.88C3 9.21 2.51 11 2 12.67L.3 18.34c-.09.31-.18.66-.3 1l.16-.14L7 12.42l.06-.06a.16.16 0 0 0 0-.09.17.17 0 0 0 0-.1v-.08a1.87 1.87 0 0 1-.06-1.6A1.95 1.95 0 0 1 8.16 9.4c.27-.09.558-.118.84-.08a2 2 0 0 1 .78.26c.232.15.432.344.59.57a5 5 0 0 1 6.37-.15Z"}),n.createElement("path",{d:"M8.63 13.2c-.106.01-.214.01-.32 0a3.38 3.38 0 0 1-.52-.22L.74 20l4-1.2 5-1.44a4.9 4.9 0 0 1-1.11-4.16ZM11.25 2.62c1.83 1.82 3.62 3.62 5.43 5.43l.81.83L20 7.21 12.83 0l-.08.1c-.5.75-1 1.53-1.5 2.25v.06a.192.192 0 0 0 0 .07.19.19 0 0 0 0 .08.208.208 0 0 0 0 .06ZM16.38 11a4.1 4.1 0 0 0-6.66 2 4.24 4.24 0 0 0-.18 1.13 4.11 4.11 0 0 0 1.27 3 4.06 4.06 0 0 0 2.85 1.16A4.12 4.12 0 0 0 16.38 11Zm-1 4.08h-3.32a1 1 0 0 1 0-2h3.27a1 1 0 0 1 0 2h.05Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"pen-erase_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var wn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im0xNi43NCAxMCAuMDctLjJhLjIyLjIyIDAgMCAwIDAtLjE2LjIyLjIyIDAgMCAwLS4wOS0uMTJsLTMuMTQtMy4xNi0zLjA3LTMuMDhhLjE4LjE4IDAgMCAwIDAtLjA3SDEwLjI5bC0uNzIuMjYtNS4yMyAxLjgyYS40Mi40MiAwIDAgMC0uMTguMTEuMzUuMzUgMCAwIDAtLjEuMTljLS4xNy42My0uMzYgMS4yNS0uNTUgMS44OEMzIDkuMjEgMi41MSAxMSAyIDEyLjY3TC4zIDE4LjM0Yy0uMDkuMzEtLjE4LjY2LS4zIDFsLjE2LS4xNEw3IDEyLjQybC4wNi0uMDZhLjE2LjE2IDAgMCAwIDAtLjA5LjE3LjE3IDAgMCAwIDAtLjF2LS4wOGExLjg3IDEuODcgMCAwIDEtLjA2LTEuNkExLjk1IDEuOTUgMCAwIDEgOC4xNiA5LjRjLjI3LS4wOS41NTgtLjExOC44NC0uMDhhMiAyIDAgMCAxIC43OC4yNmMuMjMyLjE1LjQzMi4zNDQuNTkuNTdhNSA1IDAgMCAxIDYuMzctLjE1WiIvPjxwYXRoIGQ9Ik04LjYzIDEzLjJjLS4xMDYuMDEtLjIxNC4wMS0uMzIgMGEzLjM4IDMuMzggMCAwIDEtLjUyLS4yMkwuNzQgMjBsNC0xLjIgNS0xLjQ0YTQuOSA0LjkgMCAwIDEtMS4xMS00LjE2Wk0xMS4yNSAyLjYyYzEuODMgMS44MiAzLjYyIDMuNjIgNS40MyA1LjQzbC44MS44M0wyMCA3LjIxIDEyLjgzIDBsLS4wOC4xYy0uNS43NS0xIDEuNTMtMS41IDIuMjV2LjA2YS4xOTIuMTkyIDAgMCAwIDAgLjA3LjE5LjE5IDAgMCAwIDAgLjA4LjIwOC4yMDggMCAwIDAgMCAuMDZaTTE2LjM4IDExYTQuMSA0LjEgMCAwIDAtNi42NiAyIDQuMjQgNC4yNCAwIDAgMC0uMTggMS4xMyA0LjExIDQuMTEgMCAwIDAgMS4yNyAzIDQuMDYgNC4wNiAwIDAgMCAyLjg1IDEuMTZBNC4xMiA0LjEyIDAgMCAwIDE2LjM4IDExWm0tMSA0LjA4aC0zLjMyYTEgMSAwIDAgMSAwLTJoMy4yN2ExIDEgMCAwIDEgMCAyaC4wNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",vr=Object.defineProperty,Ar=Object.getOwnPropertySymbols,ia=Object.prototype.hasOwnProperty,na=Object.prototype.propertyIsEnumerable,Wa=(tt,$e,Ge)=>$e in tt?vr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Eo=(tt,$e)=>{for(var Ge in $e||($e={}))ia.call($e,Ge)&&Wa(tt,Ge,$e[Ge]);if(Ar)for(var Ge of Ar($e))na.call($e,Ge)&&Wa(tt,Ge,$e[Ge]);return tt};const Ro=tt=>n.createElement("svg",Eo({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#brush-add_svg__a)",fill:"#fff"},n.createElement("path",{d:"M5.07 10.37 4.02 9.22l-.46-.46a1.42 1.42 0 0 1 0-1.89l.41-.41 3.84-3.73L10.34.22a.71.71 0 0 1 1.07 0c.34.31.67.63 1 .93a.66.66 0 0 1 .22.69c-.1.43-.19.87-.28 1.34l.69-.13c.25 0 .5-.1.75-.12a.82.82 0 0 1 .69.26l4.47 4.37.45.44a.87.87 0 0 1 0 1.3l-2 2-.08.08-1.34-.79 1.89-1.95-.33-.33-3.78-3.71a.3.3 0 0 0-.32-.09l-1.89.37A.74.74 0 0 1 10.7 4c.06-.33.12-.65.19-1s.1-.58.18-.85a.31.31 0 0 0-.17-.4L6.7 5.94l5 4.85c-.3.21-.61.4-.88.62a4.76 4.76 0 0 0-1.75 3 .88.88 0 0 1-.25.44l-2.94 3.37a3.42 3.42 0 0 1-5 .22 3 3 0 0 1-.83-2 3.39 3.39 0 0 1 1.33-2.88l3.32-2.89.37-.3Z"}),n.createElement("path",{d:"M17.88 13.99a4.06 4.06 0 0 0-4.46-2.68 4 4 0 0 0 .61 7.9c.22 0 .44 0 .65-.06a4 4 0 0 0 3.2-5.16Zm-2.31 2.13h-.62v.58a.94.94 0 0 1-1.87 0v-.58h-.58a.94.94 0 0 1 0-1.87h.58v-.56a.94.94 0 1 1 1.87 0v.53h.62a.94.94 0 0 1 0 1.87v.03Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"brush-add_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h19.7v19.44H0z"}))));var Ka="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik01LjA3IDEwLjM3IDQuMDIgOS4yMmwtLjQ2LS40NmExLjQyIDEuNDIgMCAwIDEgMC0xLjg5bC40MS0uNDEgMy44NC0zLjczTDEwLjM0LjIyYS43MS43MSAwIDAgMSAxLjA3IDBjLjM0LjMxLjY3LjYzIDEgLjkzYS42Ni42NiAwIDAgMSAuMjIuNjljLS4xLjQzLS4xOS44Ny0uMjggMS4zNGwuNjktLjEzYy4yNSAwIC41LS4xLjc1LS4xMmEuODIuODIgMCAwIDEgLjY5LjI2bDQuNDcgNC4zNy40NS40NGEuODcuODcgMCAwIDEgMCAxLjNsLTIgMi0uMDguMDgtMS4zNC0uNzkgMS44OS0xLjk1LS4zMy0uMzMtMy43OC0zLjcxYS4zLjMgMCAwIDAtLjMyLS4wOWwtMS44OS4zN0EuNzQuNzQgMCAwIDEgMTAuNyA0Yy4wNi0uMzMuMTItLjY1LjE5LTFzLjEtLjU4LjE4LS44NWEuMzEuMzEgMCAwIDAtLjE3LS40TDYuNyA1Ljk0bDUgNC44NWMtLjMuMjEtLjYxLjQtLjg4LjYyYTQuNzYgNC43NiAwIDAgMC0xLjc1IDMgLjg4Ljg4IDAgMCAxLS4yNS40NGwtMi45NCAzLjM3YTMuNDIgMy40MiAwIDAgMS01IC4yMiAzIDMgMCAwIDEtLjgzLTIgMy4zOSAzLjM5IDAgMCAxIDEuMzMtMi44OGwzLjMyLTIuODkuMzctLjNaIi8+PHBhdGggZD0iTTE3Ljg4IDEzLjk5YTQuMDYgNC4wNiAwIDAgMC00LjQ2LTIuNjggNCA0IDAgMCAwIC42MSA3LjljLjIyIDAgLjQ0IDAgLjY1LS4wNmE0IDQgMCAwIDAgMy4yLTUuMTZabS0yLjMxIDIuMTNoLS42MnYuNThhLjk0Ljk0IDAgMCAxLTEuODcgMHYtLjU4aC0uNThhLjk0Ljk0IDAgMCAxIDAtMS44N2guNTh2LS41NmEuOTQuOTQgMCAxIDEgMS44NyAwdi41M2guNjJhLjk0Ljk0IDAgMCAxIDAgMS44N3YuMDNaIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgxOS43djE5LjQ0SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",To=Object.defineProperty,vo=Object.getOwnPropertySymbols,qr=Object.prototype.hasOwnProperty,Na=Object.prototype.propertyIsEnumerable,Oo=(tt,$e,Ge)=>$e in tt?To(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,oi=(tt,$e)=>{for(var Ge in $e||($e={}))qr.call($e,Ge)&&Oo(tt,Ge,$e[Ge]);if(vo)for(var Ge of vo($e))Na.call($e,Ge)&&Oo(tt,Ge,$e[Ge]);return tt};const di=tt=>n.createElement("svg",oi({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#brush-erase_svg__a)",fill:"#fff"},n.createElement("path",{d:"m6.47 5.69 4.8 4.7c-.29.2-.59.38-.85.59a4.73 4.73 0 0 0-1.74 3.05.45.45 0 0 1-.1.21l-2.89 3.34a3.24 3.24 0 0 1-2.47 1.2 3 3 0 0 1-3.23-3.1 3.34 3.34 0 0 1 1.39-2.7c1.16-.95 2.29-1.93 3.44-2.89l.14-.1-.4-.38-1-1a1.38 1.38 0 0 1 0-2.07L7.7 2.48c.76-.7 1.52-1.5 2.29-2.24a.69.69 0 0 1 1.05 0l1 .91a.59.59 0 0 1 .18.63c-.09.43-.18.87-.27 1.33l1.27-.25a.88.88 0 0 1 .84.24l2.71 2.68 2 1.92a.9.9 0 0 1 .29.8.66.66 0 0 1-.16.35c-.7.7-1.41 1.39-2.12 2.08l-1.28-.77 1.84-1.79V8.3l-4-3.88a.29.29 0 0 0-.28-.07l-1.84.43a.86.86 0 0 1-.8-.26.571.571 0 0 1-.13-.56c.12-.59.24-1.17.37-1.76 0-.19 0-.33-.18-.42L6.47 5.69Z"}),n.createElement("path",{d:"M9.69 14.71a3.88 3.88 0 1 1 3.88 3.8 3.83 3.83 0 0 1-3.88-3.8Zm3.87 1h1.57a1 1 0 0 0 1-1 1 1 0 0 0-1-1.06h-3.14a1 1 0 0 0 0 2l1.57.06Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"brush-erase_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h19.03v18.77H0z"}))));var go="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im02LjQ3IDUuNjkgNC44IDQuN2MtLjI5LjItLjU5LjM4LS44NS41OWE0LjczIDQuNzMgMCAwIDAtMS43NCAzLjA1LjQ1LjQ1IDAgMCAxLS4xLjIxbC0yLjg5IDMuMzRhMy4yNCAzLjI0IDAgMCAxLTIuNDcgMS4yIDMgMyAwIDAgMS0zLjIzLTMuMSAzLjM0IDMuMzQgMCAwIDEgMS4zOS0yLjdjMS4xNi0uOTUgMi4yOS0xLjkzIDMuNDQtMi44OWwuMTQtLjEtLjQtLjM4LTEtMWExLjM4IDEuMzggMCAwIDEgMC0yLjA3TDcuNyAyLjQ4Yy43Ni0uNyAxLjUyLTEuNSAyLjI5LTIuMjRhLjY5LjY5IDAgMCAxIDEuMDUgMGwxIC45MWEuNTkuNTkgMCAwIDEgLjE4LjYzYy0uMDkuNDMtLjE4Ljg3LS4yNyAxLjMzbDEuMjctLjI1YS44OC44OCAwIDAgMSAuODQuMjRsMi43MSAyLjY4IDIgMS45MmEuOS45IDAgMCAxIC4yOS44LjY2LjY2IDAgMCAxLS4xNi4zNWMtLjcuNy0xLjQxIDEuMzktMi4xMiAyLjA4bC0xLjI4LS43NyAxLjg0LTEuNzlWOC4zbC00LTMuODhhLjI5LjI5IDAgMCAwLS4yOC0uMDdsLTEuODQuNDNhLjg2Ljg2IDAgMCAxLS44LS4yNi41NzEuNTcxIDAgMCAxLS4xMy0uNTZjLjEyLS41OS4yNC0xLjE3LjM3LTEuNzYgMC0uMTkgMC0uMzMtLjE4LS40Mkw2LjQ3IDUuNjlaIi8+PHBhdGggZD0iTTkuNjkgMTQuNzFhMy44OCAzLjg4IDAgMSAxIDMuODggMy44IDMuODMgMy44MyAwIDAgMS0zLjg4LTMuOFptMy44NyAxaDEuNTdhMSAxIDAgMCAwIDEtMSAxIDEgMCAwIDAtMS0xLjA2aC0zLjE0YTEgMSAwIDAgMCAwIDJsMS41Ny4wNloiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5LjAzdjE4Ljc3SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Oi=Object.defineProperty,Li=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,$i=(tt,$e,Ge)=>$e in tt?Oi(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,wi=(tt,$e)=>{for(var Ge in $e||($e={}))ii.call($e,Ge)&&$i(tt,Ge,$e[Ge]);if(Li)for(var Ge of Li($e))Di.call($e,Ge)&&$i(tt,Ge,$e[Ge]);return tt};const Ti=tt=>n.createElement("svg",wi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-box_svg__cls-1,.magic-box_svg__cls-3{fill:none}.magic-box_svg__cls-2{fill:#fcfefe}.magic-box_svg__cls-3{stroke:#fcfeff;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px}")),n.createElement("path",{className:"magic-box_svg__cls-1",d:"M5.28 16.36V6.08a1 1 0 0 1 1-1h22.2a1 1 0 0 1 1 1v21.67a1 1 0 0 1-1 .95h-10v2.39H31.4V2.74H3.17v13.62ZM3.06 2.74h.11v13.62h-.11z"}),n.createElement("path",{className:"magic-box_svg__cls-2",d:"M7.28 7.12H27.4V26.7h-8.91v2h10a1 1 0 0 0 1-.95V6.08a1 1 0 0 0-1-1H6.24a1 1 0 0 0-1 1v10.28h2Z"}),n.createElement("path",{className:"magic-box_svg__cls-2",d:"M4.82 28.43a.87.87 0 0 0 .11 1.19 1 1 0 0 0 1.19.09c3.29-2.56 4.66-2.56 8 0a.92.92 0 0 0 1.28-1.28c-2.56-3.29-2.56-4.66 0-8a.92.92 0 0 0-1.28-1.28c-3.29 2.56-4.66 2.56-8 0a1.37 1.37 0 0 0-.55-.15.83.83 0 0 0-.64.27.87.87 0 0 0-.09 1.19c2.63 3.31 2.63 4.59-.02 7.97Z"}),n.createElement("path",{className:"magic-box_svg__cls-3",d:"m19.24 10.15 5.75-.07M24.99 15.91v-5.83M17.97 17.19l7.02-7.11"}));var ns="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTN7ZmlsbDpub25lfS5jbHMtMntmaWxsOiNmY2ZlZmV9LmNscy0ze3N0cm9rZTojZmNmZWZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoycHh9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4yOCAxNi4zNlY2LjA4YTEgMSAwIDAgMSAxLTFoMjIuMmExIDEgMCAwIDEgMSAxdjIxLjY3YTEgMSAwIDAgMS0xIC45NWgtMTB2Mi4zOUgzMS40VjIuNzRIMy4xN3YxMy42MlpNMy4wNiAyLjc0aC4xMXYxMy42MmgtLjExeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTcuMjggNy4xMkgyNy40VjI2LjdoLTguOTF2MmgxMGExIDEgMCAwIDAgMS0uOTVWNi4wOGExIDEgMCAwIDAtMS0xSDYuMjRhMSAxIDAgMCAwLTEgMXYxMC4yOGgyWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTQuODIgMjguNDNhLjg3Ljg3IDAgMCAwIC4xMSAxLjE5IDEgMSAwIDAgMCAxLjE5LjA5YzMuMjktMi41NiA0LjY2LTIuNTYgOCAwYS45Mi45MiAwIDAgMCAxLjI4LTEuMjhjLTIuNTYtMy4yOS0yLjU2LTQuNjYgMC04YS45Mi45MiAwIDAgMC0xLjI4LTEuMjhjLTMuMjkgMi41Ni00LjY2IDIuNTYtOCAwYTEuMzcgMS4zNyAwIDAgMC0uNTUtLjE1LjgzLjgzIDAgMCAwLS42NC4yNy44Ny44NyAwIDAgMC0uMDkgMS4xOWMyLjYzIDMuMzEgMi42MyA0LjU5LS4wMiA3Ljk3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0ibTE5LjI0IDEwLjE1IDUuNzUtLjA3TTI0Ljk5IDE1Ljkxdi01LjgzTTE3Ljk3IDE3LjE5bDcuMDItNy4xMSIvPjwvc3ZnPg==",Fi=Object.defineProperty,ro=Object.getOwnPropertySymbols,Va=Object.prototype.hasOwnProperty,gi=Object.prototype.propertyIsEnumerable,si=(tt,$e,Ge)=>$e in tt?Fi(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Zo=(tt,$e)=>{for(var Ge in $e||($e={}))Va.call($e,Ge)&&si(tt,Ge,$e[Ge]);if(ro)for(var Ge of ro($e))gi.call($e,Ge)&&si(tt,Ge,$e[Ge]);return tt};const Yo=tt=>n.createElement("svg",Zo({id:"magic-click_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-click_svg__cls-1{fill:#fff}")),n.createElement("path",{className:"magic-click_svg__cls-1",d:"M30.88 21.21a1.6 1.6 0 0 1-1 1.35c-1.54.75-3.08 1.51-4.59 2.31a2.18 2.18 0 0 0-.87.86c-.79 1.49-1.53 3-2.27 4.53a1.49 1.49 0 0 1-2.89-.18Q17.2 23.8 15.1 17.52a1.49 1.49 0 0 1 2-2l12.55 4.19a1.56 1.56 0 0 1 1.23 1.5Zm-5.25.23-6.94-2.32 2.32 7c.37-.74.71-1.3.95-1.9a3 3 0 0 1 1.8-1.79c.6-.29 1.15-.62 1.87-.99ZM7.34 6.09a4.23 4.23 0 0 1 .89.54l3 3a1.45 1.45 0 1 1-2 2c-1-1-2.06-2-3.07-3.07A1.37 1.37 0 0 1 5.83 7a1.6 1.6 0 0 1 1.51-.91ZM22.35 12.35a6.61 6.61 0 0 1-1.12-.92 1.14 1.14 0 0 1 .09-1.51c1.14-1.19 2.3-2.37 3.5-3.49a1.31 1.31 0 0 1 1.84.1 1.34 1.34 0 0 1 .14 1.9c-1.11 1.19-2.28 2.32-3.45 3.45a3.92 3.92 0 0 1-1 .47ZM7 27.68a6 6 0 0 1-1.13-.9 1.12 1.12 0 0 1 .13-1.5c1.15-1.21 2.32-2.4 3.55-3.54a1.32 1.32 0 0 1 1.84.17 1.33 1.33 0 0 1 .1 1.85C10.35 25 9.16 26.11 8 27.25a3.75 3.75 0 0 1-1 .43ZM17.87 6v2A1.46 1.46 0 1 1 15 8V3.87a1.49 1.49 0 0 1 1.46-1.56 1.51 1.51 0 0 1 1.45 1.57c-.03.74-.04 1.44-.04 2.12ZM5.48 18.3h-2a1.5 1.5 0 0 1-1.55-1.5 1.48 1.48 0 0 1 1.59-1.42h4.07a1.49 1.49 0 0 1 1.59 1.49 1.5 1.5 0 0 1-1.6 1.42c-.69.02-1.4.01-2.1.01Z"}),n.createElement("path",{className:"magic-click_svg__cls-1",d:"M25.63 21.44c-.72.37-1.27.7-1.87.94A3 3 0 0 0 22 24.17c-.24.6-.58 1.16-.95 1.9l-2.32-6.95Z"}));var Ni="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zMC44OCAyMS4yMWExLjYgMS42IDAgMCAxLTEgMS4zNWMtMS41NC43NS0zLjA4IDEuNTEtNC41OSAyLjMxYTIuMTggMi4xOCAwIDAgMC0uODcuODZjLS43OSAxLjQ5LTEuNTMgMy0yLjI3IDQuNTNhMS40OSAxLjQ5IDAgMCAxLTIuODktLjE4UTE3LjIgMjMuOCAxNS4xIDE3LjUyYTEuNDkgMS40OSAwIDAgMSAyLTJsMTIuNTUgNC4xOWExLjU2IDEuNTYgMCAwIDEgMS4yMyAxLjVabS01LjI1LjIzLTYuOTQtMi4zMiAyLjMyIDdjLjM3LS43NC43MS0xLjMuOTUtMS45YTMgMyAwIDAgMSAxLjgtMS43OWMuNi0uMjkgMS4xNS0uNjIgMS44Ny0uOTlaTTcuMzQgNi4wOWE0LjIzIDQuMjMgMCAwIDEgLjg5LjU0bDMgM2ExLjQ1IDEuNDUgMCAxIDEtMiAyYy0xLTEtMi4wNi0yLTMuMDctMy4wN0ExLjM3IDEuMzcgMCAwIDEgNS44MyA3YTEuNiAxLjYgMCAwIDEgMS41MS0uOTFaTTIyLjM1IDEyLjM1YTYuNjEgNi42MSAwIDAgMS0xLjEyLS45MiAxLjE0IDEuMTQgMCAwIDEgLjA5LTEuNTFjMS4xNC0xLjE5IDIuMy0yLjM3IDMuNS0zLjQ5YTEuMzEgMS4zMSAwIDAgMSAxLjg0LjEgMS4zNCAxLjM0IDAgMCAxIC4xNCAxLjljLTEuMTEgMS4xOS0yLjI4IDIuMzItMy40NSAzLjQ1YTMuOTIgMy45MiAwIDAgMS0xIC40N1pNNyAyNy42OGE2IDYgMCAwIDEtMS4xMy0uOSAxLjEyIDEuMTIgMCAwIDEgLjEzLTEuNWMxLjE1LTEuMjEgMi4zMi0yLjQgMy41NS0zLjU0YTEuMzIgMS4zMiAwIDAgMSAxLjg0LjE3IDEuMzMgMS4zMyAwIDAgMSAuMSAxLjg1QzEwLjM1IDI1IDkuMTYgMjYuMTEgOCAyNy4yNWEzLjc1IDMuNzUgMCAwIDEtMSAuNDNaTTE3Ljg3IDZ2MkExLjQ2IDEuNDYgMCAxIDEgMTUgOFYzLjg3YTEuNDkgMS40OSAwIDAgMSAxLjQ2LTEuNTYgMS41MSAxLjUxIDAgMCAxIDEuNDUgMS41N2MtLjAzLjc0LS4wNCAxLjQ0LS4wNCAyLjEyWk01LjQ4IDE4LjNoLTJhMS41IDEuNSAwIDAgMS0xLjU1LTEuNSAxLjQ4IDEuNDggMCAwIDEgMS41OS0xLjQyaDQuMDdhMS40OSAxLjQ5IDAgMCAxIDEuNTkgMS40OSAxLjUgMS41IDAgMCAxLTEuNiAxLjQyYy0uNjkuMDItMS40LjAxLTIuMS4wMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNS42MyAyMS40NGMtLjcyLjM3LTEuMjcuNy0xLjg3Ljk0QTMgMyAwIDAgMCAyMiAyNC4xN2MtLjI0LjYtLjU4IDEuMTYtLjk1IDEuOWwtMi4zMi02Ljk1WiIvPjwvc3ZnPg==",Xi=Object.defineProperty,Gi=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Ns=(tt,$e,Ge)=>$e in tt?Xi(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,bl=(tt,$e)=>{for(var Ge in $e||($e={}))Is.call($e,Ge)&&Ns(tt,Ge,$e[Ge]);if(Gi)for(var Ge of Gi($e))hs.call($e,Ge)&&Ns(tt,Ge,$e[Ge]);return tt};const bn=tt=>n.createElement("svg",bl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".edge-stitch_svg__cls-1{fill:#fcfefe}.edge-stitch_svg__cls-3{fill:#fff}")),n.createElement("path",{className:"edge-stitch_svg__cls-1",d:"M22.25 18.52a.82.82 0 0 0 .57.15h4.3a1.44 1.44 0 1 0 0-2.87h-.86L31 11.06a1.42 1.42 0 0 0-2-2l-4.73 4.74v-.86a1.44 1.44 0 1 0-2.87 0v4.3a.87.87 0 0 0 .14.57 1.67 1.67 0 0 0 .71.71ZM9.91 31.58a1.31 1.31 0 0 0 1-.43l4.74-4.74v.86a1.44 1.44 0 1 0 2.87 0V23a.82.82 0 0 0-.15-.57 1.7 1.7 0 0 0-.71-.72.85.85 0 0 0-.58-.15h-4.3a1.44 1.44 0 1 0 0 2.87h.86l-4.73 4.71a1.38 1.38 0 0 0 0 2 1.31 1.31 0 0 0 1 .44Z"}),n.createElement("path",{style:{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3},d:"m14.4 14.51 11.14 11.14"}),n.createElement("path",{className:"edge-stitch_svg__cls-3",d:"M7.51 5.7a3.41 3.41 0 0 1 .74.45c.85.8 1.67 1.64 2.49 2.47a1.19 1.19 0 1 1-1.69 1.67Q7.77 9 6.53 7.77a1.13 1.13 0 0 1-.26-1.33 1.33 1.33 0 0 1 1.24-.74ZM19.85 10.84a5.11 5.11 0 0 1-.92-.75.93.93 0 0 1 .07-1.24c.94-1 1.89-1.95 2.88-2.87a1.07 1.07 0 0 1 1.51.09 1.09 1.09 0 0 1 .11 1.56c-.91 1-1.87 1.9-2.83 2.83a2.88 2.88 0 0 1-.82.38ZM7.26 23.44a5 5 0 0 1-.92-.73.92.92 0 0 1 .06-1.24Q7.81 20 9.31 18.56a1.08 1.08 0 0 1 1.51.14 1.1 1.1 0 0 1 .09 1.52C10 21.21 9 22.15 8 23.09a3.07 3.07 0 0 1-.74.35ZM16.16 5.64v1.67A1.24 1.24 0 0 1 15 8.59a1.22 1.22 0 0 1-1.19-1.28v-3.4A1.22 1.22 0 0 1 15 2.63a1.23 1.23 0 0 1 1.19 1.29c-.01.57-.03 1.15-.03 1.72ZM6 15.73H4.38a1.2 1.2 0 1 1 0-2.4h3.34a1.2 1.2 0 1 1 0 2.4c-.58.02-1.15 0-1.72 0Z"}));var Mr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmY2ZlZmV9LmNscy0ze2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMi4yNSAxOC41MmEuODIuODIgMCAwIDAgLjU3LjE1aDQuM2ExLjQ0IDEuNDQgMCAxIDAgMC0yLjg3aC0uODZMMzEgMTEuMDZhMS40MiAxLjQyIDAgMCAwLTItMmwtNC43MyA0Ljc0di0uODZhMS40NCAxLjQ0IDAgMSAwLTIuODcgMHY0LjNhLjg3Ljg3IDAgMCAwIC4xNC41NyAxLjY3IDEuNjcgMCAwIDAgLjcxLjcxWk05LjkxIDMxLjU4YTEuMzEgMS4zMSAwIDAgMCAxLS40M2w0Ljc0LTQuNzR2Ljg2YTEuNDQgMS40NCAwIDEgMCAyLjg3IDBWMjNhLjgyLjgyIDAgMCAwLS4xNS0uNTcgMS43IDEuNyAwIDAgMC0uNzEtLjcyLjg1Ljg1IDAgMCAwLS41OC0uMTVoLTQuM2ExLjQ0IDEuNDQgMCAxIDAgMCAyLjg3aC44NmwtNC43MyA0LjcxYTEuMzggMS4zOCAwIDAgMCAwIDIgMS4zMSAxLjMxIDAgMCAwIDEgLjQ0WiIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjNweCIgZD0ibTE0LjQgMTQuNTEgMTEuMTQgMTEuMTQiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik03LjUxIDUuN2EzLjQxIDMuNDEgMCAwIDEgLjc0LjQ1Yy44NS44IDEuNjcgMS42NCAyLjQ5IDIuNDdhMS4xOSAxLjE5IDAgMSAxLTEuNjkgMS42N1E3Ljc3IDkgNi41MyA3Ljc3YTEuMTMgMS4xMyAwIDAgMS0uMjYtMS4zMyAxLjMzIDEuMzMgMCAwIDEgMS4yNC0uNzRaTTE5Ljg1IDEwLjg0YTUuMTEgNS4xMSAwIDAgMS0uOTItLjc1LjkzLjkzIDAgMCAxIC4wNy0xLjI0Yy45NC0xIDEuODktMS45NSAyLjg4LTIuODdhMS4wNyAxLjA3IDAgMCAxIDEuNTEuMDkgMS4wOSAxLjA5IDAgMCAxIC4xMSAxLjU2Yy0uOTEgMS0xLjg3IDEuOS0yLjgzIDIuODNhMi44OCAyLjg4IDAgMCAxLS44Mi4zOFpNNy4yNiAyMy40NGE1IDUgMCAwIDEtLjkyLS43My45Mi45MiAwIDAgMSAuMDYtMS4yNFE3LjgxIDIwIDkuMzEgMTguNTZhMS4wOCAxLjA4IDAgMCAxIDEuNTEuMTQgMS4xIDEuMSAwIDAgMSAuMDkgMS41MkMxMCAyMS4yMSA5IDIyLjE1IDggMjMuMDlhMy4wNyAzLjA3IDAgMCAxLS43NC4zNVpNMTYuMTYgNS42NHYxLjY3QTEuMjQgMS4yNCAwIDAgMSAxNSA4LjU5YTEuMjIgMS4yMiAwIDAgMS0xLjE5LTEuMjh2LTMuNEExLjIyIDEuMjIgMCAwIDEgMTUgMi42M2ExLjIzIDEuMjMgMCAwIDEgMS4xOSAxLjI5Yy0uMDEuNTctLjAzIDEuMTUtLjAzIDEuNzJaTTYgMTUuNzNINC4zOGExLjIgMS4yIDAgMSAxIDAtMi40aDMuMzRhMS4yIDEuMiAwIDEgMSAwIDIuNGMtLjU4LjAyLTEuMTUgMC0xLjcyIDBaIi8+PC9zdmc+",er=Object.defineProperty,ur=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable,ha=(tt,$e,Ge)=>$e in tt?er(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,da=(tt,$e)=>{for(var Ge in $e||($e={}))Cr.call($e,Ge)&&ha(tt,Ge,$e[Ge]);if(ur)for(var Ge of ur($e))ca.call($e,Ge)&&ha(tt,Ge,$e[Ge]);return tt};const _o=tt=>n.createElement("svg",da({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".segment-everything_svg__cls-1{fill:#fff}.segment-everything_svg__cls-3{fill:none}")),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"m6.26 15.54 5.88 3.88a1 1 0 0 1 0 1.56L6.1 25.29a.9.9 0 0 1-1.41-.79l.19-8.2a.9.9 0 0 1 1.38-.76ZM7.58 29.17 23.43 17.7a1.71 1.71 0 0 1 2.25.22l3.32 3.5v7.75Z"}),n.createElement("path",{d:"M31 4.35a.88.88 0 0 0-.11-1.19 1 1 0 0 0-1.19-.09c-3.29 2.56-4.66 2.56-8 0a.87.87 0 0 0-1.19.09.87.87 0 0 0-.09 1.19c2.56 3.29 2.56 4.66 0 8a.92.92 0 0 0 1.28 1.28c3.29-2.56 4.66-2.56 8 0a1.28 1.28 0 0 0 .55.18.91.91 0 0 0 .64-.27.87.87 0 0 0 .11-1.19c-2.65-3.35-2.65-4.62 0-8Z",style:{fill:"#fcfefe"}}),n.createElement("path",{className:"segment-everything_svg__cls-3",d:"M4.07 4.13h26.29v26.29H4.07z"}),n.createElement("path",{className:"segment-everything_svg__cls-3",d:"M6.39 28.56h22.49V17H16.49v-3.38a2.56 2.56 0 0 1-2 .93 2.63 2.63 0 0 1-2.59-2.72 2.66 2.66 0 0 1 2.6-2.67 2.57 2.57 0 0 1 2 .95v-4H6.39Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M14.51 9.16a2.66 2.66 0 0 0-2.6 2.67 2.63 2.63 0 0 0 2.59 2.72 2.56 2.56 0 0 0 2-.93v-3.51a2.57 2.57 0 0 0-1.99-.95Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M28.88 28.56H6.39V6.1h10.1V4.25H5.42a.88.88 0 0 0-.89.88v25.28h26.21V17h-1.86Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M17.14 11.87a2.74 2.74 0 0 0-.65-1.76v3.51a2.7 2.7 0 0 0 .65-1.75Z"}));var li="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9LmNscy0ze2ZpbGw6bm9uZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Im02LjI2IDE1LjU0IDUuODggMy44OGExIDEgMCAwIDEgMCAxLjU2TDYuMSAyNS4yOWEuOS45IDAgMCAxLTEuNDEtLjc5bC4xOS04LjJhLjkuOSAwIDAgMSAxLjM4LS43NlpNNy41OCAyOS4xNyAyMy40MyAxNy43YTEuNzEgMS43MSAwIDAgMSAyLjI1LjIybDMuMzIgMy41djcuNzVaIi8+PHBhdGggZD0iTTMxIDQuMzVhLjg4Ljg4IDAgMCAwLS4xMS0xLjE5IDEgMSAwIDAgMC0xLjE5LS4wOWMtMy4yOSAyLjU2LTQuNjYgMi41Ni04IDBhLjg3Ljg3IDAgMCAwLTEuMTkuMDkuODcuODcgMCAwIDAtLjA5IDEuMTljMi41NiAzLjI5IDIuNTYgNC42NiAwIDhhLjkyLjkyIDAgMCAwIDEuMjggMS4yOGMzLjI5LTIuNTYgNC42Ni0yLjU2IDggMGExLjI4IDEuMjggMCAwIDAgLjU1LjE4LjkxLjkxIDAgMCAwIC42NC0uMjcuODcuODcgMCAwIDAgLjExLTEuMTljLTIuNjUtMy4zNS0yLjY1LTQuNjIgMC04WiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTQuMDcgNC4xM2gyNi4yOXYyNi4yOUg0LjA3eiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTYuMzkgMjguNTZoMjIuNDlWMTdIMTYuNDl2LTMuMzhhMi41NiAyLjU2IDAgMCAxLTIgLjkzIDIuNjMgMi42MyAwIDAgMS0yLjU5LTIuNzIgMi42NiAyLjY2IDAgMCAxIDIuNi0yLjY3IDIuNTcgMi41NyAwIDAgMSAyIC45NXYtNEg2LjM5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0LjUxIDkuMTZhMi42NiAyLjY2IDAgMCAwLTIuNiAyLjY3IDIuNjMgMi42MyAwIDAgMCAyLjU5IDIuNzIgMi41NiAyLjU2IDAgMCAwIDItLjkzdi0zLjUxYTIuNTcgMi41NyAwIDAgMC0xLjk5LS45NVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yOC44OCAyOC41Nkg2LjM5VjYuMWgxMC4xVjQuMjVINS40MmEuODguODggMCAwIDAtLjg5Ljg4djI1LjI4aDI2LjIxVjE3aC0xLjg2WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjE0IDExLjg3YTIuNzQgMi43NCAwIDAgMC0uNjUtMS43NnYzLjUxYTIuNyAyLjcgMCAwIDAgLjY1LTEuNzVaIi8+PC9zdmc+",Xo=Object.defineProperty,_i=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,As=(tt,$e,Ge)=>$e in tt?Xo(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,us=(tt,$e)=>{for(var Ge in $e||($e={}))bs.call($e,Ge)&&As(tt,Ge,$e[Ge]);if(_i)for(var Ge of _i($e))ss.call($e,Ge)&&As(tt,Ge,$e[Ge]);return tt};const ri=tt=>n.createElement("svg",us({id:"magic-brush_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-brush_svg__cls-1{fill:#fff}")),n.createElement("path",{className:"magic-brush_svg__cls-1",d:"M15.22 14.73 21 9l10.1 10.1-5.8 5.76ZM14.33 15.43l10.34 10.36c-.87.86-1.78 1.78-2.71 2.68-.09.08-.37 0-.53-.07-1.31-.58-2.63-1.16-3.92-1.78a.74.74 0 0 0-1 .17q-1.75 1.82-3.57 3.56a2.14 2.14 0 0 1-2.33.51 2.08 2.08 0 0 1-1.42-1.69 2.2 2.2 0 0 1 .67-2.05C11 26 12.14 24.8 13.32 23.66a.74.74 0 0 0 .19-1c-.61-1.27-1.16-2.57-1.77-3.85a.67.67 0 0 1 .15-.91c.84-.81 1.63-1.64 2.44-2.47Zm-1.82 13.18a1 1 0 1 0-2 .05 1 1 0 0 0 2-.05Z"}),n.createElement("path",{d:"M3.2 12.66a.89.89 0 0 0 .11 1.23 1 1 0 0 0 1.23.1c3.4-2.65 4.82-2.65 8.27 0a.95.95 0 0 0 1.32-1.33c-2.64-3.4-2.64-4.81 0-8.26A.9.9 0 0 0 14 3.17a.89.89 0 0 0-1.23-.1C9.41 5.72 8 5.72 4.54 3.07A1.27 1.27 0 0 0 4 2.89a.84.84 0 0 0-.66.28.9.9 0 0 0-.12 1.23c2.72 3.45 2.72 4.77-.02 8.26Z",style:{fill:"#fcfefe"}}));var $l="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNS4yMiAxNC43MyAyMSA5bDEwLjEgMTAuMS01LjggNS43NlpNMTQuMzMgMTUuNDNsMTAuMzQgMTAuMzZjLS44Ny44Ni0xLjc4IDEuNzgtMi43MSAyLjY4LS4wOS4wOC0uMzcgMC0uNTMtLjA3LTEuMzEtLjU4LTIuNjMtMS4xNi0zLjkyLTEuNzhhLjc0Ljc0IDAgMCAwLTEgLjE3cS0xLjc1IDEuODItMy41NyAzLjU2YTIuMTQgMi4xNCAwIDAgMS0yLjMzLjUxIDIuMDggMi4wOCAwIDAgMS0xLjQyLTEuNjkgMi4yIDIuMiAwIDAgMSAuNjctMi4wNUMxMSAyNiAxMi4xNCAyNC44IDEzLjMyIDIzLjY2YS43NC43NCAwIDAgMCAuMTktMWMtLjYxLTEuMjctMS4xNi0yLjU3LTEuNzctMy44NWEuNjcuNjcgMCAwIDEgLjE1LS45MWMuODQtLjgxIDEuNjMtMS42NCAyLjQ0LTIuNDdabS0xLjgyIDEzLjE4YTEgMSAwIDEgMC0yIC4wNSAxIDEgMCAwIDAgMi0uMDVaIi8+PHBhdGggZD0iTTMuMiAxMi42NmEuODkuODkgMCAwIDAgLjExIDEuMjMgMSAxIDAgMCAwIDEuMjMuMWMzLjQtMi42NSA0LjgyLTIuNjUgOC4yNyAwYS45NS45NSAwIDAgMCAxLjMyLTEuMzNjLTIuNjQtMy40LTIuNjQtNC44MSAwLTguMjZBLjkuOSAwIDAgMCAxNCAzLjE3YS44OS44OSAwIDAgMC0xLjIzLS4xQzkuNDEgNS43MiA4IDUuNzIgNC41NCAzLjA3QTEuMjcgMS4yNyAwIDAgMCA0IDIuODlhLjg0Ljg0IDAgMCAwLS42Ni4yOC45LjkgMCAwIDAtLjEyIDEuMjNjMi43MiAzLjQ1IDIuNzIgNC43Ny0uMDIgOC4yNloiIHN0eWxlPSJmaWxsOiNmY2ZlZmUiLz48L3N2Zz4=",ol=(0,n.memo)(function(tt){var $e=tt.selectedSubTool,Ge=tt.isAIAnnotationActive,cn=tt.isSegEverythingAvailable,qt=tt.isManualAvailable,Fn=tt.brushSize,tr=tt.onChangeSubTool,Rn=tt.onChangeBrushSize,nr=(0,G.bU)(),Ur=nr.localeText,lr=[{key:m.jB.PenAdd,name:Ur("DDSAnnotator.subtoolbar.mask.penAdd"),icon:(0,y.jsx)(Ie.Z,{component:co}),available:qt},{key:m.jB.PenErase,name:Ur("DDSAnnotator.subtoolbar.mask.penErase"),icon:(0,y.jsx)(Ie.Z,{component:Er}),available:qt},{key:m.jB.BrushAdd,name:Ur("DDSAnnotator.subtoolbar.mask.brushAdd"),icon:(0,y.jsx)(Ie.Z,{component:Ro}),available:qt},{key:m.jB.BrushErase,name:Ur("DDSAnnotator.subtoolbar.mask.brushErase"),icon:(0,y.jsx)(Ie.Z,{component:di}),available:qt}],Vn=(0,n.useMemo)(function(){return[{key:m.jB.AutoSegmentByBox,name:Ur("DDSAnnotator.subtoolbar.mask.box"),icon:(0,y.jsx)(Ie.Z,{component:Ti}),available:!0},{key:m.jB.AutoSegmentByStroke,name:Ur("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,y.jsx)(Ie.Z,{component:ri}),available:!0},{key:m.jB.AutoSegmentByClick,name:Ur("DDSAnnotator.subtoolbar.mask.click"),icon:(0,y.jsx)(Ie.Z,{component:Yo}),available:!0},{key:m.jB.AutoEdgeStitching,name:Ur("DDSAnnotator.subtoolbar.mask.edgeStitch"),icon:(0,y.jsx)(Ie.Z,{component:bn}),available:!0},{key:m.jB.AutoSegmentEverything,name:Ur("DDSAnnotator.subtoolbar.mask.sam"),icon:(0,y.jsx)(Ie.Z,{component:_o}),available:cn,description:Ur(cn?"DDSAnnotator.subtoolbar.mask.sam.desc":"DDSAnnotator.subtoolbar.mask.sam.notAllow")}]},[cn]),Un=[m.jB.BrushAdd,m.jB.BrushErase,m.jB.AutoSegmentByStroke,m.jB.AutoEdgeStitching],wa=(0,n.useMemo)(function(){return[].concat(lr,t()(Vn))},[lr,Vn]),ya=(0,n.useMemo)(function(){for(var Ut=[],ln=1;ln<=wa.length;ln++)Ut.push(ln.toString());return Ut},[wa]);(0,he.Z)(ya,function(Ut){var ln=wa.find(function(mn,Sn){return(Sn+1).toString()===Ut.key});if(ln&&ln.available){if(Vn.find(function(mn){return ln.key===mn.key})&&!Ge)return;tr(ln.key)}},{exactMatch:!0});var Qt=function(ln){Un.includes($e)&&ln.type==="mouseup"||ln.stopPropagation()},Ne=function(ln){var mn=wa.findIndex(function(Sn){return Sn.key===ln.key})+1;return(0,y.jsxs)("div",{className:"dds-annotator-subtoolbar-popover",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"dds-annotator-subtoolbar-popover-title",children:ln.name}),mn&&(0,y.jsx)("span",{className:"dds-annotator-subtoolbar-popover-key",children:mn})]}),ln.description&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-popover-divider"}),(0,y.jsx)("div",{children:ln.description})]})]})},rt=function(ln){var mn=wa.find(function(Sn){return Sn.key===ln});mn&&mn.available&&tr(ln)},Rt=function(ln){return(0,y.jsx)(De.Z,{placement:"bottom",content:Ne(ln),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-subtoolbar-btn",{"dds-annotator-subtoolbar-btn-active":$e===ln.key&&ln.available,"dds-annotator-subtoolbar-btn-limited":ln.available}),style:{cursor:ln.available?"pointer":"not-allowed"},icon:ln.icon,onClick:function(){return rt(ln.key)}})},ln.key)};return(0,y.jsx)(wt,{eventHandler:Qt,children:(0,y.jsxs)("div",{className:"dds-annotator-subtoolbar",children:[lr.map(function(Ut){return Rt(Ut)}),Ge&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Vn.map(function(Ut){return Rt(Ut)})]}),Un.includes($e)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,y.jsx)($t.Z,{defaultValue:20,min:1,max:100,value:Fn,onChange:function(ln){return Rn(ln)}})})]})]})})}),il=function($e){var Ge=$e.topCanvas,cn=$e.editState,qt=$e.drawData,Fn=(0,n.useCallback)(function(tr,Rn){if(Ge){var nr=tr;if(Rn)switch(Rn){case K.Nm.TOP:case K.Nm.BOTTOM:nr="ns-resize";break;case K.Nm.TOP_LEFT:case K.Nm.BOTTOM_RIGHT:nr="nwse-resize";break;case K.Nm.BOTTOM_LEFT:case K.Nm.TOP_RIGHT:nr="nesw-resize";break;default:nr="ew-resize"}nr!==Ge.style.cursor&&(Ge.style.cursor=nr)}},[Ge]);return(0,n.useEffect)(function(){cn.allowMove?Fn("grabbing"):qt.selectedTool===m.ru.Drag?Fn("grab"):Fn("crosshair")},[cn.allowMove]),{updateMouseCursor:Fn}},Fl=il,Qs=function($e){var Ge=$e.visible,cn=$e.mode,qt=$e.drawData,Fn=$e.isMousePress,tr=$e.setDrawData,Rn=$e.setEditState,nr=$e.onSaveAnnotations,Ur=$e.onAccept,lr=$e.onReject,Vn=$e.onChangeObjectHidden,Un=$e.onChangeCategoryHidden,wa=$e.removeObject,ya=$e.addObject;return(0,he.Z)(Ze[xe.Save].shortcut,function(Qt){Qt.preventDefault(),cn===k.je.Edit&&nr(qt)},{exactMatch:!0}),(0,he.Z)(Ze[xe.Accept].shortcut,function(Qt){Qt.preventDefault(),Ur()},{exactMatch:!0}),(0,he.Z)(Ze[xe.Reject].shortcut,function(Qt){Qt.preventDefault(),lr()},{exactMatch:!0}),(0,he.Z)(Ze[xe.PanImage].shortcut,function(Qt){Ge&&(Qt.preventDefault(),Qt.type==="keydown"&&!Fn?Rn(function(Ne){Ne.allowMove=!0}):Qt.type==="keyup"&&Rn(function(Ne){Ne.allowMove=!1}))},{events:["keydown","keyup"]}),(0,he.Z)(Ze[xe.CancelCurrObject].shortcut,function(Qt){Ge&&Qt.type==="keyup"&&(qt.creatingObject?tr(function(Ne){var rt,Rt,Ut,ln,mn,Sn;((rt=Ne.creatingObject)===null||rt===void 0?void 0:rt.type)===m.gr.Mask&&(Rt=Ne.creatingObject)!==null&&Rt!==void 0&&(Ut=Rt.maskStep)!==null&&Ut!==void 0&&(ln=Ut.points)!==null&&ln!==void 0&&ln.length&&(mn=Ne.creatingObject)!==null&&mn!==void 0&&(Sn=mn.tempMaskSteps)!==null&&Sn!==void 0&&Sn.length?Ne.creatingObject.maskStep=void 0:(Ne.creatingObject=void 0,Ne.activeObjectIndex=-1),Ne.AIAnnotation&&(Ne.prompt={})}):tr(function(Ne){Ne.activeObjectIndex=-1}))},{events:["keydown","keyup"]}),(0,he.Z)(Ze[xe.HideCurrObject].shortcut,function(Qt){qt.activeObjectIndex<0||(Qt.preventDefault(),Vn(qt.activeObjectIndex,!qt.objectList[qt.activeObjectIndex].hidden))},{exactMatch:!0}),(0,he.Z)(Ze[xe.HideCurrCategory].shortcut,function(Qt){if(!(qt.activeObjectIndex<0)){Qt.preventDefault();var Ne=qt.objectList[qt.activeObjectIndex],rt=Ne.label,Rt=Ne.hidden;Un(rt,!Rt)}},{exactMatch:!0}),(0,he.Z)(Ze[xe.DeleteCurrObject].shortcut,function(Qt){!Ge||cn!==k.je.Edit||["Delete","Backspace"].includes(Qt.key)&&qt.activeObjectIndex>-1&&wa(qt.activeObjectIndex)},{events:["keyup"]}),(0,he.Z)(["ctrl"],function(Qt){qt.activeObjectIndex>-1||Rn(function(Ne){var rt=Qt.type==="keydown";if(Ne.isCtrlPressed===rt)return Ne;Ne.isCtrlPressed=Qt.type==="keydown",Ne.focusObjectIndex=-1,Ne.foucsObjectAllIndexs=[]})},{events:["keydown","keyup"]}),(0,he.Z)(["v"],function(Qt){Rn(function(Ne){var rt=Qt.type==="keydown";if(Ne.hideCreatingObject===rt)return Ne;Ne.hideCreatingObject=Qt.type==="keydown"})},{events:["keydown","keyup"]}),(0,he.Z)(["enter"],function(){if(!qt.AIAnnotation&&qt.creatingObject&&qt.creatingObject.type===m.gr.Polygon){var Qt=qt.creatingObject,Ne=Qt.polygon,rt=Qt.type,Rt=Qt.hidden,Ut=Qt.label,ln=Qt.status,mn=Qt.color;if(Ne&&Ne.group&&Ne.group[0].length>2){var Sn={polygon:Ne,type:rt,hidden:Rt,label:Ut,status:ln,color:mn};ya(Sn)}}},{exactMatch:!0,events:["keyup"]}),{}},Xs=Qs,Os=function($e){var Ge=$e.mode,cn=$e.drawData,qt=$e.setDrawData,Fn=$e.setDrawDataWithHistory,tr=$e.setAiLabels,Rn=$e.editState,nr=$e.setEditState,Ur=$e.clientSize,lr=$e.naturalSize,Vn=$e.addObject,Un=$e.removeObject,wa=$e.updateObject,ya=$e.updateAllObject,Qt=$e.getAnnotColor,Ne=(0,G.bU)(),rt=Ne.localeText,Rt=(0,n.useCallback)(function(){var Wr;if(cn.isBatchEditing&&((Wr=cn.objectList[cn.activeObjectIndex])===null||Wr===void 0?void 0:Wr.status)!==k.TK.Commited){qt(function(Xr){Xr.objectList[Xr.activeObjectIndex].status=k.TK.Unchecked,Xr.creatingObject=void 0,Xr.prompt={},Xr.activeObjectIndex=-1});return}cn.activeObjectIndex>-1&&Un(cn.activeObjectIndex),qt(function(Xr){Xr.creatingObject=void 0,Xr.prompt={},Xr.activeObjectIndex=-1})},[cn.isBatchEditing,cn.objectList,cn.activeObjectIndex]),Ut=(0,n.useCallback)(function(Wr){var Xr;return Rn.annotsDisplayOptions.colorByCategory?Qt(Wr):cn.activeObjectIndex>-1?cn.objectList[cn.activeObjectIndex].color:((Xr=cn.creatingObject)===null||Xr===void 0?void 0:Xr.color)||Qt(Wr)},[Rn.annotsDisplayOptions.colorByCategory,Qt,cn.activeObjectIndex,cn.objectList,cn.creatingObject]),ln=(0,n.useCallback)(function(Wr){var Xr;if(((Xr=cn.creatingObject)===null||Xr===void 0?void 0:Xr.type)===m.gr.Mask){var _a,za,ma=(0,Y.G9)(Ur,lr,((_a=cn.creatingObject)===null||_a===void 0?void 0:_a.tempMaskSteps)||[],(za=cn.creatingObject)===null||za===void 0?void 0:za.maskCanvasElement);if(ma&&ma.length>0){var so=Ut(Wr),Ba={type:m.gr.Mask,label:Wr,hidden:!1,maskRle:ma,maskCanvasElement:(0,Y.ei)(ma,lr,so),conf:1,status:k.TK.Commited,color:so};cn.activeObjectIndex>-1?wa(Ba,cn.activeObjectIndex):Vn(Ba,!0)}else ma?H.ZP.warning(rt("DDSAnnotator.anno.mask.emptyWarning")):H.ZP.error(rt("DDSAnnotator.anno.mask.translateToRleError"))}else{var pa=T()({},cn.objectList[cn.activeObjectIndex]);pa.label=Wr,Rn.annotsDisplayOptions.colorByCategory&&(pa.color=Qt(Wr)),cn.isBatchEditing&&(pa.conf=1),wa(pa,cn.activeObjectIndex)}qt(function(no){no.creatingObject=void 0,no.prompt={},no.activeObjectIndex=-1}),nr(function(no){no.latestLabel=Wr})},[cn.creatingObject]),mn=(0,n.useCallback)(function(){qt(function(Wr){Wr.creatingObject=void 0,Wr.activeObjectIndex=-1})},[]),Sn=(0,n.useCallback)(function(){Fn(function(Wr){var Xr=(0,z.cloneDeep)(cn.objectList).filter(function(_a){return _a.status!==k.TK.Unchecked}).map(function(_a){return _a.status=k.TK.Commited,_a.type!==m.gr.Mask&&(_a.color=Qt(_a.label)),_a});Wr.objectList=Xr,Wr.isBatchEditing=!1,Wr.activeObjectIndex=-1,Wr.creatingObject=void 0}),tr([])},[cn.objectList]),un=(0,n.useCallback)(function(){Fn(function(Wr){var Xr=(0,z.cloneDeep)(cn.objectList).filter(function(_a){return _a.status===k.TK.Commited});Wr.objectList=Xr,Wr.isBatchEditing=!1,Wr.activeObjectIndex=-1,Wr.creatingObject=void 0})},[cn.objectList]),$r=(0,n.useCallback)(function(Wr){Ge!==k.je.Edit||Wr===cn.selectedTool||cn.isBatchEditing||qt(function(Xr){Xr.selectedTool=Wr,Wr===m.ru.Mask&&(Xr.selectedSubTool=Xr.AIAnnotation?m.jB.AutoSegmentByBox:m.jB.PenAdd),Xr.activeObjectIndex=-1,Xr.creatingObject=void 0})},[Ge,cn.selectedTool,cn.isBatchEditing]),Qr=(0,n.useCallback)(function(Wr){Ge!==k.je.Edit||Wr===cn.selectedSubTool||cn.isBatchEditing||(qt(function(Xr){Xr.selectedSubTool=Wr}),Wr===m.jB.AutoEdgeStitching&&cn.creatingObject&&ln(cn.creatingObject.label||Rn.latestLabel||""))},[Ge,cn.selectedSubTool,cn.isBatchEditing]),Sa=(0,n.useCallback)(function(Wr,Xr){qt(function(_a){_a.selectedTool=Wr,_a.selectedSubTool=Xr})},[]),ua=(0,n.useCallback)(function(){qt(function(Wr){Wr.objectList=Wr.objectList.filter(function(Xr){return Xr.status===k.TK.Commited}),Wr.AIAnnotation=!1,Wr.isBatchEditing=!1,Wr.creatingObject=void 0,Wr.prompt={}})},[]),Ia=(0,n.useCallback)(function(Wr){Ge===k.je.Edit&&qt(function(Xr){Xr.brushSize=Wr})},[Ge]),jo=function(){c.Z.info({centered:!0,closable:!0,title:rt("DDSAnnotator.smart.infoModal.title"),content:rt("DDSAnnotator.smart.infoModal.content"),okText:rt("DDSAnnotator.smart.infoModal.action"),onOk:function(){window.open("https://deepdataspace.com","_blank")}})},fo=(0,n.useCallback)(function(Wr){Ge!==k.je.Edit||cn.isBatchEditing||qt(function(Xr){Xr.AIAnnotation=Wr})},[Ge,cn.isBatchEditing]),Aa=(0,n.useCallback)(function(){var Wr,Xr,_a=((Wr=cn.creatingObject)===null||Wr===void 0?void 0:Wr.label)||"",za=Qt(_a);Vn({type:m.gr.Polygon,polygon:(Xr=cn.creatingObject)===null||Xr===void 0?void 0:Xr.polygon,label:_a,color:za,hidden:!1,status:k.TK.Commited}),qt(function(ma){ma.activeObjectIndex=ma.objectList.length-1,ma.prompt={}})},[cn.creatingObject]),xa=(0,n.useCallback)(function(){qt(function(Wr){Wr.creatingObject=void 0,Wr.activeObjectIndex=-1,Wr.prompt={}})},[]),oa=(0,n.useCallback)(function(Wr){Fn(function(Xr){var _a=(0,z.cloneDeep)(cn.objectList).map(function(za){return za.status===k.TK.Commited?za:za.conf===void 0?(za.status=k.TK.Unchecked,za):(za.status=za.confWr[1]?k.TK.Unchecked:k.TK.Checked,za)});Xr.objectList=_a})},[cn.objectList]),mo=(0,n.useCallback)(function(Wr){Fn(function(Xr){var _a=(0,z.cloneDeep)(cn.objectList).map(function(ma){return ma.status===k.TK.Commited||(ma.status=ma.conf&&ma.conf>=Wr?k.TK.Checked:k.TK.Unchecked),ma});Xr.objectList=_a;var za=_a.filter(function(ma){return ma.status===k.TK.Checked}).length;H.ZP.success(rt("DDSAnnotator.smart.tip.annotationApplied",{count:za}))})},[cn.objectList]),Sr=(0,n.useCallback)(function(Wr){nr(function(Xr){Xr.imageDisplayOptions=Wr})},[]),Tr=(0,n.useCallback)(function(Wr){nr(function(Xr){Xr.annotsDisplayOptions=Wr})},[]),Ra=(0,n.useCallback)(function(){if(!(!cn.objectList||!cn.objectList.length)){var Wr=(0,z.cloneDeep)(cn.objectList).map(function(Xr){var _a=Qt(Xr.label);return Xr.type===m.gr.Mask&&Xr.maskRle&&Xr.maskRle.length>0?T()(T()({},Xr),{},{color:_a,maskCanvasElement:(0,Y.ei)(Xr.maskRle,lr,_a)}):T()(T()({},Xr),{},{color:_a})});ya(Wr)}},[cn.objectList,Qt]);return{onDeleteCurrObject:Rt,onFinishCurrCreate:ln,onCloseAnnotationEditor:mn,onAcceptValidObjects:Sn,onAbortBatchObjects:un,selectTool:$r,selectSubTool:Qr,forceChangeTool:Sa,onExitAIAnnotation:ua,setBrushSize:Ia,activeAIAnnotation:fo,displayAIModeUnavailableModal:jo,onSaveAIPolygon:Aa,onCancelAIPolygon:xa,onChangeSkeletonConf:oa,onChangeLimitConf:mo,onChangeImageDisplayOpts:Sr,onChangeAnnotsDisplayOpts:Tr,onChangeColorMode:Ra}},Us=Os,sl=e(23671),Hl=e(53807),vs=function(tt,$e){if($e===void 0&&($e=0),typeof requestAnimationFrame=="undefined")return{id:setInterval(tt,$e)};var Ge=new Date().getTime(),cn={id:0},qt=function(){var Fn=new Date().getTime();Fn-Ge>=$e&&(tt(),Ge=new Date().getTime()),cn.id=requestAnimationFrame(qt)};return cn.id=requestAnimationFrame(qt),cn};function Ss(tt){return typeof cancelAnimationFrame=="undefined"}var Ds=function(tt){if(Ss(tt.id))return clearInterval(tt.id);cancelAnimationFrame(tt.id)};function Rs(tt,$e,Ge){var cn=Ge==null?void 0:Ge.immediate,qt=(0,sl.Z)(tt),Fn=(0,n.useRef)();(0,n.useEffect)(function(){if(!(!(0,Hl.hj)($e)||$e<0))return cn&&qt.current(),Fn.current=vs(function(){qt.current()},$e),function(){Fn.current&&Ds(Fn.current)}},[$e]);var tr=(0,n.useCallback)(function(){Fn.current&&Ds(Fn.current)},[]);return tr}var Zl=Rs,Js=40,cs=10,Et=function($e){var Ge=$e.visible,cn=$e.mode,qt=$e.drawData,Fn=$e.setDrawData,tr=$e.editState,Rn=$e.setEditState,nr=$e.clientSize,Ur=$e.contentMouse,lr=$e.categories,Vn=$e.updateRender,Un=$e.updateMouseCursor,wa=$e.objectHooksMap,ya=$e.imagePos,Qt=$e.containerMouse,Ne=$e.limitActiveObject,rt=$e.getAnnotColor,Rt=(0,n.useRef)({topMin:0,topMax:0,leftMin:0,leftMax:0}),Ut=(0,n.useState)(void 0),ln=s()(Ut,2),mn=ln[0],Sn=ln[1];Zl(function(){var xa,oa,mo,Sr,Tr=!1;(xa=Rt.current.direction)!==null&&xa!==void 0&&xa.includes("TOP")&&ya.current.yRt.current.topMin&&(ya.current.y-=8,Tr=!0),(mo=Rt.current.direction)!==null&&mo!==void 0&&mo.includes("LEFT")&&ya.current.xRt.current.leftMin&&(ya.current.x-=8,Tr=!0),Tr||Sn(void 0),Vn()},mn);var un=function(){var oa="",mo=Js,Sr=Qt.elementH-Ur.elementH-Js,Tr=Js,Ra=Qt.elementW-Ur.elementW-Js;Qt.elementY<=cs&&ya.current.y=Qt.elementH-cs&&ya.current.y>Sr&&(oa="BOTTOM"),Qt.elementX<=cs&&ya.current.x=Qt.elementW-cs&&ya.current.x>Ra&&(oa+=oa?"_RIGHT":"RIGHT"),oa?(Rt.current={direction:oa,topMax:mo,topMin:Sr,leftMax:Tr,leftMin:Ra},Sn(16)):Sn(void 0),Vn()},$r=function(){var oa;return qt.isBatchEditing&&(qt.selectedTool===m.ru.Rectangle&&tr.isCtrlPressed?oa=function(Sr){return Sr.status===k.TK.Unchecked}:oa=function(Sr){return Sr.status!==k.TK.Unchecked}),oa},Qr=function(){if((0,K.jt)(Qt)){var oa=(0,K.Z0)(nr,Ur,qt.activeObjectIndex,qt.objectList,$r());if(oa>-1&&oa===qt.activeObjectIndex){Rn(function(Xr){Xr.focusObjectIndex=oa});var mo=qt.objectList[qt.activeObjectIndex],Sr=(0,K.o7)(Ur,mo),Tr=Sr.focusEleIndex,Ra=Sr.focusEleType,Wr=Sr.focusPolygonInfo;Rn(function(Xr){Xr.focusEleIndex=Tr,Xr.focusEleType=Ra,Xr.focusPolygonInfo=Wr})}else qt.selectedTool===m.ru.Drag||qt.isBatchEditing?Rn(function(Xr){Xr.focusObjectIndex=oa,Xr.focusEleIndex=-1,Xr.focusEleType=m.Yq.None,Xr.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}}):Rn(function(Xr){Xr.focusObjectIndex=-1,Xr.focusEleIndex=-1,Xr.focusEleType=m.Yq.None,Xr.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}})}},Sa=(0,n.useCallback)(function(xa,oa){if(!(xa<0)){var mo=(oa==null?void 0:oa.button)===2;if(mo){var Sr=(0,K.RF)(nr,Ur,qt.objectList,$r());Sr.length>0?Rn(function(Tr){Tr.foucsObjectAllIndexs=Sr}):Rn(function(Tr){Tr.foucsObjectAllIndexs=[]});return}Fn(function(Tr){Tr.selectedTool===m.ru.Rectangle&&Tr.isBatchEditing&&tr.isCtrlPressed?(Tr.objectList[xa].status=k.TK.Checked,Rn(function(Ra){Ra.focusObjectIndex=-1})):(Tr.activeObjectIndex=xa,Tr.creatingObject=T()(T()({},qt.objectList[xa]),{},{currIndex:void 0,startPoint:void 0,tempMaskSteps:[],maskStep:void 0}),Tr.selectedTool!==m.ru.Drag&&Tr.objectList[xa]&&m.Zo[Tr.selectedTool]!==Tr.objectList[xa].type&&(Tr.selectedTool=m.ru.Drag))})}},[nr.width,nr.height,Ur,qt.objectList]),ua=function(){if(!tr.foucsObjectAllIndexs.length)return(0,y.jsx)(y.Fragment,{});var oa=function(Ra){Ra.stopPropagation()},mo=function(Ra){Rn(function(Wr){Wr.focusObjectIndex=Ra})},Sr=function(Ra){Sa(Ra),Rn(function(Wr){Wr.foucsObjectAllIndexs=[]})};return(0,y.jsx)("div",{className:"dds-annotator-dropdown-options",onMouseDown:oa,onMouseUp:oa,onMouseMove:oa,onContextMenu:function(Ra){return Ra.preventDefault()},children:tr.foucsObjectAllIndexs.map(function(Tr){var Ra,Wr,Xr;return(0,y.jsxs)("div",{className:"dds-annotator-dropdown-options-object",onMouseEnter:function(){return mo(Tr)},onMouseDown:function(){return Sr(Tr)},children:[(0,y.jsx)("div",{className:"dds-annotator-dropdown-options-object-dot",style:{backgroundColor:((Ra=qt.objectList[Tr])===null||Ra===void 0?void 0:Ra.color)||"#fff"}}),(Wr=qt.objectList[Tr])===null||Wr===void 0?void 0:Wr.label,qt.isBatchEditing&&" (".concat((0,ta.O)(((Xr=qt.objectList[Tr])===null||Xr===void 0?void 0:Xr.conf)||0),")")]},Tr)})})},Ia=function(oa){if(!(!Ge||tr.allowMove||tr.isRequiring||!(0,K.jt)(Ur))&&(Rn(function(Sr){Sr.foucsObjectAllIndexs=[]}),!(qt.creatingObject&&qt.activeObjectIndex>-1&&cn===k.je.Edit&&wa[qt.creatingObject.type].startEditingWhenMouseDown({event:oa,object:qt.creatingObject}))))if(qt.selectedTool!==m.ru.Drag&&!qt.isBatchEditing){var mo=m.Zo[qt.selectedTool];if(cn===k.je.Edit&&wa[mo].startCreatingWhenMouseDown({event:oa,object:qt.creatingObject,point:{x:Ur.elementX,y:Ur.elementY},basic:{hidden:!1,label:tr.latestLabel||lr[0].name,status:k.TK.Commited,color:rt(tr.latestLabel||lr[0].name)}}))return}else tr.focusObjectIndex>-1&&!Ne?Sa(tr.focusObjectIndex,oa):Rn(function(Sr){Sr.allowMove=!0})},jo=function(oa){if(!(!Ge||tr.isRequiring||tr.allowMove)){if(tr.focusObjectIndex>-1?Un("pointer"):qt.selectedTool!==m.ru.Drag?Un("crosshair"):Un("grab"),qt.creatingObject&&qt.activeObjectIndex>-1){if(cn===k.je.Edit&&wa[qt.creatingObject.type].updateEditingWhenMouseMove({event:oa,object:qt.creatingObject})){un();return}}else if(qt.selectedTool!==m.ru.Drag&&qt.activeObjectIndex<0){var mo=m.Zo[qt.selectedTool];if(cn===k.je.Edit&&wa[mo].updateCreatingWhenMouseMove({event:oa,object:qt.creatingObject})){un();return}}Qr(),Vn()}},fo=function(oa){if(Sn(void 0),!(!Ge||tr.isRequiring)){if(tr.allowMove){Rn(function(Sr){Sr.allowMove=!1});return}if(qt.creatingObject&&qt.activeObjectIndex>-1){if(cn===k.je.Edit&&wa[qt.creatingObject.type].finishEditingWhenMouseUp({event:oa,object:qt.creatingObject}))return}else if(qt.selectedTool!==m.ru.Drag&&qt.activeObjectIndex<0){var mo=m.Zo[qt.selectedTool];if(cn===k.je.Edit&&wa[mo].finishCreatingWhenMouseUp({event:oa,object:qt.creatingObject}))return}}},Aa=(0,n.useCallback)(function(xa){Rn(function(oa){oa.focusObjectIndex=xa})},[]);return(0,Jt.Z)("mousedown",function(xa){Ia(xa)}),(0,Jt.Z)("mousemove",function(xa){jo(xa)}),(0,Jt.Z)("mouseup",function(xa){fo(xa)}),{selectFocusObject:Sa,forceChangeFocusObject:Aa,mouseRightObjectsDropDownRender:ua}},No=Et,ls=e(81179),xo=e(34095),ll=function($e){var Ge=$e.visible,cn=$e.drawData,qt=$e.editState,Fn=$e.clientSize,tr=$e.imagePos,Rn=$e.containerMouse,nr=$e.canvasRef,Ur=$e.activeCanvasRef,lr=$e.imgRef,Vn=$e.objectHooksMap,Un=$e.getCustomObjectStyles,wa=function(Sn,un,$r){var Qr=[(0,Lo.a7)(un,xo.rl.DEFAULT),(0,Lo.a7)(un,xo.mh.DEFAULT),xo.s_.DEFAULT],Sa=Qr[0],ua=Qr[1],Ia=Qr[2];$r==="focus"?(Ia=xo.s_.FOCUS,Sa=(0,Lo.a7)(un,xo.rl.FOCUS),ua=(0,Lo.a7)(un,xo.mh.FOCUS)):$r==="editing"?(Ia=xo.s_.CREATING,Sa=(0,Lo.a7)(un,xo.rl.CREATING),ua=(0,Lo.a7)(un,xo.mh.CREATING)):$r==="creating"&&(Ia=xo.s_.CREATING,Sa=xo.XQ.CREATING,ua=xo.Bt.CREATING);var jo=(Un==null?void 0:Un(Sn,un))||{};return T()({strokeColor:Sa,fillColor:ua,maskAlpha:Ia,strokeDash:[0],thickness:2,pointAplha:1},jo)},ya=function(Sn){var un=wa(Sn,Sn.color,"creating");Vn[Sn.type].renderCreatingObject({object:Sn,color:Sn.color,styles:un})},Qt=function(Sn){if(!Sn.hidden){var un=(0,K.lT)(Sn,{x:-tr.current.x,y:-tr.current.y}),$r=qt.focusObjectIndex===cn.activeObjectIndex,Qr=wa(Sn,Sn.color,$r?"focus":"editing");Vn[Sn.type].renderEditingObject({object:un,color:Sn.color,styles:Qr,isFocus:$r})}},Ne=function(Sn){var un=Sn.prompt;un.maskPrompts||un.creatingMask||un.activeRectWhileLoading?Vn[m.gr.Mask].renderPrompt({prompt:un}):un.segmentationClicks&&Vn[m.gr.Polygon].renderPrompt({prompt:un})},rt=function(Sn){if(!(!Ge||!Ur.current)){(0,ls.ix)(Ur.current,{width:Rn.elementW,height:Rn.elementH}),Ur.current.getContext("2d").imageSmoothingEnabled=!1,(0,ls.UN)(Ur.current);var un=Sn||cn;un.creatingObject&&(un.activeObjectIndex>-1?Qt(un.creatingObject):ya(un.creatingObject)),Ne(un)}},Rt=function(Sn,un){var $r=(0,K.lT)(Sn,{x:-tr.current.x,y:-tr.current.y}),Qr=$r.type,Sa=wa(Sn,Sn.color,un?"focus":void 0);(0,ls.M5)(nr.current,cn.creatingObject?.6:1),Vn[Qr].renderObject({object:$r,color:Sn.color,styles:Sa,isFocus:un})},Ut=function(Sn,un){Sn.forEach(function($r,Qr){$r.hidden||Qr===un||Qr===qt.focusObjectIndex||Rt($r,!1)})},ln=function(Sn){if(!(!Ge||!nr.current||!lr.current)){(0,ls.ix)(nr.current,{width:Rn.elementW,height:Rn.elementH}),nr.current.getContext("2d").imageSmoothingEnabled=!1,(0,ls.UN)(nr.current),(0,ls.KJ)(nr.current,qt.imageDisplayOptions.brightness,qt.imageDisplayOptions.contrast,qt.imageDisplayOptions.saturate),(0,ls.AE)(nr.current,lr.current,{x:tr.current.x,y:tr.current.y,width:Fn.width,height:Fn.height}),(0,ls.ku)(nr.current);var un=Sn||cn;Ut(un.objectList,un.activeObjectIndex),rt(un),qt.focusObjectIndex>-1&&qt.focusObjectIndex!==cn.activeObjectIndex&&un.objectList[qt.focusObjectIndex]&&!un.objectList[qt.focusObjectIndex].hidden&&Rt(un.objectList[qt.focusObjectIndex],!0)}};return{updateRender:ln}},xr=ll,qs=function($e){var Ge=$e.imagePos,cn=$e.clientSize,qt=$e.preClientSize,Fn=$e.clearPreClientSize,tr=$e.naturalSize,Rn=$e.annotations,nr=$e.setAnnotations,Ur=$e.labelColors,lr=$e.drawData,Vn=$e.setDrawData,Un=$e.editState,wa=$e.setEditState,ya=$e.initObjectList,Qt=$e.updateRender,Ne=$e.clearHistory,rt=$e.objectsFilter,Rt=function($r){if(!(!cn.width||!cn.height||!tr.width||!tr.height)){if(!lr.initialized||$r)Vn(function(Sa){Sa.initialized=!0}),ya(Rn,Ur);else if(lr.initialized&&qt){var Qr=(0,K.hv)(lr,qt,cn);Vn(Qr),Qt(Qr),Fn()}}},Ut=(0,n.useCallback)(function(){Vn(T()(T()({},(0,z.cloneDeep)(k.f7)),{},{brushSize:lr.brushSize,selectedTool:lr.selectedTool,selectedSubTool:lr.selectedSubTool,AIAnnotation:lr.AIAnnotation}))},[k.f7,lr.brushSize,lr.selectedSubTool,lr.selectedTool,lr.AIAnnotation]),ln=(0,n.useCallback)(function(){wa(T()(T()({},(0,z.cloneDeep)(k.rl)),{},{imageDisplayOptions:Un.imageDisplayOptions,annotsDisplayOptions:Un.annotsDisplayOptions}))},[k.rl,Un.imageDisplayOptions,Un.annotsDisplayOptions]),mn=(0,n.useCallback)(function(un){var $r=un!=null&&un.objects?t()(un==null?void 0:un.objects):[],Qr=un&&rt?rt(un):$r;nr(Qr)},[rt]),Sn=(0,n.useCallback)(function(un,$r){var Qr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Ut(),ln(),Qr&&Ne(),$r&&mn(un)},[Ut,ln,Ne,mn]);return(0,n.useEffect)(function(){Qt()},[lr,Un,Ge.current.x,Ge.current.y]),(0,n.useEffect)(function(){Rt()},[cn.height,cn.width]),(0,n.useEffect)(function(){Rt(!0)},[Rn,tr.width,tr.height]),{rebuildDrawData:Rt,resetDataWithImageData:Sn}},ul=qs,ws=e(68270);function cl(tt){var $e=tt.categories,Ge=tt.editState,cn=(0,n.useMemo)(function(){return(0,Lo.Cj)($e.map(function(Rn){return Rn.name}))},[$e]),qt=(0,n.useRef)(0),Fn=function(nr){var Ur=.618;qt.current=nr+Ur;var lr=(nr+Ur)%1,Vn=(0,Lo.WE)(lr,.8,.95);return(0,Lo.ZT)(Vn)};(0,n.useEffect)(function(){qt.current=0},[Ge.annotsDisplayOptions.colorByCategory]);var tr=(0,n.useCallback)(function(Rn,nr){return Ge.annotsDisplayOptions.colorByCategory||nr?cn[Rn]||"#fff":Fn(qt.current)},[Ge.annotsDisplayOptions.colorByCategory,cn,Fn,qt.current]);return{labelColors:cn,getAnnotColor:tr}}var wl=e(79233),zo=e(22283),ji=Object.defineProperty,Eu=Object.getOwnPropertySymbols,Pu=Object.prototype.hasOwnProperty,yo=Object.prototype.propertyIsEnumerable,ds=(tt,$e,Ge)=>$e in tt?ji(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,ks=(tt,$e)=>{for(var Ge in $e||($e={}))Pu.call($e,Ge)&&ds(tt,Ge,$e[Ge]);if(Eu)for(var Ge of Eu($e))yo.call($e,Ge)&&ds(tt,Ge,$e[Ge]);return tt};const ba=tt=>React.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:600,height:600,fill:"none"},tt),React.createElement("path",{fill:"#FFF",d:"M0 0h600v600H0z"}),React.createElement("mask",{id:"img-broken_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#img-broken_svg__a"})),React.createElement("g",{mask:"url(#img-broken_svg__b)"},React.createElement("path",{style:{fill:"#f3f3fa"},opacity:.6,d:"M520.82 276.411c.7 7.103 1.058 14.305 1.058 21.589 0 122.04-100.54 221-224.51 221-99.159 0-183.328-63.313-213.047-151.107h-8.426c-3.4 0-6.17-2.76-6.17-6.16A6.168 6.168 0 0 1 73.608 356H84c7.18 0 13-5.82 13-13v-1c0-7.18-5.82-13-13-13h-8.95l-.023-.161H52.855c-5.68 0-10.28-4.6-10.28-10.28s4.6-10.28 10.28-10.28h20.241A221.042 221.042 0 0 1 72.858 298c0-32.629 7.187-63.608 20.086-91.486H57c-15.46 0-28-12.541-28-28.001v-1.56c0-14.913 11.67-27.11 26.373-27.953H182c5.52 0 10-4.48 10-10s-4.48-10-10-10h-29.294l.732-.605h-14.59c-10.49 0-19-8.51-19-19v-1.06c0-10.49 8.51-19 19-19h84.392C246.448 81.345 271.393 77 297.368 77c51.023 0 98.077 16.763 135.787 45H418c-7.18 0-13 5.82-13 13v1c0 7.18 5.82 13 13 13h45.166a222.478 222.478 0 0 1 23.253 29.763h21.461c7.73 0 14 6.27 14 14v.78c0 6.387-4.281 11.777-10.128 13.457H492c-8.84 0-16 7.16-16 16v5c0 8.84 7.16 16 16 16h67.901c6.952 1.741 12.097 8.028 12.097 15.521v.89c0 8.84-7.16 16-16 16z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__c)",d:"M147.977 187.468c-14.64 0-26.51 11.87-26.51 26.5h-5.34c-6.73 0-12.19 5.93-12.19 13.25s5.46 13.25 12.19 13.25h65.65c6.74 0 12.19-5.93 12.19-13.25s-5.45-13.25-12.19-13.25h-7.31c0-14.63-11.86-26.5-26.49-26.5z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__d)",d:"M313.088 148.128c0 5.25 3.91 9.5 8.74 9.5h47.07c4.83 0 8.74-4.25 8.74-9.5s-3.91-9.5-8.74-9.5h-5.24c0-10.5-8.51-19-19-19s-19 8.5-19 19h-3.83c-4.83 0-8.74 4.25-8.74 9.5z"}),React.createElement("path",{style:{fill:"#e7eaf0"},d:"M508 453.5c0 11.036-19.12 20.438-45.869 23.988-6.38 1.885-13.556 3.663-21.438 5.315A16.82 16.82 0 0 1 441 486c0 24.3-52.84 44-118 44-58.623 0-107.274-15.946-116.445-36.841C128.328 487.215 73 472.59 73 455.5c0-22.36 94.71-40.5 211.5-40.5 61.363 0 116.631 5.008 155.269 13.004C477.563 428.253 508 439.575 508 453.5z"}),React.createElement("g",{fillRule:"evenodd"},React.createElement("path",{fill:"url(#img-broken_svg__e)",d:"M356 62c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V38.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09C353.97.39 352.63 0 351.13 0c-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L347 62h9z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__f)",d:"M385 60.7c.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L387 82h9c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V58.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09c-1.19-.78-2.53-1.17-4.03-1.17-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__g)",d:"M35.34 1.66C33.67.55 31.78 0 29.68 0c-2.4 0-4.36.73-5.89 2.19-1.52 1.46-2.83 3.21-3.95 5.26h-.09L5.97 32.96c-.94.81-1.71 1.78-2.32 2.89a8.845 8.845 0 0 0-1.1 3.59l-2.2 5.09c-.11.29-.2.58-.26.87 0 0-.09.62-.09.97 0 2.04.64 3.81 1.93 5.3a9 9 0 0 0 4.83 2.93l9.92.53c.47.82 1.07 1.46 1.8 1.93s1.6.7 2.59.7c1.23 0 2.34-.44 3.34-1.32v13.41c0 3.86-.03 6.95-.09 9.25-.06 2.31-.12 4.14-.18 5.49L23.88 88h12.64c-.17-1.93-.32-3.94-.44-6.05-.11-1.75-.21-3.73-.3-5.92s-.13-4.36-.13-6.53V54.87l13.69-.18h1.67c.59 0 1.11-.02 1.58-.09.59 0 1.14-.02 1.67-.08a7.599 7.599 0 0 0 3.42-2.77c.88-1.25 1.32-2.7 1.32-4.34l-.18-1.13-.35-1.4c-.17-.53-.32-1.03-.44-1.5l-1.49-2.97c.29-1.06.44-2.05.44-2.98 0-2.28-.64-4.3-1.93-6.05s-2.93-2.98-4.92-3.69L39.07 6.05c-.82-1.82-2.07-3.28-3.73-4.39z",transform:"translate(92 370)"})),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__h)",opacity:.5,d:"M195.17 339.008 336 259.118l-180.79-56.11L3 241.048l192.17 97.96z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__i)",d:"m120.19 238.468 16.76-67-23.23-50.7L147 87.008l-137.81.8A9.242 9.242 0 0 0 0 97.058v132.16c0 5.12 4.15 9.25 9.26 9.25l103.61 4.54 7.32-4.54z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__j)",d:"M0 233.728c0 5.13 4.13 9.28 9.22 9.28h103.19l17.59-70.83-24.95-52.65L130 93.008l-120.85.8c-5.05.04-9.15 4.18-9.15 9.28v130.64z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__k)",d:"M129 177.408s-39.15 25.41-39.87 25.47c-15.59-13.61-41.17-39.55-41.17-39.55-2.95-3.01-8.11-3.11-11.19-.2L0 214.158v18.8c0 5.05 3.11 10.05 10.1 10.05h102.84l10.05-40.81 6.01-24.79z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__l)",d:"m161.114 121.588 10.21 50.9-39.15 72.66 77.97 21.2c5.34 2.12 11.32-1.05 12.51-6.63l36.14-134.09c1.03-4.82-1.95-9.58-6.76-10.81l-53.81-13.81-37.11 20.58z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__m)",d:"m153.53 125.233 10.21 50.89-37.74 67.36 77.98 21.21c5.33 2.12 11.31-1.04 12.5-6.63l34.73-128.8c1.03-4.82-1.96-9.58-6.76-10.81l-53.81-13.81-37.11 20.59z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__n)",d:"M181.344 174.368c-2-3.27-6.23-4.33-9.52-2.39l-8.09 4.16-37.65 67.37s67.22 18.7 75.12 20.47c7.91 1.76 13.7.54 14.89-5.08l3.37-11.51-38.12-73.02z",transform:"translate(180 194.992)"}),React.createElement("path",{style:{fill:"#fff"},d:"M223.104 151.697c0-9.32-7.57-16.88-16.9-16.88-9.33 0-16.89 7.56-16.89 16.88s7.56 16.88 16.89 16.88c9.33 0 16.9-7.56 16.9-16.88z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__o)",d:"m50.921 37.823 12.386-6.041 11.209 22.982-7.452-32.637-12.592 6.142L42.197 6.864l8.724 30.959z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__p)",d:"m217.598 48.895 17.888 17.184-30.945 23.817s47.929-22.37 46.996-23.709c-.925-1.335-18.57-16.992-18.57-16.992l24.134-25.537-39.503 25.236z",transform:"translate(180 194.992)"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"img-broken_svg__i",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__p",x1:198.923,y1:151.68,x2:253.588,y2:43.245,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__d",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__e",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__f",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__g",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__h",x1:"50%",y1:"30.387%",x2:"-31.215%",y2:"-60.228%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E8EBF1",stopOpacity:.24}),React.createElement("stop",{offset:1,stopColor:"#A2ABB9"})),React.createElement("linearGradient",{id:"img-broken_svg__c",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__j",x1:"137.408%",y1:"115.518%",x2:"64.225%",y2:"-9.666%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__k",x1:"93.55%",y1:"132.782%",x2:"29.55%",y2:"19.901%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__l",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__m",x1:"113.805%",y1:"123.201%",x2:"30.832%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__n",x1:"110.007%",y1:"128.49%",x2:"50%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__o",x1:92.534,y1:94.384,x2:55.523,y2:19.166,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("path",{id:"img-broken_svg__a",d:"M0 0h600v600H0z"})));var Tl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg2MDB2NjAwSDB6Ii8+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PGcgbWFzaz0idXJsKCNiKSI+PHBhdGggc3R5bGU9ImZpbGw6I2YzZjNmYSIgb3BhY2l0eT0iLjYiIGQ9Ik01MjAuODIgMjc2LjQxMWMuNyA3LjEwMyAxLjA1OCAxNC4zMDUgMS4wNTggMjEuNTg5IDAgMTIyLjA0LTEwMC41NCAyMjEtMjI0LjUxIDIyMS05OS4xNTkgMC0xODMuMzI4LTYzLjMxMy0yMTMuMDQ3LTE1MS4xMDdoLTguNDI2Yy0zLjQgMC02LjE3LTIuNzYtNi4xNy02LjE2QTYuMTY4IDYuMTY4IDAgMCAxIDczLjYwOCAzNTZIODRjNy4xOCAwIDEzLTUuODIgMTMtMTN2LTFjMC03LjE4LTUuODItMTMtMTMtMTNoLTguOTVsLS4wMjMtLjE2MUg1Mi44NTVjLTUuNjggMC0xMC4yOC00LjYtMTAuMjgtMTAuMjhzNC42LTEwLjI4IDEwLjI4LTEwLjI4aDIwLjI0MUEyMjEuMDQyIDIyMS4wNDIgMCAwIDEgNzIuODU4IDI5OGMwLTMyLjYyOSA3LjE4Ny02My42MDggMjAuMDg2LTkxLjQ4Nkg1N2MtMTUuNDYgMC0yOC0xMi41NDEtMjgtMjguMDAxdi0xLjU2YzAtMTQuOTEzIDExLjY3LTI3LjExIDI2LjM3My0yNy45NTNIMTgyYzUuNTIgMCAxMC00LjQ4IDEwLTEwcy00LjQ4LTEwLTEwLTEwaC0yOS4yOTRsLjczMi0uNjA1aC0xNC41OWMtMTAuNDkgMC0xOS04LjUxLTE5LTE5di0xLjA2YzAtMTAuNDkgOC41MS0xOSAxOS0xOWg4NC4zOTJDMjQ2LjQ0OCA4MS4zNDUgMjcxLjM5MyA3NyAyOTcuMzY4IDc3YzUxLjAyMyAwIDk4LjA3NyAxNi43NjMgMTM1Ljc4NyA0NUg0MThjLTcuMTggMC0xMyA1LjgyLTEzIDEzdjFjMCA3LjE4IDUuODIgMTMgMTMgMTNoNDUuMTY2YTIyMi40NzggMjIyLjQ3OCAwIDAgMSAyMy4yNTMgMjkuNzYzaDIxLjQ2MWM3LjczIDAgMTQgNi4yNyAxNCAxNHYuNzhjMCA2LjM4Ny00LjI4MSAxMS43NzctMTAuMTI4IDEzLjQ1N0g0OTJjLTguODQgMC0xNiA3LjE2LTE2IDE2djVjMCA4Ljg0IDcuMTYgMTYgMTYgMTZoNjcuOTAxYzYuOTUyIDEuNzQxIDEyLjA5NyA4LjAyOCAxMi4wOTcgMTUuNTIxdi44OWMwIDguODQtNy4xNiAxNi0xNiAxNnoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjYykiIGQ9Ik0xNDcuOTc3IDE4Ny40NjhjLTE0LjY0IDAtMjYuNTEgMTEuODctMjYuNTEgMjYuNWgtNS4zNGMtNi43MyAwLTEyLjE5IDUuOTMtMTIuMTkgMTMuMjVzNS40NiAxMy4yNSAxMi4xOSAxMy4yNWg2NS42NWM2Ljc0IDAgMTIuMTktNS45MyAxMi4xOS0xMy4yNXMtNS40NS0xMy4yNS0xMi4xOS0xMy4yNWgtNy4zMWMwLTE0LjYzLTExLjg2LTI2LjUtMjYuNDktMjYuNXoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjZCkiIGQ9Ik0zMTMuMDg4IDE0OC4xMjhjMCA1LjI1IDMuOTEgOS41IDguNzQgOS41aDQ3LjA3YzQuODMgMCA4Ljc0LTQuMjUgOC43NC05LjVzLTMuOTEtOS41LTguNzQtOS41aC01LjI0YzAtMTAuNS04LjUxLTE5LTE5LTE5cy0xOSA4LjUtMTkgMTloLTMuODNjLTQuODMgMC04Ljc0IDQuMjUtOC43NCA5LjV6Ii8+PHBhdGggc3R5bGU9ImZpbGw6I2U3ZWFmMCIgZD0iTTUwOCA0NTMuNWMwIDExLjAzNi0xOS4xMiAyMC40MzgtNDUuODY5IDIzLjk4OC02LjM4IDEuODg1LTEzLjU1NiAzLjY2My0yMS40MzggNS4zMTVBMTYuODIgMTYuODIgMCAwIDEgNDQxIDQ4NmMwIDI0LjMtNTIuODQgNDQtMTE4IDQ0LTU4LjYyMyAwLTEwNy4yNzQtMTUuOTQ2LTExNi40NDUtMzYuODQxQzEyOC4zMjggNDg3LjIxNSA3MyA0NzIuNTkgNzMgNDU1LjVjMC0yMi4zNiA5NC43MS00MC41IDIxMS41LTQwLjUgNjEuMzYzIDAgMTE2LjYzMSA1LjAwOCAxNTUuMjY5IDEzLjAwNEM0NzcuNTYzIDQyOC4yNTMgNTA4IDQzOS41NzUgNTA4IDQ1My41eiIvPjxnIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZmlsbD0idXJsKCNlKSIgZD0iTTM1NiA2MmMtLjEyLTEuMzYtLjIzLTIuNzgtLjMxLTQuMjYtLjA5LTEuMjMtLjE2LTIuNjMtLjIyLTQuMTctLjA2LTEuNTUtLjA5LTMuMDgtLjA5LTQuNlYzOC42Nmw5Ljc0LS4xM2gxLjE5Yy40MiAwIC43OS0uMDIgMS4xMy0uMDYuNDEgMCAuODEtLjAyIDEuMTgtLjA2YTUuMzc0IDUuMzc0IDAgMCAwIDIuNDQtMS45NWMuNjMtLjg4Ljk0LTEuOS45NC0zLjA1bC0uMTMtLjgtLjI0LS45OWMtLjEzLS4zNy0uMjMtLjczLS4zMi0xLjA1bC0xLjA2LTIuMWMuMjEtLjc0LjMxLTEuNDQuMzEtMi4xIDAtMS42MS0uNDUtMy4wMy0xLjM3LTQuMjYtLjkyLTEuMjMtMi4wOS0yLjEtMy41LTIuNmwtNy44OC0xNS4yNWE3LjIyIDcuMjIgMCAwIDAtMi42NS0zLjA5QzM1My45Ny4zOSAzNTIuNjMgMCAzNTEuMTMgMGMtMS43MSAwLTMuMTEuNTEtNC4xOSAxLjU0LTEuMDggMS4wMy0yLjAyIDIuMjctMi44MiAzLjcxaC0uMDZsLTkuODEgMTcuOTdjLS42Ny41OC0xLjIyIDEuMjYtMS42NSAyLjA0LS40NS43OC0uNzEgMS42Mi0uNzkgMi41M2wtMS41NiAzLjU4Yy0uMDguMjEtLjE0LjQxLS4xOS42MiAwIDAtLjA2LjQzLS4wNi42OCAwIDEuNDQuNDYgMi42OCAxLjM3IDMuNzRhNi41MzUgNi41MzUgMCAwIDAgMy40NCAyLjA2bDcuMDYuMzdjLjM0LjU4Ljc2IDEuMDMgMS4yOCAxLjM2LjUzLjMzIDEuMTQuNSAxLjg1LjUuODggMCAxLjY3LS4zMSAyLjM4LS45M3Y5LjQ1YzAgMi43MS0uMDMgNC44OS0uMDcgNi41MS0uMDQgMS42My0uMDggMi45Mi0uMTIgMy44NkwzNDcgNjJoOXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2YpIiBkPSJNMzg1IDYwLjdjLjg4IDAgMS42Ny0uMzEgMi4zOC0uOTN2OS40NWMwIDIuNzEtLjAzIDQuODktLjA3IDYuNTEtLjA0IDEuNjMtLjA4IDIuOTItLjEyIDMuODZMMzg3IDgyaDljLS4xMi0xLjM2LS4yMy0yLjc4LS4zMS00LjI2LS4wOS0xLjIzLS4xNi0yLjYzLS4yMi00LjE3LS4wNi0xLjU1LS4wOS0zLjA4LS4wOS00LjZWNTguNjZsOS43NC0uMTNoMS4xOWMuNDIgMCAuNzktLjAyIDEuMTMtLjA2LjQxIDAgLjgxLS4wMiAxLjE4LS4wNmE1LjM3NCA1LjM3NCAwIDAgMCAyLjQ0LTEuOTVjLjYzLS44OC45NC0xLjkuOTQtMy4wNWwtLjEzLS44LS4yNC0uOTljLS4xMy0uMzctLjIzLS43My0uMzItMS4wNWwtMS4wNi0yLjFjLjIxLS43NC4zMS0xLjQ0LjMxLTIuMSAwLTEuNjEtLjQ1LTMuMDMtMS4zNy00LjI2LS45Mi0xLjIzLTIuMDktMi4xLTMuNS0yLjZsLTcuODgtMTUuMjVhNy4yMiA3LjIyIDAgMCAwLTIuNjUtMy4wOWMtMS4xOS0uNzgtMi41My0xLjE3LTQuMDMtMS4xNy0xLjcxIDAtMy4xMS41MS00LjE5IDEuNTQtMS4wOCAxLjAzLTIuMDIgMi4yNy0yLjgyIDMuNzFoLS4wNmwtOS44MSAxNy45N2MtLjY3LjU4LTEuMjIgMS4yNi0xLjY1IDIuMDQtLjQ1Ljc4LS43MSAxLjYyLS43OSAyLjUzbC0xLjU2IDMuNThjLS4wOC4yMS0uMTQuNDEtLjE5LjYyIDAgMC0uMDYuNDMtLjA2LjY4IDAgMS40NC40NiAyLjY4IDEuMzcgMy43NGE2LjUzNSA2LjUzNSAwIDAgMCAzLjQ0IDIuMDZsNy4wNi4zN2MuMzQuNTguNzYgMS4wMyAxLjI4IDEuMzYuNTMuMzMgMS4xNC41IDEuODUuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2cpIiBkPSJNMzUuMzQgMS42NkMzMy42Ny41NSAzMS43OCAwIDI5LjY4IDBjLTIuNCAwLTQuMzYuNzMtNS44OSAyLjE5LTEuNTIgMS40Ni0yLjgzIDMuMjEtMy45NSA1LjI2aC0uMDlMNS45NyAzMi45NmMtLjk0LjgxLTEuNzEgMS43OC0yLjMyIDIuODlhOC44NDUgOC44NDUgMCAwIDAtMS4xIDMuNTlsLTIuMiA1LjA5Yy0uMTEuMjktLjIuNTgtLjI2Ljg3IDAgMC0uMDkuNjItLjA5Ljk3IDAgMi4wNC42NCAzLjgxIDEuOTMgNS4zYTkgOSAwIDAgMCA0LjgzIDIuOTNsOS45Mi41M2MuNDcuODIgMS4wNyAxLjQ2IDEuOCAxLjkzczEuNi43IDIuNTkuN2MxLjIzIDAgMi4zNC0uNDQgMy4zNC0xLjMydjEzLjQxYzAgMy44Ni0uMDMgNi45NS0uMDkgOS4yNS0uMDYgMi4zMS0uMTIgNC4xNC0uMTggNS40OUwyMy44OCA4OGgxMi42NGMtLjE3LTEuOTMtLjMyLTMuOTQtLjQ0LTYuMDUtLjExLTEuNzUtLjIxLTMuNzMtLjMtNS45MnMtLjEzLTQuMzYtLjEzLTYuNTNWNTQuODdsMTMuNjktLjE4aDEuNjdjLjU5IDAgMS4xMS0uMDIgMS41OC0uMDkuNTkgMCAxLjE0LS4wMiAxLjY3LS4wOGE3LjU5OSA3LjU5OSAwIDAgMCAzLjQyLTIuNzdjLjg4LTEuMjUgMS4zMi0yLjcgMS4zMi00LjM0bC0uMTgtMS4xMy0uMzUtMS40Yy0uMTctLjUzLS4zMi0xLjAzLS40NC0xLjVsLTEuNDktMi45N2MuMjktMS4wNi40NC0yLjA1LjQ0LTIuOTggMC0yLjI4LS42NC00LjMtMS45My02LjA1cy0yLjkzLTIuOTgtNC45Mi0zLjY5TDM5LjA3IDYuMDVjLS44Mi0xLjgyLTIuMDctMy4yOC0zLjczLTQuMzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5MiAzNzApIi8+PC9nPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNoKSIgb3BhY2l0eT0iLjUiIGQ9Ik0xOTUuMTcgMzM5LjAwOCAzMzYgMjU5LjExOGwtMTgwLjc5LTU2LjExTDMgMjQxLjA0OGwxOTIuMTcgOTcuOTZ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaSkiIGQ9Im0xMjAuMTkgMjM4LjQ2OCAxNi43Ni02Ny0yMy4yMy01MC43TDE0NyA4Ny4wMDhsLTEzNy44MS44QTkuMjQyIDkuMjQyIDAgMCAwIDAgOTcuMDU4djEzMi4xNmMwIDUuMTIgNC4xNSA5LjI1IDkuMjYgOS4yNWwxMDMuNjEgNC41NCA3LjMyLTQuNTR6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaikiIGQ9Ik0wIDIzMy43MjhjMCA1LjEzIDQuMTMgOS4yOCA5LjIyIDkuMjhoMTAzLjE5bDE3LjU5LTcwLjgzLTI0Ljk1LTUyLjY1TDEzMCA5My4wMDhsLTEyMC44NS44Yy01LjA1LjA0LTkuMTUgNC4xOC05LjE1IDkuMjh2MTMwLjY0eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI2spIiBkPSJNMTI5IDE3Ny40MDhzLTM5LjE1IDI1LjQxLTM5Ljg3IDI1LjQ3Yy0xNS41OS0xMy42MS00MS4xNy0zOS41NS00MS4xNy0zOS41NS0yLjk1LTMuMDEtOC4xMS0zLjExLTExLjE5LS4yTDAgMjE0LjE1OHYxOC44YzAgNS4wNSAzLjExIDEwLjA1IDEwLjEgMTAuMDVoMTAyLjg0bDEwLjA1LTQwLjgxIDYuMDEtMjQuNzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbCkiIGQ9Im0xNjEuMTE0IDEyMS41ODggMTAuMjEgNTAuOS0zOS4xNSA3Mi42NiA3Ny45NyAyMS4yYzUuMzQgMi4xMiAxMS4zMi0xLjA1IDEyLjUxLTYuNjNsMzYuMTQtMTM0LjA5YzEuMDMtNC44Mi0xLjk1LTkuNTgtNi43Ni0xMC44MWwtNTMuODEtMTMuODEtMzcuMTEgMjAuNTh6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbSkiIGQ9Im0xNTMuNTMgMTI1LjIzMyAxMC4yMSA1MC44OS0zNy43NCA2Ny4zNiA3Ny45OCAyMS4yMWM1LjMzIDIuMTIgMTEuMzEtMS4wNCAxMi41LTYuNjNsMzQuNzMtMTI4LjhjMS4wMy00LjgyLTEuOTYtOS41OC02Ljc2LTEwLjgxbC01My44MS0xMy44MS0zNy4xMSAyMC41OXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNuKSIgZD0iTTE4MS4zNDQgMTc0LjM2OGMtMi0zLjI3LTYuMjMtNC4zMy05LjUyLTIuMzlsLTguMDkgNC4xNi0zNy42NSA2Ny4zN3M2Ny4yMiAxOC43IDc1LjEyIDIwLjQ3YzcuOTEgMS43NiAxMy43LjU0IDE0Ljg5LTUuMDhsMy4zNy0xMS41MS0zOC4xMi03My4wMnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIHN0eWxlPSJmaWxsOiNmZmYiIGQ9Ik0yMjMuMTA0IDE1MS42OTdjMC05LjMyLTcuNTctMTYuODgtMTYuOS0xNi44OC05LjMzIDAtMTYuODkgNy41Ni0xNi44OSAxNi44OHM3LjU2IDE2Ljg4IDE2Ljg5IDE2Ljg4YzkuMzMgMCAxNi45LTcuNTYgMTYuOS0xNi44OHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNvKSIgZD0ibTUwLjkyMSAzNy44MjMgMTIuMzg2LTYuMDQxIDExLjIwOSAyMi45ODItNy40NTItMzIuNjM3LTEyLjU5MiA2LjE0Mkw0Mi4xOTcgNi44NjRsOC43MjQgMzAuOTU5eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI3ApIiBkPSJtMjE3LjU5OCA0OC44OTUgMTcuODg4IDE3LjE4NC0zMC45NDUgMjMuODE3czQ3LjkyOS0yMi4zNyA0Ni45OTYtMjMuNzA5Yy0uOTI1LTEuMzM1LTE4LjU3LTE2Ljk5Mi0xOC41Ny0xNi45OTJsMjQuMTM0LTI1LjUzNy0zOS41MDMgMjUuMjM2eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PC9nPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iaSIgeDE9IjE3OC41NzklIiB5MT0iMTE0LjQxJSIgeDI9Ii02Ny42JSIgeTI9Ii0yMS42MzklIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InAiIHgxPSIxOTguOTIzIiB5MT0iMTUxLjY4IiB4Mj0iMjUzLjU4OCIgeTI9IjQzLjI0NSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJkIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDE9IjE0NC41ODglIiB5MT0iOTguOCUiIHgyPSIyOS41MTYlIiB5Mj0iMTAwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0UwRTVFRiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTBFNUVGIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImYiIHgxPSIxNDQuNTg4JSIgeTE9Ijk4LjglIiB4Mj0iMjkuNTE2JSIgeTI9IjEwMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNFMEU1RUYiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0UwRTVFRiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaCIgeDE9IjUwJSIgeTE9IjMwLjM4NyUiIHgyPSItMzEuMjE1JSIgeTI9Ii02MC4yMjglIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRThFQkYxIiBzdG9wLW9wYWNpdHk9Ii4yNCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaiIgeDE9IjEzNy40MDglIiB5MT0iMTE1LjUxOCUiIHgyPSI2NC4yMjUlIiB5Mj0iLTkuNjY2JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJrIiB4MT0iOTMuNTUlIiB5MT0iMTMyLjc4MiUiIHgyPSIyOS41NSUiIHkyPSIxOS45MDElIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImwiIHgxPSIxNzguNTc5JSIgeTE9IjExNC40MSUiIHgyPSItNjcuNiUiIHkyPSItMjEuNjM5JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJtIiB4MT0iMTEzLjgwNSUiIHkxPSIxMjMuMjAxJSIgeDI9IjMwLjgzMiUiIHkyPSIwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJuIiB4MT0iMTEwLjAwNyUiIHkxPSIxMjguNDklIiB4Mj0iNTAlIiB5Mj0iMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNBMkFCQjkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFN0VBRjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibyIgeDE9IjkyLjUzNCIgeTE9Ijk0LjM4NCIgeDI9IjU1LjUyMyIgeTI9IjE5LjE2NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoNjAwdjYwMEgweiIvPjwvZGVmcz48L3N2Zz4=",rs=function($e){var Ge=$e.url,cn=Ge===void 0?"":Ge,qt=$e.imgRef,Fn=$e.canvasRef,tr=$e.activeCanvasRef,Rn=$e.clientSize,nr=$e.imagePos,Ur=$e.onLoad,lr=(0,n.useState)(!1),Vn=s()(lr,2),Un=Vn[0],wa=Vn[1],ya=(0,n.useState)(!0),Qt=s()(ya,2),Ne=Qt[0],rt=Qt[1],Rt=function(un){rt(!1),Ur(un)},Ut=function(un){un.stopPropagation(),qt!=null&&qt.current&&(qt.current.src=cn,rt(!0),wa(!1))},ln=function(un){var $r=un.target;$r.src=Tl,rt(!1),wa(!0)},mn=cn.indexOf("aliyuncs.com")>-1?"anonymous":void 0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{ref:qt,src:cn,alt:"pic",crossOrigin:mn,style:{width:Rn.width,height:Rn.height},onLoad:Rt,onError:ln}),(0,y.jsx)("canvas",{ref:Fn,draggable:!1,onContextMenu:function(un){return un.preventDefault()},className:"dds-annotator-imageview-canvas"}),(0,y.jsx)("canvas",{ref:tr,draggable:!1,onContextMenu:function(un){return un.preventDefault()},className:"dds-annotator-imageview-canvas"}),Un&&(0,y.jsxs)("div",{className:"dds-annotator-imageview-reload-cover",onClick:Ut,onDoubleClick:Ut,style:{left:nr.current.x,top:nr.current.y,width:Rn.width,height:Rn.height},children:[(0,y.jsx)("img",{src:Tl,alt:"error-pic"}),(0,y.jsx)("div",{className:"content-box",children:(0,y.jsx)(l.ZP,{ghost:!0,type:"primary",className:"reload-trigger",shape:"circle",size:"small",icon:(0,y.jsx)(zo.Z,{})})})]}),Ne&&(0,y.jsx)("div",{className:"dds-annotator-imageview-reload-cover",style:{backgroundColor:"#f6f6f6",left:nr.current.x,top:nr.current.y,width:Rn.width,height:Rn.height},children:(0,y.jsx)(wl.Z,{className:"reload-trigger"})})]})},dl=function($e){var Ge=$e.isSeperate,cn=$e.visible,qt=$e.categories,Fn=$e.list,tr=$e.current,Rn=$e.pagination,nr=$e.mode,Ur=$e.actionElements,lr=$e.onPrev,Vn=$e.onNext,Un=$e.onCancel,wa=$e.onSave,ya=$e.onEnterEdit,Qt=$e.onReviewResult,Ne=$e.setCategories,rt=$e.onAutoSave,Rt=$e.objectsFilter,Ut=(0,G.bU)(),ln=Ut.localeText,mn=c.Z.useModal(),Sn=s()(mn,2),un=Sn[0],$r=Sn[1],Qr=(0,C.x)([]),Sa=s()(Qr,2),ua=Sa[0],Ia=Sa[1],jo=(0,C.x)((0,z.cloneDeep)(k.rl)),fo=s()(jo,2),Aa=fo[0],xa=fo[1],oa=(0,C.x)((0,z.cloneDeep)(k.f7)),mo=s()(oa,2),Sr=mo[0],Tr=mo[1],Ra=(0,n.useRef)(null),Wr=(0,n.useRef)(null),Xr=(0,n.useRef)(null),_a=(0,n.useMemo)(function(){var xs=[m.jB.AutoEdgeStitching,m.jB.AutoSegmentByStroke,m.jB.BrushAdd,m.jB.BrushErase].includes(Sr.selectedSubTool);return Sr.creatingObject&&Sr.activeObjectIndex>-1&&Sr.creatingObject.type===m.gr.Mask?xs:Sr.selectedTool!==m.ru.Drag&&!Sr.isBatchEditing?Sr.selectedTool===m.ru.Mask&&xs:!1},[Sr.selectedTool,Sr.selectedSubTool]),za=(0,n.useMemo)(function(){return Sr.selectedTool!==m.ru.Drag&&!_a},[Sr.selectedTool,_a]),ma=cl({categories:qt,editState:Aa}),so=ma.labelColors,Ba=ma.getAnnotColor,pa=ka({visible:cn,allowMove:Aa.allowMove,isRequiring:Aa.isRequiring,showReferenceLine:za,minPadding:{top:30,left:80},isCustomCursorActive:_a,cursorSize:Sr.brushSize}),no=pa.scale,Ha=pa.naturalSize,Ao=pa.clientSize,oo=pa.containerMouse,Oa=pa.contentMouse,$a=pa.imagePos,ui=pa.onLoadImg,Ya=pa.onZoomIn,hi=pa.onZoomOut,ai=pa.onReset,Ja=pa.CanvasContainer,Uo=pa.isMousePress,Do=kr(Ao),Po=s()(Do,2),Xa=Po[0],Jo=Po[1],Si=Fo({clientSize:Ao,naturalSize:Ha,setDrawData:Tr,onAutoSave:rt}),mi=Si.undo,qo=Si.redo,Ki=Si.clearHistory,as=Si.hadChangeRecord,os=Si.updateHistory,qi=Si.setDrawDataWithHistory,Zi=ot({annotations:ua,setAnnotations:Ia,clientSize:Ao,naturalSize:Ha,drawData:Sr,setDrawData:Tr,setDrawDataWithHistory:qi,editState:Aa,setEditState:xa,mode:nr}),Ko=Zi.addObject,j=Zi.removeObject,ae=Zi.removeAllObjects,je=Zi.initObjectList,Ke=Zi.updateAllObject,ht=Zi.updateObject,en=Zi.updateObjectWithoutHistory,ir=Zi.updateAllObjectWithoutHistory,ao=A({visible:cn,mode:nr,categories:qt,setCategories:Ne,drawData:Sr,setDrawData:Tr,editState:Aa,updateObjectWithoutHistory:en,updateAllObjectWithoutHistory:ir}),po=ao.aiLabels,fi=ao.setAiLabels,Vi=ao.onChangeObjectHidden,Cs=ao.onChangeCategoryHidden,zs=ao.onChangeActiveClass,Pl=ao.onCreateCategory,Ui=Mt({mode:nr,list:Fn,current:tr,modal:un,drawData:Sr,setDrawData:Tr,setDrawDataWithHistory:qi,editState:Aa,setEditState:xa,naturalSize:Ha,clientSize:Ao,imagePos:$a,containerMouse:oo,onCancel:Un,onSave:wa,updateAllObject:Ke,hadChangeRecord:as,latestLabel:Aa.latestLabel,getAnnotColor:Ba}),Yl=Ui.onAiAnnotation,Cu=Ui.onSaveAnnotations,vu=Ui.onCancelAnnotations,xu=Ui.onReject,Iu=Ui.onAccept,el=Fl({topCanvas:Wr.current,editState:Aa,drawData:Sr}),es=el.updateMouseCursor,Fa=Us({mode:nr,drawData:Sr,setDrawData:Tr,setDrawDataWithHistory:qi,setAiLabels:fi,editState:Aa,setEditState:xa,getAnnotColor:Ba,clientSize:Ao,naturalSize:Ha,addObject:Ko,removeObject:j,updateObject:ht,updateAllObject:Ke}),gs=Fa.onDeleteCurrObject,Nu=Fa.onFinishCurrCreate,Gl=Fa.onCloseAnnotationEditor,Au=Fa.onAcceptValidObjects,hc=Fa.onAbortBatchObjects,Bs=Fa.selectTool,_s=Fa.selectSubTool,Ju=Fa.forceChangeTool,Ou=Fa.onExitAIAnnotation,tl=Fa.setBrushSize,nl=Fa.activeAIAnnotation,nu=Fa.onSaveAIPolygon,Hs=Fa.onCancelAIPolygon,Cl=Fa.onChangeSkeletonConf,Uu=Fa.onChangeLimitConf,qu=Fa.onChangeAnnotsDisplayOpts,Ru=Fa.onChangeImageDisplayOpts,ec=Fa.onChangeColorMode,ku=(0,ws.Vr)({imgRef:Xr,editState:Aa,clientSize:Ao,naturalSize:Ha,contentMouse:Oa,imagePos:$a,containerMouse:oo,canvasRef:Ra,activeCanvasRef:Wr,setEditState:xa,drawData:Sr,setDrawData:Tr,setDrawDataWithHistory:qi,updateHistory:os,updateObject:ht,addObject:Ko,updateMouseCursor:es,aiLabels:po,onAiAnnotation:Yl,getAnnotColor:Ba}),Wu=ku.objectHooksMap,_u=xr({visible:cn,drawData:Sr,editState:Aa,clientSize:Ao,imagePos:$a,containerMouse:oo,canvasRef:Ra,activeCanvasRef:Wr,imgRef:Xr,objectHooksMap:Wu}),gu=_u.updateRender,Ll=No({visible:cn,mode:nr,drawData:Sr,setDrawData:Tr,editState:Aa,setEditState:xa,clientSize:Ao,contentMouse:Oa,categories:qt,updateRender:gu,updateMouseCursor:es,objectHooksMap:Wu,imagePos:$a,containerMouse:oo,getAnnotColor:Ba}),kl=Ll.selectFocusObject,Nl=Ll.forceChangeFocusObject,tc=Ll.mouseRightObjectsDropDownRender;Xs({visible:cn,mode:nr,drawData:Sr,isMousePress:Uo,setDrawData:Tr,setEditState:xa,onSaveAnnotations:Cu,onAccept:Iu,onReject:xu,onChangeObjectHidden:Vi,onChangeCategoryHidden:Cs,removeObject:j,addObject:Ko});var Hu=ul({imagePos:$a,clientSize:Ao,preClientSize:Xa,clearPreClientSize:Jo,naturalSize:Ha,annotations:ua,setAnnotations:Ia,labelColors:so,drawData:Sr,setDrawData:Tr,editState:Aa,setEditState:xa,initObjectList:je,updateRender:gu,clearHistory:Ki,objectsFilter:Rt}),Du=Hu.resetDataWithImageData,nc=(0,n.useCallback)(function(){tr>0&&tr-1&&Sr.objectList[Aa.focusObjectIndex]&&!Sr.objectList[Aa.focusObjectIndex].hidden&&Aa.focusEleIndex>-1&&Aa.focusEleType===m.Yq.Circle){var ml,Rl,Il=(ml=Sr.objectList[Aa.focusObjectIndex].keypoints)===null||ml===void 0||(Rl=ml.points)===null||Rl===void 0?void 0:Rl[Aa.focusEleIndex];if(Il)return(0,y.jsx)(Nt,{index:Aa.focusEleIndex,targetElement:Il,imagePos:$a.current})}return(0,y.jsx)(y.Fragment,{})},rc=nr===k.je.Edit&&!(Sr.isBatchEditing&&Sr.selectedTool===m.ru.Skeleton)&&!(Sr.selectedTool===m.ru.Polygon&&Sr.AIAnnotation&&Sr.activeObjectIndex===-1),bc=Sr.selectedTool===m.ru.Mask||Sr.creatingObject&&Sr.creatingObject.type===m.gr.Mask,ac=(0,n.useMemo)(function(){return Sr.objectList.filter(function(xs){return xs.status===k.TK.Commited})},[Sr.isBatchEditing,Sr.objectList]);if(cn){var wu,Ts,xl;return(0,y.jsxs)("div",{className:"dds-annotator dds-annotator-editor",children:[(0,y.jsx)(F,{leftTools:[].concat(t()(Ge?[]:[{title:ln("DDSAnnotator.exit"),icon:(0,y.jsx)(Ma.Z,{}),onClick:function(){return vu()}}]),[{customElement:yc}]),rightTools:Mc,children:Rn&&Rn.show&&(0,y.jsx)(ja,{list:Fn,current:tr,total:Rn.total,customText:Rn.customText,customDisableNext:Rn.customDisableNext,onPrev:lr,onNext:Vn})}),(0,y.jsxs)("div",{className:"editor-container",children:[(0,y.jsx)("div",{className:"left-slider"}),(0,y.jsxs)("div",{className:"center-content",children:[(0,y.jsx)(h.Z,{dropdownRender:tc,trigger:["contextMenu"],open:Aa.foucsObjectAllIndexs.length>0,children:Ja({className:"edit-wrap",children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(rs,{url:(wu=Fn[tr])===null||wu===void 0?void 0:wu.urlFullRes,imgRef:Xr,canvasRef:Ra,activeCanvasRef:Wr,clientSize:Ao,imagePos:$a,onLoad:ui}),Yu()]})})}),rc&&(0,y.jsx)(Ua,{hideTitle:((Ts=Sr.creatingObject)===null||Ts===void 0?void 0:Ts.type)===m.gr.Mask,allowAddCategory:Ge,latestLabel:Aa.latestLabel,categories:qt,currEditObject:Sr.objectList[Sr.activeObjectIndex]||Sr.selectedTool===m.ru.Mask&&Sr.creatingObject,onCreateCategory:Pl,onDeleteCurrObject:gs,onFinishCurrCreate:Nu,onCloseAnnotationEditor:Gl}),(0,y.jsx)($n,{selectedTool:Sr.selectedTool,selectedSubTool:Sr.selectedSubTool,isBatchEditing:Sr.isBatchEditing,AIAnnotation:Sr.AIAnnotation,hasPolygonPreds:!!((xl=Sr.creatingObject)!==null&&xl!==void 0&&xl.polygon),isCtrlPressed:Aa.isCtrlPressed,limitConf:Sr.limitConf,aiLabels:po,naturalSize:Ha,categories:qt,setAiLabels:fi,forceChangeTool:Ju,onAiAnnotation:Yl,onExitAIAnnotation:Ou,onSaveAIPolygon:nu,onCancelAIPolygon:Hs,onChangeConfidenceRange:Cl,onChangeLimitConf:Uu,onAcceptValidObjects:Au,onCancelBatchEdit:hc,onCreateCategory:Pl}),(0,y.jsx)(Br,{scale:no,onZoomIn:Ya,onZoomOut:hi,onReset:ai,displayOption:Aa.imageDisplayOptions,colorByCategory:Aa.annotsDisplayOptions.colorByCategory,onChangeImageDisplayOpts:Ru,onChangeAnnotsDisplayOpts:qu}),nr===k.je.Edit&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(at,{selectedTool:Sr.selectedTool,isAIAnnotationActive:Sr.AIAnnotation,onChangeSelectedTool:Bs,onActiveAIAnnotation:nl,undo:mi,redo:qo,repeatPrevious:nc,deleteAll:ae}),bc&&(0,y.jsx)(ol,{selectedSubTool:Sr.selectedSubTool,isAIAnnotationActive:Sr.AIAnnotation,isSegEverythingAvailable:Sr.objectList.length===0&&!Sr.creatingObject||Sr.isBatchEditing,isManualAvailable:!Sr.prompt.segmentationMask&&!(Sr.prompt.maskPrompts&&Sr.prompt.maskPrompts.length>0)&&!Sr.isBatchEditing,brushSize:Sr.brushSize,onChangeSubTool:_s,onChangeBrushSize:tl,onActiveAIAnnotation:nl})]})]}),(0,y.jsx)(Be,{supportEdit:nr===k.je.Edit,className:"right-slider",objects:ac,labelColors:so,activeObjectIndex:Sr.activeObjectIndex,activeClassName:Sr.activeClassName,onFocusObject:Nl,onActiveObject:kl,onChangeObjectHidden:Vi,onChangeCategoryHidden:Cs,onDeleteObject:j,onChangeActiveClassName:zs})]}),(0,y.jsx)("div",{onMouseDown:function(ml){ml.stopPropagation()},children:$r})]})}else return(0,y.jsx)(y.Fragment,{})},fl=dl,Ul=e(16962),Sl=e.n(Ul),Lu=Object.defineProperty,ql=Object.getOwnPropertySymbols,Ho=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,El=(tt,$e,Ge)=>$e in tt?Lu(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,Es=(tt,$e)=>{for(var Ge in $e||($e={}))Ho.call($e,Ge)&&El(tt,Ge,$e[Ge]);if(ql)for(var Ge of ql($e))fu.call($e,Ge)&&El(tt,Ge,$e[Ge]);return tt};const Ws=tt=>n.createElement("svg",Es({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"m8.379 7.648-4.56-5.825a.283.283 0 0 0-.224-.11h-1.38a.142.142 0 0 0-.113.231L6.842 8l-4.74 6.055a.143.143 0 0 0 .112.23h1.38a.289.289 0 0 0 .226-.109l4.559-5.823a.571.571 0 0 0 0-.705Zm5.428 0L9.248 1.823a.283.283 0 0 0-.225-.11h-1.38a.142.142 0 0 0-.112.231L12.27 8l-4.74 6.055a.143.143 0 0 0 .113.23h1.38a.289.289 0 0 0 .225-.109l4.56-5.823a.571.571 0 0 0 0-.705Z",fill:"#fff",opacity:.85}));var vl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTguMzc5IDcuNjQ4LTQuNTYtNS44MjVhLjI4My4yODMgMCAwIDAtLjIyNC0uMTFoLTEuMzhhLjE0Mi4xNDIgMCAwIDAtLjExMy4yMzFMNi44NDIgOGwtNC43NCA2LjA1NWEuMTQzLjE0MyAwIDAgMCAuMTEyLjIzaDEuMzhhLjI4OS4yODkgMCAwIDAgLjIyNi0uMTA5bDQuNTU5LTUuODIzYS41NzEuNTcxIDAgMCAwIDAtLjcwNVptNS40MjggMEw5LjI0OCAxLjgyM2EuMjgzLjI4MyAwIDAgMC0uMjI1LS4xMWgtMS4zOGEuMTQyLjE0MiAwIDAgMC0uMTEyLjIzMUwxMi4yNyA4bC00Ljc0IDYuMDU1YS4xNDMuMTQzIDAgMCAwIC4xMTMuMjNoMS4zOGEuMjg5LjI4OSAwIDAgMCAuMjI1LS4xMDlsNC41Ni01LjgyM2EuNTcxLjU3MSAwIDAgMCAwLS43MDVaIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiLz48L3N2Zz4=",It=Object.defineProperty,Pi=Object.getOwnPropertySymbols,jl=Object.prototype.hasOwnProperty,Ji=Object.prototype.propertyIsEnumerable,Go=(tt,$e,Ge)=>$e in tt?It(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):tt[$e]=Ge,bo=(tt,$e)=>{for(var Ge in $e||($e={}))jl.call($e,Ge)&&Go(tt,Ge,$e[Ge]);if(Pi)for(var Ge of Pi($e))Ji.call($e,Ge)&&Go(tt,Ge,$e[Ge]);return tt};const eu=tt=>n.createElement("svg",bo({viewBox:"0 0 14 14",fill:"#595959",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M6.887 9.657a.143.143 0 0 0 .225 0l2-2.53A.142.142 0 0 0 9 6.897H7.677V.854A.143.143 0 0 0 7.534.71H6.462a.143.143 0 0 0-.143.143v6.041H5a.142.142 0 0 0-.112.23l2 2.532Zm6.649-.625h-1.072a.143.143 0 0 0-.143.143v2.75H1.678v-2.75a.143.143 0 0 0-.142-.143H.464a.143.143 0 0 0-.143.143v3.536a.57.57 0 0 0 .572.572h12.214a.57.57 0 0 0 .571-.572V9.175a.143.143 0 0 0-.142-.143Z"}));var tu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9IiM1OTU5NTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuODg3IDkuNjU3YS4xNDMuMTQzIDAgMCAwIC4yMjUgMGwyLTIuNTNBLjE0Mi4xNDIgMCAwIDAgOSA2Ljg5N0g3LjY3N1YuODU0QS4xNDMuMTQzIDAgMCAwIDcuNTM0LjcxSDYuNDYyYS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjYuMDQxSDVhLjE0Mi4xNDIgMCAwIDAtLjExMi4yM2wyIDIuNTMyWm02LjY0OS0uNjI1aC0xLjA3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YyLjc1SDEuNjc4di0yLjc1YS4xNDMuMTQzIDAgMCAwLS4xNDItLjE0M0guNDY0YS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjMuNTM2YS41Ny41NyAwIDAgMCAuNTcyLjU3MmgxMi4yMTRhLjU3LjU3IDAgMCAwIC41NzEtLjU3MlY5LjE3NWEuMTQzLjE0MyAwIDAgMC0uMTQyLS4xNDNaIi8+PC9zdmc+",ys=function($e){var Ge,cn,qt=$e.visible,Fn=$e.categories,tr=$e.list,Rn=$e.current,nr=$e.onPrev,Ur=$e.onNext,lr=$e.onCancel,Vn=$e.objectsFilter,Un=$e.getCustomObjectStyles,wa=$e.displayAnnotationType,ya=$e.displayOptionsResult,Qt=(0,C.x)([]),Ne=s()(Qt,2),rt=Ne[0],Rt=Ne[1],Ut=(0,C.x)((0,z.cloneDeep)(k.rl)),ln=s()(Ut,2),mn=ln[0],Sn=ln[1],un=(0,C.x)((0,z.cloneDeep)(k.f7)),$r=s()(un,2),Qr=$r[0],Sa=$r[1],ua=(0,n.useRef)(null),Ia=(0,n.useRef)(null),jo=(0,n.useRef)(null),fo=ka({visible:qt,allowMove:mn.allowMove,isRequiring:mn.isRequiring,minPadding:{top:120,left:300},cursorSize:Qr.brushSize,showReferenceLine:!1,isCustomCursorActive:!1,onClickMaskBg:lr}),Aa=fo.scale,xa=fo.naturalSize,oa=fo.clientSize,mo=fo.containerMouse,Sr=fo.contentMouse,Tr=fo.imagePos,Ra=fo.onLoadImg,Wr=fo.onZoomIn,Xr=fo.onZoomOut,_a=fo.CanvasContainer,za=kr(oa),ma=s()(za,2),so=ma[0],Ba=ma[1],pa=Fo({clientSize:oa,naturalSize:xa,setDrawData:Sa}),no=pa.clearHistory,Ha=pa.updateHistory,Ao=pa.setDrawDataWithHistory,oo=ot({annotations:rt,setAnnotations:Rt,clientSize:oa,naturalSize:xa,drawData:Qr,setDrawData:Sa,setDrawDataWithHistory:Ao,editState:mn,setEditState:Sn,mode:k.je.View,displayAnnotationType:wa}),Oa=oo.addObject,$a=oo.initObjectList,ui=oo.updateObject,Ya=cl({categories:Fn,editState:mn}),hi=Ya.labelColors,ai=Ya.getAnnotColor,Ja=Fl({topCanvas:Ia.current,editState:mn,drawData:Qr}),Uo=Ja.updateMouseCursor,Do=(0,ws.Vr)({imgRef:jo,editState:mn,clientSize:oa,naturalSize:xa,contentMouse:Sr,imagePos:Tr,containerMouse:mo,canvasRef:ua,activeCanvasRef:Ia,setEditState:Sn,drawData:Qr,setDrawData:Sa,setDrawDataWithHistory:Ao,updateHistory:Ha,updateObject:ui,addObject:Oa,updateMouseCursor:Uo,displayOptionsResult:ya,getAnnotColor:ai}),Po=Do.objectHooksMap,Xa=xr({visible:qt,drawData:Qr,editState:mn,clientSize:oa,imagePos:Tr,containerMouse:mo,canvasRef:ua,activeCanvasRef:Ia,imgRef:jo,objectHooksMap:Po,getCustomObjectStyles:Un}),Jo=Xa.updateRender;No({visible:qt,mode:k.je.View,drawData:Qr,setDrawData:Sa,editState:mn,setEditState:Sn,clientSize:oa,contentMouse:Sr,categories:Fn,updateRender:Jo,updateMouseCursor:Uo,objectHooksMap:Po,imagePos:Tr,containerMouse:mo,getAnnotColor:ai,limitActiveObject:!0}),(0,n.useEffect)(function(){document.body.style.overflow=qt?"hidden":"overlay"},[qt]);var Si=ul({imagePos:Tr,clientSize:oa,preClientSize:so,clearPreClientSize:Ba,naturalSize:xa,annotations:rt,setAnnotations:Rt,labelColors:hi,drawData:Qr,setDrawData:Sa,editState:mn,setEditState:Sn,initObjectList:$a,updateRender:Jo,clearHistory:no,objectsFilter:Vn}),mi=Si.resetDataWithImageData,qo=Si.rebuildDrawData;(0,n.useEffect)(function(){mi(tr[Rn],qt)},[qt,tr[Rn],Vn]),(0,n.useEffect)(function(){qo(!0)},[wa,ya,Un]);var Ki=(0,n.useState)(!0),as=s()(Ki,2),os=as[0],qi=as[1],Zi=(0,n.useCallback)(function(){qi(function(je){return!je})},[]),Ko=function(){var je=B()(I()().mark(function Ke(ht){var en,ir;return I()().wrap(function(po){for(;;)switch(po.prev=po.next){case 0:return ht.preventDefault(),ht.stopPropagation(),en=H.ZP.loading("Creating image...",6e4),ir=function(){return new Promise(function(Vi,Cs){setTimeout(function(){try{if(!ua.current)return;var zs=ua.current.toDataURL(),Pl=document.createElement("a");Pl.setAttribute("download","".concat(tr[Rn].id,".png")),Pl.setAttribute("href",zs),Pl.click(),en(),Vi(null)}catch(Ui){Cs(Ui)}},500)})},po.prev=4,Sn(function(fi){fi.focusObjectIndex=-1}),Jo(),po.next=9,ir();case 9:po.next=16;break;case 11:po.prev=11,po.t0=po.catch(4),console.error(po.t0),en(),H.ZP.error("Create image fail, please try again");case 16:case"end":return po.stop()}},Ke,null,[[4,11]])}));return function(ht){return je.apply(this,arguments)}}();(0,he.Z)(Ze[xe.PreviousImage].shortcut,function(){qt&&(nr==null||nr())},{exactMatch:!0}),(0,he.Z)(Ze[xe.NextImage].shortcut,function(){qt&&(Ur==null||Ur())},{exactMatch:!0});var j=function(){if(mn.focusObjectIndex>-1&&Qr.objectList[mn.focusObjectIndex]&&!Qr.objectList[mn.focusObjectIndex].hidden&&mn.focusEleIndex>-1&&mn.focusEleType===m.Yq.Circle){var Ke,ht,en=(Ke=Qr.objectList[mn.focusObjectIndex].keypoints)===null||Ke===void 0||(ht=Ke.points)===null||ht===void 0?void 0:ht[mn.focusEleIndex];if(en)return(0,y.jsx)(Nt,{index:mn.focusEleIndex,targetElement:en,imagePos:Tr.current})}return(0,y.jsx)(y.Fragment,{})};if(!qt)return(0,y.jsx)(y.Fragment,{});var ae=(0,z.isEmpty)((Ge=tr[Rn])===null||Ge===void 0?void 0:Ge.metadata)?void 0:tr[Rn].metadata;return(0,y.jsxs)("div",{className:"dds-annotator dds-annotator-preview",children:[(0,y.jsx)(F,{className:"top-tools",leftTools:[{icon:(0,y.jsx)(ct.Z,{}),onClick:Wr,disabled:Aa>=m.Fv},{icon:(0,y.jsx)(qn.Z,{}),onClick:Xr,disabled:Aa<=m.vL},{icon:(0,y.jsx)(eu,{}),onClick:Ko}],rightTools:[{icon:(0,y.jsx)(Vt.Z,{}),onClick:lr}],children:"".concat(Rn+1," / ").concat(tr.length)}),_a({className:"edit-wrap",children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(rs,{url:(cn=tr[Rn])===null||cn===void 0?void 0:cn.urlFullRes,imgRef:jo,canvasRef:ua,activeCanvasRef:Ia,clientSize:oa,imagePos:Tr,onLoad:Ra}),j()]})}),(0,y.jsx)("div",{className:S()("switch","switch-left",{"switch-disable":Rn===0}),onClick:nr,children:(0,y.jsx)(uo.Z,{})}),(0,y.jsx)("div",{className:S()("switch","switch-right",{"switch-disable":Rn===tr.length-1}),onClick:Ur,children:(0,y.jsx)(to.Z,{})}),os&&ae&&(0,y.jsxs)("div",{className:"info-wrap",children:[(0,y.jsx)("div",{className:"info-box",children:Object.keys(ae).map(function(je){return(0,y.jsxs)("div",{className:"item",children:[je,(0,y.jsx)("br",{}),Sl()(ae[je])==="object"?JSON.stringify(ae[je]):ae[je]]},je)})}),(0,y.jsx)("div",{className:"bottom-mask"}),(0,y.jsx)("div",{className:"hide-info-btn",onClick:Zi,children:(0,y.jsx)(Ws,{})})]}),!os&&(0,y.jsx)("div",{className:"show-info-btn",onClick:Zi,children:(0,y.jsx)(Ws,{})})]})},gl=ys,Ii=function($e){var Ge=$e.categories,cn=$e.data,qt=$e.currentSize,Fn=$e.wrapWidth,tr=$e.wrapHeight,Rn=$e.minHeight,nr=$e.objectsFilter,Ur=$e.getCustomObjectStyles,lr=$e.displayAnnotationType,Vn=$e.displayOptionsResult,Un=(0,C.x)([]),wa=s()(Un,2),ya=wa[0],Qt=wa[1],Ne=(0,C.x)((0,z.cloneDeep)(k.rl)),rt=s()(Ne,2),Rt=rt[0],Ut=rt[1],ln=(0,C.x)((0,z.cloneDeep)(k.f7)),mn=s()(ln,2),Sn=mn[0],un=mn[1],$r=(0,n.useRef)(null),Qr=(0,n.useRef)(null),Sa=(0,n.useRef)(null),ua=(0,n.useRef)({x:0,y:0}),Ia=(0,n.useState)({width:0,height:Rn||0}),jo=s()(Ia,2),fo=jo[0],Aa=jo[1],xa=(0,n.useMemo)(function(){if(qt)return qt;if(!fo.width)return{width:Fn||0,height:tr||Rn||0};var Si=(0,K.t9)(fo.width,fo.height,Fn,tr),mi=s()(Si,2),qo=mi[0],Ki=mi[1];return{width:qo,height:Ki}},[Fn,tr,Rn,fo,qt]),oa=(0,n.useMemo)(function(){var Si={screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,elementX:0,elementY:0,elementPosX:0,elementPosY:0,elementW:xa.width,elementH:xa.height};return[Si,Si]},[xa]),mo=s()(oa,2),Sr=mo[0],Tr=mo[1],Ra=kr(xa),Wr=s()(Ra,2),Xr=Wr[0],_a=Wr[1],za=cl({categories:Ge,editState:Rt}),ma=za.labelColors,so=za.getAnnotColor,Ba=Fo({clientSize:xa,naturalSize:fo,setDrawData:un}),pa=Ba.clearHistory,no=Ba.updateHistory,Ha=Ba.setDrawDataWithHistory,Ao=ot({annotations:ya,setAnnotations:Qt,clientSize:xa,naturalSize:fo,drawData:Sn,setDrawData:un,setDrawDataWithHistory:Ha,editState:Rt,setEditState:Ut,mode:k.je.View,displayAnnotationType:lr}),oo=Ao.addObject,Oa=Ao.initObjectList,$a=Ao.updateObject,ui=Fl({topCanvas:Qr.current,editState:Rt,drawData:Sn}),Ya=ui.updateMouseCursor,hi=(0,ws.Vr)({imgRef:Sa,editState:Rt,clientSize:xa,naturalSize:fo,contentMouse:Sr,containerMouse:Tr,imagePos:ua,canvasRef:$r,activeCanvasRef:Qr,setEditState:Ut,drawData:Sn,setDrawData:un,setDrawDataWithHistory:Ha,updateHistory:no,updateObject:$a,addObject:oo,updateMouseCursor:Ya,displayOptionsResult:Vn,getAnnotColor:so}),ai=hi.objectHooksMap,Ja=xr({visible:!0,drawData:Sn,editState:Rt,clientSize:xa,imagePos:ua,containerMouse:Tr,canvasRef:$r,activeCanvasRef:Qr,imgRef:Sa,objectHooksMap:ai,getCustomObjectStyles:Ur}),Uo=Ja.updateRender,Do=ul({imagePos:ua,clientSize:xa,preClientSize:Xr,clearPreClientSize:_a,naturalSize:fo,annotations:ya,setAnnotations:Qt,labelColors:ma,drawData:Sn,setDrawData:un,editState:Rt,setEditState:Ut,initObjectList:Oa,updateRender:Uo,clearHistory:pa,objectsFilter:nr}),Po=Do.resetDataWithImageData,Xa=Do.rebuildDrawData;(0,n.useEffect)(function(){Po(cn,!0)},[cn,nr]),(0,n.useEffect)(function(){Xa(!0)},[lr,Vn,Ur]);var Jo=function(mi){var qo=mi.target,Ki={width:qo.naturalWidth,height:qo.naturalHeight};Aa(Ki)};return(0,y.jsx)("div",{className:"dds-annotator-view",children:(0,y.jsx)(rs,{url:cn==null?void 0:cn.url,imgRef:Sa,canvasRef:$r,activeCanvasRef:Qr,clientSize:xa,imagePos:ua,onLoad:Jo})})},Ri=Ii},68270:function(M,b,e){"use strict";e.d(b,{$N:function(){return ie},hF:function(){return K},G9:function(){return H},_G:function(){return ce},Vr:function(){return B}});var i=e(63900),t=e.n(i),o=e(2657),s=e.n(o),n=e(81179),c=e(86505),l=e(46134),v=e(50910),h=e(14464),m=e(34095),C=function(W){var G=W.contentMouse,O=W.imagePos,k=W.canvasRef,Y=W.activeCanvasRef,P=W.editState,Q=W.setEditState,fe=W.drawData,Ce=W.setDrawData,ge=W.updateMouseCursor,Me=W.updateObject,Re=W.addObject,Qe=W.getAnnotColor,Ve=W.displayOptionsResult,qe=function(U){var N=U.object,D=U.color,ee=U.styles,se=U.isFocus,X=N.rect;if(X&&X.visible){var re=ee.strokeDash,Ie=ee.strokeColor,Se=ee.fillColor,he=ee.thickness;if(fe.isBatchEditing){if(N.status===v.TK.Unchecked&&!P.isCtrlPressed)return;P.isCtrlPressed&&(N.status!==v.TK.Unchecked?(Ie=(0,h.a7)(D,.8),re=[2],he=1.5):Se=se?(0,h.a7)(D,m.mh.DEFAULT):(0,h.a7)(D,m.mh.CTRL_TO_SELECT))}if((0,n.Mu)(k.current,X,Ie,he,re,Se),Ve!=null&&Ve.showBoxText){var We=N!=null&&N.conf&&N.conf>0&&N.conf<1?"".concat(N.label,"(").concat(N.conf.toFixed(3),")"):N.label;(0,n.yU)(k.current,We||"",13,{x:X.x+2,y:X.y+2},D,!1,"left")}fe.isBatchEditing&&P.isCtrlPressed&&se&&(0,n.HU)(Y.current,X,"#000",.6)}},Mt=function(U){var N=U.object,D=U.styles,ee=N.startPoint;if(ee){var se=(0,l.A7)(ee,{x:G.elementX,y:G.elementY},{width:G.elementW,height:G.elementH}),X=(0,l.ZU)(se,{x:-O.current.x,y:-O.current.y});(0,n.Mu)(Y.current,X,D.strokeColor,D.thickness,D.strokeDash,D.fillColor)}},wt=function(U){var N=U.object,D=U.styles,ee=N.rect;ee&&ee.visible&&((0,n.Mu)(Y.current,ee,D.strokeColor,D.thickness,D.strokeDash,D.fillColor),H(Y.current,ee))},mt=function(){},Nt=function(U){var N=U.object,D=U.event;return(D==null?void 0:D.button)===2?!1:!!ie({object:N,contentMouse:G,setEditState:Q,setDrawData:Ce})},ke=function(U){var N=U.point,D=U.basic;return Ce(function(ee){ee.activeObjectIndex=-1,ee.creatingObject=t()({type:c.gr.Rectangle,startPoint:N},D)}),!0},He=function(U){var N=U.object;return ce({object:N,editState:P,contentMouse:G,drawData:fe,setDrawData:Ce,updateMouseCursor:ge})},et=function(U){var N=U.object;return!!N},Fe=function(U){var N=U.object,D=P.startRectResizeAnchor||P.startElementMovePoint;return D&&Me(N,fe.activeObjectIndex),Q(function(ee){ee.startRectResizeAnchor=void 0,ee.startElementMovePoint=void 0}),!0},ue=function(U){var N=U.object;if(!N||!N.startPoint)return!1;if(G.elementX===N.startPoint.x||G.elementY===N.startPoint.y)return Ce(function(se){se.creatingObject=void 0}),!0;var D=(0,l.A7)(N.startPoint,{x:G.elementX,y:G.elementY},{width:G.elementW,height:G.elementH}),ee={type:c.gr.Rectangle,label:N.label,hidden:!1,rect:t()({visible:!0},D),conf:1,status:v.TK.Commited,color:Qe(N.label)};return Re(ee),!0};return{renderObject:qe,renderCreatingObject:Mt,renderEditingObject:wt,renderPrompt:mt,startEditingWhenMouseDown:Nt,startCreatingWhenMouseDown:ke,updateEditingWhenMouseMove:He,updateCreatingWhenMouseMove:et,finishEditingWhenMouseUp:Fe,finishCreatingWhenMouseUp:ue}},p=C,S=e(34485),w=e.n(S),y=e(39378),Z=function(W){var G=W.editState,O=W.clientSize,k=W.imagePos,Y=W.containerMouse,P=W.canvasRef,Q=W.activeCanvasRef,fe=W.contentMouse,Ce=W.setEditState,ge=W.drawData,Me=W.setDrawData,Re=W.updateHistory,Qe=W.updateMouseCursor,Ve=W.updateObject,qe=W.addObject,Mt=W.onAiAnnotation,wt=W.displayOptionsResult,mt=function(ee){var se=ee.object,X=ee.color,re=ee.styles,Ie=ee.isFocus,Se=se.polygon;if(Se&&Se.visible){var he=Ie?re.fillColor:(0,h.a7)(X,m.mh.SHAPE),We=re.thickness;wt&&(!wt.showSegFilling&&!Ie&&(he="transparent"),wt.showSegContour||(We=0)),Se==null||Se.group.forEach(function(de){(0,n.fb)(P.current,de,he,re.strokeColor,We,re.strokeDash)})}},Nt=function(ee){var se=ee.object,X=ee.styles,re=se.currIndex,Ie=(0,l.lT)(se,{x:-k.current.x,y:-k.current.y}),Se=Ie.polygon;if(Se&&Se.visible){var he=(0,l.fL)(Se.group);Se.group.forEach(function(We,de){re===de?We.forEach(function(le,ve){(0,n.G5)(Q.current,le,ve===0?6:4,X.strokeColor,3,"#1f4dd8"),We.length>1&&ve-1&&ve>-1){var Ze=Se.group[le][ve];Ze&&(0,n.G5)(Q.current,Ze,4,"#fff",5,X)}else if(le>-1&&xe>-1){var pe=(0,l.Iw)(Se.group[le]);if(pe[xe]){var Je=pe[xe],Ae=Je.start,oe=Je.end,ye=(0,l.Z4)({x:fe.elementX+k.current.x,y:fe.elementY+k.current.y},Ae,oe);ye&&(0,n.G5)(Q.current,ye,4,"#fff",5,X)}}}},He=function(ee){var se=ee.prompt;se.segmentationClicks&&se.segmentationClicks.forEach(function(X){var re=(0,l.aF)(X.point,{x:-k.current.x,y:-k.current.y});(0,n.G5)(Q.current,re,4,X.isPositive?m.lz.POSITIVE:m.lz.NEGATIVE,2,"#fff")})},et=function(ee){var se=ee.object,X=ee.event;return(X==null?void 0:X.button)===2?!1:!!ie({object:se,contentMouse:fe,setEditState:Ce,setDrawData:Me})},Fe=function(ee){var se=ee.point,X=ee.basic;return Me(function(re){if(!re.creatingObject||re.activeObjectIndex>-1)re.activeObjectIndex=-1,re.AIAnnotation?re.creatingObject=t()(t()({type:c.gr.Rectangle,startPoint:se},X),{},{color:"#fff"}):(re.creatingObject=t()({type:c.gr.Polygon,polygon:{visible:!0,group:[[se]]},currIndex:0},X),Re((0,y.cloneDeep)({drawData:re,clientSize:O})));else if(!re.AIAnnotation){var Ie=re.creatingObject.currIndex,Se=re.creatingObject.polygon;if(Ie>-1){var he=Se.group[Ie][0];(0,l.uN)(he,fe)?re.creatingObject.currIndex=-1:re.creatingObject.polygon&&(Se.group[Ie].push(se),Re((0,y.cloneDeep)({drawData:re,clientSize:O})))}else Se.group.push([se]),re.creatingObject.currIndex=Se.group.length-1,Re((0,y.cloneDeep)({drawData:re,clientSize:O}))}}),!0},ue=function(){var ee=G.focusEleType,se=G.focusEleIndex,X=G.focusObjectIndex,re=G.focusPolygonInfo;if(X===ge.activeObjectIndex&&ee===c.Yq.Polygon&&(re.pointIndex>-1?Qe("pointer"):re.lineIndex>-1?Qe("crosshair"):Qe("move")),ee===c.Yq.Polygon&&se===0){var Ie=G.focusPolygonInfo,Se=Ie.index,he=Ie.pointIndex;if(G.startElementMovePoint&&Se>-1)return he>-1?(Me(function(We){var de,le;if(We.activeObjectIndex>-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(de=We.creatingObject)!==null&&de!==void 0&&(le=de.polygon)!==null&&le!==void 0&&le.group[Se]){var ve,xe,Ze=(ve=We.creatingObject)===null||ve===void 0||(xe=ve.polygon)===null||xe===void 0?void 0:xe.group[Se];Ze[he]=(0,l.E5)(fe)}}),!0):(Me(function(We){var de,le;if(We.activeObjectIndex>-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(de=We.creatingObject)!==null&&de!==void 0&&(le=de.polygon)!==null&&le!==void 0&&le.group[Se]){var ve,xe,Ze=(ve=We.creatingObject)===null||ve===void 0||(xe=ve.polygon)===null||xe===void 0?void 0:xe.group[Se],pe=(0,l.s5)(Ze,G.startElementMovePoint,fe);We.creatingObject.polygon.group[Se]=pe,Ce(function(Je){Je.startElementMovePoint&&(Je.startElementMovePoint.mousePoint={x:fe.elementX,y:fe.elementY})})}}),!0)}return!1},V=function(ee){var se=ee.object;return!!se},U=function(ee){var se,X,re=ee.object,Ie=G.startRectResizeAnchor||G.startElementMovePoint,Se=G.startElementMovePoint&&((se=G.startElementMovePoint.initPoint)===null||se===void 0?void 0:se.x)===fe.elementX&&((X=G.startElementMovePoint.initPoint)===null||X===void 0?void 0:X.y)===fe.elementY,he=Se&&G.focusPolygonInfo.index>-1&&G.focusPolygonInfo.pointIndex>-1;if(he){var We,de=(0,y.cloneDeep)(re),le=G.focusPolygonInfo,ve=le.index,xe=le.pointIndex,Ze=(We=de.polygon)===null||We===void 0?void 0:We.group[ve];Ze&&ve>-1&&xe>-1&&Ze.length>=3&&Ze.splice(xe,1),Ve(de,ge.activeObjectIndex)}else Ie&&Ve(re,ge.activeObjectIndex);return Ce(function(pe){pe.startRectResizeAnchor=void 0,pe.startElementMovePoint=void 0}),!0},N=function(ee){var se=ee.event,X=ee.object;if(!X)return!1;var re={x:fe.elementX,y:fe.elementY};if(ge.AIAnnotation)if(X.type===c.gr.Polygon){if(!(0,l.jt)(fe)||!(0,l.jt)(Y))return!1;var Ie={isPositive:K(se),point:re},Se=ge.prompt.segmentationClicks||[];Me(function(Pe){Pe.prompt.segmentationClicks=[].concat(w()(Se),[Ie])}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:[].concat(w()(Se),[Ie]),aiLabels:[X.label]})}else{var he,We;if(fe.elementX===((he=X.startPoint)===null||he===void 0?void 0:he.x)&&fe.elementY===((We=X.startPoint)===null||We===void 0?void 0:We.y)){if(!(0,l.jt)(fe))return!1;var de={isPositive:!0,point:re};Me(function(Pe){Pe.prompt.segmentationClicks=[de]}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:[de]})}else{var le=(0,l.A7)(X.startPoint,re,{width:fe.elementW,height:fe.elementH}),ve=(0,l.Wx)(le),xe={xmin:le.x,ymin:le.y,xmax:le.x+le.width,ymax:le.y+le.height},Ze=ve.map(function(Pe,we){return{isPositive:we===ve.length-1,point:Pe}});Me(function(Pe){Pe.prompt.segmentationClicks=w()(Ze)}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:Ze,bbox:xe})}Me(function(Pe){return Pe.creatingObject=void 0})}else if(X.currIndex===-1){var pe=X.polygon,Je=X.type,Ae=X.hidden,oe=X.label,ye=X.status,Be=X.color,De={polygon:pe,type:Je,hidden:Ae,label:oe,status:ye,color:Be};qe(De)}return!0};return{renderObject:mt,renderCreatingObject:Nt,renderEditingObject:ke,renderPrompt:He,startEditingWhenMouseDown:et,startCreatingWhenMouseDown:Fe,updateEditingWhenMouseMove:ue,updateCreatingWhenMouseMove:V,finishEditingWhenMouseUp:U,finishCreatingWhenMouseUp:N}},F=Z,R=function(W,G,O,k,Y){var P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,Q=G.lines,fe=G.points;if(!Y)for(var Ce=0;Ce*2400?4:2)}},Nt=function(ee){var se=ee.object,X=ee.styles,re=se.startPoint;if(re){var Ie=(0,l.A7)(re,{x:Y.elementX,y:Y.elementY},{width:Y.elementW,height:Y.elementH}),Se=(0,l.ZU)(Ie,{x:-P.current.x,y:-P.current.y}),he=c.v_.points,We=c.v_.lines,de=c.v_.pointColors,le=c.v_.pointNames,ve=(0,l.el)(he,le,de,k,O),xe=(0,l.cU)(ve,Se);(0,n.Mu)(fe.current,Se,X.strokeColor,X.thickness),xe.forEach(function(oe){(0,n.G5)(fe.current,{x:oe.x,y:oe.y},4,X.strokeColor,3,"#1f4dd8")});for(var Ze=0;Ze*2-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(re=X.creatingObject)!==null&&re!==void 0&&(Ie=re.keypoints)!==null&&Ie!==void 0&&(Se=Ie.points)!==null&&Se!==void 0&&Se[G.focusEleIndex]){var he,We,de,le=(he=X.creatingObject)===null||he===void 0||(We=he.keypoints)===null||We===void 0||(de=We.points)===null||de===void 0?void 0:de[G.focusEleIndex],ve=(0,l.E5)(Y),xe=ve.x,Ze=ve.y;le.x=xe,le.y=Ze}}),!0):!1)},V=function(ee){var se=ee.object;return!!se},U=function(ee){var se=ee.object,X=G.startRectResizeAnchor||G.startElementMovePoint;if(X&&Ve(se,ge.activeObjectIndex),ge.AIAnnotation){var re,Ie;G.startElementMovePoint&&(((re=G.startElementMovePoint.mousePoint)===null||re===void 0?void 0:re.x)!==Y.elementX||((Ie=G.startElementMovePoint.mousePoint)===null||Ie===void 0?void 0:Ie.y)!==Y.elementY)&&(Mt==null||Mt({type:c.gr.Skeleton,drawData:ge,aiLabels:qe}))}return Ce(function(Se){Se.startRectResizeAnchor=void 0,Se.startElementMovePoint=void 0}),!0},N=function(ee){var se,X,re=ee.object;if(!re||!re.startPoint)return!1;if(Y.elementX===((se=re.startPoint)===null||se===void 0?void 0:se.x)||Y.elementY===((X=re.startPoint)===null||X===void 0?void 0:X.y))return Me(function(Ze){return Ze.creatingObject=void 0}),!0;var Ie=(0,l.A7)(re.startPoint,{x:Y.elementX,y:Y.elementY},{width:Y.elementW,height:Y.elementH}),Se=c.v_.points,he=c.v_.lines,We=c.v_.pointColors,de=c.v_.pointNames,le=(0,l.el)(Se,de,We,k,O),ve=(0,l.cU)(le,Ie),xe={type:c.gr.Skeleton,label:re.label,hidden:!1,color:re.color,rect:t()({visible:!0},Ie),keypoints:{points:ve,lines:he},conf:1,status:v.TK.Commited};return Qe(xe),!0};return{renderObject:mt,renderCreatingObject:Nt,renderEditingObject:ke,renderPrompt:He,startEditingWhenMouseDown:et,startCreatingWhenMouseDown:Fe,updateEditingWhenMouseMove:ue,updateCreatingWhenMouseMove:V,finishEditingWhenMouseUp:U,finishCreatingWhenMouseUp:N}},z=T,A=e(67761),L=function(W){var G=W.imgRef,O=W.imagePos,k=W.canvasRef,Y=W.clientSize,P=W.displayOptionsResult,Q=function(Nt){if(!(!Nt||!k.current||!G.current)){var ke=P||{},He=ke.showMattingColorFill,et=k.current.getContext("2d"),Fe=t()({x:O.current.x,y:O.current.y},Y);(0,n.UN)(k.current),(0,n.AE)(k.current,Nt,Fe),He?(et.globalCompositeOperation="source-out",(0,n.CR)(k.current,Fe,"#000"),et.globalCompositeOperation="destination-atop",(0,n.CR)(k.current,Fe,"#fff")):(et.globalCompositeOperation="source-in",(0,n.AE)(k.current,G.current,Fe),et.globalCompositeOperation="destination-over",(0,n.CR)(k.current,Fe,"#fff"))}},fe=function(Nt){var ke=Nt.object,He=ke.alphaImageElement;He&&(Q(He),He.onload=function(){Q(He)})},Ce=function(){},ge=function(){},Me=function(){},Re=function(){return!1},Qe=function(){return!1},Ve=function(){return!1},qe=function(){return!1},Mt=function(){return!1},wt=function(){return!1};return{renderObject:fe,renderCreatingObject:Ce,renderEditingObject:ge,renderPrompt:Me,startEditingWhenMouseDown:Re,startCreatingWhenMouseDown:Qe,updateEditingWhenMouseMove:Ve,updateCreatingWhenMouseMove:qe,finishEditingWhenMouseUp:Mt,finishCreatingWhenMouseUp:wt}},I=L,$;(function(te){})($||($={}));var B=function(W){var G,O=p(W),k=F(W),Y=z(W),P=(0,A.ZP)(W),Q=I(W),fe=(G={},s()(G,c.gr.Rectangle,O),s()(G,c.gr.Polygon,k),s()(G,c.gr.Skeleton,Y),s()(G,c.gr.Mask,P),s()(G,c.gr.Matting,Q),s()(G,c.gr.Custom,O),G);return{objectHooksMap:fe}},K=function(W){return!(W.button===2||W.button===0&&W.altKey)},H=function(W,G){var O=(0,l.Qo)(G).map(function(k){return k.position});O.forEach(function(k){var Y=(0,l.Ak)(k,{width:10,height:10}),P=(0,l.my)(Y);(0,n.Mu)(W,P,"rgba(0, 0, 0, 0.8)",3,[0],"#fff")})},ie=function(W){var G=W.object,O=W.contentMouse,k=W.setEditState,Y=W.setDrawData,P=(0,l.o7)(O,G),Q=P.focusEleIndex,fe=P.focusEleType,Ce=P.focusPolygonInfo;if(fe===c.Yq.None)return!1;var ge=G.rect,Me=G.keypoints,Re=G.polygon,Qe={x:O.elementX,y:O.elementY};return k(function(Ve){switch(fe){case c.Yq.Rect:{if(ge){var qe=(0,l.Oh)(ge,Qe);qe?Ve.startRectResizeAnchor={type:qe.type,position:(0,l.l1)(ge,qe.type)}:Ve.startElementMovePoint={topLeftPoint:{x:ge.x,y:ge.y},mousePoint:Qe}}break}case c.Yq.Circle:{if(Me){var Mt=Me.points[Q];Ve.startElementMovePoint={topLeftPoint:{x:Mt.x,y:Mt.y},mousePoint:Qe}}break}case c.Yq.Polygon:{var wt=Ce.lineIndex,mt=Ce.index;if(Re)if(wt>-1){var Nt=(0,l.Iw)(Re.group[mt])[wt];if(Nt){var ke=(0,l.Z4)(Qe,Nt.start,Nt.end);Y(function(He){var et=He.objectList[He.activeObjectIndex];et.polygon&&et.polygon.group[mt].splice(wt+1,0,ke),He.creatingObject=t()({},et)}),Ve.focusPolygonInfo.pointIndex=wt+1,Ve.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:ke,initPoint:ke}}}else Ve.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:Qe,initPoint:Qe};break}}}),!0},ce=function(W){var G=W.object,O=W.editState,k=W.contentMouse,Y=W.drawData,P=W.setDrawData,Q=W.updateMouseCursor,fe=O.focusObjectIndex,Ce=O.focusEleIndex,ge=O.focusEleType,Me=O.startRectResizeAnchor;if(fe===Y.activeObjectIndex&&ge===c.Yq.Rect&&G.rect){var Re=(0,l.Oh)(G.rect,{x:k.elementX,y:k.elementY});Re?Q("resize",Re.type):Q("move")}if(ge===c.Yq.Rect&&Ce===0){if(Me)return P(function(Qe){if(Qe.activeObjectIndex>-1&&O.startRectResizeAnchor&&Qe.creatingObject&&Qe.creatingObject.rect){var Ve=(0,l.XR)(Qe.creatingObject.rect,O.startRectResizeAnchor,k);Qe.creatingObject.rect=t()(t()({},Qe.creatingObject.rect),Ve)}}),!0;if(O.startElementMovePoint)return P(function(Qe){if(Qe.activeObjectIndex>-1&&O.startElementMovePoint&&Qe.creatingObject&&Qe.creatingObject.rect){var Ve=(0,l.i$)(Qe.creatingObject.rect,O.startElementMovePoint,k);Qe.creatingObject.rect=t()(t()({},Qe.creatingObject.rect),Ve)}}),!0}return!1}},67761:function(M,b,e){"use strict";e.d(b,{G9:function(){return T},ei:function(){return z}});var i=e(34485),t=e.n(i),o=e(63900),s=e.n(o),n=e(81179),c=e(86505),l=e(46134),v=e(68270),h=e(34095),m=e(50910),C=e(14464),p=e(39378),S=e.n(p),w=function(I,$){for(var B=new Array($).fill(0),K=0;K0&&ie.forEach(function(te){var W=(0,l.U8)(te.points,{x:-$.x,y:-$.y});(te.tool===c.jB.PenAdd||te.tool===c.jB.PenErase)&&(0,n.HT)(I,W,te.positive,(0,C.a7)(H,h.s_.CREATING),"transparent"),(te.tool===c.jB.BrushAdd||te.tool===c.jB.BrushErase)&&(0,n.T8)(I,W,te.positive,H,h.s_.CREATING,te.radius*B.width/K.width)}),ce.restore()},F=function(I,$,B,K,H,ie,ce){if(I){var te=$.maskStep,W=$.tempMaskSteps,G=$.maskCanvasElement,O=I.getContext("2d");if(!O)return null;if(G&&(O.globalAlpha=h.s_.CREATING,(0,n.AE)(I,G,{x:B.x,y:B.y,width:ie.width,height:ie.height}),O.globalAlpha=1),Z(I,B,ie,ce,K,W),te&&te.points.length>0){var k=te.tool===c.jB.PenAdd||te.tool===c.jB.BrushAdd?h.Bt.CREATING_POSITIVE:h.Bt.CREATING_NEGATIVE,Y=(0,l.U8)(te.points,{x:-B.x,y:-B.y});(te.tool===c.jB.PenAdd||te.tool===c.jB.PenErase)&&((0,n.G5)(I,Y[0],6,(0,C.a7)(k,h.rl.CREATING),3,h.XQ.CREATING),Y.length>0&&((0,n.MC)(I,Y,(0,C.a7)(k,h.rl.CREATING),2.5,[0]),(0,n.pS)(I,Y[Y.length-1],H,(0,C.a7)(k,h.rl.CREATING_LINE),2.5,[5]))),(te.tool===c.jB.BrushAdd||te.tool===c.jB.BrushErase||te.tool===c.jB.AutoSegmentByStroke)&&Y.length>1&&(0,n.AT)(I,Y,(0,C.a7)(k,h.s_.CREATING),te.radius*ie.width/ce.width)}}},R=function(I,$){var B=I.getContext("2d",{willReadFrequently:!0});if(!B)return null;for(var K=B.getImageData(0,0,I.width,I.height),H=hexToRgbArray($),ie=K.data.length/4;ie--;)K.data[ie*4+3]>0&&(K.data[ie*4]=H[0],K.data[ie*4+1]=H[1],K.data[ie*4+2]=H[2],K.data[ie*4+3]=255);return clearCanvas(I),B.putImageData(K,0,0),I},T=function(I,$,B,K){var H=document.createElement("canvas"),ie=H.getContext("2d",{willReadFrequently:!0});if(!ie||!B)return null;H.width=$.width,H.height=$.height;var ce=B.map(function(Y){return s()(s()({},Y),{},{points:Y.points.map(function(P){return(0,l.Ap)(P,I,$)})})});K&&(0,n.AE)(H,K,{x:0,y:0,width:$.width,height:$.height}),Z(H,{x:0,y:0},$,$,"#fff",ce);for(var te=ie.getImageData(0,0,$.width,$.height),W=0,G=new Array(te.data.length/4).fill(0),O=te.data.length/4;O--;){var k=0;te.data[O*4+3]>0&&(W++,k=1,G[O]=1),te.data[O*4]=te.data[O*4+1]=te.data[O*4+2]=te.data[O*4+3]=k}return W>0?y(G):[]},z=function(I,$,B){var K=$.width,H=$.height,ie=document.createElement("canvas"),ce=ie.getContext("2d");if(ie.width=K,ie.height=H,!ce)return null;for(var te=ce.createImageData(K,H),W=(0,C.dX)(B),G=w(I,Math.ceil(K)*Math.ceil(H)),O=te.data.length/4;O--;)G[O]>0&&(te.data[O*4]=W[0],te.data[O*4+1]=W[1],te.data[O*4+2]=W[2],te.data[O*4+3]=255);return ce.putImageData(te,0,0),ie},A=function(I){var $=I.editState,B=I.clientSize,K=I.naturalSize,H=I.contentMouse,ie=I.imagePos,ce=I.containerMouse,te=I.canvasRef,W=I.activeCanvasRef,G=I.drawData,O=I.setDrawData,k=I.setDrawDataWithHistory,Y=I.updateHistory,P=I.onAiAnnotation,Q=I.updateMouseCursor,fe=function(et){var Fe=et.object,ue=et.styles,V=Fe.maskCanvasElement,U=te.current.getContext("2d"),N=U.globalAlpha;U.globalAlpha=U.globalAlpha*ue.maskAlpha,(0,n.AE)(te.current,V,{x:ie.current.x,y:ie.current.y,width:B.width,height:B.height}),U.globalAlpha=N},Ce=function(et){var Fe=et.object,ue=et.color;$.hideCreatingObject||F(W.current,Fe,ie.current,ue,{x:ce.elementX,y:ce.elementY},B,K)},ge=function(et){var Fe=et.object,ue=et.color;$.hideCreatingObject||F(W.current,Fe,ie.current,ue,{x:ce.elementX,y:ce.elementY},B,K)},Me=function(et){var Fe=et.prompt;if(Fe.creatingMask){var ue=h.XQ.CREATING,V=h.Bt.CREATING;switch(Fe.creatingMask.type){case m.J5.Rect:{var U=Fe.creatingMask.startPoint,N=(0,l.A7)(U,{x:H.elementX,y:H.elementY},{width:H.elementW,height:H.elementH}),D=(0,l.ZU)(N,{x:-ie.current.x,y:-ie.current.y});(0,n.Mu)(W.current,D,ue,2,[0],V);break}case m.J5.Point:{if(!Fe.creatingMask.point)break;var ee=(0,l.aF)(Fe.creatingMask.point,{x:-ie.current.x,y:-ie.current.y});(0,n.G5)(W.current,ee,4,Fe.creatingMask.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE,2,"#fff")}case m.J5.EdgeStitch:case m.J5.Stroke:{if(!Fe.creatingMask.stroke||!Fe.creatingMask.radius)break;var se=(0,l.U8)(Fe.creatingMask.stroke,{x:-ie.current.x,y:-ie.current.y}),X=Fe.creatingMask.radius*B.width/K.width,re=Fe.creatingMask.type===m.J5.EdgeStitch?(0,C.a7)(ue,h.s_.CREATING):Fe.creatingMask.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE;(0,n.AT)(W.current,se,re,X);break}default:break}if($.isRequiring&&Fe.activeRectWhileLoading){var Ie=(0,l.ZU)(Fe.activeRectWhileLoading,{x:-ie.current.x,y:-ie.current.y});(0,n.HU)(W.current,Ie)}}Fe.maskPrompts&&Fe.maskPrompts.forEach(function(Se){if(Se.type===m.J5.Point){var he=(0,l.aF)(Se.point,{x:-ie.current.x,y:-ie.current.y});(0,n.G5)(W.current,he,4,Se.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE,2,"#fff")}})},Re=function(et){var Fe={x:H.elementX,y:H.elementY};O(function(ue){switch(ue.selectedSubTool){case c.jB.PenAdd:case c.jB.PenErase:case c.jB.BrushAdd:case c.jB.BrushErase:if(ue.creatingObject){if(ue.creatingObject.maskStep){if(ue.creatingObject.maskStep.points.push(Fe),[c.jB.PenAdd,c.jB.PenErase].includes(ue.selectedSubTool)&&(0,l.uN)(ue.creatingObject.maskStep.points[0],H)){var V;(V=ue.creatingObject.tempMaskSteps)===null||V===void 0||V.push(ue.creatingObject.maskStep),ue.creatingObject.maskStep=void 0}}else ue.creatingObject.maskStep={tool:ue.selectedSubTool,positive:ue.selectedSubTool===c.jB.PenAdd||ue.selectedSubTool===c.jB.BrushAdd,points:[Fe],radius:ue.brushSize};[c.jB.BrushAdd,c.jB.BrushErase].includes(ue.selectedSubTool)||Y((0,p.cloneDeep)({drawData:ue,clientSize:B}))}ue.prompt.segmentationMask=void 0;break;case c.jB.AutoSegmentByBox:ue.prompt.creatingMask={type:m.J5.Rect,startPoint:Fe,isPositive:!0};break;case c.jB.AutoSegmentByClick:ue.prompt.creatingMask={type:m.J5.Point,startPoint:Fe,point:Fe,isPositive:(0,v.hF)(et)};break;case c.jB.AutoSegmentByStroke:ue.prompt.creatingMask={type:m.J5.Stroke,startPoint:Fe,stroke:[Fe],radius:ue.brushSize,isPositive:(0,v.hF)(et)};break;case c.jB.AutoEdgeStitching:ue.prompt.creatingMask={type:m.J5.EdgeStitch,startPoint:Fe,stroke:[Fe],radius:ue.brushSize,isPositive:!0};default:break}})},Qe=function(et){var Fe=et.event;return Re(Fe),!0},Ve=function(et){var Fe=et.event,ue=et.object,V=et.point,U=et.basic;return ue?Re(Fe):O(function(N){switch(N.activeObjectIndex=-1,N.selectedSubTool){case c.jB.PenAdd:case c.jB.PenErase:case c.jB.BrushAdd:case c.jB.BrushErase:N.creatingObject=s()(s()({},U),{},{type:c.gr.Mask,startPoint:V,maskStep:{tool:N.selectedSubTool,positive:N.selectedSubTool===c.jB.PenAdd||N.selectedSubTool===c.jB.BrushAdd,points:[V],radius:N.brushSize},tempMaskSteps:[]}),N.prompt.segmentationMask=void 0;break;case c.jB.AutoSegmentByBox:N.prompt.creatingMask={type:m.J5.Rect,startPoint:V,isPositive:!0};break;case c.jB.AutoSegmentByClick:N.prompt.creatingMask={type:m.J5.Point,startPoint:V,point:V,isPositive:(0,v.hF)(Fe)};break;case c.jB.AutoSegmentByStroke:N.prompt.creatingMask={type:m.J5.Stroke,startPoint:V,stroke:[V],radius:N.brushSize,isPositive:(0,v.hF)(Fe)};break;case c.jB.AutoEdgeStitching:N.prompt.creatingMask={type:m.J5.EdgeStitch,startPoint:V,stroke:[V],radius:N.brushSize,isPositive:!0};break;default:break}}),!0},qe=function(et){var Fe=et.event,ue=et.object;if(ue||G.prompt.creatingMask){Q("crosshair");var V=[c.jB.BrushAdd,c.jB.BrushErase,c.jB.PenAdd,c.jB.PenErase,c.jB.AutoSegmentByStroke,c.jB.AutoEdgeStitching].includes(G.selectedSubTool),U=Fe.buttons===1||Fe.buttons===2;if(V&&U){var N={x:H.elementX,y:H.elementY},D=[c.jB.AutoSegmentByStroke,c.jB.AutoEdgeStitching].includes(G.selectedSubTool);O(function(ee){if(D){var se,X;(se=ee.prompt.creatingMask)===null||se===void 0||(X=se.stroke)===null||X===void 0||X.push(N)}else{var re,Ie;(re=ee.creatingObject)===null||re===void 0||(Ie=re.maskStep)===null||Ie===void 0||Ie.points.push(N)}})}return!0}return!1},Mt=function(et){var Fe=et.object,ue=et.event;return qe({object:Fe,event:ue})},wt=function(et){var Fe=et.object,ue=et.event;return qe({object:Fe,event:ue})},mt=function(){if(!(!G.creatingObject&&!G.prompt.creatingMask)){var et={x:H.elementX,y:H.elementY};switch(G.selectedSubTool){case c.jB.BrushAdd:case c.jB.BrushErase:case c.jB.PenAdd:case c.jB.PenErase:{k(function(We){if(We.creatingObject&&We.creatingObject.tempMaskSteps&&We.creatingObject.maskStep&&We.creatingObject.maskStep.points.length>1&&([c.jB.BrushAdd,c.jB.BrushErase].includes(We.selectedSubTool)||[c.jB.PenAdd,c.jB.PenErase].includes(We.selectedSubTool)&&(0,l.uN)(We.creatingObject.maskStep.points[0],H))){var de;(de=We.creatingObject.tempMaskSteps)===null||de===void 0||de.push(We.creatingObject.maskStep),We.creatingObject.maskStep=void 0}We.prompt.segmentationMask=void 0});break}case c.jB.AutoSegmentByBox:{var Fe,ue,V;if(!((Fe=G.prompt.creatingMask)!==null&&Fe!==void 0&&Fe.startPoint))break;if(et.x===((ue=G.prompt.creatingMask.startPoint)===null||ue===void 0?void 0:ue.x)||et.y===((V=G.prompt.creatingMask.startPoint)===null||V===void 0?void 0:V.y)){O(function(We){return We.prompt.creatingMask=void 0});break}var U=(0,l.A7)(G.prompt.creatingMask.startPoint,et,{width:H.elementW,height:H.elementH}),N={type:m.J5.Rect,isPositive:!0,rect:U};k(function(We){We.prompt.activeRectWhileLoading=U});var D=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[N]):[N];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:D});break}case c.jB.AutoSegmentByClick:{var ee;if(!(0,l.jt)(H)||!(0,l.jt)(ce)||!((ee=G.prompt.creatingMask)!==null&&ee!==void 0&&ee.point))break;var se={type:m.J5.Point,isPositive:G.prompt.creatingMask.isPositive,point:G.prompt.creatingMask.point},X=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[se]):[se];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:X});break}case c.jB.AutoSegmentByStroke:{var re;if(!((re=G.prompt.creatingMask)!==null&&re!==void 0&&re.stroke))break;var Ie={type:m.J5.Stroke,isPositive:G.prompt.creatingMask.isPositive,stroke:G.prompt.creatingMask.stroke,radius:G.brushSize},Se=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[Ie]):[Ie];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:Se});break}case c.jB.AutoEdgeStitching:{var he;if(!((he=G.prompt.creatingMask)!==null&&he!==void 0&&he.stroke))break;P==null||P({type:c.gr.Mask,drawData:G});break}}}},Nt=function(){return mt(),!0},ke=function(){return mt(),!0};return{renderObject:fe,renderCreatingObject:Ce,renderEditingObject:ge,renderPrompt:Me,startEditingWhenMouseDown:Qe,startCreatingWhenMouseDown:Ve,updateEditingWhenMouseMove:Mt,updateCreatingWhenMouseMove:wt,finishEditingWhenMouseUp:Nt,finishCreatingWhenMouseUp:ke}};b.ZP=A},50910:function(M,b,e){"use strict";e.d(b,{J5:function(){return o},JE:function(){return n},O4:function(){return l},TK:function(){return t},f7:function(){return c},je:function(){return s},rl:function(){return h}});var i=e(86505),t=function(m){return m[m.Unchecked=0]="Unchecked",m[m.Checked=1]="Checked",m[m.Commited=2]="Commited",m}({}),o=function(m){return m.Rect="rect",m.Point="point",m.Stroke="stroke",m.EdgeStitch="edgeStitch",m}({}),s={View:0,Edit:1,Review:2},n=function(m){return m.Accept="accept",m.Reject="reject",m.ForceAccept="force_accept",m}({}),c={initialized:!1,selectedTool:i.ru.Drag,selectedSubTool:i.jB.PenAdd,AIAnnotation:!1,objectList:[],activeObjectIndex:-1,activeClassName:"",creatingObject:void 0,brushSize:20,prompt:{},isBatchEditing:!1,limitConf:0},l={brightness:100,contrast:100,saturate:100},v={colorByCategory:!0},h={isLoading:!1,isLoadingError:!1,isRequiring:!1,allowMove:!1,latestLabel:"",startRectResizeAnchor:void 0,startElementMovePoint:void 0,focusObjectIndex:-1,foucsObjectAllIndexs:[],focusEleType:i.Yq.Rect,focusEleIndex:-1,focusPolygonInfo:{index:-1,pointIndex:-1,lineIndex:-1},isCtrlPressed:!1,hideCreatingObject:!1,imageDisplayOptions:l,annotsDisplayOptions:v}},14464:function(M,b,e){"use strict";e.d(b,{$P:function(){return S},Cj:function(){return v},WE:function(){return p},ZT:function(){return o},a7:function(){return c},dX:function(){return n},g9:function(){return m},wj:function(){return h}});var i=e(34485),t=e.n(i),o=function(y){return y.length!==3?"transparent":"#".concat(y[0].toString(16).padStart(2,"0")).concat(y[1].toString(16).padStart(2,"0")).concat(y[2].toString(16).padStart(2,"0")).toUpperCase()},s=function(y){var Z=/^rgba?\((\d+),\s*(\d+),\s*(\d+)\)$/i.exec(y);return Z?o(Z):"transparent"},n=function(y){var Z=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,F=y.replace(Z,function(T,z,A,L){return z+z+A+A+L+L}),R=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(F);return R?[parseInt(R[1],16),parseInt(R[2],16),parseInt(R[3],16)]:[0,0,0]},c=function(y){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,R=y.replace(F,function(A,L,I,$){return L+L+I+I+$+$}),T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(R),z=Z<0||Z>1?1:Z;return T?"rgba(".concat(parseInt(T[1],16),",").concat(parseInt(T[2],16),",").concat(parseInt(T[3],16),",").concat(z,")"):"transparent"},l=function(y){for(var Z=["#FFFF00","#FF0000","#0000FF","#00FF00","#FF00FF","#00FFFF"],F=[255,128,64,32,16,8,4,2,1],R=Z.length+1;Z.length0)if(T[L%3]+F[Math.floor(L/3)]<=255)T[L%3]+=F[Math.floor(L/3)];else{A=!1;break}z<<=1}if(A){var I="#".concat(T[0].toString(16).padStart(2,"0")).concat(T[1].toString(16).padStart(2,"0")).concat(T[2].toString(16).padStart(2,"0")).toUpperCase();Z.includes(I)||Z.push(I)}}return Z},v=function(y,Z){if(!y.length)return{};var F=t()(y);if(Z==="All")F.shift();else if(Z){var R=F.findIndex(function(A){return A===Z});F.splice(R,1),F[0]=Z}var T=l(F.length),z={};return F.forEach(function(A,L){z[A]=T[L]}),z},h=function(y,Z){return y.length!==3?"transparent":"rgba(".concat(y[0],", ").concat(y[1],", ").concat(y[2],", ").concat(Z,")")},m=function(y){var Z=y.slice(5,-1).split(",").map(function(F){return F.trim()});return Z.length!==4||isNaN(parseFloat(Z[3]))?[]:Z.slice(0,3)},C=function(y,Z){if(!y)return"rgba(0,0,0,0)";var F=y.substring(5,y.length-1).split(",").map(function(z){return parseInt(z.trim())}),R=[].concat(_toConsumableArray(F.slice(0,3)),[Z]),T="rgba(".concat(R.join(","),")");return T},p=function(y,Z,F){var R=F*Z,T=R*(1-Math.abs(y*6%2-1)),z=F-R,A=0,L=0,I=0;return y<1/6?(A=R,L=T):y<2/6?(A=T,L=R):y<3/6?(L=R,I=T):y<4/6?(L=T,I=R):y<5/6?(A=T,I=R):(A=R,I=T),[Math.round((A+z)*255),Math.round((L+z)*255),Math.round((I+z)*255)]},S=function(){var w=.618033988749895,y=0;return function(){y=(y+w)%1;var Z=p(y,.8,.95);return o(Z)}}()},46134:function(M,b,e){"use strict";e.d(b,{$5:function(){return P},A7:function(){return y},AR:function(){return S},Ak:function(){return wt},Ap:function(){return I},E5:function(){return Fe},I4:function(){return Ie},Iw:function(){return Q},Nm:function(){return Re},Oh:function(){return mt},Qo:function(){return Mt},RF:function(){return Me},U8:function(){return We},Vh:function(){return w},Wx:function(){return se},X6:function(){return Se},XR:function(){return ke},X_:function(){return pe},YO:function(){return p},Z0:function(){return ge},Z4:function(){return D},ZU:function(){return he},aF:function(){return de},cO:function(){return $},cU:function(){return T},e4:function(){return Je},el:function(){return K},fL:function(){return re},hv:function(){return Ze},i$:function(){return He},j9:function(){return N},jt:function(){return ce},kh:function(){return A},l1:function(){return Nt},lT:function(){return le},my:function(){return qe},o7:function(){return Ce},s5:function(){return et},t9:function(){return C},tQ:function(){return V},uN:function(){return k}});var i=e(63900),t=e.n(i),o=e(88479),s=e.n(o),n=e(88205),c=e.n(n),l=e(86505),v=e(14464),h=e(39378),m=e.n(h),C=function(oe,ye,Be,De){if(!oe||!ye)return[0,0,1];if(!Be)return[oe/ye*(De||0),De||0,1];if(!De)return[Be||0,ye/oe*(Be||0),1];var Pe=oe,we=ye,Le=1;return oe/ye>=Be/De?(Pe=Be,we=ye*Be/oe,Le=Be/oe):(we=De,Pe=oe*De/ye,Le=De/ye),[Pe||0,we||0,Le]},p=function(oe,ye,Be){var De=c()(oe,2),Pe=De[0],we=Pe===void 0?0:Pe,Le=De[1],Ye=Le===void 0?0:Le;return{x:we/ye.width*Be.width,y:Ye/ye.height*Be.height}},S=function(oe,ye,Be){var De=c()(oe,2),Pe=De[0],we=Pe===void 0?0:Pe,Le=De[1],Ye=Le===void 0?0:Le;return{x:we/Be.width*ye.width,y:Ye/Be.height*ye.height}},w=function(oe,ye,Be){var De=[];if(!oe)return De;var Pe=oe.split("/");return Pe==null||Pe.forEach(function(we){for(var Le=[],Ye=we.split(",").map(Number),Ue=0;UeBe.width?Be.width:ye.x,y:ye.y<0?0:ye.y>Be.height?Be.height:ye.y};return{x:Math.min(oe.x,De.x),y:Math.min(oe.y,De.y),width:Math.abs(oe.x-De.x),height:Math.abs(oe.y-De.y)}},Z=function(oe){var ye=1/0,Be=1/0,De=-1/0,Pe=-1/0,we=s()(oe),Le;try{for(we.s();!(Le=we.n()).done;){var Ye=Le.value;ye=Math.min(ye,Ye.x),Be=Math.min(Be,Ye.y),De=Math.max(De,Ye.x),Pe=Math.max(Pe,Ye.y)}}catch(Ue){we.e(Ue)}finally{we.f()}return{minX:ye,minY:Be,maxX:De,maxY:Pe}},F=function(oe,ye,Be){return{x:ye*oe.x,y:Be*oe.y}},R=function(oe,ye,Be){return{x:oe.x+ye,y:oe.y+Be}},T=function(oe,ye){var Be=Z(oe),De=Be.minX,Pe=Be.minY,we=Be.maxX,Le=Be.maxY,Ye=ye.width/(we-De),Ue=ye.height/(Le-Pe),dt=oe.map(function(bt){var ft=R(bt,-De,-Pe),At=F(ft,Ye,Ue),Ot=R(At,ye.x,ye.y);return t()(t()({},bt),Ot)});return dt},z=function(oe,ye){return{xmin:oe.x/ye.width,ymin:oe.y/ye.height,xmax:(oe.x+oe.width)/ye.width,ymax:(oe.y+oe.height)/ye.height}},A=function(oe){return{xmin:oe.x,ymin:oe.y,xmax:oe.x+oe.width,ymax:oe.y+oe.height}},L=function(oe,ye,Be){return{x:oe.x*Be.width/ye.width,y:oe.y*Be.height/ye.height,width:oe.width*Be.width/ye.width,height:oe.height*Be.height/ye.height}},I=function(oe,ye,Be){return{x:oe.x*Be.width/ye.width,y:oe.y*Be.height/ye.height}},$=function(oe,ye){return{x:(oe.xmin||0)*ye.width,y:(oe.ymin||0)*ye.height,width:((oe.xmax||0)-(oe.xmin||0))*ye.width,height:((oe.ymax||0)-(oe.ymin||0))*ye.height}},B=function(oe){return{x:oe.xmin,y:oe.ymin,width:oe.xmax-oe.xmin,height:oe.ymax-oe.ymin}},K=function(oe,ye,Be,De,Pe){for(var we=[],Le=0;Le*6=0&&oe.elementX<=oe.elementW&&oe.elementY>=0&&oe.elementY<=oe.elementH},te=function(oe,ye){return{x:oe.x-ye.x,y:oe.y-ye.y,width:oe.width+2*ye.x,height:oe.height+2*ye.y}},W=function(oe,ye){return t()(t()({},oe),{},{radius:ye})};function G(Ae,oe,ye){var Be={x:oe.x-Ae.x,y:oe.y-Ae.y},De={x:ye.x-Ae.x,y:ye.y-Ae.y};return Be.x*De.y-Be.y*De.x}var O=function(oe,ye,Be){if(!oe||!ye)return!1;switch(Be){case l.Yq.Rect:{var De=oe;return De.x<=ye.x&&De.x+De.width>=ye.x&&De.y<=ye.y&&De.y+De.height>=ye.y}case l.Yq.Circle:{var Pe=oe;return Math.sqrt(Math.pow(ye.x-Pe.x,2)+Math.pow(ye.y-Pe.y,2))<=Pe.radius}case l.Yq.Polygon:{for(var we=oe,Le=1;Le0&&Ye*dt>0)return!0}return!1}default:return!1}},k=function(oe,ye){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,De=W(oe,Be),Pe={x:ye.elementX,y:ye.elementY};return O(De,Pe,l.Yq.Circle)},Y=function(oe,ye){var Be=ye.elementX,De=ye.elementY,Pe=Math.sqrt(Math.pow(Be-oe.start.x,2)+Math.pow(De-oe.start.y,2)),we=Math.sqrt(Math.pow(Be-oe.end.x,2)+Math.pow(De-oe.end.y,2)),Le=Math.sqrt(Math.pow(oe.end.x-oe.start.x,2)+Math.pow(oe.end.y-oe.start.y,2)),Ye=.75;return Pe+we>=Le-Ye&&Pe+we<=Le+Ye},P=function(oe){var ye=Z(oe),Be=ye.maxX,De=ye.minX,Pe=ye.maxY,we=ye.minY;return{x:De,y:we,width:Be-De,height:Pe-we}},Q=function(oe){for(var ye=[],Be=0;Be0)return!0}break}}return!1},Ce=function(oe,ye){var Be,De=l.Yq.None,Pe=-1,we={index:-1,pointIndex:-1,lineIndex:-1};if(!ce(oe)||ye.hidden)return{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we};if((Be=ye.keypoints)!==null&&Be!==void 0&&Be.points)for(var Le=ye.keypoints.points,Ye=0;Ye-1)return we.index=Ot,we.pointIndex=jt,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}for(var Gt=0;Gt-1)return we.index=Gt,we.lineIndex=zn,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}var fn=At.findIndex(function(Bn){return O(Bn,{x:oe.elementX,y:oe.elementY},l.Yq.Polygon)});if(fn>-1)return we.index=fn,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}return ye.rect&&O(te(ye.rect,{x:8,y:8}),{x:oe.elementX,y:oe.elementY},l.Yq.Rect)?(De=l.Yq.Rect,Pe=0,{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we}):{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we}},ge=function(oe,ye,Be,De){var Pe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!0};if(!ce(ye))return-1;if(De[Be]&&Pe(De[Be])&&fe(ye,De[Be],oe))return Be;for(var we=De.length-1;we>=0;we--)if(Pe(De[we])&&fe(ye,De[we],oe))return we;return-1},Me=function(oe,ye,Be){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(!ce(ye))return[];for(var Pe=[],we=Be.length-1;we>=0;we--)De(Be[we])&&fe(ye,Be[we],oe)&&Pe.push(we);return Pe},Re=function(Ae){return Ae.TOP="TOP",Ae.BOTTOM="BOTTOM",Ae.LEFT="LEFT",Ae.RIGHT="RIGHT",Ae.TOP_RIGHT="TOP_RIGHT",Ae.TOP_LEFT="TOP_LEFT",Ae.BOTTOM_RIGHT="BOTTOM_RIGHT",Ae.BOTTOM_LEFT="BOTTOM_LEFT",Ae.CENTER="CENTER",Ae}({}),Qe=function(oe){return Math.floor(oe)+.5},Ve=function(oe){return{x:Qe(oe.x),y:Qe(oe.y)}},qe=function(oe){var ye={x:oe.x,y:oe.y},Be={x:oe.x+oe.width,y:oe.y+oe.height},De=Ve(ye),Pe=Ve(Be);return{x:De.x,y:De.y,width:Pe.x-De.x,height:Pe.y-De.y}},Mt=function(oe){return[{type:Re.TOP_LEFT,position:{x:oe.x,y:oe.y}},{type:Re.TOP,position:{x:oe.x+.5*oe.width,y:oe.y}},{type:Re.TOP_RIGHT,position:{x:oe.x+oe.width,y:oe.y}},{type:Re.LEFT,position:{x:oe.x,y:oe.y+.5*oe.height}},{type:Re.RIGHT,position:{x:oe.x+oe.width,y:oe.y+.5*oe.height}},{type:Re.BOTTOM_LEFT,position:{x:oe.x,y:oe.y+oe.height}},{type:Re.BOTTOM,position:{x:oe.x+.5*oe.width,y:oe.y+oe.height}},{type:Re.BOTTOM_RIGHT,position:{x:oe.x+oe.width,y:oe.y+oe.height}}]},wt=function(oe,ye){return t()({x:oe.x-.5*ye.width,y:oe.y-.5*ye.height},ye)},mt=function(oe,ye){for(var Be=Mt(oe),De=0;DeBe.elementW?Be.elementW:Be.elementX,Le=Be.elementY<0?0:Be.elementY>Be.elementH?Be.elementH:Be.elementY,Ye={x:we,y:Le};switch(De){case Re.RIGHT:Ye.y=oe.y+oe.height;break;case Re.BOTTOM:Ye.x=oe.x+oe.width;break;case Re.LEFT:Ye.y=oe.y;break;case Re.TOP:Ye.x=oe.x;break}return y(Pe,Ye,{width:Be.elementW,height:Be.elementH})},He=function(oe,ye,Be){var De=oe.width,Pe=oe.height,we=ye.topLeftPoint,Le=ye.mousePoint,Ye=Be.elementX-Le.x,Ue=Be.elementY-Le.y,dt=we.x+Ye,bt=we.y+Ue;return{x:dt<0?0:dt+De>Be.elementW?Be.elementW-De:dt,y:bt<0?0:bt+Pe>Be.elementH?Be.elementH-Pe:bt,width:De,height:Pe}},et=function(oe,ye,Be){var De=ye.mousePoint,Pe=Be.elementX,we=Be.elementY,Le=Be.elementW,Ye=Be.elementH,Ue=Z(oe),dt=Ue.minX,bt=Ue.minY,ft=Ue.maxX,At=Ue.maxY,Ot=Pe-De.x,jt=we-De.y;Ot=Ot+ft>Le?Le-ft:Ot+dt<0?0:Ot,jt=jt+At>Ye?Ye-At:jt+bt<0?0:jt;var Gt=oe.map(function(Xt){return{x:Xt.x+Ot,y:Xt.y+jt}});return Gt},Fe=function(oe){var ye=oe.elementX,Be=oe.elementY;return{x:ye<0?0:ye>oe.elementW?oe.elementW:ye,y:Be<0?0:Be>oe.elementH?oe.elementH:Be}},ue=function(oe){return!(!(0,h.isNumber)(oe.x)||!(0,h.isNumber)(oe.y)||!(0,h.isNumber)(oe.width)||!(0,h.isNumber)(oe.height)||oe.x===0&&oe.y===0&&oe.width===0&&oe.height===0)},V=function(oe,ye){return oe.maskRle&&(!ye||ye===l.JJ.Mask)?l.gr.Mask:oe.alpha&&(!ye||ye===l.JJ.Matting)?l.gr.Matting:oe.keypoints&&(!ye||ye===l.JJ.KeyPoints)?l.gr.Skeleton:oe.polygon&&(!ye||ye===l.JJ.Segmentation)?l.gr.Polygon:oe.rect&&ue(oe.rect)&&(!ye||ye===l.JJ.Detection)?l.gr.Rectangle:l.gr.Custom},U=function(oe,ye,Be){var De=oe.group.map(function(we){return we.reduce(function(Le,Ye){var Ue=Ye.x,dt=Ye.y,bt=S([Ue,dt],ye,Be);return Le.concat([bt.x,bt.y])},[])}),Pe=De.map(function(we){return we.join(",")}).join("/")||"";return Pe},N=function(oe,ye,Be){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,Pe=oe.map(function(we){var Le=we.label,Ye=we.rect,Ue=we.keypoints,dt=we.polygon,bt=we.maskRle,ft={categoryName:Le};if(Ye&&Object.assign(ft,{boundingBox:De?z(Ye,Be):A(Ye)}),Ue&&Object.assign(ft,t()({lines:Ue.lines},H(Ue.points,ye,Be))),dt){var At=U(dt,ye,Be);Object.assign(ft,{segmentation:At})}return bt&&Object.assign(ft,{mask:bt}),ft});return Pe},D=function(oe,ye,Be){var De={x:oe.x-ye.x,y:oe.y-ye.y},Pe={x:Be.x-ye.x,y:Be.y-ye.y},we=Pe.x*Pe.x+Pe.y*Pe.y,Le=De.x*Pe.x+De.y*Pe.y,Ye=Le/we;return Ye<0||isNaN(Ye)?Ye=0:Ye>1&&(Ye=1),{x:ye.x+Pe.x*Ye,y:ye.y+Pe.y*Ye}},ee=function(oe,ye){return{x:(oe.x+ye.x)/2,y:(oe.y+ye.y)/2}},se=function(oe){var ye=oe.x,Be=oe.y,De=oe.width,Pe=oe.height,we={x:ye,y:Be},Le={x:ye+De,y:Be},Ye={x:ye,y:Be+Pe},Ue={x:ye+De,y:Be+Pe},dt={x:ye+De/2,y:Be},bt={x:ye+De/2,y:Be+Pe},ft={x:ye,y:Be+Pe/2},At={x:ye+De,y:Be+Pe/2},Ot={x:ye+De/2,y:Be+Pe/2};return[we,Le,Ye,Ue,dt,bt,ft,At,Ot]},X=function(oe,ye){var Be=Z(oe),De=Z(ye);if(De.minX>=Be.maxX||De.maxX<=Be.minX||De.minY>=Be.maxY||De.maxY<=Be.minY)return!1;var Pe=s()(oe),we;try{for(Pe.s();!(we=Pe.n()).done;){var Le=we.value;if(!O(ye,Le,l.Yq.Polygon))return!1}}catch(Ye){Pe.e(Ye)}finally{Pe.f()}return!0},re=function(oe){for(var ye=[],Be=0;BeYe||Pe>Ue||De+we<=0||Pe+Le<=0)return{xmin:0,ymin:0,xmax:0,ymax:0};var dt={x:Math.max(0,De),y:Math.max(0,Pe)},bt={x:Math.min(De+we,Ye),y:Math.min(Pe+Le,Ue)},ft={x:oe.x,y:oe.y},At=de(dt,ft),Ot=At.x,jt=At.y,Gt=de(bt,ft),Xt=Gt.x,zn=Gt.y;return{xmin:Ot,ymin:jt,xmax:Xt,ymax:zn}},Je=function(oe){for(var ye=oe.getContext("2d",{willReadFrequently:!0}),Be=ye.getImageData(0,0,oe.width,oe.height),De=Be.data,Pe=Be.width,we=Be.height,Le=Pe,Ye=we,Ue=0,dt=0,bt=0,ft=0;ft0){var Ot=ft/4%Pe,jt=Math.floor(ft/4/Pe);bt++,Le=Math.min(Le,Ot),Ye=Math.min(Ye,jt),Ue=Math.max(Ue,Ot),dt=Math.max(dt,jt)}}var Gt={xmin:Le,ymin:Ye,xmax:Ue,ymax:dt};return{area:bt,bbox:Gt}}},81179:function(M,b,e){"use strict";e.d(b,{AE:function(){return c},AT:function(){return S},CR:function(){return y},G5:function(){return z},HT:function(){return L},HU:function(){return Z},KJ:function(){return l},M5:function(){return n},MC:function(){return C},Mu:function(){return w},T8:function(){return I},UN:function(){return o},fb:function(){return R},ix:function(){return s},ku:function(){return v},pS:function(){return m},yU:function(){return T}});var i=e(14464);function t($){return $*Math.PI/180}function o($){var B=$.getContext("2d");B.clearRect(0,0,$.width,$.height)}function s($,B){var K=$.getContext("2d");window.devicePixelRatio&&($.style.width=B.width+"px",$.style.height=B.height+"px",$.height=B.height*window.devicePixelRatio,$.width=B.width*window.devicePixelRatio,K.scale(window.devicePixelRatio,window.devicePixelRatio))}function n($,B){var K=$.getContext("2d");K.globalAlpha=B}function c($,B,K){if(B&&$){var H=$.getContext("2d");try{H.drawImage(B,K.x,K.y,K.width,K.height)}catch(ie){console.error("Load image error:",ie)}}}function l($,B,K,H){if($){var ie=$.getContext("2d");ie.filter="brightness("+B+"%) contrast("+K+"%) saturate("+H+"%)"}}function v($){if($){var B=$.getContext("2d");B.filter="none"}}function h($,B,K){if(B&&$){var H=$.getContext("2d");H.putImageData(B,0,0,K.x,K.y,K.width,K.height)}}function m($,B,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5?arguments[5]:void 0,te=$.getContext("2d");te.save(),te.strokeStyle=H,te.lineWidth=ie,te.lineCap="round",te.beginPath(),ce&&te.setLineDash(ce),te.moveTo(B.x,B.y),te.lineTo(K.x+1,K.y+1),te.stroke(),te.restore()}function C($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,ie=arguments.length>4?arguments[4]:void 0,ce=$.getContext("2d");ce.save(),ce.strokeStyle=K,ce.lineWidth=H,ce.lineCap="round",ce.lineJoin="round",ie&&ce.setLineDash(ie),ce.beginPath(),ce.moveTo(B[0].x,B[0].y);for(var te=1,W=B.length;te2&&arguments[2]!==void 0?arguments[2]:"#111111",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,ie=arguments.length>4?arguments[4]:void 0,ce=$.getContext("2d");ce.save(),ce.strokeStyle=K,ce.lineWidth=H,ce.lineCap="round",ce.lineJoin="round",ie&&ce.setLineDash(ie),ce.beginPath();var te=B[0],W=B[1];ce.moveTo(te.x,te.y);for(var G=1,O=B.length;G2&&arguments[2]!==void 0?arguments[2]:"#fff",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,ie=arguments.length>4?arguments[4]:void 0,ce=arguments.length>5?arguments[5]:void 0;if($){var te=$.getContext("2d");te.save(),te.strokeStyle=K,te.lineWidth=H,te.beginPath(),ie&&te.setLineDash(ie),te.rect(B.x,B.y,B.width,B.height),te.stroke(),ce&&(te.fillStyle=ce,te.fill()),te.restore()}}function y($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#fff";if($){var H=$.getContext("2d");H.save(),H.fillStyle=K,H.beginPath(),H.rect(B.x,B.y,B.width,B.height),H.fill(),H.restore()}}function Z($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#000",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5,ie=$.getContext("2d");ie.save(),ie.fillStyle=K,ie.globalAlpha=H,ie.fillRect(0,0,$.width,$.height),ie.globalCompositeOperation="destination-out",ie.globalAlpha=1,ie.fillRect(B.x,B.y,B.width,B.height),ie.restore()}function F($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},K=arguments.length>2?arguments[2]:void 0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1;if($){var ce=$.getContext("2d");ce.save(),ce.strokeStyle=H,ce.lineWidth=ie,ce.beginPath();var te=B.x,W=B.y;ce.moveTo(K[0].x+te,K[0].y+W);for(var G=1;G2&&arguments[2]!==void 0?arguments[2]:"#fff",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5?arguments[5]:void 0;if($){var te=$.getContext("2d");te.save(),te.fillStyle=K,te.strokeStyle=H,te.lineWidth=ie,ce&&te.setLineDash(ce),te.beginPath(),te.moveTo(B[0].x,B[0].y);for(var W=1;W0&&te.stroke(),te.fill(),te.restore()}}function T($,B,K,H){var ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#ffffff",ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"center",W=$.getContext("2d");W.save(),W.fillStyle=ie,W.textAlign=te,W.textBaseline="top",W.font=(ce?"bold ":"")+K+"px Arial",W.fillText(B,H.x,H.y),W.restore()}function z($,B,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#ffffff",ie=arguments.length>4?arguments[4]:void 0,ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#000",te=$.getContext("2d");te.save();var W=t(0),G=t(360);te.lineWidth=ie||0,te.strokeStyle=ce,te.fillStyle=H,te.beginPath(),te.arc(B.x,B.y,K,W,G,!1),te.stroke(),te.fill(),te.restore()}function A($,B,K,H,ie){var ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,te=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"#ffffff",W=$.getContext("2d"),G=t(H),O=t(ie);W.save(),W.strokeStyle=te,W.lineWidth=ce,W.beginPath(),W.arc(B.x,B.y,K,G,O,!1),W.stroke(),W.restore()}function L($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#fff",ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1,te=arguments.length>6?arguments[6]:void 0,W=$.getContext("2d");W.save(),W.fillStyle=H,W.strokeStyle=ie,W.lineWidth=ce,W.lineCap="round",W.lineJoin="round",te&&W.setLineDash(te),W.beginPath(),W.moveTo(B[0].x,B[0].y);for(var G=1;G0&&W.stroke(),W.fill()),W.restore()}function I($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,te=arguments.length>6?arguments[6]:void 0,W=$.getContext("2d");W.save(),W.strokeStyle=H,W.lineWidth=ce,W.lineCap="round",W.lineJoin="round",W.beginPath(),te&&W.setLineDash(te);var G=B[0],O=B[1];W.moveTo(G.x,G.y);for(var k=1,Y=B.length;k0&&(W.globalCompositeOperation="destination-out",W.strokeStyle=H,W.stroke(),W.strokeStyle=(0,i.a7)(H,ie),W.globalCompositeOperation="source-over",W.stroke()):(W.globalCompositeOperation="destination-out",W.stroke()),W.restore()}},2258:function(M,b,e){"use strict";e.d(b,{ii:function(){return qe},ZJ:function(){return et},mn:function(){return n},fL:function(){return p},Qs:function(){return wt},xA:function(){return Z}});var i=e(79233),t=e(58757),o=e(35667),s=function(V){var U=V.children,N=V.active,D=V.tip;return(0,o.jsx)(i.Z,{size:"large",spinning:N,delay:500,style:{maxHeight:"none",opacity:.3},tip:D,children:U})},n=s,c=e(88205),l=e.n(c),v=e(74820),h=e(12562),m=function(ue){return ue.en="en-US",ue.zh="zh-CN",ue}({}),C=function(V){var U=V.getLocale,N=V.setLocale,D=V.tooltipPlacement,ee=D===void 0?"right":D,se=V.theme,X=se===void 0?"light":se,re=V.className,Ie=U(),Se=function(){var xe=Ie===m.zh?m.en:m.zh;N(xe)},he=(0,t.useMemo)(function(){return Ie===m.zh?["change-lang change-lang-".concat(X),"cur-lang cur-lang-".concat(X)]:["cur-lang cur-lang-".concat(X),"change-lang change-lang-".concat(X)]},[X,Ie]),We=l()(he,2),de=We[0],le=We[1];return(0,o.jsx)(v.Z,{placement:ee,title:Ie===m.zh?"\u4E2D\u6587 / English":"English / \u4E2D\u6587",children:(0,o.jsx)(h.ZP,{type:"text",className:"dds-lang-selector ".concat(re),onClick:Se,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:le,children:"\u4E2D"}),(0,o.jsx)("span",{className:de,children:"En"})]})})})},p=C,S=e(62109),w=e(12632),y=function(V){var U=V.error,N=V.componentStack,D=V.resetError,ee=function(){S.Z.error({title:U.toString(),content:(0,o.jsx)("div",{style:{height:"60vh",overflowY:"scroll"},children:(0,o.jsx)("p",{children:N})}),onOk:function(){},maskClosable:!0,width:"80vw"})};return(0,o.jsx)("div",{style:{position:"relative",height:"calc(100vh - 64px)",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"500",title:"Running Error",subTitle:"Sorry, something went wrong.",extra:[(0,o.jsx)(h.ZP,{type:"primary",onClick:D,children:"Click here to reset"},"bt1"),(0,o.jsx)(h.ZP,{onClick:ee,children:"Error Detail"},"bt2")]})})},Z=y,F=e(73267),R=e(94706),T=Object.defineProperty,z=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,I=(ue,V,U)=>V in ue?T(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,$=(ue,V)=>{for(var U in V||(V={}))A.call(V,U)&&I(ue,U,V[U]);if(z)for(var U of z(V))L.call(V,U)&&I(ue,U,V[U]);return ue};const B=ue=>t.createElement("svg",$({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4V6h3.6c.22 0 .4.18.4.4v1.2a.4.4 0 0 1-.4.4H18v1.6a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V4.4ZM2.4 6a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4V6.4a.4.4 0 0 0-.4-.4H2.4Zm8 10a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4v-1.2a.4.4 0 0 0-.4-.4H10.4Zm-8 0a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4H6v1.6c0 .22.18.4.4.4h1.2a.4.4 0 0 0 .4-.4v-5.2a.4.4 0 0 0-.4-.4H6.4a.4.4 0 0 0-.4.4V16H2.4Z",fill:"#434343"}));var K="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiA0LjRjMC0uMjIuMTgtLjQuNC0uNGgxLjJjLjIyIDAgLjQuMTguNC40VjZoMy42Yy4yMiAwIC40LjE4LjQuNHYxLjJhLjQuNCAwIDAgMS0uNC40SDE4djEuNmEuNC40IDAgMCAxLS40LjRoLTEuMmEuNC40IDAgMCAxLS40LS40VjQuNFpNMi40IDZhLjQuNCAwIDAgMC0uNC40djEuMmMwIC4yMi4xOC40LjQuNGgxMS4yYS40LjQgMCAwIDAgLjQtLjRWNi40YS40LjQgMCAwIDAtLjQtLjRIMi40Wm04IDEwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRoMTEuMmEuNC40IDAgMCAwIC40LS40di0xLjJhLjQuNCAwIDAgMC0uNC0uNEgxMC40Wm0tOCAwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRINnYxLjZjMCAuMjIuMTguNC40LjRoMS4yYS40LjQgMCAwIDAgLjQtLjR2LTUuMmEuNC40IDAgMCAwLS40LS40SDYuNGEuNC40IDAgMCAwLS40LjRWMTZIMi40WiIgZmlsbD0iIzQzNDM0MyIvPjwvc3ZnPg==",H=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,W=(ue,V,U)=>V in ue?H(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,G=(ue,V)=>{for(var U in V||(V={}))ce.call(V,U)&&W(ue,U,V[U]);if(ie)for(var U of ie(V))te.call(V,U)&&W(ue,U,V[U]);return ue};const O=ue=>t.createElement("svg",G({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{d:"M8.536 1.572H7.464c-.095 0-.143.048-.143.143v5.607h-5.32c-.096 0-.144.048-.144.143v1.072c0 .095.048.142.143.142h5.321v5.608c0 .095.048.142.143.142h1.072c.095 0 .142-.047.142-.142V8.679H14c.095 0 .143-.047.143-.142V7.465c0-.095-.048-.143-.143-.143H8.678V1.715c0-.095-.047-.143-.142-.143Z",fill:"#595959"}));var k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNTM2IDEuNTcySDcuNDY0Yy0uMDk1IDAtLjE0My4wNDgtLjE0My4xNDN2NS42MDdoLTUuMzJjLS4wOTYgMC0uMTQ0LjA0OC0uMTQ0LjE0M3YxLjA3MmMwIC4wOTUuMDQ4LjE0Mi4xNDMuMTQyaDUuMzIxdjUuNjA4YzAgLjA5NS4wNDguMTQyLjE0My4xNDJoMS4wNzJjLjA5NSAwIC4xNDItLjA0Ny4xNDItLjE0MlY4LjY3OUgxNGMuMDk1IDAgLjE0My0uMDQ3LjE0My0uMTQyVjcuNDY1YzAtLjA5NS0uMDQ4LS4xNDMtLjE0My0uMTQzSDguNjc4VjEuNzE1YzAtLjA5NS0uMDQ3LS4xNDMtLjE0Mi0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Y=Object.defineProperty,P=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ce=(ue,V,U)=>V in ue?Y(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,ge=(ue,V)=>{for(var U in V||(V={}))Q.call(V,U)&&Ce(ue,U,V[U]);if(P)for(var U of P(V))fe.call(V,U)&&Ce(ue,U,V[U]);return ue};const Me=ue=>t.createElement("svg",ge({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{d:"M14.429 7.322H1.572a.143.143 0 0 0-.143.143v1.072c0 .078.064.142.143.142h12.857a.143.143 0 0 0 .143-.142V7.465a.143.143 0 0 0-.143-.143Z",fill:"#595959"}));var Re="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjQyOSA3LjMyMkgxLjU3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YxLjA3MmMwIC4wNzguMDY0LjE0Mi4xNDMuMTQyaDEyLjg1N2EuMTQzLjE0MyAwIDAgMCAuMTQzLS4xNDJWNy40NjVhLjE0My4xNDMgMCAwIDAtLjE0My0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Qe=e(53357),Ve=function(V){var U=(0,Qe.bU)(),N=U.localeText,D=V.cloumnCount,ee=V.maxCloumnCount,se=ee===void 0?8:ee,X=V.onColumnCountChange,re=V.getPopupContainer;return(0,o.jsx)(F.Z,{getPopupContainer:re,dropdownRender:function(){return(0,o.jsxs)("div",{className:"dds-column-settings-panel",children:[(0,o.jsx)("div",{className:"item-title",children:N("ColumnSettings.title")}),(0,o.jsxs)("div",{className:"item-content",children:[(0,o.jsx)(R.Z,{min:1,max:se,onChange:function(he){return X(he)},value:D,className:"slider"}),(0,o.jsxs)("div",{className:"num-box",children:[(0,o.jsx)(Me,{onClick:function(){return X(!1)}}),(0,o.jsx)("div",{className:"num",children:D}),(0,o.jsx)(O,{onClick:function(){return X(!0)}})]})]})]})},children:(0,o.jsx)("div",{className:"dds-column-settings-btn",children:(0,o.jsx)(B,{})})})},qe=Ve,Mt=function(){return(0,o.jsx)("div",{style:{height:"100vh",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"404",title:(0,Qe._w)("MobileAlert.title"),subTitle:(0,Qe._w)("MobileAlert.subTitle")})})},wt=Mt,mt=e(35910),Nt=e(32423),ke=e(39378),He=function(V){var U=V.current,N=V.size,D=V.total,ee=V.onPageChange,se=V.onPageSizeChange,X=(0,t.useState)(N),re=l()(X,2),Ie=re[0],Se=re[1],he=(0,Qe.bU)(),We=he.localeText;return(0,o.jsxs)("div",{className:"dds-dynamic-pagination",children:[(0,o.jsx)(mt.Z,{current:U,pageSize:N,total:D,showSizeChanger:!1,showQuickJumper:!0,onChange:function(le){return ee(le)}}),(0,o.jsxs)("div",{className:"pagesize-wrap",children:[(0,o.jsx)("div",{className:"pagesize-label",children:We("DynamicPagination.label")}),(0,o.jsx)(Nt.Z,{min:1,value:Ie,onChange:function(le){Se(Number(le))},onBlur:function(le){(0,ke.isNaN)(Number(le.target.value))||Number(le.target.value)<=0?se(U,1):se(U,Number(le.target.value))},onPressEnter:function(le){le.target.blur(le)}})]})]})},et=He,Fe=e(14122)},9457:function(M,b,e){"use strict";e.d(b,{_:function(){return y},w:function(){return Z}});var i=e(63900),t=e.n(i),o=e(88205),s=e.n(o),n=e(58757),c=e(86429),l=e(51129),v=e(74324),h=e(66682);const m=h,C={parseNumbers:!1,parseBooleans:!1},p={skipNull:!1,skipEmptyString:!1};var w=(F,R)=>{var T,z;const{navigateMode:A="push",parseOptions:L,stringifyOptions:I}=R||{},$=Object.assign(Object.assign({},C),L),B=Object.assign(Object.assign({},p),I),K=m.useLocation(),H=(T=m.useHistory)===null||T===void 0?void 0:T.call(m),ie=(z=m.useNavigate)===null||z===void 0?void 0:z.call(m),ce=(0,c.Z)(),te=(0,n.useRef)(typeof F=="function"?F():F||{}),W=(0,n.useMemo)(()=>(0,v.parse)(K.search,$),[K.search]),G=(0,n.useMemo)(()=>Object.assign(Object.assign({},te.current),W),[W]),O=k=>{const Y=typeof k=="function"?k(G):k;ce(),H&&H[A]({hash:K.hash,search:(0,v.stringify)(Object.assign(Object.assign({},W),Y),B)||"?"},K.state),ie&&ie({hash:K.hash,search:(0,v.stringify)(Object.assign(Object.assign({},W),Y),B)||"?"},{replace:A==="replace",state:K.state})};return[G,(0,l.Z)(O)]};function y(F){var R=F.pageState,T=F.onInitPageState,z=F.onPageDidMount,A=F.onPageWillUnmount,L=w({},{navigateMode:"replace"}),I=s()(L,2),$=I[0],B=I[1];(0,n.useEffect)(function(){if(T){var K={};try{K=$.pageState?JSON.parse($.pageState):{}}catch(H){console.error("get urlPageState error: ",H)}T(K,$)}return z&&z($),function(){A&&A()}},[]),(0,n.useEffect)(function(){B(t()(t()({},$),{},{pageState:JSON.stringify(R)}))},[R])}function Z(){var F=(0,n.useState)(window.innerWidth),R=s()(F,2),T=R[0],z=R[1],A=(0,n.useState)(window.innerHeight),L=s()(A,2),I=L[0],$=L[1],B=function(){z(window.innerWidth),$(window.innerHeight)};return(0,n.useEffect)(function(){return window.addEventListener("resize",B),function(){window.removeEventListener("resize",B)}},[]),{width:T,height:I}}},41260:function(M,b,e){"use strict";e.d(b,{O:function(){return t},p:function(){return i}});var i=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Math.floor(s*Math.pow(10,n))/Math.pow(10,n)},t=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number(s.toFixed(n))}},53357:function(M,b,e){"use strict";e.d(b,{Og:function(){return o},_w:function(){return t},bU:function(){return s}});var i=e(97375),t=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,i.formatMessage)({id:c},l)},o=i.FormattedMessage,s=function(){var c=(0,i.useIntl)(),l=function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return c.formatMessage({id:h},m)};return{localeText:l}}},23707:function(M,b,e){"use strict";e.d(b,{BQ:function(){return t},Oe:function(){return o},yS:function(){return s}});var i=e(97375),t=function(c){var l=new RegExp("(^|&)"+c+"=([^&]*)(&|$)","i"),v=window.location.search.substr(1).match(l);return v!==null?decodeURIComponent(v[2]):null},o=function(){var c=window.location.pathname.split("/");return c[c.length-1]},s=function(c){document.referrer.includes(c)?window.history.back():i.history.push(c)}},74324:function(M,b,e){"use strict";var i=e(88205).default,t=e(88479).default,o=e(16962).default,s=e(34485).default,n=e(75978),c=e(65140),l=e(96896),v=e(22475),h=function(L){return L==null};function m(A){switch(A.arrayFormat){case"index":return function(L){return function(I,$){var B=I.length;return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[[S(L,A),"[",B,"]"].join("")]):[].concat(s(I),[[S(L,A),"[",S(B,A),"]=",S($,A)].join("")])}};case"bracket":return function(L){return function(I,$){return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[[S(L,A),"[]"].join("")]):[].concat(s(I),[[S(L,A),"[]=",S($,A)].join("")])}};case"comma":case"separator":return function(L){return function(I,$){return $==null||$.length===0?I:I.length===0?[[S(L,A),"=",S($,A)].join("")]:[[I,S($,A)].join(A.arrayFormatSeparator)]}};default:return function(L){return function(I,$){return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[S(L,A)]):[].concat(s(I),[[S(L,A),"=",S($,A)].join("")])}}}}function C(A){var L;switch(A.arrayFormat){case"index":return function(I,$,B){if(L=/\[(\d*)\]$/.exec(I),I=I.replace(/\[\d*\]$/,""),!L){B[I]=$;return}B[I]===void 0&&(B[I]={}),B[I][L[1]]=$};case"bracket":return function(I,$,B){if(L=/(\[\])$/.exec(I),I=I.replace(/\[\]$/,""),!L){B[I]=$;return}if(B[I]===void 0){B[I]=[$];return}B[I]=[].concat(B[I],$)};case"comma":case"separator":return function(I,$,B){var K=typeof $=="string"&&$.includes(A.arrayFormatSeparator),H=typeof $=="string"&&!K&&w($,A).includes(A.arrayFormatSeparator);$=H?w($,A):$;var ie=K||H?$.split(A.arrayFormatSeparator).map(function(ce){return w(ce,A)}):$===null?$:w($,A);B[I]=ie};default:return function(I,$,B){if(B[I]===void 0){B[I]=$;return}B[I]=[].concat(B[I],$)}}}function p(A){if(typeof A!="string"||A.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(A,L){return L.encode?L.strict?n(A):encodeURIComponent(A):A}function w(A,L){return L.decode?c(A):A}function y(A){return Array.isArray(A)?A.sort():o(A)==="object"?y(Object.keys(A)).sort(function(L,I){return Number(L)-Number(I)}).map(function(L){return A[L]}):A}function Z(A){var L=A.indexOf("#");return L!==-1&&(A=A.slice(0,L)),A}function F(A){var L="",I=A.indexOf("#");return I!==-1&&(L=A.slice(I)),L}function R(A){A=Z(A);var L=A.indexOf("?");return L===-1?"":A.slice(L+1)}function T(A,L){return L.parseNumbers&&!Number.isNaN(Number(A))&&typeof A=="string"&&A.trim()!==""?A=Number(A):L.parseBooleans&&A!==null&&(A.toLowerCase()==="true"||A.toLowerCase()==="false")&&(A=A.toLowerCase()==="true"),A}function z(A,L){L=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},L),p(L.arrayFormatSeparator);var I=C(L),$=Object.create(null);if(typeof A!="string"||(A=A.trim().replace(/^[?#&]/,""),!A))return $;var B=t(A.split("&")),K;try{for(B.s();!(K=B.n()).done;){var H=K.value;if(H!==""){var ie=l(L.decode?H.replace(/\+/g," "):H,"="),ce=i(ie,2),te=ce[0],W=ce[1];W=W===void 0?null:["comma","separator"].includes(L.arrayFormat)?W:w(W,L),I(w(te,L),W,$)}}}catch(Ce){B.e(Ce)}finally{B.f()}for(var G=0,O=Object.keys($);G0}).join("&")},b.parseUrl=function(A,L){L=Object.assign({decode:!0},L);var I=l(A,"#"),$=i(I,2),B=$[0],K=$[1];return Object.assign({url:B.split("?")[0]||"",query:z(R(A),L)},L&&L.parseFragmentIdentifier&&K?{fragmentIdentifier:w(K,L)}:{})},b.stringifyUrl=function(A,L){L=Object.assign({encode:!0,strict:!0},L);var I=Z(A.url).split("?")[0]||"",$=b.extract(A.url),B=b.parse($,{sort:!1}),K=Object.assign(B,A.query),H=b.stringify(K,L);H&&(H="?".concat(H));var ie=F(A.url);return A.fragmentIdentifier&&(ie="#".concat(S(A.fragmentIdentifier,L))),"".concat(I).concat(H).concat(ie)},b.pick=function(A,L,I){I=Object.assign({parseFragmentIdentifier:!0},I);var $=b.parseUrl(A,I),B=$.url,K=$.query,H=$.fragmentIdentifier;return b.stringifyUrl({url:B,query:v(K,L),fragmentIdentifier:H},I)},b.exclude=function(A,L,I){var $=Array.isArray(L)?function(B){return!L.includes(B)}:function(B,K){return!L(B,K)};return b.pick(A,$,I)}},96896:function(M){"use strict";M.exports=function(b,e){if(!(typeof b=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[b];var i=b.indexOf(e);return i===-1?[b]:[b.slice(0,i),b.slice(i+e.length)]}},75978:function(M){"use strict";M.exports=function(b){return encodeURIComponent(b).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},60581:function(M,b,e){"use strict";e.d(b,{Il:function(){return o},Ov:function(){return s}});var i=e(58757),t=null,o=i.createContext({});function s(){return i.useContext(o)}function n(){var h=useLocation(),m=s(),C=m.clientRoutes,p=matchRoutes(C,h.pathname);return p||[]}function c(){var h,m=n().slice(-1),C=((h=m[0])===null||h===void 0?void 0:h.route)||{},p=C.element,S=_objectWithoutProperties(C,t);return S}function l(){var h=useRouteData(),m=s();return{data:m.serverLoaderData[h.route.id]}}function v(){var h=useRouteData(),m=s();return{data:m.clientLoaderData[h.route.id]}}},21325:function(M,b,e){"use strict";var i=e(23671),t=e(68716),o=e(8851);function s(n,c,l){l===void 0&&(l={});var v=(0,i.Z)(c);(0,o.Z)(function(){var h=(0,t.n)(l.target,window);if(h!=null&&h.addEventListener){var m=function(C){return v.current(C)};return h.addEventListener(n,m,{capture:l.capture,once:l.once,passive:l.passive}),function(){h.removeEventListener(n,m,{capture:l.capture})}}},[n,l.capture,l.once,l.passive],l.target)}b.Z=s},2556:function(M,b,e){"use strict";e.d(b,{Z:function(){return A}});var i=e(43112),t=e(23671),o=e(53807),s=e(68716),n=e(58757),c=e(8851),l=e(85466),v=e.n(l),h=function(L,I){return L===void 0&&(L=[]),I===void 0&&(I=[]),v()(L,I)},m=function(L,I,$){var B=(0,n.useRef)(),K=(0,n.useRef)(0);h(I,B.current)||(B.current=I,K.current+=1),(0,c.Z)(L,[K.current],$)},C=m,p=/(mac|iphone|ipod|ipad)/i.test(typeof navigator!="undefined"?navigator==null?void 0:navigator.platform:""),S=p,w={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:S?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},y={ctrl:function(L){return L.ctrlKey},shift:function(L){return L.shiftKey},alt:function(L){return L.altKey},meta:function(L){return L.type==="keyup"?w.meta.includes(L.keyCode):L.metaKey}};function Z(L){var I=Object.keys(y).reduce(function($,B){return y[B](L)?$+1:$},0);return[16,17,18,91,92].includes(L.keyCode)?I:I+1}function F(L,I,$){var B,K;if(!L.key)return!1;if((0,o.hj)(I))return L.keyCode===I;var H=I.split("."),ie=0;try{for(var ce=(0,i.XA)(H),te=ce.next();!te.done;te=ce.next()){var W=te.value,G=y[W],O=w[W.toLowerCase()];(G&&G(L)||O&&O===L.keyCode)&&ie++}}catch(k){B={error:k}}finally{try{te&&!te.done&&(K=ce.return)&&K.call(ce)}finally{if(B)throw B.error}}return $?ie===H.length&&Z(L)===H.length:ie===H.length}function R(L,I){return(0,o.mf)(L)?L:(0,o.HD)(L)||(0,o.hj)(L)?function($){return F($,L,I)}:Array.isArray(L)?function($){return L.some(function(B){return F($,B,I)})}:function(){return!!L}}var T=["keydown"];function z(L,I,$){var B=$||{},K=B.events,H=K===void 0?T:K,ie=B.target,ce=B.exactMatch,te=ce===void 0?!1:ce,W=B.useCapture,G=W===void 0?!1:W,O=(0,t.Z)(I),k=(0,t.Z)(L);C(function(){var Y,P,Q,fe=(0,s.n)(ie,window);if(fe){var Ce=function(Qe){var Ve,qe=R(k.current,te);if(qe(Qe))return(Ve=O.current)===null||Ve===void 0?void 0:Ve.call(O,Qe)};try{for(var ge=(0,i.XA)(H),Me=ge.next();!Me.done;Me=ge.next()){var Re=Me.value;(Q=fe==null?void 0:fe.addEventListener)===null||Q===void 0||Q.call(fe,Re,Ce,G)}}catch(Qe){Y={error:Qe}}finally{try{Me&&!Me.done&&(P=ge.return)&&P.call(ge)}finally{if(Y)throw Y.error}}return function(){var Qe,Ve,qe;try{for(var Mt=(0,i.XA)(H),wt=Mt.next();!wt.done;wt=Mt.next()){var mt=wt.value;(qe=fe==null?void 0:fe.removeEventListener)===null||qe===void 0||qe.call(fe,mt,Ce,G)}}catch(Nt){Qe={error:Nt}}finally{try{wt&&!wt.done&&(Ve=Mt.return)&&Ve.call(Mt)}finally{if(Qe)throw Qe.error}}}}},[H],ie)}var A=z},23671:function(M,b,e){"use strict";var i=e(58757);function t(o){var s=(0,i.useRef)(o);return s.current=o,s}b.Z=t},51129:function(M,b,e){"use strict";var i=e(58757),t=e(53807),o=e(8182);function s(n){o.Z&&((0,t.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var c=(0,i.useRef)(n);c.current=(0,i.useMemo)(function(){return n},[n]);var l=(0,i.useRef)();return l.current||(l.current=function(){for(var v=[],h=0;h-1&&(ve=setTimeout(function(){C.delete(he)},We)),C.set(he,(0,i.pi)((0,i.pi)({},de),{timer:ve}))},S=function(he){return C.get(he)},w=function(he){if(he){var We=Array.isArray(he)?he:[he];We.forEach(function(de){return C.delete(de)})}else C.clear()},y=new Map,Z=function(he){return y.get(he)},F=function(he,We){y.set(he,We),We.then(function(de){return y.delete(he),de}).catch(function(){y.delete(he)})},R={},T=function(he,We){R[he]&&R[he].forEach(function(de){return de(We)})},z=function(he,We){return R[he]||(R[he]=[]),R[he].push(We),function(){var le=R[he].indexOf(We);R[he].splice(le,1)}},A=function(he,We){var de=We.cacheKey,le=We.cacheTime,ve=le===void 0?5*60*1e3:le,xe=We.staleTime,Ze=xe===void 0?0:xe,pe=We.setCache,Je=We.getCache,Ae=(0,t.useRef)(),oe=(0,t.useRef)(),ye=function(De,Pe){pe?pe(Pe):p(De,ve,Pe),T(De,Pe.data)},Be=function(De,Pe){return Pe===void 0&&(Pe=[]),Je?Je(Pe):S(De)};return h(function(){if(de){var De=Be(de);De&&Object.hasOwnProperty.call(De,"data")&&(he.state.data=De.data,he.state.params=De.params,(Ze===-1||new Date().getTime()-De.time<=Ze)&&(he.state.loading=!1)),Ae.current=z(de,function(Pe){he.setState({data:Pe})})}},[]),(0,m.Z)(function(){var De;(De=Ae.current)===null||De===void 0||De.call(Ae)}),de?{onBefore:function(De){var Pe=Be(de,De);return!Pe||!Object.hasOwnProperty.call(Pe,"data")?{}:Ze===-1||new Date().getTime()-Pe.time<=Ze?{loading:!1,data:Pe==null?void 0:Pe.data,error:void 0,returnNow:!0}:{data:Pe==null?void 0:Pe.data,error:void 0}},onRequest:function(De,Pe){var we=Z(de);return we&&we!==oe.current?{servicePromise:we}:(we=De.apply(void 0,(0,i.ev)([],(0,i.CR)(Pe),!1)),oe.current=we,F(de,we),{servicePromise:we})},onSuccess:function(De,Pe){var we;de&&((we=Ae.current)===null||we===void 0||we.call(Ae),ye(de,{data:De,params:Pe,time:new Date().getTime()}),Ae.current=z(de,function(Le){he.setState({data:Le})}))},onMutate:function(De){var Pe;de&&((Pe=Ae.current)===null||Pe===void 0||Pe.call(Ae),ye(de,{data:De,params:he.state.params,time:new Date().getTime()}),Ae.current=z(de,function(we){he.setState({data:we})}))}}:{}},L=A,I=e(77837),$=e.n(I),B=function(he,We){var de=We.debounceWait,le=We.debounceLeading,ve=We.debounceTrailing,xe=We.debounceMaxWait,Ze=(0,t.useRef)(),pe=(0,t.useMemo)(function(){var Je={};return le!==void 0&&(Je.leading=le),ve!==void 0&&(Je.trailing=ve),xe!==void 0&&(Je.maxWait=xe),Je},[le,ve,xe]);return(0,t.useEffect)(function(){if(de){var Je=he.runAsync.bind(he);return Ze.current=$()(function(Ae){Ae()},de,pe),he.runAsync=function(){for(var Ae=[],oe=0;oe-1&&Ce.splice(de,1)}}if(ce.Z){var Me=function(){if(!(!te()||!fe()))for(var he=0;he{const{type:v,children:h,prefixCls:m,buttonProps:C,close:p,autoFocus:S,emitEvent:w,isSilent:y,quitOnNullishReturnValue:Z,actionFn:F}=l,R=t.useRef(!1),T=t.useRef(null),[z,A]=(0,i.Z)(!1),L=function(){p==null||p.apply(void 0,arguments)};t.useEffect(()=>{let B=null;return S&&(B=setTimeout(()=>{var K;(K=T.current)===null||K===void 0||K.focus()})),()=>{B&&clearTimeout(B)}},[]);const I=B=>{n(B)&&(A(!0),B.then(function(){A(!1,!0),L.apply(void 0,arguments),R.current=!1},K=>{if(A(!1,!0),R.current=!1,!(y!=null&&y()))return Promise.reject(K)}))},$=B=>{if(R.current)return;if(R.current=!0,!F){L();return}let K;if(w){if(K=F(B),Z&&!n(K)){R.current=!1,L(B);return}}else if(F.length)K=F(p),R.current=!1;else if(K=F(),!K){L();return}I(K)};return t.createElement(o.ZP,Object.assign({},(0,s.n)(v),{onClick:$,loading:z,prefixCls:m},C,{ref:T}),h)};b.Z=c},15018:function(M,b,e){"use strict";e.d(b,{Z:function(){return c},i:function(){return n}});var i=e(60409),t=e(58757),o=e(42505),s=e(61836);function n(l){return function(h){return t.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(l,Object.assign({},h)))}}function c(l,v,h,m){function C(p){const{prefixCls:S,style:w}=p,y=t.useRef(null),[Z,F]=t.useState(0),[R,T]=t.useState(0),[z,A]=(0,i.Z)(!1,{value:p.open}),{getPrefixCls:L}=t.useContext(s.E_),I=L(v||"select",S);t.useEffect(()=>{if(A(!0),typeof ResizeObserver!="undefined"){const B=new ResizeObserver(H=>{const ie=H[0].target;F(ie.offsetHeight+8),T(ie.offsetWidth)}),K=setInterval(()=>{var H;const ie=h?`.${h(I)}`:`.${I}-dropdown`,ce=(H=y.current)===null||H===void 0?void 0:H.querySelector(ie);ce&&(clearInterval(K),B.observe(ce))},10);return()=>{clearInterval(K),B.disconnect()}}},[]);let $=Object.assign(Object.assign({},p),{style:Object.assign(Object.assign({},w),{margin:0}),open:z,visible:z,getPopupContainer:()=>y.current});return m&&($=m($)),t.createElement("div",{ref:y,style:{paddingBottom:Z,position:"relative",minWidth:R}},t.createElement(l,Object.assign({},$)))}return n(C)}},1878:function(M,b,e){"use strict";e.d(b,{o2:function(){return n},yT:function(){return c}});var i=e(29140),t=e(34966);const o=t.i.map(l=>`${l}-inverse`),s=["success","processing","error","default","warning"];function n(l){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,i.Z)(o),(0,i.Z)(t.i)).includes(l):t.i.includes(l)}function c(l){return s.includes(l)}},44818:function(M,b){"use strict";function e(){const i=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const n=o[s];n!==void 0&&(i[s]=n)})}return i}b.Z=e},99836:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});const i=t=>t?typeof t=="function"?t():t:null},88858:function(M,b,e){"use strict";e.d(b,{Z:function(){return s}});var i=e(52495),t=e(58757);function o(n,c,l){return typeof n=="boolean"?n:c===void 0?!!l:c!==!1&&c!==null}function s(n,c,l){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.createElement(i.Z,null),h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o(n,c,h))return[!1,null];const C=typeof c=="boolean"||c===void 0||c===null?v:c;return[!0,l?l(C):C]}},69387:function(M,b,e){"use strict";var i=e(58757),t=e(32792);b.Z=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s((0,t.fk)())},[]),o}},4459:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(){const[,o]=i.useReducer(s=>s+1,0);return o}},90881:function(M,b,e){"use strict";e.d(b,{m:function(){return l}});const i=()=>({height:0,opacity:0}),t=v=>{const{scrollHeight:h}=v;return{height:h,opacity:1}},o=v=>({height:v?v.offsetHeight:0}),s=(v,h)=>(h==null?void 0:h.deadline)===!0||h.propertyName==="height",n=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:t,onEnterActive:t,onLeaveStart:o,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},c=null,l=(v,h,m)=>m!==void 0?m:`${v}-${h}`;b.Z=n},95446:function(M,b,e){"use strict";e.d(b,{Z:function(){return c}});var i=e(24542);function t(l,v,h,m){if(m===!1)return{adjustX:!1,adjustY:!1};const C=m&&typeof m=="object"?m:{},p={};switch(l){case"top":case"bottom":p.shiftX=v.dropdownArrowOffset*2+h;break;case"left":case"right":p.shiftY=v.dropdownArrowOffsetVertical*2+h;break}const S=Object.assign(Object.assign({},p),C);return S.shiftX||(S.adjustX=!0),S.shiftY||(S.adjustY=!0),S}const o={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"]}},s={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"]}},n=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function c(l){const{arrowWidth:v,autoAdjustOverflow:h,arrowPointAtCenter:m,offset:C,borderRadius:p,visibleFirst:S}=l,w=v/2,y={};return Object.keys(o).forEach(Z=>{const F=m&&s[Z]||o[Z],R=Object.assign(Object.assign({},F),{offset:[0,0]});switch(y[Z]=R,n.has(Z)&&(R.autoArrow=!1),Z){case"top":case"topLeft":case"topRight":R.offset[1]=-w-C;break;case"bottom":case"bottomLeft":case"bottomRight":R.offset[1]=w+C;break;case"left":case"leftTop":case"leftBottom":R.offset[0]=-w-C;break;case"right":case"rightTop":case"rightBottom":R.offset[0]=w+C;break}const T=(0,i.fS)({contentRadius:p,limitVerticalRadius:!0});if(m)switch(Z){case"topLeft":case"bottomLeft":R.offset[0]=-T.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":R.offset[0]=T.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":R.offset[1]=-T.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":R.offset[1]=T.dropdownArrowOffset+w;break}R.overflow=t(Z,T,v,h),S&&(R.htmlRegion="visibleFirst")}),y}},37047:function(M,b,e){"use strict";var i;e.d(b,{M2:function(){return s},Tm:function(){return c},l$:function(){return o},wm:function(){return n}});var t=e(58757);const{isValidElement:o}=i||(i=e.t(t,2));function s(l){return l&&o(l)&&l.type===t.Fragment}function n(l,v,h){return o(l)?t.cloneElement(l,typeof h=="function"?h(l.props||{}):h):v}function c(l,v){return n(l,l,v)}},87078:function(M,b,e){"use strict";e.d(b,{Z:function(){return c},c:function(){return o}});var i=e(58757),t=e(51806);const o=["xxl","xl","lg","md","sm","xs"],s=l=>({xs:`(max-width: ${l.screenXSMax}px)`,sm:`(min-width: ${l.screenSM}px)`,md:`(min-width: ${l.screenMD}px)`,lg:`(min-width: ${l.screenLG}px)`,xl:`(min-width: ${l.screenXL}px)`,xxl:`(min-width: ${l.screenXXL}px)`}),n=l=>{const v=l,h=[].concat(o).reverse();return h.forEach((m,C)=>{const p=m.toUpperCase(),S=`screen${p}Min`,w=`screen${p}`;if(!(v[S]<=v[w]))throw new Error(`${S}<=${w} fails : !(${v[S]}<=${v[w]})`);if(C{const h=new Map;let m=-1,C={};return{matchHandlers:{},dispatch(p){return C=p,h.forEach(S=>S(C)),h.size>=1},subscribe(p){return h.size||this.register(),m+=1,h.set(m,p),p(C),m},unsubscribe(p){h.delete(p),h.size||this.unregister()},unregister(){Object.keys(v).forEach(p=>{const S=v[p],w=this.matchHandlers[S];w==null||w.mql.removeListener(w==null?void 0:w.listener)}),h.clear()},register(){Object.keys(v).forEach(p=>{const S=v[p],w=Z=>{let{matches:F}=Z;this.dispatch(Object.assign(Object.assign({},C),{[p]:F}))},y=window.matchMedia(S);y.addListener(w),this.matchHandlers[S]={mql:y,listener:w},w(y)})},responsiveMap:v}},[l])}},41496:function(M,b,e){"use strict";e.d(b,{F:function(){return n},Z:function(){return s}});var i=e(87608),t=e.n(i);const o=null;function s(c,l,v){return t()({[`${c}-status-success`]:l==="success",[`${c}-status-warning`]:l==="warning",[`${c}-status-error`]:l==="error",[`${c}-status-validating`]:l==="validating",[`${c}-has-feedback`]:v})}const n=(c,l)=>l||c},32792:function(M,b,e){"use strict";e.d(b,{fk:function(){return s},jD:function(){return t}});var i=e(19075);const t=()=>(0,i.Z)()&&window.document.documentElement;let o;const s=()=>{if(!t())return!1;if(o!==void 0)return o;const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div"));const c=document.createElement("div");return c.style.position="absolute",c.style.zIndex="-9999",c.appendChild(n),document.body.appendChild(c),o=n.scrollHeight===1,document.body.removeChild(c),o}},37486:function(M,b,e){"use strict";e.d(b,{Z:function(){return K}});var i=e(87608),t=e.n(i),o=e(21319),s=e(46499),n=e(58757),c=e(61836),l=e(37047),v=e(52628);const h=H=>{const{componentCls:ie,colorPrimary:ce}=H;return{[ie]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${ce})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${H.motionEaseOutCirc}`,`opacity 2s ${H.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${H.motionEaseInOut}`,`opacity 0.35s ${H.motionEaseInOut}`].join(",")}}}}};var m=(0,v.Z)("Wave",H=>[h(H)]),C=e(51729),p=e(61834),S=e(17598),w=e(52323);function y(H){const ie=(H||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return ie&&ie[1]&&ie[2]&&ie[3]?!(ie[1]===ie[2]&&ie[2]===ie[3]):!0}function Z(H){return H&&H!=="#fff"&&H!=="#ffffff"&&H!=="rgb(255, 255, 255)"&&H!=="rgba(255, 255, 255, 1)"&&y(H)&&!/rgba\((?:\d*, ){3}0\)/.test(H)&&H!=="transparent"}function F(H){const{borderTopColor:ie,borderColor:ce,backgroundColor:te}=getComputedStyle(H);return Z(ie)?ie:Z(ce)?ce:Z(te)?te:null}var R=e(78856);function T(H){return Number.isNaN(H)?0:H}const z=H=>{const{className:ie,target:ce,component:te}=H,W=n.useRef(null),[G,O]=n.useState(null),[k,Y]=n.useState([]),[P,Q]=n.useState(0),[fe,Ce]=n.useState(0),[ge,Me]=n.useState(0),[Re,Qe]=n.useState(0),[Ve,qe]=n.useState(!1),Mt={left:P,top:fe,width:ge,height:Re,borderRadius:k.map(Nt=>`${Nt}px`).join(" ")};G&&(Mt["--wave-color"]=G);function wt(){const Nt=getComputedStyle(ce);O(F(ce));const ke=Nt.position==="static",{borderLeftWidth:He,borderTopWidth:et}=Nt;Q(ke?ce.offsetLeft:T(-parseFloat(He))),Ce(ke?ce.offsetTop:T(-parseFloat(et))),Me(ce.offsetWidth),Qe(ce.offsetHeight);const{borderTopLeftRadius:Fe,borderTopRightRadius:ue,borderBottomLeftRadius:V,borderBottomRightRadius:U}=Nt;Y([Fe,ue,U,V].map(N=>T(parseFloat(N))))}if(n.useEffect(()=>{if(ce){const Nt=(0,p.Z)(()=>{wt(),qe(!0)});let ke;return typeof ResizeObserver!="undefined"&&(ke=new ResizeObserver(wt),ke.observe(ce)),()=>{p.Z.cancel(Nt),ke==null||ke.disconnect()}}},[]),!Ve)return null;const mt=(te==="Checkbox"||te==="Radio")&&(ce==null?void 0:ce.classList.contains(R.A));return n.createElement(S.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Nt,ke)=>{var He;if(ke.deadline||ke.propertyName==="opacity"){const et=(He=W.current)===null||He===void 0?void 0:He.parentElement;(0,w.v)(et).then(()=>{et==null||et.remove()})}return!1}},Nt=>{let{className:ke}=Nt;return n.createElement("div",{ref:W,className:t()(ie,{"wave-quick":mt},ke),style:Mt})})};var L=(H,ie)=>{var ce;const{component:te}=ie;if(te==="Checkbox"&&!(!((ce=H.querySelector("input"))===null||ce===void 0)&&ce.checked))return;const W=document.createElement("div");W.style.position="absolute",W.style.left="0px",W.style.top="0px",H==null||H.insertBefore(W,H==null?void 0:H.firstChild),(0,w.s)(n.createElement(z,Object.assign({},ie,{target:H})),W)},I=e(51806);function $(H,ie,ce){const{wave:te}=n.useContext(c.E_),[,W,G]=(0,I.Z)(),O=(0,C.Z)(P=>{const Q=H.current;if(te!=null&&te.disabled||!Q)return;const fe=Q.querySelector(`.${R.A}`)||Q,{showEffect:Ce}=te||{};(Ce||L)(fe,{className:ie,token:W,component:ce,event:P,hashId:G})}),k=n.useRef();return P=>{p.Z.cancel(k.current),k.current=(0,p.Z)(()=>{O(P)})}}var K=H=>{const{children:ie,disabled:ce,component:te}=H,{getPrefixCls:W}=(0,n.useContext)(c.E_),G=(0,n.useRef)(null),O=W("wave"),[,k]=m(O),Y=$(G,t()(O,k),te);if(n.useEffect(()=>{const Q=G.current;if(!Q||Q.nodeType!==1||ce)return;const fe=Ce=>{!(0,s.Z)(Ce.target)||!Q.getAttribute||Q.getAttribute("disabled")||Q.disabled||Q.className.includes("disabled")||Q.className.includes("-leave")||Y(Ce)};return Q.addEventListener("click",fe,!0),()=>{Q.removeEventListener("click",fe,!0)}},[ce]),!n.isValidElement(ie))return ie!=null?ie:null;const P=(0,o.Yr)(ie)?(0,o.sQ)(ie.ref,G):G;return(0,l.Tm)(ie,{ref:P})}},78856:function(M,b,e){"use strict";e.d(b,{A:function(){return i}});const i="ant-wave-target"},70921:function(M,b,e){"use strict";e.d(b,{n:function(){return de},Z:function(){return Ze}});var i=e(87608),t=e.n(i),o=e(98186),s=e(21319),n=e(58757),c=e(37486),l=e(61836),v=e(92428),h=e(58785),m=e(43528),p=(0,n.forwardRef)((pe,Je)=>{const{className:Ae,style:oe,children:ye,prefixCls:Be}=pe,De=t()(`${Be}-icon`,Ae);return n.createElement("span",{ref:Je,className:De,style:oe},ye)}),S=e(25755),w=e(17598);const y=(0,n.forwardRef)((pe,Je)=>{let{prefixCls:Ae,className:oe,style:ye,iconClassName:Be}=pe;const De=t()(`${Ae}-loading-icon`,oe);return n.createElement(p,{prefixCls:Ae,className:De,style:ye,ref:Je},n.createElement(S.Z,{className:Be}))}),Z=()=>({width:0,opacity:0,transform:"scale(0)"}),F=pe=>({width:pe.scrollWidth,opacity:1,transform:"scale(1)"});var T=pe=>{const{prefixCls:Je,loading:Ae,existIcon:oe,className:ye,style:Be}=pe,De=!!Ae;return oe?n.createElement(y,{prefixCls:Je,className:ye,style:Be}):n.createElement(w.ZP,{visible:De,motionName:`${Je}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Z,onAppearActive:F,onEnterStart:Z,onEnterActive:F,onLeaveStart:F,onLeaveActive:Z},(Pe,we)=>{let{className:Le,style:Ye}=Pe;return n.createElement(y,{prefixCls:Je,className:ye,style:Object.assign(Object.assign({},Be),Ye),ref:we,iconClassName:Le})})},z=e(51806),A=function(pe,Je){var Ae={};for(var oe in pe)Object.prototype.hasOwnProperty.call(pe,oe)&&Je.indexOf(oe)<0&&(Ae[oe]=pe[oe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,oe=Object.getOwnPropertySymbols(pe);ye{const{getPrefixCls:Je,direction:Ae}=n.useContext(l.E_),{prefixCls:oe,size:ye,className:Be}=pe,De=A(pe,["prefixCls","size","className"]),Pe=Je("btn-group",oe),[,,we]=(0,z.Z)();let Le="";switch(ye){case"large":Le="lg";break;case"small":Le="sm";break;case"middle":case void 0:break;default:}const Ye=t()(Pe,{[`${Pe}-${Le}`]:Le,[`${Pe}-rtl`]:Ae==="rtl"},Be,we);return n.createElement(L.Provider,{value:ye},n.createElement("div",Object.assign({},De,{className:Ye})))},B=e(37047);const K=/^[\u4e00-\u9fa5]{2}$/,H=K.test.bind(K);function ie(pe){return typeof pe=="string"}function ce(pe){return pe==="text"||pe==="link"}function te(pe,Je){if(pe==null)return;const Ae=Je?" ":"";return typeof pe!="string"&&typeof pe!="number"&&ie(pe.type)&&H(pe.props.children)?(0,B.Tm)(pe,{children:pe.props.children.split("").join(Ae)}):ie(pe)?H(pe)?n.createElement("span",null,pe.split("").join(Ae)):n.createElement("span",null,pe):(0,B.M2)(pe)?n.createElement("span",null,pe):pe}function W(pe,Je){let Ae=!1;const oe=[];return n.Children.forEach(pe,ye=>{const Be=typeof ye,De=Be==="string"||Be==="number";if(Ae&&De){const Pe=oe.length-1,we=oe[Pe];oe[Pe]=`${we}${ye}`}else oe.push(ye);Ae=De}),n.Children.map(oe,ye=>te(ye,Je))}const G=null,O=null,k=null;var Y=e(78330),P=e(64493);function Q(pe,Je){return{[`&-item:not(${Je}-last-item)`]:{marginBottom:-pe.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fe(pe,Je){return{[`&-item:not(${Je}-first-item):not(${Je}-last-item)`]:{borderRadius:0},[`&-item${Je}-first-item:not(${Je}-last-item)`]:{[`&, &${pe}-sm, &${pe}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${Je}-last-item:not(${Je}-first-item)`]:{[`&, &${pe}-sm, &${pe}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ce(pe){const Je=`${pe.componentCls}-compact-vertical`;return{[Je]:Object.assign(Object.assign({},Q(pe,Je)),fe(pe.componentCls,Je))}}var ge=e(22151),Me=e(52628);const Re=(pe,Je)=>({[`> span, > ${pe}`]:{"&:not(:last-child)":{[`&, & > ${pe}`]:{"&:not(:disabled)":{borderInlineEndColor:Je}}},"&:not(:first-child)":{[`&, & > ${pe}`]:{"&:not(:disabled)":{borderInlineStartColor:Je}}}}});var Ve=pe=>{const{componentCls:Je,fontSize:Ae,lineWidth:oe,colorPrimaryHover:ye,colorErrorHover:Be}=pe;return{[`${Je}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${Je}`]:{"&:not(:last-child)":{[`&, & > ${Je}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-oe,[`&, & > ${Je}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[Je]:{position:"relative",zIndex:1,[`&:hover, + `),Fo=!1),Tn||xo(Pa()),Tn.formatMessage(yt,be)},Bo=function(){return Object.keys(zr)}},47338:function(M,b,e){"use strict";e.d(b,{t:function(){return R},z:function(){return F}});var i=e(88205),t=e.n(i),o=e(61697),s=e.n(o),n=e(77016),c=e.n(n),l=e(2657),v=e.n(l),h=e(44204),m=e.n(h),C=e(58757),p=e(35667),S=C.createContext(null),w=s()(function T(){var z=this;c()(this,T),v()(this,"callbacks",{}),v()(this,"data",{}),v()(this,"update",function(A){z.callbacks[A]&&z.callbacks[A].forEach(function(L){try{var I=z.data[A];L(I)}catch($){L(void 0)}})})});function y(T){var z=T.hook,A=T.onUpdate,L=T.namespace,I=(0,C.useRef)(A),$=(0,C.useRef)(!1),B;try{B=z()}catch(K){console.error("plugin-model: Invoking '".concat(L||"unknown","' model failed:"),K)}return(0,C.useMemo)(function(){I.current(B)},[]),(0,C.useEffect)(function(){$.current?I.current(B):$.current=!0}),null}var Z=new w;function F(T){return(0,p.jsxs)(S.Provider,{value:{dispatcher:Z},children:[Object.keys(T.models).map(function(z){return(0,p.jsx)(y,{hook:T.models[z],namespace:z,onUpdate:function(L){Z.data[z]=L,Z.update(z)}},z)}),T.children]})}function R(T,z){var A=(0,C.useContext)(S),L=A.dispatcher,I=(0,C.useRef)(z);I.current=z;var $=(0,C.useState)(function(){return I.current?I.current(L.data[T]):L.data[T]}),B=t()($,2),K=B[0],H=B[1],ie=(0,C.useRef)(K);ie.current=K;var ce=(0,C.useRef)(!1);return(0,C.useEffect)(function(){return ce.current=!0,function(){ce.current=!1}},[]),(0,C.useEffect)(function(){var te,W=function(O){if(!ce.current)setTimeout(function(){L.data[T]=O,L.update(T)});else{var k=I.current?I.current(O):O,Y=ie.current;m()(k,Y)||(ie.current=k,H(k))}};return(te=L.callbacks)[T]||(te[T]=new Set),L.callbacks[T].add(W),L.update(T),function(){L.callbacks[T].delete(W)}},[T]),K}},76180:function(M,b,e){"use strict";e.d(b,{AD:function(){return U},JJ:function(){return ue},EX:function(){return D},BP:function(){return Ze},pB:function(){return pe},G3:function(){return Je},YZ:function(){return ve},J1:function(){return xe},L8:function(){return ke},Ss:function(){return N},zY:function(){return V},oC:function(){return oe},gS:function(){return Fe},po:function(){return Se},a5:function(){return he},j3:function(){return de},YC:function(){return We},iP:function(){return se},oM:function(){return X},JQ:function(){return ee},Wp:function(){return Ie},$j:function(){return le},uP:function(){return re},Uf:function(){return Ae}});var i=e(2657),t=e.n(i),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,v=(De,Pe,we)=>Pe in De?s(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,h=(De,Pe)=>{for(var we in Pe||(Pe={}))c.call(Pe,we)&&v(De,we,Pe[we]);if(n)for(var we of n(Pe))l.call(Pe,we)&&v(De,we,Pe[we]);return De};const m=De=>o.createElement("svg",h({className:"classification_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M797.723 912.007h-149.1c-59.634 0-109.325-49.691-109.325-109.326V539.325h263.356c59.635 0 109.326 49.69 109.326 109.325v149.073c0 29.804-9.944 54.65-29.804 79.495-29.83 24.818-54.703 34.762-84.48 34.762zm-422.373 0H226.277c-64.593 0-114.257-49.691-114.257-109.326V653.608c0-29.803 9.917-59.634 34.762-79.494 19.86-19.887 49.691-34.79 79.495-34.79h258.398v263.357c0 29.804-9.943 54.65-29.803 79.495-24.846 19.887-49.691 29.83-79.522 29.83zm422.373-422.373H534.339V226.277c0-29.804 9.97-59.634 34.79-79.495 19.887-19.86 49.69-34.762 79.521-34.762h149.073c59.608 4.932 109.298 54.623 109.298 114.257V375.35c0 29.83-9.916 54.676-29.803 79.495-24.846 24.845-49.691 34.762-79.495 34.762zm-313.048 0H221.32c-59.635 0-109.326-49.691-109.326-109.326V231.235c0-29.803 9.944-59.607 34.79-79.494 19.86-24.819 49.69-34.762 74.536-34.762h149.073c59.634 0 109.298 49.664 109.298 109.298v263.384h4.958v-.027z"}));var C="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTc5Ny43MjMgOTEyLjAwN2gtMTQ5LjFjLTU5LjYzNCAwLTEwOS4zMjUtNDkuNjkxLTEwOS4zMjUtMTA5LjMyNlY1MzkuMzI1aDI2My4zNTZjNTkuNjM1IDAgMTA5LjMyNiA0OS42OSAxMDkuMzI2IDEwOS4zMjV2MTQ5LjA3M2MwIDI5LjgwNC05Ljk0NCA1NC42NS0yOS44MDQgNzkuNDk1LTI5LjgzIDI0LjgxOC01NC43MDMgMzQuNzYyLTg0LjQ4IDM0Ljc2MnptLTQyMi4zNzMgMEgyMjYuMjc3Yy02NC41OTMgMC0xMTQuMjU3LTQ5LjY5MS0xMTQuMjU3LTEwOS4zMjZWNjUzLjYwOGMwLTI5LjgwMyA5LjkxNy01OS42MzQgMzQuNzYyLTc5LjQ5NCAxOS44Ni0xOS44ODcgNDkuNjkxLTM0Ljc5IDc5LjQ5NS0zNC43OWgyNTguMzk4djI2My4zNTdjMCAyOS44MDQtOS45NDMgNTQuNjUtMjkuODAzIDc5LjQ5NS0yNC44NDYgMTkuODg3LTQ5LjY5MSAyOS44My03OS41MjIgMjkuODN6bTQyMi4zNzMtNDIyLjM3M0g1MzQuMzM5VjIyNi4yNzdjMC0yOS44MDQgOS45Ny01OS42MzQgMzQuNzktNzkuNDk1IDE5Ljg4Ny0xOS44NiA0OS42OS0zNC43NjIgNzkuNTIxLTM0Ljc2MmgxNDkuMDczYzU5LjYwOCA0LjkzMiAxMDkuMjk4IDU0LjYyMyAxMDkuMjk4IDExNC4yNTdWMzc1LjM1YzAgMjkuODMtOS45MTYgNTQuNjc2LTI5LjgwMyA3OS40OTUtMjQuODQ2IDI0Ljg0NS00OS42OTEgMzQuNzYyLTc5LjQ5NSAzNC43NjJ6bS0zMTMuMDQ4IDBIMjIxLjMyYy01OS42MzUgMC0xMDkuMzI2LTQ5LjY5MS0xMDkuMzI2LTEwOS4zMjZWMjMxLjIzNWMwLTI5LjgwMyA5Ljk0NC01OS42MDcgMzQuNzktNzkuNDk0IDE5Ljg2LTI0LjgxOSA0OS42OS0zNC43NjIgNzQuNTM2LTM0Ljc2MmgxNDkuMDczYzU5LjYzNCAwIDEwOS4yOTggNDkuNjY0IDEwOS4yOTggMTA5LjI5OHYyNjMuMzg0aDQuOTU4di0uMDI3eiIvPjwvc3ZnPg==",p=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,Z=(De,Pe,we)=>Pe in De?p(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,F=(De,Pe)=>{for(var we in Pe||(Pe={}))w.call(Pe,we)&&Z(De,we,Pe[we]);if(S)for(var we of S(Pe))y.call(Pe,we)&&Z(De,we,Pe[we]);return De};const R=De=>o.createElement("svg",F({className:"datasetDetection_svg__icon",viewBox:"0 0 1092 1024",xmlns:"http://www.w3.org/2000/svg",width:213.281,height:200},De),o.createElement("path",{d:"m514.859 116.928 318.336 130.624-1.28 3.2 2.88-1.152v448l-320 128-320-128v-448l2.816 1.152-1.28-3.2 318.528-130.624zm-256 227.2v310.144l224 89.6V434.24h1.28l-225.28-90.112zm512 0L545.323 434.24h1.408v309.632l224-89.6V344.128zm-256.064-158.08-236.352 97.024L514.795 377.6l236.288-94.528-236.288-97.024zM132.523 728.064v160h160v64h-224v-224h64zm830.272 0v224h-224v-64h160v-160h64zm-670.272-672v64h-160v160h-64v-224h224zm670.272 0v224h-64v-160h-160v-64h224z"}),o.createElement("path",{d:"M4.267 0h1024v1024h-1024z",fill:"none"}));var T="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwOTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEzLjI4MSIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Im01MTQuODU5IDExNi45MjggMzE4LjMzNiAxMzAuNjI0LTEuMjggMy4yIDIuODgtMS4xNTJ2NDQ4bC0zMjAgMTI4LTMyMC0xMjh2LTQ0OGwyLjgxNiAxLjE1Mi0xLjI4LTMuMiAzMTguNTI4LTEzMC42MjR6bS0yNTYgMjI3LjJ2MzEwLjE0NGwyMjQgODkuNlY0MzQuMjRoMS4yOGwtMjI1LjI4LTkwLjExMnptNTEyIDBMNTQ1LjMyMyA0MzQuMjRoMS40MDh2MzA5LjYzMmwyMjQtODkuNlYzNDQuMTI4em0tMjU2LjA2NC0xNTguMDgtMjM2LjM1MiA5Ny4wMjRMNTE0Ljc5NSAzNzcuNmwyMzYuMjg4LTk0LjUyOC0yMzYuMjg4LTk3LjAyNHpNMTMyLjUyMyA3MjguMDY0djE2MGgxNjB2NjRoLTIyNHYtMjI0aDY0em04MzAuMjcyIDB2MjI0aC0yMjR2LTY0aDE2MHYtMTYwaDY0em0tNjcwLjI3Mi02NzJ2NjRoLTE2MHYxNjBoLTY0di0yMjRoMjI0em02NzAuMjcyIDB2MjI0aC02NHYtMTYwaC0xNjB2LTY0aDIyNHoiLz48cGF0aCBkPSJNNC4yNjcgMGgxMDI0djEwMjRoLTEwMjR6IiBmaWxsPSJub25lIi8+PC9zdmc+",z=Object.defineProperty,A=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,$=(De,Pe,we)=>Pe in De?z(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,B=(De,Pe)=>{for(var we in Pe||(Pe={}))L.call(Pe,we)&&$(De,we,Pe[we]);if(A)for(var we of A(Pe))I.call(Pe,we)&&$(De,we,Pe[we]);return De};const K=De=>o.createElement("svg",B({className:"datasetSegment_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M179.2 524.288h678.912a25.6 25.6 0 0 0 0-51.2H179.2a25.6 25.6 0 0 0 0 51.2zm700.672-245.504v-56.32l-164.864 156.16H774.4l105.472-99.84zm0 73.216-27.904 26.624h27.904V352zm-242.176 26.624 242.176-229.376v-15.616h-43.264L578.304 378.624h59.392zm-136.96 0 258.56-244.992h-59.392L441.6 378.624h59.136zm-136.704 0 258.304-244.992h-59.392l-258.56 244.992h59.648zm-136.96 0 258.56-244.992H426.24L167.68 378.624h59.392zm62.72-244.992L156.16 260.352v55.808l192.512-182.528h-58.88zm-133.632 0v53.504l56.32-53.504h-56.32zm618.24 742.4 105.472-99.584v-56.576l-164.864 156.16H774.4zm105.472 0v-26.368l-27.904 26.368h27.904zm-301.568 0h59.392l242.176-229.376v-15.36h-43.264L578.304 876.032zm121.6-244.736L441.6 876.032h59.136l258.56-244.736h-59.392zm-136.96 0-258.56 244.736h59.648l258.304-244.736h-59.392zm-136.704 0L167.68 876.032h59.392l258.56-244.736H426.24zm-136.448 0L156.16 758.016v55.808l192.512-182.528h-58.88zM156.16 684.544l56.32-53.248h-56.32v53.248z"}));var H="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE3OS4yIDUyNC4yODhoNjc4LjkxMmEyNS42IDI1LjYgMCAwIDAgMC01MS4ySDE3OS4yYTI1LjYgMjUuNiAwIDAgMCAwIDUxLjJ6bTcwMC42NzItMjQ1LjUwNHYtNTYuMzJsLTE2NC44NjQgMTU2LjE2SDc3NC40bDEwNS40NzItOTkuODR6bTAgNzMuMjE2LTI3LjkwNCAyNi42MjRoMjcuOTA0VjM1MnptLTI0Mi4xNzYgMjYuNjI0IDI0Mi4xNzYtMjI5LjM3NnYtMTUuNjE2aC00My4yNjRMNTc4LjMwNCAzNzguNjI0aDU5LjM5MnptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkyaC01OS4zOTJMNDQxLjYgMzc4LjYyNGg1OS4xMzZ6bS0xMzYuNzA0IDAgMjU4LjMwNC0yNDQuOTkyaC01OS4zOTJsLTI1OC41NiAyNDQuOTkyaDU5LjY0OHptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkySDQyNi4yNEwxNjcuNjggMzc4LjYyNGg1OS4zOTJ6bTYyLjcyLTI0NC45OTJMMTU2LjE2IDI2MC4zNTJ2NTUuODA4bDE5Mi41MTItMTgyLjUyOGgtNTguODh6bS0xMzMuNjMyIDB2NTMuNTA0bDU2LjMyLTUzLjUwNGgtNTYuMzJ6bTYxOC4yNCA3NDIuNCAxMDUuNDcyLTk5LjU4NHYtNTYuNTc2bC0xNjQuODY0IDE1Ni4xNkg3NzQuNHptMTA1LjQ3MiAwdi0yNi4zNjhsLTI3LjkwNCAyNi4zNjhoMjcuOTA0em0tMzAxLjU2OCAwaDU5LjM5MmwyNDIuMTc2LTIyOS4zNzZ2LTE1LjM2aC00My4yNjRMNTc4LjMwNCA4NzYuMDMyem0xMjEuNi0yNDQuNzM2TDQ0MS42IDg3Ni4wMzJoNTkuMTM2bDI1OC41Ni0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuOTYgMC0yNTguNTYgMjQ0LjczNmg1OS42NDhsMjU4LjMwNC0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuNzA0IDBMMTY3LjY4IDg3Ni4wMzJoNTkuMzkybDI1OC41Ni0yNDQuNzM2SDQyNi4yNHptLTEzNi40NDggMEwxNTYuMTYgNzU4LjAxNnY1NS44MDhsMTkyLjUxMi0xODIuNTI4aC01OC44OHpNMTU2LjE2IDY4NC41NDRsNTYuMzItNTMuMjQ4aC01Ni4zMnY1My4yNDh6Ii8+PC9zdmc+",ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,G=(De,Pe,we)=>Pe in De?ie(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,O=(De,Pe)=>{for(var we in Pe||(Pe={}))te.call(Pe,we)&&G(De,we,Pe[we]);if(ce)for(var we of ce(Pe))W.call(Pe,we)&&G(De,we,Pe[we]);return De};const k=De=>o.createElement("svg",O({className:"datasetMatting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M832 288h-96v-96c0-52.9-43.1-96-96-96H192c-52.9 0-96 43.1-96 96v448c0 52.9 43.1 96 96 96h96v96c0 52.9 43.1 96 96 96h448c52.9 0 96-43.1 96-96V384c0-52.9-43.1-96-96-96zM160 640V192c0-17.6 14.4-32 32-32h448c17.6 0 32 14.4 32 32v96h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32v288c0 17.6-14.4 32-32 32H352v-32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32h-96c-17.6 0-32-14.4-32-32zm704 192c0 17.6-14.4 32-32 32H384c-17.6 0-32-14.4-32-32v-96h288c52.9 0 96-43.1 96-96V352h96c17.6 0 32 14.4 32 32v448z"}),o.createElement("path",{d:"M320 576c17.7 0 32-14.3 32-32v-64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32zm160-224h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-160 64c17.7 0 32-14.3 32-32 0-17.6 14.4-32 32-32 17.7 0 32-14.3 32-32s-14.3-32-32-32c-52.9 0-96 43.1-96 96 0 17.7 14.3 32 32 32z"}));var Y="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgzMiAyODhoLTk2di05NmMwLTUyLjktNDMuMS05Ni05Ni05NkgxOTJjLTUyLjkgMC05NiA0My4xLTk2IDk2djQ0OGMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg5NnY5NmMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg0NDhjNTIuOSAwIDk2LTQzLjEgOTYtOTZWMzg0YzAtNTIuOS00My4xLTk2LTk2LTk2ek0xNjAgNjQwVjE5MmMwLTE3LjYgMTQuNC0zMiAzMi0zMmg0NDhjMTcuNiAwIDMyIDE0LjQgMzIgMzJ2OTZoLTMyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnMxNC4zIDMyIDMyIDMyaDMydjI4OGMwIDE3LjYtMTQuNCAzMi0zMiAzMkgzNTJ2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjMyaC05NmMtMTcuNiAwLTMyLTE0LjQtMzItMzJ6bTcwNCAxOTJjMCAxNy42LTE0LjQgMzItMzIgMzJIMzg0Yy0xNy42IDAtMzItMTQuNC0zMi0zMnYtOTZoMjg4YzUyLjkgMCA5Ni00My4xIDk2LTk2VjM1Mmg5NmMxNy42IDAgMzIgMTQuNCAzMiAzMnY0NDh6Ii8+PHBhdGggZD0iTTMyMCA1NzZjMTcuNyAwIDMyLTE0LjMgMzItMzJ2LTY0YzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyem0xNjAtMjI0aDY0YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMyaC02NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJzMTQuMyAzMiAzMiAzMnptLTE2MCA2NGMxNy43IDAgMzItMTQuMyAzMi0zMiAwLTE3LjYgMTQuNC0zMiAzMi0zMiAxNy43IDAgMzItMTQuMyAzMi0zMnMtMTQuMy0zMi0zMi0zMmMtNTIuOSAwLTk2IDQzLjEtOTYgOTYgMCAxNy43IDE0LjMgMzIgMzIgMzJ6Ii8+PC9zdmc+",P=Object.defineProperty,Q=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(De,Pe,we)=>Pe in De?P(De,Pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):De[Pe]=we,Me=(De,Pe)=>{for(var we in Pe||(Pe={}))fe.call(Pe,we)&&ge(De,we,Pe[we]);if(Q)for(var we of Q(Pe))Ce.call(Pe,we)&&ge(De,we,Pe[we]);return De};const Ne=De=>o.createElement("svg",Me({className:"datasetKeypoint_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},De),o.createElement("path",{d:"M938.667 298.667c0 70.613-57.387 128-128 128s-128-57.387-128-128c0-1.92 0-3.627.213-5.334L501.12 238.72a107.03 107.03 0 0 1-63.787 55.253l69.334 138.24c15.36-3.626 31.573-5.546 48-5.546C672.213 426.667 768 522.453 768 640s-95.787 213.333-213.333 213.333c-85.334 0-159.147-50.56-193.067-123.093l-34.133 22.613c8.96 17.28 13.866 36.907 13.866 57.814 0 70.613-57.386 128-128 128s-128-57.387-128-128 57.387-128 128-128c34.774 0 66.134 13.653 88.96 36.053l44.8-29.867c-3.84-15.573-5.76-32-5.76-48.853 0-85.973 51.2-160.213 124.587-193.92L391.68 297.6A106.475 106.475 0 0 1 298.667 192c0-58.88 47.786-106.667 106.666-106.667S512 133.12 512 192c0 1.707 0 3.627-.213 5.333l180.053 53.974a127.957 127.957 0 0 1 118.827-80.64c70.613 0 128 57.386 128 128z"}));var Qe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTkzOC42NjcgMjk4LjY2N2MwIDcwLjYxMy01Ny4zODcgMTI4LTEyOCAxMjhzLTEyOC01Ny4zODctMTI4LTEyOGMwLTEuOTIgMC0zLjYyNy4yMTMtNS4zMzRMNTAxLjEyIDIzOC43MmExMDcuMDMgMTA3LjAzIDAgMCAxLTYzLjc4NyA1NS4yNTNsNjkuMzM0IDEzOC4yNGMxNS4zNi0zLjYyNiAzMS41NzMtNS41NDYgNDgtNS41NDZDNjcyLjIxMyA0MjYuNjY3IDc2OCA1MjIuNDUzIDc2OCA2NDBzLTk1Ljc4NyAyMTMuMzMzLTIxMy4zMzMgMjEzLjMzM2MtODUuMzM0IDAtMTU5LjE0Ny01MC41Ni0xOTMuMDY3LTEyMy4wOTNsLTM0LjEzMyAyMi42MTNjOC45NiAxNy4yOCAxMy44NjYgMzYuOTA3IDEzLjg2NiA1Ny44MTQgMCA3MC42MTMtNTcuMzg2IDEyOC0xMjggMTI4cy0xMjgtNTcuMzg3LTEyOC0xMjggNTcuMzg3LTEyOCAxMjgtMTI4YzM0Ljc3NCAwIDY2LjEzNCAxMy42NTMgODguOTYgMzYuMDUzbDQ0LjgtMjkuODY3Yy0zLjg0LTE1LjU3My01Ljc2LTMyLTUuNzYtNDguODUzIDAtODUuOTczIDUxLjItMTYwLjIxMyAxMjQuNTg3LTE5My45MkwzOTEuNjggMjk3LjZBMTA2LjQ3NSAxMDYuNDc1IDAgMCAxIDI5OC42NjcgMTkyYzAtNTguODggNDcuNzg2LTEwNi42NjcgMTA2LjY2Ni0xMDYuNjY3UzUxMiAxMzMuMTIgNTEyIDE5MmMwIDEuNzA3IDAgMy42MjctLjIxMyA1LjMzM2wxODAuMDUzIDUzLjk3NGExMjcuOTU3IDEyNy45NTcgMCAwIDEgMTE4LjgyNy04MC42NGM3MC42MTMgMCAxMjggNTcuMzg2IDEyOCAxMjh6Ii8+PC9zdmc+",Ve,qe,Mt,wt,gt="Deep Data Space",Lt="https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg",ke=50,He=null,et=null,Fe=8,ue=function(De){return De.Classification="Classification",De.Detection="Detection",De.Segmentation="Segmentation",De.Matting="Matting",De.KeyPoints="KeyPoints",De.Mask="Mask",De}({}),V=function(De){return De.showAnnotations="showAnnotations",De.showAllCategory="showAllCategory",De.showImgDesc="showImgDesc",De.showBoxText="showBoxText",De.showSegFilling="showSegFilling",De.showSegContour="showSegContour",De.showMattingColorFill="showMattingColorFill",De.showKeyPointsLine="showKeyPointsLine",De.showKeyPointsBox="showKeyPointsBox",De}({}),U=(Ve={},t()(Ve,ue.Classification,m),t()(Ve,ue.Detection,R),t()(Ve,ue.Segmentation,K),t()(Ve,ue.Matting,k),t()(Ve,ue.KeyPoints,Ne),t()(Ve,ue.Mask,k),Ve),N=(qe={},t()(qe,V.showAnnotations,"lab.displayOption.showAnnotations"),t()(qe,V.showAllCategory,"lab.displayOption.showAllCategory"),t()(qe,V.showImgDesc,"lab.displayOption.showImgDesc"),t()(qe,V.showBoxText,"lab.displayOption.showBoxText"),t()(qe,V.showSegFilling,"lab.displayOption.showSegFilling"),t()(qe,V.showSegContour,"lab.displayOption.showSegContour"),t()(qe,V.showMattingColorFill,"lab.displayOption.showMattingColorFill"),t()(qe,V.showKeyPointsLine,"lab.displayOption.showKeyPointsLine"),t()(qe,V.showKeyPointsBox,"lab.displayOption.showKeyPointsBox"),qe),D=[V.showAnnotations,V.showAllCategory,V.showImgDesc],ee=[[0],[2],[5],[10],[1,5,3],[5,2,10]],se=[1,.4,.6,.8,.85,.9],X=[1,1.5,1.75,2,2.25,2.5],re=function(De){return De.Overlay="dataset.diffMode.overlay",De.Tiled="dataset.diffMode.tiled",De}({}),Ie=[re.Overlay,re.Tiled],Se=function(De){return De[De.all=-1]="all",De[De.unflaged=0]="unflaged",De[De.picked=1]="picked",De[De.rejected=2]="rejected",De}({}),he=(Mt={},t()(Mt,Se.all,"transparent"),t()(Mt,Se.unflaged,"#8C8C8C"),t()(Mt,Se.picked,"#52C41A"),t()(Mt,Se.rejected,"#F5222D"),Mt),We=[{value:Se.picked,tip:"save as 'positive'"},{value:Se.rejected,tip:"save as 'negative'"},{value:Se.unflaged,tip:"save as 'unset'"}],de=[{value:Se.all,name:"all"},{value:Se.unflaged,name:"unset"},{value:Se.picked,name:"positive"},{value:Se.rejected,name:"negative"}],le=function(De){return De.gt="GT",De.user="User",De.pred="Pred",De}({}),ve=function(De){return De.fn="fn",De.fp="fp",De}({}),xe=[{value:ve.fn,name:"FN count"},{value:ve.fp,name:"FP count"}],Ze=function(De){return De.ok="OK",De.fn="FN",De.fp="FP",De}({}),pe=(wt={},t()(wt,Ze.ok,""),t()(wt,Ze.fn,"rgba(255,0,0,0.4)"),t()(wt,Ze.fp,"rgba(0,0,255,0.4)"),wt),Je=[{value:le.gt,name:"GT - Matched"},{value:Ze.fn,name:"GT - FN"},{value:le.pred,name:"Prediction - Matched"},{value:Ze.fp,name:"Prediction - FP"}],Ae=function(De){return De.AUTH_TOKEN="auth_token",De}({}),oe=function(De){return De.Active="active",De.Inactive="inactive",De.Activating="activating",De}({}),ye=function(De){return De.Upload="self_uploaded",De.DirectUrl="direct_url",De}({}),Be=function(De){return De.Waiting="waiting",De.Running="running",De.Success="success",De.Failed="failed",De.Fail="fail",De}({})},35459:function(M,b,e){"use strict";e.d(b,{JE:function(){return h},ZA:function(){return v},gZ:function(){return l},j$:function(){return m},mu:function(){return c},tz:function(){return n}});var i=e(2657),t=e.n(i),o,s,n=function(C){return C.Waiting="waiting",C.Initializing="initializing",C.Working="working",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C.Exported="exported",C}({}),c=(o={},t()(o,n.Waiting,{text:"proj.statusMap.waiting",color:"default"}),t()(o,n.Initializing,{text:"proj.statusMap.initializing",color:"default"}),t()(o,n.Working,{text:"proj.statusMap.working",color:"processing"}),t()(o,n.Reviewing,{text:"proj.statusMap.reviewing",color:"warning"}),t()(o,n.Rejected,{text:"proj.statusMap.rejected",color:"error"}),t()(o,n.Accepted,{text:"proj.statusMap.accepted",color:"success"}),t()(o,n.Exported,{text:"proj.statusMap.exported",color:"default"}),o),l=function(C){return C.Waiting="waiting",C.Working="working",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C}({}),v=(s={},t()(s,l.Waiting,{text:"proj.eTaskStatus.waiting",color:"default"}),t()(s,l.Working,{text:"proj.eTaskStatus.working",color:"processing"}),t()(s,l.Reviewing,{text:"proj.eTaskStatus.reviewing",color:"warning"}),t()(s,l.Rejected,{text:"proj.eTaskStatus.rejected",color:"error"}),t()(s,l.Accepted,{text:"proj.eTaskStatus.accepted",color:"success"}),s),h=function(C){return C.Accept="accept",C.Reject="reject",C.ForceAccept="force_accept",C}({}),m=function(C){return C.Labeling="labeling",C.Reviewing="reviewing",C.Rejected="rejected",C.Accepted="accepted",C}({})},1239:function(M,b,e){"use strict";e.d(b,{Oc:function(){return c},vb:function(){return n}});var i=e(2657),t=e.n(i),o=e(97375),s,n=function(v){return v.Owner="owner",v.Manager="manager",v.LabelLeader="label_leader",v.ReviewLeader="review_leader",v.Labeler="labeler",v.Reviewer="reviewer",v}({}),c=function(v){return v[v.ProjectEdit=0]="ProjectEdit",v[v.ProjectInfo=1]="ProjectInfo",v[v.ProjectInit=2]="ProjectInit",v[v.ProjectQa=3]="ProjectQa",v[v.ProjectExport=4]="ProjectExport",v[v.AssignLeader=100]="AssignLeader",v[v.TaskQa=101]="TaskQa",v[v.AssignLabeler=102]="AssignLabeler",v[v.AssignReviewer=103]="AssignReviewer",v[v.RestartTask=104]="RestartTask",v[v.StartLabel=105]="StartLabel",v[v.StartReview=106]="StartReview",v[v.CommitReviewTask=107]="CommitReviewTask",v[v.View=108]="View",v}({}),l=(s={},t()(s,n.Owner,[c.ProjectEdit,c.ProjectQa,c.View,c.ProjectExport]),t()(s,n.Manager,[c.ProjectInit,c.ProjectInfo,c.AssignLeader,c.TaskQa,c.View]),t()(s,n.LabelLeader,[c.AssignLabeler,c.RestartTask,c.View]),t()(s,n.ReviewLeader,[c.AssignReviewer,c.View]),t()(s,n.Labeler,[c.StartLabel]),t()(s,n.Reviewer,[c.StartReview,c.CommitReviewTask]),s);b.ZP=function(){var v=(0,o.useModel)("user"),h=v.user,m=function(S,w){if(!h.userId||!S)return[];var y=[];if(h.userId===S.owner.id&&y.push(n.Owner),S.managers.find(function(R){return R.id===h.userId})&&y.push(n.Manager),w){var Z,F;((Z=w.labelLeader)===null||Z===void 0?void 0:Z.userId)===h.userId&&y.push(n.LabelLeader),((F=w.reviewLeader)===null||F===void 0?void 0:F.userId)===h.userId&&y.push(n.ReviewLeader),w.labelers.find(function(R){return R.userId===h.userId})&&y.push(n.Labeler),w.reviewers.find(function(R){return R.userId===h.userId})&&y.push(n.Reviewer)}return y},C=function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0,y=[];return S.forEach(function(Z){var F=l[Z];F.forEach(function(R){y.includes(R)||y.push(R)})}),y.includes(w)};return{getUserRoles:m,checkPermission:C}}},32694:function(M,b,e){"use strict";e.d(b,{u:function(){return F}});var i=e(24454),t=e.n(i),o=e(34485),s=e.n(o),n=e(56592),c=e.n(n),l=e(88205),v=e.n(l),h=e(97375),m=e(65246),C=e(7986),p=e(91290),S=e(53357),w=e(84045),y=e(23707),Z=20,F=function(T){return T[T.labelLeader=0]="labelLeader",T[T.reviewLeader=1]="reviewLeader",T[T.labeler=2]="labeler",T[T.reviewer=3]="reviewer",T[T.reassign=4]="reassign",T}({}),R={show:!1,types:[],tasks:[],initialValues:{}};b.Z=function(){var T=(0,h.useModel)("user"),z=T.user,A=(0,m.x)({list:[],total:0,selectedTaskIds:[]}),L=v()(A,2),I=L[0],$=L[1],B=(0,m.x)({page:1,pageSize:Z}),K=v()(B,2),H=K[0],ie=K[1],ce=(0,m.x)(void 0),te=v()(ce,2),W=te[0],G=te[1],O=(0,m.x)(R),k=v()(O,2),Y=k[0],P=k[1],Q=(0,C.Z)(function(ue,V){return $(function(U){U.list=[]}),(0,p.ZJ)({projectId:(0,y.Oe)(),pageNum:ue||H.page,pageSize:V||H.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[H.page,H.pageSize],onSuccess:function(V){var U=V.taskList,N=V.total;$(function(D){D.list=U,D.total=N,D.selectedTaskIds=[]})},onError:function(){}}),fe=Q.loading,Ce=Q.run,ge=(0,C.Z)(function(){return(0,p.NT)((0,y.Oe)())},{manual:!0,debounceWait:100,refreshDeps:[H.page,H.pageSize],onSuccess:function(V){$(function(U){U.projectDetail=V,U.isPm=!!V.managers.find(function(N){return N.id===z.userId})})},onError:function(){}}),Me=ge.run,Ne=function(V,U){ie(function(N){N.page=U===N.pageSize?V:1,N.pageSize=U}),Ce(V,U)},Qe=function(V){$(function(U){U.selectedTaskIds=V})},Ve=function(V){if(I.projectDetail){var U=V||I.selectedTaskIds,N=[],D={},ee=I.list.find(function(re){return re.id===U[0]});if(I.projectDetail.labelTimes>0){var se;N.push(F.labelLeader),D.labelLeaderId=ee==null||(se=ee.labelLeader)===null||se===void 0?void 0:se.userId}if(I.projectDetail.reviewTimes>0){var X;N.push(F.reviewLeader),D.reviewLeaderId=ee==null||(X=ee.reviewLeader)===null||X===void 0?void 0:X.userId}P(function(re){re.show=!0,re.types=N,re.tasks=I.list.filter(function(Ie){return U.includes(Ie.id)}),re.initialValues=D})}},qe=function(V,U){if(I.projectDetail){var N={};if(U.includes(F.labeler)){var D;N.labelerIds=(D=V.labelers)===null||D===void 0?void 0:D.map(function(se){return se.userId})}if(U.includes(F.reviewer)){var ee;N.reviewerIds=(ee=V.reviewers)===null||ee===void 0?void 0:ee.map(function(se){return se.userId})}P(function(se){se.show=!0,se.types=U,se.tasks=[V],se.initialValues=N})}},Mt=function(V,U){P(function(N){N.show=!0,N.types=[F.reassign],N.tasks=[V],N.reassignTarget=U})},wt=function(){P(R)},gt=function(){var ue=c()(t()().mark(function V(U){var N,D,ee,se,X;return t()().wrap(function(Ie){for(;;)switch(Ie.prev=Ie.next){case 0:if(N=U.keyWords,D=N===void 0?"":N,ee=[],se=Y.tasks,X=Y.types,se.forEach(function(Se){var he=[];X.includes(F.labelLeader)&&he.push(Se.labelLeader),X.includes(F.reviewLeader)&&he.push(Se.reviewLeader),X.includes(F.labeler)&&he.push.apply(he,s()(Se.labelers)),X.includes(F.reviewer)&&he.push.apply(he,s()(Se.reviewers)),he.forEach(function(We){We&&!ee.find(function(de){return We.userId===de.id})&&ee.push({id:We.userId,name:We.userName})})}),!D){Ie.next=8;break}return Ie.next=7,(0,p.Qm)({name:D});case 7:ee=Ie.sent.userList.map(function(Se){return{name:Se.name,id:Se.id}});case 8:return Ie.abrupt("return",ee.map(function(Se){return{label:Se.name,value:Se.id}}));case 9:case"end":return Ie.stop()}},V)}));return function(U){return ue.apply(this,arguments)}}(),Lt=function(){var ue=c()(t()().mark(function V(U){var N,D,ee,se,X,re;return t()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(N=Y.initialValues,!(Y.types.includes(F.labelLeader)||Y.types.includes(F.reviewLeader))){Se.next=16;break}if(!(U.labelLeaderId!==N.labelLeaderId||U.reviewLeaderId!==N.reviewLeaderId)){Se.next=14;break}return Se.prev=3,Se.next=6,(0,p.nu)({projectId:((D=I.projectDetail)===null||D===void 0?void 0:D.id)||"",taskIds:Y.tasks.map(function(he){return he.id}),labelLeaderId:U.labelLeaderId!==N.labelLeaderId?U.labelLeaderId:void 0,reviewLeaderId:U.reviewLeaderId!==N.reviewLeaderId?U.reviewLeaderId:void 0});case 6:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignLeader")),Se.next=14;break;case 10:return Se.prev=10,Se.t0=Se.catch(3),console.error(Se.t0),Se.abrupt("return",Promise.resolve(!1));case 14:Se.next=43;break;case 16:if(se=Y.tasks[0],!(Y.types.includes(F.labeler)||Y.types.includes(F.reviewer))){Se.next=31;break}return Se.prev=18,Se.next=21,(0,p.zb)(se.id,U);case 21:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.assignWorker")),Se.next=29;break;case 25:return Se.prev=25,Se.t1=Se.catch(18),console.error(Se.t1),Se.abrupt("return",Promise.resolve(!1));case 29:Se.next=43;break;case 31:if(!(Y.types.includes(F.reassign)&&U.reassigner!==((ee=Y.reassignTarget)===null||ee===void 0?void 0:ee.userId))){Se.next=43;break}return Se.prev=32,Se.next=35,(0,p.xv)(se.id,{oldWorkerId:((X=Y.reassignTarget)===null||X===void 0?void 0:X.userId)||"",newWorkerId:U.reassigner||"",role:((re=Y.reassignTarget)===null||re===void 0?void 0:re.role)||""});case 35:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.reassignWorker")),Se.next=43;break;case 39:return Se.prev=39,Se.t2=Se.catch(32),console.error(Se.t2),Se.abrupt("return",Promise.resolve(!1));case 43:return wt(),Se.abrupt("return",Promise.resolve(!1));case 45:case"end":return Se.stop()}},V,null,[[3,10],[18,25],[32,39]])}));return function(U){return ue.apply(this,arguments)}}(),ke=function(){var ue=c()(t()().mark(function V(U){return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.next=3,(0,p.vo)(U.id);case 3:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.restarTask")),D.next=11;break;case 7:return D.prev=7,D.t0=D.catch(0),console.error(D.t0),D.abrupt("return",Promise.resolve(!1));case 11:case"end":return D.stop()}},V,null,[[0,7]])}));return function(U){return ue.apply(this,arguments)}}(),He=function(){var ue=c()(t()().mark(function V(U){return t()().wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return D.prev=0,D.next=3,(0,p.$x)(U.id);case 3:Ce(),w.ZP.success((0,S._w)("proj.assignModalFinish.commiTask")),D.next=11;break;case 7:return D.prev=7,D.t0=D.catch(0),console.error(D.t0),D.abrupt("return",Promise.resolve(!1));case 11:case"end":return D.stop()}},V,null,[[0,7]])}));return function(U){return ue.apply(this,arguments)}}(),et=function(){var ue=c()(t()().mark(function V(U,N){return t()().wrap(function(ee){for(;;)switch(ee.prev=ee.next){case 0:return ee.prev=0,ee.next=3,(0,p.d5)(U.id,{action:N});case 3:w.ZP.success((0,S._w)("proj.assignModalFinish.changeTaskStatus")),Ce(),ee.next=11;break;case 7:return ee.prev=7,ee.t0=ee.catch(0),console.error(ee.t0),ee.abrupt("return",Promise.reject(!1));case 11:case"end":return ee.stop()}},V,null,[[0,7]])}));return function(U,N){return ue.apply(this,arguments)}}(),Fe=function(V){ie(function(U){Object.assign(U,{page:1,pageSize:Z},V)}),Me(),Ce()};return{pageData:I,pageState:H,loading:fe,onPageChange:Ne,onSelectChange:Qe,onInitPageState:Fe,taskDetailModalIndex:W,setTaskDetailModalIndex:G,assignModal:Y,assignLeaders:Ve,assignWorker:qe,reassignWorker:Mt,onCloseAssignModal:wt,userLintRequest:gt,assignModalFinish:Lt,restartTask:ke,commitReviewTask:He,onChangeTaskResult:et}}},54518:function(M,b,e){"use strict";e.d(b,{I:function(){return T}});var i=e(24454),t=e.n(i),o=e(56592),s=e.n(o),n=e(63900),c=e.n(n),l=e(88205),v=e.n(l),h=e(97375),m=e(65246),C=e(7986),p=e(91290),S=e(84045),w=e(53357),y=e(35459),Z=e(39378),F=e.n(Z),R=20,T="proj.editModal.setWorkflowNow",z={show:!1,current:0,initialValues:{basics:{},settings:{},workflowInitNow:[],hadBatchSize:!1,hadReviewer:!1}};b.Z=function(){var A=(0,h.useModel)("user"),L=A.user,I=(0,h.useModel)("Project.auth"),$=I.getUserRoles,B=(0,m.x)({list:[],total:0}),K=v()(B,2),H=K[0],ie=K[1],ce=(0,m.x)({page:1,pageSize:R}),te=v()(ce,2),W=te[0],G=te[1],O=(0,m.x)(z),k=v()(O,2),Y=k[0],P=k[1],Q=(0,C.Z)(function(ke,He){return ie(function(et){et.list=[]}),(0,p.eK)({pageNum:ke||W.page,pageSize:He||W.pageSize})},{manual:!0,debounceWait:100,refreshDeps:[W.page,W.pageSize],onSuccess:function(He){var et=He.projectList,Fe=He.total;ie({list:et.map(function(ue){return c()(c()({},ue),{},{userRoles:$(ue)})}),total:Fe})},onError:function(){}}),fe=Q.loading,Ce=Q.run,ge=function(He,et){G(function(Fe){Fe.page=et===Fe.pageSize?He:1,Fe.pageSize=et}),Ce(He,et)},Me=function(){P(function(He){He.show=!0})},Ne=function(He,et){P(function(Fe){var ue=He.name,V=He.description,U=He.categories,N=He.datasets,D=He.preLabel,ee=He.managers,se=He.batchSize,X=He.reviewTimes,re=He.status;Fe.show=!0,Fe.targetProject=He,Fe.current=et?1:0,Fe.initialValues.basics={name:ue,description:V,categories:U,preLabel:D,datasetIds:N.map(function(Ie){return Ie.id}),managerIds:ee.map(function(Ie){return Ie.id})},Fe.initialValues.settings=re!==y.tz.Waiting?{batchSize:se>0?se:void 0}:{},Fe.initialValues.workflowInitNow=[(0,w._w)(T)],Fe.initialValues.hadBatchSize=se>0,Fe.initialValues.hadReviewer=X>0})},Qe=function(){P(z)},Ve=function(He){P(function(et){He===0&&(et.current=0)})},qe=function(He){return P(function(et){var Fe;et.disableInitProject=!((Fe=He.basics.managerIds)!==null&&Fe!==void 0&&Fe.includes(L.userId)),et.current=1}),Promise.resolve(!1)},Mt=function(){var ke=s()(t()().mark(function He(et){var Fe,ue,V,U,N,D,ee,se;return t()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(V=!1,U=(Fe=Y.targetProject)===null||Fe===void 0?void 0:Fe.id,U){re.next=18;break}return re.prev=3,re.next=6,(0,p.o9)(et.basics);case 6:N=re.sent,U=N.id,P(function(Ie){Ie.targetProject=N}),V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.new")),re.next=16;break;case 13:re.prev=13,re.t0=re.catch(3),console.error(re.t0);case 16:re.next=30;break;case 18:if(D=Y.initialValues.basics,ee=D.description,se=D.managerIds,!(et.basics.description!==ee||!(0,Z.isEqual)(et.basics.managerIds,se))){re.next=30;break}return re.prev=20,re.next=23,(0,p.NV)(U,et.basics);case 23:V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.edit")),re.next=30;break;case 27:re.prev=27,re.t1=re.catch(20),console.error(re.t1);case 30:if(!((!Y.targetProject||((ue=Y.targetProject)===null||ue===void 0?void 0:ue.status)===y.tz.Waiting)&&et.workflowInitNow&&et.workflowInitNow.length)){re.next=41;break}return re.prev=31,re.next=34,(0,p.mN)(U,{batchSize:et.hadBatchSize?et.settings.batchSize:0,labelTimes:1,reviewTimes:et.hadReviewer?1:0});case 34:V=!0,S.ZP.success((0,w._w)("proj.projectModalFinish.init")),re.next=41;break;case 38:re.prev=38,re.t2=re.catch(31),console.error(re.t2);case 41:return V&&Ce(),Qe(),re.abrupt("return",Promise.resolve(!1));case 44:case"end":return re.stop()}},He,null,[[3,13],[20,27],[31,38]])}));return function(et){return ke.apply(this,arguments)}}(),wt=function(){var ke=s()(t()().mark(function He(et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.prev=0,V.next=3,(0,p.lw)(et.id,{action:Fe});case 3:S.ZP.success((0,w._w)("proj.projectModalFinish.change")),Ce(),V.next=11;break;case 7:return V.prev=7,V.t0=V.catch(0),console.error(V.t0),V.abrupt("return",Promise.reject(!1));case 11:case"end":return V.stop()}},He,null,[[0,7]])}));return function(et,Fe){return ke.apply(this,arguments)}}(),gt=function(){var ke=s()(t()().mark(function He(et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.prev=0,V.next=3,(0,p.Cd)(et,{labelName:Fe==null?void 0:Fe.labelName});case 3:S.ZP.success((0,w._w)("proj.exportModal.submitSuccess",{name:Fe==null?void 0:Fe.labelName})),Ce(),V.next=10;break;case 7:V.prev=7,V.t0=V.catch(0),console.error(V.t0);case 10:case"end":return V.stop()}},He,null,[[0,7]])}));return function(et,Fe){return ke.apply(this,arguments)}}(),Lt=function(He){G(function(et){Object.assign(et,{page:1,pageSize:R},He)}),Ce()};return{pageData:H,pageState:W,loading:fe,onPageChange:ge,onInitPageState:Lt,projectModal:Y,onNewProject:Me,onEditProject:Ne,closeProjectModal:Qe,onProjectModalCurrentChange:Ve,projectModalNext:qe,projectModalFinish:Mt,onChangeProjectResult:wt,onExportLabelProject:gt}}},93059:function(M,b,e){"use strict";e.d(b,{D:function(){return L}});var i=e(63900),t=e.n(i),o=e(24454),s=e.n(o),n=e(56592),c=e.n(n),l=e(34485),v=e.n(l),h=e(88205),m=e.n(h),C=e(65246),p=e(7986),S=e(91290),w=e(35459),y=e(58757),Z=e(84045),F=e(14122),R=e(97375),T=e(23707),z=e(53357),A=100,L={Init:0,More:1};b.Z=function(){var I=(0,R.useModel)("user"),$=I.user,B=(0,R.useModel)("global"),K=B.setLoading,H=(0,C.x)({taskRoles:[],categoryList:[],list:[],curIndex:-1,page:1,pageSize:A,total:0,editorMode:F.je.View}),ie=m()(H,2),ce=ie[0],te=ie[1],W=(0,C.x)({status:w.j$.Labeling,taskStatus:w.gZ.Working}),G=m()(W,2),O=G[0],k=G[1],Y=(0,y.useMemo)(function(){return(0,T.BQ)("projectId")||""},[window.location.search]),P=(0,y.useMemo)(function(){return(0,T.BQ)("taskId")||""},[window.location.search]),Q=(0,y.useMemo)(function(){var X;return(X=ce.taskRoles)===null||X===void 0?void 0:X.find(function(re){return re.id===O.roleId})},[ce.taskRoles,O.roleId]),fe=(0,y.useMemo)(function(){return Q&&$.userId===(Q==null?void 0:Q.userId)?[Q.role]:[]},[$.userId,Q]),Ce=(0,y.useMemo)(function(){var X;return((X=ce.list)===null||X===void 0?void 0:X.map(function(re){var Ie=[],Se="";return O.status===w.j$.Labeling&&!re.labeled?re.defaultLabels&&re.defaultLabels.annotations&&Ie.push.apply(Ie,v()(re.defaultLabels.annotations)):re.labels.forEach(function(he){Se=he.id,Ie.push.apply(Ie,v()(he.annotations))}),{id:re.id,url:re.url,urlFullRes:re.urlFullRes,labelId:Se,objects:Ie}}))||[]},[ce.list,O.status]),ge=function(){var X=c()(s()().mark(function re(Ie,Se){var he,We,de,le;return s()().wrap(function(xe){for(;;)switch(xe.prev=xe.next){case 0:if(!ce.loadingImagesType){xe.next=2;break}return xe.abrupt("return",Promise.reject(null));case 2:return te(function(Ze){Ze.loadingImagesType=Ie,Ie===L.Init&&(Ze.list=[])}),xe.prev=3,xe.next=6,(0,S.zO)((0,T.BQ)("taskId")||"",{status:Se.status||O.status,roleId:Se.roleId||O.roleId,pageNum:Se.page,pageSize:ce.pageSize});case 6:he=xe.sent,We=he.imageList,de=he.total,le=he.pageNum,te(function(Ze){Ze.list=Ze.list.concat(We),Ze.page=le,Ze.total=de,Ze.loadingImagesType=void 0}),xe.next=17;break;case 13:return xe.prev=13,xe.t0=xe.catch(3),te(function(Ze){Ze.loadingImagesType=void 0}),xe.abrupt("return",Promise.reject(xe.t0));case 17:case"end":return xe.stop()}},re,null,[[3,13]])}));return function(Ie,Se){return X.apply(this,arguments)}}(),Me=(0,p.Z)(function(){return Promise.all([(0,S.Cb)((0,T.BQ)("taskId")||""),(0,S.Iu)((0,T.BQ)("taskId")||"")])},{manual:!0,debounceWait:60,onSuccess:function(re){var Ie=m()(re,2),Se=Ie[0],he=Ie[1];te(function(We){We.categoryList=he.categoryList,We.taskRoles=Se.roleList}),k(function(We){Se.roleList.length&&(!We.roleId||!Se.roleList.find(function(de){return de.id===We.roleId}))&&(We.roleId=Se.roleList[0].id)})},onError:function(){}}),Ne=Me.loading,Qe=Me.run,Ve=function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Promise.all([Qe(),ge(L.Init,t()(t()({},re),{},{page:1}))])},qe=function(){var X=c()(s()().mark(function re(){return s()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!(ce.list.length0&&(he.curIndex=he.curIndex-1)}),Se.abrupt("return",Promise.resolve());case 2:case"end":return Se.stop()}},re)}));return function(){return X.apply(this,arguments)}}(),ke=function(){var X=c()(s()().mark(function re(){return s()().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(!(ce.curIndex=0;return{pageData:ce,pageState:O,loading:Ne||ce.loadingImagesType===L.Init,loadPageData:Ve,loadMore:qe,onInitPageState:D,projectId:Y,taskId:P,curRole:Q,userRoles:fe,tabItems:ee,labelImages:Ce,isEditorVisible:se,onStatusTabChange:Mt,onRoleChange:wt,clickItem:gt,onExitEditor:V,onPrevImage:Lt,onNextImage:ke,onLabelSave:U,onReviewResult:N,onEnterEdit:He,onStartLabel:et,onStartRework:Fe,onStartReview:ue}}},91290:function(M,b,e){"use strict";e.d(b,{$x:function(){return fe},Cb:function(){return ge},Cd:function(){return z},Iu:function(){return Ne},J9:function(){return L},Jg:function(){return gt},NT:function(){return m},NV:function(){return Z},Qm:function(){return $},ZJ:function(){return K},d5:function(){return P},eK:function(){return v},lw:function(){return R},mN:function(){return w},nQ:function(){return Mt},nu:function(){return ie},o9:function(){return p},vo:function(){return k},xv:function(){return G},zO:function(){return Ve},zb:function(){return te}});var i=e(24454),t=e.n(i),o=e(63900),s=e.n(o),n=e(56592),c=e.n(n),l=e(97375);function v(ke,He){return h.apply(this,arguments)}function h(){return h=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),h.apply(this,arguments)}function m(ke,He){return C.apply(this,arguments)}function C(){return C=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),C.apply(this,arguments)}function p(ke,He){return S.apply(this,arguments)}function S(){return S=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_projects",s()({method:"POST",data:s()({},He)},et||{})));case 1:case"end":return ue.stop()}},ke)})),S.apply(this,arguments)}function w(ke,He,et){return y.apply(this,arguments)}function y(){return y=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_configs/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),y.apply(this,arguments)}function Z(ke,He,et){return F.apply(this,arguments)}function F(){return F=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_projects/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),F.apply(this,arguments)}function R(ke,He,et){return T.apply(this,arguments)}function T(){return T=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_qa/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),T.apply(this,arguments)}function z(ke,He,et){return A.apply(this,arguments)}function A(){return A=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_project_export/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),A.apply(this,arguments)}function L(ke,He){return I.apply(this,arguments)}function I(){return I=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/dataset_name_lints",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),I.apply(this,arguments)}function $(ke,He){return B.apply(this,arguments)}function B(){return B=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/user_name_lints",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),B.apply(this,arguments)}function K(ke,He){return H.apply(this,arguments)}function H(){return H=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_tasks",s()({method:"GET",params:He},et||{})));case 1:case"end":return ue.stop()}},ke)})),H.apply(this,arguments)}function ie(ke,He){return ce.apply(this,arguments)}function ce(){return ce=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_leaders",s()({method:"POST",data:s()({},He)},et||{})));case 1:case"end":return ue.stop()}},ke)})),ce.apply(this,arguments)}function te(ke,He,et){return W.apply(this,arguments)}function W(){return W=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_workers/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),W.apply(this,arguments)}function G(ke,He,et){return O.apply(this,arguments)}function O(){return O=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_reassign/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),O.apply(this,arguments)}function k(ke,He){return Y.apply(this,arguments)}function Y(){return Y=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_restart/".concat(He),s()({method:"POST"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Y.apply(this,arguments)}function P(ke,He,et){return Q.apply(this,arguments)}function Q(){return Q=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_qa/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{})));case 1:case"end":return V.stop()}},ke)})),Q.apply(this,arguments)}function fe(ke,He){return Ce.apply(this,arguments)}function Ce(){return Ce=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_review_commit/".concat(He),s()({method:"POST"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Ce.apply(this,arguments)}function ge(ke,He){return Me.apply(this,arguments)}function Me(){return Me=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_roles/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Me.apply(this,arguments)}function Ne(ke,He){return Qe.apply(this,arguments)}function Qe(){return Qe=c()(t()().mark(function ke(He,et){return t()().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.abrupt("return",(0,l.request)("/api/v1/label_task_configs/".concat(He),s()({method:"GET"},et||{})));case 1:case"end":return ue.stop()}},ke)})),Qe.apply(this,arguments)}function Ve(ke,He,et){return qe.apply(this,arguments)}function qe(){return qe=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_images/".concat(He),s()({method:"GET",params:et},Fe||{})));case 1:case"end":return V.stop()}},ke)})),qe.apply(this,arguments)}function Mt(ke,He,et){return wt.apply(this,arguments)}function wt(){return wt=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_image_labels/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{hideCodeErrorMsg:!0})));case 1:case"end":return V.stop()}},ke)})),wt.apply(this,arguments)}function gt(ke,He,et){return Lt.apply(this,arguments)}function Lt(){return Lt=c()(t()().mark(function ke(He,et,Fe){return t()().wrap(function(V){for(;;)switch(V.prev=V.next){case 0:return V.abrupt("return",(0,l.request)("/api/v1/label_task_image_reviews/".concat(He),s()({method:"POST",data:s()({},et)},Fe||{hideCodeErrorMsg:!0})));case 1:case"end":return V.stop()}},ke)})),Lt.apply(this,arguments)}},74595:function(M,b,e){"use strict";e.d(b,{B8:function(){return m},JC:function(){return p},WR:function(){return C},i0:function(){return v},iE:function(){return h}});var i=e(63900),t=e.n(i),o=e(34485),s=e.n(o),n=e(76180),c=e(39378),l=e.n(c),v=function(w){var y=0;return(0,c.includes)(w,"Classification")&&(y=1),(0,c.includes)(w,"Detection")&&(y=2),(0,c.includes)(w,"Segmentation")&&(y=3),(0,c.includes)(w,"Matting")&&(y=4),(0,c.includes)(w,"KeyPoints")&&(y=5),e(14677)("./card_cover_".concat(y,".png"))},h=function(w,y,Z){if(!w||!y||Z)return{colorAplha:n.iP[0],strokeDash:n.JQ[0],lineWidth:n.oM[0]};var F=y.indexOf(w);return{colorAplha:n.iP[F]||n.iP[0],strokeDash:n.JQ[F]||n.JQ[0],lineWidth:n.oM[F]||n.oM[0]}},m=function(w,y){var Z=[],F=[],R=w.filter(function(T){return n.EX.includes(T)});return y===n.JJ.Detection?(Z=[n.zY.showBoxText],F=Z):y===n.JJ.Segmentation?(Z=[n.zY.showSegFilling,n.zY.showSegContour],F=Z):y===n.JJ.Matting?Z=[n.zY.showMattingColorFill]:y===n.JJ.KeyPoints&&(Z=[n.zY.showKeyPointsLine,n.zY.showKeyPointsBox],F=Z),[[].concat(s()(n.EX),s()(Z)),[].concat(s()(R),s()(F))]},C=function(w,y,Z){var F=[];return Z===n.JJ.Matting&&F.push({id:"origin",name:"Origin image",source:n.$j.gt,comparePrecisions:[],confidenceRange:[0,1]}),y.length&&y.forEach(function(R){var T=w.find(function(z){return z.id===R});T&&F.push(t()({},T))}),F},p=function(w,y,Z){var F=[];return y.length?(w.forEach(function(R){Z===n.JJ.Matting&&F.push(t()({},R)),F.push.apply(F,s()(new Array(y.length).fill({}).map(function(T,z){var A=t()({},R);return A.curLabelId=y[z],A})))}),F):w}},86505:function(M,b,e){"use strict";e.d(b,{JJ:function(){return At},v_:function(){return $t},yj:function(){return Bn},Uu:function(){return Vt},ru:function(){return Mn},Zo:function(){return _e},QD:function(){return st},Yq:function(){return On},gr:function(){return $n},jB:function(){return at},ft:function(){return jt},GI:function(){return ut},Fv:function(){return Xt},vL:function(){return Gt},ef:function(){return an},oP:function(){return fn}});var i=e(2657),t=e.n(i),o=e(58757),s=Object.defineProperty,n=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,v=(nt,mt,Dt)=>mt in nt?s(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,h=(nt,mt)=>{for(var Dt in mt||(mt={}))c.call(mt,Dt)&&v(nt,Dt,mt[Dt]);if(n)for(var Dt of n(mt))l.call(mt,Dt)&&v(nt,Dt,mt[Dt]);return nt};const m=nt=>o.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("path",{d:"M30.17 8.91a1 1 0 0 0 1-1V3.85a1 1 0 0 0-1-1h-4.05a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1H3.85a1 1 0 0 0-1 1V7.9a1 1 0 0 0 1 1h1v16.2h-1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1H7.9a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V8.91Zm-3 16.2h-1a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1h-1V8.91h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1Z",style:{fill:"#fcfefe"}}),o.createElement("path",{style:{fill:"none"},d:"M2.83 2.83h28.35v28.35H2.83z"}));var C="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PHBhdGggZD0iTTMwLjE3IDguOTFhMSAxIDAgMCAwIDEtMVYzLjg1YTEgMSAwIDAgMC0xLTFoLTQuMDVhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMUgzLjg1YTEgMSAwIDAgMC0xIDFWNy45YTEgMSAwIDAgMCAxIDFoMXYxNi4yaC0xYTEgMSAwIDAgMC0xIDF2NC4wNWExIDEgMCAwIDAgMSAxSDcuOWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDQuMDVhMSAxIDAgMCAwIDEtMXYtNC4wM2ExIDEgMCAwIDAtMS0xaC0xVjguOTFabS0zIDE2LjJoLTFhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMWgtMVY4LjkxaDFhMSAxIDAgMCAwIDEtMXYtMWgxNi4ydjFhMSAxIDAgMCAwIDEgMWgxWiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmUiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48L3N2Zz4=",p=Object.defineProperty,S=Object.getOwnPropertySymbols,w=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable,Z=(nt,mt,Dt)=>mt in nt?p(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,F=(nt,mt)=>{for(var Dt in mt||(mt={}))w.call(mt,Dt)&&Z(nt,Dt,mt[Dt]);if(S)for(var Dt of S(mt))y.call(mt,Dt)&&Z(nt,Dt,mt[Dt]);return nt};const R=nt=>o.createElement("svg",F({width:27,height:27,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nt),o.createElement("g",{clipPath:"url(#point_svg__a)"},o.createElement("path",{d:"M26.99 22.48a4.457 4.457 0 0 1-1.237 3.295 4.49 4.49 0 0 1-3.248 1.384 4.507 4.507 0 0 1-3.248-1.384 4.471 4.471 0 0 1-1.238-3.296 7.246 7.246 0 0 0-1.824-4.758.638.638 0 0 0-.656-.283.64.64 0 0 0-.233.093 4.065 4.065 0 0 1-3.573 0 .71.71 0 0 0-.956.257 7.131 7.131 0 0 0-1.796 4.682c.02.83-.2 1.65-.633 2.36a4.351 4.351 0 0 1-1.813 1.647 4.304 4.304 0 0 1-4.462-.2 4.486 4.486 0 0 1-1.79-2.2 4.466 4.466 0 0 1 1.504-5.159 4.511 4.511 0 0 1 2.694-.902 7.249 7.249 0 0 0 4.777-1.818.649.649 0 0 0 .2-.895 4.41 4.41 0 0 1 .902-4.98 4.458 4.458 0 0 1 5.004-.881.604.604 0 0 0 .84-.182 7.265 7.265 0 0 0 1.844-4.758 4.459 4.459 0 0 1 1.521-3.406A4.495 4.495 0 0 1 23.152.021a4.502 4.502 0 0 1 3.156 2.001 4.463 4.463 0 0 1 .54 3.688 4.434 4.434 0 0 1-1.593 2.4 4.464 4.464 0 0 1-2.736.922 7.259 7.259 0 0 0-4.7 1.78c-.325.275-.459.494-.249.951a4.07 4.07 0 0 1 0 3.626.608.608 0 0 0 .182.838 7.21 7.21 0 0 0 4.681 1.846 4.486 4.486 0 0 1 3.2 1.257 4.452 4.452 0 0 1 1.358 3.15Zm-15.744-9.004a2.24 2.24 0 0 0 1.376 2.088 2.264 2.264 0 0 0 2.462-.47 2.244 2.244 0 0 0 .504-2.447 2.248 2.248 0 0 0-2.078-1.398 2.242 2.242 0 0 0-2.092 1.368 2.219 2.219 0 0 0-.172.86ZM22.49 24.744a2.242 2.242 0 0 0 2.111-1.37c.115-.274.174-.569.172-.866a2.247 2.247 0 0 0-.646-1.607 2.263 2.263 0 0 0-1.6-.677c-.6.002-1.176.238-1.604.658a2.29 2.29 0 0 0-.688 1.588 2.26 2.26 0 0 0 .656 1.601c.422.426.997.668 1.599.673Zm0-22.507a2.271 2.271 0 0 0-1.605.664 2.254 2.254 0 0 0-.66 1.6c.013.6.259 1.173.687 1.595a2.326 2.326 0 0 0 1.606.67 2.288 2.288 0 0 0 1.597-.686 2.27 2.27 0 0 0 .473-2.464 2.236 2.236 0 0 0-1.226-1.206 2.253 2.253 0 0 0-.863-.164l-.01-.01ZM4.405 24.744a2.271 2.271 0 0 0 2.154-1.31c.125-.27.195-.562.206-.86a2.308 2.308 0 0 0-.623-1.617 2.326 2.326 0 0 0-1.575-.733 2.28 2.28 0 0 0-1.624.613c-.44.41-.697.977-.717 1.576a2.229 2.229 0 0 0 .6 1.62 2.245 2.245 0 0 0 1.579.711Z",fill:"#fff"}),o.createElement("path",{d:"M5.15 7.861a3.376 3.376 0 0 0 3.382-3.369A3.376 3.376 0 0 0 5.15 1.123a3.376 3.376 0 0 0-3.382 3.37A3.376 3.376 0 0 0 5.15 7.86Z",stroke:"#fff",strokeWidth:2,strokeMiterlimit:10})),o.createElement("defs",null,o.createElement("clipPath",{id:"point_svg__a"},o.createElement("path",{fill:"#fff",d:"M0 0h27v27H0z"}))));var T="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjciIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Ik0yNi45OSAyMi40OGE0LjQ1NyA0LjQ1NyAwIDAgMS0xLjIzNyAzLjI5NSA0LjQ5IDQuNDkgMCAwIDEtMy4yNDggMS4zODQgNC41MDcgNC41MDcgMCAwIDEtMy4yNDgtMS4zODQgNC40NzEgNC40NzEgMCAwIDEtMS4yMzgtMy4yOTYgNy4yNDYgNy4yNDYgMCAwIDAtMS44MjQtNC43NTguNjM4LjYzOCAwIDAgMC0uNjU2LS4yODMuNjQuNjQgMCAwIDAtLjIzMy4wOTMgNC4wNjUgNC4wNjUgMCAwIDEtMy41NzMgMCAuNzEuNzEgMCAwIDAtLjk1Ni4yNTcgNy4xMzEgNy4xMzEgMCAwIDAtMS43OTYgNC42ODJjLjAyLjgzLS4yIDEuNjUtLjYzMyAyLjM2YTQuMzUxIDQuMzUxIDAgMCAxLTEuODEzIDEuNjQ3IDQuMzA0IDQuMzA0IDAgMCAxLTQuNDYyLS4yIDQuNDg2IDQuNDg2IDAgMCAxLTEuNzktMi4yIDQuNDY2IDQuNDY2IDAgMCAxIDEuNTA0LTUuMTU5IDQuNTExIDQuNTExIDAgMCAxIDIuNjk0LS45MDIgNy4yNDkgNy4yNDkgMCAwIDAgNC43NzctMS44MTguNjQ5LjY0OSAwIDAgMCAuMi0uODk1IDQuNDEgNC40MSAwIDAgMSAuOTAyLTQuOTggNC40NTggNC40NTggMCAwIDEgNS4wMDQtLjg4MS42MDQuNjA0IDAgMCAwIC44NC0uMTgyIDcuMjY1IDcuMjY1IDAgMCAwIDEuODQ0LTQuNzU4IDQuNDU5IDQuNDU5IDAgMCAxIDEuNTIxLTMuNDA2QTQuNDk1IDQuNDk1IDAgMCAxIDIzLjE1Mi4wMjFhNC41MDIgNC41MDIgMCAwIDEgMy4xNTYgMi4wMDEgNC40NjMgNC40NjMgMCAwIDEgLjU0IDMuNjg4IDQuNDM0IDQuNDM0IDAgMCAxLTEuNTkzIDIuNCA0LjQ2NCA0LjQ2NCAwIDAgMS0yLjczNi45MjIgNy4yNTkgNy4yNTkgMCAwIDAtNC43IDEuNzhjLS4zMjUuMjc1LS40NTkuNDk0LS4yNDkuOTUxYTQuMDcgNC4wNyAwIDAgMSAwIDMuNjI2LjYwOC42MDggMCAwIDAgLjE4Mi44MzggNy4yMSA3LjIxIDAgMCAwIDQuNjgxIDEuODQ2IDQuNDg2IDQuNDg2IDAgMCAxIDMuMiAxLjI1NyA0LjQ1MiA0LjQ1MiAwIDAgMSAxLjM1OCAzLjE1Wm0tMTUuNzQ0LTkuMDA0YTIuMjQgMi4yNCAwIDAgMCAxLjM3NiAyLjA4OCAyLjI2NCAyLjI2NCAwIDAgMCAyLjQ2Mi0uNDcgMi4yNDQgMi4yNDQgMCAwIDAgLjUwNC0yLjQ0NyAyLjI0OCAyLjI0OCAwIDAgMC0yLjA3OC0xLjM5OCAyLjI0MiAyLjI0MiAwIDAgMC0yLjA5MiAxLjM2OCAyLjIxOSAyLjIxOSAwIDAgMC0uMTcyLjg2Wk0yMi40OSAyNC43NDRhMi4yNDIgMi4yNDIgMCAwIDAgMi4xMTEtMS4zN2MuMTE1LS4yNzQuMTc0LS41NjkuMTcyLS44NjZhMi4yNDcgMi4yNDcgMCAwIDAtLjY0Ni0xLjYwNyAyLjI2MyAyLjI2MyAwIDAgMC0xLjYtLjY3N2MtLjYuMDAyLTEuMTc2LjIzOC0xLjYwNC42NThhMi4yOSAyLjI5IDAgMCAwLS42ODggMS41ODggMi4yNiAyLjI2IDAgMCAwIC42NTYgMS42MDFjLjQyMi40MjYuOTk3LjY2OCAxLjU5OS42NzNabTAtMjIuNTA3YTIuMjcxIDIuMjcxIDAgMCAwLTEuNjA1LjY2NCAyLjI1NCAyLjI1NCAwIDAgMC0uNjYgMS42Yy4wMTMuNi4yNTkgMS4xNzMuNjg3IDEuNTk1YTIuMzI2IDIuMzI2IDAgMCAwIDEuNjA2LjY3IDIuMjg4IDIuMjg4IDAgMCAwIDEuNTk3LS42ODYgMi4yNyAyLjI3IDAgMCAwIC40NzMtMi40NjQgMi4yMzYgMi4yMzYgMCAwIDAtMS4yMjYtMS4yMDYgMi4yNTMgMi4yNTMgMCAwIDAtLjg2My0uMTY0bC0uMDEtLjAxWk00LjQwNSAyNC43NDRhMi4yNzEgMi4yNzEgMCAwIDAgMi4xNTQtMS4zMWMuMTI1LS4yNy4xOTUtLjU2Mi4yMDYtLjg2YTIuMzA4IDIuMzA4IDAgMCAwLS42MjMtMS42MTcgMi4zMjYgMi4zMjYgMCAwIDAtMS41NzUtLjczMyAyLjI4IDIuMjggMCAwIDAtMS42MjQuNjEzYy0uNDQuNDEtLjY5Ny45NzctLjcxNyAxLjU3NmEyLjIyOSAyLjIyOSAwIDAgMCAuNiAxLjYyIDIuMjQ1IDIuMjQ1IDAgMCAwIDEuNTc5LjcxMVoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNS4xNSA3Ljg2MWEzLjM3NiAzLjM3NiAwIDAgMCAzLjM4Mi0zLjM2OUEzLjM3NiAzLjM3NiAwIDAgMCA1LjE1IDEuMTIzYTMuMzc2IDMuMzc2IDAgMCAwLTMuMzgyIDMuMzdBMy4zNzYgMy4zNzYgMCAwIDAgNS4xNSA3Ljg2WiIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjd2MjdIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",z=Object.defineProperty,A=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,$=(nt,mt,Dt)=>mt in nt?z(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,B=(nt,mt)=>{for(var Dt in mt||(mt={}))L.call(mt,Dt)&&$(nt,Dt,mt[Dt]);if(A)for(var Dt of A(mt))I.call(mt,Dt)&&$(nt,Dt,mt[Dt]);return nt};const K=nt=>o.createElement("svg",B({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("defs",null,o.createElement("style",null,".magic_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"magic_svg__cls-1",d:"M26.08 18.47V16.6c0-.58.27-1.19 1-1.25s1.05.45 1.06 1.29v1.83h1.92c.76 0 1.25.46 1.19 1.08a1 1 0 0 1-1.18 1h-1.91v1.74c0 .91-.39 1.41-1.06 1.39s-1-.49-1-1.42v-1.71h-1.91c-.71 0-1.21-.29-1.21-1s.5-1 1.21-1ZM12.81 6.47h1.59a1 1 0 0 1 1 1 1 1 0 0 1-1 1.07h-1.58v1.5c0 .68-.38 1.11-1.07 1.1a1 1 0 0 1-1-1.08V8.54H9.29c-.68 0-1.13-.36-1.12-1s.46-1 1.14-1h1.44V5.01a1 1 0 1 1 2.06 0c.02.38 0 .87 0 1.46ZM19.93 24.67c.11-1.56.33-2 1.05-2s1 .44 1.12 2c.8.17 2.09-.2 2 1.22-.07 1.15-1.14.89-2 .95-.18.8.22 2.11-1.2 2-1.18-.07-.89-1.19-1-2-.84-.09-1.91.21-2-1.06-.07-.7.39-.94 2.03-1.11ZM30.2 6l-2.51-2.49a2.15 2.15 0 0 0-3.06 0L3.27 24.92a2.2 2.2 0 0 0 0 3.08l2.51 2.51a2.17 2.17 0 0 0 3.06 0L30.2 9.09a2.19 2.19 0 0 0 0-3.09ZM29 8.47l-4.39 4.39a.94.94 0 0 1-1.35 0l-2.28-2.28a1 1 0 0 1 0-1.36l4.38-4.39a1 1 0 0 1 1.36 0L29 7.11a1 1 0 0 1 0 1.36Z"}));var H="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjYuMDggMTguNDdWMTYuNmMwLS41OC4yNy0xLjE5IDEtMS4yNXMxLjA1LjQ1IDEuMDYgMS4yOXYxLjgzaDEuOTJjLjc2IDAgMS4yNS40NiAxLjE5IDEuMDhhMSAxIDAgMCAxLTEuMTggMWgtMS45MXYxLjc0YzAgLjkxLS4zOSAxLjQxLTEuMDYgMS4zOXMtMS0uNDktMS0xLjQydi0xLjcxaC0xLjkxYy0uNzEgMC0xLjIxLS4yOS0xLjIxLTFzLjUtMSAxLjIxLTFaTTEyLjgxIDYuNDdoMS41OWExIDEgMCAwIDEgMSAxIDEgMSAwIDAgMS0xIDEuMDdoLTEuNTh2MS41YzAgLjY4LS4zOCAxLjExLTEuMDcgMS4xYTEgMSAwIDAgMS0xLTEuMDhWOC41NEg5LjI5Yy0uNjggMC0xLjEzLS4zNi0xLjEyLTFzLjQ2LTEgMS4xNC0xaDEuNDRWNS4wMWExIDEgMCAxIDEgMi4wNiAwYy4wMi4zOCAwIC44NyAwIDEuNDZaTTE5LjkzIDI0LjY3Yy4xMS0xLjU2LjMzLTIgMS4wNS0yczEgLjQ0IDEuMTIgMmMuOC4xNyAyLjA5LS4yIDIgMS4yMi0uMDcgMS4xNS0xLjE0Ljg5LTIgLjk1LS4xOC44LjIyIDIuMTEtMS4yIDItMS4xOC0uMDctLjg5LTEuMTktMS0yLS44NC0uMDktMS45MS4yMS0yLTEuMDYtLjA3LS43LjM5LS45NCAyLjAzLTEuMTFaTTMwLjIgNmwtMi41MS0yLjQ5YTIuMTUgMi4xNSAwIDAgMC0zLjA2IDBMMy4yNyAyNC45MmEyLjIgMi4yIDAgMCAwIDAgMy4wOGwyLjUxIDIuNTFhMi4xNyAyLjE3IDAgMCAwIDMuMDYgMEwzMC4yIDkuMDlhMi4xOSAyLjE5IDAgMCAwIDAtMy4wOVpNMjkgOC40N2wtNC4zOSA0LjM5YS45NC45NCAwIDAgMS0xLjM1IDBsLTIuMjgtMi4yOGExIDEgMCAwIDEgMC0xLjM2bDQuMzgtNC4zOWExIDEgMCAwIDEgMS4zNiAwTDI5IDcuMTFhMSAxIDAgMCAxIDAgMS4zNloiLz48L3N2Zz4=",ie=Object.defineProperty,ce=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,G=(nt,mt,Dt)=>mt in nt?ie(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,O=(nt,mt)=>{for(var Dt in mt||(mt={}))te.call(mt,Dt)&&G(nt,Dt,mt[Dt]);if(ce)for(var Dt of ce(mt))W.call(mt,Dt)&&G(nt,Dt,mt[Dt]);return nt};const k=nt=>o.createElement("svg",O({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},nt),o.createElement("defs",null,o.createElement("style",null,".polygon_svg__cls-2{fill:#fff}")),o.createElement("path",{style:{fill:"none",stroke:"#fff",strokeMiterlimit:10,strokeWidth:2},d:"M27.96 5.9H5.75v22.21h22.21l-9.52-10.72L27.96 5.9z"}),o.createElement("rect",{className:"polygon_svg__cls-2",x:2.68,y:2.83,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:2.68,y:25.05,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:24.89,y:25.05,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:24.89,y:2.83,width:6.13,height:6.13,rx:.96}),o.createElement("rect",{className:"polygon_svg__cls-2",x:15.7,y:13.94,width:6.13,height:6.13,rx:.96}));var Y="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMntmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4IiBkPSJNMjcuOTYgNS45SDUuNzV2MjIuMjFoMjIuMjFsLTkuNTItMTAuNzJMMjcuOTYgNS45eiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMi44MyIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMjUuMDUiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjI0Ljg5IiB5PSIyNS4wNSIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMjQuODkiIHk9IjIuODMiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjE1LjciIHk9IjEzLjk0IiB3aWR0aD0iNi4xMyIgaGVpZ2h0PSI2LjEzIiByeD0iLjk2Ii8+PC9zdmc+",P=Object.defineProperty,Q=Object.getOwnPropertySymbols,fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,ge=(nt,mt,Dt)=>mt in nt?P(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,Me=(nt,mt)=>{for(var Dt in mt||(mt={}))fe.call(mt,Dt)&&ge(nt,Dt,mt[Dt]);if(Q)for(var Dt of Q(mt))Ce.call(mt,Dt)&&ge(nt,Dt,mt[Dt]);return nt};const Ne=nt=>o.createElement("svg",Me({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",height:"1em",width:"1em"},nt),o.createElement("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z"}));var Qe="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaGVpZ2h0PSIxZW0iIHdpZHRoPSIxZW0iPjxwYXRoIGQ9Ik0zIDExaDhWM0gzdjh6bTItNmg0djRINVY1em04LTJ2OGg4VjNoLTh6bTYgNmgtNFY1aDR2NHpNMyAyMWg4di04SDN2OHptMi02aDR2NEg1di00em0xMy0yaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yaC0zeiIvPjwvc3ZnPg==",Ve=Object.defineProperty,qe=Object.getOwnPropertySymbols,Mt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,gt=(nt,mt,Dt)=>mt in nt?Ve(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,Lt=(nt,mt)=>{for(var Dt in mt||(mt={}))Mt.call(mt,Dt)&>(nt,Dt,mt[Dt]);if(qe)for(var Dt of qe(mt))wt.call(mt,Dt)&>(nt,Dt,mt[Dt]);return nt};const ke=nt=>o.createElement("svg",Lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34 34"},nt),o.createElement("defs",null,o.createElement("style",null,".brush_svg__cls-1{fill:#fff}")),o.createElement("path",{className:"brush_svg__cls-1",d:"M17.29 31.49H9.44c-1.68 0-2.24-.66-1.92-2.28.36-1.83.77-3.66 1.13-5.49a.9.9 0 0 1 1-.84h15.39a.91.91 0 0 1 1 .85c.37 1.83.78 3.65 1.13 5.48.32 1.62-.24 2.28-1.92 2.28-2.63.01-5.25 0-7.96 0ZM17.39 20.05H9.92c-1 0-1.09-.12-1.09-1.06v-1.72a1.36 1.36 0 0 1 1.44-1.46h3.51c.56 0 .74-.19.73-.74 0-2.89.05-5.78 0-8.67C14.43 3.93 16 2.94 17.38 3s2.93 1 2.87 3.48c-.07 2.84 0 5.68 0 8.52 0 .64.16.89.84.86 1.09-.05 2.19 0 3.29 0a1.4 1.4 0 0 1 1.56 1.57v1.8c0 .6-.36.89-1 .89Z"}),o.createElement("path",{style:{fill:"none"},d:"M2.89 2.83h28.35v28.35H2.89z"}));var He="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNCAzNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuMjkgMzEuNDlIOS40NGMtMS42OCAwLTIuMjQtLjY2LTEuOTItMi4yOC4zNi0xLjgzLjc3LTMuNjYgMS4xMy01LjQ5YS45LjkgMCAwIDEgMS0uODRoMTUuMzlhLjkxLjkxIDAgMCAxIDEgLjg1Yy4zNyAxLjgzLjc4IDMuNjUgMS4xMyA1LjQ4LjMyIDEuNjItLjI0IDIuMjgtMS45MiAyLjI4LTIuNjMuMDEtNS4yNSAwLTcuOTYgMFpNMTcuMzkgMjAuMDVIOS45MmMtMSAwLTEuMDktLjEyLTEuMDktMS4wNnYtMS43MmExLjM2IDEuMzYgMCAwIDEgMS40NC0xLjQ2aDMuNTFjLjU2IDAgLjc0LS4xOS43My0uNzQgMC0yLjg5LjA1LTUuNzggMC04LjY3QzE0LjQzIDMuOTMgMTYgMi45NCAxNy4zOCAzczIuOTMgMSAyLjg3IDMuNDhjLS4wNyAyLjg0IDAgNS42OCAwIDguNTIgMCAuNjQuMTYuODkuODQuODYgMS4wOS0uMDUgMi4xOSAwIDMuMjkgMGExLjQgMS40IDAgMCAxIDEuNTYgMS41N3YxLjhjMCAuNi0uMzYuODktMSAuODlaIi8+PHBhdGggc3R5bGU9ImZpbGw6bm9uZSIgZD0iTTIuODkgMi44M2gyOC4zNXYyOC4zNUgyLjg5eiIvPjwvc3ZnPg==",et=Object.defineProperty,Fe=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,U=(nt,mt,Dt)=>mt in nt?et(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,N=(nt,mt)=>{for(var Dt in mt||(mt={}))ue.call(mt,Dt)&&U(nt,Dt,mt[Dt]);if(Fe)for(var Dt of Fe(mt))V.call(mt,Dt)&&U(nt,Dt,mt[Dt]);return nt};const D=nt=>o.createElement("svg",N({className:"undo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M512 324.267V136.533c0-6.826-3.413-13.653-10.24-13.653-6.827-3.413-13.653-3.413-17.067 0L6.827 430.08C3.413 433.493 0 436.907 0 443.733s3.413 10.24 6.827 13.654L484.693 798.72c6.827 3.413 13.654 3.413 17.067 0 6.827-3.413 10.24-10.24 10.24-13.653V597.333c249.173 10.24 474.453 235.52 477.867 290.134 0 10.24 6.826 17.066 17.066 17.066S1024 897.707 1024 887.467c-3.413-225.28-170.667-552.96-512-563.2z",fill:"#fff"}));var ee="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI0LjI2N1YxMzYuNTMzYzAtNi44MjYtMy40MTMtMTMuNjUzLTEwLjI0LTEzLjY1My02LjgyNy0zLjQxMy0xMy42NTMtMy40MTMtMTcuMDY3IDBMNi44MjcgNDMwLjA4QzMuNDEzIDQzMy40OTMgMCA0MzYuOTA3IDAgNDQzLjczM3MzLjQxMyAxMC4yNCA2LjgyNyAxMy42NTRMNDg0LjY5MyA3OTguNzJjNi44MjcgMy40MTMgMTMuNjU0IDMuNDEzIDE3LjA2NyAwIDYuODI3LTMuNDEzIDEwLjI0LTEwLjI0IDEwLjI0LTEzLjY1M1Y1OTcuMzMzYzI0OS4xNzMgMTAuMjQgNDc0LjQ1MyAyMzUuNTIgNDc3Ljg2NyAyOTAuMTM0IDAgMTAuMjQgNi44MjYgMTcuMDY2IDE3LjA2NiAxNy4wNjZTMTAyNCA4OTcuNzA3IDEwMjQgODg3LjQ2N2MtMy40MTMtMjI1LjI4LTE3MC42NjctNTUyLjk2LTUxMi01NjMuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",se=Object.defineProperty,X=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable,Se=(nt,mt,Dt)=>mt in nt?se(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,he=(nt,mt)=>{for(var Dt in mt||(mt={}))re.call(mt,Dt)&&Se(nt,Dt,mt[Dt]);if(X)for(var Dt of X(mt))Ie.call(mt,Dt)&&Se(nt,Dt,mt[Dt]);return nt};const We=nt=>o.createElement("svg",he({className:"redo_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"m1017.173 430.08-477.866-307.2c-6.827-3.413-13.654-3.413-17.067 0-6.827 3.413-10.24 6.827-10.24 13.653v187.734c-341.333 10.24-508.587 337.92-512 563.2v3.413c0 6.827 6.827 13.653 17.067 13.653s17.066-6.826 17.066-17.066c3.414-51.2 228.694-279.894 477.867-290.134v187.734c0 6.826 3.413 13.653 10.24 13.653 6.827 3.413 13.653 3.413 17.067 0l477.866-341.333c3.414-3.414 6.827-10.24 6.827-13.654s-3.413-10.24-6.827-13.653z",fill:"#fff"}));var de="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Im0xMDE3LjE3MyA0MzAuMDgtNDc3Ljg2Ni0zMDcuMmMtNi44MjctMy40MTMtMTMuNjU0LTMuNDEzLTE3LjA2NyAwLTYuODI3IDMuNDEzLTEwLjI0IDYuODI3LTEwLjI0IDEzLjY1M3YxODcuNzM0Yy0zNDEuMzMzIDEwLjI0LTUwOC41ODcgMzM3LjkyLTUxMiA1NjMuMnYzLjQxM2MwIDYuODI3IDYuODI3IDEzLjY1MyAxNy4wNjcgMTMuNjUzczE3LjA2Ni02LjgyNiAxNy4wNjYtMTcuMDY2YzMuNDE0LTUxLjIgMjI4LjY5NC0yNzkuODk0IDQ3Ny44NjctMjkwLjEzNHYxODcuNzM0YzAgNi44MjYgMy40MTMgMTMuNjUzIDEwLjI0IDEzLjY1MyA2LjgyNyAzLjQxMyAxMy42NTMgMy40MTMgMTcuMDY3IDBsNDc3Ljg2Ni0zNDEuMzMzYzMuNDE0LTMuNDE0IDYuODI3LTEwLjI0IDYuODI3LTEzLjY1NHMtMy40MTMtMTAuMjQtNi44MjctMTMuNjUzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",le=Object.defineProperty,ve=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,pe=(nt,mt,Dt)=>mt in nt?le(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,Je=(nt,mt)=>{for(var Dt in mt||(mt={}))xe.call(mt,Dt)&&pe(nt,Dt,mt[Dt]);if(ve)for(var Dt of ve(mt))Ze.call(mt,Dt)&&pe(nt,Dt,mt[Dt]);return nt};const Ae=nt=>o.createElement("svg",Je({className:"repeat_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M0 448c0 35.4 28.6 64 64 64s64-28.6 64-64c0-106 86-192 192-192h320v64c0 25.8 15.6 49.2 39.6 59.2s51.4 4.4 69.8-13.8l128-128c25-25 25-65.6 0-90.6l-128-128C731 .4 703.6-5 679.6 5S640 38.2 640 64v64H320C143.2 128 0 271.2 0 448zm1024 128c0-35.4-28.6-64-64-64s-64 28.6-64 64c0 106-86 192-192 192H384v-64c0-25.8-15.6-49.2-39.6-59.2s-51.4-4.4-69.8 13.8l-128 128c-25 25-25 65.6 0 90.6l128 128c18.4 18.4 45.8 23.8 69.8 13.8s39.6-33.2 39.6-59.2V896h320c176.8 0 320-143.2 320-320z",fill:"#fff"}));var oe="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0wIDQ0OGMwIDM1LjQgMjguNiA2NCA2NCA2NHM2NC0yOC42IDY0LTY0YzAtMTA2IDg2LTE5MiAxOTItMTkyaDMyMHY2NGMwIDI1LjggMTUuNiA0OS4yIDM5LjYgNTkuMnM1MS40IDQuNCA2OS44LTEzLjhsMTI4LTEyOGMyNS0yNSAyNS02NS42IDAtOTAuNmwtMTI4LTEyOEM3MzEgLjQgNzAzLjYtNSA2NzkuNiA1UzY0MCAzOC4yIDY0MCA2NHY2NEgzMjBDMTQzLjIgMTI4IDAgMjcxLjIgMCA0NDh6bTEwMjQgMTI4YzAtMzUuNC0yOC42LTY0LTY0LTY0cy02NCAyOC42LTY0IDY0YzAgMTA2LTg2IDE5Mi0xOTIgMTkySDM4NHYtNjRjMC0yNS44LTE1LjYtNDkuMi0zOS42LTU5LjJzLTUxLjQtNC40LTY5LjggMTMuOGwtMTI4IDEyOGMtMjUgMjUtMjUgNjUuNiAwIDkwLjZsMTI4IDEyOGMxOC40IDE4LjQgNDUuOCAyMy44IDY5LjggMTMuOHMzOS42LTMzLjIgMzkuNi01OS4yVjg5NmgzMjBjMTc2LjggMCAzMjAtMTQzLjIgMzIwLTMyMHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",ye=Object.defineProperty,Be=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,we=(nt,mt,Dt)=>mt in nt?ye(nt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):nt[mt]=Dt,Le=(nt,mt)=>{for(var Dt in mt||(mt={}))De.call(mt,Dt)&&we(nt,Dt,mt[Dt]);if(Be)for(var Dt of Be(mt))Pe.call(mt,Dt)&&we(nt,Dt,mt[Dt]);return nt};const Ye=nt=>o.createElement("svg",Le({className:"delete_all_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},nt),o.createElement("path",{d:"M864 192v576h64V192c0-70.4-57.6-128-128-128H352v64h448c35.2 0 64 28.8 64 64z",fill:"#fff"}),o.createElement("path",{d:"M672 192H224c-70.4 0-128 57.6-128 128v512c0 70.4 57.6 128 128 128h448c70.4 0 128-57.6 128-128V320c0-70.4-57.6-128-128-128zm-73.235 489.51c12.445 12.445 12.445 32.81 0 45.255s-32.81 12.445-45.255 0L448 621.255l-105.51 105.51c-12.445 12.445-32.81 12.445-45.255 0s-12.445-32.81 0-45.255L402.745 576l-105.51-105.51c-12.445-12.445-12.445-32.81 0-45.255s32.81-12.445 45.255 0L448 530.745l105.51-105.51c12.445-12.445 32.81-12.445 45.255 0s12.445 32.81 0 45.255L493.255 576l105.51 105.51z",fill:"#fff"}));var Ue="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik04NjQgMTkydjU3Nmg2NFYxOTJjMC03MC40LTU3LjYtMTI4LTEyOC0xMjhIMzUydjY0aDQ0OGMzNS4yIDAgNjQgMjguOCA2NCA2NHoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNjcyIDE5MkgyMjRjLTcwLjQgMC0xMjggNTcuNi0xMjggMTI4djUxMmMwIDcwLjQgNTcuNiAxMjggMTI4IDEyOGg0NDhjNzAuNCAwIDEyOC01Ny42IDEyOC0xMjhWMzIwYzAtNzAuNC01Ny42LTEyOC0xMjgtMTI4em0tNzMuMjM1IDQ4OS41MWMxMi40NDUgMTIuNDQ1IDEyLjQ0NSAzMi44MSAwIDQ1LjI1NXMtMzIuODEgMTIuNDQ1LTQ1LjI1NSAwTDQ0OCA2MjEuMjU1bC0xMDUuNTEgMTA1LjUxYy0xMi40NDUgMTIuNDQ1LTMyLjgxIDEyLjQ0NS00NS4yNTUgMHMtMTIuNDQ1LTMyLjgxIDAtNDUuMjU1TDQwMi43NDUgNTc2bC0xMDUuNTEtMTA1LjUxYy0xMi40NDUtMTIuNDQ1LTEyLjQ0NS0zMi44MSAwLTQ1LjI1NXMzMi44MS0xMi40NDUgNDUuMjU1IDBMNDQ4IDUzMC43NDVsMTA1LjUxLTEwNS41MWMxMi40NDUtMTIuNDQ1IDMyLjgxLTEyLjQ0NSA0NS4yNTUgMHMxMi40NDUgMzIuODEgMCA0NS4yNTVMNDkzLjI1NSA1NzZsMTA1LjUxIDEwNS41MXoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",dt,bt,ft,At=function(nt){return nt.Classification="Classification",nt.Detection="Detection",nt.Segmentation="Segmentation",nt.Matting="Matting",nt.KeyPoints="KeyPoints",nt.Mask="Mask",nt}({}),Ot=function(nt){return nt.showAnnotations="showAnnotations",nt.showAllCategory="showAllCategory",nt.showImgDesc="showImgDesc",nt.showBoxText="showBoxText",nt.showSegFilling="showSegFilling",nt.showSegContour="showSegContour",nt.showMattingColorFill="showMattingColorFill",nt.showKeyPointsLine="showKeyPointsLine",nt.showKeyPointsBox="showKeyPointsBox",nt}({}),jt=function(nt){return nt.Waiting="waiting",nt.Running="running",nt.Success="success",nt.Failed="failed",nt}({}),Gt=.1,Xt=20,Bn=.5,fn=.1,$n=function(nt){return nt.Custom="Custom",nt.Rectangle="Rectangle",nt.Polygon="Polygon",nt.Skeleton="Skeleton",nt.Mask="Mask",nt.Matting="Matting",nt}({}),On=function(nt){return nt.Rect="rect",nt.Circle="circle",nt.Polygon="polygon",nt.None="none",nt}({}),Mn=function(nt){return nt.Drag="Drag",nt.Rectangle="Rect",nt.Polygon="Polygon",nt.Skeleton="Skeleton",nt.Mask="Mask",nt}({}),_e=(dt={},t()(dt,Mn.Drag,$n.Custom),t()(dt,Mn.Rectangle,$n.Rectangle),t()(dt,Mn.Polygon,$n.Polygon),t()(dt,Mn.Skeleton,$n.Skeleton),t()(dt,Mn.Mask,$n.Mask),dt),at=function(nt){return nt.PenAdd="PenAdd",nt.PenErase="PenErase",nt.BrushAdd="BrushAdd",nt.BrushErase="BrushErase",nt.AutoSegmentByBox="AutoSegmentByBox",nt.AutoSegmentByClick="AutoSegmentByClick",nt.AutoSegmentByStroke="AutoSegmentByStroke",nt.AutoSegmentEverything="AutoSegmentEverything",nt.AutoEdgeStitching="AutoEdgeStitching",nt}({}),Vt=function(nt){return nt.SmartAnnotation="SmartAnnotation",nt.Undo="Undo",nt.Redo="Redo",nt.RepeatPrevious="RepeatPrevious",nt.DeleteAll="DeleteAll",nt}({}),an=(bt={},t()(bt,$n.Rectangle,m),t()(bt,$n.Skeleton,R),t()(bt,$n.Polygon,k),t()(bt,$n.Custom,Ne),t()(bt,$n.Mask,ke),t()(bt,$n.Matting,ke),bt),st=(ft={},t()(ft,Vt.SmartAnnotation,K),t()(ft,Vt.Undo,D),t()(ft,Vt.Redo,We),t()(ft,Vt.RepeatPrevious,Ae),t()(ft,Vt.DeleteAll,Ye),ft),ut=function(nt){return nt[nt.noLabeled=0]="noLabeled",nt[nt.labeledNotVisible=1]="labeledNotVisible",nt[nt.labeledVisible=2]="labeledVisible",nt}({}),$t={categoryName:"person",boundingBox:{xmax:.44072164948453607,xmin:.2654639175257732,ymax:.5698739977090492,ymin:.09335624284077892},points:[175.25773195876286,61.21134020618557,0,1,2,1,179.9828178694158,41.45189003436426,0,1,2,1,170.96219931271477,41.881443298969074,0,1,2,1,189.86254295532646,51.33161512027492,0,1,2,1,163.23024054982818,50.47250859106529,0,1,2,1,192.86941580756016,68.08419243986253,0,1,2,1,158.295150820924,67.63982699371964,0,1,2,1,202.74914089347078,99.87113402061856,0,1,2,1,150.34364261168383,99.87113402061856,0,1,2,1,208.76288659793815,127.36254295532646,0,1,2,1,142.61168384879724,129.0807560137457,0,1,2,1,182.13058419243984,126.50343642611685,0,1,2,1,162.2279495990836,125.4739898092191,0,1,2,1,184.70790378006873,175.4725085910653,0,1,2,1,158.78675066819395,176.9759450171821,0,1,2,1,190.29209621993127,208.11855670103094,0,1,2,1,152.92096219931273,206.82989690721652,0,1,2,1],lines:[15,13,13,11,16,14,14,12,11,12,5,11,6,12,5,6,5,7,6,8,7,9,8,10,1,2,0,1,0,2,1,3,2,4,3,5,4,6],pointColors:["128","0","0","255","178","102","230","230","0","255","51","255","153","204","255","255","128","0","0","255","255","128","0","255","51","153","255","169","165","139","255","0","0","102","255","102","184","97","134","128","128","0","255","190","255","0","128","0","0","0","255"],pointNames:["nose","left_eye","right_eye","left_ear","right_ear","left_shoulder","right_shoulder","left_elbow","right_elbow","left_wrist","right_wrist","left_hip","right_hip","left_knee","right_knee","left_ankle","right_ankle"]}},34095:function(M,b,e){"use strict";e.d(b,{Bt:function(){return n},XQ:function(){return s},lz:function(){return c},mh:function(){return i},rl:function(){return t},s_:function(){return o}});var i={DEFAULT:0,CREATING:0,SHAPE:.4,FOCUS:.6,ACTIVE:.2,CTRL_TO_SELECT:.1,OTHER:0},t={DEFAULT:1,CREATING:1,CREATING_LINE:.8,FOCUS:1,ACTIVE:1,OTHER:.3},o={CREATING:.7,FOCUS:.6,DEFAULT:.4},s={CREATING:"#fff"},n={CREATING:"transparent",CREATING_POSITIVE:"#2876d4",CREATING_NEGATIVE:"#e91d00"},c={POSITIVE:"rgba(1, 128, 0, 0.7)",NEGATIVE:"rgba(255, 3, 0, 0.7)"}},14122:function(M,b,e){"use strict";e.d(b,{kl:function(){return fl},j5:function(){return gl},D5:function(){return Ri},je:function(){return k.je}});var i=e(34485),t=e.n(i),o=e(88205),s=e.n(o),n=e(58757),c=e(62109),l=e(12562),v=e(51244),h=e(73267),m=e(86505),C=e(65246),p=e(87608),S=e.n(p),w=e(74820),y=e(35667),Z=function($e){var Ke=$e.className,cn=Ke===void 0?"":Ke,nn=$e.children,jn=$e.leftTools,lr=jn===void 0?[]:jn,zn=$e.rightTools,Yn=zn===void 0?[]:zn,Zr=function(Qn){return Qn.map(function(Un,Ta){var ha=Un.title,Qt=Un.icon,Re=Un.onClick,rt=Un.disabled,Rt=Un.splitLine,Ut=Un.customElement;return(0,y.jsxs)(n.Fragment,{children:[Ut||(0,y.jsx)(w.Z,{title:ha,children:(0,y.jsx)("div",{className:S()("dds-annnotator-toptools-row-icon",{"dds-annnotator-toptools-row-icon-disabled":!!rt}),onClick:Re,children:Qt})}),Rt&&(0,y.jsx)("div",{className:"dds-annnotator-toptools-row-split"})]},Ta)})};return(0,y.jsxs)("div",{className:S()("dds-annnotator-toptools",cn),onMouseDown:function(Qn){Qn.stopPropagation()},children:[(0,y.jsx)("div",{className:"dds-annnotator-toptools-row",children:Zr(lr)}),(0,y.jsx)("div",{className:"dds-annnotator-toptools-progress",children:nn}),(0,y.jsx)("div",{className:"dds-annnotator-toptools-row",children:Zr(Yn)})]})},F=Z,R=e(63900),T=e.n(R),z=e(39378);function A(tt){var $e=tt.visible,Ke=tt.categories,cn=tt.setCategories,nn=tt.drawData,jn=tt.setDrawData,lr=tt.editState,zn=tt.updateObjectWithoutHistory,Yn=tt.updateAllObjectWithoutHistory,Zr=(0,n.useState)([]),ir=s()(Zr,2),Qn=ir[0],Un=ir[1],Ta=(0,n.useCallback)(function(un){Ke.find(function(In){return In.name===un})||!cn||cn(function(In){return[].concat(t()(In),[{id:un,name:un}])})},[Ke]);(0,n.useEffect)(function(){var un=Ke.map(function(gn){return gn.name}),In=Qn.filter(function(gn){return un.includes(gn)});Un(In)},[Ke]),(0,n.useEffect)(function(){$e||Un([])},[$e]);var ha=nn.objectList,Qt=(0,n.useCallback)(function(un,In){var gn=T()({},nn.objectList[un]);gn.hidden=In,zn(gn,un)},[nn.objectList]),Re=(0,n.useCallback)(function(un,In){var gn=nn.objectList.map(function(rn){var Ur=T()({},rn);return Ur.label===un&&(Ur.hidden=In),Ur});Yn(gn)},[nn.objectList]),rt=function(In,gn){var rn=T()({},nn.objectList[lr.focusObjectIndex]);switch(In){case m.Yq.Rect:{rn.rect&&(rn.rect.visible=gn,zn(rn,lr.focusObjectIndex));break}case m.Yq.Polygon:{rn.polygon&&(rn.polygon.visible=gn,zn(rn,lr.focusObjectIndex));break}}},Rt=function(In){var gn,rn,Ur=(0,z.cloneDeep)(nn.objectList[lr.focusObjectIndex]),aa=(gn=Ur.keypoints)===null||gn===void 0||(rn=gn.points)===null||rn===void 0?void 0:rn[lr.focusEleIndex];aa&&(aa.visible=In),zn(Ur,lr.focusObjectIndex)},Ut=(0,n.useCallback)(function(un){jn(function(In){un!==In.activeClassName&&(In.activeClassName=un)})},[]);return(0,n.useEffect)(function(){if(!(nn.activeObjectIndex<0)){var un=nn.objectList[nn.activeObjectIndex].label;un!==nn.activeClassName&&Ut(un)}},[nn.activeObjectIndex]),{aiLabels:Qn,setAiLabels:Un,curObjects:ha,onChangeObjectHidden:Qt,onChangeCategoryHidden:Re,onChangeElementVisible:rt,onChangePointVisible:Rt,onChangeActiveClass:Ut,onCreateCategory:Ta}}var L=e(24454),I=e.n(L),$=e(56592),B=e.n($),K=e(46134),H=e(84045),ie=function(){var tt=B()(I()().mark(function $e(Ke){return I()().wrap(function(nn){for(;;)switch(nn.prev=nn.next){case 0:return nn.abrupt("return",new Promise(function(jn,lr){window.URL=window.URL||window.webkitURL;var zn=new XMLHttpRequest;zn.open("get",Ke,!0),zn.responseType="blob",zn.setRequestHeader("If-Modified-Since","0"),zn.send(),zn.onload=function(){if(this.status===200){var Yn=this.response,Zr=new FileReader;Zr.onloadend=function(ir){var Qn,Un=(Qn=ir.target)===null||Qn===void 0?void 0:Qn.result;jn(Un)},Zr.onerror=function(ir){lr(ir)},Zr.readAsDataURL(Yn)}},zn.onerror=function(Yn){lr(Yn)}}));case 1:case"end":return nn.stop()}},$e)}));return function(Ke){return tt.apply(this,arguments)}}(),ce=function($e){var Ke=/^data:image\/(png|jpe?g|gif|svg|webp);base64,/i;return Ke.test($e)},te=function($e){var Ke=/^blob:/i;return Ke.test($e)},W=function($e){return new Promise(function(Ke,cn){var nn=new FileReader;nn.onload=function(jn){var lr;Ke((lr=jn.target)===null||lr===void 0?void 0:lr.result)},nn.readAsDataURL($e),nn.onerror=function(jn){cn(jn)}})},G=e(53357),O=e(97375),k=e(50910),Y=e(67761),P;(function(tt){var $e=function(Ke){return Ke.Detection="ai_detection",Ke.SegmentByPolygon="ai_segmentation",Ke.SegmentByMask="ai_segmentation_mask",Ke.Pose="ai_pose",Ke.MaskEdgeStitching="ai_mask_edge_stitching",Ke.SegmentEverything="ai_segment_everything",Ke}({});tt.EnumModelType=$e})(P||(P={}));function Q(tt,$e,Ke){return fe.apply(this,arguments)}function fe(){return fe=B()(I()().mark(function tt($e,Ke,cn){return I()().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:return jn.abrupt("return",(0,O.request)("".concat("https://api.deepdataspace.com","/tasks/").concat($e),T()({method:"POST",data:T()({},Ke)},cn||{hideCodeErrorMsg:!0})));case 1:case"end":return jn.stop()}},tt)})),fe.apply(this,arguments)}function Ce(tt,$e){return(0,O.request)("".concat("https://api.deepdataspace.com","/task_statuses/").concat(tt),T()({method:"GET"},$e||{}))}function ge(tt,$e){return(0,O.request)("".concat("https://api.deepdataspace.com","/mask_task_statuses/").concat(tt),T()({method:"GET"},$e||{}))}function Me(tt,$e){return Ne.apply(this,arguments)}function Ne(){return Ne=B()(I()().mark(function tt($e,Ke){var cn,nn,jn,lr,zn,Yn=arguments;return I()().wrap(function(ir){for(;;)switch(ir.prev=ir.next){case 0:cn=Yn.length>2&&Yn[2]!==void 0?Yn[2]:5e3,nn=Yn.length>3&&Yn[3]!==void 0?Yn[3]:1e3,jn=0;case 3:if(!(jn=Ha?k.TK.Checked:k.TK.Unchecked,conf:$a.normalizedScore,color:Rt($a.categoryName,!0)}}).reverse(),Yn(function($a){$a.isBatchEditing=!0,$a.limitConf=Ha;var li=$a.objectList.filter(function(Va){return Va.status===k.TK.Commited});$a.objectList=[].concat(t()(li),t()(Do)),$a.creatingObject&&$a.objectList[$a.activeObjectIndex]&&($a.creatingObject=T()({},$a.objectList[$a.activeObjectIndex]))}),H.ZP.success(rn("DDSAnnotator.smart.msg.success"))),Oa.next=11;break;case 8:Oa.prev=8,Oa.t0=Oa.catch(0),H.ZP.error(rn("DDSAnnotator.smart.msg.error"));case 11:return Oa.prev=11,aa(!1),Oa.finish(11);case 14:case"end":return Oa.stop()}},za,null,[[0,8,11,14]])}));return function(ya,io){return _a.apply(this,arguments)}}(),Oo=function(){var _a=B()(I()().mark(function za(ya,io,Ba,Ea){var qa,Ha,Do,lo,Oa,$a,li,Va,pi,ui,Ja,ko,Io,Lo,Qa,ci;return I()().wrap(function(vi){for(;;)switch(vi.prev=vi.next){case 0:return Do=((qa=ya.creatingObject)===null||qa===void 0||(Ha=qa.polygon)===null||Ha===void 0?void 0:Ha.group.map(function(qo){return qo.reduce(function(Vi,as){var os=(0,K.AR)([as.x,as.y],Qn,Un),Qi=os.x,_i=os.y;return Vi.concat([Qi,_i])},[])}))||[],lo=(Ea==null?void 0:Ea.map(function(qo){var Vi=(0,K.AR)([qo.point.x,qo.point.y],Qn,Un),as=Vi.x,os=Vi.y;return{isPositive:qo.isPositive,position:[as,os]}}))||[],Oa={image:io,mask:ya.prompt.segmentationMask||"",polygons:Do,clicks:lo},Ba&&($a=Ba.xmin,li=Ba.ymin,Va=Ba.xmax,pi=Ba.ymax,ui=(0,K.AR)([$a,li],Qn,Un),Ja=(0,K.AR)([Va,pi],Qn,Un),Object.assign(Oa,{rect:[ui.x,ui.y,Ja.x,Ja.y]})),vi.prev=4,aa(!0),vi.next=8,Qe(P.EnumModelType.SegmentByPolygon,Oa);case 8:ko=vi.sent,ko&&(Io=ko.polygon,Lo=ko.mask,Io&&Io.length>0&&(Qa=Io.map(function(qo){for(var Vi=[],as=0;as0&&pi>0&&(Ja=(0,K.Ap)({x:$a,y:li},Un,Qn),ko=Ja.x,Io=Ja.y,Lo=(0,K.Ap)({x:Va,y:pi},Un,Qn),Qa=Lo.x,ci=Lo.y,ui=[Math.round(ko),Math.round(Io),Math.round(Qa),Math.round(ci)]),bi={maskRle:lo||[],maskId:ya.prompt.segmentationMask||"",prompt:Co(Ba||[]),area:ui},Zr.imageCacheId?Object.assign(bi,{imageId:Zr.imageCacheId}):Object.assign(bi,{image:io}),j.prev=8,aa(!0),j.next=12,Qe(P.EnumModelType.SegmentByMask,bi);case 12:vi=j.sent,vi&&(Vi=vi.maskId,as=vi.maskRle,os=vi.imageId,Qi=((qo=ya.creatingObject)===null||qo===void 0?void 0:qo.color)||Rt(rt),_i={type:m.gr.Mask,hidden:!1,label:rt,currIndex:-1,maskCanvasElement:(0,Y.ei)(as,Qn,Qi),maskRle:as,status:k.TK.Checked,color:Qi},Yn(function(ae){ae.creatingObject=_i,ae.prompt.maskPrompts=Ba,ae.prompt.segmentationMask=Vi,ae.prompt.creatingMask=void 0}),ir(function(ae){ae.imageCacheId=os}),H.ZP.success(rn("DDSAnnotator.smart.msg.success"))),j.next=20;break;case 16:j.prev=16,j.t0=j.catch(8),H.ZP.error(rn("DDSAnnotator.smart.msg.error")),Yn(function(ae){ae.prompt.creatingMask=void 0});case 20:return j.prev=20,aa(!1),j.finish(20);case 23:case"end":return j.stop()}},za,null,[[8,16,20,23]])}));return function(ya,io,Ba){return _a.apply(this,arguments)}}(),Ia=function(){var _a=B()(I()().mark(function za(ya,io,Ba){var Ea,qa,Ha,Do,lo,Oa,$a,li,Va,pi,ui;return I()().wrap(function(ko){for(;;)switch(ko.prev=ko.next){case 0:return Ea=m.v_.lines,qa=m.v_.pointNames,Ha=m.v_.pointColors,Do={image:io,targets:Ba.join(","),template:{lines:Ea,pointNames:qa,pointColors:Ha}},ya.isBatchEditing&&(lo=t()(ya.objectList),ya.activeObjectIndex>-1&&lo[ya.activeObjectIndex]&&ya.creatingObject&&(lo[ya.activeObjectIndex]=T()(T()({},lo[ya.activeObjectIndex]),ya.creatingObject)),Oa=lo.filter(function(Io){return Io.type===m.gr.Skeleton&&Io.status===k.TK.Checked}),Oa.length>0&&($a=(0,K.j9)(Oa,Qn,Un),li=$a.map(function(Io){return{categoryName:Io.categoryName,points:Io.points,boundingBox:Io.boundingBox}}),Object.assign(Do,{objects:li}))),ko.prev=3,aa(!0),ko.next=7,Qe(P.EnumModelType.Pose,Do);case 7:Va=ko.sent,Va&&(pi=Va.objects,pi&&pi.length>0&&(ui=pi.map(function(Io){var Lo=Io.categoryName,Qa=Io.boundingBox,ci=Io.points,bi=Io.conf,vi={label:Lo,color:Rt(Lo),type:m.gr.Skeleton,hidden:!1,conf:bi,status:k.TK.Checked};if(Qa){var qo=(0,K.cO)(Qa,Un);Object.assign(vi,{rect:T()({visible:!0},qo)})}if(ci&&Ea&&Ha&&qa){var Vi=(0,K.el)(ci,qa,Ha,Qn,Un);Object.assign(vi,{keypoints:{points:Vi,lines:Ea}})}return vi}),Yn(function(Io){Io.isBatchEditing||(Io.isBatchEditing=!0);var Lo=Io.objectList.filter(function(Qa){return Qa.status===k.TK.Commited});Io.objectList=[].concat(t()(Lo),t()(ui)),Io.creatingObject&&Io.objectList[Io.activeObjectIndex]&&(Io.creatingObject=T()({},Io.objectList[Io.activeObjectIndex]))}),H.ZP.success(rn("DDSAnnotator.smart.msg.success")))),ko.next=14;break;case 11:ko.prev=11,ko.t0=ko.catch(3),H.ZP.error(rn("DDSAnnotator.smart.msg.error"));case 14:return ko.prev=14,aa(!1),ko.finish(14);case 17:case"end":return ko.stop()}},za,null,[[3,11,14,17]])}));return function(ya,io,Ba){return _a.apply(this,arguments)}}(),ia=function(){var _a=B()(I()().mark(function za(ya,io){var Ba,Ea,qa,Ha,Do,lo,Oa,$a,li,Va,pi,ui,Ja,ko;return I()().wrap(function(Lo){for(;;)switch(Lo.prev=Lo.next){case 0:if(!(!((Ba=ya.prompt.creatingMask)!==null&&Ba!==void 0&&Ba.stroke)||!((Ea=ya.prompt.creatingMask)!==null&&Ea!==void 0&&Ea.radius))){Lo.next=2;break}return Lo.abrupt("return");case 2:if(qa=ya.prompt.creatingMask,Ha=qa.stroke,Do=qa.radius,lo=ya.objectList.filter(function(Qa){return Qa.type===m.gr.Mask}),!(lo.length<2)){Lo.next=8;break}return H.ZP.error("To ensure valid results when using intelligent edge stitching, make sure to use at least 2 mask objects."),zn(function(Qa){Qa.prompt.creatingMask=void 0}),Lo.abrupt("return");case 8:return Oa=lo.map(function(Qa){var ci=(0,Y.G9)(Un,Qn,[],Qa.maskCanvasElement)||[];return{maskRle:ci,categoryName:Qa.label}}),$a=Ha.reduce(function(Qa,ci){var bi=ci.x,vi=ci.y,qo=(0,K.AR)([bi,vi],Qn,Un);return Qa.concat([qo.x,qo.y])},[]),li={rleList:Oa,stroke:$a,radius:Do},Zr.imageCacheId?Object.assign(li,{imageId:Zr.imageCacheId}):Object.assign(li,{image:io}),Object.assign(li,{image:io}),Lo.prev=13,aa(!0),Lo.next=17,Qe(P.EnumModelType.MaskEdgeStitching,li);case 17:pi=Lo.sent,pi&&((Va=pi.rleList)===null||Va===void 0?void 0:Va.length)>0&&(ui=pi.rleList.map(function(Qa){var ci=Rt(Qa.categoryName);return{type:m.gr.Mask,hidden:!1,label:Qa.categoryName,maskRle:Qa.maskRle,maskCanvasElement:(0,Y.ei)(Qa.maskRle,Qn,ci),conf:1,status:k.TK.Commited,color:ci}}),Ja=ya.objectList.filter(function(Qa){return Qa.type!==m.gr.Mask}),ko=[].concat(t()(Ja),t()(ui)),Qt(ko),H.ZP.success(rn("DDSAnnotator.smart.msg.success"))),Lo.next=24;break;case 21:Lo.prev=21,Lo.t0=Lo.catch(13),H.ZP.error(rn("DDSAnnotator.smart.msg.error"));case 24:return Lo.prev=24,aa(!1),zn(function(Qa){Qa.prompt.creatingMask=void 0}),Lo.finish(24);case 28:case"end":return Lo.stop()}},za,null,[[13,21,24,28]])}));return function(ya,io){return _a.apply(this,arguments)}}(),oo=function(){var _a=B()(I()().mark(function za(ya,io){var Ba,Ea,qa,Ha;return I()().wrap(function(lo){for(;;)switch(lo.prev=lo.next){case 0:return Ba=T()({},io),Zr.imageCacheId?Object.assign(Ba,{imageId:Zr.imageCacheId}):Object.assign(Ba,{image:ya}),lo.prev=2,aa(!0),lo.next=6,Qe(P.EnumModelType.SegmentEverything,Ba);case 6:qa=lo.sent,qa&&((Ea=qa.rleList)===null||Ea===void 0?void 0:Ea.length)>0&&(ir(function(Oa){Oa.annotsDisplayOptions.colorByCategory=!1}),Ha=qa.rleList.map(function(Oa){var $a=Rt(rt);return{type:m.gr.Mask,hidden:!1,label:rt,maskRle:Oa.maskRle,maskCanvasElement:(0,Y.ei)(Oa.maskRle,Qn,$a),conf:1,status:k.TK.Checked,color:$a}}),Yn(function(Oa){Oa.objectList=Ha,Oa.isBatchEditing=!0}),H.ZP.success(rn("DDSAnnotator.smart.msg.success"))),lo.next=13;break;case 10:lo.prev=10,lo.t0=lo.catch(2),H.ZP.error(rn("DDSAnnotator.smart.msg.error"));case 13:return lo.prev=13,aa(!1),lo.finish(13);case 16:case"end":return lo.stop()}},za,null,[[2,10,13,16]])}));return function(ya,io){return _a.apply(this,arguments)}}(),Sr=(0,n.useCallback)(function(){var _a=B()(I()().mark(function za(ya){var io,Ba,Ea,qa,Ha,Do,lo,Oa,$a,li,Va,pi;return I()().wrap(function(Ja){for(;;)switch(Ja.prev=Ja.next){case 0:if(io=ya.type,Ba=ya.drawData,Ea=ya.aiLabels,qa=Ea===void 0?[]:Ea,Ha=ya.bbox,Do=ya.maskPrompts,lo=ya.segmentationClicks,Oa=ya.segmentEverythingParams,!da){Ja.next=3;break}return Ja.abrupt("return");case 3:if($a=Ba||lr,!(!qa.length&&[m.ru.Rectangle,m.ru.Skeleton].includes($a.selectedTool))){Ja.next=7;break}return H.ZP.warning(rn("DDSAnnotator.smart.msg.labelRequired")),Ja.abrupt("return");case 7:if(li=H.ZP.loading(rn("DDSAnnotator.smart.msg.loading"),1e5),Va="".concat(cn[nn].urlFullRes),Ja.prev=9,ua(!0),ce(Va)){Ja.next=15;break}return Ja.next=14,ie(Va);case 14:Va=Ja.sent;case 15:Ja.next=20;break;case 17:Ja.prev=17,Ja.t0=Ja.catch(9),H.ZP.error("ImageToBase64 Error:",Ja.t0);case 20:Ja.prev=20,ua(!0),pi=io||m.Zo[$a.selectedTool],Ja.t1=pi,Ja.next=Ja.t1===m.gr.Rectangle?26:Ja.t1===m.gr.Skeleton?29:Ja.t1===m.gr.Polygon?32:Ja.t1===m.gr.Mask?35:48;break;case 26:return Ja.next=28,Aa(Va,qa);case 28:return Ja.abrupt("break",50);case 29:return Ja.next=31,Ia($a,Va,qa);case 31:return Ja.abrupt("break",50);case 32:return Ja.next=34,Oo($a,Va,Ha,lo);case 34:return Ja.abrupt("break",50);case 35:if($a.selectedSubTool!==m.jB.AutoEdgeStitching){Ja.next=40;break}return Ja.next=38,ia($a,Va);case 38:Ja.next=47;break;case 40:if($a.selectedSubTool!==m.jB.AutoSegmentEverything){Ja.next=45;break}return Ja.next=43,oo(Va,Oa);case 43:Ja.next=47;break;case 45:return Ja.next=47,Sa($a,Va,Do);case 47:return Ja.abrupt("break",50);case 48:return H.ZP.warning("Plan to Support!"),Ja.abrupt("break",50);case 50:Ja.next=55;break;case 52:Ja.prev=52,Ja.t2=Ja.catch(20),H.ZP.error(rn("DDSAnnotator.smart.msg.error"));case 55:return Ja.prev=55,ua(!1),zn(function(ko){ko.prompt.activeRectWhileLoading=void 0}),li(),Ja.finish(55);case 60:case"end":return Ja.stop()}},za,null,[[9,17],[20,52,55,60]])}));return function(za){return _a.apply(this,arguments)}}(),[lr]),Nr=function(){var _a=B()(I()().mark(function za(ya){var io;return I()().wrap(function(Ea){for(;;)switch(Ea.prev=Ea.next){case 0:if(!(da||!un)){Ea.next=2;break}return Ea.abrupt("return");case 2:if(!ya.objectList.find(function(qa){return!qa.label})){Ea.next=5;break}return H.ZP.warning("There are annotations without a category. Please check."),Ea.abrupt("return");case 5:return ua(!0),Ea.prev=6,io=(0,K.j9)(ya.objectList,Qn,Un),Ea.next=10,un(cn[nn].id,io);case 10:Ea.next=15;break;case 12:Ea.prev=12,Ea.t0=Ea.catch(6),console.error(Ea.t0);case 15:ua(!1);case 16:case"end":return Ea.stop()}},za,null,[[6,12]])}));return function(ya){return _a.apply(this,arguments)}}(),Da=function(){if(Ke===k.je.Edit&&Re){jn.confirm({getContainer:function(){return document.body},content:rn("DDSAnnotator.confirmLeave.content"),cancelText:rn("DDSAnnotator.confirmLeave.cancel"),okText:rn("DDSAnnotator.confirmLeave.ok"),okButtonProps:{danger:!0},onOk:function(){Ut&&Ut()}});return}Ut&&Ut()},Wr=function(){if(Ke===k.je.Review&&In){var za;In(((za=cn[nn])===null||za===void 0?void 0:za.id)||"",k.JE.Reject)}},Qr=function(){if(Ke===k.je.Review&&In){var za;In(((za=cn[nn])===null||za===void 0?void 0:za.id)||"",k.JE.Accept)}};return{onAiAnnotation:Sr,onSaveAnnotations:Nr,onCancelAnnotations:Da,onReject:Wr,onAccept:Qr}},Mt=qe,wt=function($e){var Ke=$e.children,cn=$e.eventHandler,nn=function(lr){cn?cn(lr):lr.stopPropagation()};return(0,y.jsx)("div",{onMouseDown:nn,onMouseUp:nn,style:{userSelect:"none"},children:Ke})},gt=function($e){var Ke=$e.index,cn=$e.targetElement,nn=$e.imagePos;return(0,y.jsx)(wt,{children:(0,y.jsx)("div",{className:"dds-annotator-popover-menu",style:{left:cn.x+nn.x+5,top:cn.y+nn.y+5},children:(0,y.jsx)("div",{className:"dds-annotator-popover-menu-content",children:(0,y.jsx)("span",{className:"dds-annotator-popover-menu-text",children:"".concat(Ke+1," ").concat(cn.name)})})})})},Lt=gt,ke=e(82968),He=e(37617),et=e(16951),Fe=Object.defineProperty,ue=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,N=(tt,$e,Ke)=>$e in tt?Fe(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,D=(tt,$e)=>{for(var Ke in $e||($e={}))V.call($e,Ke)&&N(tt,Ke,$e[Ke]);if(ue)for(var Ke of ue($e))U.call($e,Ke)&&N(tt,Ke,$e[Ke]);return tt};const ee=tt=>n.createElement("svg",D({width:10,height:10,fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.464 5.65A1 1 0 0 0 2.88 7.064l2.12-2.12 2.122 2.12A1 1 0 0 0 8.535 5.65L5.713 2.828a1 1 0 0 0-1.42-.006L1.464 5.65Z",fill:"#fff"}));var se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQ2NCA1LjY1QTEgMSAwIDAgMCAyLjg4IDcuMDY0bDIuMTItMi4xMiAyLjEyMiAyLjEyQTEgMSAwIDAgMCA4LjUzNSA1LjY1TDUuNzEzIDIuODI4YTEgMSAwIDAgMC0xLjQyLS4wMDZMMS40NjQgNS42NVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",X=e(83720),re=e(56019),Ie=e(39875),Se=e(23605),he=e(2556),We=e(2657),de=e.n(We),le,ve=function(tt){return tt.Tool="DDSAnnotator.shortcuts.tools",tt.GeneralAction="DDSAnnotator.shortcuts.general",tt.ViewAction="DDSAnnotator.shortcuts.viewControl",tt.AnnotationAction="DDSAnnotator.shortcuts.annotsControl",tt}({}),xe=function(tt){return tt[tt.RectangleTool=0]="RectangleTool",tt[tt.PolygonTool=1]="PolygonTool",tt[tt.SkeletonTool=2]="SkeletonTool",tt[tt.DragTool=3]="DragTool",tt[tt.MaskTool=4]="MaskTool",tt[tt.SmartAnnotation=5]="SmartAnnotation",tt[tt.Undo=6]="Undo",tt[tt.Redo=7]="Redo",tt[tt.RepeatPrevious=8]="RepeatPrevious",tt[tt.DeleteAll=9]="DeleteAll",tt[tt.NextImage=10]="NextImage",tt[tt.PreviousImage=11]="PreviousImage",tt[tt.Save=12]="Save",tt[tt.Accept=13]="Accept",tt[tt.Reject=14]="Reject",tt[tt.ZoomIn=15]="ZoomIn",tt[tt.ZoomOut=16]="ZoomOut",tt[tt.Reset=17]="Reset",tt[tt.HideCurrObject=18]="HideCurrObject",tt[tt.HideCurrCategory=19]="HideCurrCategory",tt[tt.HideAll=20]="HideAll",tt[tt.PanImage=21]="PanImage",tt[tt.DeleteCurrObject=22]="DeleteCurrObject",tt[tt.SaveCurrObject=23]="SaveCurrObject",tt[tt.CancelCurrObject=24]="CancelCurrObject",tt}({}),Ze=(le={},de()(le,xe.RectangleTool,{name:"RectangleTool",type:ve.Tool,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.tools.rectangle"}),de()(le,xe.PolygonTool,{name:"PolygonTool",type:ve.Tool,shortcut:["p"],descTextKey:"DDSAnnotator.shortcuts.tools.polygon"}),de()(le,xe.SkeletonTool,{name:"SkeletonTool",type:ve.Tool,shortcut:["s"],descTextKey:"DDSAnnotator.shortcuts.tools.skeleton"}),de()(le,xe.MaskTool,{name:"MaskTool",type:ve.Tool,shortcut:["m"],descTextKey:"DDSAnnotator.shortcuts.tools.mask"}),de()(le,xe.DragTool,{name:"DragTool",type:ve.Tool,shortcut:["d"],descTextKey:"DDSAnnotator.shortcuts.tools.drag"}),de()(le,xe.SmartAnnotation,{name:"SmartAnnotation",type:ve.GeneralAction,shortcut:["a"],descTextKey:"DDSAnnotator.shortcuts.general.smart"}),de()(le,xe.Undo,{name:"Undo",type:ve.GeneralAction,shortcut:["ctrl.z","meta.z"],descTextKey:"DDSAnnotator.shortcuts.general.undo"}),de()(le,xe.Redo,{name:"Redo",type:ve.GeneralAction,shortcut:["ctrl.shift.z","meta.shift.z"],descTextKey:"DDSAnnotator.shortcuts.general.redo"}),de()(le,xe.RepeatPrevious,{name:"RepeatPrevious",type:ve.GeneralAction,shortcut:["r"],descTextKey:"DDSAnnotator.shortcuts.general.repeatPrevious"}),de()(le,xe.DeleteAll,{name:"DeleteAll",type:ve.GeneralAction,shortcut:["ctrl.shift.d","meta.shift.d"],descTextKey:"DDSAnnotator.shortcuts.general.deleteAll"}),de()(le,xe.Save,{name:"Save",type:ve.GeneralAction,shortcut:["ctrl.s","meta.s"],descTextKey:"DDSAnnotator.shortcuts.general.save"}),de()(le,xe.HideCurrObject,{name:"HideCurrObject",type:ve.ViewAction,shortcut:["h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrObject"}),de()(le,xe.HideCurrCategory,{name:"HideCurrCategory",type:ve.ViewAction,shortcut:["ctrl.h","meta.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideCurrCategory"}),de()(le,xe.HideAll,{name:"HideAll",type:ve.ViewAction,shortcut:["ctrl.shift.h","meta.shift.h"],descTextKey:"DDSAnnotator.shortcuts.viewControl.hideAll"}),de()(le,xe.ZoomIn,{name:"ZoomIn",type:ve.ViewAction,shortcut:["equalsign"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomIn"}),de()(le,xe.ZoomOut,{name:"ZoomOut",type:ve.ViewAction,shortcut:["dash"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomOut"}),de()(le,xe.Reset,{name:"Reset",type:ve.ViewAction,shortcut:["0"],descTextKey:"DDSAnnotator.shortcuts.viewControl.zoomReset"}),de()(le,xe.Accept,{name:"Accept",type:ve.GeneralAction,shortcut:["ctrl.a","meta.a"],descTextKey:"DDSAnnotator.shortcuts.general.accept"}),de()(le,xe.Reject,{name:"Reject",type:ve.GeneralAction,shortcut:["ctrl.r","meta.r"],descTextKey:"DDSAnnotator.shortcuts.general.reject"}),de()(le,xe.NextImage,{name:"NextImage",type:ve.ViewAction,shortcut:["rightarrow"],descTextKey:"DDSAnnotator.shortcuts.general.next"}),de()(le,xe.PreviousImage,{name:"PreviousImage",type:ve.ViewAction,shortcut:["leftarrow"],descTextKey:"DDSAnnotator.shortcuts.general.prev"}),de()(le,xe.PanImage,{name:"PanImage",type:ve.ViewAction,shortcut:["Space"],descTextKey:"DDSAnnotator.shortcuts.viewControl.panImage"}),de()(le,xe.SaveCurrObject,{name:"SaveCurrObject",type:ve.AnnotationAction,shortcut:["enter"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.finish"}),de()(le,xe.DeleteCurrObject,{name:"DeleteCurrObject",type:ve.AnnotationAction,shortcut:["Backspace","Delete"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.delete"}),de()(le,xe.CancelCurrObject,{name:"CancelCurrObject",type:ve.AnnotationAction,shortcut:["esc"],descTextKey:"DDSAnnotator.shortcuts.annotsControl.cancel"}),le),pe=function($e){var Ke=$e;switch($e){case"meta":Ke="\u2318";break;case"shift":Ke="\u21E7";break;case"equalsign":case"add":Ke="+";break;case"dash":case"subtract":Ke="-";break;case"leftarrow":Ke="\u2190";break;case"rightarrow":Ke="\u2192";break;default:Ke=$e.toUpperCase();break}return Ke},Je=e(18695),Ae=e(9457),oe=function(tt){return tt.Object="object",tt.Class="class",tt}(oe||{}),ye=function($e,Ke){return(0,z.isEqual)($e.objects,Ke.objects)&&$e.activeObjectIndex===Ke.activeObjectIndex&&$e.supportEdit===Ke.supportEdit&&$e.activeClassName===Ke.activeClassName&&$e.className===Ke.className&&(0,z.isEqual)($e.labelColors,Ke.labelColors)&&$e.onChangeActiveClassName===Ke.onChangeActiveClassName&&$e.onFocusObject===Ke.onFocusObject&&$e.onDeleteObject===Ke.onDeleteObject&&$e.onChangeObjectHidden===Ke.onChangeObjectHidden&&$e.onChangeCategoryHidden===Ke.onChangeCategoryHidden},Be=(0,n.memo)(function(tt){var $e=tt.objects,Ke=tt.labelColors,cn=tt.activeObjectIndex,nn=tt.className,jn=tt.supportEdit,lr=tt.activeClassName,zn=tt.onFocusObject,Yn=tt.onActiveObject,Zr=tt.onChangeObjectHidden,ir=tt.onDeleteObject,Qn=tt.onChangeCategoryHidden,Un=tt.onChangeActiveClassName,Ta=(0,G.bU)(),ha=Ta.localeText,Qt=ha("DDSAnnotator.annotsList.uncategorized"),Re=(0,n.useState)(oe.Class),rt=s()(Re,2),Rt=rt[0],Ut=rt[1],un=function(Ia){Ut(Ia)},In=(0,Ae.w)(),gn=In.height,rn=45,Ur=35,aa=gn-rn-56,da=(0,n.useRef)(null),ua=(0,n.useMemo)(function(){return!$e.some(function(Sa){return!Sa.hidden})},[$e]),Aa=function(){$e.forEach(function(Ia,ia){Zr(ia,!ua)})};(0,he.Z)(Ze[xe.HideAll].shortcut,function(Sa){Sa.preventDefault(),Aa()},{exactMatch:!0});var Oo=(0,n.useMemo)(function(){return $e.reduce(function(Sa,Ia,ia){var oo=Ia.label||Qt;return Sa[oo]||(Sa[oo]=[]),Sa[oo].push(T()(T()({},Ia),{},{originIndex:ia})),Sa},{})},[$e]);(0,n.useEffect)(function(){if(!(cn<0)){var Sa=document.querySelector(".ant-tabs-tabpane-active");if(Rt===oe.Object){var Ia=Sa==null?void 0:Sa.querySelector(".tab-collapse .ant-collapse-item:nth-child(".concat(cn+1,")"));Ia==null||Ia.scrollIntoView({behavior:"smooth",block:"nearest"})}else if(Rt===oe.Class&&Oo[lr]){var ia=Oo[lr].findIndex(function(Sr){return Sr.originIndex===cn});if(ia>-1){var oo;(oo=da.current)===null||oo===void 0||oo.scrollTo({index:ia,align:"auto"})}}}},[cn]);var Co=(0,y.jsx)(ke.Z,{accordion:!0,ghost:!0,className:"tab-collapse",activeKey:lr,children:$e.length>0&&Object.keys(Oo).sort().map(function(Sa){var Ia=Oo[Sa],ia=Ia.every(function(oo){return oo.hidden});return(0,y.jsx)(ke.Z.Panel,{showArrow:!1,header:(0,y.jsxs)("div",{className:S()("collapse-header",{"collapse-header-selected":lr===Sa}),style:{height:rn},onClick:function(){Un(Sa===lr?"":Sa)},children:[lr===Sa&&(0,y.jsx)("div",{className:"selected-line",style:{backgroundColor:Ke[Sa]||"#fff"}}),(0,y.jsx)("div",{className:"label-name",children:Sa}),(0,y.jsxs)("div",{className:"label-actions",children:[(0,y.jsx)("span",{className:"label-count",children:Ia.length}),jn&&(0,y.jsx)(w.Z,{title:ha(ia?"DDSAnnotator.annotsList.showCate":"DDSAnnotator.annotsList.hideCate"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:ia?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:function(Sr){Sr.stopPropagation(),Qn(Sa,!ia)}})}),(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:(0,y.jsx)(ee,{className:"down-arrow"}),shape:"circle"})]})]},Sa),children:lr===Sa&&(0,y.jsx)(He.Z,{children:(0,y.jsx)(Je.Z,{data:Ia,height:aa,fullHeight:!1,itemHeight:Ur,itemKey:"originIndex",ref:da,children:function(Sr,Nr){return(0,y.jsxs)(He.Z.Item,{className:"collapse-item",style:{height:Ur},onMouseOver:function(){zn(Sr.originIndex)},onClick:function(Wr){Wr.stopPropagation(),Yn(Sr.originIndex)},children:[cn===Sr.originIndex&&(0,y.jsx)("div",{className:"color-hint",style:{backgroundColor:Sr.color}}),(0,y.jsx)(Ie.Z,{className:"label-icon",component:m.ef[Sr.type]}),(0,y.jsx)("div",{className:"label",children:Sr.label}),(0,y.jsxs)("div",{className:"label-actions",children:[(0,y.jsx)(w.Z,{title:Sr.hidden?ha("DDSAnnotator.annotsList.show"):ha("DDSAnnotator.annotsList.hide"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:Sr.hidden?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:function(Wr){Wr.stopPropagation(),Zr(Sr.originIndex,!Sr.hidden)}})}),jn&&(0,y.jsx)(y.Fragment,{children:(0,y.jsx)(w.Z,{title:ha("DDSAnnotator.annotsList.delete"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"label-btn",icon:(0,y.jsx)(Se.Z,{}),shape:"circle",onClick:function(Wr){Wr.stopPropagation(),ir(Sr.originIndex)}})})})]})]},Sr.label+Nr)}})})},Sa||Qt)})});return(0,y.jsx)("div",{className:S()("dds-annotator-objectlist",nn),id:"rightOperations",onMouseDown:function(Ia){Ia.stopPropagation()},children:(0,y.jsx)(et.Z,{activeKey:Rt,onChange:un,items:[{key:oe.Class,label:ha("DDSAnnotator.annotsList.categories"),children:Co}],tabBarExtraContent:$e.length>0&&(0,y.jsx)(w.Z,{title:ha(ua?"DDSAnnotator.annotsList.showAll":"DDSAnnotator.annotsList.hideAll"),children:(0,y.jsx)(l.ZP,{ghost:!0,className:"tab-header-actions",icon:ua?(0,y.jsx)(X.Z,{}):(0,y.jsx)(re.Z,{}),shape:"circle",onClick:Aa})})})})},ye),De=e(33181),Pe=Object.defineProperty,we=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ue=(tt,$e,Ke)=>$e in tt?Pe(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,dt=(tt,$e)=>{for(var Ke in $e||($e={}))Le.call($e,Ke)&&Ue(tt,Ke,$e[Ke]);if(we)for(var Ke of we($e))Ye.call($e,Ke)&&Ue(tt,Ke,$e[Ke]);return tt};const bt=tt=>n.createElement("svg",dt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 29 29"},tt),n.createElement("defs",null,n.createElement("style",null,".drag_svg__cls-1{fill:none}.drag_svg__cls-2{fill:#fcfefe}")),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83z"}),n.createElement("path",{className:"drag_svg__cls-1",d:"M2.83 2.83h28.35v28.35H2.83Z"}),n.createElement("path",{className:"drag_svg__cls-2",d:"m21.73 18.19 8.23 4.8-3.51 1 2.51 4.35-2.05 1.18-2.51-4.35-2.63 2.54-.04-9.52z"}),n.createElement("path",{className:"drag_svg__cls-2",d:"M19.37 9.92h2.36v2.36h5.91a1.18 1.18 0 0 1 1.18 1.18v4.73h-2.36v-3.54H14.65v11.81h4.72v2.36h-5.91a1.18 1.18 0 0 1-1.18-1.18v-5.91H9.92v-2.36h2.36v-5.91a1.18 1.18 0 0 1 1.18-1.18h5.91ZM5.2 19.37h2.36v2.36H5.2zM5.2 14.65h2.36v2.36H5.2zM5.2 9.92h2.36v2.36H5.2zM5.2 5.2h2.36v2.36H5.2zM9.92 5.2h2.36v2.36H9.92zM14.65 5.2h2.36v2.36h-2.36zM19.37 5.2h2.36v2.36h-2.36z"}));var ft="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOSAyOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmV9LmNscy0ye2ZpbGw6I2ZjZmVmZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M1oiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Im0yMS43MyAxOC4xOSA4LjIzIDQuOC0zLjUxIDEgMi41MSA0LjM1LTIuMDUgMS4xOC0yLjUxLTQuMzUtMi42MyAyLjU0LS4wNC05LjUyeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTE5LjM3IDkuOTJoMi4zNnYyLjM2aDUuOTFhMS4xOCAxLjE4IDAgMCAxIDEuMTggMS4xOHY0LjczaC0yLjM2di0zLjU0SDE0LjY1djExLjgxaDQuNzJ2Mi4zNmgtNS45MWExLjE4IDEuMTggMCAwIDEtMS4xOC0xLjE4di01LjkxSDkuOTJ2LTIuMzZoMi4zNnYtNS45MWExLjE4IDEuMTggMCAwIDEgMS4xOC0xLjE4aDUuOTFaTTUuMiAxOS4zN2gyLjM2djIuMzZINS4yek01LjIgMTQuNjVoMi4zNnYyLjM2SDUuMnpNNS4yIDkuOTJoMi4zNnYyLjM2SDUuMnpNNS4yIDUuMmgyLjM2djIuMzZINS4yek05LjkyIDUuMmgyLjM2djIuMzZIOS45MnpNMTQuNjUgNS4yaDIuMzZ2Mi4zNmgtMi4zNnpNMTkuMzcgNS4yaDIuMzZ2Mi4zNmgtMi4zNnoiLz48L3N2Zz4=",At=e(85706),Ot=Object.defineProperty,jt=Object.getOwnPropertySymbols,Gt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,Bn=(tt,$e,Ke)=>$e in tt?Ot(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,fn=(tt,$e)=>{for(var Ke in $e||($e={}))Gt.call($e,Ke)&&Bn(tt,Ke,$e[Ke]);if(jt)for(var Ke of jt($e))Xt.call($e,Ke)&&Bn(tt,Ke,$e[Ke]);return tt};const $n=tt=>n.createElement("svg",fn({className:"keyboard_svg__icon",viewBox:"0 0 1152 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M1056 896H96c-53.02 0-96-42.98-96-96V224c0-53.02 42.98-96 96-96h960c53.02 0 96 42.98 96 96v576c0 53.02-42.98 96-96 96zM256 360v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM352 552v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM256 744v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm576 0v-80c0-13.254-10.746-24-24-24H344c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h464c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24z"}));var On="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDExNTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMDU2IDg5Nkg5NmMtNTMuMDIgMC05Ni00Mi45OC05Ni05NlYyMjRjMC01My4wMiA0Mi45OC05NiA5Ni05Nmg5NjBjNTMuMDIgMCA5NiA0Mi45OCA5NiA5NnY1NzZjMCA1My4wMi00Mi45OCA5Ni05NiA5NnpNMjU2IDM2MHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHpNMzUyIDU1MnYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6TTI1NiA3NDR2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em01NzYgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0SDM0NGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg0NjRjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6Ii8+PC9zdmc+",Mn=function($e){for(var Ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,cn=navigator.userAgent.toLowerCase(),nn=cn.indexOf("mac")>-1,jn=[],lr=function(){var ir=$e[zn];if(!nn&&ir.includes("meta")||nn&&ir.includes("ctrl"))return"continue";if(ir.includes(".")){var Qn=ir.split(".");Qn.forEach(function(Ta,ha){var Qt=(0,y.jsx)("span",{className:S()({"dds-annotator-shortcutsinfo-key":Ke}),children:pe(Ta)},ha);jn.push(Qt),ha!==Qn.length-1&&jn.push((0,y.jsxs)("span",{className:S()({"dds-annotator-shortcutsinfo-combine":Ke}),children:[" ","+"," "]},ha+"and"))})}else{var Un=(0,y.jsx)("span",{className:S()({"dds-annotator-shortcutsinfo-key":Ke}),children:pe(ir)},zn);jn.push(Un)}zn!==$e.length-1&&jn.push((0,y.jsxs)("span",{className:S()({"dds-annotator-shortcutsinfo-combine":Ke}),children:[" ","/"," "]},zn+"or"))},zn=0;zn<$e.length;zn++)var Yn=lr();return(0,y.jsx)("span",{children:jn})},_e=(0,n.memo)(function(tt){var $e=tt.viewOnly,Ke=(0,G.bU)(),cn=Ke.localeText,nn=function(zn){var Yn={};for(var Zr in zn)if(zn.hasOwnProperty(Zr)){var ir=zn[Zr],Qn=ir.type,Un=ir.descTextKey,Ta=ir.shortcut,ha=cn(Un);if($e&&Qn!==ve.ViewAction)continue;Yn[Qn]?Yn[Qn].children.push({key:Zr,label:ha,icon:(0,y.jsx)("span",{children:Mn(Ta)})}):Yn[Qn]={key:Qn,type:"group",label:cn(Qn),children:[{key:Zr,label:ha,icon:(0,y.jsx)("span",{children:Mn(Ta)})}]}}return Object.values(Yn)},jn=(0,n.useMemo)(function(){return nn(Ze)||[]},[$e]);return(0,y.jsx)(h.Z,{placement:"bottomLeft",dropdownRender:function(){return(0,y.jsx)(At.Z,{className:"dds-annotator-shortcutsinfo",theme:"dark",items:jn})},trigger:["click"],children:(0,y.jsx)(w.Z,{title:cn("DDSAnnotator.shortcuts"),children:(0,y.jsx)(Ie.Z,{component:$n,style:{color:"#fff",width:24}})})})}),at=(0,n.memo)(function(tt){var $e=tt.selectedTool,Ke=tt.isAIAnnotationActive,cn=tt.onChangeSelectedTool,nn=tt.onActiveAIAnnotation,jn=tt.undo,lr=tt.redo,zn=tt.repeatPrevious,Yn=tt.deleteAll,Zr=(0,G.bU)(),ir=Zr.localeText,Qn=[{key:m.ru.Drag,name:ir("DDSAnnotator.toolbar.drag"),shortcut:Ze[xe.DragTool],icon:(0,y.jsx)(Ie.Z,{component:bt}),description:ir("DDSAnnotator.toolbar.drag.desc")},{key:m.ru.Rectangle,name:ir("DDSAnnotator.toolbar.rectangle"),shortcut:Ze[xe.RectangleTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Rectangle]}),description:ir("DDSAnnotator.toolbar.rectangle.desc")},{key:m.ru.Polygon,name:ir("DDSAnnotator.toolbar.polygon"),shortcut:Ze[xe.PolygonTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Polygon]}),description:ir("DDSAnnotator.toolbar.polygon.desc")},{key:m.ru.Skeleton,name:ir("DDSAnnotator.toolbar.skeleton"),shortcut:Ze[xe.SkeletonTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Skeleton]}),description:ir("DDSAnnotator.toolbar.skeleton.desc")},{key:m.ru.Mask,name:ir("DDSAnnotator.toolbar.mask"),shortcut:Ze[xe.MaskTool],icon:(0,y.jsx)(Ie.Z,{component:m.ef[m.gr.Mask]}),description:ir("DDSAnnotator.toolbar.mask.desc")}],Un=[{key:m.Uu.SmartAnnotation,name:ir("DDSAnnotator.toolbar.aiAnno"),shortcut:Ze[xe.SmartAnnotation],icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.SmartAnnotation]}),description:ir("DDSAnnotator.toolbar.aiAnno.desc")}],Ta=[{key:m.Uu.Undo,name:ir("DDSAnnotator.toolbar.undo"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.Undo]}),shortcut:Ze[xe.Undo],handler:jn,description:ir("DDSAnnotator.toolbar.undo.desc")},{key:m.Uu.Redo,name:ir("DDSAnnotator.toolbar.redo"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.Redo]}),shortcut:Ze[xe.Redo],handler:lr,description:ir("DDSAnnotator.toolbar.redo.desc")},{key:m.Uu.RepeatPrevious,name:ir("DDSAnnotator.toolbar.repeatPrevious"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.RepeatPrevious]}),shortcut:Ze[xe.RepeatPrevious],handler:zn,description:ir("DDSAnnotator.toolbar.repeatPrevious.desc")},{key:m.Uu.DeleteAll,name:ir("DDSAnnotator.toolbar.deleteAll"),icon:(0,y.jsx)(Ie.Z,{component:m.QD[m.Uu.DeleteAll]}),shortcut:Ze[xe.DeleteAll],handler:Yn,description:ir("DDSAnnotator.toolbar.deleteAll.desc")}],ha=(0,n.useMemo)(function(){return Qn.reduce(function(rt,Rt){return rt.concat(Rt.shortcut.shortcut)},[])},[Qn]),Qt=(0,n.useMemo)(function(){return Un.reduce(function(rt,Rt){return rt.concat(Rt.shortcut.shortcut)},[])},[Ta]);(0,he.Z)(ha,function(rt){var Rt=Qn.find(function(Ut){return Ut.shortcut.shortcut.includes(rt.key)});Rt&&cn(Rt.key)},{exactMatch:!0}),(0,he.Z)(Qt,function(rt){var Rt=Un.find(function(Ut){return Ut.shortcut.shortcut.includes(rt.key)});Rt&&nn(!Ke)},{exactMatch:!0}),(0,he.Z)(Ze[xe.Undo].shortcut,function(rt){rt.preventDefault(),jn()},{exactMatch:!0}),(0,he.Z)(Ze[xe.Redo].shortcut,function(rt){rt.preventDefault(),lr()},{exactMatch:!0}),(0,he.Z)(Ze[xe.RepeatPrevious].shortcut,function(rt){rt.preventDefault(),zn()},{exactMatch:!0}),(0,he.Z)(Ze[xe.DeleteAll].shortcut,function(rt){rt.preventDefault(),Yn()},{exactMatch:!0});var Re=function(Rt){var Ut=Mn(Rt.shortcut.shortcut,!1);return(0,y.jsxs)("div",{className:"dds-annotator-maintoolbar-popover",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"popover-title",children:Rt.name}),(0,y.jsx)("span",{className:"popover-key",children:Ut})]}),(0,y.jsx)("div",{className:"popover-divider"}),(0,y.jsx)("div",{className:"popover-description",children:Rt.description})]})};return(0,y.jsx)(wt,{children:(0,y.jsxs)("div",{className:"dds-annotator-maintoolbar",children:[Qn.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Re(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn",{"maintoolbar-btn-active":$e===rt.key}),icon:rt.icon,onClick:function(){return cn(rt.key)}})},rt.key)}),(0,y.jsx)("div",{className:"maintoolbar-divider"}),Un.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Re(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn",{"maintoolbar-btn-active":Ke}),icon:rt.icon,onClick:function(){return nn(!Ke)}})},rt.key)}),(0,y.jsx)("div",{className:"maintoolbar-divider"}),Ta.map(function(rt){return(0,y.jsx)(De.Z,{placement:"right",content:Re(rt),children:(0,y.jsx)(l.ZP,{className:S()("maintoolbar-btn"),icon:rt.icon,onClick:rt.handler})},rt.key)})]})})}),Vt=e(52495),an=e(38875),st=e(59504),ut=e(18624),$t=e(94706),nt=e(57414),mt=e(12673),Dt=e(21149),Cn=(0,n.memo)(function(tt){var $e=tt.onAdd,Ke=(0,G.bU)(),cn=Ke.localeText,nn=(0,n.useRef)(null),jn=(0,n.useState)(""),lr=s()(jn,2),zn=lr[0],Yn=lr[1],Zr=function(Un){Un.stopPropagation(),Yn(Un.target.value)},ir=function(){var Un;zn!==""&&($e(zn),Yn(""),(Un=nn.current)===null||Un===void 0||Un.focus())};return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(v.Z,{style:{margin:"8px 0"}}),(0,y.jsxs)(nt.Z,{style:{padding:"0 8px 4px"},children:[(0,y.jsx)(Dt.Z,{placeholder:cn("DDSAnnotator.annotsEditor.addCategory"),ref:nn,value:zn,onChange:Zr,onKeyDown:function(Un){Un.code==="Enter"&&ir(),Un.stopPropagation()}}),(0,y.jsx)(l.ZP,{type:"text",icon:(0,y.jsx)(mt.Z,{}),onClick:ir,children:cn("DDSAnnotator.annotsEditor.add")})]})]})}),en=Cn,Hn=Object.defineProperty,Rn=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,gr=Object.prototype.propertyIsEnumerable,Or=(tt,$e,Ke)=>$e in tt?Hn(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,ar=(tt,$e)=>{for(var Ke in $e||($e={}))pr.call($e,Ke)&&Or(tt,Ke,$e[Ke]);if(Rn)for(var Ke of Rn($e))gr.call($e,Ke)&&Or(tt,Ke,$e[Ke]);return tt};const mr=tt=>n.createElement("svg",ar({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M23.737 13.118v7.764a6.713 6.713 0 0 1-6.706 6.707 6.713 6.713 0 0 1-6.705-6.707v-7.764a6.713 6.713 0 0 1 6.705-6.707 6.713 6.713 0 0 1 6.706 6.707Zm-.693 3.662H11.018v4.102a6.02 6.02 0 0 0 6.013 6.017 6.02 6.02 0 0 0 6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 0-5.698-6.008v8.977h5.698v-2.969Z",fill:"#fff"}));var qr="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMuNzM3IDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMS02LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMS02LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDEgNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDEgNi43MDYgNi43MDdabS0uNjkzIDMuNjYySDExLjAxOHY0LjEwMmE2LjAyIDYuMDIgMCAwIDAgNi4wMTMgNi4wMTcgNi4wMiA2LjAyIDAgMCAwIDYuMDEzLTYuMDE3VjE2Ljc4Wm0wLTMuNjYyYTYuMDIgNi4wMiAwIDAgMC01LjY5OC02LjAwOHY4Ljk3N2g1LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",Pr=Object.defineProperty,Vn=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,sn=(tt,$e,Ke)=>$e in tt?Pr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,tn=(tt,$e)=>{for(var Ke in $e||($e={}))zt.call($e,Ke)&&sn(tt,Ke,$e[Ke]);if(Vn)for(var Ke of Vn($e))Ft.call($e,Ke)&&sn(tt,Ke,$e[Ke]);return tt};const kt=tt=>n.createElement("svg",tn({width:32,height:32,viewBox:"0 0 34 34",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M10.263 13.118v7.764a6.713 6.713 0 0 0 6.706 6.707 6.713 6.713 0 0 0 6.705-6.707v-7.764a6.713 6.713 0 0 0-6.705-6.707 6.713 6.713 0 0 0-6.706 6.707Zm.693 3.662h12.026v4.102a6.02 6.02 0 0 1-6.013 6.017 6.02 6.02 0 0 1-6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 1 5.698-6.008v8.977h-5.698v-2.969Z",fill:"#fff"}));var hn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMjYzIDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDAtNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDAtNi43MDYgNi43MDdabS42OTMgMy42NjJoMTIuMDI2djQuMTAyYTYuMDIgNi4wMiAwIDAgMS02LjAxMyA2LjAxNyA2LjAyIDYuMDIgMCAwIDEtNi4wMTMtNi4wMTdWMTYuNzhabTAtMy42NjJhNi4wMiA2LjAyIDAgMCAxIDUuNjk4LTYuMDA4djguOTc3aC01LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+",dn=(0,n.memo)(function(tt){var $e,Ke=tt.selectedTool,cn=tt.selectedSubTool,nn=tt.AIAnnotation,jn=tt.hasPolygonPreds,lr=tt.isBatchEditing,zn=tt.isCtrlPressed,Yn=tt.aiLabels,Zr=tt.categories,ir=tt.naturalSize,Qn=tt.limitConf,Un=tt.setAiLabels,Ta=tt.onCreateCategory,ha=tt.onExitAIAnnotation,Qt=tt.onAiAnnotation,Re=tt.onSaveAIPolygon,rt=tt.onCancelAIPolygon,Rt=tt.onChangeConfidenceRange,Ut=tt.onChangeLimitConf,un=tt.onAcceptValidObjects,In=tt.onCancelBatchEdit,gn=tt.forceChangeTool,rn=(0,G.bU)(),Ur=rn.localeText,aa=(0,C.x)({predIouThresh:.89,pointsPerSide:32,minMaskRegionArea:300}),da=s()(aa,2),ua=da[0],Aa=da[1],Oo=($e={},de()($e,m.ru.Drag,{name:Ur("DDSAnnotator.shortcuts.tools.drag"),icon:bt}),de()($e,m.ru.Rectangle,{name:Ur("DDSAnnotator.smart.detection.name"),icon:m.ef[m.gr.Rectangle]}),de()($e,m.ru.Polygon,{name:Ur("DDSAnnotator.smart.segmentation.name"),icon:m.ef[m.gr.Polygon]}),de()($e,m.ru.Skeleton,{name:Ur("DDSAnnotator.smart.pose.name"),icon:m.ef[m.gr.Skeleton]}),de()($e,m.ru.Mask,{name:Ur("DDSAnnotator.smart.mask.name"),icon:m.ef[m.gr.Mask]}),$e),Co=(0,n.useMemo)(function(){if(Ke===m.ru.Rectangle)return Zr==null?void 0:Zr.map(function(Nr){return(0,y.jsx)(st.Z.Option,{value:Nr.name,children:Nr.name},Nr.id)});if(Ke===m.ru.Polygon)return[];if(Ke===m.ru.Skeleton)return["person"].map(function(Nr){return(0,y.jsx)(st.Z.Option,{value:Nr,children:Nr},Nr)})},[Ke,Zr]),Sa=function(Da){if(Da.type==="mouseup"&&(Ke===m.ru.Skeleton||Ke===m.ru.Mask&&cn===m.jB.AutoSegmentEverything||Ke===m.ru.Rectangle)){Da.preventDefault();return}else Da.stopPropagation()},Ia=(0,n.useMemo)(function(){return!(!nn||Ke===m.ru.Drag||Ke===m.ru.Mask&&cn!==m.jB.AutoSegmentEverything||Ke===m.ru.Rectangle&&lr&&zn)},[Ke,cn,nn,lr,zn]),ia=function(){un(),gn(m.ru.Drag,m.jB.PenAdd)},oo=(0,n.useMemo)(function(){return lr&&zn?[{text:Ur("DDSAnnotator.smart.tip.recover"),logo:(0,y.jsx)(mr,{})},{text:Ur("DDSAnnotator.smart.tip.overlayobject"),logo:(0,y.jsx)(kt,{})}]:[]},[lr,zn]),Sr=(0,n.useMemo)(function(){return ir.width*ir.height},[ir]);return(0,y.jsxs)(wt,{eventHandler:Sa,children:[oo.length>0&&(0,y.jsx)("div",{className:"dds-annotator-operation-tip",children:oo.map(function(Nr){return(0,y.jsxs)("div",{className:"dds-annotator-operation-tip-item",children:[(0,y.jsx)("span",{children:Nr.text}),Nr.logo]},Nr.text)})}),(0,y.jsx)(ut.Z,{id:"smart-annotation-editor",className:S()("dds-annotator-smart-container",{"dds-annotator-smart-container-visible":Ia}),title:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-title",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-title-icon",children:[(0,y.jsx)(an.Z,{component:m.QD[m.Uu.SmartAnnotation]}),(0,y.jsx)("div",{children:Oo[Ke].name})]}),(0,y.jsx)(l.ZP,{ghost:!0,className:"dds-annotator-smart-container-btn",icon:(0,y.jsx)(Vt.Z,{}),shape:"circle",size:"small",onClick:function(){ha(),gn(Ke,m.jB.PenAdd)}})]}),children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content",children:[Ke===m.ru.Rectangle&&(lr?(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-column-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:[Ur("DDSAnnotator.smart.detection.confidence"),":"]}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",defaultValue:Qn,min:0,max:1,step:.01,onAfterChange:Ut,railStyle:{background:"#99bdff"},trackStyle:{background:"#edf0f3"}})]})}),(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-tip-text",children:[(0,y.jsxs)("span",{children:[Ur("DDSAnnotator.smart.tip"),": "]}),Ur("DDSAnnotator.smart.tip.ctrl")]}),(0,y.jsxs)("div",{style:{alignSelf:"flex-end"},children:[(0,y.jsx)(l.ZP,{style:{marginRight:"10px"},onClick:In,children:Ur("DDSAnnotator.smart.back")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:un,children:Ur("DDSAnnotator.save")})]})]}):(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-item",children:[(0,y.jsx)(st.Z,{style:{width:250},placeholder:Ur("DDSAnnotator.smart.detection.input"),showArrow:!0,value:Yn,onChange:function(Da){return Array.isArray(Da)?Un(Da):Un([Da])},onInputKeyDown:function(Da){Da.code!=="Enter"&&Da.stopPropagation()},getPopupContainer:function(){return document.getElementById("smart-annotation-editor")},mode:"multiple",dropdownRender:function(Da){return(0,y.jsxs)(y.Fragment,{children:[Da,(0,y.jsx)(en,{onAdd:function(Qr){Ta(Qr),Un([].concat(t()(Yn),[Qr]))}})]})},children:Co}),(0,y.jsx)(l.ZP,{type:"primary",onClick:function(){return Qt({aiLabels:Yn})},children:Ur("DDSAnnotator.smart.annotate")})]})),Ke===m.ru.Skeleton&&(lr?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Ur("DDSAnnotator.confidence")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",range:!0,defaultValue:[0,100],onAfterChange:function(Da){return Rt([Da[0]/100,Da[1]/100])},tooltip:{formatter:function(Da){return(0,y.jsx)(y.Fragment,{children:"".concat(Da/100)})},getPopupContainer:function(){return document.getElementById("conf-slider")}}})]})}),(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:un,children:Ur("DDSAnnotator.save")})]}):(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-controls",children:(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Ur("DDSAnnotator.smart.modelTyle")}),(0,y.jsx)(st.Z,{className:"dds-annotator-smart-container-content-param-item-select",placeholder:Ur("DDSAnnotator.smart.pose.input"),showArrow:!0,value:Yn,onChange:function(Da){return Array.isArray(Da)?Un(Da):Un([Da])},onInputKeyDown:function(Da){Da.code!=="Enter"&&Da.stopPropagation()},getPopupContainer:function(){return document.getElementById("smart-annotation-editor")},children:Co})]})}),(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return Qt({aiLabels:Yn})},children:Ur("DDSAnnotator.smart.annotate")})]})),Ke===m.ru.Polygon&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-instruction",children:Ur(jn?"DDSAnnotator.smart.segmentation.tipsNext":"DDSAnnotator.smart.segmentation.tipsInitial")}),jn&&(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-actions",children:[(0,y.jsx)(l.ZP,{danger:!0,onClick:rt,children:Ur("DDSAnnotator.delete")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:Re,children:Ur("DDSAnnotator.save")})]})]}),Ke===m.ru.Mask&&cn===m.jB.AutoSegmentEverything&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)("div",{id:"param-controls",className:"dds-annotator-smart-container-content-param-controls",children:[(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Ur("DDSAnnotator.smart.iouThres")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:1-ua.predIouThresh,onChange:function(Da){return Aa(function(Wr){Wr.predIouThresh=1-Da})},min:0,max:.99,step:.01,reverse:!0,tooltip:{formatter:function(Da){return"".concat(Math.floor((1-Da)*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]}),(0,y.jsxs)("div",{className:"dds-annotator-smart-container-content-param-item",children:[(0,y.jsx)("div",{className:"dds-annotator-smart-container-content-param-item-title",children:Ur("DDSAnnotator.smart.minArea")}),(0,y.jsx)($t.Z,{className:"dds-annotator-smart-container-content-param-item-slider",value:ua.minMaskRegionArea/Sr,onChange:function(Da){return Aa(function(Wr){Wr.minMaskRegionArea=Da*Sr})},min:.01,max:.3,step:.01,tooltip:{formatter:function(Da){return"".concat(Math.ceil(Da*100),"%")},getPopupContainer:function(){return document.getElementById("param-controls")}}})]})]}),lr?(0,y.jsxs)(nt.Z,{className:"dds-annotator-smart-container-content-actions",style:{justifyContent:"flex-end"},children:[(0,y.jsx)(l.ZP,{onClick:function(){return Qt({segmentEverythingParams:ua})},children:Ur("DDSAnnotator.smart.retry")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:ia,children:Ur("DDSAnnotator.annotsEditor.finish")})]}):(0,y.jsx)(l.ZP,{style:{alignSelf:"flex-end"},type:"primary",onClick:function(){return Qt({segmentEverythingParams:ua})},children:Ur("DDSAnnotator.smart.annotate")})]})]})})]})}),Fn=dn,tr=e(2528),ct=e(98030),lt=Object.defineProperty,xt=Object.getOwnPropertySymbols,St=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,_t=(tt,$e,Ke)=>$e in tt?lt(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Wt=(tt,$e)=>{for(var Ke in $e||($e={}))St.call($e,Ke)&&_t(tt,Ke,$e[Ke]);if(xt)for(var Ke of xt($e))Nt.call($e,Ke)&&_t(tt,Ke,$e[Ke]);return tt};const yn=tt=>n.createElement("svg",Wt({className:"imgSetting_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M512 256a42.667 42.667 0 0 0 42.667-42.667V128a42.667 42.667 0 0 0-85.334 0v85.333A42.667 42.667 0 0 0 512 256zm384 213.333h-85.333a42.667 42.667 0 0 0 0 85.334H896a42.667 42.667 0 0 0 0-85.334zM256 512a42.667 42.667 0 0 0-42.667-42.667H128a42.667 42.667 0 0 0 0 85.334h85.333A42.667 42.667 0 0 0 256 512zm9.387-298.667a42.667 42.667 0 0 0-59.307 62.72l61.44 59.307a42.667 42.667 0 0 0 31.147 11.947 42.667 42.667 0 0 0 30.72-13.227 42.667 42.667 0 0 0 0-60.16zm459.946 133.974a42.667 42.667 0 0 0 29.44-11.947l61.44-59.307a42.667 42.667 0 0 0-57.6-62.72l-61.44 60.587a42.667 42.667 0 0 0 0 60.16 42.667 42.667 0 0 0 28.16 13.227zM512 768a42.667 42.667 0 0 0-42.667 42.667V896a42.667 42.667 0 0 0 85.334 0v-85.333A42.667 42.667 0 0 0 512 768zm244.48-79.36a42.667 42.667 0 0 0-59.307 61.44l61.44 60.587a42.667 42.667 0 0 0 29.44 11.946 42.667 42.667 0 0 0 30.72-12.8 42.667 42.667 0 0 0 0-60.586zm-488.96 0-61.44 59.307a42.667 42.667 0 0 0 0 60.586 42.667 42.667 0 0 0 30.72 12.8 42.667 42.667 0 0 0 28.587-10.666l61.44-59.307a42.667 42.667 0 0 0-59.307-61.44zM512 341.333A170.667 170.667 0 1 0 682.667 512 170.667 170.667 0 0 0 512 341.333z",fill:"#fff"}));var kn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMjU2YTQyLjY2NyA0Mi42NjcgMCAwIDAgNDIuNjY3LTQyLjY2N1YxMjhhNDIuNjY3IDQyLjY2NyAwIDAgMC04NS4zMzQgMHY4NS4zMzNBNDIuNjY3IDQyLjY2NyAwIDAgMCA1MTIgMjU2em0zODQgMjEzLjMzM2gtODUuMzMzYTQyLjY2NyA0Mi42NjcgMCAwIDAgMCA4NS4zMzRIODk2YTQyLjY2NyA0Mi42NjcgMCAwIDAgMC04NS4zMzR6TTI1NiA1MTJhNDIuNjY3IDQyLjY2NyAwIDAgMC00Mi42NjctNDIuNjY3SDEyOGE0Mi42NjcgNDIuNjY3IDAgMCAwIDAgODUuMzM0aDg1LjMzM0E0Mi42NjcgNDIuNjY3IDAgMCAwIDI1NiA1MTJ6bTkuMzg3LTI5OC42NjdhNDIuNjY3IDQyLjY2NyAwIDAgMC01OS4zMDcgNjIuNzJsNjEuNDQgNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAgMzEuMTQ3IDExLjk0NyA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEzLjIyNyA0Mi42NjcgNDIuNjY3IDAgMCAwIDAtNjAuMTZ6bTQ1OS45NDYgMTMzLjk3NGE0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0LTExLjk0N2w2MS40NC01OS4zMDdhNDIuNjY3IDQyLjY2NyAwIDAgMC01Ny42LTYyLjcybC02MS40NCA2MC41ODdhNDIuNjY3IDQyLjY2NyAwIDAgMCAwIDYwLjE2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMjguMTYgMTMuMjI3ek01MTIgNzY4YTQyLjY2NyA0Mi42NjcgMCAwIDAtNDIuNjY3IDQyLjY2N1Y4OTZhNDIuNjY3IDQyLjY2NyAwIDAgMCA4NS4zMzQgMHYtODUuMzMzQTQyLjY2NyA0Mi42NjcgMCAwIDAgNTEyIDc2OHptMjQ0LjQ4LTc5LjM2YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3IDYxLjQ0bDYxLjQ0IDYwLjU4N2E0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0IDExLjk0NiA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEyLjggNDIuNjY3IDQyLjY2NyAwIDAgMCAwLTYwLjU4NnptLTQ4OC45NiAwLTYxLjQ0IDU5LjMwN2E0Mi42NjcgNDIuNjY3IDAgMCAwIDAgNjAuNTg2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMzAuNzIgMTIuOCA0Mi42NjcgNDIuNjY3IDAgMCAwIDI4LjU4Ny0xMC42NjZsNjEuNDQtNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3LTYxLjQ0ek01MTIgMzQxLjMzM0ExNzAuNjY3IDE3MC42NjcgMCAxIDAgNjgyLjY2NyA1MTIgMTcwLjY2NyAxNzAuNjY3IDAgMCAwIDUxMiAzNDEuMzMzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",hr=Object.defineProperty,cr=Object.getOwnPropertySymbols,Dn=Object.prototype.hasOwnProperty,Rr=Object.prototype.propertyIsEnumerable,or=(tt,$e,Ke)=>$e in tt?hr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Gr=(tt,$e)=>{for(var Ke in $e||($e={}))Dn.call($e,Ke)&&or(tt,Ke,$e[Ke]);if(cr)for(var Ke of cr($e))Rr.call($e,Ke)&&or(tt,Ke,$e[Ke]);return tt};const Ir=tt=>n.createElement("svg",Gr({className:"palette_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:16,height:16},tt),n.createElement("path",{d:"M512 102.39c-226.202 0-409.6 183.367-409.6 409.6S285.798 921.62 512 921.62a408.556 408.556 0 0 0 156.672-31.2 68.332 68.332 0 0 0 22.16-111.402l-48.057-48.056a68.28 68.28 0 0 1 48.261-116.542l162.304-.04a68.26 68.26 0 0 0 68.27-68.26v-34.13c-.01-226.243-183.378-409.6-409.61-409.6zm341.33 443.73-162.304.03c-75.305 0-136.53 61.225-136.53 136.53 0 36.485 14.203 70.738 39.997 96.543l48.067 48.056a338.166 338.166 0 0 1-130.57 26.082c-188.201 0-341.33-153.14-341.33-341.371S323.799 170.65 512 170.65s341.33 153.098 341.33 341.33v34.14z",fill:"#fff"}),n.createElement("path",{d:"M443.73 307.19a68.27 68.27 0 1 0 136.54 0 68.27 68.27 0 1 0-136.54 0ZM300.503 555.254a68.198 68.198 0 0 1 93.225 24.996 68.3 68.3 0 0 1-24.934 93.266 68.352 68.352 0 0 1-93.297-24.996 68.321 68.321 0 0 1 25.006-93.266zM621.056 409.59a68.29 68.29 0 1 0 136.581 0 68.29 68.29 0 1 0-136.581 0ZM300.503 468.716a68.26 68.26 0 0 1-24.965-93.266 68.25 68.25 0 1 1 118.2 68.239 68.27 68.27 0 0 1-93.235 25.027z",fill:"#fff"}));var Pn="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMTAyLjM5Yy0yMjYuMjAyIDAtNDA5LjYgMTgzLjM2Ny00MDkuNiA0MDkuNlMyODUuNzk4IDkyMS42MiA1MTIgOTIxLjYyYTQwOC41NTYgNDA4LjU1NiAwIDAgMCAxNTYuNjcyLTMxLjIgNjguMzMyIDY4LjMzMiAwIDAgMCAyMi4xNi0xMTEuNDAybC00OC4wNTctNDguMDU2YTY4LjI4IDY4LjI4IDAgMCAxIDQ4LjI2MS0xMTYuNTQybDE2Mi4zMDQtLjA0YTY4LjI2IDY4LjI2IDAgMCAwIDY4LjI3LTY4LjI2di0zNC4xM2MtLjAxLTIyNi4yNDMtMTgzLjM3OC00MDkuNi00MDkuNjEtNDA5LjZ6bTM0MS4zMyA0NDMuNzMtMTYyLjMwNC4wM2MtNzUuMzA1IDAtMTM2LjUzIDYxLjIyNS0xMzYuNTMgMTM2LjUzIDAgMzYuNDg1IDE0LjIwMyA3MC43MzggMzkuOTk3IDk2LjU0M2w0OC4wNjcgNDguMDU2YTMzOC4xNjYgMzM4LjE2NiAwIDAgMS0xMzAuNTcgMjYuMDgyYy0xODguMjAxIDAtMzQxLjMzLTE1My4xNC0zNDEuMzMtMzQxLjM3MVMzMjMuNzk5IDE3MC42NSA1MTIgMTcwLjY1czM0MS4zMyAxNTMuMDk4IDM0MS4zMyAzNDEuMzN2MzQuMTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTQ0My43MyAzMDcuMTlhNjguMjcgNjguMjcgMCAxIDAgMTM2LjU0IDAgNjguMjcgNjguMjcgMCAxIDAtMTM2LjU0IDBaTTMwMC41MDMgNTU1LjI1NGE2OC4xOTggNjguMTk4IDAgMCAxIDkzLjIyNSAyNC45OTYgNjguMyA2OC4zIDAgMCAxLTI0LjkzNCA5My4yNjYgNjguMzUyIDY4LjM1MiAwIDAgMS05My4yOTctMjQuOTk2IDY4LjMyMSA2OC4zMjEgMCAwIDEgMjUuMDA2LTkzLjI2NnpNNjIxLjA1NiA0MDkuNTlhNjguMjkgNjguMjkgMCAxIDAgMTM2LjU4MSAwIDY4LjI5IDY4LjI5IDAgMSAwLTEzNi41ODEgMFpNMzAwLjUwMyA0NjguNzE2YTY4LjI2IDY4LjI2IDAgMCAxLTI0Ljk2NS05My4yNjYgNjguMjUgNjguMjUgMCAxIDEgMTE4LjIgNjguMjM5IDY4LjI3IDY4LjI3IDAgMCAxLTkzLjIzNSAyNS4wMjd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",vn=Object.defineProperty,Nn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,$r=(tt,$e,Ke)=>$e in tt?vn(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Kr=(tt,$e)=>{for(var Ke in $e||($e={}))Zn.call($e,Ke)&&$r(tt,Ke,$e[Ke]);if(Nn)for(var Ke of Nn($e))yr.call($e,Ke)&&$r(tt,Ke,$e[Ke]);return tt};const ra=tt=>n.createElement("svg",Kr({className:"displayReset_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},tt),n.createElement("path",{d:"m193.07 70.353 5.423.931a34.91 34.91 0 0 1 28.37 40.425l-.024.07-12.87 72.541A448.698 448.698 0 0 1 507.857 75.38c246.831 0 447.023 197.912 447.023 442.182S754.688 959.744 507.857 959.744c-160.186 0-305.687-84.084-385.466-218.159a37.795 37.795 0 0 1 13.359-51.921 38.167 38.167 0 0 1 52.154 13.289c66.21 111.243 186.903 180.992 319.953 180.992 204.87 0 370.851-164.096 370.851-366.383S712.728 151.18 507.858 151.18c-107.288 0-206.802 45.265-276.318 121.995H373.04a34.91 34.91 0 0 1 0 69.818H163.584c-2.607 0-5.19-.279-7.657-.837a34.63 34.63 0 0 1-5.26-.512l-5.422-.931a34.91 34.91 0 0 1-28.346-40.495l35.77-201.588a34.91 34.91 0 0 1 40.402-28.277z",fill:"#fff"}));var Xr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0ibTE5My4wNyA3MC4zNTMgNS40MjMuOTMxYTM0LjkxIDM0LjkxIDAgMCAxIDI4LjM3IDQwLjQyNWwtLjAyNC4wNy0xMi44NyA3Mi41NDFBNDQ4LjY5OCA0NDguNjk4IDAgMCAxIDUwNy44NTcgNzUuMzhjMjQ2LjgzMSAwIDQ0Ny4wMjMgMTk3LjkxMiA0NDcuMDIzIDQ0Mi4xODJTNzU0LjY4OCA5NTkuNzQ0IDUwNy44NTcgOTU5Ljc0NGMtMTYwLjE4NiAwLTMwNS42ODctODQuMDg0LTM4NS40NjYtMjE4LjE1OWEzNy43OTUgMzcuNzk1IDAgMCAxIDEzLjM1OS01MS45MjEgMzguMTY3IDM4LjE2NyAwIDAgMSA1Mi4xNTQgMTMuMjg5YzY2LjIxIDExMS4yNDMgMTg2LjkwMyAxODAuOTkyIDMxOS45NTMgMTgwLjk5MiAyMDQuODcgMCAzNzAuODUxLTE2NC4wOTYgMzcwLjg1MS0zNjYuMzgzUzcxMi43MjggMTUxLjE4IDUwNy44NTggMTUxLjE4Yy0xMDcuMjg4IDAtMjA2LjgwMiA0NS4yNjUtMjc2LjMxOCAxMjEuOTk1SDM3My4wNGEzNC45MSAzNC45MSAwIDAgMSAwIDY5LjgxOEgxNjMuNTg0Yy0yLjYwNyAwLTUuMTktLjI3OS03LjY1Ny0uODM3YTM0LjYzIDM0LjYzIDAgMCAxLTUuMjYtLjUxMmwtNS40MjItLjkzMWEzNC45MSAzNC45MSAwIDAgMS0yOC4zNDYtNDAuNDk1bDM1Ljc3LTIwMS41ODhhMzQuOTEgMzQuOTEgMCAwIDEgNDAuNDAyLTI4LjI3N3oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",Fr=Object.defineProperty,xa=Object.getOwnPropertySymbols,la=Object.prototype.hasOwnProperty,Tn=Object.prototype.propertyIsEnumerable,xn=(tt,$e,Ke)=>$e in tt?Fr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Gn=(tt,$e)=>{for(var Ke in $e||($e={}))la.call($e,Ke)&&xn(tt,Ke,$e[Ke]);if(xa)for(var Ke of xa($e))Tn.call($e,Ke)&&xn(tt,Ke,$e[Ke]);return tt};const Lr=tt=>n.createElement("svg",Gn({className:"zoomResize_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:200,height:200},tt),n.createElement("path",{d:"M981.333 42.667v938.666H42.667V42.667h938.666zM128 896h768V128H128v768zm170.667-170.667H448v85.334H213.333V576h85.334v149.333zm426.666-426.666H576v-85.334h234.667V448h-85.334V298.667z",fill:"#fff"}));var zr="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk4MS4zMzMgNDIuNjY3djkzOC42NjZINDIuNjY3VjQyLjY2N2g5MzguNjY2ek0xMjggODk2aDc2OFYxMjhIMTI4djc2OHptMTcwLjY2Ny0xNzAuNjY3SDQ0OHY4NS4zMzRIMjEzLjMzM1Y1NzZoODUuMzM0djE0OS4zMzN6bTQyNi42NjYtNDI2LjY2Nkg1NzZ2LTg1LjMzNGgyMzQuNjY3VjQ0OGgtODUuMzM0VjI5OC42Njd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+",Br=(0,n.memo)(function(tt){var $e=tt.scale,Ke=tt.displayOption,cn=tt.colorByCategory,nn=tt.onZoomIn,jn=tt.onZoomOut,lr=tt.onReset,zn=tt.onChangeImageDisplayOpts,Yn=tt.onChangeAnnotsDisplayOpts,Zr=(0,G.bU)(),ir=Zr.localeText,Qn=$e>=m.Fv,Un=$e<=m.vL;(0,he.Z)(Ze[xe.ZoomIn].shortcut,function(){Qn||nn()}),(0,he.Z)(Ze[xe.ZoomOut].shortcut,function(){Un||jn()}),(0,he.Z)(Ze[xe.Reset].shortcut,function(){lr()});var Ta=(0,n.useMemo)(function(){return(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container",children:[(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-header",children:[(0,y.jsx)("div",{children:ir("DDSAnnotator.imgDisplayTool.title")}),(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-pop-container-btn",icon:(0,y.jsx)(Ie.Z,{component:ra}),onClick:function(){return zn(k.O4)}})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:ir("DDSAnnotator.imgDisplayTool.brightness")}),(0,y.jsx)($t.Z,{value:Ke.brightness,onChange:function(rt){return zn(T()(T()({},Ke),{},{brightness:rt}))},min:0,max:200})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:ir("DDSAnnotator.imgDisplayTool.contrast")}),(0,y.jsx)($t.Z,{value:Ke.contrast,onChange:function(rt){return zn(T()(T()({},Ke),{},{contrast:rt}))},min:0,max:200})]}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-pop-container-option",children:[(0,y.jsx)("label",{children:ir("DDSAnnotator.imgDisplayTool.saturate")}),(0,y.jsx)($t.Z,{value:Ke.saturate,onChange:function(rt){return zn(T()(T()({},Ke),{},{saturate:rt}))},min:0,max:200})]})]})},[Ke.brightness,Ke.contrast,Ke.saturate,zn,Yn]),ha=function(rt){rt.type!=="mouseup"&&rt.stopPropagation()},Qt=function(){Yn({colorByCategory:!cn})};return(0,y.jsx)(wt,{eventHandler:ha,children:(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar",children:[(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-disabled":Un}),icon:(0,y.jsx)(tr.Z,{}),onClick:jn}),(0,y.jsxs)("div",{className:"dds-annotator-scaletoolbar-scale-text",children:[Math.floor($e*100),"%"]}),(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-disabled":Qn}),icon:(0,y.jsx)(ct.Z,{}),onClick:nn}),(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-btn",onClick:lr,icon:(0,y.jsx)(Ie.Z,{component:Lr})}),(0,y.jsx)(De.Z,{placement:"top",content:Ta,trigger:"click",overlayClassName:"dds-annotator-scaletoolbar-popover",color:"#212121",children:(0,y.jsx)(l.ZP,{type:"primary",className:"dds-annotator-scaletoolbar-btn",icon:(0,y.jsx)(Ie.Z,{component:yn})})}),(0,y.jsx)(De.Z,{placement:"top",content:(0,y.jsx)("span",{style:{color:"#fff"},children:ir("DDSAnnotator.colorMode")}),trigger:"hover",color:"#212121",children:(0,y.jsx)(l.ZP,{type:"primary",className:S()("dds-annotator-scaletoolbar-btn",{"dds-annotator-scaletoolbar-btn-active":!cn}),icon:(0,y.jsx)(Ie.Z,{component:Ir}),onClick:Qt})})]})})}),Ma=e(92183),co=e(99142),ro=e(91169),xo=function($e,Ke){return $e.current===Ke.current&&$e.total===Ke.total&&$e.customText===Ke.customText&&$e.customDisableNext===Ke.customDisableNext},Pa=(0,n.memo)(function(tt){var $e=tt.current,Ke=tt.total,cn=tt.customText,nn=tt.customDisableNext,jn=tt.onPrev,lr=jn===void 0?function(){return Promise.resolve()}:jn,zn=tt.onNext,Yn=zn===void 0?function(){return Promise.resolve()}:zn,Zr=(0,G.bU)(),ir=Zr.localeText,Qn=(0,n.useState)(!1),Un=s()(Qn,2),Ta=Un[0],ha=Un[1],Qt=(0,n.useState)(!1),Re=s()(Qt,2),rt=Re[0],Rt=Re[1],Ut=function(){var rn=B()(I()().mark(function Ur(){return I()().wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return ha(!0),da.next=3,lr();case 3:ha(!1);case 4:case"end":return da.stop()}},Ur)}));return function(){return rn.apply(this,arguments)}}(),un=function(){var rn=B()(I()().mark(function Ur(){return I()().wrap(function(da){for(;;)switch(da.prev=da.next){case 0:return Rt(!0),da.next=3,Yn();case 3:Rt(!1);case 4:case"end":return da.stop()}},Ur)}));return function(){return rn.apply(this,arguments)}}(),In=$e<=0,gn=nn!=null?nn:$e>=Ke-1;return(0,he.Z)(Ze[xe.PreviousImage].shortcut,function(){In||Ut()},{exactMatch:!0}),(0,he.Z)(Ze[xe.NextImage].shortcut,function(){gn||un()},{exactMatch:!0}),(0,y.jsxs)("div",{className:"dds-annotator-toppagination",children:[(0,y.jsx)(w.Z,{title:ir("DDSAnnotator.prev"),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":In}),type:"primary",icon:(0,y.jsx)(co.Z,{}),loading:Ta,onClick:Ut})}),cn||(0,y.jsxs)("div",{className:"dds-annotator-toppagination-scale-text",children:[$e+1," / ",Ke]}),(0,y.jsx)(w.Z,{title:ir("DDSAnnotator.next"),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-toppagination-btn",{"dds-annotator-toppagination-btn-disabled":gn}),type:"primary",icon:(0,y.jsx)(ro.Z,{}),loading:rt,onClick:un})})]})},xo),Ua=(0,n.memo)(function(tt){var $e=tt.hideTitle,Ke=tt.allowAddCategory,cn=tt.latestLabel,nn=tt.categories,jn=tt.currEditObject,lr=tt.onCreateCategory,zn=tt.onFinishCurrCreate,Yn=tt.onDeleteCurrObject,Zr=tt.onCloseAnnotationEditor,ir=(0,G.bU)(),Qn=ir.localeText,Un=(jn==null?void 0:jn.label)||cn,Ta=(0,n.useState)(Un),ha=s()(Ta,2),Qt=ha[0],Re=ha[1];return(0,n.useEffect)(function(){Re((jn==null?void 0:jn.label)||cn)},[jn]),(0,he.Z)(Ze[xe.SaveCurrObject].shortcut,function(rt){jn&&(rt.preventDefault(),zn(Qt))},{exactMatch:!0}),(0,y.jsx)(wt,{children:(0,y.jsx)(ut.Z,{id:"annotation-editor",className:S()("dds-annotator-anno-editor",{"dds-annotator-anno-editor-visible":jn}),title:$e?null:(0,y.jsxs)("div",{className:"title",children:[Qn("DDSAnnotator.annotsEditor.title"),(0,y.jsx)(l.ZP,{ghost:!0,className:"btn",icon:(0,y.jsx)(Vt.Z,{}),shape:"circle",size:"small",onClick:Zr})]}),children:(0,y.jsxs)("div",{className:"content",children:[(0,y.jsx)("div",{className:"item",children:(0,y.jsx)(st.Z,{showSearch:!0,className:"selector",placeholder:"Select a label",size:"middle",value:Qt||void 0,onChange:function(Rt){Re(Rt)},popupClassName:"objects-select-popup",onClick:function(Rt){return Rt.stopPropagation()},onKeyUp:function(Rt){return Rt.stopPropagation()},onInputKeyDown:function(Rt){Rt.code!=="Enter"&&Rt.stopPropagation()},getPopupContainer:function(){return document.getElementById("annotation-editor")},dropdownRender:function(Rt){return(0,y.jsxs)(y.Fragment,{children:[Rt,Ke&&(0,y.jsx)(en,{onAdd:lr})]})},children:nn==null?void 0:nn.map(function(rt){return(0,y.jsx)(st.Z.Option,{value:rt.name,children:rt.name},rt.id)})})}),(0,y.jsx)("div",{className:"item",children:(0,y.jsxs)("div",{className:"actions",children:[(0,y.jsx)(l.ZP,{danger:!0,onClick:function(Rt){Rt.preventDefault(),Yn()},children:Qn("DDSAnnotator.annotsEditor.delete")}),(0,y.jsx)(l.ZP,{type:"primary",onClick:function(Rt){Rt.preventDefault(),zn(Qt)},children:Qn("DDSAnnotator.annotsEditor.finish")})]})})]})})})}),eo=function($e){var Ke=$e.clientSize,cn=$e.naturalSize,nn=$e.onAutoSave,jn=$e.setDrawData,lr=(0,C.x)([]),zn=s()(lr,2),Yn=zn[0],Zr=zn[1],ir=(0,n.useState)(0),Qn=s()(ir,2),Un=Qn[0],Ta=Qn[1],ha=20,Qt=function(gn){var rn=(0,K.j9)(gn.drawData.objectList,cn,gn.clientSize,!0);nn&&nn(rn,cn)},Re=(0,n.useCallback)(function(){if(Un>0){Ta(function(rn){return rn-1});var In=Yn[Un-1],gn=(0,K.hv)(In.drawData,In.clientSize,Ke);jn(gn),Qt(In)}},[Un,Yn,Ke.width,Ke.height]),rt=(0,n.useCallback)(function(){if(Unha&&rn.shift(),Ta(rn.length-1)}),Qt(gn)},Ut=(0,n.useCallback)(function(){Zr([])},[]),un=function(gn){typeof gn=="function"?jn(function(rn){gn(rn),Rt((0,z.cloneDeep)({drawData:rn,clientSize:Ke}))}):(jn(gn),Rt((0,z.cloneDeep)({drawData:gn,clientSize:Ke})))};return{updateHistory:Rt,undo:Re,redo:rt,clearHistory:Ut,setDrawDataWithHistory:un,hadChangeRecord:Yn.length>1&&Un!==0}},Fo=eo,jo=e(14464),Bo=function($e){var Ke=$e.mode,cn=$e.drawData,nn=$e.setDrawData,jn=$e.setDrawDataWithHistory,lr=$e.setEditState,zn=$e.clientSize,Yn=$e.naturalSize,Zr=$e.editState,ir=$e.displayAnnotationType,Qn=function(In,gn){var rn=In.categoryName,Ur=In.boundingBox,aa=In.points,da=In.lines,ua=In.pointNames,Aa=In.pointColors,Oo=In.segmentation,Co=In.mask,Sa=In.alpha,Ia=Zr.annotsDisplayOptions.colorByCategory?gn[rn||""]||"#ffffff":(0,jo.$P)(),ia={label:rn||"",type:m.gr.Rectangle,hidden:!1,conf:In.conf||1,labelId:In.labelId,compareResult:In.compareResult,status:k.TK.Commited,color:Ia};if(Ur){var oo=(0,K.cO)(Ur,zn);Object.assign(ia,{rect:T()({visible:!0},oo)})}if(aa&&aa.length>0&&da&&da.length>0&&ua&&Aa){var Sr=(0,K.el)(aa,ua,Aa,Yn,zn);Object.assign(ia,{keypoints:{points:Sr,lines:da}})}if(Oo){var Nr=(0,K.Vh)(Oo,Yn,zn),Da={group:Nr,visible:!0};Object.assign(ia,{polygon:Da})}if(Co&&Co.length&&Object.assign(ia,{maskRle:Co,maskCanvasElement:(0,Y.ei)(Co,Yn,Ia)}),Sa){var Wr=new Image;Wr.src=Sa,Object.assign(ia,{alpha:Sa,alphaImageElement:Wr})}return ia.type=(0,K.tQ)(ia,ir),ia},Un=function(In,gn){jn(function(rn){rn.objectList=In.map(function(Ur){return Qn(Ur,gn)}).filter(function(Ur){return Ur.type!==m.gr.Custom})})},Ta=function(In,gn){Ke===k.je.Edit&&jn(function(rn){rn.objectList.push(In),rn.creatingObject=T()({},In),rn.activeObjectIndex=gn?-1:rn.objectList.length-1})},ha=(0,n.useCallback)(function(un){Ke!==k.je.Edit||!cn.objectList[un]||(jn(function(In){In.objectList[un]&&(In.objectList.splice(un,1),In.activeObjectIndex=-1,In.creatingObject=void 0)}),lr(function(In){In.focusObjectIndex=-1,In.focusEleIndex=-1,In.focusEleType=m.Yq.Rect}))},[Ke,cn.objectList]),Qt=(0,n.useCallback)(function(){Ke===k.je.Edit&&(jn(function(un){un.objectList=[],un.creatingObject=void 0,un.prompt={}}),lr(function(un){un.focusObjectIndex=-1,un.focusEleIndex=-1,un.focusEleType=m.Yq.Rect}))},[Ke]),Re=function(In,gn){Ke!==k.je.Edit||!cn.objectList[gn]||jn(function(rn){rn.objectList[gn]=In,rn.creatingObject&&rn.activeObjectIndex===gn&&(rn.creatingObject=T()({},In))})},rt=function(In){jn(function(gn){gn.objectList=In,gn.creatingObject&&gn.objectList[gn.activeObjectIndex]&&(gn.creatingObject=T()({},gn.objectList[gn.activeObjectIndex]))})},Rt=function(In,gn){cn.objectList[gn]&&nn(function(rn){rn.objectList[gn]=In,rn.creatingObject&&rn.activeObjectIndex===gn&&(rn.creatingObject=T()({},In))})},Ut=function(In){nn(function(gn){gn.objectList=In,gn.creatingObject&&gn.objectList[gn.activeObjectIndex]&&(gn.creatingObject=T()({},gn.objectList[gn.activeObjectIndex]))})};return{initObjectList:Un,addObject:Ta,removeObject:ha,removeAllObjects:Qt,updateObject:Re,updateAllObject:rt,updateObjectWithoutHistory:Rt,updateAllObjectWithoutHistory:Ut}},ot=Bo,yt=e(95073),be=e(43112),Bt=e(5397),Jt=e(21325),Jn=e(68716),Kn={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},br=function(tt){var $e=(0,be.CR)((0,Bt.Z)(Kn),2),Ke=$e[0],cn=$e[1];return(0,Jt.Z)("mousemove",function(nn){var jn=nn.screenX,lr=nn.screenY,zn=nn.clientX,Yn=nn.clientY,Zr=nn.pageX,ir=nn.pageY,Qn={screenX:jn,screenY:lr,clientX:zn,clientY:Yn,pageX:Zr,pageY:ir,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Un=(0,Jn.n)(tt);if(Un){var Ta=Un.getBoundingClientRect(),ha=Ta.left,Qt=Ta.top,Re=Ta.width,rt=Ta.height;Qn.elementPosX=ha+window.pageXOffset,Qn.elementPosY=Qt+window.pageYOffset,Qn.elementX=Zr-Qn.elementPosX,Qn.elementY=ir-Qn.elementPosY,Qn.elementW=Re,Qn.elementH=rt}cn(Qn)},{target:function(){return document}}),Ke},ea=e(41260);function ka(tt){var $e=tt.isRequiring,Ke=tt.visible,cn=tt.minPadding,nn=cn===void 0?{top:0,left:0}:cn,jn=tt.allowMove,lr=tt.showReferenceLine,zn=tt.isCustomCursorActive,Yn=tt.cursorSize,Zr=tt.onClickMaskBg,ir=(0,n.useRef)(null),Qn=(0,yt.Z)(function(){return ir.current}),Un=br(function(){return ir.current}),Ta=(0,n.useState)({width:0,height:0}),ha=s()(Ta,2),Qt=ha[0],Re=ha[1],rt=(0,C.x)({width:Qt.width,height:Qt.height,scale:1}),Rt=s()(rt,2),Ut=Rt[0],un=Rt[1],In=(0,n.useRef)({x:0,y:0}),gn=(0,n.useRef)(void 0),rn=(0,n.useMemo)(function(){return T()(T()({},Un),{},{elementW:Ut.width,elementH:Ut.height,elementX:Un.elementX-In.current.x,elementY:Un.elementY-In.current.y})},[Un,Ut]),Ur=(0,C.x)(null),aa=s()(Ur,2),da=aa[0],ua=aa[1],Aa=function(io){if(io&&Qn){var Ba=Qn.width,Ea=Qn.height,qa=(0,K.t9)(io.width,io.height,Ba-nn.left*2,Ea-nn.top*2),Ha=s()(qa,3),Do=Ha[0],lo=Ha[1],Oa=Ha[2];In.current={x:(Ba-Do)*.5,y:(Ea-lo)*.5},un({scale:Oa,width:io.width*Oa,height:io.height*Oa}),gn.current=void 0}};(0,n.useEffect)(function(){Aa(Qt)},[Qt,Qn]);var Oo=function(){if(Qn){var io=Qn==null?void 0:Qn.width,Ba=Qn==null?void 0:Qn.height,Ea=.5,qa=.5,Ha=io/2,Do=Ba/2;gn.current&&(Ea=gn.current.posRatioX,qa=gn.current.posRatioY,Ha=gn.current.mouseX,Do=gn.current.mouseY);var lo=Ha-Ut.width*Ea,Oa=Do-Ut.height*qa;In.current={x:lo,y:Oa}}};(0,n.useEffect)(function(){Oo()},[Ut]);var Co=function(io,Ba,Ea){!Ke||$e||un(function(qa){var Ha=io?Math.min(m.Fv,(0,ea.O)(qa.scale+Ba,2)):Math.max(m.vL,(0,ea.O)(qa.scale-Ba,2));if((!gn.current||Un.elementX!==gn.current.mouseX||Un.elementY!==gn.current.mouseY)&&!Ea&&!isNaN(rn.elementX)&&!isNaN(Un.elementX)&&Ut.width){var Do={posRatioX:rn.elementX/Ut.width,posRatioY:rn.elementY/Ut.height,mouseX:Un.elementX,mouseY:Un.elementY};gn.current=Do}qa.scale=Ha,qa.width=Qt.width*Ha,qa.height=Qt.height*Ha})},Sa=(0,n.useCallback)(function(){Co(!0,m.yj,!0)},[m.yj,Co]),Ia=(0,n.useCallback)(function(){Co(!1,m.yj,!0)},[m.yj,Co]),ia=function(io){if(!(!Ke||$e)){var Ba=io.deltaY;Ba>0?Co(!1,m.oP):Ba<0&&Co(!0,m.oP)}},oo=(0,n.useCallback)(function(){gn.current=void 0,Aa(Qt)},[Qt.width,Qt.height]);(0,n.useEffect)(function(){Ke||(Re({width:0,height:0}),un({scale:1,width:0,height:0}),In.current={x:0,y:0},gn.current=void 0)},[Ke]);var Sr=(0,n.useState)(!1),Nr=s()(Sr,2),Da=Nr[0],Wr=Nr[1];(0,Jt.Z)("mousedown",function(){Wr(!0),!(!Ke||!ir.current)&&ua({x:rn.elementX,y:rn.elementY})}),(0,Jt.Z)("mousemove",function(){if(Ke&&da&&jn&&Da){var ya=rn.elementX-da.x,io=rn.elementY-da.y,Ba=In.current,Ea=Ba.x,qa=Ba.y;In.current={x:Ea+ya,y:qa+io}}}),(0,Jt.Z)("mouseup",function(){if(Wr(!1),!(!Ke||!jn)&&da){ua(null);return}}),(0,n.useEffect)(function(){ua(jn?{x:rn.elementX,y:rn.elementY}:null)},[jn]);var Qr=function(io){var Ba=io.target,Ea={width:Ba.naturalWidth,height:Ba.naturalHeight};Re(Ea),Aa(Ea)},_a=function(io){(0,K.jt)(rn)||Zr==null||Zr(io)},za=function(io){var Ba=io.children,Ea=io.className;return Ke?(0,y.jsxs)("div",{ref:ir,onWheel:ia,onClick:_a,className:Ea,children:[Ba,lr&&!jn&&(0,K.jt)(rn)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:Un.elementX-18,height:1,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.elementPosX,"px, -").concat(window.innerHeight-Un.clientY-1,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",height:1,width:Un.elementW-Un.elementX-18,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.clientX+18,"px, -").concat(window.innerHeight-Un.clientY-1,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:1,height:Un.elementY-18,left:0,bottom:0,transformOrigin:"bottom left",transform:"translate(".concat(Un.clientX-1,`px, + -`).concat(window.innerHeight-Un.clientY+18,"px)")}}),(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"#fff",width:1,height:Un.elementH-Un.elementY-18,left:0,bottom:0,transform:"translate(".concat(Un.clientX-1,"px)")}})]}),zn&&Yn>0&&(0,K.jt)(Un)&&(0,K.jt)(rn)&&!jn&&(0,y.jsx)("div",{style:{position:"fixed",backgroundColor:"rgba(255, 255, 255, 0.5)",border:"1px solid rgba(255, 255, 255, 0.7)",width:Yn*Ut.scale,height:Yn*Ut.scale,borderRadius:Yn*Ut.scale/2,left:0,top:0,transformOrigin:"top left",transform:"translate(".concat(Un.clientX-Yn*Ut.scale/2,"px, ").concat(Un.clientY-Yn*Ut.scale/2,"px)")}})]}):null};return{CanvasContainer:za,scale:Ut.scale,containerRef:ir,naturalSize:Qt,clientSize:{width:Ut.width,height:Ut.height},containerSize:Qn,containerMouse:T()(T()({},Un),{},{elementW:(Qn==null?void 0:Qn.width)||Un.elementW,elementH:(Qn==null?void 0:Qn.height)||Un.elementH}),contentMouse:rn,imagePos:In,isMousePress:Da,onLoadImg:Qr,onZoomIn:Sa,onZoomOut:Ia,onWheelMove:ia,onReset:oo}}function kr(tt,$e){var Ke=(0,n.useRef)(),cn=(0,n.useRef)(),nn=typeof $e=="function"?$e(cn.current,tt):!0;nn&&(Ke.current=cn.current,cn.current=tt);var jn=function(){Ke.current=void 0};return[Ke.current,jn]}var Dr=Object.defineProperty,wr=Object.getOwnPropertySymbols,sr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,Tr=(tt,$e,Ke)=>$e in tt?Dr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,ga=(tt,$e)=>{for(var Ke in $e||($e={}))sr.call($e,Ke)&&Tr(tt,Ke,$e[Ke]);if(wr)for(var Ke of wr($e))dr.call($e,Ke)&&Tr(tt,Ke,$e[Ke]);return tt};const fo=tt=>n.createElement("svg",ga({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#pen-add_svg__a)",fill:"#fff"},n.createElement("path",{d:"M16.7 10c0-.1 0-.1.1-.2v-.2c0-.1 0-.1-.1-.1l-3.2-3.2-3.1-3.1v-.1H10.1c-.1.2-.3.3-.6.3-1.7.7-3.4 1.3-5.2 1.9-.1 0-.1.1-.2.1s0 .1 0 .2c-.2.6-.4 1.2-.6 1.9C3 9.2 2.5 11 2 12.7L.3 18.4c-.1.3-.2.7-.3 1l.2-.1L7 12.4l.1-.1V12c-.1-.2-.2-.5-.2-.8 0-.3 0-.6.1-.8.1-.3.3-.5.5-.7.2-.2.4-.3.7-.4H9c.3 0 .5.1.8.3.2.1.4.3.6.6.9-.8 2-1.2 3.3-1.2 1.1 0 2.2.4 3 1Z"}),n.createElement("path",{d:"M8.6 13.2h-.3c-.2-.1-.3-.2-.5-.3L.7 20l4-1.2 5-1.4c-.7-.9-1.2-2-1.2-3.3 0-.3.1-.6.1-.9ZM11.3 2.6 16.7 8l.8.8L20 7.2 12.8 0l-.1.1c-.5.8-1 1.5-1.5 2.2v.2l.1.1c-.1 0-.1 0 0 0ZM16.4 11c-.7-.6-1.7-1.1-2.7-1.1-1.2 0-2.3.5-3 1.3-.4.5-.8 1-.9 1.7-.1.4-.2.7-.2 1.1 0 1.2.5 2.2 1.3 3 .7.7 1.7 1.2 2.9 1.2 2.3 0 4.1-1.9 4.1-4.1-.1-1.2-.7-2.3-1.5-3.1Zm-1.1 4.1h-.7v.8c0 .6-.4 1-1 1s-1-.4-1-1v-.8H12c-.6 0-1-.4-1-1s.4-1 1-1h.6v-.5c0-.6.4-1 1-1s1 .4 1 1v.5h.7c.6 0 1 .4 1 1s-.4 1-1 1Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"pen-add_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var Xa="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xNi43IDEwYzAtLjEgMC0uMS4xLS4ydi0uMmMwLS4xIDAtLjEtLjEtLjFsLTMuMi0zLjItMy4xLTMuMXYtLjFIMTAuMWMtLjEuMi0uMy4zLS42LjMtMS43LjctMy40IDEuMy01LjIgMS45LS4xIDAtLjEuMS0uMi4xczAgLjEgMCAuMmMtLjIuNi0uNCAxLjItLjYgMS45QzMgOS4yIDIuNSAxMSAyIDEyLjdMLjMgMTguNGMtLjEuMy0uMi43LS4zIDFsLjItLjFMNyAxMi40bC4xLS4xVjEyYy0uMS0uMi0uMi0uNS0uMi0uOCAwLS4zIDAtLjYuMS0uOC4xLS4zLjMtLjUuNS0uNy4yLS4yLjQtLjMuNy0uNEg5Yy4zIDAgLjUuMS44LjMuMi4xLjQuMy42LjYuOS0uOCAyLTEuMiAzLjMtMS4yIDEuMSAwIDIuMi40IDMgMVoiLz48cGF0aCBkPSJNOC42IDEzLjJoLS4zYy0uMi0uMS0uMy0uMi0uNS0uM0wuNyAyMGw0LTEuMiA1LTEuNGMtLjctLjktMS4yLTItMS4yLTMuMyAwLS4zLjEtLjYuMS0uOVpNMTEuMyAyLjYgMTYuNyA4bC44LjhMMjAgNy4yIDEyLjggMGwtLjEuMWMtLjUuOC0xIDEuNS0xLjUgMi4ydi4ybC4xLjFjLS4xIDAtLjEgMCAwIDBaTTE2LjQgMTFjLS43LS42LTEuNy0xLjEtMi43LTEuMS0xLjIgMC0yLjMuNS0zIDEuMy0uNC41LS44IDEtLjkgMS43LS4xLjQtLjIuNy0uMiAxLjEgMCAxLjIuNSAyLjIgMS4zIDMgLjcuNyAxLjcgMS4yIDIuOSAxLjIgMi4zIDAgNC4xLTEuOSA0LjEtNC4xLS4xLTEuMi0uNy0yLjMtMS41LTMuMVptLTEuMSA0LjFoLS43di44YzAgLjYtLjQgMS0xIDFzLTEtLjQtMS0xdi0uOEgxMmMtLjYgMC0xLS40LTEtMXMuNC0xIDEtMWguNnYtLjVjMC0uNi40LTEgMS0xczEgLjQgMSAxdi41aC43Yy42IDAgMSAuNCAxIDFzLS40IDEtMSAxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=",Tt=Object.defineProperty,Kt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,An=Object.prototype.propertyIsEnumerable,_n=(tt,$e,Ke)=>$e in tt?Tt(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,fr=(tt,$e)=>{for(var Ke in $e||($e={}))ln.call($e,Ke)&&_n(tt,Ke,$e[Ke]);if(Kt)for(var Ke of Kt($e))An.call($e,Ke)&&_n(tt,Ke,$e[Ke]);return tt};const Er=tt=>n.createElement("svg",fr({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#pen-erase_svg__a)",fill:"#fff"},n.createElement("path",{d:"m16.74 10 .07-.2a.22.22 0 0 0 0-.16.22.22 0 0 0-.09-.12l-3.14-3.16-3.07-3.08a.18.18 0 0 0 0-.07H10.29l-.72.26-5.23 1.82a.42.42 0 0 0-.18.11.35.35 0 0 0-.1.19c-.17.63-.36 1.25-.55 1.88C3 9.21 2.51 11 2 12.67L.3 18.34c-.09.31-.18.66-.3 1l.16-.14L7 12.42l.06-.06a.16.16 0 0 0 0-.09.17.17 0 0 0 0-.1v-.08a1.87 1.87 0 0 1-.06-1.6A1.95 1.95 0 0 1 8.16 9.4c.27-.09.558-.118.84-.08a2 2 0 0 1 .78.26c.232.15.432.344.59.57a5 5 0 0 1 6.37-.15Z"}),n.createElement("path",{d:"M8.63 13.2c-.106.01-.214.01-.32 0a3.38 3.38 0 0 1-.52-.22L.74 20l4-1.2 5-1.44a4.9 4.9 0 0 1-1.11-4.16ZM11.25 2.62c1.83 1.82 3.62 3.62 5.43 5.43l.81.83L20 7.21 12.83 0l-.08.1c-.5.75-1 1.53-1.5 2.25v.06a.192.192 0 0 0 0 .07.19.19 0 0 0 0 .08.208.208 0 0 0 0 .06ZM16.38 11a4.1 4.1 0 0 0-6.66 2 4.24 4.24 0 0 0-.18 1.13 4.11 4.11 0 0 0 1.27 3 4.06 4.06 0 0 0 2.85 1.16A4.12 4.12 0 0 0 16.38 11Zm-1 4.08h-3.32a1 1 0 0 1 0-2h3.27a1 1 0 0 1 0 2h.05Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"pen-erase_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h20v20H0z"}))));var wn="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im0xNi43NCAxMCAuMDctLjJhLjIyLjIyIDAgMCAwIDAtLjE2LjIyLjIyIDAgMCAwLS4wOS0uMTJsLTMuMTQtMy4xNi0zLjA3LTMuMDhhLjE4LjE4IDAgMCAwIDAtLjA3SDEwLjI5bC0uNzIuMjYtNS4yMyAxLjgyYS40Mi40MiAwIDAgMC0uMTguMTEuMzUuMzUgMCAwIDAtLjEuMTljLS4xNy42My0uMzYgMS4yNS0uNTUgMS44OEMzIDkuMjEgMi41MSAxMSAyIDEyLjY3TC4zIDE4LjM0Yy0uMDkuMzEtLjE4LjY2LS4zIDFsLjE2LS4xNEw3IDEyLjQybC4wNi0uMDZhLjE2LjE2IDAgMCAwIDAtLjA5LjE3LjE3IDAgMCAwIDAtLjF2LS4wOGExLjg3IDEuODcgMCAwIDEtLjA2LTEuNkExLjk1IDEuOTUgMCAwIDEgOC4xNiA5LjRjLjI3LS4wOS41NTgtLjExOC44NC0uMDhhMiAyIDAgMCAxIC43OC4yNmMuMjMyLjE1LjQzMi4zNDQuNTkuNTdhNSA1IDAgMCAxIDYuMzctLjE1WiIvPjxwYXRoIGQ9Ik04LjYzIDEzLjJjLS4xMDYuMDEtLjIxNC4wMS0uMzIgMGEzLjM4IDMuMzggMCAwIDEtLjUyLS4yMkwuNzQgMjBsNC0xLjIgNS0xLjQ0YTQuOSA0LjkgMCAwIDEtMS4xMS00LjE2Wk0xMS4yNSAyLjYyYzEuODMgMS44MiAzLjYyIDMuNjIgNS40MyA1LjQzbC44MS44M0wyMCA3LjIxIDEyLjgzIDBsLS4wOC4xYy0uNS43NS0xIDEuNTMtMS41IDIuMjV2LjA2YS4xOTIuMTkyIDAgMCAwIDAgLjA3LjE5LjE5IDAgMCAwIDAgLjA4LjIwOC4yMDggMCAwIDAgMCAuMDZaTTE2LjM4IDExYTQuMSA0LjEgMCAwIDAtNi42NiAyIDQuMjQgNC4yNCAwIDAgMC0uMTggMS4xMyA0LjExIDQuMTEgMCAwIDAgMS4yNyAzIDQuMDYgNC4wNiAwIDAgMCAyLjg1IDEuMTZBNC4xMiA0LjEyIDAgMCAwIDE2LjM4IDExWm0tMSA0LjA4aC0zLjMyYTEgMSAwIDAgMSAwLTJoMy4yN2ExIDEgMCAwIDEgMCAyaC4wNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",vr=Object.defineProperty,Ar=Object.getOwnPropertySymbols,oa=Object.prototype.hasOwnProperty,ta=Object.prototype.propertyIsEnumerable,Wa=(tt,$e,Ke)=>$e in tt?vr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,bo=(tt,$e)=>{for(var Ke in $e||($e={}))oa.call($e,Ke)&&Wa(tt,Ke,$e[Ke]);if(Ar)for(var Ke of Ar($e))ta.call($e,Ke)&&Wa(tt,Ke,$e[Ke]);return tt};const No=tt=>n.createElement("svg",bo({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#brush-add_svg__a)",fill:"#fff"},n.createElement("path",{d:"M5.07 10.37 4.02 9.22l-.46-.46a1.42 1.42 0 0 1 0-1.89l.41-.41 3.84-3.73L10.34.22a.71.71 0 0 1 1.07 0c.34.31.67.63 1 .93a.66.66 0 0 1 .22.69c-.1.43-.19.87-.28 1.34l.69-.13c.25 0 .5-.1.75-.12a.82.82 0 0 1 .69.26l4.47 4.37.45.44a.87.87 0 0 1 0 1.3l-2 2-.08.08-1.34-.79 1.89-1.95-.33-.33-3.78-3.71a.3.3 0 0 0-.32-.09l-1.89.37A.74.74 0 0 1 10.7 4c.06-.33.12-.65.19-1s.1-.58.18-.85a.31.31 0 0 0-.17-.4L6.7 5.94l5 4.85c-.3.21-.61.4-.88.62a4.76 4.76 0 0 0-1.75 3 .88.88 0 0 1-.25.44l-2.94 3.37a3.42 3.42 0 0 1-5 .22 3 3 0 0 1-.83-2 3.39 3.39 0 0 1 1.33-2.88l3.32-2.89.37-.3Z"}),n.createElement("path",{d:"M17.88 13.99a4.06 4.06 0 0 0-4.46-2.68 4 4 0 0 0 .61 7.9c.22 0 .44 0 .65-.06a4 4 0 0 0 3.2-5.16Zm-2.31 2.13h-.62v.58a.94.94 0 0 1-1.87 0v-.58h-.58a.94.94 0 0 1 0-1.87h.58v-.56a.94.94 0 1 1 1.87 0v.53h.62a.94.94 0 0 1 0 1.87v.03Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"brush-add_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h19.7v19.44H0z"}))));var Ga="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik01LjA3IDEwLjM3IDQuMDIgOS4yMmwtLjQ2LS40NmExLjQyIDEuNDIgMCAwIDEgMC0xLjg5bC40MS0uNDEgMy44NC0zLjczTDEwLjM0LjIyYS43MS43MSAwIDAgMSAxLjA3IDBjLjM0LjMxLjY3LjYzIDEgLjkzYS42Ni42NiAwIDAgMSAuMjIuNjljLS4xLjQzLS4xOS44Ny0uMjggMS4zNGwuNjktLjEzYy4yNSAwIC41LS4xLjc1LS4xMmEuODIuODIgMCAwIDEgLjY5LjI2bDQuNDcgNC4zNy40NS40NGEuODcuODcgMCAwIDEgMCAxLjNsLTIgMi0uMDguMDgtMS4zNC0uNzkgMS44OS0xLjk1LS4zMy0uMzMtMy43OC0zLjcxYS4zLjMgMCAwIDAtLjMyLS4wOWwtMS44OS4zN0EuNzQuNzQgMCAwIDEgMTAuNyA0Yy4wNi0uMzMuMTItLjY1LjE5LTFzLjEtLjU4LjE4LS44NWEuMzEuMzEgMCAwIDAtLjE3LS40TDYuNyA1Ljk0bDUgNC44NWMtLjMuMjEtLjYxLjQtLjg4LjYyYTQuNzYgNC43NiAwIDAgMC0xLjc1IDMgLjg4Ljg4IDAgMCAxLS4yNS40NGwtMi45NCAzLjM3YTMuNDIgMy40MiAwIDAgMS01IC4yMiAzIDMgMCAwIDEtLjgzLTIgMy4zOSAzLjM5IDAgMCAxIDEuMzMtMi44OGwzLjMyLTIuODkuMzctLjNaIi8+PHBhdGggZD0iTTE3Ljg4IDEzLjk5YTQuMDYgNC4wNiAwIDAgMC00LjQ2LTIuNjggNCA0IDAgMCAwIC42MSA3LjljLjIyIDAgLjQ0IDAgLjY1LS4wNmE0IDQgMCAwIDAgMy4yLTUuMTZabS0yLjMxIDIuMTNoLS42MnYuNThhLjk0Ljk0IDAgMCAxLTEuODcgMHYtLjU4aC0uNThhLjk0Ljk0IDAgMCAxIDAtMS44N2guNTh2LS41NmEuOTQuOTQgMCAxIDEgMS44NyAwdi41M2guNjJhLjk0Ljk0IDAgMCAxIDAgMS44N3YuMDNaIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgxOS43djE5LjQ0SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",To=Object.defineProperty,vo=Object.getOwnPropertySymbols,Jr=Object.prototype.hasOwnProperty,Ra=Object.prototype.propertyIsEnumerable,Ao=(tt,$e,Ke)=>$e in tt?To(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,ai=(tt,$e)=>{for(var Ke in $e||($e={}))Jr.call($e,Ke)&&Ao(tt,Ke,$e[Ke]);if(vo)for(var Ke of vo($e))Ra.call($e,Ke)&&Ao(tt,Ke,$e[Ke]);return tt};const fi=tt=>n.createElement("svg",ai({width:16,height:16,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("g",{clipPath:"url(#brush-erase_svg__a)",fill:"#fff"},n.createElement("path",{d:"m6.47 5.69 4.8 4.7c-.29.2-.59.38-.85.59a4.73 4.73 0 0 0-1.74 3.05.45.45 0 0 1-.1.21l-2.89 3.34a3.24 3.24 0 0 1-2.47 1.2 3 3 0 0 1-3.23-3.1 3.34 3.34 0 0 1 1.39-2.7c1.16-.95 2.29-1.93 3.44-2.89l.14-.1-.4-.38-1-1a1.38 1.38 0 0 1 0-2.07L7.7 2.48c.76-.7 1.52-1.5 2.29-2.24a.69.69 0 0 1 1.05 0l1 .91a.59.59 0 0 1 .18.63c-.09.43-.18.87-.27 1.33l1.27-.25a.88.88 0 0 1 .84.24l2.71 2.68 2 1.92a.9.9 0 0 1 .29.8.66.66 0 0 1-.16.35c-.7.7-1.41 1.39-2.12 2.08l-1.28-.77 1.84-1.79V8.3l-4-3.88a.29.29 0 0 0-.28-.07l-1.84.43a.86.86 0 0 1-.8-.26.571.571 0 0 1-.13-.56c.12-.59.24-1.17.37-1.76 0-.19 0-.33-.18-.42L6.47 5.69Z"}),n.createElement("path",{d:"M9.69 14.71a3.88 3.88 0 1 1 3.88 3.8 3.83 3.83 0 0 1-3.88-3.8Zm3.87 1h1.57a1 1 0 0 0 1-1 1 1 0 0 0-1-1.06h-3.14a1 1 0 0 0 0 2l1.57.06Z"})),n.createElement("defs",null,n.createElement("clipPath",{id:"brush-erase_svg__a"},n.createElement("path",{fill:"#fff",d:"M0 0h19.03v18.77H0z"}))));var go="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im02LjQ3IDUuNjkgNC44IDQuN2MtLjI5LjItLjU5LjM4LS44NS41OWE0LjczIDQuNzMgMCAwIDAtMS43NCAzLjA1LjQ1LjQ1IDAgMCAxLS4xLjIxbC0yLjg5IDMuMzRhMy4yNCAzLjI0IDAgMCAxLTIuNDcgMS4yIDMgMyAwIDAgMS0zLjIzLTMuMSAzLjM0IDMuMzQgMCAwIDEgMS4zOS0yLjdjMS4xNi0uOTUgMi4yOS0xLjkzIDMuNDQtMi44OWwuMTQtLjEtLjQtLjM4LTEtMWExLjM4IDEuMzggMCAwIDEgMC0yLjA3TDcuNyAyLjQ4Yy43Ni0uNyAxLjUyLTEuNSAyLjI5LTIuMjRhLjY5LjY5IDAgMCAxIDEuMDUgMGwxIC45MWEuNTkuNTkgMCAwIDEgLjE4LjYzYy0uMDkuNDMtLjE4Ljg3LS4yNyAxLjMzbDEuMjctLjI1YS44OC44OCAwIDAgMSAuODQuMjRsMi43MSAyLjY4IDIgMS45MmEuOS45IDAgMCAxIC4yOS44LjY2LjY2IDAgMCAxLS4xNi4zNWMtLjcuNy0xLjQxIDEuMzktMi4xMiAyLjA4bC0xLjI4LS43NyAxLjg0LTEuNzlWOC4zbC00LTMuODhhLjI5LjI5IDAgMCAwLS4yOC0uMDdsLTEuODQuNDNhLjg2Ljg2IDAgMCAxLS44LS4yNi41NzEuNTcxIDAgMCAxLS4xMy0uNTZjLjEyLS41OS4yNC0xLjE3LjM3LTEuNzYgMC0uMTkgMC0uMzMtLjE4LS40Mkw2LjQ3IDUuNjlaIi8+PHBhdGggZD0iTTkuNjkgMTQuNzFhMy44OCAzLjg4IDAgMSAxIDMuODggMy44IDMuODMgMy44MyAwIDAgMS0zLjg4LTMuOFptMy44NyAxaDEuNTdhMSAxIDAgMCAwIDEtMSAxIDEgMCAwIDAtMS0xLjA2aC0zLjE0YTEgMSAwIDAgMCAwIDJsMS41Ny4wNloiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5LjAzdjE4Ljc3SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+",Oi=Object.defineProperty,Li=Object.getOwnPropertySymbols,oi=Object.prototype.hasOwnProperty,Di=Object.prototype.propertyIsEnumerable,Fi=(tt,$e,Ke)=>$e in tt?Oi(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,wi=(tt,$e)=>{for(var Ke in $e||($e={}))oi.call($e,Ke)&&Fi(tt,Ke,$e[Ke]);if(Li)for(var Ke of Li($e))Di.call($e,Ke)&&Fi(tt,Ke,$e[Ke]);return tt};const Ti=tt=>n.createElement("svg",wi({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-box_svg__cls-1,.magic-box_svg__cls-3{fill:none}.magic-box_svg__cls-2{fill:#fcfefe}.magic-box_svg__cls-3{stroke:#fcfeff;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px}")),n.createElement("path",{className:"magic-box_svg__cls-1",d:"M5.28 16.36V6.08a1 1 0 0 1 1-1h22.2a1 1 0 0 1 1 1v21.67a1 1 0 0 1-1 .95h-10v2.39H31.4V2.74H3.17v13.62ZM3.06 2.74h.11v13.62h-.11z"}),n.createElement("path",{className:"magic-box_svg__cls-2",d:"M7.28 7.12H27.4V26.7h-8.91v2h10a1 1 0 0 0 1-.95V6.08a1 1 0 0 0-1-1H6.24a1 1 0 0 0-1 1v10.28h2Z"}),n.createElement("path",{className:"magic-box_svg__cls-2",d:"M4.82 28.43a.87.87 0 0 0 .11 1.19 1 1 0 0 0 1.19.09c3.29-2.56 4.66-2.56 8 0a.92.92 0 0 0 1.28-1.28c-2.56-3.29-2.56-4.66 0-8a.92.92 0 0 0-1.28-1.28c-3.29 2.56-4.66 2.56-8 0a1.37 1.37 0 0 0-.55-.15.83.83 0 0 0-.64.27.87.87 0 0 0-.09 1.19c2.63 3.31 2.63 4.59-.02 7.97Z"}),n.createElement("path",{className:"magic-box_svg__cls-3",d:"m19.24 10.15 5.75-.07M24.99 15.91v-5.83M17.97 17.19l7.02-7.11"}));var ns="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTN7ZmlsbDpub25lfS5jbHMtMntmaWxsOiNmY2ZlZmV9LmNscy0ze3N0cm9rZTojZmNmZWZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoycHh9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4yOCAxNi4zNlY2LjA4YTEgMSAwIDAgMSAxLTFoMjIuMmExIDEgMCAwIDEgMSAxdjIxLjY3YTEgMSAwIDAgMS0xIC45NWgtMTB2Mi4zOUgzMS40VjIuNzRIMy4xN3YxMy42MlpNMy4wNiAyLjc0aC4xMXYxMy42MmgtLjExeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTcuMjggNy4xMkgyNy40VjI2LjdoLTguOTF2MmgxMGExIDEgMCAwIDAgMS0uOTVWNi4wOGExIDEgMCAwIDAtMS0xSDYuMjRhMSAxIDAgMCAwLTEgMXYxMC4yOGgyWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTQuODIgMjguNDNhLjg3Ljg3IDAgMCAwIC4xMSAxLjE5IDEgMSAwIDAgMCAxLjE5LjA5YzMuMjktMi41NiA0LjY2LTIuNTYgOCAwYS45Mi45MiAwIDAgMCAxLjI4LTEuMjhjLTIuNTYtMy4yOS0yLjU2LTQuNjYgMC04YS45Mi45MiAwIDAgMC0xLjI4LTEuMjhjLTMuMjkgMi41Ni00LjY2IDIuNTYtOCAwYTEuMzcgMS4zNyAwIDAgMC0uNTUtLjE1LjgzLjgzIDAgMCAwLS42NC4yNy44Ny44NyAwIDAgMC0uMDkgMS4xOWMyLjYzIDMuMzEgMi42MyA0LjU5LS4wMiA3Ljk3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0ibTE5LjI0IDEwLjE1IDUuNzUtLjA3TTI0Ljk5IDE1Ljkxdi01LjgzTTE3Ljk3IDE3LjE5bDcuMDItNy4xMSIvPjwvc3ZnPg==",Zi=Object.defineProperty,ao=Object.getOwnPropertySymbols,Ka=Object.prototype.hasOwnProperty,mi=Object.prototype.propertyIsEnumerable,ii=(tt,$e,Ke)=>$e in tt?Zi(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Zo=(tt,$e)=>{for(var Ke in $e||($e={}))Ka.call($e,Ke)&&ii(tt,Ke,$e[Ke]);if(ao)for(var Ke of ao($e))mi.call($e,Ke)&&ii(tt,Ke,$e[Ke]);return tt};const Ko=tt=>n.createElement("svg",Zo({id:"magic-click_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-click_svg__cls-1{fill:#fff}")),n.createElement("path",{className:"magic-click_svg__cls-1",d:"M30.88 21.21a1.6 1.6 0 0 1-1 1.35c-1.54.75-3.08 1.51-4.59 2.31a2.18 2.18 0 0 0-.87.86c-.79 1.49-1.53 3-2.27 4.53a1.49 1.49 0 0 1-2.89-.18Q17.2 23.8 15.1 17.52a1.49 1.49 0 0 1 2-2l12.55 4.19a1.56 1.56 0 0 1 1.23 1.5Zm-5.25.23-6.94-2.32 2.32 7c.37-.74.71-1.3.95-1.9a3 3 0 0 1 1.8-1.79c.6-.29 1.15-.62 1.87-.99ZM7.34 6.09a4.23 4.23 0 0 1 .89.54l3 3a1.45 1.45 0 1 1-2 2c-1-1-2.06-2-3.07-3.07A1.37 1.37 0 0 1 5.83 7a1.6 1.6 0 0 1 1.51-.91ZM22.35 12.35a6.61 6.61 0 0 1-1.12-.92 1.14 1.14 0 0 1 .09-1.51c1.14-1.19 2.3-2.37 3.5-3.49a1.31 1.31 0 0 1 1.84.1 1.34 1.34 0 0 1 .14 1.9c-1.11 1.19-2.28 2.32-3.45 3.45a3.92 3.92 0 0 1-1 .47ZM7 27.68a6 6 0 0 1-1.13-.9 1.12 1.12 0 0 1 .13-1.5c1.15-1.21 2.32-2.4 3.55-3.54a1.32 1.32 0 0 1 1.84.17 1.33 1.33 0 0 1 .1 1.85C10.35 25 9.16 26.11 8 27.25a3.75 3.75 0 0 1-1 .43ZM17.87 6v2A1.46 1.46 0 1 1 15 8V3.87a1.49 1.49 0 0 1 1.46-1.56 1.51 1.51 0 0 1 1.45 1.57c-.03.74-.04 1.44-.04 2.12ZM5.48 18.3h-2a1.5 1.5 0 0 1-1.55-1.5 1.48 1.48 0 0 1 1.59-1.42h4.07a1.49 1.49 0 0 1 1.59 1.49 1.5 1.5 0 0 1-1.6 1.42c-.69.02-1.4.01-2.1.01Z"}),n.createElement("path",{className:"magic-click_svg__cls-1",d:"M25.63 21.44c-.72.37-1.27.7-1.87.94A3 3 0 0 0 22 24.17c-.24.6-.58 1.16-.95 1.9l-2.32-6.95Z"}));var Ni="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zMC44OCAyMS4yMWExLjYgMS42IDAgMCAxLTEgMS4zNWMtMS41NC43NS0zLjA4IDEuNTEtNC41OSAyLjMxYTIuMTggMi4xOCAwIDAgMC0uODcuODZjLS43OSAxLjQ5LTEuNTMgMy0yLjI3IDQuNTNhMS40OSAxLjQ5IDAgMCAxLTIuODktLjE4UTE3LjIgMjMuOCAxNS4xIDE3LjUyYTEuNDkgMS40OSAwIDAgMSAyLTJsMTIuNTUgNC4xOWExLjU2IDEuNTYgMCAwIDEgMS4yMyAxLjVabS01LjI1LjIzLTYuOTQtMi4zMiAyLjMyIDdjLjM3LS43NC43MS0xLjMuOTUtMS45YTMgMyAwIDAgMSAxLjgtMS43OWMuNi0uMjkgMS4xNS0uNjIgMS44Ny0uOTlaTTcuMzQgNi4wOWE0LjIzIDQuMjMgMCAwIDEgLjg5LjU0bDMgM2ExLjQ1IDEuNDUgMCAxIDEtMiAyYy0xLTEtMi4wNi0yLTMuMDctMy4wN0ExLjM3IDEuMzcgMCAwIDEgNS44MyA3YTEuNiAxLjYgMCAwIDEgMS41MS0uOTFaTTIyLjM1IDEyLjM1YTYuNjEgNi42MSAwIDAgMS0xLjEyLS45MiAxLjE0IDEuMTQgMCAwIDEgLjA5LTEuNTFjMS4xNC0xLjE5IDIuMy0yLjM3IDMuNS0zLjQ5YTEuMzEgMS4zMSAwIDAgMSAxLjg0LjEgMS4zNCAxLjM0IDAgMCAxIC4xNCAxLjljLTEuMTEgMS4xOS0yLjI4IDIuMzItMy40NSAzLjQ1YTMuOTIgMy45MiAwIDAgMS0xIC40N1pNNyAyNy42OGE2IDYgMCAwIDEtMS4xMy0uOSAxLjEyIDEuMTIgMCAwIDEgLjEzLTEuNWMxLjE1LTEuMjEgMi4zMi0yLjQgMy41NS0zLjU0YTEuMzIgMS4zMiAwIDAgMSAxLjg0LjE3IDEuMzMgMS4zMyAwIDAgMSAuMSAxLjg1QzEwLjM1IDI1IDkuMTYgMjYuMTEgOCAyNy4yNWEzLjc1IDMuNzUgMCAwIDEtMSAuNDNaTTE3Ljg3IDZ2MkExLjQ2IDEuNDYgMCAxIDEgMTUgOFYzLjg3YTEuNDkgMS40OSAwIDAgMSAxLjQ2LTEuNTYgMS41MSAxLjUxIDAgMCAxIDEuNDUgMS41N2MtLjAzLjc0LS4wNCAxLjQ0LS4wNCAyLjEyWk01LjQ4IDE4LjNoLTJhMS41IDEuNSAwIDAgMS0xLjU1LTEuNSAxLjQ4IDEuNDggMCAwIDEgMS41OS0xLjQyaDQuMDdhMS40OSAxLjQ5IDAgMCAxIDEuNTkgMS40OSAxLjUgMS41IDAgMCAxLTEuNiAxLjQyYy0uNjkuMDItMS40LjAxLTIuMS4wMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNS42MyAyMS40NGMtLjcyLjM3LTEuMjcuNy0xLjg3Ljk0QTMgMyAwIDAgMCAyMiAyNC4xN2MtLjI0LjYtLjU4IDEuMTYtLjk1IDEuOWwtMi4zMi02Ljk1WiIvPjwvc3ZnPg==",Ji=Object.defineProperty,Ki=Object.getOwnPropertySymbols,Is=Object.prototype.hasOwnProperty,hs=Object.prototype.propertyIsEnumerable,Ns=(tt,$e,Ke)=>$e in tt?Ji(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,bl=(tt,$e)=>{for(var Ke in $e||($e={}))Is.call($e,Ke)&&Ns(tt,Ke,$e[Ke]);if(Ki)for(var Ke of Ki($e))hs.call($e,Ke)&&Ns(tt,Ke,$e[Ke]);return tt};const bn=tt=>n.createElement("svg",bl({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".edge-stitch_svg__cls-1{fill:#fcfefe}.edge-stitch_svg__cls-3{fill:#fff}")),n.createElement("path",{className:"edge-stitch_svg__cls-1",d:"M22.25 18.52a.82.82 0 0 0 .57.15h4.3a1.44 1.44 0 1 0 0-2.87h-.86L31 11.06a1.42 1.42 0 0 0-2-2l-4.73 4.74v-.86a1.44 1.44 0 1 0-2.87 0v4.3a.87.87 0 0 0 .14.57 1.67 1.67 0 0 0 .71.71ZM9.91 31.58a1.31 1.31 0 0 0 1-.43l4.74-4.74v.86a1.44 1.44 0 1 0 2.87 0V23a.82.82 0 0 0-.15-.57 1.7 1.7 0 0 0-.71-.72.85.85 0 0 0-.58-.15h-4.3a1.44 1.44 0 1 0 0 2.87h.86l-4.73 4.71a1.38 1.38 0 0 0 0 2 1.31 1.31 0 0 0 1 .44Z"}),n.createElement("path",{style:{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:3},d:"m14.4 14.51 11.14 11.14"}),n.createElement("path",{className:"edge-stitch_svg__cls-3",d:"M7.51 5.7a3.41 3.41 0 0 1 .74.45c.85.8 1.67 1.64 2.49 2.47a1.19 1.19 0 1 1-1.69 1.67Q7.77 9 6.53 7.77a1.13 1.13 0 0 1-.26-1.33 1.33 1.33 0 0 1 1.24-.74ZM19.85 10.84a5.11 5.11 0 0 1-.92-.75.93.93 0 0 1 .07-1.24c.94-1 1.89-1.95 2.88-2.87a1.07 1.07 0 0 1 1.51.09 1.09 1.09 0 0 1 .11 1.56c-.91 1-1.87 1.9-2.83 2.83a2.88 2.88 0 0 1-.82.38ZM7.26 23.44a5 5 0 0 1-.92-.73.92.92 0 0 1 .06-1.24Q7.81 20 9.31 18.56a1.08 1.08 0 0 1 1.51.14 1.1 1.1 0 0 1 .09 1.52C10 21.21 9 22.15 8 23.09a3.07 3.07 0 0 1-.74.35ZM16.16 5.64v1.67A1.24 1.24 0 0 1 15 8.59a1.22 1.22 0 0 1-1.19-1.28v-3.4A1.22 1.22 0 0 1 15 2.63a1.23 1.23 0 0 1 1.19 1.29c-.01.57-.03 1.15-.03 1.72ZM6 15.73H4.38a1.2 1.2 0 1 1 0-2.4h3.34a1.2 1.2 0 1 1 0 2.4c-.58.02-1.15 0-1.72 0Z"}));var Mr="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmY2ZlZmV9LmNscy0ze2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMi4yNSAxOC41MmEuODIuODIgMCAwIDAgLjU3LjE1aDQuM2ExLjQ0IDEuNDQgMCAxIDAgMC0yLjg3aC0uODZMMzEgMTEuMDZhMS40MiAxLjQyIDAgMCAwLTItMmwtNC43MyA0Ljc0di0uODZhMS40NCAxLjQ0IDAgMSAwLTIuODcgMHY0LjNhLjg3Ljg3IDAgMCAwIC4xNC41NyAxLjY3IDEuNjcgMCAwIDAgLjcxLjcxWk05LjkxIDMxLjU4YTEuMzEgMS4zMSAwIDAgMCAxLS40M2w0Ljc0LTQuNzR2Ljg2YTEuNDQgMS40NCAwIDEgMCAyLjg3IDBWMjNhLjgyLjgyIDAgMCAwLS4xNS0uNTcgMS43IDEuNyAwIDAgMC0uNzEtLjcyLjg1Ljg1IDAgMCAwLS41OC0uMTVoLTQuM2ExLjQ0IDEuNDQgMCAxIDAgMCAyLjg3aC44NmwtNC43MyA0LjcxYTEuMzggMS4zOCAwIDAgMCAwIDIgMS4zMSAxLjMxIDAgMCAwIDEgLjQ0WiIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjNweCIgZD0ibTE0LjQgMTQuNTEgMTEuMTQgMTEuMTQiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik03LjUxIDUuN2EzLjQxIDMuNDEgMCAwIDEgLjc0LjQ1Yy44NS44IDEuNjcgMS42NCAyLjQ5IDIuNDdhMS4xOSAxLjE5IDAgMSAxLTEuNjkgMS42N1E3Ljc3IDkgNi41MyA3Ljc3YTEuMTMgMS4xMyAwIDAgMS0uMjYtMS4zMyAxLjMzIDEuMzMgMCAwIDEgMS4yNC0uNzRaTTE5Ljg1IDEwLjg0YTUuMTEgNS4xMSAwIDAgMS0uOTItLjc1LjkzLjkzIDAgMCAxIC4wNy0xLjI0Yy45NC0xIDEuODktMS45NSAyLjg4LTIuODdhMS4wNyAxLjA3IDAgMCAxIDEuNTEuMDkgMS4wOSAxLjA5IDAgMCAxIC4xMSAxLjU2Yy0uOTEgMS0xLjg3IDEuOS0yLjgzIDIuODNhMi44OCAyLjg4IDAgMCAxLS44Mi4zOFpNNy4yNiAyMy40NGE1IDUgMCAwIDEtLjkyLS43My45Mi45MiAwIDAgMSAuMDYtMS4yNFE3LjgxIDIwIDkuMzEgMTguNTZhMS4wOCAxLjA4IDAgMCAxIDEuNTEuMTQgMS4xIDEuMSAwIDAgMSAuMDkgMS41MkMxMCAyMS4yMSA5IDIyLjE1IDggMjMuMDlhMy4wNyAzLjA3IDAgMCAxLS43NC4zNVpNMTYuMTYgNS42NHYxLjY3QTEuMjQgMS4yNCAwIDAgMSAxNSA4LjU5YTEuMjIgMS4yMiAwIDAgMS0xLjE5LTEuMjh2LTMuNEExLjIyIDEuMjIgMCAwIDEgMTUgMi42M2ExLjIzIDEuMjMgMCAwIDEgMS4xOSAxLjI5Yy0uMDEuNTctLjAzIDEuMTUtLjAzIDEuNzJaTTYgMTUuNzNINC4zOGExLjIgMS4yIDAgMSAxIDAtMi40aDMuMzRhMS4yIDEuMiAwIDEgMSAwIDIuNGMtLjU4LjAyLTEuMTUgMC0xLjcyIDBaIi8+PC9zdmc+",nr=Object.defineProperty,ur=Object.getOwnPropertySymbols,Cr=Object.prototype.hasOwnProperty,ca=Object.prototype.propertyIsEnumerable,pa=(tt,$e,Ke)=>$e in tt?nr(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,fa=(tt,$e)=>{for(var Ke in $e||($e={}))Cr.call($e,Ke)&&pa(tt,Ke,$e[Ke]);if(ur)for(var Ke of ur($e))ca.call($e,Ke)&&pa(tt,Ke,$e[Ke]);return tt};const Ho=tt=>n.createElement("svg",fa({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".segment-everything_svg__cls-1{fill:#fff}.segment-everything_svg__cls-3{fill:none}")),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"m6.26 15.54 5.88 3.88a1 1 0 0 1 0 1.56L6.1 25.29a.9.9 0 0 1-1.41-.79l.19-8.2a.9.9 0 0 1 1.38-.76ZM7.58 29.17 23.43 17.7a1.71 1.71 0 0 1 2.25.22l3.32 3.5v7.75Z"}),n.createElement("path",{d:"M31 4.35a.88.88 0 0 0-.11-1.19 1 1 0 0 0-1.19-.09c-3.29 2.56-4.66 2.56-8 0a.87.87 0 0 0-1.19.09.87.87 0 0 0-.09 1.19c2.56 3.29 2.56 4.66 0 8a.92.92 0 0 0 1.28 1.28c3.29-2.56 4.66-2.56 8 0a1.28 1.28 0 0 0 .55.18.91.91 0 0 0 .64-.27.87.87 0 0 0 .11-1.19c-2.65-3.35-2.65-4.62 0-8Z",style:{fill:"#fcfefe"}}),n.createElement("path",{className:"segment-everything_svg__cls-3",d:"M4.07 4.13h26.29v26.29H4.07z"}),n.createElement("path",{className:"segment-everything_svg__cls-3",d:"M6.39 28.56h22.49V17H16.49v-3.38a2.56 2.56 0 0 1-2 .93 2.63 2.63 0 0 1-2.59-2.72 2.66 2.66 0 0 1 2.6-2.67 2.57 2.57 0 0 1 2 .95v-4H6.39Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M14.51 9.16a2.66 2.66 0 0 0-2.6 2.67 2.63 2.63 0 0 0 2.59 2.72 2.56 2.56 0 0 0 2-.93v-3.51a2.57 2.57 0 0 0-1.99-.95Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M28.88 28.56H6.39V6.1h10.1V4.25H5.42a.88.88 0 0 0-.89.88v25.28h26.21V17h-1.86Z"}),n.createElement("path",{className:"segment-everything_svg__cls-1",d:"M17.14 11.87a2.74 2.74 0 0 0-.65-1.76v3.51a2.7 2.7 0 0 0 .65-1.75Z"}));var si="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9LmNscy0ze2ZpbGw6bm9uZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Im02LjI2IDE1LjU0IDUuODggMy44OGExIDEgMCAwIDEgMCAxLjU2TDYuMSAyNS4yOWEuOS45IDAgMCAxLTEuNDEtLjc5bC4xOS04LjJhLjkuOSAwIDAgMSAxLjM4LS43NlpNNy41OCAyOS4xNyAyMy40MyAxNy43YTEuNzEgMS43MSAwIDAgMSAyLjI1LjIybDMuMzIgMy41djcuNzVaIi8+PHBhdGggZD0iTTMxIDQuMzVhLjg4Ljg4IDAgMCAwLS4xMS0xLjE5IDEgMSAwIDAgMC0xLjE5LS4wOWMtMy4yOSAyLjU2LTQuNjYgMi41Ni04IDBhLjg3Ljg3IDAgMCAwLTEuMTkuMDkuODcuODcgMCAwIDAtLjA5IDEuMTljMi41NiAzLjI5IDIuNTYgNC42NiAwIDhhLjkyLjkyIDAgMCAwIDEuMjggMS4yOGMzLjI5LTIuNTYgNC42Ni0yLjU2IDggMGExLjI4IDEuMjggMCAwIDAgLjU1LjE4LjkxLjkxIDAgMCAwIC42NC0uMjcuODcuODcgMCAwIDAgLjExLTEuMTljLTIuNjUtMy4zNS0yLjY1LTQuNjIgMC04WiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTQuMDcgNC4xM2gyNi4yOXYyNi4yOUg0LjA3eiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTYuMzkgMjguNTZoMjIuNDlWMTdIMTYuNDl2LTMuMzhhMi41NiAyLjU2IDAgMCAxLTIgLjkzIDIuNjMgMi42MyAwIDAgMS0yLjU5LTIuNzIgMi42NiAyLjY2IDAgMCAxIDIuNi0yLjY3IDIuNTcgMi41NyAwIDAgMSAyIC45NXYtNEg2LjM5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0LjUxIDkuMTZhMi42NiAyLjY2IDAgMCAwLTIuNiAyLjY3IDIuNjMgMi42MyAwIDAgMCAyLjU5IDIuNzIgMi41NiAyLjU2IDAgMCAwIDItLjkzdi0zLjUxYTIuNTcgMi41NyAwIDAgMC0xLjk5LS45NVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yOC44OCAyOC41Nkg2LjM5VjYuMWgxMC4xVjQuMjVINS40MmEuODguODggMCAwIDAtLjg5Ljg4djI1LjI4aDI2LjIxVjE3aC0xLjg2WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjE0IDExLjg3YTIuNzQgMi43NCAwIDAgMC0uNjUtMS43NnYzLjUxYTIuNyAyLjcgMCAwIDAgLjY1LTEuNzVaIi8+PC9zdmc+",Jo=Object.defineProperty,Wi=Object.getOwnPropertySymbols,bs=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,As=(tt,$e,Ke)=>$e in tt?Jo(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,us=(tt,$e)=>{for(var Ke in $e||($e={}))bs.call($e,Ke)&&As(tt,Ke,$e[Ke]);if(Wi)for(var Ke of Wi($e))ss.call($e,Ke)&&As(tt,Ke,$e[Ke]);return tt};const ri=tt=>n.createElement("svg",us({id:"magic-brush_svg__\\u56FE\\u5C42_1","data-name":"\\u56FE\\u5C42 1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 34.02 34.02"},tt),n.createElement("defs",null,n.createElement("style",null,".magic-brush_svg__cls-1{fill:#fff}")),n.createElement("path",{className:"magic-brush_svg__cls-1",d:"M15.22 14.73 21 9l10.1 10.1-5.8 5.76ZM14.33 15.43l10.34 10.36c-.87.86-1.78 1.78-2.71 2.68-.09.08-.37 0-.53-.07-1.31-.58-2.63-1.16-3.92-1.78a.74.74 0 0 0-1 .17q-1.75 1.82-3.57 3.56a2.14 2.14 0 0 1-2.33.51 2.08 2.08 0 0 1-1.42-1.69 2.2 2.2 0 0 1 .67-2.05C11 26 12.14 24.8 13.32 23.66a.74.74 0 0 0 .19-1c-.61-1.27-1.16-2.57-1.77-3.85a.67.67 0 0 1 .15-.91c.84-.81 1.63-1.64 2.44-2.47Zm-1.82 13.18a1 1 0 1 0-2 .05 1 1 0 0 0 2-.05Z"}),n.createElement("path",{d:"M3.2 12.66a.89.89 0 0 0 .11 1.23 1 1 0 0 0 1.23.1c3.4-2.65 4.82-2.65 8.27 0a.95.95 0 0 0 1.32-1.33c-2.64-3.4-2.64-4.81 0-8.26A.9.9 0 0 0 14 3.17a.89.89 0 0 0-1.23-.1C9.41 5.72 8 5.72 4.54 3.07A1.27 1.27 0 0 0 4 2.89a.84.84 0 0 0-.66.28.9.9 0 0 0-.12 1.23c2.72 3.45 2.72 4.77-.02 8.26Z",style:{fill:"#fcfefe"}}));var $l="data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNS4yMiAxNC43MyAyMSA5bDEwLjEgMTAuMS01LjggNS43NlpNMTQuMzMgMTUuNDNsMTAuMzQgMTAuMzZjLS44Ny44Ni0xLjc4IDEuNzgtMi43MSAyLjY4LS4wOS4wOC0uMzcgMC0uNTMtLjA3LTEuMzEtLjU4LTIuNjMtMS4xNi0zLjkyLTEuNzhhLjc0Ljc0IDAgMCAwLTEgLjE3cS0xLjc1IDEuODItMy41NyAzLjU2YTIuMTQgMi4xNCAwIDAgMS0yLjMzLjUxIDIuMDggMi4wOCAwIDAgMS0xLjQyLTEuNjkgMi4yIDIuMiAwIDAgMSAuNjctMi4wNUMxMSAyNiAxMi4xNCAyNC44IDEzLjMyIDIzLjY2YS43NC43NCAwIDAgMCAuMTktMWMtLjYxLTEuMjctMS4xNi0yLjU3LTEuNzctMy44NWEuNjcuNjcgMCAwIDEgLjE1LS45MWMuODQtLjgxIDEuNjMtMS42NCAyLjQ0LTIuNDdabS0xLjgyIDEzLjE4YTEgMSAwIDEgMC0yIC4wNSAxIDEgMCAwIDAgMi0uMDVaIi8+PHBhdGggZD0iTTMuMiAxMi42NmEuODkuODkgMCAwIDAgLjExIDEuMjMgMSAxIDAgMCAwIDEuMjMuMWMzLjQtMi42NSA0LjgyLTIuNjUgOC4yNyAwYS45NS45NSAwIDAgMCAxLjMyLTEuMzNjLTIuNjQtMy40LTIuNjQtNC44MSAwLTguMjZBLjkuOSAwIDAgMCAxNCAzLjE3YS44OS44OSAwIDAgMC0xLjIzLS4xQzkuNDEgNS43MiA4IDUuNzIgNC41NCAzLjA3QTEuMjcgMS4yNyAwIDAgMCA0IDIuODlhLjg0Ljg0IDAgMCAwLS42Ni4yOC45LjkgMCAwIDAtLjEyIDEuMjNjMi43MiAzLjQ1IDIuNzIgNC43Ny0uMDIgOC4yNloiIHN0eWxlPSJmaWxsOiNmY2ZlZmUiLz48L3N2Zz4=",ol=(0,n.memo)(function(tt){var $e=tt.selectedSubTool,Ke=tt.isAIAnnotationActive,cn=tt.isSegEverythingAvailable,nn=tt.isManualAvailable,jn=tt.brushSize,lr=tt.onChangeSubTool,zn=tt.onChangeBrushSize,Yn=(0,G.bU)(),Zr=Yn.localeText,ir=[{key:m.jB.PenAdd,name:Zr("DDSAnnotator.subtoolbar.mask.penAdd"),icon:(0,y.jsx)(Ie.Z,{component:fo}),available:nn},{key:m.jB.PenErase,name:Zr("DDSAnnotator.subtoolbar.mask.penErase"),icon:(0,y.jsx)(Ie.Z,{component:Er}),available:nn},{key:m.jB.BrushAdd,name:Zr("DDSAnnotator.subtoolbar.mask.brushAdd"),icon:(0,y.jsx)(Ie.Z,{component:No}),available:nn},{key:m.jB.BrushErase,name:Zr("DDSAnnotator.subtoolbar.mask.brushErase"),icon:(0,y.jsx)(Ie.Z,{component:fi}),available:nn}],Qn=(0,n.useMemo)(function(){return[{key:m.jB.AutoSegmentByBox,name:Zr("DDSAnnotator.subtoolbar.mask.box"),icon:(0,y.jsx)(Ie.Z,{component:Ti}),available:!0},{key:m.jB.AutoSegmentByStroke,name:Zr("DDSAnnotator.subtoolbar.mask.stroke"),icon:(0,y.jsx)(Ie.Z,{component:ri}),available:!0},{key:m.jB.AutoSegmentByClick,name:Zr("DDSAnnotator.subtoolbar.mask.click"),icon:(0,y.jsx)(Ie.Z,{component:Ko}),available:!0},{key:m.jB.AutoEdgeStitching,name:Zr("DDSAnnotator.subtoolbar.mask.edgeStitch"),icon:(0,y.jsx)(Ie.Z,{component:bn}),available:!0},{key:m.jB.AutoSegmentEverything,name:Zr("DDSAnnotator.subtoolbar.mask.sam"),icon:(0,y.jsx)(Ie.Z,{component:Ho}),available:cn,description:Zr(cn?"DDSAnnotator.subtoolbar.mask.sam.desc":"DDSAnnotator.subtoolbar.mask.sam.notAllow")}]},[cn]),Un=[m.jB.BrushAdd,m.jB.BrushErase,m.jB.AutoSegmentByStroke,m.jB.AutoEdgeStitching],Ta=(0,n.useMemo)(function(){return[].concat(ir,t()(Qn))},[ir,Qn]),ha=(0,n.useMemo)(function(){for(var Ut=[],un=1;un<=Ta.length;un++)Ut.push(un.toString());return Ut},[Ta]);(0,he.Z)(ha,function(Ut){var un=Ta.find(function(In,gn){return(gn+1).toString()===Ut.key});if(un&&un.available){if(Qn.find(function(In){return un.key===In.key})&&!Ke)return;lr(un.key)}},{exactMatch:!0});var Qt=function(un){Un.includes($e)&&un.type==="mouseup"||un.stopPropagation()},Re=function(un){var In=Ta.findIndex(function(gn){return gn.key===un.key})+1;return(0,y.jsxs)("div",{className:"dds-annotator-subtoolbar-popover",children:[(0,y.jsxs)("div",{children:[(0,y.jsx)("span",{className:"dds-annotator-subtoolbar-popover-title",children:un.name}),In&&(0,y.jsx)("span",{className:"dds-annotator-subtoolbar-popover-key",children:In})]}),un.description&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-popover-divider"}),(0,y.jsx)("div",{children:un.description})]})]})},rt=function(un){var In=Ta.find(function(gn){return gn.key===un});In&&In.available&&lr(un)},Rt=function(un){return(0,y.jsx)(De.Z,{placement:"bottom",content:Re(un),children:(0,y.jsx)(l.ZP,{className:S()("dds-annotator-subtoolbar-btn",{"dds-annotator-subtoolbar-btn-active":$e===un.key&&un.available,"dds-annotator-subtoolbar-btn-limited":un.available}),style:{cursor:un.available?"pointer":"not-allowed"},icon:un.icon,onClick:function(){return rt(un.key)}})},un.key)};return(0,y.jsx)(wt,{eventHandler:Qt,children:(0,y.jsxs)("div",{className:"dds-annotator-subtoolbar",children:[ir.map(function(Ut){return Rt(Ut)}),Ke&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),Qn.map(function(Ut){return Rt(Ut)})]}),Un.includes($e)&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-divider"}),(0,y.jsx)("div",{className:"dds-annotator-subtoolbar-slider",children:(0,y.jsx)($t.Z,{defaultValue:20,min:1,max:100,value:jn,onChange:function(un){return zn(un)}})})]})]})})}),il=function($e){var Ke=$e.topCanvas,cn=$e.editState,nn=$e.drawData,jn=(0,n.useCallback)(function(lr,zn){if(Ke){var Yn=lr;if(zn)switch(zn){case K.Nm.TOP:case K.Nm.BOTTOM:Yn="ns-resize";break;case K.Nm.TOP_LEFT:case K.Nm.BOTTOM_RIGHT:Yn="nwse-resize";break;case K.Nm.BOTTOM_LEFT:case K.Nm.TOP_RIGHT:Yn="nesw-resize";break;default:Yn="ew-resize"}Yn!==Ke.style.cursor&&(Ke.style.cursor=Yn)}},[Ke]);return(0,n.useEffect)(function(){cn.allowMove?jn("grabbing"):nn.selectedTool===m.ru.Drag?jn("grab"):jn("crosshair")},[cn.allowMove]),{updateMouseCursor:jn}},Fl=il,Qs=function($e){var Ke=$e.visible,cn=$e.mode,nn=$e.drawData,jn=$e.isMousePress,lr=$e.setDrawData,zn=$e.setEditState,Yn=$e.onSaveAnnotations,Zr=$e.onAccept,ir=$e.onReject,Qn=$e.onChangeObjectHidden,Un=$e.onChangeCategoryHidden,Ta=$e.removeObject,ha=$e.addObject;return(0,he.Z)(Ze[xe.Save].shortcut,function(Qt){Qt.preventDefault(),cn===k.je.Edit&&Yn(nn)},{exactMatch:!0}),(0,he.Z)(Ze[xe.Accept].shortcut,function(Qt){Qt.preventDefault(),Zr()},{exactMatch:!0}),(0,he.Z)(Ze[xe.Reject].shortcut,function(Qt){Qt.preventDefault(),ir()},{exactMatch:!0}),(0,he.Z)(Ze[xe.PanImage].shortcut,function(Qt){Ke&&(Qt.preventDefault(),Qt.type==="keydown"&&!jn?zn(function(Re){Re.allowMove=!0}):Qt.type==="keyup"&&zn(function(Re){Re.allowMove=!1}))},{events:["keydown","keyup"]}),(0,he.Z)(Ze[xe.CancelCurrObject].shortcut,function(Qt){Ke&&Qt.type==="keyup"&&(nn.creatingObject?lr(function(Re){var rt,Rt,Ut,un,In,gn;((rt=Re.creatingObject)===null||rt===void 0?void 0:rt.type)===m.gr.Mask&&(Rt=Re.creatingObject)!==null&&Rt!==void 0&&(Ut=Rt.maskStep)!==null&&Ut!==void 0&&(un=Ut.points)!==null&&un!==void 0&&un.length&&(In=Re.creatingObject)!==null&&In!==void 0&&(gn=In.tempMaskSteps)!==null&&gn!==void 0&&gn.length?Re.creatingObject.maskStep=void 0:(Re.creatingObject=void 0,Re.activeObjectIndex=-1),Re.AIAnnotation&&(Re.prompt={})}):lr(function(Re){Re.activeObjectIndex=-1}))},{events:["keydown","keyup"]}),(0,he.Z)(Ze[xe.HideCurrObject].shortcut,function(Qt){nn.activeObjectIndex<0||(Qt.preventDefault(),Qn(nn.activeObjectIndex,!nn.objectList[nn.activeObjectIndex].hidden))},{exactMatch:!0}),(0,he.Z)(Ze[xe.HideCurrCategory].shortcut,function(Qt){if(!(nn.activeObjectIndex<0)){Qt.preventDefault();var Re=nn.objectList[nn.activeObjectIndex],rt=Re.label,Rt=Re.hidden;Un(rt,!Rt)}},{exactMatch:!0}),(0,he.Z)(Ze[xe.DeleteCurrObject].shortcut,function(Qt){!Ke||cn!==k.je.Edit||["Delete","Backspace"].includes(Qt.key)&&nn.activeObjectIndex>-1&&Ta(nn.activeObjectIndex)},{events:["keyup"]}),(0,he.Z)(["ctrl"],function(Qt){nn.activeObjectIndex>-1||zn(function(Re){var rt=Qt.type==="keydown";if(Re.isCtrlPressed===rt)return Re;Re.isCtrlPressed=Qt.type==="keydown",Re.focusObjectIndex=-1,Re.foucsObjectAllIndexs=[]})},{events:["keydown","keyup"]}),(0,he.Z)(["v"],function(Qt){zn(function(Re){var rt=Qt.type==="keydown";if(Re.hideCreatingObject===rt)return Re;Re.hideCreatingObject=Qt.type==="keydown"})},{events:["keydown","keyup"]}),(0,he.Z)(["enter"],function(){if(!nn.AIAnnotation&&nn.creatingObject&&nn.creatingObject.type===m.gr.Polygon){var Qt=nn.creatingObject,Re=Qt.polygon,rt=Qt.type,Rt=Qt.hidden,Ut=Qt.label,un=Qt.status,In=Qt.color;if(Re&&Re.group&&Re.group[0].length>2){var gn={polygon:Re,type:rt,hidden:Rt,label:Ut,status:un,color:In};ha(gn)}}},{exactMatch:!0,events:["keyup"]}),{}},Xs=Qs,Os=function($e){var Ke=$e.mode,cn=$e.drawData,nn=$e.setDrawData,jn=$e.setDrawDataWithHistory,lr=$e.setAiLabels,zn=$e.editState,Yn=$e.setEditState,Zr=$e.clientSize,ir=$e.naturalSize,Qn=$e.addObject,Un=$e.removeObject,Ta=$e.updateObject,ha=$e.updateAllObject,Qt=$e.getAnnotColor,Re=(0,G.bU)(),rt=Re.localeText,Rt=(0,n.useCallback)(function(){var Wr;if(cn.isBatchEditing&&((Wr=cn.objectList[cn.activeObjectIndex])===null||Wr===void 0?void 0:Wr.status)!==k.TK.Commited){nn(function(Qr){Qr.objectList[Qr.activeObjectIndex].status=k.TK.Unchecked,Qr.creatingObject=void 0,Qr.prompt={},Qr.activeObjectIndex=-1});return}cn.activeObjectIndex>-1&&Un(cn.activeObjectIndex),nn(function(Qr){Qr.creatingObject=void 0,Qr.prompt={},Qr.activeObjectIndex=-1})},[cn.isBatchEditing,cn.objectList,cn.activeObjectIndex]),Ut=(0,n.useCallback)(function(Wr){var Qr;return zn.annotsDisplayOptions.colorByCategory?Qt(Wr):cn.activeObjectIndex>-1?cn.objectList[cn.activeObjectIndex].color:((Qr=cn.creatingObject)===null||Qr===void 0?void 0:Qr.color)||Qt(Wr)},[zn.annotsDisplayOptions.colorByCategory,Qt,cn.activeObjectIndex,cn.objectList,cn.creatingObject]),un=(0,n.useCallback)(function(Wr){var Qr;if(((Qr=cn.creatingObject)===null||Qr===void 0?void 0:Qr.type)===m.gr.Mask){var _a,za,ya=(0,Y.G9)(Zr,ir,((_a=cn.creatingObject)===null||_a===void 0?void 0:_a.tempMaskSteps)||[],(za=cn.creatingObject)===null||za===void 0?void 0:za.maskCanvasElement);if(ya&&ya.length>0){var io=Ut(Wr),Ba={type:m.gr.Mask,label:Wr,hidden:!1,maskRle:ya,maskCanvasElement:(0,Y.ei)(ya,ir,io),conf:1,status:k.TK.Commited,color:io};cn.activeObjectIndex>-1?Ta(Ba,cn.activeObjectIndex):Qn(Ba,!0)}else ya?H.ZP.warning(rt("DDSAnnotator.anno.mask.emptyWarning")):H.ZP.error(rt("DDSAnnotator.anno.mask.translateToRleError"))}else{var Ea=T()({},cn.objectList[cn.activeObjectIndex]);Ea.label=Wr,zn.annotsDisplayOptions.colorByCategory&&(Ea.color=Qt(Wr)),cn.isBatchEditing&&(Ea.conf=1),Ta(Ea,cn.activeObjectIndex)}nn(function(qa){qa.creatingObject=void 0,qa.prompt={},qa.activeObjectIndex=-1}),Yn(function(qa){qa.latestLabel=Wr})},[cn.creatingObject]),In=(0,n.useCallback)(function(){nn(function(Wr){Wr.creatingObject=void 0,Wr.activeObjectIndex=-1})},[]),gn=(0,n.useCallback)(function(){jn(function(Wr){var Qr=(0,z.cloneDeep)(cn.objectList).filter(function(_a){return _a.status!==k.TK.Unchecked}).map(function(_a){return _a.status=k.TK.Commited,_a.type!==m.gr.Mask&&(_a.color=Qt(_a.label)),_a});Wr.objectList=Qr,Wr.isBatchEditing=!1,Wr.activeObjectIndex=-1,Wr.creatingObject=void 0}),lr([])},[cn.objectList]),rn=(0,n.useCallback)(function(){jn(function(Wr){var Qr=(0,z.cloneDeep)(cn.objectList).filter(function(_a){return _a.status===k.TK.Commited});Wr.objectList=Qr,Wr.isBatchEditing=!1,Wr.activeObjectIndex=-1,Wr.creatingObject=void 0})},[cn.objectList]),Ur=(0,n.useCallback)(function(Wr){Ke!==k.je.Edit||Wr===cn.selectedTool||cn.isBatchEditing||nn(function(Qr){Qr.selectedTool=Wr,Wr===m.ru.Mask&&(Qr.selectedSubTool=Qr.AIAnnotation?m.jB.AutoSegmentByBox:m.jB.PenAdd),Qr.activeObjectIndex=-1,Qr.creatingObject=void 0})},[Ke,cn.selectedTool,cn.isBatchEditing]),aa=(0,n.useCallback)(function(Wr){Ke!==k.je.Edit||Wr===cn.selectedSubTool||cn.isBatchEditing||(nn(function(Qr){Qr.selectedSubTool=Wr}),Wr===m.jB.AutoEdgeStitching&&cn.creatingObject&&un(cn.creatingObject.label||zn.latestLabel||""))},[Ke,cn.selectedSubTool,cn.isBatchEditing]),da=(0,n.useCallback)(function(Wr,Qr){nn(function(_a){_a.selectedTool=Wr,_a.selectedSubTool=Qr})},[]),ua=(0,n.useCallback)(function(){nn(function(Wr){Wr.objectList=Wr.objectList.filter(function(Qr){return Qr.status===k.TK.Commited}),Wr.AIAnnotation=!1,Wr.isBatchEditing=!1,Wr.creatingObject=void 0,Wr.prompt={}})},[]),Aa=(0,n.useCallback)(function(Wr){Ke===k.je.Edit&&nn(function(Qr){Qr.brushSize=Wr})},[Ke]),Oo=function(){c.Z.info({centered:!0,closable:!0,title:rt("DDSAnnotator.smart.infoModal.title"),content:rt("DDSAnnotator.smart.infoModal.content"),okText:rt("DDSAnnotator.smart.infoModal.action"),onOk:function(){window.open("https://deepdataspace.com","_blank")}})},Co=(0,n.useCallback)(function(Wr){Ke!==k.je.Edit||cn.isBatchEditing||nn(function(Qr){Qr.AIAnnotation=Wr})},[Ke,cn.isBatchEditing]),Sa=(0,n.useCallback)(function(){var Wr,Qr,_a=((Wr=cn.creatingObject)===null||Wr===void 0?void 0:Wr.label)||"",za=Qt(_a);Qn({type:m.gr.Polygon,polygon:(Qr=cn.creatingObject)===null||Qr===void 0?void 0:Qr.polygon,label:_a,color:za,hidden:!1,status:k.TK.Commited}),nn(function(ya){ya.activeObjectIndex=ya.objectList.length-1,ya.prompt={}})},[cn.creatingObject]),Ia=(0,n.useCallback)(function(){nn(function(Wr){Wr.creatingObject=void 0,Wr.activeObjectIndex=-1,Wr.prompt={}})},[]),ia=(0,n.useCallback)(function(Wr){jn(function(Qr){var _a=(0,z.cloneDeep)(cn.objectList).map(function(za){return za.status===k.TK.Commited?za:za.conf===void 0?(za.status=k.TK.Unchecked,za):(za.status=za.confWr[1]?k.TK.Unchecked:k.TK.Checked,za)});Qr.objectList=_a})},[cn.objectList]),oo=(0,n.useCallback)(function(Wr){jn(function(Qr){var _a=(0,z.cloneDeep)(cn.objectList).map(function(ya){return ya.status===k.TK.Commited||(ya.status=ya.conf&&ya.conf>=Wr?k.TK.Checked:k.TK.Unchecked),ya});Qr.objectList=_a;var za=_a.filter(function(ya){return ya.status===k.TK.Checked}).length;H.ZP.success(rt("DDSAnnotator.smart.tip.annotationApplied",{count:za}))})},[cn.objectList]),Sr=(0,n.useCallback)(function(Wr){Yn(function(Qr){Qr.imageDisplayOptions=Wr})},[]),Nr=(0,n.useCallback)(function(Wr){Yn(function(Qr){Qr.annotsDisplayOptions=Wr})},[]),Da=(0,n.useCallback)(function(){if(!(!cn.objectList||!cn.objectList.length)){var Wr=(0,z.cloneDeep)(cn.objectList).map(function(Qr){var _a=Qt(Qr.label);return Qr.type===m.gr.Mask&&Qr.maskRle&&Qr.maskRle.length>0?T()(T()({},Qr),{},{color:_a,maskCanvasElement:(0,Y.ei)(Qr.maskRle,ir,_a)}):T()(T()({},Qr),{},{color:_a})});ha(Wr)}},[cn.objectList,Qt]);return{onDeleteCurrObject:Rt,onFinishCurrCreate:un,onCloseAnnotationEditor:In,onAcceptValidObjects:gn,onAbortBatchObjects:rn,selectTool:Ur,selectSubTool:aa,forceChangeTool:da,onExitAIAnnotation:ua,setBrushSize:Aa,activeAIAnnotation:Co,displayAIModeUnavailableModal:Oo,onSaveAIPolygon:Sa,onCancelAIPolygon:Ia,onChangeSkeletonConf:ia,onChangeLimitConf:oo,onChangeImageDisplayOpts:Sr,onChangeAnnotsDisplayOpts:Nr,onChangeColorMode:Da}},Us=Os,sl=e(23671),Hl=e(53807),vs=function(tt,$e){if($e===void 0&&($e=0),typeof requestAnimationFrame=="undefined")return{id:setInterval(tt,$e)};var Ke=new Date().getTime(),cn={id:0},nn=function(){var jn=new Date().getTime();jn-Ke>=$e&&(tt(),Ke=new Date().getTime()),cn.id=requestAnimationFrame(nn)};return cn.id=requestAnimationFrame(nn),cn};function Ss(tt){return typeof cancelAnimationFrame=="undefined"}var Ds=function(tt){if(Ss(tt.id))return clearInterval(tt.id);cancelAnimationFrame(tt.id)};function Rs(tt,$e,Ke){var cn=Ke==null?void 0:Ke.immediate,nn=(0,sl.Z)(tt),jn=(0,n.useRef)();(0,n.useEffect)(function(){if(!(!(0,Hl.hj)($e)||$e<0))return cn&&nn.current(),jn.current=vs(function(){nn.current()},$e),function(){jn.current&&Ds(jn.current)}},[$e]);var lr=(0,n.useCallback)(function(){jn.current&&Ds(jn.current)},[]);return lr}var Zl=Rs,Js=40,cs=10,Et=function($e){var Ke=$e.visible,cn=$e.mode,nn=$e.drawData,jn=$e.setDrawData,lr=$e.editState,zn=$e.setEditState,Yn=$e.clientSize,Zr=$e.contentMouse,ir=$e.categories,Qn=$e.updateRender,Un=$e.updateMouseCursor,Ta=$e.objectHooksMap,ha=$e.imagePos,Qt=$e.containerMouse,Re=$e.limitActiveObject,rt=$e.getAnnotColor,Rt=(0,n.useRef)({topMin:0,topMax:0,leftMin:0,leftMax:0}),Ut=(0,n.useState)(void 0),un=s()(Ut,2),In=un[0],gn=un[1];Zl(function(){var Ia,ia,oo,Sr,Nr=!1;(Ia=Rt.current.direction)!==null&&Ia!==void 0&&Ia.includes("TOP")&&ha.current.yRt.current.topMin&&(ha.current.y-=8,Nr=!0),(oo=Rt.current.direction)!==null&&oo!==void 0&&oo.includes("LEFT")&&ha.current.xRt.current.leftMin&&(ha.current.x-=8,Nr=!0),Nr||gn(void 0),Qn()},In);var rn=function(){var ia="",oo=Js,Sr=Qt.elementH-Zr.elementH-Js,Nr=Js,Da=Qt.elementW-Zr.elementW-Js;Qt.elementY<=cs&&ha.current.y=Qt.elementH-cs&&ha.current.y>Sr&&(ia="BOTTOM"),Qt.elementX<=cs&&ha.current.x=Qt.elementW-cs&&ha.current.x>Da&&(ia+=ia?"_RIGHT":"RIGHT"),ia?(Rt.current={direction:ia,topMax:oo,topMin:Sr,leftMax:Nr,leftMin:Da},gn(16)):gn(void 0),Qn()},Ur=function(){var ia;return nn.isBatchEditing&&(nn.selectedTool===m.ru.Rectangle&&lr.isCtrlPressed?ia=function(Sr){return Sr.status===k.TK.Unchecked}:ia=function(Sr){return Sr.status!==k.TK.Unchecked}),ia},aa=function(){if((0,K.jt)(Qt)){var ia=(0,K.Z0)(Yn,Zr,nn.activeObjectIndex,nn.objectList,Ur());if(ia>-1&&ia===nn.activeObjectIndex){zn(function(Qr){Qr.focusObjectIndex=ia});var oo=nn.objectList[nn.activeObjectIndex],Sr=(0,K.o7)(Zr,oo),Nr=Sr.focusEleIndex,Da=Sr.focusEleType,Wr=Sr.focusPolygonInfo;zn(function(Qr){Qr.focusEleIndex=Nr,Qr.focusEleType=Da,Qr.focusPolygonInfo=Wr})}else nn.selectedTool===m.ru.Drag||nn.isBatchEditing?zn(function(Qr){Qr.focusObjectIndex=ia,Qr.focusEleIndex=-1,Qr.focusEleType=m.Yq.None,Qr.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}}):zn(function(Qr){Qr.focusObjectIndex=-1,Qr.focusEleIndex=-1,Qr.focusEleType=m.Yq.None,Qr.focusPolygonInfo={index:-1,pointIndex:-1,lineIndex:-1}})}},da=(0,n.useCallback)(function(Ia,ia){if(!(Ia<0)){var oo=(ia==null?void 0:ia.button)===2;if(oo){var Sr=(0,K.RF)(Yn,Zr,nn.objectList,Ur());Sr.length>0?zn(function(Nr){Nr.foucsObjectAllIndexs=Sr}):zn(function(Nr){Nr.foucsObjectAllIndexs=[]});return}jn(function(Nr){Nr.selectedTool===m.ru.Rectangle&&Nr.isBatchEditing&&lr.isCtrlPressed?(Nr.objectList[Ia].status=k.TK.Checked,zn(function(Da){Da.focusObjectIndex=-1})):(Nr.activeObjectIndex=Ia,Nr.creatingObject=T()(T()({},nn.objectList[Ia]),{},{currIndex:void 0,startPoint:void 0,tempMaskSteps:[],maskStep:void 0}),Nr.selectedTool!==m.ru.Drag&&Nr.objectList[Ia]&&m.Zo[Nr.selectedTool]!==Nr.objectList[Ia].type&&(Nr.selectedTool=m.ru.Drag))})}},[Yn.width,Yn.height,Zr,nn.objectList]),ua=function(){if(!lr.foucsObjectAllIndexs.length)return(0,y.jsx)(y.Fragment,{});var ia=function(Da){Da.stopPropagation()},oo=function(Da){zn(function(Wr){Wr.focusObjectIndex=Da})},Sr=function(Da){da(Da),zn(function(Wr){Wr.foucsObjectAllIndexs=[]})};return(0,y.jsx)("div",{className:"dds-annotator-dropdown-options",onMouseDown:ia,onMouseUp:ia,onMouseMove:ia,onContextMenu:function(Da){return Da.preventDefault()},children:lr.foucsObjectAllIndexs.map(function(Nr){var Da,Wr,Qr;return(0,y.jsxs)("div",{className:"dds-annotator-dropdown-options-object",onMouseEnter:function(){return oo(Nr)},onMouseDown:function(){return Sr(Nr)},children:[(0,y.jsx)("div",{className:"dds-annotator-dropdown-options-object-dot",style:{backgroundColor:((Da=nn.objectList[Nr])===null||Da===void 0?void 0:Da.color)||"#fff"}}),(Wr=nn.objectList[Nr])===null||Wr===void 0?void 0:Wr.label,nn.isBatchEditing&&" (".concat((0,ea.O)(((Qr=nn.objectList[Nr])===null||Qr===void 0?void 0:Qr.conf)||0),")")]},Nr)})})},Aa=function(ia){if(!(!Ke||lr.allowMove||lr.isRequiring||!(0,K.jt)(Zr))&&(zn(function(Sr){Sr.foucsObjectAllIndexs=[]}),!(nn.creatingObject&&nn.activeObjectIndex>-1&&cn===k.je.Edit&&Ta[nn.creatingObject.type].startEditingWhenMouseDown({event:ia,object:nn.creatingObject}))))if(nn.selectedTool!==m.ru.Drag&&!nn.isBatchEditing){var oo=m.Zo[nn.selectedTool];if(cn===k.je.Edit&&Ta[oo].startCreatingWhenMouseDown({event:ia,object:nn.creatingObject,point:{x:Zr.elementX,y:Zr.elementY},basic:{hidden:!1,label:lr.latestLabel||ir[0].name,status:k.TK.Commited,color:rt(lr.latestLabel||ir[0].name)}}))return}else lr.focusObjectIndex>-1&&!Re?da(lr.focusObjectIndex,ia):zn(function(Sr){Sr.allowMove=!0})},Oo=function(ia){if(!(!Ke||lr.isRequiring||lr.allowMove)){if(lr.focusObjectIndex>-1?Un("pointer"):nn.selectedTool!==m.ru.Drag?Un("crosshair"):Un("grab"),nn.creatingObject&&nn.activeObjectIndex>-1){if(cn===k.je.Edit&&Ta[nn.creatingObject.type].updateEditingWhenMouseMove({event:ia,object:nn.creatingObject})){rn();return}}else if(nn.selectedTool!==m.ru.Drag&&nn.activeObjectIndex<0){var oo=m.Zo[nn.selectedTool];if(cn===k.je.Edit&&Ta[oo].updateCreatingWhenMouseMove({event:ia,object:nn.creatingObject})){rn();return}}aa(),Qn()}},Co=function(ia){if(gn(void 0),!(!Ke||lr.isRequiring)){if(lr.allowMove){zn(function(Sr){Sr.allowMove=!1});return}if(nn.creatingObject&&nn.activeObjectIndex>-1){if(cn===k.je.Edit&&Ta[nn.creatingObject.type].finishEditingWhenMouseUp({event:ia,object:nn.creatingObject}))return}else if(nn.selectedTool!==m.ru.Drag&&nn.activeObjectIndex<0){var oo=m.Zo[nn.selectedTool];if(cn===k.je.Edit&&Ta[oo].finishCreatingWhenMouseUp({event:ia,object:nn.creatingObject}))return}}},Sa=(0,n.useCallback)(function(Ia){zn(function(ia){ia.focusObjectIndex=Ia})},[]);return(0,Jt.Z)("mousedown",function(Ia){Aa(Ia)}),(0,Jt.Z)("mousemove",function(Ia){Oo(Ia)}),(0,Jt.Z)("mouseup",function(Ia){Co(Ia)}),{selectFocusObject:da,forceChangeFocusObject:Sa,mouseRightObjectsDropDownRender:ua}},Po=Et,ls=e(81179),Eo=e(34095),ll=function($e){var Ke=$e.visible,cn=$e.drawData,nn=$e.editState,jn=$e.clientSize,lr=$e.imagePos,zn=$e.containerMouse,Yn=$e.canvasRef,Zr=$e.activeCanvasRef,ir=$e.imgRef,Qn=$e.objectHooksMap,Un=$e.getCustomObjectStyles,Ta=function(gn,rn,Ur){var aa=[(0,jo.a7)(rn,Eo.rl.DEFAULT),(0,jo.a7)(rn,Eo.mh.DEFAULT),Eo.s_.DEFAULT],da=aa[0],ua=aa[1],Aa=aa[2];Ur==="focus"?(Aa=Eo.s_.FOCUS,da=(0,jo.a7)(rn,Eo.rl.FOCUS),ua=(0,jo.a7)(rn,Eo.mh.FOCUS)):Ur==="editing"?(Aa=Eo.s_.CREATING,da=(0,jo.a7)(rn,Eo.rl.CREATING),ua=(0,jo.a7)(rn,Eo.mh.CREATING)):Ur==="creating"&&(Aa=Eo.s_.CREATING,da=Eo.XQ.CREATING,ua=Eo.Bt.CREATING);var Oo=(Un==null?void 0:Un(gn,rn))||{};return T()({strokeColor:da,fillColor:ua,maskAlpha:Aa,strokeDash:[0],thickness:2,pointAplha:1},Oo)},ha=function(gn){var rn=Ta(gn,gn.color,"creating");Qn[gn.type].renderCreatingObject({object:gn,color:gn.color,styles:rn})},Qt=function(gn){if(!gn.hidden){var rn=(0,K.lT)(gn,{x:-lr.current.x,y:-lr.current.y}),Ur=nn.focusObjectIndex===cn.activeObjectIndex,aa=Ta(gn,gn.color,Ur?"focus":"editing");Qn[gn.type].renderEditingObject({object:rn,color:gn.color,styles:aa,isFocus:Ur})}},Re=function(gn){var rn=gn.prompt;rn.maskPrompts||rn.creatingMask||rn.activeRectWhileLoading?Qn[m.gr.Mask].renderPrompt({prompt:rn}):rn.segmentationClicks&&Qn[m.gr.Polygon].renderPrompt({prompt:rn})},rt=function(gn){if(!(!Ke||!Zr.current)){(0,ls.ix)(Zr.current,{width:zn.elementW,height:zn.elementH}),Zr.current.getContext("2d").imageSmoothingEnabled=!1,(0,ls.UN)(Zr.current);var rn=gn||cn;rn.creatingObject&&(rn.activeObjectIndex>-1?Qt(rn.creatingObject):ha(rn.creatingObject)),Re(rn)}},Rt=function(gn,rn){var Ur=(0,K.lT)(gn,{x:-lr.current.x,y:-lr.current.y}),aa=Ur.type,da=Ta(gn,gn.color,rn?"focus":void 0);(0,ls.M5)(Yn.current,cn.creatingObject?.6:1),Qn[aa].renderObject({object:Ur,color:gn.color,styles:da,isFocus:rn})},Ut=function(gn,rn){gn.forEach(function(Ur,aa){Ur.hidden||aa===rn||aa===nn.focusObjectIndex||Rt(Ur,!1)})},un=function(gn){if(!(!Ke||!Yn.current||!ir.current)){(0,ls.ix)(Yn.current,{width:zn.elementW,height:zn.elementH}),Yn.current.getContext("2d").imageSmoothingEnabled=!1,(0,ls.UN)(Yn.current),(0,ls.KJ)(Yn.current,nn.imageDisplayOptions.brightness,nn.imageDisplayOptions.contrast,nn.imageDisplayOptions.saturate),(0,ls.AE)(Yn.current,ir.current,{x:lr.current.x,y:lr.current.y,width:jn.width,height:jn.height}),(0,ls.ku)(Yn.current);var rn=gn||cn;Ut(rn.objectList,rn.activeObjectIndex),rt(rn),nn.focusObjectIndex>-1&&nn.focusObjectIndex!==cn.activeObjectIndex&&rn.objectList[nn.focusObjectIndex]&&!rn.objectList[nn.focusObjectIndex].hidden&&Rt(rn.objectList[nn.focusObjectIndex],!0)}};return{updateRender:un}},xr=ll,qs=function($e){var Ke=$e.imagePos,cn=$e.clientSize,nn=$e.preClientSize,jn=$e.clearPreClientSize,lr=$e.naturalSize,zn=$e.annotations,Yn=$e.setAnnotations,Zr=$e.labelColors,ir=$e.drawData,Qn=$e.setDrawData,Un=$e.editState,Ta=$e.setEditState,ha=$e.initObjectList,Qt=$e.updateRender,Re=$e.clearHistory,rt=$e.objectsFilter,Rt=function(Ur){if(!(!cn.width||!cn.height||!lr.width||!lr.height)){if(!ir.initialized||Ur)Qn(function(da){da.initialized=!0}),ha(zn,Zr);else if(ir.initialized&&nn){var aa=(0,K.hv)(ir,nn,cn);Qn(aa),Qt(aa),jn()}}},Ut=(0,n.useCallback)(function(){Qn(T()(T()({},(0,z.cloneDeep)(k.f7)),{},{brushSize:ir.brushSize,selectedTool:ir.selectedTool,selectedSubTool:ir.selectedSubTool,AIAnnotation:ir.AIAnnotation}))},[k.f7,ir.brushSize,ir.selectedSubTool,ir.selectedTool,ir.AIAnnotation]),un=(0,n.useCallback)(function(){Ta(T()(T()({},(0,z.cloneDeep)(k.rl)),{},{imageDisplayOptions:Un.imageDisplayOptions,annotsDisplayOptions:Un.annotsDisplayOptions}))},[k.rl,Un.imageDisplayOptions,Un.annotsDisplayOptions]),In=(0,n.useCallback)(function(rn){var Ur=rn!=null&&rn.objects?t()(rn==null?void 0:rn.objects):[],aa=rn&&rt?rt(rn):Ur;Yn(aa)},[rt]),gn=(0,n.useCallback)(function(rn,Ur){var aa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Ut(),un(),aa&&Re(),Ur&&In(rn)},[Ut,un,Re,In]);return(0,n.useEffect)(function(){Qt()},[ir,Un,Ke.current.x,Ke.current.y]),(0,n.useEffect)(function(){Rt()},[cn.height,cn.width]),(0,n.useEffect)(function(){Rt(!0)},[zn,lr.width,lr.height]),{rebuildDrawData:Rt,resetDataWithImageData:gn}},ul=qs,ws=e(68270);function cl(tt){var $e=tt.categories,Ke=tt.editState,cn=(0,n.useMemo)(function(){return(0,jo.Cj)($e.map(function(zn){return zn.name}))},[$e]),nn=(0,n.useRef)(0),jn=function(Yn){var Zr=.618;nn.current=Yn+Zr;var ir=(Yn+Zr)%1,Qn=(0,jo.WE)(ir,.8,.95);return(0,jo.ZT)(Qn)};(0,n.useEffect)(function(){nn.current=0},[Ke.annotsDisplayOptions.colorByCategory]);var lr=(0,n.useCallback)(function(zn,Yn){return Ke.annotsDisplayOptions.colorByCategory||Yn?cn[zn]||"#fff":jn(nn.current)},[Ke.annotsDisplayOptions.colorByCategory,cn,jn,nn.current]);return{labelColors:cn,getAnnotColor:lr}}var wl=e(79233),Ro=e(22283),ji=Object.defineProperty,Eu=Object.getOwnPropertySymbols,Pu=Object.prototype.hasOwnProperty,po=Object.prototype.propertyIsEnumerable,ds=(tt,$e,Ke)=>$e in tt?ji(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,ks=(tt,$e)=>{for(var Ke in $e||($e={}))Pu.call($e,Ke)&&ds(tt,Ke,$e[Ke]);if(Eu)for(var Ke of Eu($e))po.call($e,Ke)&&ds(tt,Ke,$e[Ke]);return tt};const ba=tt=>React.createElement("svg",ks({xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:600,height:600,fill:"none"},tt),React.createElement("path",{fill:"#FFF",d:"M0 0h600v600H0z"}),React.createElement("mask",{id:"img-broken_svg__b",fill:"#fff"},React.createElement("use",{xlinkHref:"#img-broken_svg__a"})),React.createElement("g",{mask:"url(#img-broken_svg__b)"},React.createElement("path",{style:{fill:"#f3f3fa"},opacity:.6,d:"M520.82 276.411c.7 7.103 1.058 14.305 1.058 21.589 0 122.04-100.54 221-224.51 221-99.159 0-183.328-63.313-213.047-151.107h-8.426c-3.4 0-6.17-2.76-6.17-6.16A6.168 6.168 0 0 1 73.608 356H84c7.18 0 13-5.82 13-13v-1c0-7.18-5.82-13-13-13h-8.95l-.023-.161H52.855c-5.68 0-10.28-4.6-10.28-10.28s4.6-10.28 10.28-10.28h20.241A221.042 221.042 0 0 1 72.858 298c0-32.629 7.187-63.608 20.086-91.486H57c-15.46 0-28-12.541-28-28.001v-1.56c0-14.913 11.67-27.11 26.373-27.953H182c5.52 0 10-4.48 10-10s-4.48-10-10-10h-29.294l.732-.605h-14.59c-10.49 0-19-8.51-19-19v-1.06c0-10.49 8.51-19 19-19h84.392C246.448 81.345 271.393 77 297.368 77c51.023 0 98.077 16.763 135.787 45H418c-7.18 0-13 5.82-13 13v1c0 7.18 5.82 13 13 13h45.166a222.478 222.478 0 0 1 23.253 29.763h21.461c7.73 0 14 6.27 14 14v.78c0 6.387-4.281 11.777-10.128 13.457H492c-8.84 0-16 7.16-16 16v5c0 8.84 7.16 16 16 16h67.901c6.952 1.741 12.097 8.028 12.097 15.521v.89c0 8.84-7.16 16-16 16z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__c)",d:"M147.977 187.468c-14.64 0-26.51 11.87-26.51 26.5h-5.34c-6.73 0-12.19 5.93-12.19 13.25s5.46 13.25 12.19 13.25h65.65c6.74 0 12.19-5.93 12.19-13.25s-5.45-13.25-12.19-13.25h-7.31c0-14.63-11.86-26.5-26.49-26.5z"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__d)",d:"M313.088 148.128c0 5.25 3.91 9.5 8.74 9.5h47.07c4.83 0 8.74-4.25 8.74-9.5s-3.91-9.5-8.74-9.5h-5.24c0-10.5-8.51-19-19-19s-19 8.5-19 19h-3.83c-4.83 0-8.74 4.25-8.74 9.5z"}),React.createElement("path",{style:{fill:"#e7eaf0"},d:"M508 453.5c0 11.036-19.12 20.438-45.869 23.988-6.38 1.885-13.556 3.663-21.438 5.315A16.82 16.82 0 0 1 441 486c0 24.3-52.84 44-118 44-58.623 0-107.274-15.946-116.445-36.841C128.328 487.215 73 472.59 73 455.5c0-22.36 94.71-40.5 211.5-40.5 61.363 0 116.631 5.008 155.269 13.004C477.563 428.253 508 439.575 508 453.5z"}),React.createElement("g",{fillRule:"evenodd"},React.createElement("path",{fill:"url(#img-broken_svg__e)",d:"M356 62c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V38.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09C353.97.39 352.63 0 351.13 0c-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L347 62h9z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__f)",d:"M385 60.7c.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L387 82h9c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V58.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09c-1.19-.78-2.53-1.17-4.03-1.17-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5z",transform:"translate(92 370)"}),React.createElement("path",{fill:"url(#img-broken_svg__g)",d:"M35.34 1.66C33.67.55 31.78 0 29.68 0c-2.4 0-4.36.73-5.89 2.19-1.52 1.46-2.83 3.21-3.95 5.26h-.09L5.97 32.96c-.94.81-1.71 1.78-2.32 2.89a8.845 8.845 0 0 0-1.1 3.59l-2.2 5.09c-.11.29-.2.58-.26.87 0 0-.09.62-.09.97 0 2.04.64 3.81 1.93 5.3a9 9 0 0 0 4.83 2.93l9.92.53c.47.82 1.07 1.46 1.8 1.93s1.6.7 2.59.7c1.23 0 2.34-.44 3.34-1.32v13.41c0 3.86-.03 6.95-.09 9.25-.06 2.31-.12 4.14-.18 5.49L23.88 88h12.64c-.17-1.93-.32-3.94-.44-6.05-.11-1.75-.21-3.73-.3-5.92s-.13-4.36-.13-6.53V54.87l13.69-.18h1.67c.59 0 1.11-.02 1.58-.09.59 0 1.14-.02 1.67-.08a7.599 7.599 0 0 0 3.42-2.77c.88-1.25 1.32-2.7 1.32-4.34l-.18-1.13-.35-1.4c-.17-.53-.32-1.03-.44-1.5l-1.49-2.97c.29-1.06.44-2.05.44-2.98 0-2.28-.64-4.3-1.93-6.05s-2.93-2.98-4.92-3.69L39.07 6.05c-.82-1.82-2.07-3.28-3.73-4.39z",transform:"translate(92 370)"})),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__h)",opacity:.5,d:"M195.17 339.008 336 259.118l-180.79-56.11L3 241.048l192.17 97.96z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__i)",d:"m120.19 238.468 16.76-67-23.23-50.7L147 87.008l-137.81.8A9.242 9.242 0 0 0 0 97.058v132.16c0 5.12 4.15 9.25 9.26 9.25l103.61 4.54 7.32-4.54z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__j)",d:"M0 233.728c0 5.13 4.13 9.28 9.22 9.28h103.19l17.59-70.83-24.95-52.65L130 93.008l-120.85.8c-5.05.04-9.15 4.18-9.15 9.28v130.64z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__k)",d:"M129 177.408s-39.15 25.41-39.87 25.47c-15.59-13.61-41.17-39.55-41.17-39.55-2.95-3.01-8.11-3.11-11.19-.2L0 214.158v18.8c0 5.05 3.11 10.05 10.1 10.05h102.84l10.05-40.81 6.01-24.79z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__l)",d:"m161.114 121.588 10.21 50.9-39.15 72.66 77.97 21.2c5.34 2.12 11.32-1.05 12.51-6.63l36.14-134.09c1.03-4.82-1.95-9.58-6.76-10.81l-53.81-13.81-37.11 20.58z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__m)",d:"m153.53 125.233 10.21 50.89-37.74 67.36 77.98 21.21c5.33 2.12 11.31-1.04 12.5-6.63l34.73-128.8c1.03-4.82-1.96-9.58-6.76-10.81l-53.81-13.81-37.11 20.59z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__n)",d:"M181.344 174.368c-2-3.27-6.23-4.33-9.52-2.39l-8.09 4.16-37.65 67.37s67.22 18.7 75.12 20.47c7.91 1.76 13.7.54 14.89-5.08l3.37-11.51-38.12-73.02z",transform:"translate(180 194.992)"}),React.createElement("path",{style:{fill:"#fff"},d:"M223.104 151.697c0-9.32-7.57-16.88-16.9-16.88-9.33 0-16.89 7.56-16.89 16.88s7.56 16.88 16.89 16.88c9.33 0 16.9-7.56 16.9-16.88z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__o)",d:"m50.921 37.823 12.386-6.041 11.209 22.982-7.452-32.637-12.592 6.142L42.197 6.864l8.724 30.959z",transform:"translate(180 194.992)"}),React.createElement("path",{fillRule:"evenodd",fill:"url(#img-broken_svg__p)",d:"m217.598 48.895 17.888 17.184-30.945 23.817s47.929-22.37 46.996-23.709c-.925-1.335-18.57-16.992-18.57-16.992l24.134-25.537-39.503 25.236z",transform:"translate(180 194.992)"})),React.createElement("defs",null,React.createElement("linearGradient",{id:"img-broken_svg__i",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__p",x1:198.923,y1:151.68,x2:253.588,y2:43.245,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__d",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__e",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__f",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__g",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__h",x1:"50%",y1:"30.387%",x2:"-31.215%",y2:"-60.228%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E8EBF1",stopOpacity:.24}),React.createElement("stop",{offset:1,stopColor:"#A2ABB9"})),React.createElement("linearGradient",{id:"img-broken_svg__c",x1:"144.588%",y1:"98.8%",x2:"29.516%",y2:"100%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#E0E5EF",stopOpacity:0}),React.createElement("stop",{offset:1,stopColor:"#E0E5EF"})),React.createElement("linearGradient",{id:"img-broken_svg__j",x1:"137.408%",y1:"115.518%",x2:"64.225%",y2:"-9.666%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__k",x1:"93.55%",y1:"132.782%",x2:"29.55%",y2:"19.901%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__l",x1:"178.579%",y1:"114.41%",x2:"-67.6%",y2:"-21.639%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__m",x1:"113.805%",y1:"123.201%",x2:"30.832%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__n",x1:"110.007%",y1:"128.49%",x2:"50%",y2:"0%",gradientUnits:"objectBoundingBox"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("linearGradient",{id:"img-broken_svg__o",x1:92.534,y1:94.384,x2:55.523,y2:19.166,gradientUnits:"userSpaceOnUse"},React.createElement("stop",{offset:0,stopColor:"#A2ABB9"}),React.createElement("stop",{offset:1,stopColor:"#E7EAF0"})),React.createElement("path",{id:"img-broken_svg__a",d:"M0 0h600v600H0z"})));var Tl="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg2MDB2NjAwSDB6Ii8+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PGcgbWFzaz0idXJsKCNiKSI+PHBhdGggc3R5bGU9ImZpbGw6I2YzZjNmYSIgb3BhY2l0eT0iLjYiIGQ9Ik01MjAuODIgMjc2LjQxMWMuNyA3LjEwMyAxLjA1OCAxNC4zMDUgMS4wNTggMjEuNTg5IDAgMTIyLjA0LTEwMC41NCAyMjEtMjI0LjUxIDIyMS05OS4xNTkgMC0xODMuMzI4LTYzLjMxMy0yMTMuMDQ3LTE1MS4xMDdoLTguNDI2Yy0zLjQgMC02LjE3LTIuNzYtNi4xNy02LjE2QTYuMTY4IDYuMTY4IDAgMCAxIDczLjYwOCAzNTZIODRjNy4xOCAwIDEzLTUuODIgMTMtMTN2LTFjMC03LjE4LTUuODItMTMtMTMtMTNoLTguOTVsLS4wMjMtLjE2MUg1Mi44NTVjLTUuNjggMC0xMC4yOC00LjYtMTAuMjgtMTAuMjhzNC42LTEwLjI4IDEwLjI4LTEwLjI4aDIwLjI0MUEyMjEuMDQyIDIyMS4wNDIgMCAwIDEgNzIuODU4IDI5OGMwLTMyLjYyOSA3LjE4Ny02My42MDggMjAuMDg2LTkxLjQ4Nkg1N2MtMTUuNDYgMC0yOC0xMi41NDEtMjgtMjguMDAxdi0xLjU2YzAtMTQuOTEzIDExLjY3LTI3LjExIDI2LjM3My0yNy45NTNIMTgyYzUuNTIgMCAxMC00LjQ4IDEwLTEwcy00LjQ4LTEwLTEwLTEwaC0yOS4yOTRsLjczMi0uNjA1aC0xNC41OWMtMTAuNDkgMC0xOS04LjUxLTE5LTE5di0xLjA2YzAtMTAuNDkgOC41MS0xOSAxOS0xOWg4NC4zOTJDMjQ2LjQ0OCA4MS4zNDUgMjcxLjM5MyA3NyAyOTcuMzY4IDc3YzUxLjAyMyAwIDk4LjA3NyAxNi43NjMgMTM1Ljc4NyA0NUg0MThjLTcuMTggMC0xMyA1LjgyLTEzIDEzdjFjMCA3LjE4IDUuODIgMTMgMTMgMTNoNDUuMTY2YTIyMi40NzggMjIyLjQ3OCAwIDAgMSAyMy4yNTMgMjkuNzYzaDIxLjQ2MWM3LjczIDAgMTQgNi4yNyAxNCAxNHYuNzhjMCA2LjM4Ny00LjI4MSAxMS43NzctMTAuMTI4IDEzLjQ1N0g0OTJjLTguODQgMC0xNiA3LjE2LTE2IDE2djVjMCA4Ljg0IDcuMTYgMTYgMTYgMTZoNjcuOTAxYzYuOTUyIDEuNzQxIDEyLjA5NyA4LjAyOCAxMi4wOTcgMTUuNTIxdi44OWMwIDguODQtNy4xNiAxNi0xNiAxNnoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjYykiIGQ9Ik0xNDcuOTc3IDE4Ny40NjhjLTE0LjY0IDAtMjYuNTEgMTEuODctMjYuNTEgMjYuNWgtNS4zNGMtNi43MyAwLTEyLjE5IDUuOTMtMTIuMTkgMTMuMjVzNS40NiAxMy4yNSAxMi4xOSAxMy4yNWg2NS42NWM2Ljc0IDAgMTIuMTktNS45MyAxMi4xOS0xMy4yNXMtNS40NS0xMy4yNS0xMi4xOS0xMy4yNWgtNy4zMWMwLTE0LjYzLTExLjg2LTI2LjUtMjYuNDktMjYuNXoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjZCkiIGQ9Ik0zMTMuMDg4IDE0OC4xMjhjMCA1LjI1IDMuOTEgOS41IDguNzQgOS41aDQ3LjA3YzQuODMgMCA4Ljc0LTQuMjUgOC43NC05LjVzLTMuOTEtOS41LTguNzQtOS41aC01LjI0YzAtMTAuNS04LjUxLTE5LTE5LTE5cy0xOSA4LjUtMTkgMTloLTMuODNjLTQuODMgMC04Ljc0IDQuMjUtOC43NCA5LjV6Ii8+PHBhdGggc3R5bGU9ImZpbGw6I2U3ZWFmMCIgZD0iTTUwOCA0NTMuNWMwIDExLjAzNi0xOS4xMiAyMC40MzgtNDUuODY5IDIzLjk4OC02LjM4IDEuODg1LTEzLjU1NiAzLjY2My0yMS40MzggNS4zMTVBMTYuODIgMTYuODIgMCAwIDEgNDQxIDQ4NmMwIDI0LjMtNTIuODQgNDQtMTE4IDQ0LTU4LjYyMyAwLTEwNy4yNzQtMTUuOTQ2LTExNi40NDUtMzYuODQxQzEyOC4zMjggNDg3LjIxNSA3MyA0NzIuNTkgNzMgNDU1LjVjMC0yMi4zNiA5NC43MS00MC41IDIxMS41LTQwLjUgNjEuMzYzIDAgMTE2LjYzMSA1LjAwOCAxNTUuMjY5IDEzLjAwNEM0NzcuNTYzIDQyOC4yNTMgNTA4IDQzOS41NzUgNTA4IDQ1My41eiIvPjxnIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZmlsbD0idXJsKCNlKSIgZD0iTTM1NiA2MmMtLjEyLTEuMzYtLjIzLTIuNzgtLjMxLTQuMjYtLjA5LTEuMjMtLjE2LTIuNjMtLjIyLTQuMTctLjA2LTEuNTUtLjA5LTMuMDgtLjA5LTQuNlYzOC42Nmw5Ljc0LS4xM2gxLjE5Yy40MiAwIC43OS0uMDIgMS4xMy0uMDYuNDEgMCAuODEtLjAyIDEuMTgtLjA2YTUuMzc0IDUuMzc0IDAgMCAwIDIuNDQtMS45NWMuNjMtLjg4Ljk0LTEuOS45NC0zLjA1bC0uMTMtLjgtLjI0LS45OWMtLjEzLS4zNy0uMjMtLjczLS4zMi0xLjA1bC0xLjA2LTIuMWMuMjEtLjc0LjMxLTEuNDQuMzEtMi4xIDAtMS42MS0uNDUtMy4wMy0xLjM3LTQuMjYtLjkyLTEuMjMtMi4wOS0yLjEtMy41LTIuNmwtNy44OC0xNS4yNWE3LjIyIDcuMjIgMCAwIDAtMi42NS0zLjA5QzM1My45Ny4zOSAzNTIuNjMgMCAzNTEuMTMgMGMtMS43MSAwLTMuMTEuNTEtNC4xOSAxLjU0LTEuMDggMS4wMy0yLjAyIDIuMjctMi44MiAzLjcxaC0uMDZsLTkuODEgMTcuOTdjLS42Ny41OC0xLjIyIDEuMjYtMS42NSAyLjA0LS40NS43OC0uNzEgMS42Mi0uNzkgMi41M2wtMS41NiAzLjU4Yy0uMDguMjEtLjE0LjQxLS4xOS42MiAwIDAtLjA2LjQzLS4wNi42OCAwIDEuNDQuNDYgMi42OCAxLjM3IDMuNzRhNi41MzUgNi41MzUgMCAwIDAgMy40NCAyLjA2bDcuMDYuMzdjLjM0LjU4Ljc2IDEuMDMgMS4yOCAxLjM2LjUzLjMzIDEuMTQuNSAxLjg1LjUuODggMCAxLjY3LS4zMSAyLjM4LS45M3Y5LjQ1YzAgMi43MS0uMDMgNC44OS0uMDcgNi41MS0uMDQgMS42My0uMDggMi45Mi0uMTIgMy44NkwzNDcgNjJoOXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2YpIiBkPSJNMzg1IDYwLjdjLjg4IDAgMS42Ny0uMzEgMi4zOC0uOTN2OS40NWMwIDIuNzEtLjAzIDQuODktLjA3IDYuNTEtLjA0IDEuNjMtLjA4IDIuOTItLjEyIDMuODZMMzg3IDgyaDljLS4xMi0xLjM2LS4yMy0yLjc4LS4zMS00LjI2LS4wOS0xLjIzLS4xNi0yLjYzLS4yMi00LjE3LS4wNi0xLjU1LS4wOS0zLjA4LS4wOS00LjZWNTguNjZsOS43NC0uMTNoMS4xOWMuNDIgMCAuNzktLjAyIDEuMTMtLjA2LjQxIDAgLjgxLS4wMiAxLjE4LS4wNmE1LjM3NCA1LjM3NCAwIDAgMCAyLjQ0LTEuOTVjLjYzLS44OC45NC0xLjkuOTQtMy4wNWwtLjEzLS44LS4yNC0uOTljLS4xMy0uMzctLjIzLS43My0uMzItMS4wNWwtMS4wNi0yLjFjLjIxLS43NC4zMS0xLjQ0LjMxLTIuMSAwLTEuNjEtLjQ1LTMuMDMtMS4zNy00LjI2LS45Mi0xLjIzLTIuMDktMi4xLTMuNS0yLjZsLTcuODgtMTUuMjVhNy4yMiA3LjIyIDAgMCAwLTIuNjUtMy4wOWMtMS4xOS0uNzgtMi41My0xLjE3LTQuMDMtMS4xNy0xLjcxIDAtMy4xMS41MS00LjE5IDEuNTQtMS4wOCAxLjAzLTIuMDIgMi4yNy0yLjgyIDMuNzFoLS4wNmwtOS44MSAxNy45N2MtLjY3LjU4LTEuMjIgMS4yNi0xLjY1IDIuMDQtLjQ1Ljc4LS43MSAxLjYyLS43OSAyLjUzbC0xLjU2IDMuNThjLS4wOC4yMS0uMTQuNDEtLjE5LjYyIDAgMC0uMDYuNDMtLjA2LjY4IDAgMS40NC40NiAyLjY4IDEuMzcgMy43NGE2LjUzNSA2LjUzNSAwIDAgMCAzLjQ0IDIuMDZsNy4wNi4zN2MuMzQuNTguNzYgMS4wMyAxLjI4IDEuMzYuNTMuMzMgMS4xNC41IDEuODUuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2cpIiBkPSJNMzUuMzQgMS42NkMzMy42Ny41NSAzMS43OCAwIDI5LjY4IDBjLTIuNCAwLTQuMzYuNzMtNS44OSAyLjE5LTEuNTIgMS40Ni0yLjgzIDMuMjEtMy45NSA1LjI2aC0uMDlMNS45NyAzMi45NmMtLjk0LjgxLTEuNzEgMS43OC0yLjMyIDIuODlhOC44NDUgOC44NDUgMCAwIDAtMS4xIDMuNTlsLTIuMiA1LjA5Yy0uMTEuMjktLjIuNTgtLjI2Ljg3IDAgMC0uMDkuNjItLjA5Ljk3IDAgMi4wNC42NCAzLjgxIDEuOTMgNS4zYTkgOSAwIDAgMCA0LjgzIDIuOTNsOS45Mi41M2MuNDcuODIgMS4wNyAxLjQ2IDEuOCAxLjkzczEuNi43IDIuNTkuN2MxLjIzIDAgMi4zNC0uNDQgMy4zNC0xLjMydjEzLjQxYzAgMy44Ni0uMDMgNi45NS0uMDkgOS4yNS0uMDYgMi4zMS0uMTIgNC4xNC0uMTggNS40OUwyMy44OCA4OGgxMi42NGMtLjE3LTEuOTMtLjMyLTMuOTQtLjQ0LTYuMDUtLjExLTEuNzUtLjIxLTMuNzMtLjMtNS45MnMtLjEzLTQuMzYtLjEzLTYuNTNWNTQuODdsMTMuNjktLjE4aDEuNjdjLjU5IDAgMS4xMS0uMDIgMS41OC0uMDkuNTkgMCAxLjE0LS4wMiAxLjY3LS4wOGE3LjU5OSA3LjU5OSAwIDAgMCAzLjQyLTIuNzdjLjg4LTEuMjUgMS4zMi0yLjcgMS4zMi00LjM0bC0uMTgtMS4xMy0uMzUtMS40Yy0uMTctLjUzLS4zMi0xLjAzLS40NC0xLjVsLTEuNDktMi45N2MuMjktMS4wNi40NC0yLjA1LjQ0LTIuOTggMC0yLjI4LS42NC00LjMtMS45My02LjA1cy0yLjkzLTIuOTgtNC45Mi0zLjY5TDM5LjA3IDYuMDVjLS44Mi0xLjgyLTIuMDctMy4yOC0zLjczLTQuMzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5MiAzNzApIi8+PC9nPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNoKSIgb3BhY2l0eT0iLjUiIGQ9Ik0xOTUuMTcgMzM5LjAwOCAzMzYgMjU5LjExOGwtMTgwLjc5LTU2LjExTDMgMjQxLjA0OGwxOTIuMTcgOTcuOTZ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaSkiIGQ9Im0xMjAuMTkgMjM4LjQ2OCAxNi43Ni02Ny0yMy4yMy01MC43TDE0NyA4Ny4wMDhsLTEzNy44MS44QTkuMjQyIDkuMjQyIDAgMCAwIDAgOTcuMDU4djEzMi4xNmMwIDUuMTIgNC4xNSA5LjI1IDkuMjYgOS4yNWwxMDMuNjEgNC41NCA3LjMyLTQuNTR6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaikiIGQ9Ik0wIDIzMy43MjhjMCA1LjEzIDQuMTMgOS4yOCA5LjIyIDkuMjhoMTAzLjE5bDE3LjU5LTcwLjgzLTI0Ljk1LTUyLjY1TDEzMCA5My4wMDhsLTEyMC44NS44Yy01LjA1LjA0LTkuMTUgNC4xOC05LjE1IDkuMjh2MTMwLjY0eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI2spIiBkPSJNMTI5IDE3Ny40MDhzLTM5LjE1IDI1LjQxLTM5Ljg3IDI1LjQ3Yy0xNS41OS0xMy42MS00MS4xNy0zOS41NS00MS4xNy0zOS41NS0yLjk1LTMuMDEtOC4xMS0zLjExLTExLjE5LS4yTDAgMjE0LjE1OHYxOC44YzAgNS4wNSAzLjExIDEwLjA1IDEwLjEgMTAuMDVoMTAyLjg0bDEwLjA1LTQwLjgxIDYuMDEtMjQuNzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbCkiIGQ9Im0xNjEuMTE0IDEyMS41ODggMTAuMjEgNTAuOS0zOS4xNSA3Mi42NiA3Ny45NyAyMS4yYzUuMzQgMi4xMiAxMS4zMi0xLjA1IDEyLjUxLTYuNjNsMzYuMTQtMTM0LjA5YzEuMDMtNC44Mi0xLjk1LTkuNTgtNi43Ni0xMC44MWwtNTMuODEtMTMuODEtMzcuMTEgMjAuNTh6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbSkiIGQ9Im0xNTMuNTMgMTI1LjIzMyAxMC4yMSA1MC44OS0zNy43NCA2Ny4zNiA3Ny45OCAyMS4yMWM1LjMzIDIuMTIgMTEuMzEtMS4wNCAxMi41LTYuNjNsMzQuNzMtMTI4LjhjMS4wMy00LjgyLTEuOTYtOS41OC02Ljc2LTEwLjgxbC01My44MS0xMy44MS0zNy4xMSAyMC41OXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNuKSIgZD0iTTE4MS4zNDQgMTc0LjM2OGMtMi0zLjI3LTYuMjMtNC4zMy05LjUyLTIuMzlsLTguMDkgNC4xNi0zNy42NSA2Ny4zN3M2Ny4yMiAxOC43IDc1LjEyIDIwLjQ3YzcuOTEgMS43NiAxMy43LjU0IDE0Ljg5LTUuMDhsMy4zNy0xMS41MS0zOC4xMi03My4wMnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIHN0eWxlPSJmaWxsOiNmZmYiIGQ9Ik0yMjMuMTA0IDE1MS42OTdjMC05LjMyLTcuNTctMTYuODgtMTYuOS0xNi44OC05LjMzIDAtMTYuODkgNy41Ni0xNi44OSAxNi44OHM3LjU2IDE2Ljg4IDE2Ljg5IDE2Ljg4YzkuMzMgMCAxNi45LTcuNTYgMTYuOS0xNi44OHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNvKSIgZD0ibTUwLjkyMSAzNy44MjMgMTIuMzg2LTYuMDQxIDExLjIwOSAyMi45ODItNy40NTItMzIuNjM3LTEyLjU5MiA2LjE0Mkw0Mi4xOTcgNi44NjRsOC43MjQgMzAuOTU5eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI3ApIiBkPSJtMjE3LjU5OCA0OC44OTUgMTcuODg4IDE3LjE4NC0zMC45NDUgMjMuODE3czQ3LjkyOS0yMi4zNyA0Ni45OTYtMjMuNzA5Yy0uOTI1LTEuMzM1LTE4LjU3LTE2Ljk5Mi0xOC41Ny0xNi45OTJsMjQuMTM0LTI1LjUzNy0zOS41MDMgMjUuMjM2eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PC9nPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iaSIgeDE9IjE3OC41NzklIiB5MT0iMTE0LjQxJSIgeDI9Ii02Ny42JSIgeTI9Ii0yMS42MzklIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InAiIHgxPSIxOTguOTIzIiB5MT0iMTUxLjY4IiB4Mj0iMjUzLjU4OCIgeTI9IjQzLjI0NSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJkIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDE9IjE0NC41ODglIiB5MT0iOTguOCUiIHgyPSIyOS41MTYlIiB5Mj0iMTAwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0UwRTVFRiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTBFNUVGIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImYiIHgxPSIxNDQuNTg4JSIgeTE9Ijk4LjglIiB4Mj0iMjkuNTE2JSIgeTI9IjEwMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNFMEU1RUYiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0UwRTVFRiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaCIgeDE9IjUwJSIgeTE9IjMwLjM4NyUiIHgyPSItMzEuMjE1JSIgeTI9Ii02MC4yMjglIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRThFQkYxIiBzdG9wLW9wYWNpdHk9Ii4yNCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaiIgeDE9IjEzNy40MDglIiB5MT0iMTE1LjUxOCUiIHgyPSI2NC4yMjUlIiB5Mj0iLTkuNjY2JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJrIiB4MT0iOTMuNTUlIiB5MT0iMTMyLjc4MiUiIHgyPSIyOS41NSUiIHkyPSIxOS45MDElIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImwiIHgxPSIxNzguNTc5JSIgeTE9IjExNC40MSUiIHgyPSItNjcuNiUiIHkyPSItMjEuNjM5JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJtIiB4MT0iMTEzLjgwNSUiIHkxPSIxMjMuMjAxJSIgeDI9IjMwLjgzMiUiIHkyPSIwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJuIiB4MT0iMTEwLjAwNyUiIHkxPSIxMjguNDklIiB4Mj0iNTAlIiB5Mj0iMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNBMkFCQjkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFN0VBRjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibyIgeDE9IjkyLjUzNCIgeTE9Ijk0LjM4NCIgeDI9IjU1LjUyMyIgeTI9IjE5LjE2NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoNjAwdjYwMEgweiIvPjwvZGVmcz48L3N2Zz4=",rs=function($e){var Ke=$e.url,cn=Ke===void 0?"":Ke,nn=$e.imgRef,jn=$e.canvasRef,lr=$e.activeCanvasRef,zn=$e.clientSize,Yn=$e.imagePos,Zr=$e.onLoad,ir=(0,n.useState)(!1),Qn=s()(ir,2),Un=Qn[0],Ta=Qn[1],ha=(0,n.useState)(!0),Qt=s()(ha,2),Re=Qt[0],rt=Qt[1],Rt=function(rn){rt(!1),Zr(rn)},Ut=function(rn){rn.stopPropagation(),nn!=null&&nn.current&&(nn.current.src=cn,rt(!0),Ta(!1))},un=function(rn){var Ur=rn.target;Ur.src=Tl,rt(!1),Ta(!0)},In=cn.indexOf("aliyuncs.com")>-1?"anonymous":void 0;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("img",{ref:nn,src:cn,alt:"pic",crossOrigin:In,style:{width:zn.width,height:zn.height},onLoad:Rt,onError:un}),(0,y.jsx)("canvas",{ref:jn,draggable:!1,onContextMenu:function(rn){return rn.preventDefault()},className:"dds-annotator-imageview-canvas"}),(0,y.jsx)("canvas",{ref:lr,draggable:!1,onContextMenu:function(rn){return rn.preventDefault()},className:"dds-annotator-imageview-canvas"}),Un&&(0,y.jsxs)("div",{className:"dds-annotator-imageview-reload-cover",onClick:Ut,onDoubleClick:Ut,style:{left:Yn.current.x,top:Yn.current.y,width:zn.width,height:zn.height},children:[(0,y.jsx)("img",{src:Tl,alt:"error-pic"}),(0,y.jsx)("div",{className:"content-box",children:(0,y.jsx)(l.ZP,{ghost:!0,type:"primary",className:"reload-trigger",shape:"circle",size:"small",icon:(0,y.jsx)(Ro.Z,{})})})]}),Re&&(0,y.jsx)("div",{className:"dds-annotator-imageview-reload-cover",style:{backgroundColor:"#f6f6f6",left:Yn.current.x,top:Yn.current.y,width:zn.width,height:zn.height},children:(0,y.jsx)(wl.Z,{className:"reload-trigger"})})]})},dl=function($e){var Ke=$e.isSeperate,cn=$e.visible,nn=$e.categories,jn=$e.list,lr=$e.current,zn=$e.pagination,Yn=$e.mode,Zr=$e.actionElements,ir=$e.onPrev,Qn=$e.onNext,Un=$e.onCancel,Ta=$e.onSave,ha=$e.onEnterEdit,Qt=$e.onReviewResult,Re=$e.setCategories,rt=$e.onAutoSave,Rt=$e.objectsFilter,Ut=(0,G.bU)(),un=Ut.localeText,In=c.Z.useModal(),gn=s()(In,2),rn=gn[0],Ur=gn[1],aa=(0,C.x)([]),da=s()(aa,2),ua=da[0],Aa=da[1],Oo=(0,C.x)((0,z.cloneDeep)(k.rl)),Co=s()(Oo,2),Sa=Co[0],Ia=Co[1],ia=(0,C.x)((0,z.cloneDeep)(k.f7)),oo=s()(ia,2),Sr=oo[0],Nr=oo[1],Da=(0,n.useRef)(null),Wr=(0,n.useRef)(null),Qr=(0,n.useRef)(null),_a=(0,n.useMemo)(function(){var xs=[m.jB.AutoEdgeStitching,m.jB.AutoSegmentByStroke,m.jB.BrushAdd,m.jB.BrushErase].includes(Sr.selectedSubTool);return Sr.creatingObject&&Sr.activeObjectIndex>-1&&Sr.creatingObject.type===m.gr.Mask?xs:Sr.selectedTool!==m.ru.Drag&&!Sr.isBatchEditing?Sr.selectedTool===m.ru.Mask&&xs:!1},[Sr.selectedTool,Sr.selectedSubTool]),za=(0,n.useMemo)(function(){return Sr.selectedTool!==m.ru.Drag&&!_a},[Sr.selectedTool,_a]),ya=cl({categories:nn,editState:Sa}),io=ya.labelColors,Ba=ya.getAnnotColor,Ea=ka({visible:cn,allowMove:Sa.allowMove,isRequiring:Sa.isRequiring,showReferenceLine:za,minPadding:{top:30,left:80},isCustomCursorActive:_a,cursorSize:Sr.brushSize}),qa=Ea.scale,Ha=Ea.naturalSize,Do=Ea.clientSize,lo=Ea.containerMouse,Oa=Ea.contentMouse,$a=Ea.imagePos,li=Ea.onLoadImg,Va=Ea.onZoomIn,pi=Ea.onZoomOut,ui=Ea.onReset,Ja=Ea.CanvasContainer,ko=Ea.isMousePress,Io=kr(Do),Lo=s()(Io,2),Qa=Lo[0],ci=Lo[1],bi=Fo({clientSize:Do,naturalSize:Ha,setDrawData:Nr,onAutoSave:rt}),vi=bi.undo,qo=bi.redo,Vi=bi.clearHistory,as=bi.hadChangeRecord,os=bi.updateHistory,Qi=bi.setDrawDataWithHistory,_i=ot({annotations:ua,setAnnotations:Aa,clientSize:Do,naturalSize:Ha,drawData:Sr,setDrawData:Nr,setDrawDataWithHistory:Qi,editState:Sa,setEditState:Ia,mode:Yn}),Go=_i.addObject,j=_i.removeObject,ae=_i.removeAllObjects,je=_i.initObjectList,Ge=_i.updateAllObject,ht=_i.updateObject,qt=_i.updateObjectWithoutHistory,er=_i.updateAllObjectWithoutHistory,to=A({visible:cn,mode:Yn,categories:nn,setCategories:Re,drawData:Sr,setDrawData:Nr,editState:Sa,updateObjectWithoutHistory:qt,updateAllObjectWithoutHistory:er}),zo=to.aiLabels,Uo=to.setAiLabels,Hi=to.onChangeObjectHidden,Cs=to.onChangeCategoryHidden,zs=to.onChangeActiveClass,Yl=to.onCreateCategory,zi=Mt({mode:Yn,list:jn,current:lr,modal:rn,drawData:Sr,setDrawData:Nr,setDrawDataWithHistory:Qi,editState:Sa,setEditState:Ia,naturalSize:Ha,clientSize:Do,imagePos:$a,containerMouse:lo,onCancel:Un,onSave:Ta,updateAllObject:Ge,hadChangeRecord:as,latestLabel:Sa.latestLabel,getAnnotColor:Ba}),Pl=zi.onAiAnnotation,Cu=zi.onSaveAnnotations,vu=zi.onCancelAnnotations,xu=zi.onReject,Iu=zi.onAccept,el=Fl({topCanvas:Wr.current,editState:Sa,drawData:Sr}),es=el.updateMouseCursor,Fa=Us({mode:Yn,drawData:Sr,setDrawData:Nr,setDrawDataWithHistory:Qi,setAiLabels:Uo,editState:Sa,setEditState:Ia,getAnnotColor:Ba,clientSize:Do,naturalSize:Ha,addObject:Go,removeObject:j,updateObject:ht,updateAllObject:Ge}),gs=Fa.onDeleteCurrObject,Nu=Fa.onFinishCurrCreate,Gl=Fa.onCloseAnnotationEditor,Au=Fa.onAcceptValidObjects,hc=Fa.onAbortBatchObjects,Bs=Fa.selectTool,_s=Fa.selectSubTool,Ju=Fa.forceChangeTool,Ou=Fa.onExitAIAnnotation,tl=Fa.setBrushSize,nl=Fa.activeAIAnnotation,nu=Fa.onSaveAIPolygon,Hs=Fa.onCancelAIPolygon,Cl=Fa.onChangeSkeletonConf,Uu=Fa.onChangeLimitConf,qu=Fa.onChangeAnnotsDisplayOpts,Ru=Fa.onChangeImageDisplayOpts,ec=Fa.onChangeColorMode,ku=(0,ws.Vr)({imgRef:Qr,editState:Sa,clientSize:Do,naturalSize:Ha,contentMouse:Oa,imagePos:$a,containerMouse:lo,canvasRef:Da,activeCanvasRef:Wr,setEditState:Ia,drawData:Sr,setDrawData:Nr,setDrawDataWithHistory:Qi,updateHistory:os,updateObject:ht,addObject:Go,updateMouseCursor:es,aiLabels:zo,onAiAnnotation:Pl,getAnnotColor:Ba}),Wu=ku.objectHooksMap,_u=xr({visible:cn,drawData:Sr,editState:Sa,clientSize:Do,imagePos:$a,containerMouse:lo,canvasRef:Da,activeCanvasRef:Wr,imgRef:Qr,objectHooksMap:Wu}),gu=_u.updateRender,Ll=Po({visible:cn,mode:Yn,drawData:Sr,setDrawData:Nr,editState:Sa,setEditState:Ia,clientSize:Do,contentMouse:Oa,categories:nn,updateRender:gu,updateMouseCursor:es,objectHooksMap:Wu,imagePos:$a,containerMouse:lo,getAnnotColor:Ba}),kl=Ll.selectFocusObject,Nl=Ll.forceChangeFocusObject,tc=Ll.mouseRightObjectsDropDownRender;Xs({visible:cn,mode:Yn,drawData:Sr,isMousePress:ko,setDrawData:Nr,setEditState:Ia,onSaveAnnotations:Cu,onAccept:Iu,onReject:xu,onChangeObjectHidden:Hi,onChangeCategoryHidden:Cs,removeObject:j,addObject:Go});var Hu=ul({imagePos:$a,clientSize:Do,preClientSize:Qa,clearPreClientSize:ci,naturalSize:Ha,annotations:ua,setAnnotations:Aa,labelColors:io,drawData:Sr,setDrawData:Nr,editState:Sa,setEditState:Ia,initObjectList:je,updateRender:gu,clearHistory:Vi,objectsFilter:Rt}),Du=Hu.resetDataWithImageData,nc=(0,n.useCallback)(function(){lr>0&&lr-1&&Sr.objectList[Sa.focusObjectIndex]&&!Sr.objectList[Sa.focusObjectIndex].hidden&&Sa.focusEleIndex>-1&&Sa.focusEleType===m.Yq.Circle){var ml,Rl,Il=(ml=Sr.objectList[Sa.focusObjectIndex].keypoints)===null||ml===void 0||(Rl=ml.points)===null||Rl===void 0?void 0:Rl[Sa.focusEleIndex];if(Il)return(0,y.jsx)(Lt,{index:Sa.focusEleIndex,targetElement:Il,imagePos:$a.current})}return(0,y.jsx)(y.Fragment,{})},rc=Yn===k.je.Edit&&!(Sr.isBatchEditing&&Sr.selectedTool===m.ru.Skeleton)&&!(Sr.selectedTool===m.ru.Polygon&&Sr.AIAnnotation&&Sr.activeObjectIndex===-1),bc=Sr.selectedTool===m.ru.Mask||Sr.creatingObject&&Sr.creatingObject.type===m.gr.Mask,ac=(0,n.useMemo)(function(){return Sr.objectList.filter(function(xs){return xs.status===k.TK.Commited})},[Sr.isBatchEditing,Sr.objectList]);if(cn){var wu,Ts,xl;return(0,y.jsxs)("div",{className:"dds-annotator dds-annotator-editor",children:[(0,y.jsx)(F,{leftTools:[].concat(t()(Ke?[]:[{title:un("DDSAnnotator.exit"),icon:(0,y.jsx)(Ma.Z,{}),onClick:function(){return vu()}}]),[{customElement:yc}]),rightTools:Mc,children:zn&&zn.show&&(0,y.jsx)(Pa,{list:jn,current:lr,total:zn.total,customText:zn.customText,customDisableNext:zn.customDisableNext,onPrev:ir,onNext:Qn})}),(0,y.jsxs)("div",{className:"editor-container",children:[(0,y.jsx)("div",{className:"left-slider"}),(0,y.jsxs)("div",{className:"center-content",children:[(0,y.jsx)(h.Z,{dropdownRender:tc,trigger:["contextMenu"],open:Sa.foucsObjectAllIndexs.length>0,children:Ja({className:"edit-wrap",children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(rs,{url:(wu=jn[lr])===null||wu===void 0?void 0:wu.urlFullRes,imgRef:Qr,canvasRef:Da,activeCanvasRef:Wr,clientSize:Do,imagePos:$a,onLoad:li}),Yu()]})})}),rc&&(0,y.jsx)(Ua,{hideTitle:((Ts=Sr.creatingObject)===null||Ts===void 0?void 0:Ts.type)===m.gr.Mask,allowAddCategory:Ke,latestLabel:Sa.latestLabel,categories:nn,currEditObject:Sr.objectList[Sr.activeObjectIndex]||Sr.selectedTool===m.ru.Mask&&Sr.creatingObject,onCreateCategory:Yl,onDeleteCurrObject:gs,onFinishCurrCreate:Nu,onCloseAnnotationEditor:Gl}),(0,y.jsx)(Fn,{selectedTool:Sr.selectedTool,selectedSubTool:Sr.selectedSubTool,isBatchEditing:Sr.isBatchEditing,AIAnnotation:Sr.AIAnnotation,hasPolygonPreds:!!((xl=Sr.creatingObject)!==null&&xl!==void 0&&xl.polygon),isCtrlPressed:Sa.isCtrlPressed,limitConf:Sr.limitConf,aiLabels:zo,naturalSize:Ha,categories:nn,setAiLabels:Uo,forceChangeTool:Ju,onAiAnnotation:Pl,onExitAIAnnotation:Ou,onSaveAIPolygon:nu,onCancelAIPolygon:Hs,onChangeConfidenceRange:Cl,onChangeLimitConf:Uu,onAcceptValidObjects:Au,onCancelBatchEdit:hc,onCreateCategory:Yl}),(0,y.jsx)(Br,{scale:qa,onZoomIn:Va,onZoomOut:pi,onReset:ui,displayOption:Sa.imageDisplayOptions,colorByCategory:Sa.annotsDisplayOptions.colorByCategory,onChangeImageDisplayOpts:Ru,onChangeAnnotsDisplayOpts:qu}),Yn===k.je.Edit&&(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(at,{selectedTool:Sr.selectedTool,isAIAnnotationActive:Sr.AIAnnotation,onChangeSelectedTool:Bs,onActiveAIAnnotation:nl,undo:vi,redo:qo,repeatPrevious:nc,deleteAll:ae}),bc&&(0,y.jsx)(ol,{selectedSubTool:Sr.selectedSubTool,isAIAnnotationActive:Sr.AIAnnotation,isSegEverythingAvailable:Sr.objectList.length===0&&!Sr.creatingObject||Sr.isBatchEditing,isManualAvailable:!Sr.prompt.segmentationMask&&!(Sr.prompt.maskPrompts&&Sr.prompt.maskPrompts.length>0)&&!Sr.isBatchEditing,brushSize:Sr.brushSize,onChangeSubTool:_s,onChangeBrushSize:tl,onActiveAIAnnotation:nl})]})]}),(0,y.jsx)(Be,{supportEdit:Yn===k.je.Edit,className:"right-slider",objects:ac,labelColors:io,activeObjectIndex:Sr.activeObjectIndex,activeClassName:Sr.activeClassName,onFocusObject:Nl,onActiveObject:kl,onChangeObjectHidden:Hi,onChangeCategoryHidden:Cs,onDeleteObject:j,onChangeActiveClassName:zs})]}),(0,y.jsx)("div",{onMouseDown:function(ml){ml.stopPropagation()},children:Ur})]})}else return(0,y.jsx)(y.Fragment,{})},fl=dl,Ul=e(16962),Sl=e.n(Ul),Lu=Object.defineProperty,ql=Object.getOwnPropertySymbols,Yo=Object.prototype.hasOwnProperty,fu=Object.prototype.propertyIsEnumerable,El=(tt,$e,Ke)=>$e in tt?Lu(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,Es=(tt,$e)=>{for(var Ke in $e||($e={}))Yo.call($e,Ke)&&El(tt,Ke,$e[Ke]);if(ql)for(var Ke of ql($e))fu.call($e,Ke)&&El(tt,Ke,$e[Ke]);return tt};const Ws=tt=>n.createElement("svg",Es({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"m8.379 7.648-4.56-5.825a.283.283 0 0 0-.224-.11h-1.38a.142.142 0 0 0-.113.231L6.842 8l-4.74 6.055a.143.143 0 0 0 .112.23h1.38a.289.289 0 0 0 .226-.109l4.559-5.823a.571.571 0 0 0 0-.705Zm5.428 0L9.248 1.823a.283.283 0 0 0-.225-.11h-1.38a.142.142 0 0 0-.112.231L12.27 8l-4.74 6.055a.143.143 0 0 0 .113.23h1.38a.289.289 0 0 0 .225-.109l4.56-5.823a.571.571 0 0 0 0-.705Z",fill:"#fff",opacity:.85}));var vl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTguMzc5IDcuNjQ4LTQuNTYtNS44MjVhLjI4My4yODMgMCAwIDAtLjIyNC0uMTFoLTEuMzhhLjE0Mi4xNDIgMCAwIDAtLjExMy4yMzFMNi44NDIgOGwtNC43NCA2LjA1NWEuMTQzLjE0MyAwIDAgMCAuMTEyLjIzaDEuMzhhLjI4OS4yODkgMCAwIDAgLjIyNi0uMTA5bDQuNTU5LTUuODIzYS41NzEuNTcxIDAgMCAwIDAtLjcwNVptNS40MjggMEw5LjI0OCAxLjgyM2EuMjgzLjI4MyAwIDAgMC0uMjI1LS4xMWgtMS4zOGEuMTQyLjE0MiAwIDAgMC0uMTEyLjIzMUwxMi4yNyA4bC00Ljc0IDYuMDU1YS4xNDMuMTQzIDAgMCAwIC4xMTMuMjNoMS4zOGEuMjg5LjI4OSAwIDAgMCAuMjI1LS4xMDlsNC41Ni01LjgyM2EuNTcxLjU3MSAwIDAgMCAwLS43MDVaIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiLz48L3N2Zz4=",It=Object.defineProperty,Pi=Object.getOwnPropertySymbols,jl=Object.prototype.hasOwnProperty,qi=Object.prototype.propertyIsEnumerable,Vo=(tt,$e,Ke)=>$e in tt?It(tt,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):tt[$e]=Ke,yo=(tt,$e)=>{for(var Ke in $e||($e={}))jl.call($e,Ke)&&Vo(tt,Ke,$e[Ke]);if(Pi)for(var Ke of Pi($e))qi.call($e,Ke)&&Vo(tt,Ke,$e[Ke]);return tt};const eu=tt=>n.createElement("svg",yo({viewBox:"0 0 14 14",fill:"#595959",xmlns:"http://www.w3.org/2000/svg"},tt),n.createElement("path",{d:"M6.887 9.657a.143.143 0 0 0 .225 0l2-2.53A.142.142 0 0 0 9 6.897H7.677V.854A.143.143 0 0 0 7.534.71H6.462a.143.143 0 0 0-.143.143v6.041H5a.142.142 0 0 0-.112.23l2 2.532Zm6.649-.625h-1.072a.143.143 0 0 0-.143.143v2.75H1.678v-2.75a.143.143 0 0 0-.142-.143H.464a.143.143 0 0 0-.143.143v3.536a.57.57 0 0 0 .572.572h12.214a.57.57 0 0 0 .571-.572V9.175a.143.143 0 0 0-.142-.143Z"}));var tu="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9IiM1OTU5NTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuODg3IDkuNjU3YS4xNDMuMTQzIDAgMCAwIC4yMjUgMGwyLTIuNTNBLjE0Mi4xNDIgMCAwIDAgOSA2Ljg5N0g3LjY3N1YuODU0QS4xNDMuMTQzIDAgMCAwIDcuNTM0LjcxSDYuNDYyYS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjYuMDQxSDVhLjE0Mi4xNDIgMCAwIDAtLjExMi4yM2wyIDIuNTMyWm02LjY0OS0uNjI1aC0xLjA3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YyLjc1SDEuNjc4di0yLjc1YS4xNDMuMTQzIDAgMCAwLS4xNDItLjE0M0guNDY0YS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjMuNTM2YS41Ny41NyAwIDAgMCAuNTcyLjU3MmgxMi4yMTRhLjU3LjU3IDAgMCAwIC41NzEtLjU3MlY5LjE3NWEuMTQzLjE0MyAwIDAgMC0uMTQyLS4xNDNaIi8+PC9zdmc+",ys=function($e){var Ke,cn,nn,jn=$e.visible,lr=$e.categories,zn=$e.list,Yn=$e.current,Zr=$e.onPrev,ir=$e.onNext,Qn=$e.onCancel,Un=$e.objectsFilter,Ta=$e.getCustomObjectStyles,ha=$e.displayAnnotationType,Qt=$e.displayOptionsResult,Re=(0,C.x)([]),rt=s()(Re,2),Rt=rt[0],Ut=rt[1],un=(0,C.x)((0,z.cloneDeep)(k.rl)),In=s()(un,2),gn=In[0],rn=In[1],Ur=(0,C.x)((0,z.cloneDeep)(k.f7)),aa=s()(Ur,2),da=aa[0],ua=aa[1],Aa=(0,n.useRef)(null),Oo=(0,n.useRef)(null),Co=(0,n.useRef)(null),Sa=ka({visible:jn,allowMove:gn.allowMove,isRequiring:gn.isRequiring,minPadding:{top:120,left:300},cursorSize:da.brushSize,showReferenceLine:!1,isCustomCursorActive:!1,onClickMaskBg:Qn}),Ia=Sa.scale,ia=Sa.naturalSize,oo=Sa.clientSize,Sr=Sa.containerMouse,Nr=Sa.contentMouse,Da=Sa.imagePos,Wr=Sa.onLoadImg,Qr=Sa.onZoomIn,_a=Sa.onZoomOut,za=Sa.CanvasContainer,ya=kr(oo),io=s()(ya,2),Ba=io[0],Ea=io[1],qa=Fo({clientSize:oo,naturalSize:ia,setDrawData:ua}),Ha=qa.clearHistory,Do=qa.updateHistory,lo=qa.setDrawDataWithHistory,Oa=ot({annotations:Rt,setAnnotations:Ut,clientSize:oo,naturalSize:ia,drawData:da,setDrawData:ua,setDrawDataWithHistory:lo,editState:gn,setEditState:rn,mode:k.je.View,displayAnnotationType:ha}),$a=Oa.addObject,li=Oa.initObjectList,Va=Oa.updateObject,pi=cl({categories:lr,editState:gn}),ui=pi.labelColors,Ja=pi.getAnnotColor,ko=Fl({topCanvas:Oo.current,editState:gn,drawData:da}),Io=ko.updateMouseCursor,Lo=(0,ws.Vr)({imgRef:Co,editState:gn,clientSize:oo,naturalSize:ia,contentMouse:Nr,imagePos:Da,containerMouse:Sr,canvasRef:Aa,activeCanvasRef:Oo,setEditState:rn,drawData:da,setDrawData:ua,setDrawDataWithHistory:lo,updateHistory:Do,updateObject:Va,addObject:$a,updateMouseCursor:Io,displayOptionsResult:Qt,getAnnotColor:Ja}),Qa=Lo.objectHooksMap,ci=xr({visible:jn,drawData:da,editState:gn,clientSize:oo,imagePos:Da,containerMouse:Sr,canvasRef:Aa,activeCanvasRef:Oo,imgRef:Co,objectHooksMap:Qa,getCustomObjectStyles:Ta}),bi=ci.updateRender;Po({visible:jn,mode:k.je.View,drawData:da,setDrawData:ua,editState:gn,setEditState:rn,clientSize:oo,contentMouse:Nr,categories:lr,updateRender:bi,updateMouseCursor:Io,objectHooksMap:Qa,imagePos:Da,containerMouse:Sr,getAnnotColor:Ja,limitActiveObject:!0}),(0,n.useEffect)(function(){document.body.style.overflow=jn?"hidden":"overlay"},[jn]);var vi=ul({imagePos:Da,clientSize:oo,preClientSize:Ba,clearPreClientSize:Ea,naturalSize:ia,annotations:Rt,setAnnotations:Ut,labelColors:ui,drawData:da,setDrawData:ua,editState:gn,setEditState:rn,initObjectList:li,updateRender:bi,clearHistory:Ha,objectsFilter:Un}),qo=vi.resetDataWithImageData,Vi=vi.rebuildDrawData;(0,n.useEffect)(function(){qo(zn[Yn],jn)},[jn,zn[Yn],Un]),(0,n.useEffect)(function(){Vi(!0)},[ha,Qt,Ta]);var as=(0,n.useState)(!0),os=s()(as,2),Qi=os[0],_i=os[1],Go=(0,n.useCallback)(function(){_i(function(Ge){return!Ge})},[]),j=function(){var Ge=B()(I()().mark(function ht(qt){var er,to;return I()().wrap(function(Uo){for(;;)switch(Uo.prev=Uo.next){case 0:return qt.preventDefault(),qt.stopPropagation(),er=H.ZP.loading("Creating image...",6e4),to=function(){return new Promise(function(Cs,zs){setTimeout(function(){try{if(!Aa.current)return;var Yl=Aa.current.toDataURL(),zi=document.createElement("a");zi.setAttribute("download","".concat(zn[Yn].id,".png")),zi.setAttribute("href",Yl),zi.click(),er(),Cs(null)}catch(Pl){zs(Pl)}},500)})},Uo.prev=4,rn(function(Hi){Hi.focusObjectIndex=-1}),bi(),Uo.next=9,to();case 9:Uo.next=16;break;case 11:Uo.prev=11,Uo.t0=Uo.catch(4),console.error(Uo.t0),er(),H.ZP.error("Create image fail, please try again");case 16:case"end":return Uo.stop()}},ht,null,[[4,11]])}));return function(qt){return Ge.apply(this,arguments)}}();(0,he.Z)(Ze[xe.PreviousImage].shortcut,function(){jn&&(Zr==null||Zr())},{exactMatch:!0}),(0,he.Z)(Ze[xe.NextImage].shortcut,function(){jn&&(ir==null||ir())},{exactMatch:!0});var ae=function(){if(gn.focusObjectIndex>-1&&da.objectList[gn.focusObjectIndex]&&!da.objectList[gn.focusObjectIndex].hidden&&gn.focusEleIndex>-1&&gn.focusEleType===m.Yq.Circle){var ht,qt,er=(ht=da.objectList[gn.focusObjectIndex].keypoints)===null||ht===void 0||(qt=ht.points)===null||qt===void 0?void 0:qt[gn.focusEleIndex];if(er)return(0,y.jsx)(Lt,{index:gn.focusEleIndex,targetElement:er,imagePos:Da.current})}return(0,y.jsx)(y.Fragment,{})};if(!jn)return(0,y.jsx)(y.Fragment,{});var je=(0,z.isEmpty)((Ke=zn[Yn])===null||Ke===void 0?void 0:Ke.metadata)?void 0:zn[Yn].metadata;return(0,y.jsxs)("div",{className:"dds-annotator dds-annotator-preview",children:[(0,y.jsx)(F,{className:"top-tools",leftTools:[{icon:(0,y.jsx)(ct.Z,{}),onClick:Qr,disabled:Ia>=m.Fv},{icon:(0,y.jsx)(tr.Z,{}),onClick:_a,disabled:Ia<=m.vL},{icon:(0,y.jsx)(eu,{}),onClick:j}],rightTools:[{icon:(0,y.jsx)(Vt.Z,{}),onClick:Qn}],children:"".concat(Yn+1," / ").concat(zn.length)}),za({className:"edit-wrap",children:(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(rs,{url:(cn=zn[Yn])===null||cn===void 0?void 0:cn.urlFullRes,imgRef:Co,canvasRef:Aa,activeCanvasRef:Oo,clientSize:oo,imagePos:Da,onLoad:Wr}),ae()]})}),(0,y.jsx)("div",{className:S()("switch","switch-left",{"switch-disable":Yn===0}),onClick:Zr,children:(0,y.jsx)(co.Z,{})}),(0,y.jsx)("div",{className:S()("switch","switch-right",{"switch-disable":Yn===zn.length-1}),onClick:ir,children:(0,y.jsx)(ro.Z,{})}),Qi&&je&&(0,y.jsxs)("div",{className:"info-wrap",children:[(0,y.jsxs)("div",{className:"info-box",children:[Object.keys(je).map(function(Ge){return(0,y.jsxs)("div",{className:"item",children:[Ge,(0,y.jsx)("br",{}),Sl()(je[Ge])==="object"?JSON.stringify(je[Ge]):je[Ge]]},Ge)}),(nn=zn[Yn])!==null&&nn!==void 0&&nn.caption?(0,y.jsxs)("div",{className:"item",children:["caption",(0,y.jsx)("br",{}),zn[Yn].caption]}):null]}),(0,y.jsx)("div",{className:"bottom-mask"}),(0,y.jsx)("div",{className:"hide-info-btn",onClick:Go,children:(0,y.jsx)(Ws,{})})]}),!Qi&&(0,y.jsx)("div",{className:"show-info-btn",onClick:Go,children:(0,y.jsx)(Ws,{})})]})},gl=ys,Ii=function($e){var Ke=$e.categories,cn=$e.data,nn=$e.currentSize,jn=$e.wrapWidth,lr=$e.wrapHeight,zn=$e.minHeight,Yn=$e.objectsFilter,Zr=$e.getCustomObjectStyles,ir=$e.displayAnnotationType,Qn=$e.displayOptionsResult,Un=(0,C.x)([]),Ta=s()(Un,2),ha=Ta[0],Qt=Ta[1],Re=(0,C.x)((0,z.cloneDeep)(k.rl)),rt=s()(Re,2),Rt=rt[0],Ut=rt[1],un=(0,C.x)((0,z.cloneDeep)(k.f7)),In=s()(un,2),gn=In[0],rn=In[1],Ur=(0,n.useRef)(null),aa=(0,n.useRef)(null),da=(0,n.useRef)(null),ua=(0,n.useRef)({x:0,y:0}),Aa=(0,n.useState)({width:0,height:zn||0}),Oo=s()(Aa,2),Co=Oo[0],Sa=Oo[1],Ia=(0,n.useMemo)(function(){if(nn)return nn;if(!Co.width)return{width:jn||0,height:lr||zn||0};var bi=(0,K.t9)(Co.width,Co.height,jn,lr),vi=s()(bi,2),qo=vi[0],Vi=vi[1];return{width:qo,height:Vi}},[jn,lr,zn,Co,nn]),ia=(0,n.useMemo)(function(){var bi={screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,elementX:0,elementY:0,elementPosX:0,elementPosY:0,elementW:Ia.width,elementH:Ia.height};return[bi,bi]},[Ia]),oo=s()(ia,2),Sr=oo[0],Nr=oo[1],Da=kr(Ia),Wr=s()(Da,2),Qr=Wr[0],_a=Wr[1],za=cl({categories:Ke,editState:Rt}),ya=za.labelColors,io=za.getAnnotColor,Ba=Fo({clientSize:Ia,naturalSize:Co,setDrawData:rn}),Ea=Ba.clearHistory,qa=Ba.updateHistory,Ha=Ba.setDrawDataWithHistory,Do=ot({annotations:ha,setAnnotations:Qt,clientSize:Ia,naturalSize:Co,drawData:gn,setDrawData:rn,setDrawDataWithHistory:Ha,editState:Rt,setEditState:Ut,mode:k.je.View,displayAnnotationType:ir}),lo=Do.addObject,Oa=Do.initObjectList,$a=Do.updateObject,li=Fl({topCanvas:aa.current,editState:Rt,drawData:gn}),Va=li.updateMouseCursor,pi=(0,ws.Vr)({imgRef:da,editState:Rt,clientSize:Ia,naturalSize:Co,contentMouse:Sr,containerMouse:Nr,imagePos:ua,canvasRef:Ur,activeCanvasRef:aa,setEditState:Ut,drawData:gn,setDrawData:rn,setDrawDataWithHistory:Ha,updateHistory:qa,updateObject:$a,addObject:lo,updateMouseCursor:Va,displayOptionsResult:Qn,getAnnotColor:io}),ui=pi.objectHooksMap,Ja=xr({visible:!0,drawData:gn,editState:Rt,clientSize:Ia,imagePos:ua,containerMouse:Nr,canvasRef:Ur,activeCanvasRef:aa,imgRef:da,objectHooksMap:ui,getCustomObjectStyles:Zr}),ko=Ja.updateRender,Io=ul({imagePos:ua,clientSize:Ia,preClientSize:Qr,clearPreClientSize:_a,naturalSize:Co,annotations:ha,setAnnotations:Qt,labelColors:ya,drawData:gn,setDrawData:rn,editState:Rt,setEditState:Ut,initObjectList:Oa,updateRender:ko,clearHistory:Ea,objectsFilter:Yn}),Lo=Io.resetDataWithImageData,Qa=Io.rebuildDrawData;(0,n.useEffect)(function(){Lo(cn,!0)},[cn,Yn]),(0,n.useEffect)(function(){Qa(!0)},[ir,Qn,Zr]);var ci=function(vi){var qo=vi.target,Vi={width:qo.naturalWidth,height:qo.naturalHeight};Sa(Vi)};return(0,y.jsx)("div",{className:"dds-annotator-view",children:(0,y.jsx)(rs,{url:cn==null?void 0:cn.url,imgRef:da,canvasRef:Ur,activeCanvasRef:aa,clientSize:Ia,imagePos:ua,onLoad:ci})})},Ri=Ii},68270:function(M,b,e){"use strict";e.d(b,{$N:function(){return ie},hF:function(){return K},G9:function(){return H},_G:function(){return ce},Vr:function(){return B}});var i=e(63900),t=e.n(i),o=e(2657),s=e.n(o),n=e(81179),c=e(86505),l=e(46134),v=e(50910),h=e(14464),m=e(34095),C=function(W){var G=W.contentMouse,O=W.imagePos,k=W.canvasRef,Y=W.activeCanvasRef,P=W.editState,Q=W.setEditState,fe=W.drawData,Ce=W.setDrawData,ge=W.updateMouseCursor,Me=W.updateObject,Ne=W.addObject,Qe=W.getAnnotColor,Ve=W.displayOptionsResult,qe=function(U){var N=U.object,D=U.color,ee=U.styles,se=U.isFocus,X=N.rect;if(X&&X.visible){var re=ee.strokeDash,Ie=ee.strokeColor,Se=ee.fillColor,he=ee.thickness;if(fe.isBatchEditing){if(N.status===v.TK.Unchecked&&!P.isCtrlPressed)return;P.isCtrlPressed&&(N.status!==v.TK.Unchecked?(Ie=(0,h.a7)(D,.8),re=[2],he=1.5):Se=se?(0,h.a7)(D,m.mh.DEFAULT):(0,h.a7)(D,m.mh.CTRL_TO_SELECT))}if((0,n.Mu)(k.current,X,Ie,he,re,Se),Ve!=null&&Ve.showBoxText){var We=N!=null&&N.conf&&N.conf>0&&N.conf<1?"".concat(N.label,"(").concat(N.conf.toFixed(3),")"):N.label;(0,n.yU)(k.current,We||"",13,{x:X.x+2,y:X.y+2},D,!1,"left")}fe.isBatchEditing&&P.isCtrlPressed&&se&&(0,n.HU)(Y.current,X,"#000",.6)}},Mt=function(U){var N=U.object,D=U.styles,ee=N.startPoint;if(ee){var se=(0,l.A7)(ee,{x:G.elementX,y:G.elementY},{width:G.elementW,height:G.elementH}),X=(0,l.ZU)(se,{x:-O.current.x,y:-O.current.y});(0,n.Mu)(Y.current,X,D.strokeColor,D.thickness,D.strokeDash,D.fillColor)}},wt=function(U){var N=U.object,D=U.styles,ee=N.rect;ee&&ee.visible&&((0,n.Mu)(Y.current,ee,D.strokeColor,D.thickness,D.strokeDash,D.fillColor),H(Y.current,ee))},gt=function(){},Lt=function(U){var N=U.object,D=U.event;return(D==null?void 0:D.button)===2?!1:!!ie({object:N,contentMouse:G,setEditState:Q,setDrawData:Ce})},ke=function(U){var N=U.point,D=U.basic;return Ce(function(ee){ee.activeObjectIndex=-1,ee.creatingObject=t()({type:c.gr.Rectangle,startPoint:N},D)}),!0},He=function(U){var N=U.object;return ce({object:N,editState:P,contentMouse:G,drawData:fe,setDrawData:Ce,updateMouseCursor:ge})},et=function(U){var N=U.object;return!!N},Fe=function(U){var N=U.object,D=P.startRectResizeAnchor||P.startElementMovePoint;return D&&Me(N,fe.activeObjectIndex),Q(function(ee){ee.startRectResizeAnchor=void 0,ee.startElementMovePoint=void 0}),!0},ue=function(U){var N=U.object;if(!N||!N.startPoint)return!1;if(G.elementX===N.startPoint.x||G.elementY===N.startPoint.y)return Ce(function(se){se.creatingObject=void 0}),!0;var D=(0,l.A7)(N.startPoint,{x:G.elementX,y:G.elementY},{width:G.elementW,height:G.elementH}),ee={type:c.gr.Rectangle,label:N.label,hidden:!1,rect:t()({visible:!0},D),conf:1,status:v.TK.Commited,color:Qe(N.label)};return Ne(ee),!0};return{renderObject:qe,renderCreatingObject:Mt,renderEditingObject:wt,renderPrompt:gt,startEditingWhenMouseDown:Lt,startCreatingWhenMouseDown:ke,updateEditingWhenMouseMove:He,updateCreatingWhenMouseMove:et,finishEditingWhenMouseUp:Fe,finishCreatingWhenMouseUp:ue}},p=C,S=e(34485),w=e.n(S),y=e(39378),Z=function(W){var G=W.editState,O=W.clientSize,k=W.imagePos,Y=W.containerMouse,P=W.canvasRef,Q=W.activeCanvasRef,fe=W.contentMouse,Ce=W.setEditState,ge=W.drawData,Me=W.setDrawData,Ne=W.updateHistory,Qe=W.updateMouseCursor,Ve=W.updateObject,qe=W.addObject,Mt=W.onAiAnnotation,wt=W.displayOptionsResult,gt=function(ee){var se=ee.object,X=ee.color,re=ee.styles,Ie=ee.isFocus,Se=se.polygon;if(Se&&Se.visible){var he=Ie?re.fillColor:(0,h.a7)(X,m.mh.SHAPE),We=re.thickness;wt&&(!wt.showSegFilling&&!Ie&&(he="transparent"),wt.showSegContour||(We=0)),Se==null||Se.group.forEach(function(de){(0,n.fb)(P.current,de,he,re.strokeColor,We,re.strokeDash)})}},Lt=function(ee){var se=ee.object,X=ee.styles,re=se.currIndex,Ie=(0,l.lT)(se,{x:-k.current.x,y:-k.current.y}),Se=Ie.polygon;if(Se&&Se.visible){var he=(0,l.fL)(Se.group);Se.group.forEach(function(We,de){re===de?We.forEach(function(le,ve){(0,n.G5)(Q.current,le,ve===0?6:4,X.strokeColor,3,"#1f4dd8"),We.length>1&&ve-1&&ve>-1){var Ze=Se.group[le][ve];Ze&&(0,n.G5)(Q.current,Ze,4,"#fff",5,X)}else if(le>-1&&xe>-1){var pe=(0,l.Iw)(Se.group[le]);if(pe[xe]){var Je=pe[xe],Ae=Je.start,oe=Je.end,ye=(0,l.Z4)({x:fe.elementX+k.current.x,y:fe.elementY+k.current.y},Ae,oe);ye&&(0,n.G5)(Q.current,ye,4,"#fff",5,X)}}}},He=function(ee){var se=ee.prompt;se.segmentationClicks&&se.segmentationClicks.forEach(function(X){var re=(0,l.aF)(X.point,{x:-k.current.x,y:-k.current.y});(0,n.G5)(Q.current,re,4,X.isPositive?m.lz.POSITIVE:m.lz.NEGATIVE,2,"#fff")})},et=function(ee){var se=ee.object,X=ee.event;return(X==null?void 0:X.button)===2?!1:!!ie({object:se,contentMouse:fe,setEditState:Ce,setDrawData:Me})},Fe=function(ee){var se=ee.point,X=ee.basic;return Me(function(re){if(!re.creatingObject||re.activeObjectIndex>-1)re.activeObjectIndex=-1,re.AIAnnotation?re.creatingObject=t()(t()({type:c.gr.Rectangle,startPoint:se},X),{},{color:"#fff"}):(re.creatingObject=t()({type:c.gr.Polygon,polygon:{visible:!0,group:[[se]]},currIndex:0},X),Ne((0,y.cloneDeep)({drawData:re,clientSize:O})));else if(!re.AIAnnotation){var Ie=re.creatingObject.currIndex,Se=re.creatingObject.polygon;if(Ie>-1){var he=Se.group[Ie][0];(0,l.uN)(he,fe)?re.creatingObject.currIndex=-1:re.creatingObject.polygon&&(Se.group[Ie].push(se),Ne((0,y.cloneDeep)({drawData:re,clientSize:O})))}else Se.group.push([se]),re.creatingObject.currIndex=Se.group.length-1,Ne((0,y.cloneDeep)({drawData:re,clientSize:O}))}}),!0},ue=function(){var ee=G.focusEleType,se=G.focusEleIndex,X=G.focusObjectIndex,re=G.focusPolygonInfo;if(X===ge.activeObjectIndex&&ee===c.Yq.Polygon&&(re.pointIndex>-1?Qe("pointer"):re.lineIndex>-1?Qe("crosshair"):Qe("move")),ee===c.Yq.Polygon&&se===0){var Ie=G.focusPolygonInfo,Se=Ie.index,he=Ie.pointIndex;if(G.startElementMovePoint&&Se>-1)return he>-1?(Me(function(We){var de,le;if(We.activeObjectIndex>-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(de=We.creatingObject)!==null&&de!==void 0&&(le=de.polygon)!==null&&le!==void 0&&le.group[Se]){var ve,xe,Ze=(ve=We.creatingObject)===null||ve===void 0||(xe=ve.polygon)===null||xe===void 0?void 0:xe.group[Se];Ze[he]=(0,l.E5)(fe)}}),!0):(Me(function(We){var de,le;if(We.activeObjectIndex>-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(de=We.creatingObject)!==null&&de!==void 0&&(le=de.polygon)!==null&&le!==void 0&&le.group[Se]){var ve,xe,Ze=(ve=We.creatingObject)===null||ve===void 0||(xe=ve.polygon)===null||xe===void 0?void 0:xe.group[Se],pe=(0,l.s5)(Ze,G.startElementMovePoint,fe);We.creatingObject.polygon.group[Se]=pe,Ce(function(Je){Je.startElementMovePoint&&(Je.startElementMovePoint.mousePoint={x:fe.elementX,y:fe.elementY})})}}),!0)}return!1},V=function(ee){var se=ee.object;return!!se},U=function(ee){var se,X,re=ee.object,Ie=G.startRectResizeAnchor||G.startElementMovePoint,Se=G.startElementMovePoint&&((se=G.startElementMovePoint.initPoint)===null||se===void 0?void 0:se.x)===fe.elementX&&((X=G.startElementMovePoint.initPoint)===null||X===void 0?void 0:X.y)===fe.elementY,he=Se&&G.focusPolygonInfo.index>-1&&G.focusPolygonInfo.pointIndex>-1;if(he){var We,de=(0,y.cloneDeep)(re),le=G.focusPolygonInfo,ve=le.index,xe=le.pointIndex,Ze=(We=de.polygon)===null||We===void 0?void 0:We.group[ve];Ze&&ve>-1&&xe>-1&&Ze.length>=3&&Ze.splice(xe,1),Ve(de,ge.activeObjectIndex)}else Ie&&Ve(re,ge.activeObjectIndex);return Ce(function(pe){pe.startRectResizeAnchor=void 0,pe.startElementMovePoint=void 0}),!0},N=function(ee){var se=ee.event,X=ee.object;if(!X)return!1;var re={x:fe.elementX,y:fe.elementY};if(ge.AIAnnotation)if(X.type===c.gr.Polygon){if(!(0,l.jt)(fe)||!(0,l.jt)(Y))return!1;var Ie={isPositive:K(se),point:re},Se=ge.prompt.segmentationClicks||[];Me(function(Pe){Pe.prompt.segmentationClicks=[].concat(w()(Se),[Ie])}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:[].concat(w()(Se),[Ie]),aiLabels:[X.label]})}else{var he,We;if(fe.elementX===((he=X.startPoint)===null||he===void 0?void 0:he.x)&&fe.elementY===((We=X.startPoint)===null||We===void 0?void 0:We.y)){if(!(0,l.jt)(fe))return!1;var de={isPositive:!0,point:re};Me(function(Pe){Pe.prompt.segmentationClicks=[de]}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:[de]})}else{var le=(0,l.A7)(X.startPoint,re,{width:fe.elementW,height:fe.elementH}),ve=(0,l.Wx)(le),xe={xmin:le.x,ymin:le.y,xmax:le.x+le.width,ymax:le.y+le.height},Ze=ve.map(function(Pe,we){return{isPositive:we===ve.length-1,point:Pe}});Me(function(Pe){Pe.prompt.segmentationClicks=w()(Ze)}),Mt==null||Mt({type:c.gr.Polygon,drawData:ge,segmentationClicks:Ze,bbox:xe})}Me(function(Pe){return Pe.creatingObject=void 0})}else if(X.currIndex===-1){var pe=X.polygon,Je=X.type,Ae=X.hidden,oe=X.label,ye=X.status,Be=X.color,De={polygon:pe,type:Je,hidden:Ae,label:oe,status:ye,color:Be};qe(De)}return!0};return{renderObject:gt,renderCreatingObject:Lt,renderEditingObject:ke,renderPrompt:He,startEditingWhenMouseDown:et,startCreatingWhenMouseDown:Fe,updateEditingWhenMouseMove:ue,updateCreatingWhenMouseMove:V,finishEditingWhenMouseUp:U,finishCreatingWhenMouseUp:N}},F=Z,R=function(W,G,O,k,Y){var P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:4,Q=G.lines,fe=G.points;if(!Y)for(var Ce=0;Ce*2400?4:2)}},Lt=function(ee){var se=ee.object,X=ee.styles,re=se.startPoint;if(re){var Ie=(0,l.A7)(re,{x:Y.elementX,y:Y.elementY},{width:Y.elementW,height:Y.elementH}),Se=(0,l.ZU)(Ie,{x:-P.current.x,y:-P.current.y}),he=c.v_.points,We=c.v_.lines,de=c.v_.pointColors,le=c.v_.pointNames,ve=(0,l.el)(he,le,de,k,O),xe=(0,l.cU)(ve,Se);(0,n.Mu)(fe.current,Se,X.strokeColor,X.thickness),xe.forEach(function(oe){(0,n.G5)(fe.current,{x:oe.x,y:oe.y},4,X.strokeColor,3,"#1f4dd8")});for(var Ze=0;Ze*2-1&&G.focusEleIndex>-1&&G.startElementMovePoint&&(re=X.creatingObject)!==null&&re!==void 0&&(Ie=re.keypoints)!==null&&Ie!==void 0&&(Se=Ie.points)!==null&&Se!==void 0&&Se[G.focusEleIndex]){var he,We,de,le=(he=X.creatingObject)===null||he===void 0||(We=he.keypoints)===null||We===void 0||(de=We.points)===null||de===void 0?void 0:de[G.focusEleIndex],ve=(0,l.E5)(Y),xe=ve.x,Ze=ve.y;le.x=xe,le.y=Ze}}),!0):!1)},V=function(ee){var se=ee.object;return!!se},U=function(ee){var se=ee.object,X=G.startRectResizeAnchor||G.startElementMovePoint;if(X&&Ve(se,ge.activeObjectIndex),ge.AIAnnotation){var re,Ie;G.startElementMovePoint&&(((re=G.startElementMovePoint.mousePoint)===null||re===void 0?void 0:re.x)!==Y.elementX||((Ie=G.startElementMovePoint.mousePoint)===null||Ie===void 0?void 0:Ie.y)!==Y.elementY)&&(Mt==null||Mt({type:c.gr.Skeleton,drawData:ge,aiLabels:qe}))}return Ce(function(Se){Se.startRectResizeAnchor=void 0,Se.startElementMovePoint=void 0}),!0},N=function(ee){var se,X,re=ee.object;if(!re||!re.startPoint)return!1;if(Y.elementX===((se=re.startPoint)===null||se===void 0?void 0:se.x)||Y.elementY===((X=re.startPoint)===null||X===void 0?void 0:X.y))return Me(function(Ze){return Ze.creatingObject=void 0}),!0;var Ie=(0,l.A7)(re.startPoint,{x:Y.elementX,y:Y.elementY},{width:Y.elementW,height:Y.elementH}),Se=c.v_.points,he=c.v_.lines,We=c.v_.pointColors,de=c.v_.pointNames,le=(0,l.el)(Se,de,We,k,O),ve=(0,l.cU)(le,Ie),xe={type:c.gr.Skeleton,label:re.label,hidden:!1,color:re.color,rect:t()({visible:!0},Ie),keypoints:{points:ve,lines:he},conf:1,status:v.TK.Commited};return Qe(xe),!0};return{renderObject:gt,renderCreatingObject:Lt,renderEditingObject:ke,renderPrompt:He,startEditingWhenMouseDown:et,startCreatingWhenMouseDown:Fe,updateEditingWhenMouseMove:ue,updateCreatingWhenMouseMove:V,finishEditingWhenMouseUp:U,finishCreatingWhenMouseUp:N}},z=T,A=e(67761),L=function(W){var G=W.imgRef,O=W.imagePos,k=W.canvasRef,Y=W.clientSize,P=W.displayOptionsResult,Q=function(Lt){if(!(!Lt||!k.current||!G.current)){var ke=P||{},He=ke.showMattingColorFill,et=k.current.getContext("2d"),Fe=t()({x:O.current.x,y:O.current.y},Y);(0,n.UN)(k.current),(0,n.AE)(k.current,Lt,Fe),He?(et.globalCompositeOperation="source-out",(0,n.CR)(k.current,Fe,"#000"),et.globalCompositeOperation="destination-atop",(0,n.CR)(k.current,Fe,"#fff")):(et.globalCompositeOperation="source-in",(0,n.AE)(k.current,G.current,Fe),et.globalCompositeOperation="destination-over",(0,n.CR)(k.current,Fe,"#fff"))}},fe=function(Lt){var ke=Lt.object,He=ke.alphaImageElement;He&&(Q(He),He.onload=function(){Q(He)})},Ce=function(){},ge=function(){},Me=function(){},Ne=function(){return!1},Qe=function(){return!1},Ve=function(){return!1},qe=function(){return!1},Mt=function(){return!1},wt=function(){return!1};return{renderObject:fe,renderCreatingObject:Ce,renderEditingObject:ge,renderPrompt:Me,startEditingWhenMouseDown:Ne,startCreatingWhenMouseDown:Qe,updateEditingWhenMouseMove:Ve,updateCreatingWhenMouseMove:qe,finishEditingWhenMouseUp:Mt,finishCreatingWhenMouseUp:wt}},I=L,$;(function(te){})($||($={}));var B=function(W){var G,O=p(W),k=F(W),Y=z(W),P=(0,A.ZP)(W),Q=I(W),fe=(G={},s()(G,c.gr.Rectangle,O),s()(G,c.gr.Polygon,k),s()(G,c.gr.Skeleton,Y),s()(G,c.gr.Mask,P),s()(G,c.gr.Matting,Q),s()(G,c.gr.Custom,O),G);return{objectHooksMap:fe}},K=function(W){return!(W.button===2||W.button===0&&W.altKey)},H=function(W,G){var O=(0,l.Qo)(G).map(function(k){return k.position});O.forEach(function(k){var Y=(0,l.Ak)(k,{width:10,height:10}),P=(0,l.my)(Y);(0,n.Mu)(W,P,"rgba(0, 0, 0, 0.8)",3,[0],"#fff")})},ie=function(W){var G=W.object,O=W.contentMouse,k=W.setEditState,Y=W.setDrawData,P=(0,l.o7)(O,G),Q=P.focusEleIndex,fe=P.focusEleType,Ce=P.focusPolygonInfo;if(fe===c.Yq.None)return!1;var ge=G.rect,Me=G.keypoints,Ne=G.polygon,Qe={x:O.elementX,y:O.elementY};return k(function(Ve){switch(fe){case c.Yq.Rect:{if(ge){var qe=(0,l.Oh)(ge,Qe);qe?Ve.startRectResizeAnchor={type:qe.type,position:(0,l.l1)(ge,qe.type)}:Ve.startElementMovePoint={topLeftPoint:{x:ge.x,y:ge.y},mousePoint:Qe}}break}case c.Yq.Circle:{if(Me){var Mt=Me.points[Q];Ve.startElementMovePoint={topLeftPoint:{x:Mt.x,y:Mt.y},mousePoint:Qe}}break}case c.Yq.Polygon:{var wt=Ce.lineIndex,gt=Ce.index;if(Ne)if(wt>-1){var Lt=(0,l.Iw)(Ne.group[gt])[wt];if(Lt){var ke=(0,l.Z4)(Qe,Lt.start,Lt.end);Y(function(He){var et=He.objectList[He.activeObjectIndex];et.polygon&&et.polygon.group[gt].splice(wt+1,0,ke),He.creatingObject=t()({},et)}),Ve.focusPolygonInfo.pointIndex=wt+1,Ve.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:ke,initPoint:ke}}}else Ve.startElementMovePoint={topLeftPoint:{x:0,y:0},mousePoint:Qe,initPoint:Qe};break}}}),!0},ce=function(W){var G=W.object,O=W.editState,k=W.contentMouse,Y=W.drawData,P=W.setDrawData,Q=W.updateMouseCursor,fe=O.focusObjectIndex,Ce=O.focusEleIndex,ge=O.focusEleType,Me=O.startRectResizeAnchor;if(fe===Y.activeObjectIndex&&ge===c.Yq.Rect&&G.rect){var Ne=(0,l.Oh)(G.rect,{x:k.elementX,y:k.elementY});Ne?Q("resize",Ne.type):Q("move")}if(ge===c.Yq.Rect&&Ce===0){if(Me)return P(function(Qe){if(Qe.activeObjectIndex>-1&&O.startRectResizeAnchor&&Qe.creatingObject&&Qe.creatingObject.rect){var Ve=(0,l.XR)(Qe.creatingObject.rect,O.startRectResizeAnchor,k);Qe.creatingObject.rect=t()(t()({},Qe.creatingObject.rect),Ve)}}),!0;if(O.startElementMovePoint)return P(function(Qe){if(Qe.activeObjectIndex>-1&&O.startElementMovePoint&&Qe.creatingObject&&Qe.creatingObject.rect){var Ve=(0,l.i$)(Qe.creatingObject.rect,O.startElementMovePoint,k);Qe.creatingObject.rect=t()(t()({},Qe.creatingObject.rect),Ve)}}),!0}return!1}},67761:function(M,b,e){"use strict";e.d(b,{G9:function(){return T},ei:function(){return z}});var i=e(34485),t=e.n(i),o=e(63900),s=e.n(o),n=e(81179),c=e(86505),l=e(46134),v=e(68270),h=e(34095),m=e(50910),C=e(14464),p=e(39378),S=e.n(p),w=function(I,$){for(var B=new Array($).fill(0),K=0;K0&&ie.forEach(function(te){var W=(0,l.U8)(te.points,{x:-$.x,y:-$.y});(te.tool===c.jB.PenAdd||te.tool===c.jB.PenErase)&&(0,n.HT)(I,W,te.positive,(0,C.a7)(H,h.s_.CREATING),"transparent"),(te.tool===c.jB.BrushAdd||te.tool===c.jB.BrushErase)&&(0,n.T8)(I,W,te.positive,H,h.s_.CREATING,te.radius*B.width/K.width)}),ce.restore()},F=function(I,$,B,K,H,ie,ce){if(I){var te=$.maskStep,W=$.tempMaskSteps,G=$.maskCanvasElement,O=I.getContext("2d");if(!O)return null;if(G&&(O.globalAlpha=h.s_.CREATING,(0,n.AE)(I,G,{x:B.x,y:B.y,width:ie.width,height:ie.height}),O.globalAlpha=1),Z(I,B,ie,ce,K,W),te&&te.points.length>0){var k=te.tool===c.jB.PenAdd||te.tool===c.jB.BrushAdd?h.Bt.CREATING_POSITIVE:h.Bt.CREATING_NEGATIVE,Y=(0,l.U8)(te.points,{x:-B.x,y:-B.y});(te.tool===c.jB.PenAdd||te.tool===c.jB.PenErase)&&((0,n.G5)(I,Y[0],6,(0,C.a7)(k,h.rl.CREATING),3,h.XQ.CREATING),Y.length>0&&((0,n.MC)(I,Y,(0,C.a7)(k,h.rl.CREATING),2.5,[0]),(0,n.pS)(I,Y[Y.length-1],H,(0,C.a7)(k,h.rl.CREATING_LINE),2.5,[5]))),(te.tool===c.jB.BrushAdd||te.tool===c.jB.BrushErase||te.tool===c.jB.AutoSegmentByStroke)&&Y.length>1&&(0,n.AT)(I,Y,(0,C.a7)(k,h.s_.CREATING),te.radius*ie.width/ce.width)}}},R=function(I,$){var B=I.getContext("2d",{willReadFrequently:!0});if(!B)return null;for(var K=B.getImageData(0,0,I.width,I.height),H=hexToRgbArray($),ie=K.data.length/4;ie--;)K.data[ie*4+3]>0&&(K.data[ie*4]=H[0],K.data[ie*4+1]=H[1],K.data[ie*4+2]=H[2],K.data[ie*4+3]=255);return clearCanvas(I),B.putImageData(K,0,0),I},T=function(I,$,B,K){var H=document.createElement("canvas"),ie=H.getContext("2d",{willReadFrequently:!0});if(!ie||!B)return null;H.width=$.width,H.height=$.height;var ce=B.map(function(Y){return s()(s()({},Y),{},{points:Y.points.map(function(P){return(0,l.Ap)(P,I,$)})})});K&&(0,n.AE)(H,K,{x:0,y:0,width:$.width,height:$.height}),Z(H,{x:0,y:0},$,$,"#fff",ce);for(var te=ie.getImageData(0,0,$.width,$.height),W=0,G=new Array(te.data.length/4).fill(0),O=te.data.length/4;O--;){var k=0;te.data[O*4+3]>0&&(W++,k=1,G[O]=1),te.data[O*4]=te.data[O*4+1]=te.data[O*4+2]=te.data[O*4+3]=k}return W>0?y(G):[]},z=function(I,$,B){var K=$.width,H=$.height,ie=document.createElement("canvas"),ce=ie.getContext("2d");if(ie.width=K,ie.height=H,!ce)return null;for(var te=ce.createImageData(K,H),W=(0,C.dX)(B),G=w(I,Math.ceil(K)*Math.ceil(H)),O=te.data.length/4;O--;)G[O]>0&&(te.data[O*4]=W[0],te.data[O*4+1]=W[1],te.data[O*4+2]=W[2],te.data[O*4+3]=255);return ce.putImageData(te,0,0),ie},A=function(I){var $=I.editState,B=I.clientSize,K=I.naturalSize,H=I.contentMouse,ie=I.imagePos,ce=I.containerMouse,te=I.canvasRef,W=I.activeCanvasRef,G=I.drawData,O=I.setDrawData,k=I.setDrawDataWithHistory,Y=I.updateHistory,P=I.onAiAnnotation,Q=I.updateMouseCursor,fe=function(et){var Fe=et.object,ue=et.styles,V=Fe.maskCanvasElement,U=te.current.getContext("2d"),N=U.globalAlpha;U.globalAlpha=U.globalAlpha*ue.maskAlpha,(0,n.AE)(te.current,V,{x:ie.current.x,y:ie.current.y,width:B.width,height:B.height}),U.globalAlpha=N},Ce=function(et){var Fe=et.object,ue=et.color;$.hideCreatingObject||F(W.current,Fe,ie.current,ue,{x:ce.elementX,y:ce.elementY},B,K)},ge=function(et){var Fe=et.object,ue=et.color;$.hideCreatingObject||F(W.current,Fe,ie.current,ue,{x:ce.elementX,y:ce.elementY},B,K)},Me=function(et){var Fe=et.prompt;if(Fe.creatingMask){var ue=h.XQ.CREATING,V=h.Bt.CREATING;switch(Fe.creatingMask.type){case m.J5.Rect:{var U=Fe.creatingMask.startPoint,N=(0,l.A7)(U,{x:H.elementX,y:H.elementY},{width:H.elementW,height:H.elementH}),D=(0,l.ZU)(N,{x:-ie.current.x,y:-ie.current.y});(0,n.Mu)(W.current,D,ue,2,[0],V);break}case m.J5.Point:{if(!Fe.creatingMask.point)break;var ee=(0,l.aF)(Fe.creatingMask.point,{x:-ie.current.x,y:-ie.current.y});(0,n.G5)(W.current,ee,4,Fe.creatingMask.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE,2,"#fff")}case m.J5.EdgeStitch:case m.J5.Stroke:{if(!Fe.creatingMask.stroke||!Fe.creatingMask.radius)break;var se=(0,l.U8)(Fe.creatingMask.stroke,{x:-ie.current.x,y:-ie.current.y}),X=Fe.creatingMask.radius*B.width/K.width,re=Fe.creatingMask.type===m.J5.EdgeStitch?(0,C.a7)(ue,h.s_.CREATING):Fe.creatingMask.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE;(0,n.AT)(W.current,se,re,X);break}default:break}if($.isRequiring&&Fe.activeRectWhileLoading){var Ie=(0,l.ZU)(Fe.activeRectWhileLoading,{x:-ie.current.x,y:-ie.current.y});(0,n.HU)(W.current,Ie)}}Fe.maskPrompts&&Fe.maskPrompts.forEach(function(Se){if(Se.type===m.J5.Point){var he=(0,l.aF)(Se.point,{x:-ie.current.x,y:-ie.current.y});(0,n.G5)(W.current,he,4,Se.isPositive?h.lz.POSITIVE:h.lz.NEGATIVE,2,"#fff")}})},Ne=function(et){var Fe={x:H.elementX,y:H.elementY};O(function(ue){switch(ue.selectedSubTool){case c.jB.PenAdd:case c.jB.PenErase:case c.jB.BrushAdd:case c.jB.BrushErase:if(ue.creatingObject){if(ue.creatingObject.maskStep){if(ue.creatingObject.maskStep.points.push(Fe),[c.jB.PenAdd,c.jB.PenErase].includes(ue.selectedSubTool)&&(0,l.uN)(ue.creatingObject.maskStep.points[0],H)){var V;(V=ue.creatingObject.tempMaskSteps)===null||V===void 0||V.push(ue.creatingObject.maskStep),ue.creatingObject.maskStep=void 0}}else ue.creatingObject.maskStep={tool:ue.selectedSubTool,positive:ue.selectedSubTool===c.jB.PenAdd||ue.selectedSubTool===c.jB.BrushAdd,points:[Fe],radius:ue.brushSize};[c.jB.BrushAdd,c.jB.BrushErase].includes(ue.selectedSubTool)||Y((0,p.cloneDeep)({drawData:ue,clientSize:B}))}ue.prompt.segmentationMask=void 0;break;case c.jB.AutoSegmentByBox:ue.prompt.creatingMask={type:m.J5.Rect,startPoint:Fe,isPositive:!0};break;case c.jB.AutoSegmentByClick:ue.prompt.creatingMask={type:m.J5.Point,startPoint:Fe,point:Fe,isPositive:(0,v.hF)(et)};break;case c.jB.AutoSegmentByStroke:ue.prompt.creatingMask={type:m.J5.Stroke,startPoint:Fe,stroke:[Fe],radius:ue.brushSize,isPositive:(0,v.hF)(et)};break;case c.jB.AutoEdgeStitching:ue.prompt.creatingMask={type:m.J5.EdgeStitch,startPoint:Fe,stroke:[Fe],radius:ue.brushSize,isPositive:!0};default:break}})},Qe=function(et){var Fe=et.event;return Ne(Fe),!0},Ve=function(et){var Fe=et.event,ue=et.object,V=et.point,U=et.basic;return ue?Ne(Fe):O(function(N){switch(N.activeObjectIndex=-1,N.selectedSubTool){case c.jB.PenAdd:case c.jB.PenErase:case c.jB.BrushAdd:case c.jB.BrushErase:N.creatingObject=s()(s()({},U),{},{type:c.gr.Mask,startPoint:V,maskStep:{tool:N.selectedSubTool,positive:N.selectedSubTool===c.jB.PenAdd||N.selectedSubTool===c.jB.BrushAdd,points:[V],radius:N.brushSize},tempMaskSteps:[]}),N.prompt.segmentationMask=void 0;break;case c.jB.AutoSegmentByBox:N.prompt.creatingMask={type:m.J5.Rect,startPoint:V,isPositive:!0};break;case c.jB.AutoSegmentByClick:N.prompt.creatingMask={type:m.J5.Point,startPoint:V,point:V,isPositive:(0,v.hF)(Fe)};break;case c.jB.AutoSegmentByStroke:N.prompt.creatingMask={type:m.J5.Stroke,startPoint:V,stroke:[V],radius:N.brushSize,isPositive:(0,v.hF)(Fe)};break;case c.jB.AutoEdgeStitching:N.prompt.creatingMask={type:m.J5.EdgeStitch,startPoint:V,stroke:[V],radius:N.brushSize,isPositive:!0};break;default:break}}),!0},qe=function(et){var Fe=et.event,ue=et.object;if(ue||G.prompt.creatingMask){Q("crosshair");var V=[c.jB.BrushAdd,c.jB.BrushErase,c.jB.PenAdd,c.jB.PenErase,c.jB.AutoSegmentByStroke,c.jB.AutoEdgeStitching].includes(G.selectedSubTool),U=Fe.buttons===1||Fe.buttons===2;if(V&&U){var N={x:H.elementX,y:H.elementY},D=[c.jB.AutoSegmentByStroke,c.jB.AutoEdgeStitching].includes(G.selectedSubTool);O(function(ee){if(D){var se,X;(se=ee.prompt.creatingMask)===null||se===void 0||(X=se.stroke)===null||X===void 0||X.push(N)}else{var re,Ie;(re=ee.creatingObject)===null||re===void 0||(Ie=re.maskStep)===null||Ie===void 0||Ie.points.push(N)}})}return!0}return!1},Mt=function(et){var Fe=et.object,ue=et.event;return qe({object:Fe,event:ue})},wt=function(et){var Fe=et.object,ue=et.event;return qe({object:Fe,event:ue})},gt=function(){if(!(!G.creatingObject&&!G.prompt.creatingMask)){var et={x:H.elementX,y:H.elementY};switch(G.selectedSubTool){case c.jB.BrushAdd:case c.jB.BrushErase:case c.jB.PenAdd:case c.jB.PenErase:{k(function(We){if(We.creatingObject&&We.creatingObject.tempMaskSteps&&We.creatingObject.maskStep&&We.creatingObject.maskStep.points.length>1&&([c.jB.BrushAdd,c.jB.BrushErase].includes(We.selectedSubTool)||[c.jB.PenAdd,c.jB.PenErase].includes(We.selectedSubTool)&&(0,l.uN)(We.creatingObject.maskStep.points[0],H))){var de;(de=We.creatingObject.tempMaskSteps)===null||de===void 0||de.push(We.creatingObject.maskStep),We.creatingObject.maskStep=void 0}We.prompt.segmentationMask=void 0});break}case c.jB.AutoSegmentByBox:{var Fe,ue,V;if(!((Fe=G.prompt.creatingMask)!==null&&Fe!==void 0&&Fe.startPoint))break;if(et.x===((ue=G.prompt.creatingMask.startPoint)===null||ue===void 0?void 0:ue.x)||et.y===((V=G.prompt.creatingMask.startPoint)===null||V===void 0?void 0:V.y)){O(function(We){return We.prompt.creatingMask=void 0});break}var U=(0,l.A7)(G.prompt.creatingMask.startPoint,et,{width:H.elementW,height:H.elementH}),N={type:m.J5.Rect,isPositive:!0,rect:U};k(function(We){We.prompt.activeRectWhileLoading=U});var D=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[N]):[N];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:D});break}case c.jB.AutoSegmentByClick:{var ee;if(!(0,l.jt)(H)||!(0,l.jt)(ce)||!((ee=G.prompt.creatingMask)!==null&&ee!==void 0&&ee.point))break;var se={type:m.J5.Point,isPositive:G.prompt.creatingMask.isPositive,point:G.prompt.creatingMask.point},X=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[se]):[se];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:X});break}case c.jB.AutoSegmentByStroke:{var re;if(!((re=G.prompt.creatingMask)!==null&&re!==void 0&&re.stroke))break;var Ie={type:m.J5.Stroke,isPositive:G.prompt.creatingMask.isPositive,stroke:G.prompt.creatingMask.stroke,radius:G.brushSize},Se=G.prompt.maskPrompts?[].concat(t()(G.prompt.maskPrompts),[Ie]):[Ie];P==null||P({type:c.gr.Mask,drawData:G,maskPrompts:Se});break}case c.jB.AutoEdgeStitching:{var he;if(!((he=G.prompt.creatingMask)!==null&&he!==void 0&&he.stroke))break;P==null||P({type:c.gr.Mask,drawData:G});break}}}},Lt=function(){return gt(),!0},ke=function(){return gt(),!0};return{renderObject:fe,renderCreatingObject:Ce,renderEditingObject:ge,renderPrompt:Me,startEditingWhenMouseDown:Qe,startCreatingWhenMouseDown:Ve,updateEditingWhenMouseMove:Mt,updateCreatingWhenMouseMove:wt,finishEditingWhenMouseUp:Lt,finishCreatingWhenMouseUp:ke}};b.ZP=A},50910:function(M,b,e){"use strict";e.d(b,{J5:function(){return o},JE:function(){return n},O4:function(){return l},TK:function(){return t},f7:function(){return c},je:function(){return s},rl:function(){return h}});var i=e(86505),t=function(m){return m[m.Unchecked=0]="Unchecked",m[m.Checked=1]="Checked",m[m.Commited=2]="Commited",m}({}),o=function(m){return m.Rect="rect",m.Point="point",m.Stroke="stroke",m.EdgeStitch="edgeStitch",m}({}),s={View:0,Edit:1,Review:2},n=function(m){return m.Accept="accept",m.Reject="reject",m.ForceAccept="force_accept",m}({}),c={initialized:!1,selectedTool:i.ru.Drag,selectedSubTool:i.jB.PenAdd,AIAnnotation:!1,objectList:[],activeObjectIndex:-1,activeClassName:"",creatingObject:void 0,brushSize:20,prompt:{},isBatchEditing:!1,limitConf:0},l={brightness:100,contrast:100,saturate:100},v={colorByCategory:!0},h={isLoading:!1,isLoadingError:!1,isRequiring:!1,allowMove:!1,latestLabel:"",startRectResizeAnchor:void 0,startElementMovePoint:void 0,focusObjectIndex:-1,foucsObjectAllIndexs:[],focusEleType:i.Yq.Rect,focusEleIndex:-1,focusPolygonInfo:{index:-1,pointIndex:-1,lineIndex:-1},isCtrlPressed:!1,hideCreatingObject:!1,imageDisplayOptions:l,annotsDisplayOptions:v}},14464:function(M,b,e){"use strict";e.d(b,{$P:function(){return S},Cj:function(){return v},WE:function(){return p},ZT:function(){return o},a7:function(){return c},dX:function(){return n},g9:function(){return m},wj:function(){return h}});var i=e(34485),t=e.n(i),o=function(y){return y.length!==3?"transparent":"#".concat(y[0].toString(16).padStart(2,"0")).concat(y[1].toString(16).padStart(2,"0")).concat(y[2].toString(16).padStart(2,"0")).toUpperCase()},s=function(y){var Z=/^rgba?\((\d+),\s*(\d+),\s*(\d+)\)$/i.exec(y);return Z?o(Z):"transparent"},n=function(y){var Z=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,F=y.replace(Z,function(T,z,A,L){return z+z+A+A+L+L}),R=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(F);return R?[parseInt(R[1],16),parseInt(R[2],16),parseInt(R[3],16)]:[0,0,0]},c=function(y){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,R=y.replace(F,function(A,L,I,$){return L+L+I+I+$+$}),T=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(R),z=Z<0||Z>1?1:Z;return T?"rgba(".concat(parseInt(T[1],16),",").concat(parseInt(T[2],16),",").concat(parseInt(T[3],16),",").concat(z,")"):"transparent"},l=function(y){for(var Z=["#FFFF00","#FF0000","#0000FF","#00FF00","#FF00FF","#00FFFF"],F=[255,128,64,32,16,8,4,2,1],R=Z.length+1;Z.length0)if(T[L%3]+F[Math.floor(L/3)]<=255)T[L%3]+=F[Math.floor(L/3)];else{A=!1;break}z<<=1}if(A){var I="#".concat(T[0].toString(16).padStart(2,"0")).concat(T[1].toString(16).padStart(2,"0")).concat(T[2].toString(16).padStart(2,"0")).toUpperCase();Z.includes(I)||Z.push(I)}}return Z},v=function(y,Z){if(!y.length)return{};var F=t()(y);if(Z==="All")F.shift();else if(Z){var R=F.findIndex(function(A){return A===Z});F.splice(R,1),F[0]=Z}var T=l(F.length),z={};return F.forEach(function(A,L){z[A]=T[L]}),z},h=function(y,Z){return y.length!==3?"transparent":"rgba(".concat(y[0],", ").concat(y[1],", ").concat(y[2],", ").concat(Z,")")},m=function(y){var Z=y.slice(5,-1).split(",").map(function(F){return F.trim()});return Z.length!==4||isNaN(parseFloat(Z[3]))?[]:Z.slice(0,3)},C=function(y,Z){if(!y)return"rgba(0,0,0,0)";var F=y.substring(5,y.length-1).split(",").map(function(z){return parseInt(z.trim())}),R=[].concat(_toConsumableArray(F.slice(0,3)),[Z]),T="rgba(".concat(R.join(","),")");return T},p=function(y,Z,F){var R=F*Z,T=R*(1-Math.abs(y*6%2-1)),z=F-R,A=0,L=0,I=0;return y<1/6?(A=R,L=T):y<2/6?(A=T,L=R):y<3/6?(L=R,I=T):y<4/6?(L=T,I=R):y<5/6?(A=T,I=R):(A=R,I=T),[Math.round((A+z)*255),Math.round((L+z)*255),Math.round((I+z)*255)]},S=function(){var w=.618033988749895,y=0;return function(){y=(y+w)%1;var Z=p(y,.8,.95);return o(Z)}}()},46134:function(M,b,e){"use strict";e.d(b,{$5:function(){return P},A7:function(){return y},AR:function(){return S},Ak:function(){return wt},Ap:function(){return I},E5:function(){return Fe},I4:function(){return Ie},Iw:function(){return Q},Nm:function(){return Ne},Oh:function(){return gt},Qo:function(){return Mt},RF:function(){return Me},U8:function(){return We},Vh:function(){return w},Wx:function(){return se},X6:function(){return Se},XR:function(){return ke},X_:function(){return pe},YO:function(){return p},Z0:function(){return ge},Z4:function(){return D},ZU:function(){return he},aF:function(){return de},cO:function(){return $},cU:function(){return T},e4:function(){return Je},el:function(){return K},fL:function(){return re},hv:function(){return Ze},i$:function(){return He},j9:function(){return N},jt:function(){return ce},kh:function(){return A},l1:function(){return Lt},lT:function(){return le},my:function(){return qe},o7:function(){return Ce},s5:function(){return et},t9:function(){return C},tQ:function(){return V},uN:function(){return k}});var i=e(63900),t=e.n(i),o=e(88479),s=e.n(o),n=e(88205),c=e.n(n),l=e(86505),v=e(14464),h=e(39378),m=e.n(h),C=function(oe,ye,Be,De){if(!oe||!ye)return[0,0,1];if(!Be)return[oe/ye*(De||0),De||0,1];if(!De)return[Be||0,ye/oe*(Be||0),1];var Pe=oe,we=ye,Le=1;return oe/ye>=Be/De?(Pe=Be,we=ye*Be/oe,Le=Be/oe):(we=De,Pe=oe*De/ye,Le=De/ye),[Pe||0,we||0,Le]},p=function(oe,ye,Be){var De=c()(oe,2),Pe=De[0],we=Pe===void 0?0:Pe,Le=De[1],Ye=Le===void 0?0:Le;return{x:we/ye.width*Be.width,y:Ye/ye.height*Be.height}},S=function(oe,ye,Be){var De=c()(oe,2),Pe=De[0],we=Pe===void 0?0:Pe,Le=De[1],Ye=Le===void 0?0:Le;return{x:we/Be.width*ye.width,y:Ye/Be.height*ye.height}},w=function(oe,ye,Be){var De=[];if(!oe)return De;var Pe=oe.split("/");return Pe==null||Pe.forEach(function(we){for(var Le=[],Ye=we.split(",").map(Number),Ue=0;UeBe.width?Be.width:ye.x,y:ye.y<0?0:ye.y>Be.height?Be.height:ye.y};return{x:Math.min(oe.x,De.x),y:Math.min(oe.y,De.y),width:Math.abs(oe.x-De.x),height:Math.abs(oe.y-De.y)}},Z=function(oe){var ye=1/0,Be=1/0,De=-1/0,Pe=-1/0,we=s()(oe),Le;try{for(we.s();!(Le=we.n()).done;){var Ye=Le.value;ye=Math.min(ye,Ye.x),Be=Math.min(Be,Ye.y),De=Math.max(De,Ye.x),Pe=Math.max(Pe,Ye.y)}}catch(Ue){we.e(Ue)}finally{we.f()}return{minX:ye,minY:Be,maxX:De,maxY:Pe}},F=function(oe,ye,Be){return{x:ye*oe.x,y:Be*oe.y}},R=function(oe,ye,Be){return{x:oe.x+ye,y:oe.y+Be}},T=function(oe,ye){var Be=Z(oe),De=Be.minX,Pe=Be.minY,we=Be.maxX,Le=Be.maxY,Ye=ye.width/(we-De),Ue=ye.height/(Le-Pe),dt=oe.map(function(bt){var ft=R(bt,-De,-Pe),At=F(ft,Ye,Ue),Ot=R(At,ye.x,ye.y);return t()(t()({},bt),Ot)});return dt},z=function(oe,ye){return{xmin:oe.x/ye.width,ymin:oe.y/ye.height,xmax:(oe.x+oe.width)/ye.width,ymax:(oe.y+oe.height)/ye.height}},A=function(oe){return{xmin:oe.x,ymin:oe.y,xmax:oe.x+oe.width,ymax:oe.y+oe.height}},L=function(oe,ye,Be){return{x:oe.x*Be.width/ye.width,y:oe.y*Be.height/ye.height,width:oe.width*Be.width/ye.width,height:oe.height*Be.height/ye.height}},I=function(oe,ye,Be){return{x:oe.x*Be.width/ye.width,y:oe.y*Be.height/ye.height}},$=function(oe,ye){return{x:(oe.xmin||0)*ye.width,y:(oe.ymin||0)*ye.height,width:((oe.xmax||0)-(oe.xmin||0))*ye.width,height:((oe.ymax||0)-(oe.ymin||0))*ye.height}},B=function(oe){return{x:oe.xmin,y:oe.ymin,width:oe.xmax-oe.xmin,height:oe.ymax-oe.ymin}},K=function(oe,ye,Be,De,Pe){for(var we=[],Le=0;Le*6=0&&oe.elementX<=oe.elementW&&oe.elementY>=0&&oe.elementY<=oe.elementH},te=function(oe,ye){return{x:oe.x-ye.x,y:oe.y-ye.y,width:oe.width+2*ye.x,height:oe.height+2*ye.y}},W=function(oe,ye){return t()(t()({},oe),{},{radius:ye})};function G(Ae,oe,ye){var Be={x:oe.x-Ae.x,y:oe.y-Ae.y},De={x:ye.x-Ae.x,y:ye.y-Ae.y};return Be.x*De.y-Be.y*De.x}var O=function(oe,ye,Be){if(!oe||!ye)return!1;switch(Be){case l.Yq.Rect:{var De=oe;return De.x<=ye.x&&De.x+De.width>=ye.x&&De.y<=ye.y&&De.y+De.height>=ye.y}case l.Yq.Circle:{var Pe=oe;return Math.sqrt(Math.pow(ye.x-Pe.x,2)+Math.pow(ye.y-Pe.y,2))<=Pe.radius}case l.Yq.Polygon:{for(var we=oe,Le=1;Le0&&Ye*dt>0)return!0}return!1}default:return!1}},k=function(oe,ye){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:5,De=W(oe,Be),Pe={x:ye.elementX,y:ye.elementY};return O(De,Pe,l.Yq.Circle)},Y=function(oe,ye){var Be=ye.elementX,De=ye.elementY,Pe=Math.sqrt(Math.pow(Be-oe.start.x,2)+Math.pow(De-oe.start.y,2)),we=Math.sqrt(Math.pow(Be-oe.end.x,2)+Math.pow(De-oe.end.y,2)),Le=Math.sqrt(Math.pow(oe.end.x-oe.start.x,2)+Math.pow(oe.end.y-oe.start.y,2)),Ye=.75;return Pe+we>=Le-Ye&&Pe+we<=Le+Ye},P=function(oe){var ye=Z(oe),Be=ye.maxX,De=ye.minX,Pe=ye.maxY,we=ye.minY;return{x:De,y:we,width:Be-De,height:Pe-we}},Q=function(oe){for(var ye=[],Be=0;Be0)return!0}break}}return!1},Ce=function(oe,ye){var Be,De=l.Yq.None,Pe=-1,we={index:-1,pointIndex:-1,lineIndex:-1};if(!ce(oe)||ye.hidden)return{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we};if((Be=ye.keypoints)!==null&&Be!==void 0&&Be.points)for(var Le=ye.keypoints.points,Ye=0;Ye-1)return we.index=Ot,we.pointIndex=jt,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}for(var Gt=0;Gt-1)return we.index=Gt,we.lineIndex=Bn,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}var fn=At.findIndex(function($n){return O($n,{x:oe.elementX,y:oe.elementY},l.Yq.Polygon)});if(fn>-1)return we.index=fn,{focusEleType:l.Yq.Polygon,focusEleIndex:0,focusPolygonInfo:we}}return ye.rect&&O(te(ye.rect,{x:8,y:8}),{x:oe.elementX,y:oe.elementY},l.Yq.Rect)?(De=l.Yq.Rect,Pe=0,{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we}):{focusEleType:De,focusEleIndex:Pe,focusPolygonInfo:we}},ge=function(oe,ye,Be,De){var Pe=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){return!0};if(!ce(ye))return-1;if(De[Be]&&Pe(De[Be])&&fe(ye,De[Be],oe))return Be;for(var we=De.length-1;we>=0;we--)if(Pe(De[we])&&fe(ye,De[we],oe))return we;return-1},Me=function(oe,ye,Be){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){return!0};if(!ce(ye))return[];for(var Pe=[],we=Be.length-1;we>=0;we--)De(Be[we])&&fe(ye,Be[we],oe)&&Pe.push(we);return Pe},Ne=function(Ae){return Ae.TOP="TOP",Ae.BOTTOM="BOTTOM",Ae.LEFT="LEFT",Ae.RIGHT="RIGHT",Ae.TOP_RIGHT="TOP_RIGHT",Ae.TOP_LEFT="TOP_LEFT",Ae.BOTTOM_RIGHT="BOTTOM_RIGHT",Ae.BOTTOM_LEFT="BOTTOM_LEFT",Ae.CENTER="CENTER",Ae}({}),Qe=function(oe){return Math.floor(oe)+.5},Ve=function(oe){return{x:Qe(oe.x),y:Qe(oe.y)}},qe=function(oe){var ye={x:oe.x,y:oe.y},Be={x:oe.x+oe.width,y:oe.y+oe.height},De=Ve(ye),Pe=Ve(Be);return{x:De.x,y:De.y,width:Pe.x-De.x,height:Pe.y-De.y}},Mt=function(oe){return[{type:Ne.TOP_LEFT,position:{x:oe.x,y:oe.y}},{type:Ne.TOP,position:{x:oe.x+.5*oe.width,y:oe.y}},{type:Ne.TOP_RIGHT,position:{x:oe.x+oe.width,y:oe.y}},{type:Ne.LEFT,position:{x:oe.x,y:oe.y+.5*oe.height}},{type:Ne.RIGHT,position:{x:oe.x+oe.width,y:oe.y+.5*oe.height}},{type:Ne.BOTTOM_LEFT,position:{x:oe.x,y:oe.y+oe.height}},{type:Ne.BOTTOM,position:{x:oe.x+.5*oe.width,y:oe.y+oe.height}},{type:Ne.BOTTOM_RIGHT,position:{x:oe.x+oe.width,y:oe.y+oe.height}}]},wt=function(oe,ye){return t()({x:oe.x-.5*ye.width,y:oe.y-.5*ye.height},ye)},gt=function(oe,ye){for(var Be=Mt(oe),De=0;DeBe.elementW?Be.elementW:Be.elementX,Le=Be.elementY<0?0:Be.elementY>Be.elementH?Be.elementH:Be.elementY,Ye={x:we,y:Le};switch(De){case Ne.RIGHT:Ye.y=oe.y+oe.height;break;case Ne.BOTTOM:Ye.x=oe.x+oe.width;break;case Ne.LEFT:Ye.y=oe.y;break;case Ne.TOP:Ye.x=oe.x;break}return y(Pe,Ye,{width:Be.elementW,height:Be.elementH})},He=function(oe,ye,Be){var De=oe.width,Pe=oe.height,we=ye.topLeftPoint,Le=ye.mousePoint,Ye=Be.elementX-Le.x,Ue=Be.elementY-Le.y,dt=we.x+Ye,bt=we.y+Ue;return{x:dt<0?0:dt+De>Be.elementW?Be.elementW-De:dt,y:bt<0?0:bt+Pe>Be.elementH?Be.elementH-Pe:bt,width:De,height:Pe}},et=function(oe,ye,Be){var De=ye.mousePoint,Pe=Be.elementX,we=Be.elementY,Le=Be.elementW,Ye=Be.elementH,Ue=Z(oe),dt=Ue.minX,bt=Ue.minY,ft=Ue.maxX,At=Ue.maxY,Ot=Pe-De.x,jt=we-De.y;Ot=Ot+ft>Le?Le-ft:Ot+dt<0?0:Ot,jt=jt+At>Ye?Ye-At:jt+bt<0?0:jt;var Gt=oe.map(function(Xt){return{x:Xt.x+Ot,y:Xt.y+jt}});return Gt},Fe=function(oe){var ye=oe.elementX,Be=oe.elementY;return{x:ye<0?0:ye>oe.elementW?oe.elementW:ye,y:Be<0?0:Be>oe.elementH?oe.elementH:Be}},ue=function(oe){return!(!(0,h.isNumber)(oe.x)||!(0,h.isNumber)(oe.y)||!(0,h.isNumber)(oe.width)||!(0,h.isNumber)(oe.height)||oe.x===0&&oe.y===0&&oe.width===0&&oe.height===0)},V=function(oe,ye){return oe.maskRle&&(!ye||ye===l.JJ.Mask)?l.gr.Mask:oe.alpha&&(!ye||ye===l.JJ.Matting)?l.gr.Matting:oe.keypoints&&(!ye||ye===l.JJ.KeyPoints)?l.gr.Skeleton:oe.polygon&&(!ye||ye===l.JJ.Segmentation)?l.gr.Polygon:oe.rect&&ue(oe.rect)&&(!ye||ye===l.JJ.Detection)?l.gr.Rectangle:l.gr.Custom},U=function(oe,ye,Be){var De=oe.group.map(function(we){return we.reduce(function(Le,Ye){var Ue=Ye.x,dt=Ye.y,bt=S([Ue,dt],ye,Be);return Le.concat([bt.x,bt.y])},[])}),Pe=De.map(function(we){return we.join(",")}).join("/")||"";return Pe},N=function(oe,ye,Be){var De=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,Pe=oe.map(function(we){var Le=we.label,Ye=we.rect,Ue=we.keypoints,dt=we.polygon,bt=we.maskRle,ft={categoryName:Le};if(Ye&&Object.assign(ft,{boundingBox:De?z(Ye,Be):A(Ye)}),Ue&&Object.assign(ft,t()({lines:Ue.lines},H(Ue.points,ye,Be))),dt){var At=U(dt,ye,Be);Object.assign(ft,{segmentation:At})}return bt&&Object.assign(ft,{mask:bt}),ft});return Pe},D=function(oe,ye,Be){var De={x:oe.x-ye.x,y:oe.y-ye.y},Pe={x:Be.x-ye.x,y:Be.y-ye.y},we=Pe.x*Pe.x+Pe.y*Pe.y,Le=De.x*Pe.x+De.y*Pe.y,Ye=Le/we;return Ye<0||isNaN(Ye)?Ye=0:Ye>1&&(Ye=1),{x:ye.x+Pe.x*Ye,y:ye.y+Pe.y*Ye}},ee=function(oe,ye){return{x:(oe.x+ye.x)/2,y:(oe.y+ye.y)/2}},se=function(oe){var ye=oe.x,Be=oe.y,De=oe.width,Pe=oe.height,we={x:ye,y:Be},Le={x:ye+De,y:Be},Ye={x:ye,y:Be+Pe},Ue={x:ye+De,y:Be+Pe},dt={x:ye+De/2,y:Be},bt={x:ye+De/2,y:Be+Pe},ft={x:ye,y:Be+Pe/2},At={x:ye+De,y:Be+Pe/2},Ot={x:ye+De/2,y:Be+Pe/2};return[we,Le,Ye,Ue,dt,bt,ft,At,Ot]},X=function(oe,ye){var Be=Z(oe),De=Z(ye);if(De.minX>=Be.maxX||De.maxX<=Be.minX||De.minY>=Be.maxY||De.maxY<=Be.minY)return!1;var Pe=s()(oe),we;try{for(Pe.s();!(we=Pe.n()).done;){var Le=we.value;if(!O(ye,Le,l.Yq.Polygon))return!1}}catch(Ye){Pe.e(Ye)}finally{Pe.f()}return!0},re=function(oe){for(var ye=[],Be=0;BeYe||Pe>Ue||De+we<=0||Pe+Le<=0)return{xmin:0,ymin:0,xmax:0,ymax:0};var dt={x:Math.max(0,De),y:Math.max(0,Pe)},bt={x:Math.min(De+we,Ye),y:Math.min(Pe+Le,Ue)},ft={x:oe.x,y:oe.y},At=de(dt,ft),Ot=At.x,jt=At.y,Gt=de(bt,ft),Xt=Gt.x,Bn=Gt.y;return{xmin:Ot,ymin:jt,xmax:Xt,ymax:Bn}},Je=function(oe){for(var ye=oe.getContext("2d",{willReadFrequently:!0}),Be=ye.getImageData(0,0,oe.width,oe.height),De=Be.data,Pe=Be.width,we=Be.height,Le=Pe,Ye=we,Ue=0,dt=0,bt=0,ft=0;ft0){var Ot=ft/4%Pe,jt=Math.floor(ft/4/Pe);bt++,Le=Math.min(Le,Ot),Ye=Math.min(Ye,jt),Ue=Math.max(Ue,Ot),dt=Math.max(dt,jt)}}var Gt={xmin:Le,ymin:Ye,xmax:Ue,ymax:dt};return{area:bt,bbox:Gt}}},81179:function(M,b,e){"use strict";e.d(b,{AE:function(){return c},AT:function(){return S},CR:function(){return y},G5:function(){return z},HT:function(){return L},HU:function(){return Z},KJ:function(){return l},M5:function(){return n},MC:function(){return C},Mu:function(){return w},T8:function(){return I},UN:function(){return o},fb:function(){return R},ix:function(){return s},ku:function(){return v},pS:function(){return m},yU:function(){return T}});var i=e(14464);function t($){return $*Math.PI/180}function o($){var B=$.getContext("2d");B.clearRect(0,0,$.width,$.height)}function s($,B){var K=$.getContext("2d");window.devicePixelRatio&&($.style.width=B.width+"px",$.style.height=B.height+"px",$.height=B.height*window.devicePixelRatio,$.width=B.width*window.devicePixelRatio,K.scale(window.devicePixelRatio,window.devicePixelRatio))}function n($,B){var K=$.getContext("2d");K.globalAlpha=B}function c($,B,K){if(B&&$){var H=$.getContext("2d");try{H.drawImage(B,K.x,K.y,K.width,K.height)}catch(ie){console.error("Load image error:",ie)}}}function l($,B,K,H){if($){var ie=$.getContext("2d");ie.filter="brightness("+B+"%) contrast("+K+"%) saturate("+H+"%)"}}function v($){if($){var B=$.getContext("2d");B.filter="none"}}function h($,B,K){if(B&&$){var H=$.getContext("2d");H.putImageData(B,0,0,K.x,K.y,K.width,K.height)}}function m($,B,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5?arguments[5]:void 0,te=$.getContext("2d");te.save(),te.strokeStyle=H,te.lineWidth=ie,te.lineCap="round",te.beginPath(),ce&&te.setLineDash(ce),te.moveTo(B.x,B.y),te.lineTo(K.x+1,K.y+1),te.stroke(),te.restore()}function C($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#111111",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,ie=arguments.length>4?arguments[4]:void 0,ce=$.getContext("2d");ce.save(),ce.strokeStyle=K,ce.lineWidth=H,ce.lineCap="round",ce.lineJoin="round",ie&&ce.setLineDash(ie),ce.beginPath(),ce.moveTo(B[0].x,B[0].y);for(var te=1,W=B.length;te2&&arguments[2]!==void 0?arguments[2]:"#111111",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:20,ie=arguments.length>4?arguments[4]:void 0,ce=$.getContext("2d");ce.save(),ce.strokeStyle=K,ce.lineWidth=H,ce.lineCap="round",ce.lineJoin="round",ie&&ce.setLineDash(ie),ce.beginPath();var te=B[0],W=B[1];ce.moveTo(te.x,te.y);for(var G=1,O=B.length;G2&&arguments[2]!==void 0?arguments[2]:"#fff",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,ie=arguments.length>4?arguments[4]:void 0,ce=arguments.length>5?arguments[5]:void 0;if($){var te=$.getContext("2d");te.save(),te.strokeStyle=K,te.lineWidth=H,te.beginPath(),ie&&te.setLineDash(ie),te.rect(B.x,B.y,B.width,B.height),te.stroke(),ce&&(te.fillStyle=ce,te.fill()),te.restore()}}function y($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#fff";if($){var H=$.getContext("2d");H.save(),H.fillStyle=K,H.beginPath(),H.rect(B.x,B.y,B.width,B.height),H.fill(),H.restore()}}function Z($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"#000",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.5,ie=$.getContext("2d");ie.save(),ie.fillStyle=K,ie.globalAlpha=H,ie.fillRect(0,0,$.width,$.height),ie.globalCompositeOperation="destination-out",ie.globalAlpha=1,ie.fillRect(B.x,B.y,B.width,B.height),ie.restore()}function F($){var B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{x:0,y:0},K=arguments.length>2?arguments[2]:void 0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1;if($){var ce=$.getContext("2d");ce.save(),ce.strokeStyle=H,ce.lineWidth=ie,ce.beginPath();var te=B.x,W=B.y;ce.moveTo(K[0].x+te,K[0].y+W);for(var G=1;G2&&arguments[2]!==void 0?arguments[2]:"#fff",H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5?arguments[5]:void 0;if($){var te=$.getContext("2d");te.save(),te.fillStyle=K,te.strokeStyle=H,te.lineWidth=ie,ce&&te.setLineDash(ce),te.beginPath(),te.moveTo(B[0].x,B[0].y);for(var W=1;W0&&te.stroke(),te.fill(),te.restore()}}function T($,B,K,H){var ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#ffffff",ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,te=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"center",W=$.getContext("2d");W.save(),W.fillStyle=ie,W.textAlign=te,W.textBaseline="top",W.font=(ce?"bold ":"")+K+"px Arial",W.fillText(B,H.x,H.y),W.restore()}function z($,B,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#ffffff",ie=arguments.length>4?arguments[4]:void 0,ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"#000",te=$.getContext("2d");te.save();var W=t(0),G=t(360);te.lineWidth=ie||0,te.strokeStyle=ce,te.fillStyle=H,te.beginPath(),te.arc(B.x,B.y,K,W,G,!1),te.stroke(),te.fill(),te.restore()}function A($,B,K,H,ie){var ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,te=arguments.length>6&&arguments[6]!==void 0?arguments[6]:"#ffffff",W=$.getContext("2d"),G=t(H),O=t(ie);W.save(),W.strokeStyle=te,W.lineWidth=ce,W.beginPath(),W.arc(B.x,B.y,K,G,O,!1),W.stroke(),W.restore()}function L($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#fff",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"#fff",ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1,te=arguments.length>6?arguments[6]:void 0,W=$.getContext("2d");W.save(),W.fillStyle=H,W.strokeStyle=ie,W.lineWidth=ce,W.lineCap="round",W.lineJoin="round",te&&W.setLineDash(te),W.beginPath(),W.moveTo(B[0].x,B[0].y);for(var G=1;G0&&W.stroke(),W.fill()),W.restore()}function I($,B){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"#111111",ie=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,ce=arguments.length>5&&arguments[5]!==void 0?arguments[5]:20,te=arguments.length>6?arguments[6]:void 0,W=$.getContext("2d");W.save(),W.strokeStyle=H,W.lineWidth=ce,W.lineCap="round",W.lineJoin="round",W.beginPath(),te&&W.setLineDash(te);var G=B[0],O=B[1];W.moveTo(G.x,G.y);for(var k=1,Y=B.length;k0&&(W.globalCompositeOperation="destination-out",W.strokeStyle=H,W.stroke(),W.strokeStyle=(0,i.a7)(H,ie),W.globalCompositeOperation="source-over",W.stroke()):(W.globalCompositeOperation="destination-out",W.stroke()),W.restore()}},2258:function(M,b,e){"use strict";e.d(b,{ii:function(){return qe},ZJ:function(){return et},mn:function(){return n},fL:function(){return p},Qs:function(){return wt},xA:function(){return Z}});var i=e(79233),t=e(58757),o=e(35667),s=function(V){var U=V.children,N=V.active,D=V.tip;return(0,o.jsx)(i.Z,{size:"large",spinning:N,delay:500,style:{maxHeight:"none",opacity:.3},tip:D,children:U})},n=s,c=e(88205),l=e.n(c),v=e(74820),h=e(12562),m=function(ue){return ue.en="en-US",ue.zh="zh-CN",ue}({}),C=function(V){var U=V.getLocale,N=V.setLocale,D=V.tooltipPlacement,ee=D===void 0?"right":D,se=V.theme,X=se===void 0?"light":se,re=V.className,Ie=U(),Se=function(){var xe=Ie===m.zh?m.en:m.zh;N(xe)},he=(0,t.useMemo)(function(){return Ie===m.zh?["change-lang change-lang-".concat(X),"cur-lang cur-lang-".concat(X)]:["cur-lang cur-lang-".concat(X),"change-lang change-lang-".concat(X)]},[X,Ie]),We=l()(he,2),de=We[0],le=We[1];return(0,o.jsx)(v.Z,{placement:ee,title:Ie===m.zh?"\u4E2D\u6587 / English":"English / \u4E2D\u6587",children:(0,o.jsx)(h.ZP,{type:"text",className:"dds-lang-selector ".concat(re),onClick:Se,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("span",{className:le,children:"\u4E2D"}),(0,o.jsx)("span",{className:de,children:"En"})]})})})},p=C,S=e(62109),w=e(12632),y=function(V){var U=V.error,N=V.componentStack,D=V.resetError,ee=function(){S.Z.error({title:U.toString(),content:(0,o.jsx)("div",{style:{height:"60vh",overflowY:"scroll"},children:(0,o.jsx)("p",{children:N})}),onOk:function(){},maskClosable:!0,width:"80vw"})};return(0,o.jsx)("div",{style:{position:"relative",height:"calc(100vh - 64px)",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"500",title:"Running Error",subTitle:"Sorry, something went wrong.",extra:[(0,o.jsx)(h.ZP,{type:"primary",onClick:D,children:"Click here to reset"},"bt1"),(0,o.jsx)(h.ZP,{onClick:ee,children:"Error Detail"},"bt2")]})})},Z=y,F=e(73267),R=e(94706),T=Object.defineProperty,z=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,I=(ue,V,U)=>V in ue?T(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,$=(ue,V)=>{for(var U in V||(V={}))A.call(V,U)&&I(ue,U,V[U]);if(z)for(var U of z(V))L.call(V,U)&&I(ue,U,V[U]);return ue};const B=ue=>t.createElement("svg",$({width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 4.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4V6h3.6c.22 0 .4.18.4.4v1.2a.4.4 0 0 1-.4.4H18v1.6a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V4.4ZM2.4 6a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4V6.4a.4.4 0 0 0-.4-.4H2.4Zm8 10a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4v-1.2a.4.4 0 0 0-.4-.4H10.4Zm-8 0a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4H6v1.6c0 .22.18.4.4.4h1.2a.4.4 0 0 0 .4-.4v-5.2a.4.4 0 0 0-.4-.4H6.4a.4.4 0 0 0-.4.4V16H2.4Z",fill:"#434343"}));var K="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiA0LjRjMC0uMjIuMTgtLjQuNC0uNGgxLjJjLjIyIDAgLjQuMTguNC40VjZoMy42Yy4yMiAwIC40LjE4LjQuNHYxLjJhLjQuNCAwIDAgMS0uNC40SDE4djEuNmEuNC40IDAgMCAxLS40LjRoLTEuMmEuNC40IDAgMCAxLS40LS40VjQuNFpNMi40IDZhLjQuNCAwIDAgMC0uNC40djEuMmMwIC4yMi4xOC40LjQuNGgxMS4yYS40LjQgMCAwIDAgLjQtLjRWNi40YS40LjQgMCAwIDAtLjQtLjRIMi40Wm04IDEwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRoMTEuMmEuNC40IDAgMCAwIC40LS40di0xLjJhLjQuNCAwIDAgMC0uNC0uNEgxMC40Wm0tOCAwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRINnYxLjZjMCAuMjIuMTguNC40LjRoMS4yYS40LjQgMCAwIDAgLjQtLjR2LTUuMmEuNC40IDAgMCAwLS40LS40SDYuNGEuNC40IDAgMCAwLS40LjRWMTZIMi40WiIgZmlsbD0iIzQzNDM0MyIvPjwvc3ZnPg==",H=Object.defineProperty,ie=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,W=(ue,V,U)=>V in ue?H(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,G=(ue,V)=>{for(var U in V||(V={}))ce.call(V,U)&&W(ue,U,V[U]);if(ie)for(var U of ie(V))te.call(V,U)&&W(ue,U,V[U]);return ue};const O=ue=>t.createElement("svg",G({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{d:"M8.536 1.572H7.464c-.095 0-.143.048-.143.143v5.607h-5.32c-.096 0-.144.048-.144.143v1.072c0 .095.048.142.143.142h5.321v5.608c0 .095.048.142.143.142h1.072c.095 0 .142-.047.142-.142V8.679H14c.095 0 .143-.047.143-.142V7.465c0-.095-.048-.143-.143-.143H8.678V1.715c0-.095-.047-.143-.142-.143Z",fill:"#595959"}));var k="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNTM2IDEuNTcySDcuNDY0Yy0uMDk1IDAtLjE0My4wNDgtLjE0My4xNDN2NS42MDdoLTUuMzJjLS4wOTYgMC0uMTQ0LjA0OC0uMTQ0LjE0M3YxLjA3MmMwIC4wOTUuMDQ4LjE0Mi4xNDMuMTQyaDUuMzIxdjUuNjA4YzAgLjA5NS4wNDguMTQyLjE0My4xNDJoMS4wNzJjLjA5NSAwIC4xNDItLjA0Ny4xNDItLjE0MlY4LjY3OUgxNGMuMDk1IDAgLjE0My0uMDQ3LjE0My0uMTQyVjcuNDY1YzAtLjA5NS0uMDQ4LS4xNDMtLjE0My0uMTQzSDguNjc4VjEuNzE1YzAtLjA5NS0uMDQ3LS4xNDMtLjE0Mi0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Y=Object.defineProperty,P=Object.getOwnPropertySymbols,Q=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,Ce=(ue,V,U)=>V in ue?Y(ue,V,{enumerable:!0,configurable:!0,writable:!0,value:U}):ue[V]=U,ge=(ue,V)=>{for(var U in V||(V={}))Q.call(V,U)&&Ce(ue,U,V[U]);if(P)for(var U of P(V))fe.call(V,U)&&Ce(ue,U,V[U]);return ue};const Me=ue=>t.createElement("svg",ge({width:16,height:16,fill:"none",xmlns:"http://www.w3.org/2000/svg"},ue),t.createElement("path",{d:"M14.429 7.322H1.572a.143.143 0 0 0-.143.143v1.072c0 .078.064.142.143.142h12.857a.143.143 0 0 0 .143-.142V7.465a.143.143 0 0 0-.143-.143Z",fill:"#595959"}));var Ne="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjQyOSA3LjMyMkgxLjU3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YxLjA3MmMwIC4wNzguMDY0LjE0Mi4xNDMuMTQyaDEyLjg1N2EuMTQzLjE0MyAwIDAgMCAuMTQzLS4xNDJWNy40NjVhLjE0My4xNDMgMCAwIDAtLjE0My0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==",Qe=e(53357),Ve=function(V){var U=(0,Qe.bU)(),N=U.localeText,D=V.cloumnCount,ee=V.maxCloumnCount,se=ee===void 0?8:ee,X=V.onColumnCountChange,re=V.getPopupContainer;return(0,o.jsx)(F.Z,{getPopupContainer:re,dropdownRender:function(){return(0,o.jsxs)("div",{className:"dds-column-settings-panel",children:[(0,o.jsx)("div",{className:"item-title",children:N("ColumnSettings.title")}),(0,o.jsxs)("div",{className:"item-content",children:[(0,o.jsx)(R.Z,{min:1,max:se,onChange:function(he){return X(he)},value:D,className:"slider"}),(0,o.jsxs)("div",{className:"num-box",children:[(0,o.jsx)(Me,{onClick:function(){return X(!1)}}),(0,o.jsx)("div",{className:"num",children:D}),(0,o.jsx)(O,{onClick:function(){return X(!0)}})]})]})]})},children:(0,o.jsx)("div",{className:"dds-column-settings-btn",children:(0,o.jsx)(B,{})})})},qe=Ve,Mt=function(){return(0,o.jsx)("div",{style:{height:"100vh",width:"100%",backgroundColor:"#fff",display:"flex",justifyContent:"center",alignItems:"center"},children:(0,o.jsx)(w.ZP,{status:"404",title:(0,Qe._w)("MobileAlert.title"),subTitle:(0,Qe._w)("MobileAlert.subTitle")})})},wt=Mt,gt=e(35910),Lt=e(32423),ke=e(39378),He=function(V){var U=V.current,N=V.size,D=V.total,ee=V.onPageChange,se=V.onPageSizeChange,X=(0,t.useState)(N),re=l()(X,2),Ie=re[0],Se=re[1],he=(0,Qe.bU)(),We=he.localeText;return(0,o.jsxs)("div",{className:"dds-dynamic-pagination",children:[(0,o.jsx)(gt.Z,{current:U,pageSize:N,total:D,showSizeChanger:!1,showQuickJumper:!0,onChange:function(le){return ee(le)}}),(0,o.jsxs)("div",{className:"pagesize-wrap",children:[(0,o.jsx)("div",{className:"pagesize-label",children:We("DynamicPagination.label")}),(0,o.jsx)(Lt.Z,{min:1,value:Ie,onChange:function(le){Se(Number(le))},onBlur:function(le){(0,ke.isNaN)(Number(le.target.value))||Number(le.target.value)<=0?se(U,1):se(U,Number(le.target.value))},onPressEnter:function(le){le.target.blur(le)}})]})]})},et=He,Fe=e(14122)},9457:function(M,b,e){"use strict";e.d(b,{_:function(){return y},w:function(){return Z}});var i=e(63900),t=e.n(i),o=e(88205),s=e.n(o),n=e(58757),c=e(86429),l=e(51129),v=e(74324),h=e(66682);const m=h,C={parseNumbers:!1,parseBooleans:!1},p={skipNull:!1,skipEmptyString:!1};var w=(F,R)=>{var T,z;const{navigateMode:A="push",parseOptions:L,stringifyOptions:I}=R||{},$=Object.assign(Object.assign({},C),L),B=Object.assign(Object.assign({},p),I),K=m.useLocation(),H=(T=m.useHistory)===null||T===void 0?void 0:T.call(m),ie=(z=m.useNavigate)===null||z===void 0?void 0:z.call(m),ce=(0,c.Z)(),te=(0,n.useRef)(typeof F=="function"?F():F||{}),W=(0,n.useMemo)(()=>(0,v.parse)(K.search,$),[K.search]),G=(0,n.useMemo)(()=>Object.assign(Object.assign({},te.current),W),[W]),O=k=>{const Y=typeof k=="function"?k(G):k;ce(),H&&H[A]({hash:K.hash,search:(0,v.stringify)(Object.assign(Object.assign({},W),Y),B)||"?"},K.state),ie&&ie({hash:K.hash,search:(0,v.stringify)(Object.assign(Object.assign({},W),Y),B)||"?"},{replace:A==="replace",state:K.state})};return[G,(0,l.Z)(O)]};function y(F){var R=F.pageState,T=F.onInitPageState,z=F.onPageDidMount,A=F.onPageWillUnmount,L=w({},{navigateMode:"replace"}),I=s()(L,2),$=I[0],B=I[1];(0,n.useEffect)(function(){if(T){var K={};try{K=$.pageState?JSON.parse($.pageState):{}}catch(H){console.error("get urlPageState error: ",H)}T(K,$)}return z&&z($),function(){A&&A()}},[]),(0,n.useEffect)(function(){B(t()(t()({},$),{},{pageState:JSON.stringify(R)}))},[R])}function Z(){var F=(0,n.useState)(window.innerWidth),R=s()(F,2),T=R[0],z=R[1],A=(0,n.useState)(window.innerHeight),L=s()(A,2),I=L[0],$=L[1],B=function(){z(window.innerWidth),$(window.innerHeight)};return(0,n.useEffect)(function(){return window.addEventListener("resize",B),function(){window.removeEventListener("resize",B)}},[]),{width:T,height:I}}},41260:function(M,b,e){"use strict";e.d(b,{O:function(){return t},p:function(){return i}});var i=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Math.floor(s*Math.pow(10,n))/Math.pow(10,n)},t=function(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;return Number(s.toFixed(n))}},53357:function(M,b,e){"use strict";e.d(b,{Og:function(){return o},_w:function(){return t},bU:function(){return s}});var i=e(97375),t=function(c){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,i.formatMessage)({id:c},l)},o=i.FormattedMessage,s=function(){var c=(0,i.useIntl)(),l=function(h){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return c.formatMessage({id:h},m)};return{localeText:l}}},23707:function(M,b,e){"use strict";e.d(b,{BQ:function(){return t},Oe:function(){return o},yS:function(){return s}});var i=e(97375),t=function(c){var l=new RegExp("(^|&)"+c+"=([^&]*)(&|$)","i"),v=window.location.search.substr(1).match(l);return v!==null?decodeURIComponent(v[2]):null},o=function(){var c=window.location.pathname.split("/");return c[c.length-1]},s=function(c){document.referrer.includes(c)?window.history.back():i.history.push(c)}},74324:function(M,b,e){"use strict";var i=e(88205).default,t=e(88479).default,o=e(16962).default,s=e(34485).default,n=e(75978),c=e(65140),l=e(96896),v=e(22475),h=function(L){return L==null};function m(A){switch(A.arrayFormat){case"index":return function(L){return function(I,$){var B=I.length;return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[[S(L,A),"[",B,"]"].join("")]):[].concat(s(I),[[S(L,A),"[",S(B,A),"]=",S($,A)].join("")])}};case"bracket":return function(L){return function(I,$){return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[[S(L,A),"[]"].join("")]):[].concat(s(I),[[S(L,A),"[]=",S($,A)].join("")])}};case"comma":case"separator":return function(L){return function(I,$){return $==null||$.length===0?I:I.length===0?[[S(L,A),"=",S($,A)].join("")]:[[I,S($,A)].join(A.arrayFormatSeparator)]}};default:return function(L){return function(I,$){return $===void 0||A.skipNull&&$===null||A.skipEmptyString&&$===""?I:$===null?[].concat(s(I),[S(L,A)]):[].concat(s(I),[[S(L,A),"=",S($,A)].join("")])}}}}function C(A){var L;switch(A.arrayFormat){case"index":return function(I,$,B){if(L=/\[(\d*)\]$/.exec(I),I=I.replace(/\[\d*\]$/,""),!L){B[I]=$;return}B[I]===void 0&&(B[I]={}),B[I][L[1]]=$};case"bracket":return function(I,$,B){if(L=/(\[\])$/.exec(I),I=I.replace(/\[\]$/,""),!L){B[I]=$;return}if(B[I]===void 0){B[I]=[$];return}B[I]=[].concat(B[I],$)};case"comma":case"separator":return function(I,$,B){var K=typeof $=="string"&&$.includes(A.arrayFormatSeparator),H=typeof $=="string"&&!K&&w($,A).includes(A.arrayFormatSeparator);$=H?w($,A):$;var ie=K||H?$.split(A.arrayFormatSeparator).map(function(ce){return w(ce,A)}):$===null?$:w($,A);B[I]=ie};default:return function(I,$,B){if(B[I]===void 0){B[I]=$;return}B[I]=[].concat(B[I],$)}}}function p(A){if(typeof A!="string"||A.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function S(A,L){return L.encode?L.strict?n(A):encodeURIComponent(A):A}function w(A,L){return L.decode?c(A):A}function y(A){return Array.isArray(A)?A.sort():o(A)==="object"?y(Object.keys(A)).sort(function(L,I){return Number(L)-Number(I)}).map(function(L){return A[L]}):A}function Z(A){var L=A.indexOf("#");return L!==-1&&(A=A.slice(0,L)),A}function F(A){var L="",I=A.indexOf("#");return I!==-1&&(L=A.slice(I)),L}function R(A){A=Z(A);var L=A.indexOf("?");return L===-1?"":A.slice(L+1)}function T(A,L){return L.parseNumbers&&!Number.isNaN(Number(A))&&typeof A=="string"&&A.trim()!==""?A=Number(A):L.parseBooleans&&A!==null&&(A.toLowerCase()==="true"||A.toLowerCase()==="false")&&(A=A.toLowerCase()==="true"),A}function z(A,L){L=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},L),p(L.arrayFormatSeparator);var I=C(L),$=Object.create(null);if(typeof A!="string"||(A=A.trim().replace(/^[?#&]/,""),!A))return $;var B=t(A.split("&")),K;try{for(B.s();!(K=B.n()).done;){var H=K.value;if(H!==""){var ie=l(L.decode?H.replace(/\+/g," "):H,"="),ce=i(ie,2),te=ce[0],W=ce[1];W=W===void 0?null:["comma","separator"].includes(L.arrayFormat)?W:w(W,L),I(w(te,L),W,$)}}}catch(Ce){B.e(Ce)}finally{B.f()}for(var G=0,O=Object.keys($);G0}).join("&")},b.parseUrl=function(A,L){L=Object.assign({decode:!0},L);var I=l(A,"#"),$=i(I,2),B=$[0],K=$[1];return Object.assign({url:B.split("?")[0]||"",query:z(R(A),L)},L&&L.parseFragmentIdentifier&&K?{fragmentIdentifier:w(K,L)}:{})},b.stringifyUrl=function(A,L){L=Object.assign({encode:!0,strict:!0},L);var I=Z(A.url).split("?")[0]||"",$=b.extract(A.url),B=b.parse($,{sort:!1}),K=Object.assign(B,A.query),H=b.stringify(K,L);H&&(H="?".concat(H));var ie=F(A.url);return A.fragmentIdentifier&&(ie="#".concat(S(A.fragmentIdentifier,L))),"".concat(I).concat(H).concat(ie)},b.pick=function(A,L,I){I=Object.assign({parseFragmentIdentifier:!0},I);var $=b.parseUrl(A,I),B=$.url,K=$.query,H=$.fragmentIdentifier;return b.stringifyUrl({url:B,query:v(K,L),fragmentIdentifier:H},I)},b.exclude=function(A,L,I){var $=Array.isArray(L)?function(B){return!L.includes(B)}:function(B,K){return!L(B,K)};return b.pick(A,$,I)}},96896:function(M){"use strict";M.exports=function(b,e){if(!(typeof b=="string"&&typeof e=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(e==="")return[b];var i=b.indexOf(e);return i===-1?[b]:[b.slice(0,i),b.slice(i+e.length)]}},75978:function(M){"use strict";M.exports=function(b){return encodeURIComponent(b).replace(/[!'()*]/g,function(e){return"%".concat(e.charCodeAt(0).toString(16).toUpperCase())})}},60581:function(M,b,e){"use strict";e.d(b,{Il:function(){return o},Ov:function(){return s}});var i=e(58757),t=null,o=i.createContext({});function s(){return i.useContext(o)}function n(){var h=useLocation(),m=s(),C=m.clientRoutes,p=matchRoutes(C,h.pathname);return p||[]}function c(){var h,m=n().slice(-1),C=((h=m[0])===null||h===void 0?void 0:h.route)||{},p=C.element,S=_objectWithoutProperties(C,t);return S}function l(){var h=useRouteData(),m=s();return{data:m.serverLoaderData[h.route.id]}}function v(){var h=useRouteData(),m=s();return{data:m.clientLoaderData[h.route.id]}}},21325:function(M,b,e){"use strict";var i=e(23671),t=e(68716),o=e(8851);function s(n,c,l){l===void 0&&(l={});var v=(0,i.Z)(c);(0,o.Z)(function(){var h=(0,t.n)(l.target,window);if(h!=null&&h.addEventListener){var m=function(C){return v.current(C)};return h.addEventListener(n,m,{capture:l.capture,once:l.once,passive:l.passive}),function(){h.removeEventListener(n,m,{capture:l.capture})}}},[n,l.capture,l.once,l.passive],l.target)}b.Z=s},2556:function(M,b,e){"use strict";e.d(b,{Z:function(){return A}});var i=e(43112),t=e(23671),o=e(53807),s=e(68716),n=e(58757),c=e(8851),l=e(85466),v=e.n(l),h=function(L,I){return L===void 0&&(L=[]),I===void 0&&(I=[]),v()(L,I)},m=function(L,I,$){var B=(0,n.useRef)(),K=(0,n.useRef)(0);h(I,B.current)||(B.current=I,K.current+=1),(0,c.Z)(L,[K.current],$)},C=m,p=/(mac|iphone|ipod|ipad)/i.test(typeof navigator!="undefined"?navigator==null?void 0:navigator.platform:""),S=p,w={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,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,leftwindowkey:91,rightwindowkey:92,meta:S?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide: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,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},y={ctrl:function(L){return L.ctrlKey},shift:function(L){return L.shiftKey},alt:function(L){return L.altKey},meta:function(L){return L.type==="keyup"?w.meta.includes(L.keyCode):L.metaKey}};function Z(L){var I=Object.keys(y).reduce(function($,B){return y[B](L)?$+1:$},0);return[16,17,18,91,92].includes(L.keyCode)?I:I+1}function F(L,I,$){var B,K;if(!L.key)return!1;if((0,o.hj)(I))return L.keyCode===I;var H=I.split("."),ie=0;try{for(var ce=(0,i.XA)(H),te=ce.next();!te.done;te=ce.next()){var W=te.value,G=y[W],O=w[W.toLowerCase()];(G&&G(L)||O&&O===L.keyCode)&&ie++}}catch(k){B={error:k}}finally{try{te&&!te.done&&(K=ce.return)&&K.call(ce)}finally{if(B)throw B.error}}return $?ie===H.length&&Z(L)===H.length:ie===H.length}function R(L,I){return(0,o.mf)(L)?L:(0,o.HD)(L)||(0,o.hj)(L)?function($){return F($,L,I)}:Array.isArray(L)?function($){return L.some(function(B){return F($,B,I)})}:function(){return!!L}}var T=["keydown"];function z(L,I,$){var B=$||{},K=B.events,H=K===void 0?T:K,ie=B.target,ce=B.exactMatch,te=ce===void 0?!1:ce,W=B.useCapture,G=W===void 0?!1:W,O=(0,t.Z)(I),k=(0,t.Z)(L);C(function(){var Y,P,Q,fe=(0,s.n)(ie,window);if(fe){var Ce=function(Qe){var Ve,qe=R(k.current,te);if(qe(Qe))return(Ve=O.current)===null||Ve===void 0?void 0:Ve.call(O,Qe)};try{for(var ge=(0,i.XA)(H),Me=ge.next();!Me.done;Me=ge.next()){var Ne=Me.value;(Q=fe==null?void 0:fe.addEventListener)===null||Q===void 0||Q.call(fe,Ne,Ce,G)}}catch(Qe){Y={error:Qe}}finally{try{Me&&!Me.done&&(P=ge.return)&&P.call(ge)}finally{if(Y)throw Y.error}}return function(){var Qe,Ve,qe;try{for(var Mt=(0,i.XA)(H),wt=Mt.next();!wt.done;wt=Mt.next()){var gt=wt.value;(qe=fe==null?void 0:fe.removeEventListener)===null||qe===void 0||qe.call(fe,gt,Ce,G)}}catch(Lt){Qe={error:Lt}}finally{try{wt&&!wt.done&&(Ve=Mt.return)&&Ve.call(Mt)}finally{if(Qe)throw Qe.error}}}}},[H],ie)}var A=z},23671:function(M,b,e){"use strict";var i=e(58757);function t(o){var s=(0,i.useRef)(o);return s.current=o,s}b.Z=t},51129:function(M,b,e){"use strict";var i=e(58757),t=e(53807),o=e(8182);function s(n){o.Z&&((0,t.mf)(n)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof n)));var c=(0,i.useRef)(n);c.current=(0,i.useMemo)(function(){return n},[n]);var l=(0,i.useRef)();return l.current||(l.current=function(){for(var v=[],h=0;h-1&&(ve=setTimeout(function(){C.delete(he)},We)),C.set(he,(0,i.pi)((0,i.pi)({},de),{timer:ve}))},S=function(he){return C.get(he)},w=function(he){if(he){var We=Array.isArray(he)?he:[he];We.forEach(function(de){return C.delete(de)})}else C.clear()},y=new Map,Z=function(he){return y.get(he)},F=function(he,We){y.set(he,We),We.then(function(de){return y.delete(he),de}).catch(function(){y.delete(he)})},R={},T=function(he,We){R[he]&&R[he].forEach(function(de){return de(We)})},z=function(he,We){return R[he]||(R[he]=[]),R[he].push(We),function(){var le=R[he].indexOf(We);R[he].splice(le,1)}},A=function(he,We){var de=We.cacheKey,le=We.cacheTime,ve=le===void 0?5*60*1e3:le,xe=We.staleTime,Ze=xe===void 0?0:xe,pe=We.setCache,Je=We.getCache,Ae=(0,t.useRef)(),oe=(0,t.useRef)(),ye=function(De,Pe){pe?pe(Pe):p(De,ve,Pe),T(De,Pe.data)},Be=function(De,Pe){return Pe===void 0&&(Pe=[]),Je?Je(Pe):S(De)};return h(function(){if(de){var De=Be(de);De&&Object.hasOwnProperty.call(De,"data")&&(he.state.data=De.data,he.state.params=De.params,(Ze===-1||new Date().getTime()-De.time<=Ze)&&(he.state.loading=!1)),Ae.current=z(de,function(Pe){he.setState({data:Pe})})}},[]),(0,m.Z)(function(){var De;(De=Ae.current)===null||De===void 0||De.call(Ae)}),de?{onBefore:function(De){var Pe=Be(de,De);return!Pe||!Object.hasOwnProperty.call(Pe,"data")?{}:Ze===-1||new Date().getTime()-Pe.time<=Ze?{loading:!1,data:Pe==null?void 0:Pe.data,error:void 0,returnNow:!0}:{data:Pe==null?void 0:Pe.data,error:void 0}},onRequest:function(De,Pe){var we=Z(de);return we&&we!==oe.current?{servicePromise:we}:(we=De.apply(void 0,(0,i.ev)([],(0,i.CR)(Pe),!1)),oe.current=we,F(de,we),{servicePromise:we})},onSuccess:function(De,Pe){var we;de&&((we=Ae.current)===null||we===void 0||we.call(Ae),ye(de,{data:De,params:Pe,time:new Date().getTime()}),Ae.current=z(de,function(Le){he.setState({data:Le})}))},onMutate:function(De){var Pe;de&&((Pe=Ae.current)===null||Pe===void 0||Pe.call(Ae),ye(de,{data:De,params:he.state.params,time:new Date().getTime()}),Ae.current=z(de,function(we){he.setState({data:we})}))}}:{}},L=A,I=e(77837),$=e.n(I),B=function(he,We){var de=We.debounceWait,le=We.debounceLeading,ve=We.debounceTrailing,xe=We.debounceMaxWait,Ze=(0,t.useRef)(),pe=(0,t.useMemo)(function(){var Je={};return le!==void 0&&(Je.leading=le),ve!==void 0&&(Je.trailing=ve),xe!==void 0&&(Je.maxWait=xe),Je},[le,ve,xe]);return(0,t.useEffect)(function(){if(de){var Je=he.runAsync.bind(he);return Ze.current=$()(function(Ae){Ae()},de,pe),he.runAsync=function(){for(var Ae=[],oe=0;oe-1&&Ce.splice(de,1)}}if(ce.Z){var Me=function(){if(!(!te()||!fe()))for(var he=0;he{const{type:v,children:h,prefixCls:m,buttonProps:C,close:p,autoFocus:S,emitEvent:w,isSilent:y,quitOnNullishReturnValue:Z,actionFn:F}=l,R=t.useRef(!1),T=t.useRef(null),[z,A]=(0,i.Z)(!1),L=function(){p==null||p.apply(void 0,arguments)};t.useEffect(()=>{let B=null;return S&&(B=setTimeout(()=>{var K;(K=T.current)===null||K===void 0||K.focus()})),()=>{B&&clearTimeout(B)}},[]);const I=B=>{n(B)&&(A(!0),B.then(function(){A(!1,!0),L.apply(void 0,arguments),R.current=!1},K=>{if(A(!1,!0),R.current=!1,!(y!=null&&y()))return Promise.reject(K)}))},$=B=>{if(R.current)return;if(R.current=!0,!F){L();return}let K;if(w){if(K=F(B),Z&&!n(K)){R.current=!1,L(B);return}}else if(F.length)K=F(p),R.current=!1;else if(K=F(),!K){L();return}I(K)};return t.createElement(o.ZP,Object.assign({},(0,s.n)(v),{onClick:$,loading:z,prefixCls:m},C,{ref:T}),h)};b.Z=c},15018:function(M,b,e){"use strict";e.d(b,{Z:function(){return c},i:function(){return n}});var i=e(60409),t=e(58757),o=e(42505),s=e(61836);function n(l){return function(h){return t.createElement(o.ZP,{theme:{token:{motion:!1,zIndexPopupBase:0}}},t.createElement(l,Object.assign({},h)))}}function c(l,v,h,m){function C(p){const{prefixCls:S,style:w}=p,y=t.useRef(null),[Z,F]=t.useState(0),[R,T]=t.useState(0),[z,A]=(0,i.Z)(!1,{value:p.open}),{getPrefixCls:L}=t.useContext(s.E_),I=L(v||"select",S);t.useEffect(()=>{if(A(!0),typeof ResizeObserver!="undefined"){const B=new ResizeObserver(H=>{const ie=H[0].target;F(ie.offsetHeight+8),T(ie.offsetWidth)}),K=setInterval(()=>{var H;const ie=h?`.${h(I)}`:`.${I}-dropdown`,ce=(H=y.current)===null||H===void 0?void 0:H.querySelector(ie);ce&&(clearInterval(K),B.observe(ce))},10);return()=>{clearInterval(K),B.disconnect()}}},[]);let $=Object.assign(Object.assign({},p),{style:Object.assign(Object.assign({},w),{margin:0}),open:z,visible:z,getPopupContainer:()=>y.current});return m&&($=m($)),t.createElement("div",{ref:y,style:{paddingBottom:Z,position:"relative",minWidth:R}},t.createElement(l,Object.assign({},$)))}return n(C)}},1878:function(M,b,e){"use strict";e.d(b,{o2:function(){return n},yT:function(){return c}});var i=e(29140),t=e(34966);const o=t.i.map(l=>`${l}-inverse`),s=["success","processing","error","default","warning"];function n(l){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat((0,i.Z)(o),(0,i.Z)(t.i)).includes(l):t.i.includes(l)}function c(l){return s.includes(l)}},44818:function(M,b){"use strict";function e(){const i=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const n=o[s];n!==void 0&&(i[s]=n)})}return i}b.Z=e},99836:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});const i=t=>t?typeof t=="function"?t():t:null},88858:function(M,b,e){"use strict";e.d(b,{Z:function(){return s}});var i=e(52495),t=e(58757);function o(n,c,l){return typeof n=="boolean"?n:c===void 0?!!l:c!==!1&&c!==null}function s(n,c,l){let v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:t.createElement(i.Z,null),h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(!o(n,c,h))return[!1,null];const C=typeof c=="boolean"||c===void 0||c===null?v:c;return[!0,l?l(C):C]}},69387:function(M,b,e){"use strict";var i=e(58757),t=e(32792);b.Z=()=>{const[o,s]=i.useState(!1);return i.useEffect(()=>{s((0,t.fk)())},[]),o}},4459:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(){const[,o]=i.useReducer(s=>s+1,0);return o}},90881:function(M,b,e){"use strict";e.d(b,{m:function(){return l}});const i=()=>({height:0,opacity:0}),t=v=>{const{scrollHeight:h}=v;return{height:h,opacity:1}},o=v=>({height:v?v.offsetHeight:0}),s=(v,h)=>(h==null?void 0:h.deadline)===!0||h.propertyName==="height",n=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant"}-motion-collapse`,onAppearStart:i,onEnterStart:i,onAppearActive:t,onEnterActive:t,onLeaveStart:o,onLeaveActive:i,onAppearEnd:s,onEnterEnd:s,onLeaveEnd:s,motionDeadline:500}},c=null,l=(v,h,m)=>m!==void 0?m:`${v}-${h}`;b.Z=n},95446:function(M,b,e){"use strict";e.d(b,{Z:function(){return c}});var i=e(24542);function t(l,v,h,m){if(m===!1)return{adjustX:!1,adjustY:!1};const C=m&&typeof m=="object"?m:{},p={};switch(l){case"top":case"bottom":p.shiftX=v.dropdownArrowOffset*2+h;break;case"left":case"right":p.shiftY=v.dropdownArrowOffsetVertical*2+h;break}const S=Object.assign(Object.assign({},p),C);return S.shiftX||(S.adjustX=!0),S.shiftY||(S.adjustY=!0),S}const o={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"]}},s={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"]}},n=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function c(l){const{arrowWidth:v,autoAdjustOverflow:h,arrowPointAtCenter:m,offset:C,borderRadius:p,visibleFirst:S}=l,w=v/2,y={};return Object.keys(o).forEach(Z=>{const F=m&&s[Z]||o[Z],R=Object.assign(Object.assign({},F),{offset:[0,0]});switch(y[Z]=R,n.has(Z)&&(R.autoArrow=!1),Z){case"top":case"topLeft":case"topRight":R.offset[1]=-w-C;break;case"bottom":case"bottomLeft":case"bottomRight":R.offset[1]=w+C;break;case"left":case"leftTop":case"leftBottom":R.offset[0]=-w-C;break;case"right":case"rightTop":case"rightBottom":R.offset[0]=w+C;break}const T=(0,i.fS)({contentRadius:p,limitVerticalRadius:!0});if(m)switch(Z){case"topLeft":case"bottomLeft":R.offset[0]=-T.dropdownArrowOffset-w;break;case"topRight":case"bottomRight":R.offset[0]=T.dropdownArrowOffset+w;break;case"leftTop":case"rightTop":R.offset[1]=-T.dropdownArrowOffset-w;break;case"leftBottom":case"rightBottom":R.offset[1]=T.dropdownArrowOffset+w;break}R.overflow=t(Z,T,v,h),S&&(R.htmlRegion="visibleFirst")}),y}},37047:function(M,b,e){"use strict";var i;e.d(b,{M2:function(){return s},Tm:function(){return c},l$:function(){return o},wm:function(){return n}});var t=e(58757);const{isValidElement:o}=i||(i=e.t(t,2));function s(l){return l&&o(l)&&l.type===t.Fragment}function n(l,v,h){return o(l)?t.cloneElement(l,typeof h=="function"?h(l.props||{}):h):v}function c(l,v){return n(l,l,v)}},87078:function(M,b,e){"use strict";e.d(b,{Z:function(){return c},c:function(){return o}});var i=e(58757),t=e(51806);const o=["xxl","xl","lg","md","sm","xs"],s=l=>({xs:`(max-width: ${l.screenXSMax}px)`,sm:`(min-width: ${l.screenSM}px)`,md:`(min-width: ${l.screenMD}px)`,lg:`(min-width: ${l.screenLG}px)`,xl:`(min-width: ${l.screenXL}px)`,xxl:`(min-width: ${l.screenXXL}px)`}),n=l=>{const v=l,h=[].concat(o).reverse();return h.forEach((m,C)=>{const p=m.toUpperCase(),S=`screen${p}Min`,w=`screen${p}`;if(!(v[S]<=v[w]))throw new Error(`${S}<=${w} fails : !(${v[S]}<=${v[w]})`);if(C{const h=new Map;let m=-1,C={};return{matchHandlers:{},dispatch(p){return C=p,h.forEach(S=>S(C)),h.size>=1},subscribe(p){return h.size||this.register(),m+=1,h.set(m,p),p(C),m},unsubscribe(p){h.delete(p),h.size||this.unregister()},unregister(){Object.keys(v).forEach(p=>{const S=v[p],w=this.matchHandlers[S];w==null||w.mql.removeListener(w==null?void 0:w.listener)}),h.clear()},register(){Object.keys(v).forEach(p=>{const S=v[p],w=Z=>{let{matches:F}=Z;this.dispatch(Object.assign(Object.assign({},C),{[p]:F}))},y=window.matchMedia(S);y.addListener(w),this.matchHandlers[S]={mql:y,listener:w},w(y)})},responsiveMap:v}},[l])}},41496:function(M,b,e){"use strict";e.d(b,{F:function(){return n},Z:function(){return s}});var i=e(87608),t=e.n(i);const o=null;function s(c,l,v){return t()({[`${c}-status-success`]:l==="success",[`${c}-status-warning`]:l==="warning",[`${c}-status-error`]:l==="error",[`${c}-status-validating`]:l==="validating",[`${c}-has-feedback`]:v})}const n=(c,l)=>l||c},32792:function(M,b,e){"use strict";e.d(b,{fk:function(){return s},jD:function(){return t}});var i=e(19075);const t=()=>(0,i.Z)()&&window.document.documentElement;let o;const s=()=>{if(!t())return!1;if(o!==void 0)return o;const n=document.createElement("div");n.style.display="flex",n.style.flexDirection="column",n.style.rowGap="1px",n.appendChild(document.createElement("div")),n.appendChild(document.createElement("div"));const c=document.createElement("div");return c.style.position="absolute",c.style.zIndex="-9999",c.appendChild(n),document.body.appendChild(c),o=n.scrollHeight===1,document.body.removeChild(c),o}},37486:function(M,b,e){"use strict";e.d(b,{Z:function(){return K}});var i=e(87608),t=e.n(i),o=e(21319),s=e(46499),n=e(58757),c=e(61836),l=e(37047),v=e(52628);const h=H=>{const{componentCls:ie,colorPrimary:ce}=H;return{[ie]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${ce})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${H.motionEaseOutCirc}`,`opacity 2s ${H.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow 0.3s ${H.motionEaseInOut}`,`opacity 0.35s ${H.motionEaseInOut}`].join(",")}}}}};var m=(0,v.Z)("Wave",H=>[h(H)]),C=e(51729),p=e(61834),S=e(17598),w=e(52323);function y(H){const ie=(H||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return ie&&ie[1]&&ie[2]&&ie[3]?!(ie[1]===ie[2]&&ie[2]===ie[3]):!0}function Z(H){return H&&H!=="#fff"&&H!=="#ffffff"&&H!=="rgb(255, 255, 255)"&&H!=="rgba(255, 255, 255, 1)"&&y(H)&&!/rgba\((?:\d*, ){3}0\)/.test(H)&&H!=="transparent"}function F(H){const{borderTopColor:ie,borderColor:ce,backgroundColor:te}=getComputedStyle(H);return Z(ie)?ie:Z(ce)?ce:Z(te)?te:null}var R=e(78856);function T(H){return Number.isNaN(H)?0:H}const z=H=>{const{className:ie,target:ce,component:te}=H,W=n.useRef(null),[G,O]=n.useState(null),[k,Y]=n.useState([]),[P,Q]=n.useState(0),[fe,Ce]=n.useState(0),[ge,Me]=n.useState(0),[Ne,Qe]=n.useState(0),[Ve,qe]=n.useState(!1),Mt={left:P,top:fe,width:ge,height:Ne,borderRadius:k.map(Lt=>`${Lt}px`).join(" ")};G&&(Mt["--wave-color"]=G);function wt(){const Lt=getComputedStyle(ce);O(F(ce));const ke=Lt.position==="static",{borderLeftWidth:He,borderTopWidth:et}=Lt;Q(ke?ce.offsetLeft:T(-parseFloat(He))),Ce(ke?ce.offsetTop:T(-parseFloat(et))),Me(ce.offsetWidth),Qe(ce.offsetHeight);const{borderTopLeftRadius:Fe,borderTopRightRadius:ue,borderBottomLeftRadius:V,borderBottomRightRadius:U}=Lt;Y([Fe,ue,U,V].map(N=>T(parseFloat(N))))}if(n.useEffect(()=>{if(ce){const Lt=(0,p.Z)(()=>{wt(),qe(!0)});let ke;return typeof ResizeObserver!="undefined"&&(ke=new ResizeObserver(wt),ke.observe(ce)),()=>{p.Z.cancel(Lt),ke==null||ke.disconnect()}}},[]),!Ve)return null;const gt=(te==="Checkbox"||te==="Radio")&&(ce==null?void 0:ce.classList.contains(R.A));return n.createElement(S.ZP,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(Lt,ke)=>{var He;if(ke.deadline||ke.propertyName==="opacity"){const et=(He=W.current)===null||He===void 0?void 0:He.parentElement;(0,w.v)(et).then(()=>{et==null||et.remove()})}return!1}},Lt=>{let{className:ke}=Lt;return n.createElement("div",{ref:W,className:t()(ie,{"wave-quick":gt},ke),style:Mt})})};var L=(H,ie)=>{var ce;const{component:te}=ie;if(te==="Checkbox"&&!(!((ce=H.querySelector("input"))===null||ce===void 0)&&ce.checked))return;const W=document.createElement("div");W.style.position="absolute",W.style.left="0px",W.style.top="0px",H==null||H.insertBefore(W,H==null?void 0:H.firstChild),(0,w.s)(n.createElement(z,Object.assign({},ie,{target:H})),W)},I=e(51806);function $(H,ie,ce){const{wave:te}=n.useContext(c.E_),[,W,G]=(0,I.Z)(),O=(0,C.Z)(P=>{const Q=H.current;if(te!=null&&te.disabled||!Q)return;const fe=Q.querySelector(`.${R.A}`)||Q,{showEffect:Ce}=te||{};(Ce||L)(fe,{className:ie,token:W,component:ce,event:P,hashId:G})}),k=n.useRef();return P=>{p.Z.cancel(k.current),k.current=(0,p.Z)(()=>{O(P)})}}var K=H=>{const{children:ie,disabled:ce,component:te}=H,{getPrefixCls:W}=(0,n.useContext)(c.E_),G=(0,n.useRef)(null),O=W("wave"),[,k]=m(O),Y=$(G,t()(O,k),te);if(n.useEffect(()=>{const Q=G.current;if(!Q||Q.nodeType!==1||ce)return;const fe=Ce=>{!(0,s.Z)(Ce.target)||!Q.getAttribute||Q.getAttribute("disabled")||Q.disabled||Q.className.includes("disabled")||Q.className.includes("-leave")||Y(Ce)};return Q.addEventListener("click",fe,!0),()=>{Q.removeEventListener("click",fe,!0)}},[ce]),!n.isValidElement(ie))return ie!=null?ie:null;const P=(0,o.Yr)(ie)?(0,o.sQ)(ie.ref,G):G;return(0,l.Tm)(ie,{ref:P})}},78856:function(M,b,e){"use strict";e.d(b,{A:function(){return i}});const i="ant-wave-target"},70921:function(M,b,e){"use strict";e.d(b,{n:function(){return de},Z:function(){return Ze}});var i=e(87608),t=e.n(i),o=e(98186),s=e(21319),n=e(58757),c=e(37486),l=e(61836),v=e(92428),h=e(58785),m=e(43528),p=(0,n.forwardRef)((pe,Je)=>{const{className:Ae,style:oe,children:ye,prefixCls:Be}=pe,De=t()(`${Be}-icon`,Ae);return n.createElement("span",{ref:Je,className:De,style:oe},ye)}),S=e(25755),w=e(17598);const y=(0,n.forwardRef)((pe,Je)=>{let{prefixCls:Ae,className:oe,style:ye,iconClassName:Be}=pe;const De=t()(`${Ae}-loading-icon`,oe);return n.createElement(p,{prefixCls:Ae,className:De,style:ye,ref:Je},n.createElement(S.Z,{className:Be}))}),Z=()=>({width:0,opacity:0,transform:"scale(0)"}),F=pe=>({width:pe.scrollWidth,opacity:1,transform:"scale(1)"});var T=pe=>{const{prefixCls:Je,loading:Ae,existIcon:oe,className:ye,style:Be}=pe,De=!!Ae;return oe?n.createElement(y,{prefixCls:Je,className:ye,style:Be}):n.createElement(w.ZP,{visible:De,motionName:`${Je}-loading-icon-motion`,removeOnLeave:!0,onAppearStart:Z,onAppearActive:F,onEnterStart:Z,onEnterActive:F,onLeaveStart:F,onLeaveActive:Z},(Pe,we)=>{let{className:Le,style:Ye}=Pe;return n.createElement(y,{prefixCls:Je,className:ye,style:Object.assign(Object.assign({},Be),Ye),ref:we,iconClassName:Le})})},z=e(51806),A=function(pe,Je){var Ae={};for(var oe in pe)Object.prototype.hasOwnProperty.call(pe,oe)&&Je.indexOf(oe)<0&&(Ae[oe]=pe[oe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,oe=Object.getOwnPropertySymbols(pe);ye{const{getPrefixCls:Je,direction:Ae}=n.useContext(l.E_),{prefixCls:oe,size:ye,className:Be}=pe,De=A(pe,["prefixCls","size","className"]),Pe=Je("btn-group",oe),[,,we]=(0,z.Z)();let Le="";switch(ye){case"large":Le="lg";break;case"small":Le="sm";break;case"middle":case void 0:break;default:}const Ye=t()(Pe,{[`${Pe}-${Le}`]:Le,[`${Pe}-rtl`]:Ae==="rtl"},Be,we);return n.createElement(L.Provider,{value:ye},n.createElement("div",Object.assign({},De,{className:Ye})))},B=e(37047);const K=/^[\u4e00-\u9fa5]{2}$/,H=K.test.bind(K);function ie(pe){return typeof pe=="string"}function ce(pe){return pe==="text"||pe==="link"}function te(pe,Je){if(pe==null)return;const Ae=Je?" ":"";return typeof pe!="string"&&typeof pe!="number"&&ie(pe.type)&&H(pe.props.children)?(0,B.Tm)(pe,{children:pe.props.children.split("").join(Ae)}):ie(pe)?H(pe)?n.createElement("span",null,pe.split("").join(Ae)):n.createElement("span",null,pe):(0,B.M2)(pe)?n.createElement("span",null,pe):pe}function W(pe,Je){let Ae=!1;const oe=[];return n.Children.forEach(pe,ye=>{const Be=typeof ye,De=Be==="string"||Be==="number";if(Ae&&De){const Pe=oe.length-1,we=oe[Pe];oe[Pe]=`${we}${ye}`}else oe.push(ye);Ae=De}),n.Children.map(oe,ye=>te(ye,Je))}const G=null,O=null,k=null;var Y=e(78330),P=e(64493);function Q(pe,Je){return{[`&-item:not(${Je}-last-item)`]:{marginBottom:-pe.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function fe(pe,Je){return{[`&-item:not(${Je}-first-item):not(${Je}-last-item)`]:{borderRadius:0},[`&-item${Je}-first-item:not(${Je}-last-item)`]:{[`&, &${pe}-sm, &${pe}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${Je}-last-item:not(${Je}-first-item)`]:{[`&, &${pe}-sm, &${pe}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ce(pe){const Je=`${pe.componentCls}-compact-vertical`;return{[Je]:Object.assign(Object.assign({},Q(pe,Je)),fe(pe.componentCls,Je))}}var ge=e(22151),Me=e(52628);const Ne=(pe,Je)=>({[`> span, > ${pe}`]:{"&:not(:last-child)":{[`&, & > ${pe}`]:{"&:not(:disabled)":{borderInlineEndColor:Je}}},"&:not(:first-child)":{[`&, & > ${pe}`]:{"&:not(:disabled)":{borderInlineStartColor:Je}}}}});var Ve=pe=>{const{componentCls:Je,fontSize:Ae,lineWidth:oe,colorPrimaryHover:ye,colorErrorHover:Be}=pe;return{[`${Je}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${Je}`]:{"&:not(:last-child)":{[`&, & > ${Je}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-oe,[`&, & > ${Je}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[Je]:{position:"relative",zIndex:1,[`&:hover, &:focus, - &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${Je}-icon-only`]:{fontSize:Ae}},Re(`${Je}-primary`,ye),Re(`${Je}-danger`,Be)]}};const qe=pe=>{const{componentCls:Je,iconCls:Ae,buttonFontWeight:oe}=pe;return{[Je]:{outline:"none",position:"relative",display:"inline-block",fontWeight:oe,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${pe.lineWidth}px ${pe.lineType} transparent`,cursor:"pointer",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:pe.lineHeight,color:pe.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${Je}-icon`]:{lineHeight:0},[`> ${Ae} + span, > span + ${Ae}`]:{marginInlineStart:pe.marginXS},[`&:not(${Je}-icon-only) > ${Je}-icon`]:{[`&${Je}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:pe.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Y.Qy)(pe)),[`&-icon-only${Je}-compact-item`]:{flex:"none"},[`&-compact-item${Je}-primary`]:{[`&:not([disabled]) + ${Je}-compact-item${Je}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-pe.lineWidth,insetInlineStart:-pe.lineWidth,display:"inline-block",width:pe.lineWidth,height:`calc(100% + ${pe.lineWidth*2}px)`,backgroundColor:pe.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${Je}-primary`]:{[`&:not([disabled]) + ${Je}-compact-vertical-item${Je}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-pe.lineWidth,insetInlineStart:-pe.lineWidth,display:"inline-block",width:`calc(100% + ${pe.lineWidth*2}px)`,height:pe.lineWidth,backgroundColor:pe.colorPrimaryHover,content:'""'}}}}}}},Mt=(pe,Je,Ae)=>({[`&:not(:disabled):not(${pe}-disabled)`]:{"&:hover":Je,"&:active":Ae}}),wt=pe=>({minWidth:pe.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),mt=pe=>({borderRadius:pe.controlHeight,paddingInlineStart:pe.controlHeight/2,paddingInlineEnd:pe.controlHeight/2}),Nt=pe=>({cursor:"not-allowed",borderColor:pe.colorBorder,color:pe.colorTextDisabled,backgroundColor:pe.colorBgContainerDisabled,boxShadow:"none"}),ke=(pe,Je,Ae,oe,ye,Be,De)=>({[`&${pe}-background-ghost`]:Object.assign(Object.assign({color:Je||void 0,backgroundColor:"transparent",borderColor:Ae||void 0,boxShadow:"none"},Mt(pe,Object.assign({backgroundColor:"transparent"},Be),Object.assign({backgroundColor:"transparent"},De))),{"&:disabled":{cursor:"not-allowed",color:oe||void 0,borderColor:ye||void 0}})}),He=pe=>({[`&:disabled, &${pe.componentCls}-disabled`]:Object.assign({},Nt(pe))}),et=pe=>Object.assign({},He(pe)),Fe=pe=>({[`&:disabled, &${pe.componentCls}-disabled`]:{cursor:"not-allowed",color:pe.colorTextDisabled}}),ue=pe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(pe)),{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.controlTmpOutline}`}),Mt(pe.componentCls,{color:pe.colorPrimaryHover,borderColor:pe.colorPrimaryHover},{color:pe.colorPrimaryActive,borderColor:pe.colorPrimaryActive})),ke(pe.componentCls,pe.colorBgContainer,pe.colorBgContainer,pe.colorTextDisabled,pe.colorBorder)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:pe.colorError,borderColor:pe.colorError},Mt(pe.componentCls,{color:pe.colorErrorHover,borderColor:pe.colorErrorBorderHover},{color:pe.colorErrorActive,borderColor:pe.colorErrorActive})),ke(pe.componentCls,pe.colorError,pe.colorError,pe.colorTextDisabled,pe.colorBorder)),He(pe))}),V=pe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(pe)),{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimary,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.controlOutline}`}),Mt(pe.componentCls,{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimaryHover},{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimaryActive})),ke(pe.componentCls,pe.colorPrimary,pe.colorPrimary,pe.colorTextDisabled,pe.colorBorder,{color:pe.colorPrimaryHover,borderColor:pe.colorPrimaryHover},{color:pe.colorPrimaryActive,borderColor:pe.colorPrimaryActive})),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:pe.colorError,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.colorErrorOutline}`},Mt(pe.componentCls,{backgroundColor:pe.colorErrorHover},{backgroundColor:pe.colorErrorActive})),ke(pe.componentCls,pe.colorError,pe.colorError,pe.colorTextDisabled,pe.colorBorder,{color:pe.colorErrorHover,borderColor:pe.colorErrorHover},{color:pe.colorErrorActive,borderColor:pe.colorErrorActive})),He(pe))}),U=pe=>Object.assign(Object.assign({},ue(pe)),{borderStyle:"dashed"}),N=pe=>Object.assign(Object.assign(Object.assign({color:pe.colorLink},Mt(pe.componentCls,{color:pe.colorLinkHover},{color:pe.colorLinkActive})),Fe(pe)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign({color:pe.colorError},Mt(pe.componentCls,{color:pe.colorErrorHover},{color:pe.colorErrorActive})),Fe(pe))}),D=pe=>Object.assign(Object.assign(Object.assign({},Mt(pe.componentCls,{color:pe.colorText,backgroundColor:pe.colorBgTextHover},{color:pe.colorText,backgroundColor:pe.colorBgTextActive})),Fe(pe)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign({color:pe.colorError},Fe(pe)),Mt(pe.componentCls,{color:pe.colorErrorHover,backgroundColor:pe.colorErrorBg},{color:pe.colorErrorHover,backgroundColor:pe.colorErrorBg}))}),ee=pe=>{const{componentCls:Je}=pe;return{[`${Je}-default`]:ue(pe),[`${Je}-primary`]:V(pe),[`${Je}-dashed`]:U(pe),[`${Je}-link`]:N(pe),[`${Je}-text`]:D(pe),[`${Je}-ghost`]:ke(pe.componentCls,pe.colorBgContainer,pe.colorBgContainer,pe.colorTextDisabled,pe.colorBorder)}},se=function(pe){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Ae,controlHeight:oe,fontSize:ye,lineHeight:Be,lineWidth:De,borderRadius:Pe,buttonPaddingHorizontal:we,iconCls:Le}=pe,Ye=Math.max(0,(oe-ye*Be)/2-De),Ue=we-De,dt=`${Ae}-icon-only`;return[{[`${Ae}${Je}`]:{fontSize:ye,height:oe,padding:`${Ye}px ${Ue}px`,borderRadius:Pe,[`&${dt}`]:{width:oe,paddingInlineStart:0,paddingInlineEnd:0,[`&${Ae}-round`]:{width:"auto"},[Le]:{fontSize:pe.buttonIconOnlyFontSize}},[`&${Ae}-loading`]:{opacity:pe.opacityLoading,cursor:"default"},[`${Ae}-loading-icon`]:{transition:`width ${pe.motionDurationSlow} ${pe.motionEaseInOut}, opacity ${pe.motionDurationSlow} ${pe.motionEaseInOut}`}}},{[`${Ae}${Ae}-circle${Je}`]:wt(pe)},{[`${Ae}${Ae}-round${Je}`]:mt(pe)}]},X=pe=>se(pe),re=pe=>{const Je=(0,ge.TS)(pe,{controlHeight:pe.controlHeightSM,padding:pe.paddingXS,buttonPaddingHorizontal:8,borderRadius:pe.borderRadiusSM,buttonIconOnlyFontSize:pe.fontSizeLG-2});return se(Je,`${pe.componentCls}-sm`)},Ie=pe=>{const Je=(0,ge.TS)(pe,{controlHeight:pe.controlHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG,buttonIconOnlyFontSize:pe.fontSizeLG+2});return se(Je,`${pe.componentCls}-lg`)},Se=pe=>{const{componentCls:Je}=pe;return{[Je]:{[`&${Je}-block`]:{width:"100%"}}}};var he=(0,Me.Z)("Button",pe=>{const{controlTmpOutline:Je,paddingContentHorizontal:Ae}=pe,oe=(0,ge.TS)(pe,{colorOutlineDefault:Je,buttonPaddingHorizontal:Ae,buttonIconOnlyFontSize:pe.fontSizeLG,buttonFontWeight:400});return[qe(oe),re(oe),X(oe),Ie(oe),Se(oe),ee(oe),Ve(oe),(0,P.c)(pe),Ce(pe)]}),We=function(pe,Je){var Ae={};for(var oe in pe)Object.prototype.hasOwnProperty.call(pe,oe)&&Je.indexOf(oe)<0&&(Ae[oe]=pe[oe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,oe=Object.getOwnPropertySymbols(pe);ye{var Ae,oe;const{loading:ye=!1,prefixCls:Be,type:De="default",danger:Pe,shape:we="default",size:Le,styles:Ye,disabled:Ue,className:dt,rootClassName:bt,children:ft,icon:At,ghost:Ot=!1,block:jt=!1,htmlType:Gt="button",classNames:Xt,style:zn={}}=pe,fn=We(pe,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:Bn,autoInsertSpaceInButton:On,direction:Mn,button:_e}=(0,n.useContext)(l.E_),at=Bn("btn",Be),[Vt,rn]=he(at),st=(0,n.useContext)(v.Z),ut=Ue!=null?Ue:st,$t=(0,n.useContext)(L),nt=(0,n.useMemo)(()=>le(ye),[ye]),[gt,Dt]=(0,n.useState)(nt.loading),[xn,tn]=(0,n.useState)(!1),Hn=(0,n.createRef)(),Nn=(0,s.sQ)(Je,Hn),pr=n.Children.count(ft)===1&&!At&&!ce(De);(0,n.useEffect)(()=>{let ct=null;nt.delay>0?ct=setTimeout(()=>{ct=null,Dt(!0)},nt.delay):Dt(nt.loading);function lt(){ct&&(clearTimeout(ct),ct=null)}return lt},[nt]),(0,n.useEffect)(()=>{if(!Nn||!Nn.current||On===!1)return;const ct=Nn.current.textContent;pr&&H(ct)?xn||tn(!0):xn&&tn(!1)},[Nn]);const gr=ct=>{const{onClick:lt}=pe;if(gt||ut){ct.preventDefault();return}lt==null||lt(ct)},Or=On!==!1,{compactSize:ar,compactItemClassnames:mr}=(0,m.ri)(at,Mn),ea={large:"lg",small:"sm",middle:void 0},Lr=(0,h.Z)(ct=>{var lt,xt;return(xt=(lt=Le!=null?Le:ar)!==null&<!==void 0?lt:$t)!==null&&xt!==void 0?xt:ct}),Kn=Lr&&ea[Lr]||"",zt=gt?"loading":At,Ft=(0,o.Z)(fn,["navigate"]),on=t()(at,rn,{[`${at}-${we}`]:we!=="default"&&we,[`${at}-${De}`]:De,[`${at}-${Kn}`]:Kn,[`${at}-icon-only`]:!ft&&ft!==0&&!!zt,[`${at}-background-ghost`]:Ot&&!ce(De),[`${at}-loading`]:gt,[`${at}-two-chinese-chars`]:xn&&Or&&!gt,[`${at}-block`]:jt,[`${at}-dangerous`]:!!Pe,[`${at}-rtl`]:Mn==="rtl"},mr,dt,bt,_e==null?void 0:_e.className),nn=Object.assign(Object.assign({},_e==null?void 0:_e.style),zn),kt=t()(Xt==null?void 0:Xt.icon,(Ae=_e==null?void 0:_e.classNames)===null||Ae===void 0?void 0:Ae.icon),hn=Object.assign(Object.assign({},(Ye==null?void 0:Ye.icon)||{}),((oe=_e==null?void 0:_e.styles)===null||oe===void 0?void 0:oe.icon)||{}),dn=At&&!gt?n.createElement(p,{prefixCls:at,className:kt,style:hn},At):n.createElement(T,{existIcon:!!At,prefixCls:at,loading:!!gt}),$n=ft||ft===0?W(ft,pr&&Or):null;if(Ft.href!==void 0)return Vt(n.createElement("a",Object.assign({},Ft,{className:t()(on,{[`${at}-disabled`]:ut}),style:nn,onClick:gr,ref:Nn}),dn,$n));let qn=n.createElement("button",Object.assign({},fn,{type:Gt,className:on,style:nn,onClick:gr,disabled:ut,ref:Nn}),dn,$n);return ce(De)||(qn=n.createElement(c.Z,{component:"Button",disabled:!!gt},qn)),Vt(qn)},xe=(0,n.forwardRef)(ve);xe.Group=$,xe.__ANT_BUTTON=!0;var Ze=xe},12562:function(M,b,e){"use strict";var i=e(70921);b.ZP=i.Z},81872:function(M,b,e){"use strict";var i=e(7056);b.Z=i.Z},18624:function(M,b,e){"use strict";e.d(b,{Z:function(){return G}});var i=e(87608),t=e.n(i),o=e(98186),s=e(58757),n=e(61836),c=e(58785),l=e(57214),v=e(16951),h=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Q{var{prefixCls:k,className:Y,hoverable:P=!0}=O,Q=h(O,["prefixCls","className","hoverable"]);const{getPrefixCls:fe}=s.useContext(n.E_),Ce=fe("card",k),ge=t()(`${Ce}-grid`,Y,{[`${Ce}-grid-hoverable`]:P});return s.createElement("div",Object.assign({},Q,{className:ge}))},p=e(78330),S=e(52628),w=e(22151);const y=O=>{const{antCls:k,componentCls:Y,headerHeight:P,cardPaddingBase:Q,tabsMarginBottom:fe}=O;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:P,marginBottom:-1,padding:`0 ${Q}px`,color:O.colorTextHeading,fontWeight:O.fontWeightStrong,fontSize:O.headerFontSize,background:O.headerBg,borderBottom:`${O.lineWidth}px ${O.lineType} ${O.colorBorderSecondary}`,borderRadius:`${O.borderRadiusLG}px ${O.borderRadiusLG}px 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[` + &:active`]:{zIndex:2},"&[disabled]":{zIndex:0}},[`${Je}-icon-only`]:{fontSize:Ae}},Ne(`${Je}-primary`,ye),Ne(`${Je}-danger`,Be)]}};const qe=pe=>{const{componentCls:Je,iconCls:Ae,buttonFontWeight:oe}=pe;return{[Je]:{outline:"none",position:"relative",display:"inline-block",fontWeight:oe,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${pe.lineWidth}px ${pe.lineType} transparent`,cursor:"pointer",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:pe.lineHeight,color:pe.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${Je}-icon`]:{lineHeight:0},[`> ${Ae} + span, > span + ${Ae}`]:{marginInlineStart:pe.marginXS},[`&:not(${Je}-icon-only) > ${Je}-icon`]:{[`&${Je}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:pe.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},(0,Y.Qy)(pe)),[`&-icon-only${Je}-compact-item`]:{flex:"none"},[`&-compact-item${Je}-primary`]:{[`&:not([disabled]) + ${Je}-compact-item${Je}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-pe.lineWidth,insetInlineStart:-pe.lineWidth,display:"inline-block",width:pe.lineWidth,height:`calc(100% + ${pe.lineWidth*2}px)`,backgroundColor:pe.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${Je}-primary`]:{[`&:not([disabled]) + ${Je}-compact-vertical-item${Je}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-pe.lineWidth,insetInlineStart:-pe.lineWidth,display:"inline-block",width:`calc(100% + ${pe.lineWidth*2}px)`,height:pe.lineWidth,backgroundColor:pe.colorPrimaryHover,content:'""'}}}}}}},Mt=(pe,Je,Ae)=>({[`&:not(:disabled):not(${pe}-disabled)`]:{"&:hover":Je,"&:active":Ae}}),wt=pe=>({minWidth:pe.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),gt=pe=>({borderRadius:pe.controlHeight,paddingInlineStart:pe.controlHeight/2,paddingInlineEnd:pe.controlHeight/2}),Lt=pe=>({cursor:"not-allowed",borderColor:pe.colorBorder,color:pe.colorTextDisabled,backgroundColor:pe.colorBgContainerDisabled,boxShadow:"none"}),ke=(pe,Je,Ae,oe,ye,Be,De)=>({[`&${pe}-background-ghost`]:Object.assign(Object.assign({color:Je||void 0,backgroundColor:"transparent",borderColor:Ae||void 0,boxShadow:"none"},Mt(pe,Object.assign({backgroundColor:"transparent"},Be),Object.assign({backgroundColor:"transparent"},De))),{"&:disabled":{cursor:"not-allowed",color:oe||void 0,borderColor:ye||void 0}})}),He=pe=>({[`&:disabled, &${pe.componentCls}-disabled`]:Object.assign({},Lt(pe))}),et=pe=>Object.assign({},He(pe)),Fe=pe=>({[`&:disabled, &${pe.componentCls}-disabled`]:{cursor:"not-allowed",color:pe.colorTextDisabled}}),ue=pe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(pe)),{backgroundColor:pe.colorBgContainer,borderColor:pe.colorBorder,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.controlTmpOutline}`}),Mt(pe.componentCls,{color:pe.colorPrimaryHover,borderColor:pe.colorPrimaryHover},{color:pe.colorPrimaryActive,borderColor:pe.colorPrimaryActive})),ke(pe.componentCls,pe.colorBgContainer,pe.colorBgContainer,pe.colorTextDisabled,pe.colorBorder)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:pe.colorError,borderColor:pe.colorError},Mt(pe.componentCls,{color:pe.colorErrorHover,borderColor:pe.colorErrorBorderHover},{color:pe.colorErrorActive,borderColor:pe.colorErrorActive})),ke(pe.componentCls,pe.colorError,pe.colorError,pe.colorTextDisabled,pe.colorBorder)),He(pe))}),V=pe=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},et(pe)),{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimary,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.controlOutline}`}),Mt(pe.componentCls,{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimaryHover},{color:pe.colorTextLightSolid,backgroundColor:pe.colorPrimaryActive})),ke(pe.componentCls,pe.colorPrimary,pe.colorPrimary,pe.colorTextDisabled,pe.colorBorder,{color:pe.colorPrimaryHover,borderColor:pe.colorPrimaryHover},{color:pe.colorPrimaryActive,borderColor:pe.colorPrimaryActive})),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:pe.colorError,boxShadow:`0 ${pe.controlOutlineWidth}px 0 ${pe.colorErrorOutline}`},Mt(pe.componentCls,{backgroundColor:pe.colorErrorHover},{backgroundColor:pe.colorErrorActive})),ke(pe.componentCls,pe.colorError,pe.colorError,pe.colorTextDisabled,pe.colorBorder,{color:pe.colorErrorHover,borderColor:pe.colorErrorHover},{color:pe.colorErrorActive,borderColor:pe.colorErrorActive})),He(pe))}),U=pe=>Object.assign(Object.assign({},ue(pe)),{borderStyle:"dashed"}),N=pe=>Object.assign(Object.assign(Object.assign({color:pe.colorLink},Mt(pe.componentCls,{color:pe.colorLinkHover},{color:pe.colorLinkActive})),Fe(pe)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign({color:pe.colorError},Mt(pe.componentCls,{color:pe.colorErrorHover},{color:pe.colorErrorActive})),Fe(pe))}),D=pe=>Object.assign(Object.assign(Object.assign({},Mt(pe.componentCls,{color:pe.colorText,backgroundColor:pe.colorBgTextHover},{color:pe.colorText,backgroundColor:pe.colorBgTextActive})),Fe(pe)),{[`&${pe.componentCls}-dangerous`]:Object.assign(Object.assign({color:pe.colorError},Fe(pe)),Mt(pe.componentCls,{color:pe.colorErrorHover,backgroundColor:pe.colorErrorBg},{color:pe.colorErrorHover,backgroundColor:pe.colorErrorBg}))}),ee=pe=>{const{componentCls:Je}=pe;return{[`${Je}-default`]:ue(pe),[`${Je}-primary`]:V(pe),[`${Je}-dashed`]:U(pe),[`${Je}-link`]:N(pe),[`${Je}-text`]:D(pe),[`${Je}-ghost`]:ke(pe.componentCls,pe.colorBgContainer,pe.colorBgContainer,pe.colorTextDisabled,pe.colorBorder)}},se=function(pe){let Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:Ae,controlHeight:oe,fontSize:ye,lineHeight:Be,lineWidth:De,borderRadius:Pe,buttonPaddingHorizontal:we,iconCls:Le}=pe,Ye=Math.max(0,(oe-ye*Be)/2-De),Ue=we-De,dt=`${Ae}-icon-only`;return[{[`${Ae}${Je}`]:{fontSize:ye,height:oe,padding:`${Ye}px ${Ue}px`,borderRadius:Pe,[`&${dt}`]:{width:oe,paddingInlineStart:0,paddingInlineEnd:0,[`&${Ae}-round`]:{width:"auto"},[Le]:{fontSize:pe.buttonIconOnlyFontSize}},[`&${Ae}-loading`]:{opacity:pe.opacityLoading,cursor:"default"},[`${Ae}-loading-icon`]:{transition:`width ${pe.motionDurationSlow} ${pe.motionEaseInOut}, opacity ${pe.motionDurationSlow} ${pe.motionEaseInOut}`}}},{[`${Ae}${Ae}-circle${Je}`]:wt(pe)},{[`${Ae}${Ae}-round${Je}`]:gt(pe)}]},X=pe=>se(pe),re=pe=>{const Je=(0,ge.TS)(pe,{controlHeight:pe.controlHeightSM,padding:pe.paddingXS,buttonPaddingHorizontal:8,borderRadius:pe.borderRadiusSM,buttonIconOnlyFontSize:pe.fontSizeLG-2});return se(Je,`${pe.componentCls}-sm`)},Ie=pe=>{const Je=(0,ge.TS)(pe,{controlHeight:pe.controlHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG,buttonIconOnlyFontSize:pe.fontSizeLG+2});return se(Je,`${pe.componentCls}-lg`)},Se=pe=>{const{componentCls:Je}=pe;return{[Je]:{[`&${Je}-block`]:{width:"100%"}}}};var he=(0,Me.Z)("Button",pe=>{const{controlTmpOutline:Je,paddingContentHorizontal:Ae}=pe,oe=(0,ge.TS)(pe,{colorOutlineDefault:Je,buttonPaddingHorizontal:Ae,buttonIconOnlyFontSize:pe.fontSizeLG,buttonFontWeight:400});return[qe(oe),re(oe),X(oe),Ie(oe),Se(oe),ee(oe),Ve(oe),(0,P.c)(pe),Ce(pe)]}),We=function(pe,Je){var Ae={};for(var oe in pe)Object.prototype.hasOwnProperty.call(pe,oe)&&Je.indexOf(oe)<0&&(Ae[oe]=pe[oe]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,oe=Object.getOwnPropertySymbols(pe);ye{var Ae,oe;const{loading:ye=!1,prefixCls:Be,type:De="default",danger:Pe,shape:we="default",size:Le,styles:Ye,disabled:Ue,className:dt,rootClassName:bt,children:ft,icon:At,ghost:Ot=!1,block:jt=!1,htmlType:Gt="button",classNames:Xt,style:Bn={}}=pe,fn=We(pe,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:$n,autoInsertSpaceInButton:On,direction:Mn,button:_e}=(0,n.useContext)(l.E_),at=$n("btn",Be),[Vt,an]=he(at),st=(0,n.useContext)(v.Z),ut=Ue!=null?Ue:st,$t=(0,n.useContext)(L),nt=(0,n.useMemo)(()=>le(ye),[ye]),[mt,Dt]=(0,n.useState)(nt.loading),[Cn,en]=(0,n.useState)(!1),Hn=(0,n.createRef)(),Rn=(0,s.sQ)(Je,Hn),pr=n.Children.count(ft)===1&&!At&&!ce(De);(0,n.useEffect)(()=>{let ct=null;nt.delay>0?ct=setTimeout(()=>{ct=null,Dt(!0)},nt.delay):Dt(nt.loading);function lt(){ct&&(clearTimeout(ct),ct=null)}return lt},[nt]),(0,n.useEffect)(()=>{if(!Rn||!Rn.current||On===!1)return;const ct=Rn.current.textContent;pr&&H(ct)?Cn||en(!0):Cn&&en(!1)},[Rn]);const gr=ct=>{const{onClick:lt}=pe;if(mt||ut){ct.preventDefault();return}lt==null||lt(ct)},Or=On!==!1,{compactSize:ar,compactItemClassnames:mr}=(0,m.ri)(at,Mn),qr={large:"lg",small:"sm",middle:void 0},Pr=(0,h.Z)(ct=>{var lt,xt;return(xt=(lt=Le!=null?Le:ar)!==null&<!==void 0?lt:$t)!==null&&xt!==void 0?xt:ct}),Vn=Pr&&qr[Pr]||"",zt=mt?"loading":At,Ft=(0,o.Z)(fn,["navigate"]),sn=t()(at,an,{[`${at}-${we}`]:we!=="default"&&we,[`${at}-${De}`]:De,[`${at}-${Vn}`]:Vn,[`${at}-icon-only`]:!ft&&ft!==0&&!!zt,[`${at}-background-ghost`]:Ot&&!ce(De),[`${at}-loading`]:mt,[`${at}-two-chinese-chars`]:Cn&&Or&&!mt,[`${at}-block`]:jt,[`${at}-dangerous`]:!!Pe,[`${at}-rtl`]:Mn==="rtl"},mr,dt,bt,_e==null?void 0:_e.className),tn=Object.assign(Object.assign({},_e==null?void 0:_e.style),Bn),kt=t()(Xt==null?void 0:Xt.icon,(Ae=_e==null?void 0:_e.classNames)===null||Ae===void 0?void 0:Ae.icon),hn=Object.assign(Object.assign({},(Ye==null?void 0:Ye.icon)||{}),((oe=_e==null?void 0:_e.styles)===null||oe===void 0?void 0:oe.icon)||{}),dn=At&&!mt?n.createElement(p,{prefixCls:at,className:kt,style:hn},At):n.createElement(T,{existIcon:!!At,prefixCls:at,loading:!!mt}),Fn=ft||ft===0?W(ft,pr&&Or):null;if(Ft.href!==void 0)return Vt(n.createElement("a",Object.assign({},Ft,{className:t()(sn,{[`${at}-disabled`]:ut}),style:tn,onClick:gr,ref:Rn}),dn,Fn));let tr=n.createElement("button",Object.assign({},fn,{type:Gt,className:sn,style:tn,onClick:gr,disabled:ut,ref:Rn}),dn,Fn);return ce(De)||(tr=n.createElement(c.Z,{component:"Button",disabled:!!mt},tr)),Vt(tr)},xe=(0,n.forwardRef)(ve);xe.Group=$,xe.__ANT_BUTTON=!0;var Ze=xe},12562:function(M,b,e){"use strict";var i=e(70921);b.ZP=i.Z},81872:function(M,b,e){"use strict";var i=e(7056);b.Z=i.Z},18624:function(M,b,e){"use strict";e.d(b,{Z:function(){return G}});var i=e(87608),t=e.n(i),o=e(98186),s=e(58757),n=e(61836),c=e(58785),l=e(57214),v=e(16951),h=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Q{var{prefixCls:k,className:Y,hoverable:P=!0}=O,Q=h(O,["prefixCls","className","hoverable"]);const{getPrefixCls:fe}=s.useContext(n.E_),Ce=fe("card",k),ge=t()(`${Ce}-grid`,Y,{[`${Ce}-grid-hoverable`]:P});return s.createElement("div",Object.assign({},Q,{className:ge}))},p=e(78330),S=e(52628),w=e(22151);const y=O=>{const{antCls:k,componentCls:Y,headerHeight:P,cardPaddingBase:Q,tabsMarginBottom:fe}=O;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:P,marginBottom:-1,padding:`0 ${Q}px`,color:O.colorTextHeading,fontWeight:O.fontWeightStrong,fontSize:O.headerFontSize,background:O.headerBg,borderBottom:`${O.lineWidth}px ${O.lineType} ${O.colorBorderSecondary}`,borderRadius:`${O.borderRadiusLG}px ${O.borderRadiusLG}px 0 0`},(0,p.dF)()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},p.vS),{[` > ${Y}-typography, > ${Y}-typography-edit-content `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${k}-tabs-top`]:{clear:"both",marginBottom:fe,color:O.colorText,fontWeight:"normal",fontSize:O.fontSize,"&-bar":{borderBottom:`${O.lineWidth}px ${O.lineType} ${O.colorBorderSecondary}`}}})},Z=O=>{const{cardPaddingBase:k,colorBorderSecondary:Y,cardShadow:P,lineWidth:Q}=O;return{width:"33.33%",padding:k,border:0,borderRadius:0,boxShadow:` @@ -171,7 +171,7 @@ http://j.mp/37Fkd5Q ${Q}px ${Q}px 0 0 ${Y}, ${Q}px 0 0 0 ${Y} inset, 0 ${Q}px 0 0 ${Y} inset; - `,transition:`all ${O.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:P}}},F=O=>{const{componentCls:k,iconCls:Y,actionsLiMargin:P,cardActionsIconSize:Q,colorBorderSecondary:fe,actionsBg:Ce}=O;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:Ce,borderTop:`${O.lineWidth}px ${O.lineType} ${fe}`,display:"flex",borderRadius:`0 0 ${O.borderRadiusLG}px ${O.borderRadiusLG}px `},(0,p.dF)()),{"& > li":{margin:P,color:O.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:O.cardActionsIconSize*2,fontSize:O.fontSize,lineHeight:O.lineHeight,cursor:"pointer","&:hover":{color:O.colorPrimary,transition:`color ${O.motionDurationMid}`},[`a:not(${k}-btn), > ${Y}`]:{display:"inline-block",width:"100%",color:O.colorTextDescription,lineHeight:`${O.fontSize*O.lineHeight}px`,transition:`color ${O.motionDurationMid}`,"&:hover":{color:O.colorPrimary}},[`> ${Y}`]:{fontSize:Q,lineHeight:`${Q*O.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${O.lineWidth}px ${O.lineType} ${fe}`}}})},R=O=>Object.assign(Object.assign({margin:`-${O.marginXXS}px 0`,display:"flex"},(0,p.dF)()),{"&-avatar":{paddingInlineEnd:O.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:O.marginXS}},"&-title":Object.assign({color:O.colorTextHeading,fontWeight:O.fontWeightStrong,fontSize:O.fontSizeLG},p.vS),"&-description":{color:O.colorTextDescription}}),T=O=>{const{componentCls:k,cardPaddingBase:Y,colorFillAlter:P}=O;return{[`${k}-head`]:{padding:`0 ${Y}px`,background:P,"&-title":{fontSize:O.fontSize}},[`${k}-body`]:{padding:`${O.padding}px ${Y}px`}}},z=O=>{const{componentCls:k}=O;return{overflow:"hidden",[`${k}-body`]:{userSelect:"none"}}},A=O=>{const{antCls:k,componentCls:Y,cardShadow:P,cardHeadPadding:Q,colorBorderSecondary:fe,boxShadowTertiary:Ce,cardPaddingBase:ge,extraColor:Me}=O;return{[Y]:Object.assign(Object.assign({},(0,p.Wf)(O)),{position:"relative",background:O.colorBgContainer,borderRadius:O.borderRadiusLG,[`&:not(${Y}-bordered)`]:{boxShadow:Ce},[`${Y}-head`]:y(O),[`${Y}-extra`]:{marginInlineStart:"auto",color:Me,fontWeight:"normal",fontSize:O.fontSize},[`${Y}-body`]:Object.assign({padding:ge,borderRadius:` 0 0 ${O.borderRadiusLG}px ${O.borderRadiusLG}px`},(0,p.dF)()),[`${Y}-grid`]:Z(O),[`${Y}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${k}-image-mask`]:{borderRadius:`${O.borderRadiusLG}px ${O.borderRadiusLG}px 0 0`}},[`${Y}-actions`]:F(O),[`${Y}-meta`]:R(O)}),[`${Y}-bordered`]:{border:`${O.lineWidth}px ${O.lineType} ${fe}`,[`${Y}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${Y}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${O.motionDurationMid}, border-color ${O.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:P}},[`${Y}-contain-grid`]:{[`${Y}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${Y}-loading) ${Y}-body`]:{marginBlockStart:-O.lineWidth,marginInlineStart:-O.lineWidth,padding:0}},[`${Y}-contain-tabs`]:{[`> ${Y}-head`]:{[`${Y}-head-title, ${Y}-extra`]:{paddingTop:Q}}},[`${Y}-type-inner`]:T(O),[`${Y}-loading`]:z(O),[`${Y}-rtl`]:{direction:"rtl"}}},L=O=>{const{componentCls:k,cardPaddingSM:Y,headerHeightSM:P,headerFontSizeSM:Q}=O;return{[`${k}-small`]:{[`> ${k}-head`]:{minHeight:P,padding:`0 ${Y}px`,fontSize:Q,[`> ${k}-head-wrapper`]:{[`> ${k}-extra`]:{fontSize:O.fontSize}}},[`> ${k}-body`]:{padding:Y}},[`${k}-small${k}-contain-tabs`]:{[`> ${k}-head`]:{[`${k}-head-title, ${k}-extra`]:{minHeight:P,paddingTop:0,display:"flex",alignItems:"center"}}}}};var I=(0,S.Z)("Card",O=>{const k=(0,w.TS)(O,{cardShadow:O.boxShadowCard,cardHeadPadding:O.padding,cardPaddingBase:O.paddingLG,cardActionsIconSize:O.fontSize,cardPaddingSM:12});return[A(k),L(k)]},O=>({headerBg:"transparent",headerFontSize:O.fontSizeLG,headerFontSizeSM:O.fontSize,headerHeight:O.fontSizeLG*O.lineHeightLG+O.padding*2,headerHeightSM:O.fontSize*O.lineHeight+O.paddingXS*2,actionsBg:O.colorBgContainer,actionsLiMargin:`${O.paddingSM}px 0`,tabsMarginBottom:-O.padding-O.lineWidth,extraColor:O.colorText})),$=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Qs.createElement("li",{style:{width:`${100/O.length}%`},key:`action-${Y}`},s.createElement("span",null,k)))}var H=s.forwardRef((O,k)=>{const{prefixCls:Y,className:P,rootClassName:Q,style:fe,extra:Ce,headStyle:ge={},bodyStyle:Me={},title:Re,loading:Qe,bordered:Ve=!0,size:qe,type:Mt,cover:wt,actions:mt,tabList:Nt,children:ke,activeTabKey:He,defaultActiveTabKey:et,tabBarExtraContent:Fe,hoverable:ue,tabProps:V={}}=O,U=$(O,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:N,direction:D,card:ee}=s.useContext(n.E_),se=De=>{var Pe;(Pe=O.onTabChange)===null||Pe===void 0||Pe.call(O,De)},X=s.useMemo(()=>{let De=!1;return s.Children.forEach(ke,Pe=>{Pe&&Pe.type&&Pe.type===C&&(De=!0)}),De},[ke]),re=N("card",Y),[Ie,Se]=I(re),he=s.createElement(l.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ke),We=He!==void 0,de=Object.assign(Object.assign({},V),{[We?"activeKey":"defaultActiveKey"]:We?He:et,tabBarExtraContent:Fe});let le;const ve=(0,c.Z)(qe),xe=!ve||ve==="default"?"large":ve,Ze=Nt?s.createElement(v.Z,Object.assign({size:xe},de,{className:`${re}-head-tabs`,onChange:se,items:Nt.map(De=>{var{tab:Pe}=De,we=$(De,["tab"]);return Object.assign({label:Pe},we)})})):null;(Re||Ce||Ze)&&(le=s.createElement("div",{className:`${re}-head`,style:ge},s.createElement("div",{className:`${re}-head-wrapper`},Re&&s.createElement("div",{className:`${re}-head-title`},Re),Ce&&s.createElement("div",{className:`${re}-extra`},Ce)),Ze));const pe=wt?s.createElement("div",{className:`${re}-cover`},wt):null,Je=s.createElement("div",{className:`${re}-body`,style:Me},Qe?he:ke),Ae=mt&&mt.length?s.createElement("ul",{className:`${re}-actions`},B(mt)):null,oe=(0,o.Z)(U,["onTabChange"]),ye=t()(re,ee==null?void 0:ee.className,{[`${re}-loading`]:Qe,[`${re}-bordered`]:Ve,[`${re}-hoverable`]:ue,[`${re}-contain-grid`]:X,[`${re}-contain-tabs`]:Nt&&Nt.length,[`${re}-${ve}`]:ve,[`${re}-type-${Mt}`]:!!Mt,[`${re}-rtl`]:D==="rtl"},P,Q,Se),Be=Object.assign(Object.assign({},ee==null?void 0:ee.style),fe);return Ie(s.createElement("div",Object.assign({ref:k},oe,{className:ye,style:Be}),le,pe,Je,Ae))}),ie=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Q{const{prefixCls:k,className:Y,avatar:P,title:Q,description:fe}=O,Ce=ie(O,["prefixCls","className","avatar","title","description"]),{getPrefixCls:ge}=s.useContext(n.E_),Me=ge("card",k),Re=t()(`${Me}-meta`,Y),Qe=P?s.createElement("div",{className:`${Me}-meta-avatar`},P):null,Ve=Q?s.createElement("div",{className:`${Me}-meta-title`},Q):null,qe=fe?s.createElement("div",{className:`${Me}-meta-description`},fe):null,Mt=Ve||qe?s.createElement("div",{className:`${Me}-meta-detail`},Ve,qe):null;return s.createElement("div",Object.assign({},Ce,{className:Re}),Qe,Mt)};const W=H;W.Grid=C,W.Meta=te;var G=W},82968:function(M,b,e){"use strict";e.d(b,{Z:function(){return Nt}});var i=e(91169),t=e(87608),o=e.n(t),s=e(28314),n=e(29140),c=e(38790),l=e(60409),v=e(75556),h=e(58757),m=e(60698),C=e(47075),p=e(42156),S=e(37734),w=e(17598),y=e(29639),Z=h.forwardRef(function(ke,He){var et,Fe=ke.prefixCls,ue=ke.forceRender,V=ke.className,U=ke.style,N=ke.children,D=ke.isActive,ee=ke.role,se=h.useState(D||ue),X=(0,s.Z)(se,2),re=X[0],Ie=X[1];return h.useEffect(function(){(ue||D)&&Ie(!0)},[ue,D]),re?h.createElement("div",{ref:He,className:o()("".concat(Fe,"-content"),(et={},(0,S.Z)(et,"".concat(Fe,"-content-active"),D),(0,S.Z)(et,"".concat(Fe,"-content-inactive"),!D),et),V),style:U,role:ee},h.createElement("div",{className:"".concat(Fe,"-content-box")},N)):null});Z.displayName="PanelContent";var F=Z,R=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],T=h.forwardRef(function(ke,He){var et,Fe,ue=ke.showArrow,V=ue===void 0?!0:ue,U=ke.headerClass,N=ke.isActive,D=ke.onItemClick,ee=ke.forceRender,se=ke.className,X=ke.prefixCls,re=ke.collapsible,Ie=ke.accordion,Se=ke.panelKey,he=ke.extra,We=ke.header,de=ke.expandIcon,le=ke.openMotion,ve=ke.destroyInactivePanel,xe=ke.children,Ze=(0,C.Z)(ke,R),pe=re==="disabled",Je=re==="header",Ae=re==="icon",oe=he!=null&&typeof he!="boolean",ye=function(){D==null||D(Se)},Be=function(Ue){(Ue.key==="Enter"||Ue.keyCode===y.Z.ENTER||Ue.which===y.Z.ENTER)&&ye()},De=typeof de=="function"?de(ke):h.createElement("i",{className:"arrow"});De&&(De=h.createElement("div",{className:"".concat(X,"-expand-icon"),onClick:["header","icon"].includes(re)?ye:void 0},De));var Pe=o()((et={},(0,S.Z)(et,"".concat(X,"-item"),!0),(0,S.Z)(et,"".concat(X,"-item-active"),N),(0,S.Z)(et,"".concat(X,"-item-disabled"),pe),et),se),we=o()(U,(Fe={},(0,S.Z)(Fe,"".concat(X,"-header"),!0),(0,S.Z)(Fe,"".concat(X,"-header-collapsible-only"),Je),(0,S.Z)(Fe,"".concat(X,"-icon-collapsible-only"),Ae),Fe)),Le={className:we,"aria-expanded":N,"aria-disabled":pe,onKeyDown:Be};return!Je&&!Ae&&(Le.onClick=ye,Le.role=Ie?"tab":"button",Le.tabIndex=pe?-1:0),h.createElement("div",(0,m.Z)({},Ze,{ref:He,className:Pe}),h.createElement("div",Le,V&&De,h.createElement("span",{className:"".concat(X,"-header-text"),onClick:re==="header"?ye:void 0},We),oe&&h.createElement("div",{className:"".concat(X,"-extra")},he)),h.createElement(w.ZP,(0,m.Z)({visible:N,leavedClassName:"".concat(X,"-content-hidden")},le,{forceRender:ee,removeOnLeave:ve}),function(Ye,Ue){var dt=Ye.className,bt=Ye.style;return h.createElement(F,{ref:Ue,prefixCls:X,className:dt,style:bt,isActive:N,forceRender:ee,role:Ie?"tabpanel":void 0},xe)}))}),z=T,A=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],L=function(He,et){var Fe=et.prefixCls,ue=et.accordion,V=et.collapsible,U=et.destroyInactivePanel,N=et.onItemClick,D=et.activeKey,ee=et.openMotion,se=et.expandIcon;return He.map(function(X,re){var Ie=X.children,Se=X.label,he=X.key,We=X.collapsible,de=X.onItemClick,le=X.destroyInactivePanel,ve=(0,C.Z)(X,A),xe=String(he!=null?he:re),Ze=We!=null?We:V,pe=le!=null?le:U,Je=function(ye){Ze!=="disabled"&&(N(ye),de==null||de(ye))},Ae=!1;return ue?Ae=D[0]===xe:Ae=D.indexOf(xe)>-1,h.createElement(z,(0,m.Z)({},ve,{prefixCls:Fe,key:xe,panelKey:xe,isActive:Ae,accordion:ue,openMotion:ee,expandIcon:se,header:Se,collapsible:Ze,onItemClick:Je,destroyInactivePanel:pe}),Ie)})},I=function(He,et,Fe){if(!He)return null;var ue=Fe.prefixCls,V=Fe.accordion,U=Fe.collapsible,N=Fe.destroyInactivePanel,D=Fe.onItemClick,ee=Fe.activeKey,se=Fe.openMotion,X=Fe.expandIcon,re=He.key||String(et),Ie=He.props,Se=Ie.header,he=Ie.headerClass,We=Ie.destroyInactivePanel,de=Ie.collapsible,le=Ie.onItemClick,ve=!1;V?ve=ee[0]===re:ve=ee.indexOf(re)>-1;var xe=de!=null?de:U,Ze=function(Ae){xe!=="disabled"&&(D(Ae),le==null||le(Ae))},pe={key:re,panelKey:re,header:Se,headerClass:he,isActive:ve,prefixCls:ue,destroyInactivePanel:We!=null?We:N,openMotion:se,accordion:V,children:He.props.children,onItemClick:Ze,expandIcon:X,collapsible:xe};return typeof He.type=="string"?He:(Object.keys(pe).forEach(function(Je){typeof pe[Je]=="undefined"&&delete pe[Je]}),h.cloneElement(He,pe))};function $(ke,He,et){return Array.isArray(ke)?L(ke,et):(0,p.Z)(He).map(function(Fe,ue){return I(Fe,ue,et)})}var B=$;function K(ke){var He=ke;if(!Array.isArray(He)){var et=(0,c.Z)(He);He=et==="number"||et==="string"?[He]:[]}return He.map(function(Fe){return String(Fe)})}var H=h.forwardRef(function(ke,He){var et=ke.prefixCls,Fe=et===void 0?"rc-collapse":et,ue=ke.destroyInactivePanel,V=ue===void 0?!1:ue,U=ke.style,N=ke.accordion,D=ke.className,ee=ke.children,se=ke.collapsible,X=ke.openMotion,re=ke.expandIcon,Ie=ke.activeKey,Se=ke.defaultActiveKey,he=ke.onChange,We=ke.items,de=o()(Fe,D),le=(0,l.Z)([],{value:Ie,onChange:function(oe){return he==null?void 0:he(oe)},defaultValue:Se,postState:K}),ve=(0,s.Z)(le,2),xe=ve[0],Ze=ve[1],pe=function(oe){return Ze(function(){if(N)return xe[0]===oe?[]:[oe];var ye=xe.indexOf(oe),Be=ye>-1;return Be?xe.filter(function(De){return De!==oe}):[].concat((0,n.Z)(xe),[oe])})};(0,v.ZP)(!ee,"`children` will be removed in next major version. Please use `items` instead.");var Je=B(We,ee,{prefixCls:Fe,accordion:N,openMotion:X,expandIcon:re,collapsible:se,destroyInactivePanel:V,onItemClick:pe,activeKey:xe});return h.createElement("div",{ref:He,className:de,style:U,role:N?"tablist":void 0},Je)}),ie=Object.assign(H,{Panel:z}),ce=ie,te=ie.Panel,W=e(98186),G=e(90881),O=e(37047),k=e(61836),Y=e(58785),Q=h.forwardRef((ke,He)=>{const{getPrefixCls:et}=h.useContext(k.E_),{prefixCls:Fe,className:ue,showArrow:V=!0}=ke,U=et("collapse",Fe),N=o()({[`${U}-no-arrow`]:!V},ue);return h.createElement(ce.Panel,Object.assign({ref:He},ke,{prefixCls:U,className:N}))}),fe=e(78330),Ce=e(41086),ge=e(52628),Me=e(22151);const Re=ke=>{const{componentCls:He,collapseContentBg:et,padding:Fe,collapseContentPaddingHorizontal:ue,collapseHeaderBg:V,collapseHeaderPadding:U,collapseHeaderPaddingSM:N,collapseHeaderPaddingLG:D,collapsePanelBorderRadius:ee,lineWidth:se,lineType:X,colorBorder:re,colorText:Ie,colorTextHeading:Se,colorTextDisabled:he,fontSize:We,fontSizeLG:de,lineHeight:le,marginSM:ve,paddingSM:xe,paddingLG:Ze,paddingXS:pe,motionDurationSlow:Je,fontSizeIcon:Ae}=ke,oe=`${se}px ${X} ${re}`;return{[He]:Object.assign(Object.assign({},(0,fe.Wf)(ke)),{backgroundColor:V,border:oe,borderBottom:0,borderRadius:`${ee}px`,["&-rtl"]:{direction:"rtl"},[`& > ${He}-item`]:{borderBottom:oe,["&:last-child"]:{[` + `,transition:`all ${O.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:P}}},F=O=>{const{componentCls:k,iconCls:Y,actionsLiMargin:P,cardActionsIconSize:Q,colorBorderSecondary:fe,actionsBg:Ce}=O;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:Ce,borderTop:`${O.lineWidth}px ${O.lineType} ${fe}`,display:"flex",borderRadius:`0 0 ${O.borderRadiusLG}px ${O.borderRadiusLG}px `},(0,p.dF)()),{"& > li":{margin:P,color:O.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:O.cardActionsIconSize*2,fontSize:O.fontSize,lineHeight:O.lineHeight,cursor:"pointer","&:hover":{color:O.colorPrimary,transition:`color ${O.motionDurationMid}`},[`a:not(${k}-btn), > ${Y}`]:{display:"inline-block",width:"100%",color:O.colorTextDescription,lineHeight:`${O.fontSize*O.lineHeight}px`,transition:`color ${O.motionDurationMid}`,"&:hover":{color:O.colorPrimary}},[`> ${Y}`]:{fontSize:Q,lineHeight:`${Q*O.lineHeight}px`}},"&:not(:last-child)":{borderInlineEnd:`${O.lineWidth}px ${O.lineType} ${fe}`}}})},R=O=>Object.assign(Object.assign({margin:`-${O.marginXXS}px 0`,display:"flex"},(0,p.dF)()),{"&-avatar":{paddingInlineEnd:O.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:O.marginXS}},"&-title":Object.assign({color:O.colorTextHeading,fontWeight:O.fontWeightStrong,fontSize:O.fontSizeLG},p.vS),"&-description":{color:O.colorTextDescription}}),T=O=>{const{componentCls:k,cardPaddingBase:Y,colorFillAlter:P}=O;return{[`${k}-head`]:{padding:`0 ${Y}px`,background:P,"&-title":{fontSize:O.fontSize}},[`${k}-body`]:{padding:`${O.padding}px ${Y}px`}}},z=O=>{const{componentCls:k}=O;return{overflow:"hidden",[`${k}-body`]:{userSelect:"none"}}},A=O=>{const{antCls:k,componentCls:Y,cardShadow:P,cardHeadPadding:Q,colorBorderSecondary:fe,boxShadowTertiary:Ce,cardPaddingBase:ge,extraColor:Me}=O;return{[Y]:Object.assign(Object.assign({},(0,p.Wf)(O)),{position:"relative",background:O.colorBgContainer,borderRadius:O.borderRadiusLG,[`&:not(${Y}-bordered)`]:{boxShadow:Ce},[`${Y}-head`]:y(O),[`${Y}-extra`]:{marginInlineStart:"auto",color:Me,fontWeight:"normal",fontSize:O.fontSize},[`${Y}-body`]:Object.assign({padding:ge,borderRadius:` 0 0 ${O.borderRadiusLG}px ${O.borderRadiusLG}px`},(0,p.dF)()),[`${Y}-grid`]:Z(O),[`${Y}-cover`]:{"> *":{display:"block",width:"100%"},[`img, img + ${k}-image-mask`]:{borderRadius:`${O.borderRadiusLG}px ${O.borderRadiusLG}px 0 0`}},[`${Y}-actions`]:F(O),[`${Y}-meta`]:R(O)}),[`${Y}-bordered`]:{border:`${O.lineWidth}px ${O.lineType} ${fe}`,[`${Y}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${Y}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${O.motionDurationMid}, border-color ${O.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:P}},[`${Y}-contain-grid`]:{[`${Y}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${Y}-loading) ${Y}-body`]:{marginBlockStart:-O.lineWidth,marginInlineStart:-O.lineWidth,padding:0}},[`${Y}-contain-tabs`]:{[`> ${Y}-head`]:{[`${Y}-head-title, ${Y}-extra`]:{paddingTop:Q}}},[`${Y}-type-inner`]:T(O),[`${Y}-loading`]:z(O),[`${Y}-rtl`]:{direction:"rtl"}}},L=O=>{const{componentCls:k,cardPaddingSM:Y,headerHeightSM:P,headerFontSizeSM:Q}=O;return{[`${k}-small`]:{[`> ${k}-head`]:{minHeight:P,padding:`0 ${Y}px`,fontSize:Q,[`> ${k}-head-wrapper`]:{[`> ${k}-extra`]:{fontSize:O.fontSize}}},[`> ${k}-body`]:{padding:Y}},[`${k}-small${k}-contain-tabs`]:{[`> ${k}-head`]:{[`${k}-head-title, ${k}-extra`]:{minHeight:P,paddingTop:0,display:"flex",alignItems:"center"}}}}};var I=(0,S.Z)("Card",O=>{const k=(0,w.TS)(O,{cardShadow:O.boxShadowCard,cardHeadPadding:O.padding,cardPaddingBase:O.paddingLG,cardActionsIconSize:O.fontSize,cardPaddingSM:12});return[A(k),L(k)]},O=>({headerBg:"transparent",headerFontSize:O.fontSizeLG,headerFontSizeSM:O.fontSize,headerHeight:O.fontSizeLG*O.lineHeightLG+O.padding*2,headerHeightSM:O.fontSize*O.lineHeight+O.paddingXS*2,actionsBg:O.colorBgContainer,actionsLiMargin:`${O.paddingSM}px 0`,tabsMarginBottom:-O.padding-O.lineWidth,extraColor:O.colorText})),$=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Qs.createElement("li",{style:{width:`${100/O.length}%`},key:`action-${Y}`},s.createElement("span",null,k)))}var H=s.forwardRef((O,k)=>{const{prefixCls:Y,className:P,rootClassName:Q,style:fe,extra:Ce,headStyle:ge={},bodyStyle:Me={},title:Ne,loading:Qe,bordered:Ve=!0,size:qe,type:Mt,cover:wt,actions:gt,tabList:Lt,children:ke,activeTabKey:He,defaultActiveTabKey:et,tabBarExtraContent:Fe,hoverable:ue,tabProps:V={}}=O,U=$(O,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),{getPrefixCls:N,direction:D,card:ee}=s.useContext(n.E_),se=De=>{var Pe;(Pe=O.onTabChange)===null||Pe===void 0||Pe.call(O,De)},X=s.useMemo(()=>{let De=!1;return s.Children.forEach(ke,Pe=>{Pe&&Pe.type&&Pe.type===C&&(De=!0)}),De},[ke]),re=N("card",Y),[Ie,Se]=I(re),he=s.createElement(l.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1},ke),We=He!==void 0,de=Object.assign(Object.assign({},V),{[We?"activeKey":"defaultActiveKey"]:We?He:et,tabBarExtraContent:Fe});let le;const ve=(0,c.Z)(qe),xe=!ve||ve==="default"?"large":ve,Ze=Lt?s.createElement(v.Z,Object.assign({size:xe},de,{className:`${re}-head-tabs`,onChange:se,items:Lt.map(De=>{var{tab:Pe}=De,we=$(De,["tab"]);return Object.assign({label:Pe},we)})})):null;(Ne||Ce||Ze)&&(le=s.createElement("div",{className:`${re}-head`,style:ge},s.createElement("div",{className:`${re}-head-wrapper`},Ne&&s.createElement("div",{className:`${re}-head-title`},Ne),Ce&&s.createElement("div",{className:`${re}-extra`},Ce)),Ze));const pe=wt?s.createElement("div",{className:`${re}-cover`},wt):null,Je=s.createElement("div",{className:`${re}-body`,style:Me},Qe?he:ke),Ae=gt&>.length?s.createElement("ul",{className:`${re}-actions`},B(gt)):null,oe=(0,o.Z)(U,["onTabChange"]),ye=t()(re,ee==null?void 0:ee.className,{[`${re}-loading`]:Qe,[`${re}-bordered`]:Ve,[`${re}-hoverable`]:ue,[`${re}-contain-grid`]:X,[`${re}-contain-tabs`]:Lt&&Lt.length,[`${re}-${ve}`]:ve,[`${re}-type-${Mt}`]:!!Mt,[`${re}-rtl`]:D==="rtl"},P,Q,Se),Be=Object.assign(Object.assign({},ee==null?void 0:ee.style),fe);return Ie(s.createElement("div",Object.assign({ref:k},oe,{className:ye,style:Be}),le,pe,Je,Ae))}),ie=function(O,k){var Y={};for(var P in O)Object.prototype.hasOwnProperty.call(O,P)&&k.indexOf(P)<0&&(Y[P]=O[P]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,P=Object.getOwnPropertySymbols(O);Q{const{prefixCls:k,className:Y,avatar:P,title:Q,description:fe}=O,Ce=ie(O,["prefixCls","className","avatar","title","description"]),{getPrefixCls:ge}=s.useContext(n.E_),Me=ge("card",k),Ne=t()(`${Me}-meta`,Y),Qe=P?s.createElement("div",{className:`${Me}-meta-avatar`},P):null,Ve=Q?s.createElement("div",{className:`${Me}-meta-title`},Q):null,qe=fe?s.createElement("div",{className:`${Me}-meta-description`},fe):null,Mt=Ve||qe?s.createElement("div",{className:`${Me}-meta-detail`},Ve,qe):null;return s.createElement("div",Object.assign({},Ce,{className:Ne}),Qe,Mt)};const W=H;W.Grid=C,W.Meta=te;var G=W},82968:function(M,b,e){"use strict";e.d(b,{Z:function(){return Lt}});var i=e(91169),t=e(87608),o=e.n(t),s=e(28314),n=e(29140),c=e(38790),l=e(60409),v=e(75556),h=e(58757),m=e(60698),C=e(47075),p=e(42156),S=e(37734),w=e(17598),y=e(29639),Z=h.forwardRef(function(ke,He){var et,Fe=ke.prefixCls,ue=ke.forceRender,V=ke.className,U=ke.style,N=ke.children,D=ke.isActive,ee=ke.role,se=h.useState(D||ue),X=(0,s.Z)(se,2),re=X[0],Ie=X[1];return h.useEffect(function(){(ue||D)&&Ie(!0)},[ue,D]),re?h.createElement("div",{ref:He,className:o()("".concat(Fe,"-content"),(et={},(0,S.Z)(et,"".concat(Fe,"-content-active"),D),(0,S.Z)(et,"".concat(Fe,"-content-inactive"),!D),et),V),style:U,role:ee},h.createElement("div",{className:"".concat(Fe,"-content-box")},N)):null});Z.displayName="PanelContent";var F=Z,R=["showArrow","headerClass","isActive","onItemClick","forceRender","className","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],T=h.forwardRef(function(ke,He){var et,Fe,ue=ke.showArrow,V=ue===void 0?!0:ue,U=ke.headerClass,N=ke.isActive,D=ke.onItemClick,ee=ke.forceRender,se=ke.className,X=ke.prefixCls,re=ke.collapsible,Ie=ke.accordion,Se=ke.panelKey,he=ke.extra,We=ke.header,de=ke.expandIcon,le=ke.openMotion,ve=ke.destroyInactivePanel,xe=ke.children,Ze=(0,C.Z)(ke,R),pe=re==="disabled",Je=re==="header",Ae=re==="icon",oe=he!=null&&typeof he!="boolean",ye=function(){D==null||D(Se)},Be=function(Ue){(Ue.key==="Enter"||Ue.keyCode===y.Z.ENTER||Ue.which===y.Z.ENTER)&&ye()},De=typeof de=="function"?de(ke):h.createElement("i",{className:"arrow"});De&&(De=h.createElement("div",{className:"".concat(X,"-expand-icon"),onClick:["header","icon"].includes(re)?ye:void 0},De));var Pe=o()((et={},(0,S.Z)(et,"".concat(X,"-item"),!0),(0,S.Z)(et,"".concat(X,"-item-active"),N),(0,S.Z)(et,"".concat(X,"-item-disabled"),pe),et),se),we=o()(U,(Fe={},(0,S.Z)(Fe,"".concat(X,"-header"),!0),(0,S.Z)(Fe,"".concat(X,"-header-collapsible-only"),Je),(0,S.Z)(Fe,"".concat(X,"-icon-collapsible-only"),Ae),Fe)),Le={className:we,"aria-expanded":N,"aria-disabled":pe,onKeyDown:Be};return!Je&&!Ae&&(Le.onClick=ye,Le.role=Ie?"tab":"button",Le.tabIndex=pe?-1:0),h.createElement("div",(0,m.Z)({},Ze,{ref:He,className:Pe}),h.createElement("div",Le,V&&De,h.createElement("span",{className:"".concat(X,"-header-text"),onClick:re==="header"?ye:void 0},We),oe&&h.createElement("div",{className:"".concat(X,"-extra")},he)),h.createElement(w.ZP,(0,m.Z)({visible:N,leavedClassName:"".concat(X,"-content-hidden")},le,{forceRender:ee,removeOnLeave:ve}),function(Ye,Ue){var dt=Ye.className,bt=Ye.style;return h.createElement(F,{ref:Ue,prefixCls:X,className:dt,style:bt,isActive:N,forceRender:ee,role:Ie?"tabpanel":void 0},xe)}))}),z=T,A=["children","label","key","collapsible","onItemClick","destroyInactivePanel"],L=function(He,et){var Fe=et.prefixCls,ue=et.accordion,V=et.collapsible,U=et.destroyInactivePanel,N=et.onItemClick,D=et.activeKey,ee=et.openMotion,se=et.expandIcon;return He.map(function(X,re){var Ie=X.children,Se=X.label,he=X.key,We=X.collapsible,de=X.onItemClick,le=X.destroyInactivePanel,ve=(0,C.Z)(X,A),xe=String(he!=null?he:re),Ze=We!=null?We:V,pe=le!=null?le:U,Je=function(ye){Ze!=="disabled"&&(N(ye),de==null||de(ye))},Ae=!1;return ue?Ae=D[0]===xe:Ae=D.indexOf(xe)>-1,h.createElement(z,(0,m.Z)({},ve,{prefixCls:Fe,key:xe,panelKey:xe,isActive:Ae,accordion:ue,openMotion:ee,expandIcon:se,header:Se,collapsible:Ze,onItemClick:Je,destroyInactivePanel:pe}),Ie)})},I=function(He,et,Fe){if(!He)return null;var ue=Fe.prefixCls,V=Fe.accordion,U=Fe.collapsible,N=Fe.destroyInactivePanel,D=Fe.onItemClick,ee=Fe.activeKey,se=Fe.openMotion,X=Fe.expandIcon,re=He.key||String(et),Ie=He.props,Se=Ie.header,he=Ie.headerClass,We=Ie.destroyInactivePanel,de=Ie.collapsible,le=Ie.onItemClick,ve=!1;V?ve=ee[0]===re:ve=ee.indexOf(re)>-1;var xe=de!=null?de:U,Ze=function(Ae){xe!=="disabled"&&(D(Ae),le==null||le(Ae))},pe={key:re,panelKey:re,header:Se,headerClass:he,isActive:ve,prefixCls:ue,destroyInactivePanel:We!=null?We:N,openMotion:se,accordion:V,children:He.props.children,onItemClick:Ze,expandIcon:X,collapsible:xe};return typeof He.type=="string"?He:(Object.keys(pe).forEach(function(Je){typeof pe[Je]=="undefined"&&delete pe[Je]}),h.cloneElement(He,pe))};function $(ke,He,et){return Array.isArray(ke)?L(ke,et):(0,p.Z)(He).map(function(Fe,ue){return I(Fe,ue,et)})}var B=$;function K(ke){var He=ke;if(!Array.isArray(He)){var et=(0,c.Z)(He);He=et==="number"||et==="string"?[He]:[]}return He.map(function(Fe){return String(Fe)})}var H=h.forwardRef(function(ke,He){var et=ke.prefixCls,Fe=et===void 0?"rc-collapse":et,ue=ke.destroyInactivePanel,V=ue===void 0?!1:ue,U=ke.style,N=ke.accordion,D=ke.className,ee=ke.children,se=ke.collapsible,X=ke.openMotion,re=ke.expandIcon,Ie=ke.activeKey,Se=ke.defaultActiveKey,he=ke.onChange,We=ke.items,de=o()(Fe,D),le=(0,l.Z)([],{value:Ie,onChange:function(oe){return he==null?void 0:he(oe)},defaultValue:Se,postState:K}),ve=(0,s.Z)(le,2),xe=ve[0],Ze=ve[1],pe=function(oe){return Ze(function(){if(N)return xe[0]===oe?[]:[oe];var ye=xe.indexOf(oe),Be=ye>-1;return Be?xe.filter(function(De){return De!==oe}):[].concat((0,n.Z)(xe),[oe])})};(0,v.ZP)(!ee,"`children` will be removed in next major version. Please use `items` instead.");var Je=B(We,ee,{prefixCls:Fe,accordion:N,openMotion:X,expandIcon:re,collapsible:se,destroyInactivePanel:V,onItemClick:pe,activeKey:xe});return h.createElement("div",{ref:He,className:de,style:U,role:N?"tablist":void 0},Je)}),ie=Object.assign(H,{Panel:z}),ce=ie,te=ie.Panel,W=e(98186),G=e(90881),O=e(37047),k=e(61836),Y=e(58785),Q=h.forwardRef((ke,He)=>{const{getPrefixCls:et}=h.useContext(k.E_),{prefixCls:Fe,className:ue,showArrow:V=!0}=ke,U=et("collapse",Fe),N=o()({[`${U}-no-arrow`]:!V},ue);return h.createElement(ce.Panel,Object.assign({ref:He},ke,{prefixCls:U,className:N}))}),fe=e(78330),Ce=e(41086),ge=e(52628),Me=e(22151);const Ne=ke=>{const{componentCls:He,collapseContentBg:et,padding:Fe,collapseContentPaddingHorizontal:ue,collapseHeaderBg:V,collapseHeaderPadding:U,collapseHeaderPaddingSM:N,collapseHeaderPaddingLG:D,collapsePanelBorderRadius:ee,lineWidth:se,lineType:X,colorBorder:re,colorText:Ie,colorTextHeading:Se,colorTextDisabled:he,fontSize:We,fontSizeLG:de,lineHeight:le,marginSM:ve,paddingSM:xe,paddingLG:Ze,paddingXS:pe,motionDurationSlow:Je,fontSizeIcon:Ae}=ke,oe=`${se}px ${X} ${re}`;return{[He]:Object.assign(Object.assign({},(0,fe.Wf)(ke)),{backgroundColor:V,border:oe,borderBottom:0,borderRadius:`${ee}px`,["&-rtl"]:{direction:"rtl"},[`& > ${He}-item`]:{borderBottom:oe,["&:last-child"]:{[` &, & > ${He}-header`]:{borderRadius:`0 0 ${ee}px ${ee}px`}},[`> ${He}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:U,paddingInlineStart:xe,color:Se,lineHeight:le,cursor:"pointer",transition:`all ${Je}, visibility 0s`,[`> ${He}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${He}-expand-icon`]:{height:We*le,display:"flex",alignItems:"center",paddingInlineEnd:ve,marginInlineStart:Fe-xe},[`${He}-arrow`]:Object.assign(Object.assign({},(0,fe.Ro)()),{fontSize:Ae,svg:{transition:`transform ${Je}`}}),[`${He}-header-text`]:{marginInlineEnd:"auto"}},[`${He}-header-collapsible-only`]:{cursor:"default",[`${He}-header-text`]:{flex:"none",cursor:"pointer"}},[`${He}-icon-collapsible-only`]:{cursor:"default",[`${He}-expand-icon`]:{cursor:"pointer"}}},[`${He}-content`]:{color:Ie,backgroundColor:et,borderTop:oe,[`& > ${He}-content-box`]:{padding:`${Fe}px ${ue}px`},["&-hidden"]:{display:"none"}},["&-small"]:{[`> ${He}-item`]:{[`> ${He}-header`]:{padding:N,paddingInlineStart:pe,[`> ${He}-expand-icon`]:{marginInlineStart:xe-pe}},[`> ${He}-content > ${He}-content-box`]:{padding:xe}}},["&-large"]:{[`> ${He}-item`]:{fontSize:de,[`> ${He}-header`]:{padding:D,paddingInlineStart:Fe,[`> ${He}-expand-icon`]:{height:de*le,marginInlineStart:Ze-Fe}},[`> ${He}-content > ${He}-content-box`]:{padding:Ze}}},[`${He}-item:last-child`]:{[`> ${He}-content`]:{borderRadius:`0 0 ${ee}px ${ee}px`}},[`& ${He}-item-disabled > ${He}-header`]:{[` &, @@ -179,12 +179,12 @@ http://j.mp/37Fkd5Q `]:{color:he,cursor:"not-allowed"}},[`&${He}-icon-position-end`]:{[`& > ${He}-item`]:{[`> ${He}-header`]:{[`${He}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:ve}}}}})}},Qe=ke=>{const{componentCls:He}=ke,et=`> ${He}-item > ${He}-header ${He}-arrow svg`;return{[`${He}-rtl`]:{[et]:{transform:"rotate(180deg)"}}}},Ve=ke=>{const{componentCls:He,collapseHeaderBg:et,paddingXXS:Fe,colorBorder:ue}=ke;return{[`${He}-borderless`]:{backgroundColor:et,border:0,[`> ${He}-item`]:{borderBottom:`1px solid ${ue}`},[` > ${He}-item:last-child, > ${He}-item:last-child ${He}-header - `]:{borderRadius:0},[`> ${He}-item:last-child`]:{borderBottom:0},[`> ${He}-item > ${He}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${He}-item > ${He}-content > ${He}-content-box`]:{paddingTop:Fe}}}},qe=ke=>{const{componentCls:He,paddingSM:et}=ke;return{[`${He}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${He}-item`]:{borderBottom:0,[`> ${He}-content`]:{backgroundColor:"transparent",border:0,[`> ${He}-content-box`]:{paddingBlock:et}}}}}};var Mt=(0,ge.Z)("Collapse",ke=>{const He=(0,Me.TS)(ke,{collapseContentBg:ke.colorBgContainer,collapseHeaderBg:ke.colorFillAlter,collapseHeaderPadding:`${ke.paddingSM}px ${ke.padding}px`,collapseHeaderPaddingSM:`${ke.paddingXS}px ${ke.paddingSM}px`,collapseHeaderPaddingLG:`${ke.padding}px ${ke.paddingLG}px`,collapsePanelBorderRadius:ke.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Re(He),Ve(He),qe(He),Qe(He),(0,Ce.Z)(He)]}),mt=Object.assign(h.forwardRef((ke,He)=>{const{getPrefixCls:et,direction:Fe,collapse:ue}=h.useContext(k.E_),{prefixCls:V,className:U,rootClassName:N,style:D,bordered:ee=!0,ghost:se,size:X,expandIconPosition:re="start",children:Ie,expandIcon:Se}=ke,he=(0,Y.Z)(oe=>{var ye;return(ye=X!=null?X:oe)!==null&&ye!==void 0?ye:"middle"}),We=et("collapse",V),de=et(),[le,ve]=Mt(We),xe=h.useMemo(()=>re==="left"?"start":re==="right"?"end":re,[re]),Ze=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ye=Se?Se(oe):h.createElement(i.Z,{rotate:oe.isActive?90:void 0});return(0,O.Tm)(ye,()=>({className:o()(ye.props.className,`${We}-arrow`)}))},pe=o()(`${We}-icon-position-${xe}`,{[`${We}-borderless`]:!ee,[`${We}-rtl`]:Fe==="rtl",[`${We}-ghost`]:!!se,[`${We}-${he}`]:he!=="middle"},ue==null?void 0:ue.className,U,N,ve),Je=Object.assign(Object.assign({},(0,G.Z)(de)),{motionAppear:!1,leavedClassName:`${We}-content-hidden`}),Ae=h.useMemo(()=>Ie?(0,p.Z)(Ie).map((oe,ye)=>{var Be,De;if(!((Be=oe.props)===null||Be===void 0)&&Be.disabled){const Pe=(De=oe.key)!==null&&De!==void 0?De:String(ye),{disabled:we,collapsible:Le}=oe.props,Ye=Object.assign(Object.assign({},(0,W.Z)(oe.props,["disabled"])),{key:Pe,collapsible:Le!=null?Le:we?"disabled":void 0});return(0,O.Tm)(oe,Ye)}return oe}):null,[Ie]);return le(h.createElement(ce,Object.assign({ref:He,openMotion:Je},(0,W.Z)(ke,["rootClassName"]),{expandIcon:Ze,prefixCls:We,className:pe,style:Object.assign(Object.assign({},ue==null?void 0:ue.style),D)}),Ae))}),{Panel:Q}),Nt=mt},92428:function(M,b,e){"use strict";e.d(b,{n:function(){return o}});var i=e(58757);const t=i.createContext(!1),o=s=>{let{children:n,disabled:c}=s;const l=i.useContext(t);return i.createElement(t.Provider,{value:c!=null?c:l},n)};b.Z=t},33446:function(M,b,e){"use strict";e.d(b,{q:function(){return o}});var i=e(58757);const t=i.createContext(void 0),o=s=>{let{children:n,size:c}=s;const l=i.useContext(t);return i.createElement(t.Provider,{value:c||l},n)};b.Z=t},61836:function(M,b,e){"use strict";e.d(b,{E_:function(){return s},oR:function(){return t}});var i=e(58757);const t="anticon",o=(c,l)=>l||(c?`ant-${c}`:"ant"),s=i.createContext({getPrefixCls:o,iconPrefixCls:t}),{Consumer:n}=s},10401:function(M,b,e){"use strict";var i=e(58757),t=e(61836),o=e(17444);const s=n=>{const{componentName:c}=n,{getPrefixCls:l}=(0,i.useContext)(t.E_),v=l("empty");switch(c){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:`${v}-small`});default:return i.createElement(o.Z,null)}};b.Z=s},58785:function(M,b,e){"use strict";var i=e(58757),t=e(33446);const o=s=>{const n=i.useContext(t.Z);return i.useMemo(()=>s?typeof s=="string"?s!=null?s:n:s instanceof Function?s(n):n:n,[s,n])};b.Z=o},42505:function(M,b,e){"use strict";e.d(b,{ZP:function(){return Nt},w6:function(){return Mt}});var i=e(57793),t=e(71048),o=e(27903),s=e(16766),n=e(58757),c=e(48736),l=e(67228),v=e(10520);const h="internalMark";var C=ke=>{const{locale:He={},children:et,_ANT_MARK__:Fe}=ke;n.useEffect(()=>(0,l.f)(He&&He.Modal),[He]);const ue=n.useMemo(()=>Object.assign(Object.assign({},He),{exist:!0}),[He]);return n.createElement(v.Z.Provider,{value:ue},et)},p=e(80076),S=e(83631),w=e(28378),y=e(61836),Z=e(26134),F=e(66671),R=e(19075),T=e(39678);const z=`-ant-${Date.now()}-${Math.random()}`;function A(ke,He){const et={},Fe=(U,N)=>{let D=U.clone();return D=(N==null?void 0:N(D))||D,D.toRgbString()},ue=(U,N)=>{const D=new F.C(U),ee=(0,Z.generate)(D.toRgbString());et[`${N}-color`]=Fe(D),et[`${N}-color-disabled`]=ee[1],et[`${N}-color-hover`]=ee[4],et[`${N}-color-active`]=ee[6],et[`${N}-color-outline`]=D.clone().setAlpha(.2).toRgbString(),et[`${N}-color-deprecated-bg`]=ee[0],et[`${N}-color-deprecated-border`]=ee[2]};if(He.primaryColor){ue(He.primaryColor,"primary");const U=new F.C(He.primaryColor),N=(0,Z.generate)(U.toRgbString());N.forEach((ee,se)=>{et[`primary-${se+1}`]=ee}),et["primary-color-deprecated-l-35"]=Fe(U,ee=>ee.lighten(35)),et["primary-color-deprecated-l-20"]=Fe(U,ee=>ee.lighten(20)),et["primary-color-deprecated-t-20"]=Fe(U,ee=>ee.tint(20)),et["primary-color-deprecated-t-50"]=Fe(U,ee=>ee.tint(50)),et["primary-color-deprecated-f-12"]=Fe(U,ee=>ee.setAlpha(ee.getAlpha()*.12));const D=new F.C(N[0]);et["primary-color-active-deprecated-f-30"]=Fe(D,ee=>ee.setAlpha(ee.getAlpha()*.3)),et["primary-color-active-deprecated-d-02"]=Fe(D,ee=>ee.darken(2))}return He.successColor&&ue(He.successColor,"success"),He.warningColor&&ue(He.warningColor,"warning"),He.errorColor&&ue(He.errorColor,"error"),He.infoColor&&ue(He.infoColor,"info"),` + `]:{borderRadius:0},[`> ${He}-item:last-child`]:{borderBottom:0},[`> ${He}-item > ${He}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${He}-item > ${He}-content > ${He}-content-box`]:{paddingTop:Fe}}}},qe=ke=>{const{componentCls:He,paddingSM:et}=ke;return{[`${He}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${He}-item`]:{borderBottom:0,[`> ${He}-content`]:{backgroundColor:"transparent",border:0,[`> ${He}-content-box`]:{paddingBlock:et}}}}}};var Mt=(0,ge.Z)("Collapse",ke=>{const He=(0,Me.TS)(ke,{collapseContentBg:ke.colorBgContainer,collapseHeaderBg:ke.colorFillAlter,collapseHeaderPadding:`${ke.paddingSM}px ${ke.padding}px`,collapseHeaderPaddingSM:`${ke.paddingXS}px ${ke.paddingSM}px`,collapseHeaderPaddingLG:`${ke.padding}px ${ke.paddingLG}px`,collapsePanelBorderRadius:ke.borderRadiusLG,collapseContentPaddingHorizontal:16});return[Ne(He),Ve(He),qe(He),Qe(He),(0,Ce.Z)(He)]}),gt=Object.assign(h.forwardRef((ke,He)=>{const{getPrefixCls:et,direction:Fe,collapse:ue}=h.useContext(k.E_),{prefixCls:V,className:U,rootClassName:N,style:D,bordered:ee=!0,ghost:se,size:X,expandIconPosition:re="start",children:Ie,expandIcon:Se}=ke,he=(0,Y.Z)(oe=>{var ye;return(ye=X!=null?X:oe)!==null&&ye!==void 0?ye:"middle"}),We=et("collapse",V),de=et(),[le,ve]=Mt(We),xe=h.useMemo(()=>re==="left"?"start":re==="right"?"end":re,[re]),Ze=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const ye=Se?Se(oe):h.createElement(i.Z,{rotate:oe.isActive?90:void 0});return(0,O.Tm)(ye,()=>({className:o()(ye.props.className,`${We}-arrow`)}))},pe=o()(`${We}-icon-position-${xe}`,{[`${We}-borderless`]:!ee,[`${We}-rtl`]:Fe==="rtl",[`${We}-ghost`]:!!se,[`${We}-${he}`]:he!=="middle"},ue==null?void 0:ue.className,U,N,ve),Je=Object.assign(Object.assign({},(0,G.Z)(de)),{motionAppear:!1,leavedClassName:`${We}-content-hidden`}),Ae=h.useMemo(()=>Ie?(0,p.Z)(Ie).map((oe,ye)=>{var Be,De;if(!((Be=oe.props)===null||Be===void 0)&&Be.disabled){const Pe=(De=oe.key)!==null&&De!==void 0?De:String(ye),{disabled:we,collapsible:Le}=oe.props,Ye=Object.assign(Object.assign({},(0,W.Z)(oe.props,["disabled"])),{key:Pe,collapsible:Le!=null?Le:we?"disabled":void 0});return(0,O.Tm)(oe,Ye)}return oe}):null,[Ie]);return le(h.createElement(ce,Object.assign({ref:He,openMotion:Je},(0,W.Z)(ke,["rootClassName"]),{expandIcon:Ze,prefixCls:We,className:pe,style:Object.assign(Object.assign({},ue==null?void 0:ue.style),D)}),Ae))}),{Panel:Q}),Lt=gt},92428:function(M,b,e){"use strict";e.d(b,{n:function(){return o}});var i=e(58757);const t=i.createContext(!1),o=s=>{let{children:n,disabled:c}=s;const l=i.useContext(t);return i.createElement(t.Provider,{value:c!=null?c:l},n)};b.Z=t},33446:function(M,b,e){"use strict";e.d(b,{q:function(){return o}});var i=e(58757);const t=i.createContext(void 0),o=s=>{let{children:n,size:c}=s;const l=i.useContext(t);return i.createElement(t.Provider,{value:c||l},n)};b.Z=t},61836:function(M,b,e){"use strict";e.d(b,{E_:function(){return s},oR:function(){return t}});var i=e(58757);const t="anticon",o=(c,l)=>l||(c?`ant-${c}`:"ant"),s=i.createContext({getPrefixCls:o,iconPrefixCls:t}),{Consumer:n}=s},10401:function(M,b,e){"use strict";var i=e(58757),t=e(61836),o=e(17444);const s=n=>{const{componentName:c}=n,{getPrefixCls:l}=(0,i.useContext)(t.E_),v=l("empty");switch(c){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:`${v}-small`});default:return i.createElement(o.Z,null)}};b.Z=s},58785:function(M,b,e){"use strict";var i=e(58757),t=e(33446);const o=s=>{const n=i.useContext(t.Z);return i.useMemo(()=>s?typeof s=="string"?s!=null?s:n:s instanceof Function?s(n):n:n,[s,n])};b.Z=o},42505:function(M,b,e){"use strict";e.d(b,{ZP:function(){return Lt},w6:function(){return Mt}});var i=e(57793),t=e(71048),o=e(27903),s=e(16766),n=e(58757),c=e(48736),l=e(67228),v=e(10520);const h="internalMark";var C=ke=>{const{locale:He={},children:et,_ANT_MARK__:Fe}=ke;n.useEffect(()=>(0,l.f)(He&&He.Modal),[He]);const ue=n.useMemo(()=>Object.assign(Object.assign({},He),{exist:!0}),[He]);return n.createElement(v.Z.Provider,{value:ue},et)},p=e(80076),S=e(83631),w=e(28378),y=e(61836),Z=e(26134),F=e(66671),R=e(19075),T=e(39678);const z=`-ant-${Date.now()}-${Math.random()}`;function A(ke,He){const et={},Fe=(U,N)=>{let D=U.clone();return D=(N==null?void 0:N(D))||D,D.toRgbString()},ue=(U,N)=>{const D=new F.C(U),ee=(0,Z.generate)(D.toRgbString());et[`${N}-color`]=Fe(D),et[`${N}-color-disabled`]=ee[1],et[`${N}-color-hover`]=ee[4],et[`${N}-color-active`]=ee[6],et[`${N}-color-outline`]=D.clone().setAlpha(.2).toRgbString(),et[`${N}-color-deprecated-bg`]=ee[0],et[`${N}-color-deprecated-border`]=ee[2]};if(He.primaryColor){ue(He.primaryColor,"primary");const U=new F.C(He.primaryColor),N=(0,Z.generate)(U.toRgbString());N.forEach((ee,se)=>{et[`primary-${se+1}`]=ee}),et["primary-color-deprecated-l-35"]=Fe(U,ee=>ee.lighten(35)),et["primary-color-deprecated-l-20"]=Fe(U,ee=>ee.lighten(20)),et["primary-color-deprecated-t-20"]=Fe(U,ee=>ee.tint(20)),et["primary-color-deprecated-t-50"]=Fe(U,ee=>ee.tint(50)),et["primary-color-deprecated-f-12"]=Fe(U,ee=>ee.setAlpha(ee.getAlpha()*.12));const D=new F.C(N[0]);et["primary-color-active-deprecated-f-30"]=Fe(D,ee=>ee.setAlpha(ee.getAlpha()*.3)),et["primary-color-active-deprecated-d-02"]=Fe(D,ee=>ee.darken(2))}return He.successColor&&ue(He.successColor,"success"),He.warningColor&&ue(He.warningColor,"warning"),He.errorColor&&ue(He.errorColor,"error"),He.infoColor&&ue(He.infoColor,"info"),` :root { ${Object.keys(et).map(U=>`--${ke}-${U}: ${et[U]};`).join(` `)} } - `.trim()}function L(ke,He){const et=A(ke,He);(0,R.Z)()&&(0,T.hq)(et,`${z}-dynamic-theme`)}var I=e(92428),$=e(33446);function B(){const ke=(0,n.useContext)(I.Z),He=(0,n.useContext)($.Z);return{componentDisabled:ke,componentSize:He}}var K=B,H=e(7637);function ie(ke,He){const et=ke||{},Fe=et.inherit===!1||!He?S.u_:He;return(0,o.Z)(()=>{if(!ke)return He;const ue=Object.assign({},Fe.components);return Object.keys(ke.components||{}).forEach(V=>{ue[V]=Object.assign(Object.assign({},ue[V]),ke.components[V])}),Object.assign(Object.assign(Object.assign({},Fe),et),{token:Object.assign(Object.assign({},Fe.token),et.token),components:ue})},[et,Fe],(ue,V)=>ue.some((U,N)=>{const D=V[N];return!(0,H.Z)(U,D,!0)}))}var ce=e(17598),te=e(51806);function W(ke){const{children:He}=ke,[,et]=(0,te.Z)(),{motion:Fe}=et,ue=n.useRef(!1);return ue.current=ue.current||Fe===!1,ue.current?n.createElement(ce.zt,{motion:Fe},He):He}var G=e(60619),O=function(ke,He){var et={};for(var Fe in ke)Object.prototype.hasOwnProperty.call(ke,Fe)&&He.indexOf(Fe)<0&&(et[Fe]=ke[Fe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(ke);ueHe.endsWith("Color"))}const qe=ke=>{let{prefixCls:He,iconPrefixCls:et,theme:Fe}=ke;He!==void 0&&(Ce=He),et!==void 0&&(ge=et),Fe&&(Ve(Fe)?L(Re(),Fe):Me=Fe)},Mt=()=>({getPrefixCls:(ke,He)=>He||(ke?`${Re()}-${ke}`:Re()),getIconPrefixCls:Qe,getRootPrefixCls:()=>Ce||Re(),getTheme:()=>Me}),wt=ke=>{const{children:He,csp:et,autoInsertSpaceInButton:Fe,alert:ue,anchor:V,form:U,locale:N,componentSize:D,direction:ee,space:se,virtual:X,dropdownMatchSelectWidth:re,popupMatchSelectWidth:Ie,popupOverflow:Se,legacyLocale:he,parentContext:We,iconPrefixCls:de,theme:le,componentDisabled:ve,segmented:xe,statistic:Ze,spin:pe,calendar:Je,carousel:Ae,cascader:oe,collapse:ye,typography:Be,checkbox:De,descriptions:Pe,divider:we,drawer:Le,skeleton:Ye,steps:Ue,image:dt,layout:bt,list:ft,mentions:At,modal:Ot,progress:jt,result:Gt,slider:Xt,breadcrumb:zn,menu:fn,pagination:Bn,input:On,empty:Mn,badge:_e,radio:at,rate:Vt,switch:rn,transfer:st,avatar:ut,message:$t,tag:nt,table:gt,card:Dt,tabs:xn,timeline:tn,timePicker:Hn,upload:Nn,notification:pr,tree:gr,colorPicker:Or,datePicker:ar,wave:mr}=ke,ea=n.useCallback((lt,xt)=>{const{prefixCls:St}=ke;if(xt)return xt;const Lt=St||We.getPrefixCls("");return lt?`${Lt}-${lt}`:Lt},[We.getPrefixCls,ke.prefixCls]),Lr=de||We.iconPrefixCls||y.oR,Kn=Lr!==We.iconPrefixCls,zt=et||We.csp,Ft=(0,G.Z)(Lr,zt),on=ie(le,We.theme),nn={csp:zt,autoInsertSpaceInButton:Fe,alert:ue,anchor:V,locale:N||he,direction:ee,space:se,virtual:X,popupMatchSelectWidth:Ie!=null?Ie:re,popupOverflow:Se,getPrefixCls:ea,iconPrefixCls:Lr,theme:on,segmented:xe,statistic:Ze,spin:pe,calendar:Je,carousel:Ae,cascader:oe,collapse:ye,typography:Be,checkbox:De,descriptions:Pe,divider:we,drawer:Le,skeleton:Ye,steps:Ue,image:dt,input:On,layout:bt,list:ft,mentions:At,modal:Ot,progress:jt,result:Gt,slider:Xt,breadcrumb:zn,menu:fn,pagination:Bn,empty:Mn,badge:_e,radio:at,rate:Vt,switch:rn,transfer:st,avatar:ut,message:$t,tag:nt,table:gt,card:Dt,tabs:xn,timeline:tn,timePicker:Hn,upload:Nn,notification:pr,tree:gr,colorPicker:Or,datePicker:ar,wave:mr},kt=Object.assign({},We);Object.keys(nn).forEach(lt=>{nn[lt]!==void 0&&(kt[lt]=nn[lt])}),Q.forEach(lt=>{const xt=ke[lt];xt&&(kt[lt]=xt)});const hn=(0,o.Z)(()=>kt,kt,(lt,xt)=>{const St=Object.keys(lt),Lt=Object.keys(xt);return St.length!==Lt.length||St.some(_t=>lt[_t]!==xt[_t])}),dn=n.useMemo(()=>({prefixCls:Lr,csp:zt}),[Lr,zt]);let $n=Kn?Ft(He):He;const qn=n.useMemo(()=>{var lt,xt,St,Lt;return(0,s.T)(((lt=p.Z.Form)===null||lt===void 0?void 0:lt.defaultValidateMessages)||{},((St=(xt=hn.locale)===null||xt===void 0?void 0:xt.Form)===null||St===void 0?void 0:St.defaultValidateMessages)||{},((Lt=hn.form)===null||Lt===void 0?void 0:Lt.validateMessages)||{},(U==null?void 0:U.validateMessages)||{})},[hn,U==null?void 0:U.validateMessages]);Object.keys(qn).length>0&&($n=n.createElement(c.Z.Provider,{value:qn},He)),N&&($n=n.createElement(C,{locale:N,_ANT_MARK__:h},$n)),(Lr||zt)&&($n=n.createElement(t.Z.Provider,{value:dn},$n)),D&&($n=n.createElement($.q,{size:D},$n)),$n=n.createElement(W,null,$n);const ct=n.useMemo(()=>{const lt=on||{},{algorithm:xt,token:St,components:Lt}=lt,_t=O(lt,["algorithm","token","components"]),Wt=xt&&(!Array.isArray(xt)||xt.length>0)?(0,i.jG)(xt):S.uH,yn={};return Object.entries(Lt||{}).forEach(kn=>{let[hr,cr]=kn;const Dn=Object.assign({},cr);"algorithm"in Dn&&(Dn.algorithm===!0?Dn.theme=Wt:(Array.isArray(Dn.algorithm)||typeof Dn.algorithm=="function")&&(Dn.theme=(0,i.jG)(Dn.algorithm)),delete Dn.algorithm),yn[hr]=Dn}),Object.assign(Object.assign({},_t),{theme:Wt,token:Object.assign(Object.assign({},w.Z),St),components:yn})},[on]);return le&&($n=n.createElement(S.Mj.Provider,{value:ct},$n)),ve!==void 0&&($n=n.createElement(I.n,{disabled:ve},$n)),n.createElement(y.E_.Provider,{value:hn},$n)},mt=ke=>{const He=n.useContext(y.E_),et=n.useContext(v.Z);return n.createElement(wt,Object.assign({parentContext:He,legacyLocale:et},ke))};mt.ConfigContext=y.E_,mt.SizeContext=$.Z,mt.config=qe,mt.useConfig=K,Object.defineProperty(mt,"SizeContext",{get:()=>$.Z});var Nt=mt},7056:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},t=i,o=e(38107),n={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"]},t),timePickerLocale:Object.assign({},o.Z)}},51244:function(M,b,e){"use strict";e.d(b,{Z:function(){return p}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(78330),c=e(52628),l=e(22151);const v=S=>{const{componentCls:w,sizePaddingEdgeHorizontal:y,colorSplit:Z,lineWidth:F}=S;return{[w]:Object.assign(Object.assign({},(0,n.Wf)(S)),{borderBlockStart:`${F}px solid ${Z}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${S.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${F}px solid ${Z}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${S.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${w}-with-text`]:{display:"flex",alignItems:"center",margin:`${S.dividerHorizontalWithTextGutterMargin}px 0`,color:S.colorTextHeading,fontWeight:500,fontSize:S.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Z}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${F}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${w}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${w}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${w}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:Z,borderStyle:"dashed",borderWidth:`${F}px 0 0`},[`&-horizontal${w}-with-text${w}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${w}-dashed`]:{borderInlineStartWidth:F,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${w}-with-text`]:{color:S.colorText,fontWeight:"normal",fontSize:S.fontSize},[`&-horizontal${w}-with-text-left${w}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${w}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${w}-with-text-right${w}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${w}-inner-text`]:{paddingInlineEnd:y}}})}};var h=(0,c.Z)("Divider",S=>{const w=(0,l.TS)(S,{dividerVerticalGutterMargin:S.marginXS,dividerHorizontalWithTextGutterMargin:S.margin,dividerHorizontalGutterMargin:S.marginLG});return[v(w)]},{sizePaddingEdgeHorizontal:0}),m=function(S,w){var y={};for(var Z in S)Object.prototype.hasOwnProperty.call(S,Z)&&w.indexOf(Z)<0&&(y[Z]=S[Z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,Z=Object.getOwnPropertySymbols(S);F{const{getPrefixCls:w,direction:y,divider:Z}=o.useContext(s.E_),{prefixCls:F,type:R="horizontal",orientation:T="center",orientationMargin:z,className:A,rootClassName:L,children:I,dashed:$,plain:B,style:K}=S,H=m(S,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ie=w("divider",F),[ce,te]=h(ie),W=T.length>0?`-${T}`:T,G=!!I,O=T==="left"&&z!=null,k=T==="right"&&z!=null,Y=t()(ie,Z==null?void 0:Z.className,te,`${ie}-${R}`,{[`${ie}-with-text`]:G,[`${ie}-with-text${W}`]:G,[`${ie}-dashed`]:!!$,[`${ie}-plain`]:!!B,[`${ie}-rtl`]:y==="rtl",[`${ie}-no-default-orientation-margin-left`]:O,[`${ie}-no-default-orientation-margin-right`]:k},A,L),P=o.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Q=Object.assign(Object.assign({},O&&{marginLeft:P}),k&&{marginRight:P});return ce(o.createElement("div",Object.assign({className:Y,style:Object.assign(Object.assign({},Z==null?void 0:Z.style),K)},H,{role:"separator"}),I&&R!=="vertical"&&o.createElement("span",{className:`${ie}-inner-text`,style:Q},I)))}},40627:function(M,b,e){"use strict";var i=e(91169),t=e(87608),o=e.n(t),s=e(4933),n=e(51729),c=e(60409),l=e(98186),v=e(58757),h=e(15018),m=e(95446),C=e(37047),p=e(61836),S=e(85706),w=e(81285),y=e(22802),Z=e(78607);const F=null,R=L=>{const{menu:I,arrow:$,prefixCls:B,children:K,trigger:H,disabled:ie,dropdownRender:ce,getPopupContainer:te,overlayClassName:W,rootClassName:G,open:O,onOpenChange:k,visible:Y,onVisibleChange:P,mouseEnterDelay:Q=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:Ce=!0,placement:ge="",overlay:Me,transitionName:Re}=L,{getPopupContainer:Qe,getPrefixCls:Ve,direction:qe}=v.useContext(p.E_),Mt=v.useMemo(()=>{const Ie=Ve();return Re!==void 0?Re:ge.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[Ve,ge,Re]),wt=v.useMemo(()=>ge?ge.includes("Center")?ge.slice(0,ge.indexOf("Center")):ge:qe==="rtl"?"bottomRight":"bottomLeft",[ge,qe]),mt=Ve("dropdown",B),[Nt,ke]=(0,Z.Z)(mt),{token:He}=y.Z.useToken(),et=v.Children.only(K),Fe=(0,C.Tm)(et,{className:o()(`${mt}-trigger`,{[`${mt}-rtl`]:qe==="rtl"},et.props.className),disabled:ie}),ue=ie?[]:H;let V;ue&&ue.includes("contextMenu")&&(V=!0);const[U,N]=(0,c.Z)(!1,{value:O!=null?O:Y}),D=(0,n.Z)(Ie=>{k==null||k(Ie),P==null||P(Ie),N(Ie)}),ee=o()(W,G,ke,{[`${mt}-rtl`]:qe==="rtl"}),se=(0,m.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:Ce,offset:He.marginXXS,arrowWidth:$?He.sizePopupArrow:0,borderRadius:He.borderRadius}),X=v.useCallback(()=>{N(!1)},[]),re=()=>{let Ie;return I!=null&&I.items?Ie=v.createElement(S.Z,Object.assign({},I)):typeof Me=="function"?Ie=Me():Ie=Me,ce&&(Ie=ce(Ie)),Ie=v.Children.only(typeof Ie=="string"?v.createElement("span",null,Ie):Ie),v.createElement(w.J,{prefixCls:`${mt}-menu`,expandIcon:v.createElement("span",{className:`${mt}-menu-submenu-arrow`},v.createElement(i.Z,{className:`${mt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:Se=>{let{mode:he}=Se}},Ie)};return Nt(v.createElement(s.Z,Object.assign({alignPoint:V},(0,l.Z)(L,["rootClassName"]),{mouseEnterDelay:Q,mouseLeaveDelay:fe,visible:U,builtinPlacements:se,arrow:!!$,overlayClassName:ee,prefixCls:mt,getPopupContainer:te||Qe,transitionName:Mt,trigger:ue,overlay:re,placement:wt,onVisibleChange:D}),Fe))};function T(L){return Object.assign(Object.assign({},L),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,h.Z)(R,"dropdown",L=>L,T),A=L=>v.createElement(z,Object.assign({},L),v.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=A,b.Z=R},73267:function(M,b,e){"use strict";e.d(b,{Z:function(){return y}});var i=e(40627),t=e(87608),o=e.n(t),s=e(58757),n=e(18974),c=e(12562),l=e(61836),v=e(57414),h=e(43528),m=e(78607),C=function(Z,F){var R={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&F.indexOf(T)<0&&(R[T]=Z[T]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,T=Object.getOwnPropertySymbols(Z);z{const{getPopupContainer:F,getPrefixCls:R,direction:T}=s.useContext(l.E_),{prefixCls:z,type:A="default",danger:L,disabled:I,loading:$,onClick:B,htmlType:K,children:H,className:ie,menu:ce,arrow:te,autoFocus:W,overlay:G,trigger:O,align:k,open:Y,onOpenChange:P,placement:Q,getPopupContainer:fe,href:Ce,icon:ge=s.createElement(n.Z,null),title:Me,buttonsRender:Re=re=>re,mouseEnterDelay:Qe,mouseLeaveDelay:Ve,overlayClassName:qe,overlayStyle:Mt,destroyPopupOnHide:wt,dropdownRender:mt}=Z,Nt=C(Z,["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"]),ke=R("dropdown",z),He=`${ke}-button`,[et,Fe]=(0,m.Z)(ke),ue={menu:ce,arrow:te,autoFocus:W,align:k,disabled:I,trigger:I?[]:O,onOpenChange:P,getPopupContainer:fe||F,mouseEnterDelay:Qe,mouseLeaveDelay:Ve,overlayClassName:qe,overlayStyle:Mt,destroyPopupOnHide:wt,dropdownRender:mt},{compactSize:V,compactItemClassnames:U}=(0,h.ri)(ke,T),N=o()(He,U,ie,Fe);"overlay"in Z&&(ue.overlay=G),"open"in Z&&(ue.open=Y),"placement"in Z?ue.placement=Q:ue.placement=T==="rtl"?"bottomLeft":"bottomRight";const D=s.createElement(c.ZP,{type:A,danger:L,disabled:I,loading:$,onClick:B,htmlType:K,href:Ce,title:Me},H),ee=s.createElement(c.ZP,{type:A,danger:L,icon:ge}),[se,X]=Re([D,ee]);return et(s.createElement(v.Z.Compact,Object.assign({className:N,size:V,block:!0},Nt),se,s.createElement(i.Z,Object.assign({},ue),X)))};p.__ANT_BUTTON=!0;var S=p;const w=i.Z;w.Button=S;var y=w},78607:function(M,b,e){"use strict";e.d(b,{Z:function(){return C}});var i=e(78330),t=e(1016),o=e(1546),s=e(28107),n=e(24542),c=e(52628),l=e(22151),h=p=>{const{componentCls:S,menuCls:w,colorError:y,colorTextLightSolid:Z}=p,F=`${w}-item`;return{[`${S}, ${S}-menu-submenu`]:{[`${w} ${F}`]:{[`&${F}-danger:not(${F}-disabled)`]:{color:y,"&:hover":{color:Z,backgroundColor:y}}}}}};const m=p=>{const{componentCls:S,menuCls:w,zIndexPopup:y,dropdownArrowDistance:Z,sizePopupArrow:F,antCls:R,iconCls:T,motionDurationMid:z,dropdownPaddingVertical:A,fontSize:L,dropdownEdgeChildPadding:I,colorTextDisabled:$,fontSizeIcon:B,controlPaddingHorizontal:K,colorBgElevated:H}=p;return[{[S]:Object.assign(Object.assign({},(0,i.Wf)(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-Z+F/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${T}-down, & > ${R}-btn-icon > ${T}-down`]:{fontSize:B}},[`${S}-wrap`]:{position:"relative",[`${R}-btn > ${T}-down`]:{fontSize:B},[`${T}-down::before`]:{transition:`transform ${z}`}},[`${S}-wrap-open`]:{[`${T}-down::before`]:{transform:"rotate(180deg)"}},[` + `.trim()}function L(ke,He){const et=A(ke,He);(0,R.Z)()&&(0,T.hq)(et,`${z}-dynamic-theme`)}var I=e(92428),$=e(33446);function B(){const ke=(0,n.useContext)(I.Z),He=(0,n.useContext)($.Z);return{componentDisabled:ke,componentSize:He}}var K=B,H=e(7637);function ie(ke,He){const et=ke||{},Fe=et.inherit===!1||!He?S.u_:He;return(0,o.Z)(()=>{if(!ke)return He;const ue=Object.assign({},Fe.components);return Object.keys(ke.components||{}).forEach(V=>{ue[V]=Object.assign(Object.assign({},ue[V]),ke.components[V])}),Object.assign(Object.assign(Object.assign({},Fe),et),{token:Object.assign(Object.assign({},Fe.token),et.token),components:ue})},[et,Fe],(ue,V)=>ue.some((U,N)=>{const D=V[N];return!(0,H.Z)(U,D,!0)}))}var ce=e(17598),te=e(51806);function W(ke){const{children:He}=ke,[,et]=(0,te.Z)(),{motion:Fe}=et,ue=n.useRef(!1);return ue.current=ue.current||Fe===!1,ue.current?n.createElement(ce.zt,{motion:Fe},He):He}var G=e(60619),O=function(ke,He){var et={};for(var Fe in ke)Object.prototype.hasOwnProperty.call(ke,Fe)&&He.indexOf(Fe)<0&&(et[Fe]=ke[Fe]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ue=0,Fe=Object.getOwnPropertySymbols(ke);ueHe.endsWith("Color"))}const qe=ke=>{let{prefixCls:He,iconPrefixCls:et,theme:Fe}=ke;He!==void 0&&(Ce=He),et!==void 0&&(ge=et),Fe&&(Ve(Fe)?L(Ne(),Fe):Me=Fe)},Mt=()=>({getPrefixCls:(ke,He)=>He||(ke?`${Ne()}-${ke}`:Ne()),getIconPrefixCls:Qe,getRootPrefixCls:()=>Ce||Ne(),getTheme:()=>Me}),wt=ke=>{const{children:He,csp:et,autoInsertSpaceInButton:Fe,alert:ue,anchor:V,form:U,locale:N,componentSize:D,direction:ee,space:se,virtual:X,dropdownMatchSelectWidth:re,popupMatchSelectWidth:Ie,popupOverflow:Se,legacyLocale:he,parentContext:We,iconPrefixCls:de,theme:le,componentDisabled:ve,segmented:xe,statistic:Ze,spin:pe,calendar:Je,carousel:Ae,cascader:oe,collapse:ye,typography:Be,checkbox:De,descriptions:Pe,divider:we,drawer:Le,skeleton:Ye,steps:Ue,image:dt,layout:bt,list:ft,mentions:At,modal:Ot,progress:jt,result:Gt,slider:Xt,breadcrumb:Bn,menu:fn,pagination:$n,input:On,empty:Mn,badge:_e,radio:at,rate:Vt,switch:an,transfer:st,avatar:ut,message:$t,tag:nt,table:mt,card:Dt,tabs:Cn,timeline:en,timePicker:Hn,upload:Rn,notification:pr,tree:gr,colorPicker:Or,datePicker:ar,wave:mr}=ke,qr=n.useCallback((lt,xt)=>{const{prefixCls:St}=ke;if(xt)return xt;const Nt=St||We.getPrefixCls("");return lt?`${Nt}-${lt}`:Nt},[We.getPrefixCls,ke.prefixCls]),Pr=de||We.iconPrefixCls||y.oR,Vn=Pr!==We.iconPrefixCls,zt=et||We.csp,Ft=(0,G.Z)(Pr,zt),sn=ie(le,We.theme),tn={csp:zt,autoInsertSpaceInButton:Fe,alert:ue,anchor:V,locale:N||he,direction:ee,space:se,virtual:X,popupMatchSelectWidth:Ie!=null?Ie:re,popupOverflow:Se,getPrefixCls:qr,iconPrefixCls:Pr,theme:sn,segmented:xe,statistic:Ze,spin:pe,calendar:Je,carousel:Ae,cascader:oe,collapse:ye,typography:Be,checkbox:De,descriptions:Pe,divider:we,drawer:Le,skeleton:Ye,steps:Ue,image:dt,input:On,layout:bt,list:ft,mentions:At,modal:Ot,progress:jt,result:Gt,slider:Xt,breadcrumb:Bn,menu:fn,pagination:$n,empty:Mn,badge:_e,radio:at,rate:Vt,switch:an,transfer:st,avatar:ut,message:$t,tag:nt,table:mt,card:Dt,tabs:Cn,timeline:en,timePicker:Hn,upload:Rn,notification:pr,tree:gr,colorPicker:Or,datePicker:ar,wave:mr},kt=Object.assign({},We);Object.keys(tn).forEach(lt=>{tn[lt]!==void 0&&(kt[lt]=tn[lt])}),Q.forEach(lt=>{const xt=ke[lt];xt&&(kt[lt]=xt)});const hn=(0,o.Z)(()=>kt,kt,(lt,xt)=>{const St=Object.keys(lt),Nt=Object.keys(xt);return St.length!==Nt.length||St.some(_t=>lt[_t]!==xt[_t])}),dn=n.useMemo(()=>({prefixCls:Pr,csp:zt}),[Pr,zt]);let Fn=Vn?Ft(He):He;const tr=n.useMemo(()=>{var lt,xt,St,Nt;return(0,s.T)(((lt=p.Z.Form)===null||lt===void 0?void 0:lt.defaultValidateMessages)||{},((St=(xt=hn.locale)===null||xt===void 0?void 0:xt.Form)===null||St===void 0?void 0:St.defaultValidateMessages)||{},((Nt=hn.form)===null||Nt===void 0?void 0:Nt.validateMessages)||{},(U==null?void 0:U.validateMessages)||{})},[hn,U==null?void 0:U.validateMessages]);Object.keys(tr).length>0&&(Fn=n.createElement(c.Z.Provider,{value:tr},He)),N&&(Fn=n.createElement(C,{locale:N,_ANT_MARK__:h},Fn)),(Pr||zt)&&(Fn=n.createElement(t.Z.Provider,{value:dn},Fn)),D&&(Fn=n.createElement($.q,{size:D},Fn)),Fn=n.createElement(W,null,Fn);const ct=n.useMemo(()=>{const lt=sn||{},{algorithm:xt,token:St,components:Nt}=lt,_t=O(lt,["algorithm","token","components"]),Wt=xt&&(!Array.isArray(xt)||xt.length>0)?(0,i.jG)(xt):S.uH,yn={};return Object.entries(Nt||{}).forEach(kn=>{let[hr,cr]=kn;const Dn=Object.assign({},cr);"algorithm"in Dn&&(Dn.algorithm===!0?Dn.theme=Wt:(Array.isArray(Dn.algorithm)||typeof Dn.algorithm=="function")&&(Dn.theme=(0,i.jG)(Dn.algorithm)),delete Dn.algorithm),yn[hr]=Dn}),Object.assign(Object.assign({},_t),{theme:Wt,token:Object.assign(Object.assign({},w.Z),St),components:yn})},[sn]);return le&&(Fn=n.createElement(S.Mj.Provider,{value:ct},Fn)),ve!==void 0&&(Fn=n.createElement(I.n,{disabled:ve},Fn)),n.createElement(y.E_.Provider,{value:hn},Fn)},gt=ke=>{const He=n.useContext(y.E_),et=n.useContext(v.Z);return n.createElement(wt,Object.assign({parentContext:He,legacyLocale:et},ke))};gt.ConfigContext=y.E_,gt.SizeContext=$.Z,gt.config=qe,gt.useConfig=K,Object.defineProperty(gt,"SizeContext",{get:()=>$.Z});var Lt=gt},7056:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},t=i,o=e(38107),n={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"]},t),timePickerLocale:Object.assign({},o.Z)}},51244:function(M,b,e){"use strict";e.d(b,{Z:function(){return p}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(78330),c=e(52628),l=e(22151);const v=S=>{const{componentCls:w,sizePaddingEdgeHorizontal:y,colorSplit:Z,lineWidth:F}=S;return{[w]:Object.assign(Object.assign({},(0,n.Wf)(S)),{borderBlockStart:`${F}px solid ${Z}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${S.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${F}px solid ${Z}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${S.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${w}-with-text`]:{display:"flex",alignItems:"center",margin:`${S.dividerHorizontalWithTextGutterMargin}px 0`,color:S.colorTextHeading,fontWeight:500,fontSize:S.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Z}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${F}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${w}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${w}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${w}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:Z,borderStyle:"dashed",borderWidth:`${F}px 0 0`},[`&-horizontal${w}-with-text${w}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${w}-dashed`]:{borderInlineStartWidth:F,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${w}-with-text`]:{color:S.colorText,fontWeight:"normal",fontSize:S.fontSize},[`&-horizontal${w}-with-text-left${w}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${w}-inner-text`]:{paddingInlineStart:y}},[`&-horizontal${w}-with-text-right${w}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${w}-inner-text`]:{paddingInlineEnd:y}}})}};var h=(0,c.Z)("Divider",S=>{const w=(0,l.TS)(S,{dividerVerticalGutterMargin:S.marginXS,dividerHorizontalWithTextGutterMargin:S.margin,dividerHorizontalGutterMargin:S.marginLG});return[v(w)]},{sizePaddingEdgeHorizontal:0}),m=function(S,w){var y={};for(var Z in S)Object.prototype.hasOwnProperty.call(S,Z)&&w.indexOf(Z)<0&&(y[Z]=S[Z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,Z=Object.getOwnPropertySymbols(S);F{const{getPrefixCls:w,direction:y,divider:Z}=o.useContext(s.E_),{prefixCls:F,type:R="horizontal",orientation:T="center",orientationMargin:z,className:A,rootClassName:L,children:I,dashed:$,plain:B,style:K}=S,H=m(S,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),ie=w("divider",F),[ce,te]=h(ie),W=T.length>0?`-${T}`:T,G=!!I,O=T==="left"&&z!=null,k=T==="right"&&z!=null,Y=t()(ie,Z==null?void 0:Z.className,te,`${ie}-${R}`,{[`${ie}-with-text`]:G,[`${ie}-with-text${W}`]:G,[`${ie}-dashed`]:!!$,[`${ie}-plain`]:!!B,[`${ie}-rtl`]:y==="rtl",[`${ie}-no-default-orientation-margin-left`]:O,[`${ie}-no-default-orientation-margin-right`]:k},A,L),P=o.useMemo(()=>typeof z=="number"?z:/^\d+$/.test(z)?Number(z):z,[z]),Q=Object.assign(Object.assign({},O&&{marginLeft:P}),k&&{marginRight:P});return ce(o.createElement("div",Object.assign({className:Y,style:Object.assign(Object.assign({},Z==null?void 0:Z.style),K)},H,{role:"separator"}),I&&R!=="vertical"&&o.createElement("span",{className:`${ie}-inner-text`,style:Q},I)))}},40627:function(M,b,e){"use strict";var i=e(91169),t=e(87608),o=e.n(t),s=e(4933),n=e(51729),c=e(60409),l=e(98186),v=e(58757),h=e(15018),m=e(95446),C=e(37047),p=e(61836),S=e(85706),w=e(81285),y=e(22802),Z=e(78607);const F=null,R=L=>{const{menu:I,arrow:$,prefixCls:B,children:K,trigger:H,disabled:ie,dropdownRender:ce,getPopupContainer:te,overlayClassName:W,rootClassName:G,open:O,onOpenChange:k,visible:Y,onVisibleChange:P,mouseEnterDelay:Q=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:Ce=!0,placement:ge="",overlay:Me,transitionName:Ne}=L,{getPopupContainer:Qe,getPrefixCls:Ve,direction:qe}=v.useContext(p.E_),Mt=v.useMemo(()=>{const Ie=Ve();return Ne!==void 0?Ne:ge.includes("top")?`${Ie}-slide-down`:`${Ie}-slide-up`},[Ve,ge,Ne]),wt=v.useMemo(()=>ge?ge.includes("Center")?ge.slice(0,ge.indexOf("Center")):ge:qe==="rtl"?"bottomRight":"bottomLeft",[ge,qe]),gt=Ve("dropdown",B),[Lt,ke]=(0,Z.Z)(gt),{token:He}=y.Z.useToken(),et=v.Children.only(K),Fe=(0,C.Tm)(et,{className:o()(`${gt}-trigger`,{[`${gt}-rtl`]:qe==="rtl"},et.props.className),disabled:ie}),ue=ie?[]:H;let V;ue&&ue.includes("contextMenu")&&(V=!0);const[U,N]=(0,c.Z)(!1,{value:O!=null?O:Y}),D=(0,n.Z)(Ie=>{k==null||k(Ie),P==null||P(Ie),N(Ie)}),ee=o()(W,G,ke,{[`${gt}-rtl`]:qe==="rtl"}),se=(0,m.Z)({arrowPointAtCenter:typeof $=="object"&&$.pointAtCenter,autoAdjustOverflow:Ce,offset:He.marginXXS,arrowWidth:$?He.sizePopupArrow:0,borderRadius:He.borderRadius}),X=v.useCallback(()=>{N(!1)},[]),re=()=>{let Ie;return I!=null&&I.items?Ie=v.createElement(S.Z,Object.assign({},I)):typeof Me=="function"?Ie=Me():Ie=Me,ce&&(Ie=ce(Ie)),Ie=v.Children.only(typeof Ie=="string"?v.createElement("span",null,Ie):Ie),v.createElement(w.J,{prefixCls:`${gt}-menu`,expandIcon:v.createElement("span",{className:`${gt}-menu-submenu-arrow`},v.createElement(i.Z,{className:`${gt}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:Se=>{let{mode:he}=Se}},Ie)};return Lt(v.createElement(s.Z,Object.assign({alignPoint:V},(0,l.Z)(L,["rootClassName"]),{mouseEnterDelay:Q,mouseLeaveDelay:fe,visible:U,builtinPlacements:se,arrow:!!$,overlayClassName:ee,prefixCls:gt,getPopupContainer:te||Qe,transitionName:Mt,trigger:ue,overlay:re,placement:wt,onVisibleChange:D}),Fe))};function T(L){return Object.assign(Object.assign({},L),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const z=(0,h.Z)(R,"dropdown",L=>L,T),A=L=>v.createElement(z,Object.assign({},L),v.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=A,b.Z=R},73267:function(M,b,e){"use strict";e.d(b,{Z:function(){return y}});var i=e(40627),t=e(87608),o=e.n(t),s=e(58757),n=e(18974),c=e(12562),l=e(61836),v=e(57414),h=e(43528),m=e(78607),C=function(Z,F){var R={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&F.indexOf(T)<0&&(R[T]=Z[T]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,T=Object.getOwnPropertySymbols(Z);z{const{getPopupContainer:F,getPrefixCls:R,direction:T}=s.useContext(l.E_),{prefixCls:z,type:A="default",danger:L,disabled:I,loading:$,onClick:B,htmlType:K,children:H,className:ie,menu:ce,arrow:te,autoFocus:W,overlay:G,trigger:O,align:k,open:Y,onOpenChange:P,placement:Q,getPopupContainer:fe,href:Ce,icon:ge=s.createElement(n.Z,null),title:Me,buttonsRender:Ne=re=>re,mouseEnterDelay:Qe,mouseLeaveDelay:Ve,overlayClassName:qe,overlayStyle:Mt,destroyPopupOnHide:wt,dropdownRender:gt}=Z,Lt=C(Z,["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"]),ke=R("dropdown",z),He=`${ke}-button`,[et,Fe]=(0,m.Z)(ke),ue={menu:ce,arrow:te,autoFocus:W,align:k,disabled:I,trigger:I?[]:O,onOpenChange:P,getPopupContainer:fe||F,mouseEnterDelay:Qe,mouseLeaveDelay:Ve,overlayClassName:qe,overlayStyle:Mt,destroyPopupOnHide:wt,dropdownRender:gt},{compactSize:V,compactItemClassnames:U}=(0,h.ri)(ke,T),N=o()(He,U,ie,Fe);"overlay"in Z&&(ue.overlay=G),"open"in Z&&(ue.open=Y),"placement"in Z?ue.placement=Q:ue.placement=T==="rtl"?"bottomLeft":"bottomRight";const D=s.createElement(c.ZP,{type:A,danger:L,disabled:I,loading:$,onClick:B,htmlType:K,href:Ce,title:Me},H),ee=s.createElement(c.ZP,{type:A,danger:L,icon:ge}),[se,X]=Ne([D,ee]);return et(s.createElement(v.Z.Compact,Object.assign({className:N,size:V,block:!0},Lt),se,s.createElement(i.Z,Object.assign({},ue),X)))};p.__ANT_BUTTON=!0;var S=p;const w=i.Z;w.Button=S;var y=w},78607:function(M,b,e){"use strict";e.d(b,{Z:function(){return C}});var i=e(78330),t=e(1016),o=e(1546),s=e(28107),n=e(24542),c=e(52628),l=e(22151),h=p=>{const{componentCls:S,menuCls:w,colorError:y,colorTextLightSolid:Z}=p,F=`${w}-item`;return{[`${S}, ${S}-menu-submenu`]:{[`${w} ${F}`]:{[`&${F}-danger:not(${F}-disabled)`]:{color:y,"&:hover":{color:Z,backgroundColor:y}}}}}};const m=p=>{const{componentCls:S,menuCls:w,zIndexPopup:y,dropdownArrowDistance:Z,sizePopupArrow:F,antCls:R,iconCls:T,motionDurationMid:z,dropdownPaddingVertical:A,fontSize:L,dropdownEdgeChildPadding:I,colorTextDisabled:$,fontSizeIcon:B,controlPaddingHorizontal:K,colorBgElevated:H}=p;return[{[S]:Object.assign(Object.assign({},(0,i.Wf)(p)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:y,display:"block","&::before":{position:"absolute",insetBlock:-Z+F/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${T}-down, & > ${R}-btn-icon > ${T}-down`]:{fontSize:B}},[`${S}-wrap`]:{position:"relative",[`${R}-btn > ${T}-down`]:{fontSize:B},[`${T}-down::before`]:{transition:`transform ${z}`}},[`${S}-wrap-open`]:{[`${T}-down::before`]:{transform:"rotate(180deg)"}},[` &-hidden, &-menu-hidden, &-menu-submenu-hidden @@ -202,7 +202,7 @@ http://j.mp/37Fkd5Q &${R}-slide-down-leave${R}-slide-down-leave-active${S}-placement-bottom, &${R}-slide-down-leave${R}-slide-down-leave-active${S}-placement-bottomRight`]:{animationName:t.Uw},[`&${R}-slide-up-leave${R}-slide-up-leave-active${S}-placement-topLeft, &${R}-slide-up-leave${R}-slide-up-leave-active${S}-placement-top, - &${R}-slide-up-leave${R}-slide-up-leave-active${S}-placement-topRight`]:{animationName:t.ly}})},(0,n.ZP)(p,{colorBg:H,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${S} ${w}`]:{position:"relative",margin:0},[`${w}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${S}, ${S}-menu-submenu`]:{[w]:Object.assign(Object.assign({padding:I,listStyleType:"none",backgroundColor:H,backgroundClip:"padding-box",borderRadius:p.borderRadiusLG,outline:"none",boxShadow:p.boxShadowSecondary},(0,i.Qy)(p)),{[`${w}-item-group-title`]:{padding:`${A}px ${K}px`,color:p.colorTextDescription,transition:`all ${z}`},[`${w}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${w}-item-icon`]:{minWidth:L,marginInlineEnd:p.marginXS,fontSize:p.fontSizeSM},[`${w}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${w}-item, ${w}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${A}px ${K}px`,color:p.colorText,fontWeight:"normal",fontSize:L,lineHeight:p.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:p.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:p.controlItemBgHover}},(0,i.Qy)(p)),{"&-selected":{color:p.colorPrimary,backgroundColor:p.controlItemBgActive,"&:hover, &-active":{backgroundColor:p.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:H,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${p.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:p.colorSplit},[`${S}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:p.paddingXS,[`${S}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:p.colorTextDescription,fontSize:B,fontStyle:"normal"}}}),[`${w}-item-group-list`]:{margin:`0 ${p.marginXS}px`,padding:0,listStyle:"none"},[`${w}-submenu-title`]:{paddingInlineEnd:K+p.fontSizeSM},[`${w}-submenu-vertical`]:{position:"relative"},[`${w}-submenu${w}-submenu-disabled ${S}-menu-submenu-title`]:{[`&, ${S}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:H,cursor:"not-allowed"}},[`${w}-submenu-selected ${S}-menu-submenu-title`]:{color:p.colorPrimary}})}},[(0,t.oN)(p,"slide-up"),(0,t.oN)(p,"slide-down"),(0,o.Fm)(p,"move-up"),(0,o.Fm)(p,"move-down"),(0,s._y)(p,"zoom-big")]]};var C=(0,c.Z)("Dropdown",(p,S)=>{let{rootPrefixCls:w}=S;const{marginXXS:y,sizePopupArrow:Z,controlHeight:F,fontSize:R,lineHeight:T,paddingXXS:z,componentCls:A,borderRadiusLG:L}=p,I=(F-R*T)/2,{dropdownArrowOffset:$}=(0,n.fS)({contentRadius:L}),B=(0,l.TS)(p,{menuCls:`${A}-menu`,rootPrefixCls:w,dropdownArrowDistance:Z/2+y,dropdownArrowOffset:$,dropdownPaddingVertical:I,dropdownEdgeChildPadding:z});return[m(B),h(B)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},17444:function(M,b,e){"use strict";e.d(b,{Z:function(){return z}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(29487),c=e(66671),l=e(51806),h=()=>{const[,A]=(0,l.Z)(),I=new c.C(A.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:I,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},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"}))))},C=()=>{const[,A]=(0,l.Z)(),{colorFill:L,colorFillTertiary:I,colorFillQuaternary:$,colorBgContainer:B}=A,{borderColor:K,shadowColor:H,contentColor:ie}=(0,o.useMemo)(()=>({borderColor:new c.C(L).onBackground(B).toHexShortString(),shadowColor:new c.C(I).onBackground(B).toHexShortString(),contentColor:new c.C($).onBackground(B).toHexShortString()}),[L,I,$,B]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:H,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:K},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:ie}))))},p=e(52628),S=e(22151);const w=A=>{const{componentCls:L,margin:I,marginXS:$,marginXL:B,fontSize:K,lineHeight:H}=A;return{[L]:{marginInline:$,fontSize:K,lineHeight:H,textAlign:"center",[`${L}-image`]:{height:A.emptyImgHeight,marginBottom:$,opacity:A.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:A.colorText},[`${L}-footer`]:{marginTop:I},"&-normal":{marginBlock:B,color:A.colorTextDisabled,[`${L}-description`]:{color:A.colorTextDisabled},[`${L}-image`]:{height:A.emptyImgHeightMD}},"&-small":{marginBlock:$,color:A.colorTextDisabled,[`${L}-image`]:{height:A.emptyImgHeightSM}}}}};var y=(0,p.Z)("Empty",A=>{const{componentCls:L,controlHeightLG:I}=A,$=(0,S.TS)(A,{emptyImgCls:`${L}-img`,emptyImgHeight:I*2.5,emptyImgHeightMD:I,emptyImgHeightSM:I*.875});return[w($)]}),Z=function(A,L){var I={};for(var $ in A)Object.prototype.hasOwnProperty.call(A,$)&&L.indexOf($)<0&&(I[$]=A[$]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,$=Object.getOwnPropertySymbols(A);B<$.length;B++)L.indexOf($[B])<0&&Object.prototype.propertyIsEnumerable.call(A,$[B])&&(I[$[B]]=A[$[B]]);return I};const F=o.createElement(h,null),R=o.createElement(C,null),T=A=>{var{className:L,rootClassName:I,prefixCls:$,image:B=F,description:K,children:H,imageStyle:ie,style:ce}=A,te=Z(A,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:W,direction:G,empty:O}=o.useContext(s.E_),k=W("empty",$),[Y,P]=y(k),[Q]=(0,n.Z)("Empty"),fe=typeof K!="undefined"?K:Q==null?void 0:Q.description,Ce=typeof fe=="string"?fe:"empty";let ge=null;return typeof B=="string"?ge=o.createElement("img",{alt:Ce,src:B}):ge=B,Y(o.createElement("div",Object.assign({className:t()(P,k,O==null?void 0:O.className,{[`${k}-normal`]:B===R,[`${k}-rtl`]:G==="rtl"},L,I),style:Object.assign(Object.assign({},O==null?void 0:O.style),ce)},te),o.createElement("div",{className:`${k}-image`,style:ie},ge),fe&&o.createElement("div",{className:`${k}-description`},fe),H&&o.createElement("div",{className:`${k}-footer`},H)))};T.PRESENTED_IMAGE_DEFAULT=F,T.PRESENTED_IMAGE_SIMPLE=R;var z=T},81496:function(M,b,e){"use strict";e.d(b,{RV:function(){return c},Rk:function(){return l},Ux:function(){return h},aM:function(){return v},q3:function(){return s},qI:function(){return n}});var i=e(94866),t=e(98186),o=e(58757);const s=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),n=o.createContext(null),c=m=>{const C=(0,t.Z)(m,["prefixCls"]);return o.createElement(i.RV,Object.assign({},C))},l=o.createContext({prefixCls:""}),v=o.createContext({}),h=m=>{let{children:C,status:p,override:S}=m;const w=(0,o.useContext)(v),y=(0,o.useMemo)(()=>{const Z=Object.assign({},w);return S&&delete Z.isFormItemInput,p&&(delete Z.status,delete Z.hasFeedback,delete Z.feedbackIcon),Z},[p,S,w]);return o.createElement(v.Provider,{value:y},C)}},48736:function(M,b,e){"use strict";var i=e(58757);b.Z=(0,i.createContext)(void 0)},35429:function(M,b,e){"use strict";var i=e(58757);const t=(0,i.createContext)({});b.Z=t},91334:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(35429),c=e(58378),l=function(C,p){var S={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&p.indexOf(w)<0&&(S[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,w=Object.getOwnPropertySymbols(C);y{const{getPrefixCls:S,direction:w}=o.useContext(s.E_),{gutter:y,wrap:Z,supportFlexGap:F}=o.useContext(n.Z),{prefixCls:R,span:T,order:z,offset:A,push:L,pull:I,className:$,children:B,flex:K,style:H}=C,ie=l(C,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),ce=S("col",R),[te,W]=(0,c.c)(ce);let G={};h.forEach(Y=>{let P={};const Q=C[Y];typeof Q=="number"?P.span=Q:typeof Q=="object"&&(P=Q||{}),delete ie[Y],G=Object.assign(Object.assign({},G),{[`${ce}-${Y}-${P.span}`]:P.span!==void 0,[`${ce}-${Y}-order-${P.order}`]:P.order||P.order===0,[`${ce}-${Y}-offset-${P.offset}`]:P.offset||P.offset===0,[`${ce}-${Y}-push-${P.push}`]:P.push||P.push===0,[`${ce}-${Y}-pull-${P.pull}`]:P.pull||P.pull===0,[`${ce}-${Y}-flex-${P.flex}`]:P.flex||P.flex==="auto",[`${ce}-rtl`]:w==="rtl"})});const O=t()(ce,{[`${ce}-${T}`]:T!==void 0,[`${ce}-order-${z}`]:z,[`${ce}-offset-${A}`]:A,[`${ce}-push-${L}`]:L,[`${ce}-pull-${I}`]:I},$,G,W),k={};if(y&&y[0]>0){const Y=y[0]/2;k.paddingLeft=Y,k.paddingRight=Y}if(y&&y[1]>0&&!F){const Y=y[1]/2;k.paddingTop=Y,k.paddingBottom=Y}return K&&(k.flex=v(K),Z===!1&&!k.minWidth&&(k.minWidth=0)),te(o.createElement("div",Object.assign({},ie,{style:Object.assign(Object.assign({},k),H),className:O,ref:p}),B))});b.Z=m},60059:function(M,b,e){"use strict";var i=e(58757),t=e(81334),o=e(4459),s=e(87078);function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const l=(0,i.useRef)({}),v=(0,o.Z)(),h=(0,s.Z)();return(0,t.Z)(()=>{const m=h.subscribe(C=>{l.current=C,c&&v()});return()=>h.unsubscribe(m)},[]),l.current}b.Z=n},67665:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(69387),c=e(87078),l=e(35429),v=e(58378),h=function(w,y){var Z={};for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&y.indexOf(F)<0&&(Z[F]=w[F]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(w);R{if(typeof w=="string"&&F(w),typeof w=="object")for(let T=0;T{R()},[JSON.stringify(w),y]),Z}const S=o.forwardRef((w,y)=>{const{prefixCls:Z,justify:F,align:R,className:T,style:z,children:A,gutter:L=0,wrap:I}=w,$=h(w,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:B,direction:K}=o.useContext(s.E_),[H,ie]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[ce,te]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),W=p(R,ce),G=p(F,ce),O=(0,n.Z)(),k=o.useRef(L),Y=(0,c.Z)();o.useEffect(()=>{const mt=Y.subscribe(Nt=>{te(Nt);const ke=k.current||0;(!Array.isArray(ke)&&typeof ke=="object"||Array.isArray(ke)&&(typeof ke[0]=="object"||typeof ke[1]=="object"))&&ie(Nt)});return()=>Y.unsubscribe(mt)},[]);const P=()=>{const mt=[void 0,void 0];return(Array.isArray(L)?L:[L,void 0]).forEach((ke,He)=>{if(typeof ke=="object")for(let et=0;et0?ge[0]/-2:void 0,Ve=ge[1]!=null&&ge[1]>0?ge[1]/-2:void 0;Qe&&(Re.marginLeft=Qe,Re.marginRight=Qe),O?[,Re.rowGap]=ge:Ve&&(Re.marginTop=Ve,Re.marginBottom=Ve);const[qe,Mt]=ge,wt=o.useMemo(()=>({gutter:[qe,Mt],wrap:I,supportFlexGap:O}),[qe,Mt,I,O]);return fe(o.createElement(l.Z.Provider,{value:wt},o.createElement("div",Object.assign({},$,{className:Me,style:Object.assign(Object.assign({},Re),z),ref:y}),A)))});b.Z=S},58378:function(M,b,e){"use strict";e.d(b,{V:function(){return v},c:function(){return h}});var i=e(52628),t=e(22151);const o=m=>{const{componentCls:C}=m;return{[C]:{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=m=>{const{componentCls:C}=m;return{[C]:{position:"relative",maxWidth:"100%",minHeight:1}}},n=(m,C)=>{const{componentCls:p,gridColumns:S}=m,w={};for(let y=S;y>=0;y--)y===0?(w[`${p}${C}-${y}`]={display:"none"},w[`${p}-push-${y}`]={insetInlineStart:"auto"},w[`${p}-pull-${y}`]={insetInlineEnd:"auto"},w[`${p}${C}-push-${y}`]={insetInlineStart:"auto"},w[`${p}${C}-pull-${y}`]={insetInlineEnd:"auto"},w[`${p}${C}-offset-${y}`]={marginInlineStart:0},w[`${p}${C}-order-${y}`]={order:0}):(w[`${p}${C}-${y}`]={display:"block",flex:`0 0 ${y/S*100}%`,maxWidth:`${y/S*100}%`},w[`${p}${C}-push-${y}`]={insetInlineStart:`${y/S*100}%`},w[`${p}${C}-pull-${y}`]={insetInlineEnd:`${y/S*100}%`},w[`${p}${C}-offset-${y}`]={marginInlineStart:`${y/S*100}%`},w[`${p}${C}-order-${y}`]={order:y});return w},c=(m,C)=>n(m,C),l=(m,C,p)=>({[`@media (min-width: ${C}px)`]:Object.assign({},c(m,p))}),v=(0,i.Z)("Grid",m=>[o(m)]),h=(0,i.Z)("Grid",m=>{const C=(0,t.TS)(m,{gridColumns:24}),p={"-sm":C.screenSMMin,"-md":C.screenMDMin,"-lg":C.screenLGMin,"-xl":C.screenXLMin,"-xxl":C.screenXXLMin};return[s(C),c(C,""),c(C,"-xs"),Object.keys(p).map(S=>l(C,p[S],S)).reduce((S,w)=>Object.assign(Object.assign({},S),w),{})]})},32423:function(M,b,e){"use strict";e.d(b,{Z:function(){return de}});var i=e(10130),t=e(23926),o=e(87608),s=e.n(o),n=e(60698),c=e(37734),l=e(38790),v=e(28314),h=e(47075),m=e(60412),C=e(14346);function p(){return typeof BigInt=="function"}function S(le){return!le&&le!==0&&!Number.isNaN(le)||!String(le).trim()}function w(le){var ve=le.trim(),xe=ve.startsWith("-");xe&&(ve=ve.slice(1)),ve=ve.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ve.startsWith(".")&&(ve="0".concat(ve));var Ze=ve||"0",pe=Ze.split("."),Je=pe[0]||"0",Ae=pe[1]||"0";Je==="0"&&Ae==="0"&&(xe=!1);var oe=xe?"-":"";return{negative:xe,negativeStr:oe,trimStr:Ze,integerStr:Je,decimalStr:Ae,fullStr:"".concat(oe).concat(Ze)}}function y(le){var ve=String(le);return!Number.isNaN(Number(ve))&&ve.includes("e")}function Z(le){var ve=String(le);if(y(le)){var xe=Number(ve.slice(ve.indexOf("e-")+2)),Ze=ve.match(/\.(\d+)/);return Ze!=null&&Ze[1]&&(xe+=Ze[1].length),xe}return ve.includes(".")&&R(ve)?ve.length-ve.indexOf(".")-1:0}function F(le){var ve=String(le);if(y(le)){if(le>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(le).toString():Number.MAX_SAFE_INTEGER);if(le0&&arguments[0]!==void 0?arguments[0]:!0;return xe?this.isInvalidate()?"":w("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),le}(),z=function(){function le(ve){if((0,m.Z)(this,le),(0,c.Z)(this,"origin",""),(0,c.Z)(this,"number",void 0),(0,c.Z)(this,"empty",void 0),S(ve)){this.empty=!0;return}this.origin=String(ve),this.number=Number(ve)}return(0,C.Z)(le,[{key:"negate",value:function(){return new le(-this.toNumber())}},{key:"add",value:function(xe){if(this.isInvalidate())return new le(xe);var Ze=Number(xe);if(Number.isNaN(Ze))return this;var pe=this.number+Ze;if(pe>Number.MAX_SAFE_INTEGER)return new le(Number.MAX_SAFE_INTEGER);if(peNumber.MAX_SAFE_INTEGER)return new le(Number.MAX_SAFE_INTEGER);if(pe0&&arguments[0]!==void 0?arguments[0]:!0;return xe?this.isInvalidate()?"":F(this.number):this.origin}}]),le}();function A(le){return p()?new T(le):new z(le)}function L(le,ve,xe){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(le==="")return"";var pe=w(le),Je=pe.negativeStr,Ae=pe.integerStr,oe=pe.decimalStr,ye="".concat(ve).concat(oe),Be="".concat(Je).concat(Ae);if(xe>=0){var De=Number(oe[xe]);if(De>=5&&!Ze){var Pe=A(le).add("".concat(Je,"0.").concat("0".repeat(xe)).concat(10-De));return L(Pe.toString(),ve,xe,Ze)}return xe===0?Be:"".concat(Be).concat(ve).concat(oe.padEnd(xe,"0").slice(0,xe))}return ye===".0"?Be:"".concat(Be).concat(ye)}var I=A,$=e(19570),B=e(81334),K=e(21319),H=e(58757),ie=e(75556);function ce(le,ve){var xe=(0,H.useRef)(null);function Ze(){try{var Je=le.selectionStart,Ae=le.selectionEnd,oe=le.value,ye=oe.substring(0,Je),Be=oe.substring(Ae);xe.current={start:Je,end:Ae,value:oe,beforeTxt:ye,afterTxt:Be}}catch(De){}}function pe(){if(le&&xe.current&&ve)try{var Je=le.value,Ae=xe.current,oe=Ae.beforeTxt,ye=Ae.afterTxt,Be=Ae.start,De=Je.length;if(Je.endsWith(ye))De=Je.length-xe.current.afterTxt.length;else if(Je.startsWith(oe))De=oe.length;else{var Pe=oe[Be-1],we=Je.indexOf(Pe,Be-1);we!==-1&&(De=we+1)}le.setSelectionRange(De,De)}catch(Le){(0,ie.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Le.message))}}return[Ze,pe]}var te=e(21618),W=function(){var ve=(0,H.useState)(!1),xe=(0,v.Z)(ve,2),Ze=xe[0],pe=xe[1];return(0,B.Z)(function(){pe((0,te.Z)())},[]),Ze},G=W,O=e(61834),k=200,Y=600;function P(le){var ve=le.prefixCls,xe=le.upNode,Ze=le.downNode,pe=le.upDisabled,Je=le.downDisabled,Ae=le.onStep,oe=H.useRef(),ye=H.useRef([]),Be=H.useRef();Be.current=Ae;var De=function(){clearTimeout(oe.current)},Pe=function(At,Ot){At.preventDefault(),De(),Be.current(Ot);function jt(){Be.current(Ot),oe.current=setTimeout(jt,k)}oe.current=setTimeout(jt,Y)};H.useEffect(function(){return function(){De(),ye.current.forEach(function(ft){return O.Z.cancel(ft)})}},[]);var we=G();if(we)return null;var Le="".concat(ve,"-handler"),Ye=s()(Le,"".concat(Le,"-up"),(0,c.Z)({},"".concat(Le,"-up-disabled"),pe)),Ue=s()(Le,"".concat(Le,"-down"),(0,c.Z)({},"".concat(Le,"-down-disabled"),Je)),dt=function(){return ye.current.push((0,O.Z)(De))},bt={unselectable:"on",role:"button",onMouseUp:dt,onMouseLeave:dt};return H.createElement("div",{className:"".concat(Le,"-wrap")},H.createElement("span",(0,n.Z)({},bt,{onMouseDown:function(At){Pe(At,!0)},"aria-label":"Increase Value","aria-disabled":pe,className:Ye}),xe||H.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-up-inner")})),H.createElement("span",(0,n.Z)({},bt,{onMouseDown:function(At){Pe(At,!1)},"aria-label":"Decrease Value","aria-disabled":Je,className:Ue}),Ze||H.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-down-inner")})))}function Q(le){var ve=typeof le=="number"?F(le):w(le).fullStr,xe=ve.includes(".");return xe?w(ve.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:le+"0"}var fe=e(33615),Ce=function(){var le=(0,H.useRef)(0),ve=function(){O.Z.cancel(le.current)};return(0,H.useEffect)(function(){return ve},[]),function(xe){ve(),le.current=(0,O.Z)(function(){xe()})}},ge=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Re=function(ve,xe){return ve||xe.isEmpty()?xe.toString():xe.toNumber()},Qe=function(ve){var xe=I(ve);return xe.isInvalidate()?null:xe},Ve=H.forwardRef(function(le,ve){var xe,Ze=le.prefixCls,pe=Ze===void 0?"rc-input-number":Ze,Je=le.className,Ae=le.style,oe=le.min,ye=le.max,Be=le.step,De=Be===void 0?1:Be,Pe=le.defaultValue,we=le.value,Le=le.disabled,Ye=le.readOnly,Ue=le.upHandler,dt=le.downHandler,bt=le.keyboard,ft=le.controls,At=ft===void 0?!0:ft,Ot=le.classNames,jt=le.stringMode,Gt=le.parser,Xt=le.formatter,zn=le.precision,fn=le.decimalSeparator,Bn=le.onChange,On=le.onInput,Mn=le.onPressEnter,_e=le.onStep,at=(0,h.Z)(le,ge),Vt="".concat(pe,"-input"),rn=H.useRef(null),st=H.useState(!1),ut=(0,v.Z)(st,2),$t=ut[0],nt=ut[1],gt=H.useRef(!1),Dt=H.useRef(!1),xn=H.useRef(!1),tn=H.useState(function(){return I(we!=null?we:Pe)}),Hn=(0,v.Z)(tn,2),Nn=Hn[0],pr=Hn[1];function gr(jn){we===void 0&&pr(jn)}var Or=H.useCallback(function(jn,vn){if(!vn)return zn>=0?zn:Math.max(Z(jn),Z(De))},[zn,De]),ar=H.useCallback(function(jn){var vn=String(jn);if(Gt)return Gt(vn);var Ln=vn;return fn&&(Ln=Ln.replace(fn,".")),Ln.replace(/[^\w.-]+/g,"")},[Gt,fn]),mr=H.useRef(""),ea=H.useCallback(function(jn,vn){if(Xt)return Xt(jn,{userTyping:vn,input:String(mr.current)});var Ln=typeof jn=="number"?F(jn):jn;if(!vn){var Zn=Or(Ln,vn);if(R(Ln)&&(fn||Zn>=0)){var yr=fn||".";Ln=L(Ln,yr,Zn)}}return Ln},[Xt,Or,fn]),Lr=H.useState(function(){var jn=Pe!=null?Pe:we;return Nn.isInvalidate()&&["string","number"].includes((0,l.Z)(jn))?Number.isNaN(jn)?"":jn:ea(Nn.toString(),!1)}),Kn=(0,v.Z)(Lr,2),zt=Kn[0],Ft=Kn[1];mr.current=zt;function on(jn,vn){Ft(ea(jn.isInvalidate()?jn.toString(!1):jn.toString(!vn),vn))}var nn=H.useMemo(function(){return Qe(ye)},[ye,zn]),kt=H.useMemo(function(){return Qe(oe)},[oe,zn]),hn=H.useMemo(function(){return!nn||!Nn||Nn.isInvalidate()?!1:nn.lessEquals(Nn)},[nn,Nn]),dn=H.useMemo(function(){return!kt||!Nn||Nn.isInvalidate()?!1:Nn.lessEquals(kt)},[kt,Nn]),$n=ce(rn.current,$t),qn=(0,v.Z)($n,2),ct=qn[0],lt=qn[1],xt=function(vn){return nn&&!vn.lessEquals(nn)?nn:kt&&!kt.lessEquals(vn)?kt:null},St=function(vn){return!xt(vn)},Lt=function(vn,Ln){var Zn=vn,yr=St(Zn)||Zn.isEmpty();if(!Zn.isEmpty()&&!Ln&&(Zn=xt(Zn)||Zn,yr=!0),!Ye&&!Le&&yr){var Fr=Zn.toString(),Kr=Or(Fr,Ln);return Kr>=0&&(Zn=I(L(Fr,".",Kr)),St(Zn)||(Zn=I(L(Fr,".",Kr,!0)))),Zn.equals(Nn)||(gr(Zn),Bn==null||Bn(Zn.isEmpty()?null:Re(jt,Zn)),we===void 0&&on(Zn,Ln)),Zn}return Nn},_t=Ce(),Wt=function jn(vn){if(ct(),mr.current=vn,Ft(vn),!Dt.current){var Ln=ar(vn),Zn=I(Ln);Zn.isNaN()||Lt(Zn,!0)}On==null||On(vn),_t(function(){var yr=vn;Gt||(yr=vn.replace(/。/g,".")),yr!==vn&&jn(yr)})},yn=function(){Dt.current=!0},kn=function(){Dt.current=!1,Wt(rn.current.value)},hr=function(vn){Wt(vn.target.value)},cr=function(vn){var Ln;if(!(vn&&hn||!vn&&dn)){gt.current=!1;var Zn=I(xn.current?Q(De):De);vn||(Zn=Zn.negate());var yr=(Nn||I(0)).add(Zn.toString()),Fr=Lt(yr,!1);_e==null||_e(Re(jt,Fr),{offset:xn.current?Q(De):De,type:vn?"up":"down"}),(Ln=rn.current)===null||Ln===void 0||Ln.focus()}},Dn=function(vn){var Ln=I(ar(zt)),Zn=Ln;Ln.isNaN()?Zn=Lt(Nn,vn):Zn=Lt(Ln,vn),we!==void 0?on(Nn,!1):Zn.isNaN()||on(Zn,!1)},Rr=function(){gt.current=!0},or=function(vn){var Ln=vn.key,Zn=vn.shiftKey;gt.current=!0,xn.current=Zn,Ln==="Enter"&&(Dt.current||(gt.current=!1),Dn(!1),Mn==null||Mn(vn)),bt!==!1&&!Dt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Ln)&&(cr(Ln==="Up"||Ln==="ArrowUp"),vn.preventDefault())},Gr=function(){gt.current=!1,xn.current=!1},Ir=function(){Dn(!1),nt(!1),gt.current=!1};return(0,B.o)(function(){Nn.isInvalidate()||on(Nn,!1)},[zn]),(0,B.o)(function(){var jn=I(we);pr(jn);var vn=I(ar(zt));(!jn.equals(vn)||!gt.current||Xt)&&on(jn,gt.current)},[we]),(0,B.o)(function(){Xt&<()},[zt]),H.createElement("div",{className:s()(pe,Ot==null?void 0:Ot.input,Je,(xe={},(0,c.Z)(xe,"".concat(pe,"-focused"),$t),(0,c.Z)(xe,"".concat(pe,"-disabled"),Le),(0,c.Z)(xe,"".concat(pe,"-readonly"),Ye),(0,c.Z)(xe,"".concat(pe,"-not-a-number"),Nn.isNaN()),(0,c.Z)(xe,"".concat(pe,"-out-of-range"),!Nn.isInvalidate()&&!St(Nn)),xe)),style:Ae,onFocus:function(){nt(!0)},onBlur:Ir,onKeyDown:or,onKeyUp:Gr,onCompositionStart:yn,onCompositionEnd:kn,onBeforeInput:Rr},At&&H.createElement(P,{prefixCls:pe,upNode:Ue,downNode:dt,upDisabled:hn,downDisabled:dn,onStep:cr}),H.createElement("div",{className:"".concat(Vt,"-wrap")},H.createElement("input",(0,n.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":oe,"aria-valuemax":ye,"aria-valuenow":Nn.isInvalidate()?null:Nn.toString(),step:De},at,{ref:(0,K.sQ)(rn,ve),className:Vt,value:zt,onChange:hr,disabled:Le,readOnly:Ye}))))}),qe=H.forwardRef(function(le,ve){var xe=le.disabled,Ze=le.style,pe=le.prefixCls,Je=le.value,Ae=le.prefix,oe=le.suffix,ye=le.addonBefore,Be=le.addonAfter,De=le.classes,Pe=le.className,we=le.classNames,Le=(0,h.Z)(le,Me),Ye=H.useRef(null),Ue=function(bt){Ye.current&&(0,fe.nH)(Ye.current,bt)};return H.createElement($.Q,{inputElement:H.createElement(Ve,(0,n.Z)({prefixCls:pe,disabled:xe,classNames:we,ref:(0,K.sQ)(Ye,ve)},Le)),className:Pe,triggerFocus:Ue,prefixCls:pe,value:Je,disabled:xe,style:Ze,prefix:Ae,suffix:oe,addonAfter:Be,addonBefore:ye,classes:De,classNames:we,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});qe.displayName="InputNumber";var Mt=qe,wt=Mt,mt=e(41496),Nt=e(61836),ke=e(42505),He=e(92428),et=e(58785),Fe=e(81496),ue=e(43528),V=e(46902),U=e(78330),N=e(64493),D=e(52628);const ee=(le,ve)=>{let{componentCls:xe,borderRadiusSM:Ze,borderRadiusLG:pe}=le;const Je=ve==="lg"?pe:Ze;return{[`&-${ve}`]:{[`${xe}-handler-wrap`]:{borderStartEndRadius:Je,borderEndEndRadius:Je},[`${xe}-handler-up`]:{borderStartEndRadius:Je},[`${xe}-handler-down`]:{borderEndEndRadius:Je}}}},se=le=>{const{componentCls:ve,lineWidth:xe,lineType:Ze,colorBorder:pe,borderRadius:Je,fontSizeLG:Ae,controlHeightLG:oe,controlHeightSM:ye,colorError:Be,inputPaddingHorizontalSM:De,colorTextDescription:Pe,motionDurationMid:we,colorPrimary:Le,inputPaddingHorizontal:Ye,inputPaddingVertical:Ue,colorBgContainer:dt,colorTextDisabled:bt,borderRadiusSM:ft,borderRadiusLG:At,controlWidth:Ot,handleVisible:jt}=le;return[{[ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),(0,V.ik)(le)),(0,V.bi)(le,ve)),{display:"inline-block",width:Ot,margin:0,padding:0,border:`${xe}px ${Ze} ${pe}`,borderRadius:Je,"&-rtl":{direction:"rtl",[`${ve}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ae,borderRadius:At,[`input${ve}-input`]:{height:oe-2*xe}},"&-sm":{padding:0,borderRadius:ft,[`input${ve}-input`]:{height:ye-2*xe,padding:`0 ${De}px`}},"&:hover":Object.assign({},(0,V.pU)(le)),"&-focused":Object.assign({},(0,V.M1)(le)),"&-out-of-range":{[`${ve}-input-wrap`]:{input:{color:Be}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),(0,V.s7)(le)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ve}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ve}-group-addon`]:{borderRadius:At,fontSize:le.fontSizeLG}},"&-sm":{[`${ve}-group-addon`]:{borderRadius:ft}},[`${ve}-wrapper-disabled > ${ve}-group-addon`]:Object.assign({},(0,V.Xy)(le))}}),[`&-disabled ${ve}-input`]:{cursor:"not-allowed"},[ve]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),{width:"100%",padding:`${Ue}px ${Ye}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Je,outline:0,transition:`all ${we} linear`,appearance:"textfield",fontSize:"inherit"}),(0,V.nz)(le.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ve]:Object.assign(Object.assign(Object.assign({[`&:hover ${ve}-handler-wrap, &-focused ${ve}-handler-wrap`]:{opacity:1},[`${ve}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:le.handleWidth,height:"100%",background:dt,borderStartStartRadius:0,borderStartEndRadius:Je,borderEndEndRadius:Je,borderEndStartRadius:0,opacity:jt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${we} linear ${we}`,[`${ve}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` + &${R}-slide-up-leave${R}-slide-up-leave-active${S}-placement-topRight`]:{animationName:t.ly}})},(0,n.ZP)(p,{colorBg:H,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${S} ${w}`]:{position:"relative",margin:0},[`${w}-submenu-popup`]:{position:"absolute",zIndex:y,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${S}, ${S}-menu-submenu`]:{[w]:Object.assign(Object.assign({padding:I,listStyleType:"none",backgroundColor:H,backgroundClip:"padding-box",borderRadius:p.borderRadiusLG,outline:"none",boxShadow:p.boxShadowSecondary},(0,i.Qy)(p)),{[`${w}-item-group-title`]:{padding:`${A}px ${K}px`,color:p.colorTextDescription,transition:`all ${z}`},[`${w}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${w}-item-icon`]:{minWidth:L,marginInlineEnd:p.marginXS,fontSize:p.fontSizeSM},[`${w}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${z}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${w}-item, ${w}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${A}px ${K}px`,color:p.colorText,fontWeight:"normal",fontSize:L,lineHeight:p.lineHeight,cursor:"pointer",transition:`all ${z}`,borderRadius:p.borderRadiusSM,["&:hover, &-active"]:{backgroundColor:p.controlItemBgHover}},(0,i.Qy)(p)),{"&-selected":{color:p.colorPrimary,backgroundColor:p.controlItemBgActive,"&:hover, &-active":{backgroundColor:p.controlItemBgActiveHover}},"&-disabled":{color:$,cursor:"not-allowed","&:hover":{color:$,backgroundColor:H,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${p.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:p.colorSplit},[`${S}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:p.paddingXS,[`${S}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:p.colorTextDescription,fontSize:B,fontStyle:"normal"}}}),[`${w}-item-group-list`]:{margin:`0 ${p.marginXS}px`,padding:0,listStyle:"none"},[`${w}-submenu-title`]:{paddingInlineEnd:K+p.fontSizeSM},[`${w}-submenu-vertical`]:{position:"relative"},[`${w}-submenu${w}-submenu-disabled ${S}-menu-submenu-title`]:{[`&, ${S}-menu-submenu-arrow-icon`]:{color:$,backgroundColor:H,cursor:"not-allowed"}},[`${w}-submenu-selected ${S}-menu-submenu-title`]:{color:p.colorPrimary}})}},[(0,t.oN)(p,"slide-up"),(0,t.oN)(p,"slide-down"),(0,o.Fm)(p,"move-up"),(0,o.Fm)(p,"move-down"),(0,s._y)(p,"zoom-big")]]};var C=(0,c.Z)("Dropdown",(p,S)=>{let{rootPrefixCls:w}=S;const{marginXXS:y,sizePopupArrow:Z,controlHeight:F,fontSize:R,lineHeight:T,paddingXXS:z,componentCls:A,borderRadiusLG:L}=p,I=(F-R*T)/2,{dropdownArrowOffset:$}=(0,n.fS)({contentRadius:L}),B=(0,l.TS)(p,{menuCls:`${A}-menu`,rootPrefixCls:w,dropdownArrowDistance:Z/2+y,dropdownArrowOffset:$,dropdownPaddingVertical:I,dropdownEdgeChildPadding:z});return[m(B),h(B)]},p=>({zIndexPopup:p.zIndexPopupBase+50}))},17444:function(M,b,e){"use strict";e.d(b,{Z:function(){return z}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(29487),c=e(66671),l=e(51806),h=()=>{const[,A]=(0,l.Z)(),I=new c.C(A.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:I,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},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"}))))},C=()=>{const[,A]=(0,l.Z)(),{colorFill:L,colorFillTertiary:I,colorFillQuaternary:$,colorBgContainer:B}=A,{borderColor:K,shadowColor:H,contentColor:ie}=(0,o.useMemo)(()=>({borderColor:new c.C(L).onBackground(B).toHexShortString(),shadowColor:new c.C(I).onBackground(B).toHexShortString(),contentColor:new c.C($).onBackground(B).toHexShortString()}),[L,I,$,B]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:H,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:K},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:ie}))))},p=e(52628),S=e(22151);const w=A=>{const{componentCls:L,margin:I,marginXS:$,marginXL:B,fontSize:K,lineHeight:H}=A;return{[L]:{marginInline:$,fontSize:K,lineHeight:H,textAlign:"center",[`${L}-image`]:{height:A.emptyImgHeight,marginBottom:$,opacity:A.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${L}-description`]:{color:A.colorText},[`${L}-footer`]:{marginTop:I},"&-normal":{marginBlock:B,color:A.colorTextDisabled,[`${L}-description`]:{color:A.colorTextDisabled},[`${L}-image`]:{height:A.emptyImgHeightMD}},"&-small":{marginBlock:$,color:A.colorTextDisabled,[`${L}-image`]:{height:A.emptyImgHeightSM}}}}};var y=(0,p.Z)("Empty",A=>{const{componentCls:L,controlHeightLG:I}=A,$=(0,S.TS)(A,{emptyImgCls:`${L}-img`,emptyImgHeight:I*2.5,emptyImgHeightMD:I,emptyImgHeightSM:I*.875});return[w($)]}),Z=function(A,L){var I={};for(var $ in A)Object.prototype.hasOwnProperty.call(A,$)&&L.indexOf($)<0&&(I[$]=A[$]);if(A!=null&&typeof Object.getOwnPropertySymbols=="function")for(var B=0,$=Object.getOwnPropertySymbols(A);B<$.length;B++)L.indexOf($[B])<0&&Object.prototype.propertyIsEnumerable.call(A,$[B])&&(I[$[B]]=A[$[B]]);return I};const F=o.createElement(h,null),R=o.createElement(C,null),T=A=>{var{className:L,rootClassName:I,prefixCls:$,image:B=F,description:K,children:H,imageStyle:ie,style:ce}=A,te=Z(A,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:W,direction:G,empty:O}=o.useContext(s.E_),k=W("empty",$),[Y,P]=y(k),[Q]=(0,n.Z)("Empty"),fe=typeof K!="undefined"?K:Q==null?void 0:Q.description,Ce=typeof fe=="string"?fe:"empty";let ge=null;return typeof B=="string"?ge=o.createElement("img",{alt:Ce,src:B}):ge=B,Y(o.createElement("div",Object.assign({className:t()(P,k,O==null?void 0:O.className,{[`${k}-normal`]:B===R,[`${k}-rtl`]:G==="rtl"},L,I),style:Object.assign(Object.assign({},O==null?void 0:O.style),ce)},te),o.createElement("div",{className:`${k}-image`,style:ie},ge),fe&&o.createElement("div",{className:`${k}-description`},fe),H&&o.createElement("div",{className:`${k}-footer`},H)))};T.PRESENTED_IMAGE_DEFAULT=F,T.PRESENTED_IMAGE_SIMPLE=R;var z=T},81496:function(M,b,e){"use strict";e.d(b,{RV:function(){return c},Rk:function(){return l},Ux:function(){return h},aM:function(){return v},q3:function(){return s},qI:function(){return n}});var i=e(94866),t=e(98186),o=e(58757);const s=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),n=o.createContext(null),c=m=>{const C=(0,t.Z)(m,["prefixCls"]);return o.createElement(i.RV,Object.assign({},C))},l=o.createContext({prefixCls:""}),v=o.createContext({}),h=m=>{let{children:C,status:p,override:S}=m;const w=(0,o.useContext)(v),y=(0,o.useMemo)(()=>{const Z=Object.assign({},w);return S&&delete Z.isFormItemInput,p&&(delete Z.status,delete Z.hasFeedback,delete Z.feedbackIcon),Z},[p,S,w]);return o.createElement(v.Provider,{value:y},C)}},48736:function(M,b,e){"use strict";var i=e(58757);b.Z=(0,i.createContext)(void 0)},35429:function(M,b,e){"use strict";var i=e(58757);const t=(0,i.createContext)({});b.Z=t},91334:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(35429),c=e(58378),l=function(C,p){var S={};for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&p.indexOf(w)<0&&(S[w]=C[w]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,w=Object.getOwnPropertySymbols(C);y{const{getPrefixCls:S,direction:w}=o.useContext(s.E_),{gutter:y,wrap:Z,supportFlexGap:F}=o.useContext(n.Z),{prefixCls:R,span:T,order:z,offset:A,push:L,pull:I,className:$,children:B,flex:K,style:H}=C,ie=l(C,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),ce=S("col",R),[te,W]=(0,c.c)(ce);let G={};h.forEach(Y=>{let P={};const Q=C[Y];typeof Q=="number"?P.span=Q:typeof Q=="object"&&(P=Q||{}),delete ie[Y],G=Object.assign(Object.assign({},G),{[`${ce}-${Y}-${P.span}`]:P.span!==void 0,[`${ce}-${Y}-order-${P.order}`]:P.order||P.order===0,[`${ce}-${Y}-offset-${P.offset}`]:P.offset||P.offset===0,[`${ce}-${Y}-push-${P.push}`]:P.push||P.push===0,[`${ce}-${Y}-pull-${P.pull}`]:P.pull||P.pull===0,[`${ce}-${Y}-flex-${P.flex}`]:P.flex||P.flex==="auto",[`${ce}-rtl`]:w==="rtl"})});const O=t()(ce,{[`${ce}-${T}`]:T!==void 0,[`${ce}-order-${z}`]:z,[`${ce}-offset-${A}`]:A,[`${ce}-push-${L}`]:L,[`${ce}-pull-${I}`]:I},$,G,W),k={};if(y&&y[0]>0){const Y=y[0]/2;k.paddingLeft=Y,k.paddingRight=Y}if(y&&y[1]>0&&!F){const Y=y[1]/2;k.paddingTop=Y,k.paddingBottom=Y}return K&&(k.flex=v(K),Z===!1&&!k.minWidth&&(k.minWidth=0)),te(o.createElement("div",Object.assign({},ie,{style:Object.assign(Object.assign({},k),H),className:O,ref:p}),B))});b.Z=m},60059:function(M,b,e){"use strict";var i=e(58757),t=e(81334),o=e(4459),s=e(87078);function n(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const l=(0,i.useRef)({}),v=(0,o.Z)(),h=(0,s.Z)();return(0,t.Z)(()=>{const m=h.subscribe(C=>{l.current=C,c&&v()});return()=>h.unsubscribe(m)},[]),l.current}b.Z=n},67665:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(69387),c=e(87078),l=e(35429),v=e(58378),h=function(w,y){var Z={};for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&y.indexOf(F)<0&&(Z[F]=w[F]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(w);R{if(typeof w=="string"&&F(w),typeof w=="object")for(let T=0;T{R()},[JSON.stringify(w),y]),Z}const S=o.forwardRef((w,y)=>{const{prefixCls:Z,justify:F,align:R,className:T,style:z,children:A,gutter:L=0,wrap:I}=w,$=h(w,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:B,direction:K}=o.useContext(s.E_),[H,ie]=o.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),[ce,te]=o.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),W=p(R,ce),G=p(F,ce),O=(0,n.Z)(),k=o.useRef(L),Y=(0,c.Z)();o.useEffect(()=>{const gt=Y.subscribe(Lt=>{te(Lt);const ke=k.current||0;(!Array.isArray(ke)&&typeof ke=="object"||Array.isArray(ke)&&(typeof ke[0]=="object"||typeof ke[1]=="object"))&&ie(Lt)});return()=>Y.unsubscribe(gt)},[]);const P=()=>{const gt=[void 0,void 0];return(Array.isArray(L)?L:[L,void 0]).forEach((ke,He)=>{if(typeof ke=="object")for(let et=0;et0?ge[0]/-2:void 0,Ve=ge[1]!=null&&ge[1]>0?ge[1]/-2:void 0;Qe&&(Ne.marginLeft=Qe,Ne.marginRight=Qe),O?[,Ne.rowGap]=ge:Ve&&(Ne.marginTop=Ve,Ne.marginBottom=Ve);const[qe,Mt]=ge,wt=o.useMemo(()=>({gutter:[qe,Mt],wrap:I,supportFlexGap:O}),[qe,Mt,I,O]);return fe(o.createElement(l.Z.Provider,{value:wt},o.createElement("div",Object.assign({},$,{className:Me,style:Object.assign(Object.assign({},Ne),z),ref:y}),A)))});b.Z=S},58378:function(M,b,e){"use strict";e.d(b,{V:function(){return v},c:function(){return h}});var i=e(52628),t=e(22151);const o=m=>{const{componentCls:C}=m;return{[C]:{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=m=>{const{componentCls:C}=m;return{[C]:{position:"relative",maxWidth:"100%",minHeight:1}}},n=(m,C)=>{const{componentCls:p,gridColumns:S}=m,w={};for(let y=S;y>=0;y--)y===0?(w[`${p}${C}-${y}`]={display:"none"},w[`${p}-push-${y}`]={insetInlineStart:"auto"},w[`${p}-pull-${y}`]={insetInlineEnd:"auto"},w[`${p}${C}-push-${y}`]={insetInlineStart:"auto"},w[`${p}${C}-pull-${y}`]={insetInlineEnd:"auto"},w[`${p}${C}-offset-${y}`]={marginInlineStart:0},w[`${p}${C}-order-${y}`]={order:0}):(w[`${p}${C}-${y}`]={display:"block",flex:`0 0 ${y/S*100}%`,maxWidth:`${y/S*100}%`},w[`${p}${C}-push-${y}`]={insetInlineStart:`${y/S*100}%`},w[`${p}${C}-pull-${y}`]={insetInlineEnd:`${y/S*100}%`},w[`${p}${C}-offset-${y}`]={marginInlineStart:`${y/S*100}%`},w[`${p}${C}-order-${y}`]={order:y});return w},c=(m,C)=>n(m,C),l=(m,C,p)=>({[`@media (min-width: ${C}px)`]:Object.assign({},c(m,p))}),v=(0,i.Z)("Grid",m=>[o(m)]),h=(0,i.Z)("Grid",m=>{const C=(0,t.TS)(m,{gridColumns:24}),p={"-sm":C.screenSMMin,"-md":C.screenMDMin,"-lg":C.screenLGMin,"-xl":C.screenXLMin,"-xxl":C.screenXXLMin};return[s(C),c(C,""),c(C,"-xs"),Object.keys(p).map(S=>l(C,p[S],S)).reduce((S,w)=>Object.assign(Object.assign({},S),w),{})]})},32423:function(M,b,e){"use strict";e.d(b,{Z:function(){return de}});var i=e(10130),t=e(23926),o=e(87608),s=e.n(o),n=e(60698),c=e(37734),l=e(38790),v=e(28314),h=e(47075),m=e(60412),C=e(14346);function p(){return typeof BigInt=="function"}function S(le){return!le&&le!==0&&!Number.isNaN(le)||!String(le).trim()}function w(le){var ve=le.trim(),xe=ve.startsWith("-");xe&&(ve=ve.slice(1)),ve=ve.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),ve.startsWith(".")&&(ve="0".concat(ve));var Ze=ve||"0",pe=Ze.split("."),Je=pe[0]||"0",Ae=pe[1]||"0";Je==="0"&&Ae==="0"&&(xe=!1);var oe=xe?"-":"";return{negative:xe,negativeStr:oe,trimStr:Ze,integerStr:Je,decimalStr:Ae,fullStr:"".concat(oe).concat(Ze)}}function y(le){var ve=String(le);return!Number.isNaN(Number(ve))&&ve.includes("e")}function Z(le){var ve=String(le);if(y(le)){var xe=Number(ve.slice(ve.indexOf("e-")+2)),Ze=ve.match(/\.(\d+)/);return Ze!=null&&Ze[1]&&(xe+=Ze[1].length),xe}return ve.includes(".")&&R(ve)?ve.length-ve.indexOf(".")-1:0}function F(le){var ve=String(le);if(y(le)){if(le>Number.MAX_SAFE_INTEGER)return String(p()?BigInt(le).toString():Number.MAX_SAFE_INTEGER);if(le0&&arguments[0]!==void 0?arguments[0]:!0;return xe?this.isInvalidate()?"":w("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),le}(),z=function(){function le(ve){if((0,m.Z)(this,le),(0,c.Z)(this,"origin",""),(0,c.Z)(this,"number",void 0),(0,c.Z)(this,"empty",void 0),S(ve)){this.empty=!0;return}this.origin=String(ve),this.number=Number(ve)}return(0,C.Z)(le,[{key:"negate",value:function(){return new le(-this.toNumber())}},{key:"add",value:function(xe){if(this.isInvalidate())return new le(xe);var Ze=Number(xe);if(Number.isNaN(Ze))return this;var pe=this.number+Ze;if(pe>Number.MAX_SAFE_INTEGER)return new le(Number.MAX_SAFE_INTEGER);if(peNumber.MAX_SAFE_INTEGER)return new le(Number.MAX_SAFE_INTEGER);if(pe0&&arguments[0]!==void 0?arguments[0]:!0;return xe?this.isInvalidate()?"":F(this.number):this.origin}}]),le}();function A(le){return p()?new T(le):new z(le)}function L(le,ve,xe){var Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(le==="")return"";var pe=w(le),Je=pe.negativeStr,Ae=pe.integerStr,oe=pe.decimalStr,ye="".concat(ve).concat(oe),Be="".concat(Je).concat(Ae);if(xe>=0){var De=Number(oe[xe]);if(De>=5&&!Ze){var Pe=A(le).add("".concat(Je,"0.").concat("0".repeat(xe)).concat(10-De));return L(Pe.toString(),ve,xe,Ze)}return xe===0?Be:"".concat(Be).concat(ve).concat(oe.padEnd(xe,"0").slice(0,xe))}return ye===".0"?Be:"".concat(Be).concat(ye)}var I=A,$=e(19570),B=e(81334),K=e(21319),H=e(58757),ie=e(75556);function ce(le,ve){var xe=(0,H.useRef)(null);function Ze(){try{var Je=le.selectionStart,Ae=le.selectionEnd,oe=le.value,ye=oe.substring(0,Je),Be=oe.substring(Ae);xe.current={start:Je,end:Ae,value:oe,beforeTxt:ye,afterTxt:Be}}catch(De){}}function pe(){if(le&&xe.current&&ve)try{var Je=le.value,Ae=xe.current,oe=Ae.beforeTxt,ye=Ae.afterTxt,Be=Ae.start,De=Je.length;if(Je.endsWith(ye))De=Je.length-xe.current.afterTxt.length;else if(Je.startsWith(oe))De=oe.length;else{var Pe=oe[Be-1],we=Je.indexOf(Pe,Be-1);we!==-1&&(De=we+1)}le.setSelectionRange(De,De)}catch(Le){(0,ie.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Le.message))}}return[Ze,pe]}var te=e(21618),W=function(){var ve=(0,H.useState)(!1),xe=(0,v.Z)(ve,2),Ze=xe[0],pe=xe[1];return(0,B.Z)(function(){pe((0,te.Z)())},[]),Ze},G=W,O=e(61834),k=200,Y=600;function P(le){var ve=le.prefixCls,xe=le.upNode,Ze=le.downNode,pe=le.upDisabled,Je=le.downDisabled,Ae=le.onStep,oe=H.useRef(),ye=H.useRef([]),Be=H.useRef();Be.current=Ae;var De=function(){clearTimeout(oe.current)},Pe=function(At,Ot){At.preventDefault(),De(),Be.current(Ot);function jt(){Be.current(Ot),oe.current=setTimeout(jt,k)}oe.current=setTimeout(jt,Y)};H.useEffect(function(){return function(){De(),ye.current.forEach(function(ft){return O.Z.cancel(ft)})}},[]);var we=G();if(we)return null;var Le="".concat(ve,"-handler"),Ye=s()(Le,"".concat(Le,"-up"),(0,c.Z)({},"".concat(Le,"-up-disabled"),pe)),Ue=s()(Le,"".concat(Le,"-down"),(0,c.Z)({},"".concat(Le,"-down-disabled"),Je)),dt=function(){return ye.current.push((0,O.Z)(De))},bt={unselectable:"on",role:"button",onMouseUp:dt,onMouseLeave:dt};return H.createElement("div",{className:"".concat(Le,"-wrap")},H.createElement("span",(0,n.Z)({},bt,{onMouseDown:function(At){Pe(At,!0)},"aria-label":"Increase Value","aria-disabled":pe,className:Ye}),xe||H.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-up-inner")})),H.createElement("span",(0,n.Z)({},bt,{onMouseDown:function(At){Pe(At,!1)},"aria-label":"Decrease Value","aria-disabled":Je,className:Ue}),Ze||H.createElement("span",{unselectable:"on",className:"".concat(ve,"-handler-down-inner")})))}function Q(le){var ve=typeof le=="number"?F(le):w(le).fullStr,xe=ve.includes(".");return xe?w(ve.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:le+"0"}var fe=e(33615),Ce=function(){var le=(0,H.useRef)(0),ve=function(){O.Z.cancel(le.current)};return(0,H.useEffect)(function(){return ve},[]),function(xe){ve(),le.current=(0,O.Z)(function(){xe()})}},ge=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],Me=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Ne=function(ve,xe){return ve||xe.isEmpty()?xe.toString():xe.toNumber()},Qe=function(ve){var xe=I(ve);return xe.isInvalidate()?null:xe},Ve=H.forwardRef(function(le,ve){var xe,Ze=le.prefixCls,pe=Ze===void 0?"rc-input-number":Ze,Je=le.className,Ae=le.style,oe=le.min,ye=le.max,Be=le.step,De=Be===void 0?1:Be,Pe=le.defaultValue,we=le.value,Le=le.disabled,Ye=le.readOnly,Ue=le.upHandler,dt=le.downHandler,bt=le.keyboard,ft=le.controls,At=ft===void 0?!0:ft,Ot=le.classNames,jt=le.stringMode,Gt=le.parser,Xt=le.formatter,Bn=le.precision,fn=le.decimalSeparator,$n=le.onChange,On=le.onInput,Mn=le.onPressEnter,_e=le.onStep,at=(0,h.Z)(le,ge),Vt="".concat(pe,"-input"),an=H.useRef(null),st=H.useState(!1),ut=(0,v.Z)(st,2),$t=ut[0],nt=ut[1],mt=H.useRef(!1),Dt=H.useRef(!1),Cn=H.useRef(!1),en=H.useState(function(){return I(we!=null?we:Pe)}),Hn=(0,v.Z)(en,2),Rn=Hn[0],pr=Hn[1];function gr(Pn){we===void 0&&pr(Pn)}var Or=H.useCallback(function(Pn,vn){if(!vn)return Bn>=0?Bn:Math.max(Z(Pn),Z(De))},[Bn,De]),ar=H.useCallback(function(Pn){var vn=String(Pn);if(Gt)return Gt(vn);var Nn=vn;return fn&&(Nn=Nn.replace(fn,".")),Nn.replace(/[^\w.-]+/g,"")},[Gt,fn]),mr=H.useRef(""),qr=H.useCallback(function(Pn,vn){if(Xt)return Xt(Pn,{userTyping:vn,input:String(mr.current)});var Nn=typeof Pn=="number"?F(Pn):Pn;if(!vn){var Zn=Or(Nn,vn);if(R(Nn)&&(fn||Zn>=0)){var yr=fn||".";Nn=L(Nn,yr,Zn)}}return Nn},[Xt,Or,fn]),Pr=H.useState(function(){var Pn=Pe!=null?Pe:we;return Rn.isInvalidate()&&["string","number"].includes((0,l.Z)(Pn))?Number.isNaN(Pn)?"":Pn:qr(Rn.toString(),!1)}),Vn=(0,v.Z)(Pr,2),zt=Vn[0],Ft=Vn[1];mr.current=zt;function sn(Pn,vn){Ft(qr(Pn.isInvalidate()?Pn.toString(!1):Pn.toString(!vn),vn))}var tn=H.useMemo(function(){return Qe(ye)},[ye,Bn]),kt=H.useMemo(function(){return Qe(oe)},[oe,Bn]),hn=H.useMemo(function(){return!tn||!Rn||Rn.isInvalidate()?!1:tn.lessEquals(Rn)},[tn,Rn]),dn=H.useMemo(function(){return!kt||!Rn||Rn.isInvalidate()?!1:Rn.lessEquals(kt)},[kt,Rn]),Fn=ce(an.current,$t),tr=(0,v.Z)(Fn,2),ct=tr[0],lt=tr[1],xt=function(vn){return tn&&!vn.lessEquals(tn)?tn:kt&&!kt.lessEquals(vn)?kt:null},St=function(vn){return!xt(vn)},Nt=function(vn,Nn){var Zn=vn,yr=St(Zn)||Zn.isEmpty();if(!Zn.isEmpty()&&!Nn&&(Zn=xt(Zn)||Zn,yr=!0),!Ye&&!Le&&yr){var $r=Zn.toString(),Kr=Or($r,Nn);return Kr>=0&&(Zn=I(L($r,".",Kr)),St(Zn)||(Zn=I(L($r,".",Kr,!0)))),Zn.equals(Rn)||(gr(Zn),$n==null||$n(Zn.isEmpty()?null:Ne(jt,Zn)),we===void 0&&sn(Zn,Nn)),Zn}return Rn},_t=Ce(),Wt=function Pn(vn){if(ct(),mr.current=vn,Ft(vn),!Dt.current){var Nn=ar(vn),Zn=I(Nn);Zn.isNaN()||Nt(Zn,!0)}On==null||On(vn),_t(function(){var yr=vn;Gt||(yr=vn.replace(/。/g,".")),yr!==vn&&Pn(yr)})},yn=function(){Dt.current=!0},kn=function(){Dt.current=!1,Wt(an.current.value)},hr=function(vn){Wt(vn.target.value)},cr=function(vn){var Nn;if(!(vn&&hn||!vn&&dn)){mt.current=!1;var Zn=I(Cn.current?Q(De):De);vn||(Zn=Zn.negate());var yr=(Rn||I(0)).add(Zn.toString()),$r=Nt(yr,!1);_e==null||_e(Ne(jt,$r),{offset:Cn.current?Q(De):De,type:vn?"up":"down"}),(Nn=an.current)===null||Nn===void 0||Nn.focus()}},Dn=function(vn){var Nn=I(ar(zt)),Zn=Nn;Nn.isNaN()?Zn=Nt(Rn,vn):Zn=Nt(Nn,vn),we!==void 0?sn(Rn,!1):Zn.isNaN()||sn(Zn,!1)},Rr=function(){mt.current=!0},or=function(vn){var Nn=vn.key,Zn=vn.shiftKey;mt.current=!0,Cn.current=Zn,Nn==="Enter"&&(Dt.current||(mt.current=!1),Dn(!1),Mn==null||Mn(vn)),bt!==!1&&!Dt.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Nn)&&(cr(Nn==="Up"||Nn==="ArrowUp"),vn.preventDefault())},Gr=function(){mt.current=!1,Cn.current=!1},Ir=function(){Dn(!1),nt(!1),mt.current=!1};return(0,B.o)(function(){Rn.isInvalidate()||sn(Rn,!1)},[Bn]),(0,B.o)(function(){var Pn=I(we);pr(Pn);var vn=I(ar(zt));(!Pn.equals(vn)||!mt.current||Xt)&&sn(Pn,mt.current)},[we]),(0,B.o)(function(){Xt&<()},[zt]),H.createElement("div",{className:s()(pe,Ot==null?void 0:Ot.input,Je,(xe={},(0,c.Z)(xe,"".concat(pe,"-focused"),$t),(0,c.Z)(xe,"".concat(pe,"-disabled"),Le),(0,c.Z)(xe,"".concat(pe,"-readonly"),Ye),(0,c.Z)(xe,"".concat(pe,"-not-a-number"),Rn.isNaN()),(0,c.Z)(xe,"".concat(pe,"-out-of-range"),!Rn.isInvalidate()&&!St(Rn)),xe)),style:Ae,onFocus:function(){nt(!0)},onBlur:Ir,onKeyDown:or,onKeyUp:Gr,onCompositionStart:yn,onCompositionEnd:kn,onBeforeInput:Rr},At&&H.createElement(P,{prefixCls:pe,upNode:Ue,downNode:dt,upDisabled:hn,downDisabled:dn,onStep:cr}),H.createElement("div",{className:"".concat(Vt,"-wrap")},H.createElement("input",(0,n.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":oe,"aria-valuemax":ye,"aria-valuenow":Rn.isInvalidate()?null:Rn.toString(),step:De},at,{ref:(0,K.sQ)(an,ve),className:Vt,value:zt,onChange:hr,disabled:Le,readOnly:Ye}))))}),qe=H.forwardRef(function(le,ve){var xe=le.disabled,Ze=le.style,pe=le.prefixCls,Je=le.value,Ae=le.prefix,oe=le.suffix,ye=le.addonBefore,Be=le.addonAfter,De=le.classes,Pe=le.className,we=le.classNames,Le=(0,h.Z)(le,Me),Ye=H.useRef(null),Ue=function(bt){Ye.current&&(0,fe.nH)(Ye.current,bt)};return H.createElement($.Q,{inputElement:H.createElement(Ve,(0,n.Z)({prefixCls:pe,disabled:xe,classNames:we,ref:(0,K.sQ)(Ye,ve)},Le)),className:Pe,triggerFocus:Ue,prefixCls:pe,value:Je,disabled:xe,style:Ze,prefix:Ae,suffix:oe,addonAfter:Be,addonBefore:ye,classes:De,classNames:we,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});qe.displayName="InputNumber";var Mt=qe,wt=Mt,gt=e(41496),Lt=e(61836),ke=e(42505),He=e(92428),et=e(58785),Fe=e(81496),ue=e(43528),V=e(46902),U=e(78330),N=e(64493),D=e(52628);const ee=(le,ve)=>{let{componentCls:xe,borderRadiusSM:Ze,borderRadiusLG:pe}=le;const Je=ve==="lg"?pe:Ze;return{[`&-${ve}`]:{[`${xe}-handler-wrap`]:{borderStartEndRadius:Je,borderEndEndRadius:Je},[`${xe}-handler-up`]:{borderStartEndRadius:Je},[`${xe}-handler-down`]:{borderEndEndRadius:Je}}}},se=le=>{const{componentCls:ve,lineWidth:xe,lineType:Ze,colorBorder:pe,borderRadius:Je,fontSizeLG:Ae,controlHeightLG:oe,controlHeightSM:ye,colorError:Be,inputPaddingHorizontalSM:De,colorTextDescription:Pe,motionDurationMid:we,colorPrimary:Le,inputPaddingHorizontal:Ye,inputPaddingVertical:Ue,colorBgContainer:dt,colorTextDisabled:bt,borderRadiusSM:ft,borderRadiusLG:At,controlWidth:Ot,handleVisible:jt}=le;return[{[ve]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),(0,V.ik)(le)),(0,V.bi)(le,ve)),{display:"inline-block",width:Ot,margin:0,padding:0,border:`${xe}px ${Ze} ${pe}`,borderRadius:Je,"&-rtl":{direction:"rtl",[`${ve}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Ae,borderRadius:At,[`input${ve}-input`]:{height:oe-2*xe}},"&-sm":{padding:0,borderRadius:ft,[`input${ve}-input`]:{height:ye-2*xe,padding:`0 ${De}px`}},"&:hover":Object.assign({},(0,V.pU)(le)),"&-focused":Object.assign({},(0,V.M1)(le)),"&-out-of-range":{[`${ve}-input-wrap`]:{input:{color:Be}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),(0,V.s7)(le)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${ve}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${ve}-group-addon`]:{borderRadius:At,fontSize:le.fontSizeLG}},"&-sm":{[`${ve}-group-addon`]:{borderRadius:ft}},[`${ve}-wrapper-disabled > ${ve}-group-addon`]:Object.assign({},(0,V.Xy)(le))}}),[`&-disabled ${ve}-input`]:{cursor:"not-allowed"},[ve]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,U.Wf)(le)),{width:"100%",padding:`${Ue}px ${Ye}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Je,outline:0,transition:`all ${we} linear`,appearance:"textfield",fontSize:"inherit"}),(0,V.nz)(le.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[ve]:Object.assign(Object.assign(Object.assign({[`&:hover ${ve}-handler-wrap, &-focused ${ve}-handler-wrap`]:{opacity:1},[`${ve}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:le.handleWidth,height:"100%",background:dt,borderStartStartRadius:0,borderStartEndRadius:Je,borderEndEndRadius:Je,borderEndStartRadius:0,opacity:jt===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${we} linear ${we}`,[`${ve}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${ve}-handler-up-inner, ${ve}-handler-down-inner `]:{marginInlineEnd:0,fontSize:le.handleFontSize}}},[`${ve}-handler`]:{height:"50%",overflow:"hidden",color:Pe,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${xe}px ${Ze} ${pe}`,transition:`all ${we} linear`,"&:active":{background:le.colorFillAlter},"&:hover":{height:"60%",[` @@ -214,7 +214,7 @@ http://j.mp/37Fkd5Q `]:{cursor:"not-allowed"},[` ${ve}-handler-up-disabled:hover &-handler-up-inner, ${ve}-handler-down-disabled:hover &-handler-down-inner - `]:{color:bt}})},{[`${ve}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ve}-handler-down`]:{borderBlockStartWidth:0}}}]},X=le=>{const{componentCls:ve,inputPaddingVertical:xe,inputPaddingHorizontal:Ze,inputAffixPadding:pe,controlWidth:Je,borderRadiusLG:Ae,borderRadiusSM:oe}=le;return{[`${ve}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,V.ik)(le)),(0,V.bi)(le,`${ve}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Je,padding:0,paddingInlineStart:Ze,"&-lg":{borderRadius:Ae},"&-sm":{borderRadius:oe},[`&:not(${ve}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,V.pU)(le)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ve}-disabled`]:{background:"transparent"},[`> div${ve}`]:{width:"100%",border:"none",outline:"none",[`&${ve}-focused`]:{boxShadow:"none !important"}},[`input${ve}-input`]:{padding:`${xe}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ve}-handler-wrap`]:{zIndex:2},[ve]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:pe},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ze,marginInlineStart:pe}}})}};var re=(0,D.Z)("InputNumber",le=>{const ve=(0,V.e5)(le);return[se(ve),X(ve),(0,N.c)(ve)]},le=>({controlWidth:90,handleWidth:le.controlHeightSM-le.lineWidth*2,handleFontSize:le.fontSize/2,handleVisible:"auto"})),Ie=function(le,ve){var xe={};for(var Ze in le)Object.prototype.hasOwnProperty.call(le,Ze)&&ve.indexOf(Ze)<0&&(xe[Ze]=le[Ze]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ze=Object.getOwnPropertySymbols(le);pe{const{getPrefixCls:xe,direction:Ze}=H.useContext(Nt.E_),pe=H.useRef(null);H.useImperativeHandle(ve,()=>pe.current);const{className:Je,rootClassName:Ae,size:oe,disabled:ye,prefixCls:Be,addonBefore:De,addonAfter:Pe,prefix:we,bordered:Le=!0,readOnly:Ye,status:Ue,controls:dt}=le,bt=Ie(le,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),ft=xe("input-number",Be),[At,Ot]=re(ft),{compactSize:jt,compactItemClassnames:Gt}=(0,ue.ri)(ft,Ze);let Xt=H.createElement(t.Z,{className:`${ft}-handler-up-inner`}),zn=H.createElement(i.Z,{className:`${ft}-handler-down-inner`});const fn=typeof dt=="boolean"?dt:void 0;typeof dt=="object"&&(Xt=typeof dt.upIcon=="undefined"?Xt:H.createElement("span",{className:`${ft}-handler-up-inner`},dt.upIcon),zn=typeof dt.downIcon=="undefined"?zn:H.createElement("span",{className:`${ft}-handler-down-inner`},dt.downIcon));const{hasFeedback:Bn,status:On,isFormItemInput:Mn,feedbackIcon:_e}=H.useContext(Fe.aM),at=(0,mt.F)(On,Ue),Vt=(0,et.Z)(gt=>{var Dt;return(Dt=oe!=null?oe:jt)!==null&&Dt!==void 0?Dt:gt}),rn=H.useContext(He.Z),st=ye!=null?ye:rn,ut=s()({[`${ft}-lg`]:Vt==="large",[`${ft}-sm`]:Vt==="small",[`${ft}-rtl`]:Ze==="rtl",[`${ft}-borderless`]:!Le,[`${ft}-in-form-item`]:Mn},(0,mt.Z)(ft,at),Gt,Ot),$t=`${ft}-group`,nt=H.createElement(wt,Object.assign({ref:pe,disabled:st,className:s()(Je,Ae),upHandler:Xt,downHandler:zn,prefixCls:ft,readOnly:Ye,controls:fn,prefix:we,suffix:Bn&&_e,addonAfter:Pe&&H.createElement(ue.BR,null,H.createElement(Fe.Ux,{override:!0,status:!0},Pe)),addonBefore:De&&H.createElement(ue.BR,null,H.createElement(Fe.Ux,{override:!0,status:!0},De)),classNames:{input:ut},classes:{affixWrapper:s()((0,mt.Z)(`${ft}-affix-wrapper`,at,Bn),{[`${ft}-affix-wrapper-sm`]:Vt==="small",[`${ft}-affix-wrapper-lg`]:Vt==="large",[`${ft}-affix-wrapper-rtl`]:Ze==="rtl",[`${ft}-affix-wrapper-borderless`]:!Le},Ot),wrapper:s()({[`${$t}-rtl`]:Ze==="rtl",[`${ft}-wrapper-disabled`]:st},Ot),group:s()({[`${ft}-group-wrapper-sm`]:Vt==="small",[`${ft}-group-wrapper-lg`]:Vt==="large",[`${ft}-group-wrapper-rtl`]:Ze==="rtl"},(0,mt.Z)(`${ft}-group-wrapper`,at,Bn),Ot)}},bt));return At(nt)}),he=Se,We=le=>H.createElement(ke.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},H.createElement(Se,Object.assign({},le)));he._InternalPanelDoNotUseOrYouWillBeFired=We;var de=he},95670:function(M,b,e){"use strict";e.d(b,{Z:function(){return T},n:function(){return F}});var i=e(79999),t=e(87608),o=e.n(t),s=e(19570),n=e(21319),c=e(58757),l=e(41496),v=e(61836),h=e(92428),m=e(58785),C=e(81496),p=e(43528),S=e(52191),w=e(46902);function y(z){return!!(z.prefix||z.suffix||z.allowClear)}var Z=function(z,A){var L={};for(var I in z)Object.prototype.hasOwnProperty.call(z,I)&&A.indexOf(I)<0&&(L[I]=z[I]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,I=Object.getOwnPropertySymbols(z);${var L;const{prefixCls:I,bordered:$=!0,status:B,size:K,disabled:H,onBlur:ie,onFocus:ce,suffix:te,allowClear:W,addonAfter:G,addonBefore:O,className:k,style:Y,styles:P,rootClassName:Q,onChange:fe,classNames:Ce}=z,ge=Z(z,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Me,direction:Re,input:Qe}=c.useContext(v.E_),Ve=Me("input",I),qe=(0,c.useRef)(null),[Mt,wt]=(0,w.ZP)(Ve),{compactSize:mt,compactItemClassnames:Nt}=(0,p.ri)(Ve,Re),ke=(0,m.Z)(he=>{var We;return(We=K!=null?K:mt)!==null&&We!==void 0?We:he}),He=c.useContext(h.Z),et=H!=null?H:He,{status:Fe,hasFeedback:ue,feedbackIcon:V}=(0,c.useContext)(C.aM),U=(0,l.F)(Fe,B),N=y(z)||!!ue,D=(0,c.useRef)(N);(0,c.useEffect)(()=>{var he;N&&D.current,D.current=N},[N]);const ee=(0,S.Z)(qe,!0),se=he=>{ee(),ie==null||ie(he)},X=he=>{ee(),ce==null||ce(he)},re=he=>{ee(),fe==null||fe(he)},Ie=(ue||te)&&c.createElement(c.Fragment,null,te,ue&&V);let Se;return typeof W=="object"&&(W!=null&&W.clearIcon)?Se=W:W&&(Se={clearIcon:c.createElement(i.Z,null)}),Mt(c.createElement(s.Z,Object.assign({ref:(0,n.sQ)(A,qe),prefixCls:Ve,autoComplete:Qe==null?void 0:Qe.autoComplete},ge,{disabled:et,onBlur:se,onFocus:X,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Y),styles:Object.assign(Object.assign({},Qe==null?void 0:Qe.styles),P),suffix:Ie,allowClear:Se,className:o()(k,Q,Nt,Qe==null?void 0:Qe.className),onChange:re,addonAfter:G&&c.createElement(p.BR,null,c.createElement(C.Ux,{override:!0,status:!0},G)),addonBefore:O&&c.createElement(p.BR,null,c.createElement(C.Ux,{override:!0,status:!0},O)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Qe==null?void 0:Qe.classNames),{input:o()({[`${Ve}-sm`]:ke==="small",[`${Ve}-lg`]:ke==="large",[`${Ve}-rtl`]:Re==="rtl",[`${Ve}-borderless`]:!$},!N&&(0,l.Z)(Ve,U),Ce==null?void 0:Ce.input,(L=Qe==null?void 0:Qe.classNames)===null||L===void 0?void 0:L.input,wt)}),classes:{affixWrapper:o()({[`${Ve}-affix-wrapper-sm`]:ke==="small",[`${Ve}-affix-wrapper-lg`]:ke==="large",[`${Ve}-affix-wrapper-rtl`]:Re==="rtl",[`${Ve}-affix-wrapper-borderless`]:!$},(0,l.Z)(`${Ve}-affix-wrapper`,U,ue),wt),wrapper:o()({[`${Ve}-group-rtl`]:Re==="rtl"},wt),group:o()({[`${Ve}-group-wrapper-sm`]:ke==="small",[`${Ve}-group-wrapper-lg`]:ke==="large",[`${Ve}-group-wrapper-rtl`]:Re==="rtl",[`${Ve}-group-wrapper-disabled`]:et},(0,l.Z)(`${Ve}-group-wrapper`,U,ue),wt)}})))})},79617:function(M,b,e){"use strict";var i=e(79999),t=e(87608),o=e.n(t),s=e(2071),n=e(58757),c=e(41496),l=e(61836),v=e(92428),h=e(58785),m=e(81496),C=e(95670),p=e(46902),S=function(y,Z){var F={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&Z.indexOf(R)<0&&(F[R]=y[R]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,R=Object.getOwnPropertySymbols(y);T{const{prefixCls:F,bordered:R=!0,size:T,disabled:z,status:A,allowClear:L,showCount:I,classNames:$}=y,B=S(y,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:K,direction:H}=n.useContext(l.E_),ie=(0,h.Z)(T),ce=n.useContext(v.Z),te=z!=null?z:ce,{status:W,hasFeedback:G,feedbackIcon:O}=n.useContext(m.aM),k=(0,c.F)(W,A),Y=n.useRef(null);n.useImperativeHandle(Z,()=>{var ge;return{resizableTextArea:(ge=Y.current)===null||ge===void 0?void 0:ge.resizableTextArea,focus:Me=>{var Re,Qe;(0,C.n)((Qe=(Re=Y.current)===null||Re===void 0?void 0:Re.resizableTextArea)===null||Qe===void 0?void 0:Qe.textArea,Me)},blur:()=>{var Me;return(Me=Y.current)===null||Me===void 0?void 0:Me.blur()}}});const P=K("input",F);let Q;typeof L=="object"&&(L!=null&&L.clearIcon)?Q=L:L&&(Q={clearIcon:n.createElement(i.Z,null)});const[fe,Ce]=(0,p.ZP)(P);return fe(n.createElement(s.Z,Object.assign({},B,{disabled:te,allowClear:Q,classes:{affixWrapper:o()(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:H==="rtl",[`${P}-affix-wrapper-borderless`]:!R,[`${P}-affix-wrapper-sm`]:ie==="small",[`${P}-affix-wrapper-lg`]:ie==="large",[`${P}-textarea-show-count`]:I},(0,c.Z)(`${P}-affix-wrapper`,k),Ce)},classNames:Object.assign(Object.assign({},$),{textarea:o()({[`${P}-borderless`]:!R,[`${P}-sm`]:ie==="small",[`${P}-lg`]:ie==="large"},(0,c.Z)(P,k),Ce,$==null?void 0:$.textarea)}),prefixCls:P,suffix:G&&n.createElement("span",{className:`${P}-textarea-suffix`},O),showCount:I,ref:Y})))});b.Z=w},52191:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(o,s){const n=(0,i.useRef)([]),c=()=>{n.current.push(setTimeout(()=>{var l,v,h,m;!((l=o.current)===null||l===void 0)&&l.input&&((v=o.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&(!((h=o.current)===null||h===void 0)&&h.input.hasAttribute("value"))&&((m=o.current)===null||m===void 0||m.input.removeAttribute("value"))}))};return(0,i.useEffect)(()=>(s&&c(),()=>n.current.forEach(l=>{l&&clearTimeout(l)})),[]),c}},21149:function(M,b,e){"use strict";e.d(b,{Z:function(){return te}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(81496),c=e(46902),v=W=>{const{getPrefixCls:G,direction:O}=(0,o.useContext)(s.E_),{prefixCls:k,className:Y}=W,P=G("input-group",k),Q=G("input"),[fe,Ce]=(0,c.ZP)(Q),ge=t()(P,{[`${P}-lg`]:W.size==="large",[`${P}-sm`]:W.size==="small",[`${P}-compact`]:W.compact,[`${P}-rtl`]:O==="rtl"},Ce,Y),Me=(0,o.useContext)(n.aM),Re=(0,o.useMemo)(()=>Object.assign(Object.assign({},Me),{isFormItemInput:!1}),[Me]);return fe(o.createElement("span",{className:ge,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},o.createElement(n.aM.Provider,{value:Re},W.children)))},h=e(95670),m=e(83720),C=e(56019),p=e(98186),S=e(21319),w=e(52191),y=function(W,G){var O={};for(var k in W)Object.prototype.hasOwnProperty.call(W,k)&&G.indexOf(k)<0&&(O[k]=W[k]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,k=Object.getOwnPropertySymbols(W);YW?o.createElement(C.Z,null):o.createElement(m.Z,null),F={click:"onClick",hover:"onMouseOver"};var T=o.forwardRef((W,G)=>{const{visibilityToggle:O=!0}=W,k=typeof O=="object"&&O.visible!==void 0,[Y,P]=(0,o.useState)(()=>k?O.visible:!1),Q=(0,o.useRef)(null);o.useEffect(()=>{k&&P(O.visible)},[k,O]);const fe=(0,w.Z)(Q),Ce=()=>{const{disabled:et}=W;et||(Y&&fe(),P(Fe=>{var ue;const V=!Fe;return typeof O=="object"&&((ue=O.onVisibleChange)===null||ue===void 0||ue.call(O,V)),V}))},ge=et=>{const{action:Fe="click",iconRender:ue=Z}=W,V=F[Fe]||"",U=ue(Y),N={[V]:Ce,className:`${et}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return o.cloneElement(o.isValidElement(U)?U:o.createElement("span",null,U),N)},{className:Me,prefixCls:Re,inputPrefixCls:Qe,size:Ve}=W,qe=y(W,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Mt}=o.useContext(s.E_),wt=Mt("input",Qe),mt=Mt("input-password",Re),Nt=O&&ge(mt),ke=t()(mt,Me,{[`${mt}-${Ve}`]:!!Ve}),He=Object.assign(Object.assign({},(0,p.Z)(qe,["suffix","iconRender","visibilityToggle"])),{type:Y?"text":"password",className:ke,prefixCls:wt,suffix:Nt});return Ve&&(He.size=Ve),o.createElement(h.Z,Object.assign({ref:(0,S.sQ)(G,Q)},He))}),z=e(99534),A=e(37047),L=e(12562),I=e(58785),$=e(43528),B=function(W,G){var O={};for(var k in W)Object.prototype.hasOwnProperty.call(W,k)&&G.indexOf(k)<0&&(O[k]=W[k]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,k=Object.getOwnPropertySymbols(W);Y{const{prefixCls:O,inputPrefixCls:k,className:Y,size:P,suffix:Q,enterButton:fe=!1,addonAfter:Ce,loading:ge,disabled:Me,onSearch:Re,onChange:Qe,onCompositionStart:Ve,onCompositionEnd:qe}=W,Mt=B(W,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:wt,direction:mt}=o.useContext(s.E_),Nt=o.useRef(!1),ke=wt("input-search",O),He=wt("input",k),{compactSize:et}=(0,$.ri)(ke,mt),Fe=(0,I.Z)(de=>{var le;return(le=P!=null?P:et)!==null&&le!==void 0?le:de}),ue=o.useRef(null),V=de=>{de&&de.target&&de.type==="click"&&Re&&Re(de.target.value,de),Qe&&Qe(de)},U=de=>{var le;document.activeElement===((le=ue.current)===null||le===void 0?void 0:le.input)&&de.preventDefault()},N=de=>{var le,ve;Re&&Re((ve=(le=ue.current)===null||le===void 0?void 0:le.input)===null||ve===void 0?void 0:ve.value,de)},D=de=>{Nt.current||ge||N(de)},ee=typeof fe=="boolean"?o.createElement(z.Z,null):null,se=`${ke}-button`;let X;const re=fe||{},Ie=re.type&&re.type.__ANT_BUTTON===!0;Ie||re.type==="button"?X=(0,A.Tm)(re,Object.assign({onMouseDown:U,onClick:de=>{var le,ve;(ve=(le=re==null?void 0:re.props)===null||le===void 0?void 0:le.onClick)===null||ve===void 0||ve.call(le,de),N(de)},key:"enterButton"},Ie?{className:se,size:Fe}:{})):X=o.createElement(L.ZP,{className:se,type:fe?"primary":void 0,size:Fe,disabled:Me,key:"enterButton",onMouseDown:U,onClick:N,loading:ge,icon:ee},fe),Ce&&(X=[X,(0,A.Tm)(Ce,{key:"addonAfter"})]);const Se=t()(ke,{[`${ke}-rtl`]:mt==="rtl",[`${ke}-${Fe}`]:!!Fe,[`${ke}-with-button`]:!!fe},Y),he=de=>{Nt.current=!0,Ve==null||Ve(de)},We=de=>{Nt.current=!1,qe==null||qe(de)};return o.createElement(h.Z,Object.assign({ref:(0,S.sQ)(ue,G),onPressEnter:D},Mt,{size:Fe,onCompositionStart:he,onCompositionEnd:We,prefixCls:He,addonAfter:X,suffix:Q,onChange:V,className:Se,disabled:Me}))}),ie=e(79617);const ce=h.Z;ce.Group=v,ce.Search=H,ce.TextArea=ie.Z,ce.Password=T;var te=ce},46902:function(M,b,e){"use strict";e.d(b,{M1:function(){return l},Xy:function(){return v},bi:function(){return C},e5:function(){return T},ik:function(){return p},nz:function(){return n},pU:function(){return c},s7:function(){return S},x0:function(){return m}});var i=e(78330),t=e(64493),o=e(22151),s=e(52628);const n=A=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:A,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=A=>({borderColor:A.inputBorderHoverColor,borderInlineEndWidth:A.lineWidth}),l=A=>({borderColor:A.inputBorderHoverColor,boxShadow:`0 0 0 ${A.controlOutlineWidth}px ${A.controlOutline}`,borderInlineEndWidth:A.lineWidth,outline:0}),v=A=>({color:A.colorTextDisabled,backgroundColor:A.colorBgContainerDisabled,borderColor:A.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},c((0,o.TS)(A,{inputBorderHoverColor:A.colorBorder})))}),h=A=>{const{inputPaddingVerticalLG:L,fontSizeLG:I,lineHeightLG:$,borderRadiusLG:B,inputPaddingHorizontalLG:K}=A;return{padding:`${L}px ${K}px`,fontSize:I,lineHeight:$,borderRadius:B}},m=A=>({padding:`${A.inputPaddingVerticalSM}px ${A.controlPaddingHorizontalSM-1}px`,borderRadius:A.borderRadiusSM}),C=(A,L)=>{const{componentCls:I,colorError:$,colorWarning:B,colorErrorOutline:K,colorWarningOutline:H,colorErrorBorderHover:ie,colorWarningBorderHover:ce}=A;return{[`&-status-error:not(${L}-disabled):not(${L}-borderless)${L}`]:{borderColor:$,"&:hover":{borderColor:ie},"&:focus, &-focused":Object.assign({},l((0,o.TS)(A,{inputBorderActiveColor:$,inputBorderHoverColor:$,controlOutline:K}))),[`${I}-prefix, ${I}-suffix`]:{color:$}},[`&-status-warning:not(${L}-disabled):not(${L}-borderless)${L}`]:{borderColor:B,"&:hover":{borderColor:ce},"&:focus, &-focused":Object.assign({},l((0,o.TS)(A,{inputBorderActiveColor:B,inputBorderHoverColor:B,controlOutline:H}))),[`${I}-prefix, ${I}-suffix`]:{color:B}}}},p=A=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${A.inputPaddingVertical}px ${A.inputPaddingHorizontal}px`,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight,backgroundColor:A.colorBgContainer,backgroundImage:"none",borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:A.colorBorder,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid}`},n(A.colorTextPlaceholder)),{"&:hover":Object.assign({},c(A)),"&:focus, &-focused":Object.assign({},l(A)),"&-disabled, &[disabled]":Object.assign({},v(A)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:A.controlHeight,lineHeight:A.lineHeight,verticalAlign:"bottom",transition:`all ${A.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},h(A)),"&-sm":Object.assign({},m(A)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),S=A=>{const{componentCls:L,antCls:I}=A;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:A.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${L}, &-lg > ${L}-group-addon`]:Object.assign({},h(A)),[`&-sm ${L}, &-sm > ${L}-group-addon`]:Object.assign({},m(A)),[`&-lg ${I}-select-single ${I}-select-selector`]:{height:A.controlHeightLG},[`&-sm ${I}-select-single ${I}-select-selector`]:{height:A.controlHeightSM},[`> ${L}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${L}-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 ${A.inputPaddingHorizontal}px`,color:A.colorText,fontWeight:"normal",fontSize:A.fontSize,textAlign:"center",backgroundColor:A.colorFillAlter,border:`${A.lineWidth}px ${A.lineType} ${A.colorBorder}`,borderRadius:A.borderRadius,transition:`all ${A.motionDurationSlow}`,lineHeight:1,[`${I}-select`]:{margin:`-${A.inputPaddingVertical+1}px -${A.inputPaddingHorizontal}px`,[`&${I}-select-single:not(${I}-select-customize-input)`]:{[`${I}-select-selector`]:{backgroundColor:"inherit",border:`${A.lineWidth}px ${A.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${I}-select-selector`]:{color:A.colorPrimary}}},[`${I}-cascader-picker`]:{margin:`-9px -${A.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${I}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${L}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${L}-search-with-button &`]:{zIndex:0}}},[`> ${L}:first-child, ${L}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}-affix-wrapper`]:{[`&:not(:first-child) ${L}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${L}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}:last-child, ${L}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${L}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${L}-search &`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius}},[`&:not(:first-child), ${L}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${L}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,i.dF)()),{[`${L}-group-addon, ${L}-group-wrap, > ${L}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:A.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` + `]:{color:bt}})},{[`${ve}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${ve}-handler-down`]:{borderBlockStartWidth:0}}}]},X=le=>{const{componentCls:ve,inputPaddingVertical:xe,inputPaddingHorizontal:Ze,inputAffixPadding:pe,controlWidth:Je,borderRadiusLG:Ae,borderRadiusSM:oe}=le;return{[`${ve}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,V.ik)(le)),(0,V.bi)(le,`${ve}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Je,padding:0,paddingInlineStart:Ze,"&-lg":{borderRadius:Ae},"&-sm":{borderRadius:oe},[`&:not(${ve}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,V.pU)(le)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${ve}-disabled`]:{background:"transparent"},[`> div${ve}`]:{width:"100%",border:"none",outline:"none",[`&${ve}-focused`]:{boxShadow:"none !important"}},[`input${ve}-input`]:{padding:`${xe}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${ve}-handler-wrap`]:{zIndex:2},[ve]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:pe},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ze,marginInlineStart:pe}}})}};var re=(0,D.Z)("InputNumber",le=>{const ve=(0,V.e5)(le);return[se(ve),X(ve),(0,N.c)(ve)]},le=>({controlWidth:90,handleWidth:le.controlHeightSM-le.lineWidth*2,handleFontSize:le.fontSize/2,handleVisible:"auto"})),Ie=function(le,ve){var xe={};for(var Ze in le)Object.prototype.hasOwnProperty.call(le,Ze)&&ve.indexOf(Ze)<0&&(xe[Ze]=le[Ze]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ze=Object.getOwnPropertySymbols(le);pe{const{getPrefixCls:xe,direction:Ze}=H.useContext(Lt.E_),pe=H.useRef(null);H.useImperativeHandle(ve,()=>pe.current);const{className:Je,rootClassName:Ae,size:oe,disabled:ye,prefixCls:Be,addonBefore:De,addonAfter:Pe,prefix:we,bordered:Le=!0,readOnly:Ye,status:Ue,controls:dt}=le,bt=Ie(le,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),ft=xe("input-number",Be),[At,Ot]=re(ft),{compactSize:jt,compactItemClassnames:Gt}=(0,ue.ri)(ft,Ze);let Xt=H.createElement(t.Z,{className:`${ft}-handler-up-inner`}),Bn=H.createElement(i.Z,{className:`${ft}-handler-down-inner`});const fn=typeof dt=="boolean"?dt:void 0;typeof dt=="object"&&(Xt=typeof dt.upIcon=="undefined"?Xt:H.createElement("span",{className:`${ft}-handler-up-inner`},dt.upIcon),Bn=typeof dt.downIcon=="undefined"?Bn:H.createElement("span",{className:`${ft}-handler-down-inner`},dt.downIcon));const{hasFeedback:$n,status:On,isFormItemInput:Mn,feedbackIcon:_e}=H.useContext(Fe.aM),at=(0,gt.F)(On,Ue),Vt=(0,et.Z)(mt=>{var Dt;return(Dt=oe!=null?oe:jt)!==null&&Dt!==void 0?Dt:mt}),an=H.useContext(He.Z),st=ye!=null?ye:an,ut=s()({[`${ft}-lg`]:Vt==="large",[`${ft}-sm`]:Vt==="small",[`${ft}-rtl`]:Ze==="rtl",[`${ft}-borderless`]:!Le,[`${ft}-in-form-item`]:Mn},(0,gt.Z)(ft,at),Gt,Ot),$t=`${ft}-group`,nt=H.createElement(wt,Object.assign({ref:pe,disabled:st,className:s()(Je,Ae),upHandler:Xt,downHandler:Bn,prefixCls:ft,readOnly:Ye,controls:fn,prefix:we,suffix:$n&&_e,addonAfter:Pe&&H.createElement(ue.BR,null,H.createElement(Fe.Ux,{override:!0,status:!0},Pe)),addonBefore:De&&H.createElement(ue.BR,null,H.createElement(Fe.Ux,{override:!0,status:!0},De)),classNames:{input:ut},classes:{affixWrapper:s()((0,gt.Z)(`${ft}-affix-wrapper`,at,$n),{[`${ft}-affix-wrapper-sm`]:Vt==="small",[`${ft}-affix-wrapper-lg`]:Vt==="large",[`${ft}-affix-wrapper-rtl`]:Ze==="rtl",[`${ft}-affix-wrapper-borderless`]:!Le},Ot),wrapper:s()({[`${$t}-rtl`]:Ze==="rtl",[`${ft}-wrapper-disabled`]:st},Ot),group:s()({[`${ft}-group-wrapper-sm`]:Vt==="small",[`${ft}-group-wrapper-lg`]:Vt==="large",[`${ft}-group-wrapper-rtl`]:Ze==="rtl"},(0,gt.Z)(`${ft}-group-wrapper`,at,$n),Ot)}},bt));return At(nt)}),he=Se,We=le=>H.createElement(ke.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},H.createElement(Se,Object.assign({},le)));he._InternalPanelDoNotUseOrYouWillBeFired=We;var de=he},95670:function(M,b,e){"use strict";e.d(b,{Z:function(){return T},n:function(){return F}});var i=e(79999),t=e(87608),o=e.n(t),s=e(19570),n=e(21319),c=e(58757),l=e(41496),v=e(61836),h=e(92428),m=e(58785),C=e(81496),p=e(43528),S=e(52191),w=e(46902);function y(z){return!!(z.prefix||z.suffix||z.allowClear)}var Z=function(z,A){var L={};for(var I in z)Object.prototype.hasOwnProperty.call(z,I)&&A.indexOf(I)<0&&(L[I]=z[I]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,I=Object.getOwnPropertySymbols(z);${var L;const{prefixCls:I,bordered:$=!0,status:B,size:K,disabled:H,onBlur:ie,onFocus:ce,suffix:te,allowClear:W,addonAfter:G,addonBefore:O,className:k,style:Y,styles:P,rootClassName:Q,onChange:fe,classNames:Ce}=z,ge=Z(z,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Me,direction:Ne,input:Qe}=c.useContext(v.E_),Ve=Me("input",I),qe=(0,c.useRef)(null),[Mt,wt]=(0,w.ZP)(Ve),{compactSize:gt,compactItemClassnames:Lt}=(0,p.ri)(Ve,Ne),ke=(0,m.Z)(he=>{var We;return(We=K!=null?K:gt)!==null&&We!==void 0?We:he}),He=c.useContext(h.Z),et=H!=null?H:He,{status:Fe,hasFeedback:ue,feedbackIcon:V}=(0,c.useContext)(C.aM),U=(0,l.F)(Fe,B),N=y(z)||!!ue,D=(0,c.useRef)(N);(0,c.useEffect)(()=>{var he;N&&D.current,D.current=N},[N]);const ee=(0,S.Z)(qe,!0),se=he=>{ee(),ie==null||ie(he)},X=he=>{ee(),ce==null||ce(he)},re=he=>{ee(),fe==null||fe(he)},Ie=(ue||te)&&c.createElement(c.Fragment,null,te,ue&&V);let Se;return typeof W=="object"&&(W!=null&&W.clearIcon)?Se=W:W&&(Se={clearIcon:c.createElement(i.Z,null)}),Mt(c.createElement(s.Z,Object.assign({ref:(0,n.sQ)(A,qe),prefixCls:Ve,autoComplete:Qe==null?void 0:Qe.autoComplete},ge,{disabled:et,onBlur:se,onFocus:X,style:Object.assign(Object.assign({},Qe==null?void 0:Qe.style),Y),styles:Object.assign(Object.assign({},Qe==null?void 0:Qe.styles),P),suffix:Ie,allowClear:Se,className:o()(k,Q,Lt,Qe==null?void 0:Qe.className),onChange:re,addonAfter:G&&c.createElement(p.BR,null,c.createElement(C.Ux,{override:!0,status:!0},G)),addonBefore:O&&c.createElement(p.BR,null,c.createElement(C.Ux,{override:!0,status:!0},O)),classNames:Object.assign(Object.assign(Object.assign({},Ce),Qe==null?void 0:Qe.classNames),{input:o()({[`${Ve}-sm`]:ke==="small",[`${Ve}-lg`]:ke==="large",[`${Ve}-rtl`]:Ne==="rtl",[`${Ve}-borderless`]:!$},!N&&(0,l.Z)(Ve,U),Ce==null?void 0:Ce.input,(L=Qe==null?void 0:Qe.classNames)===null||L===void 0?void 0:L.input,wt)}),classes:{affixWrapper:o()({[`${Ve}-affix-wrapper-sm`]:ke==="small",[`${Ve}-affix-wrapper-lg`]:ke==="large",[`${Ve}-affix-wrapper-rtl`]:Ne==="rtl",[`${Ve}-affix-wrapper-borderless`]:!$},(0,l.Z)(`${Ve}-affix-wrapper`,U,ue),wt),wrapper:o()({[`${Ve}-group-rtl`]:Ne==="rtl"},wt),group:o()({[`${Ve}-group-wrapper-sm`]:ke==="small",[`${Ve}-group-wrapper-lg`]:ke==="large",[`${Ve}-group-wrapper-rtl`]:Ne==="rtl",[`${Ve}-group-wrapper-disabled`]:et},(0,l.Z)(`${Ve}-group-wrapper`,U,ue),wt)}})))})},79617:function(M,b,e){"use strict";var i=e(79999),t=e(87608),o=e.n(t),s=e(2071),n=e(58757),c=e(41496),l=e(61836),v=e(92428),h=e(58785),m=e(81496),C=e(95670),p=e(46902),S=function(y,Z){var F={};for(var R in y)Object.prototype.hasOwnProperty.call(y,R)&&Z.indexOf(R)<0&&(F[R]=y[R]);if(y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var T=0,R=Object.getOwnPropertySymbols(y);T{const{prefixCls:F,bordered:R=!0,size:T,disabled:z,status:A,allowClear:L,showCount:I,classNames:$}=y,B=S(y,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames"]),{getPrefixCls:K,direction:H}=n.useContext(l.E_),ie=(0,h.Z)(T),ce=n.useContext(v.Z),te=z!=null?z:ce,{status:W,hasFeedback:G,feedbackIcon:O}=n.useContext(m.aM),k=(0,c.F)(W,A),Y=n.useRef(null);n.useImperativeHandle(Z,()=>{var ge;return{resizableTextArea:(ge=Y.current)===null||ge===void 0?void 0:ge.resizableTextArea,focus:Me=>{var Ne,Qe;(0,C.n)((Qe=(Ne=Y.current)===null||Ne===void 0?void 0:Ne.resizableTextArea)===null||Qe===void 0?void 0:Qe.textArea,Me)},blur:()=>{var Me;return(Me=Y.current)===null||Me===void 0?void 0:Me.blur()}}});const P=K("input",F);let Q;typeof L=="object"&&(L!=null&&L.clearIcon)?Q=L:L&&(Q={clearIcon:n.createElement(i.Z,null)});const[fe,Ce]=(0,p.ZP)(P);return fe(n.createElement(s.Z,Object.assign({},B,{disabled:te,allowClear:Q,classes:{affixWrapper:o()(`${P}-textarea-affix-wrapper`,{[`${P}-affix-wrapper-rtl`]:H==="rtl",[`${P}-affix-wrapper-borderless`]:!R,[`${P}-affix-wrapper-sm`]:ie==="small",[`${P}-affix-wrapper-lg`]:ie==="large",[`${P}-textarea-show-count`]:I},(0,c.Z)(`${P}-affix-wrapper`,k),Ce)},classNames:Object.assign(Object.assign({},$),{textarea:o()({[`${P}-borderless`]:!R,[`${P}-sm`]:ie==="small",[`${P}-lg`]:ie==="large"},(0,c.Z)(P,k),Ce,$==null?void 0:$.textarea)}),prefixCls:P,suffix:G&&n.createElement("span",{className:`${P}-textarea-suffix`},O),showCount:I,ref:Y})))});b.Z=w},52191:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(o,s){const n=(0,i.useRef)([]),c=()=>{n.current.push(setTimeout(()=>{var l,v,h,m;!((l=o.current)===null||l===void 0)&&l.input&&((v=o.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&(!((h=o.current)===null||h===void 0)&&h.input.hasAttribute("value"))&&((m=o.current)===null||m===void 0||m.input.removeAttribute("value"))}))};return(0,i.useEffect)(()=>(s&&c(),()=>n.current.forEach(l=>{l&&clearTimeout(l)})),[]),c}},21149:function(M,b,e){"use strict";e.d(b,{Z:function(){return te}});var i=e(87608),t=e.n(i),o=e(58757),s=e(61836),n=e(81496),c=e(46902),v=W=>{const{getPrefixCls:G,direction:O}=(0,o.useContext)(s.E_),{prefixCls:k,className:Y}=W,P=G("input-group",k),Q=G("input"),[fe,Ce]=(0,c.ZP)(Q),ge=t()(P,{[`${P}-lg`]:W.size==="large",[`${P}-sm`]:W.size==="small",[`${P}-compact`]:W.compact,[`${P}-rtl`]:O==="rtl"},Ce,Y),Me=(0,o.useContext)(n.aM),Ne=(0,o.useMemo)(()=>Object.assign(Object.assign({},Me),{isFormItemInput:!1}),[Me]);return fe(o.createElement("span",{className:ge,style:W.style,onMouseEnter:W.onMouseEnter,onMouseLeave:W.onMouseLeave,onFocus:W.onFocus,onBlur:W.onBlur},o.createElement(n.aM.Provider,{value:Ne},W.children)))},h=e(95670),m=e(83720),C=e(56019),p=e(98186),S=e(21319),w=e(52191),y=function(W,G){var O={};for(var k in W)Object.prototype.hasOwnProperty.call(W,k)&&G.indexOf(k)<0&&(O[k]=W[k]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,k=Object.getOwnPropertySymbols(W);YW?o.createElement(C.Z,null):o.createElement(m.Z,null),F={click:"onClick",hover:"onMouseOver"};var T=o.forwardRef((W,G)=>{const{visibilityToggle:O=!0}=W,k=typeof O=="object"&&O.visible!==void 0,[Y,P]=(0,o.useState)(()=>k?O.visible:!1),Q=(0,o.useRef)(null);o.useEffect(()=>{k&&P(O.visible)},[k,O]);const fe=(0,w.Z)(Q),Ce=()=>{const{disabled:et}=W;et||(Y&&fe(),P(Fe=>{var ue;const V=!Fe;return typeof O=="object"&&((ue=O.onVisibleChange)===null||ue===void 0||ue.call(O,V)),V}))},ge=et=>{const{action:Fe="click",iconRender:ue=Z}=W,V=F[Fe]||"",U=ue(Y),N={[V]:Ce,className:`${et}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return o.cloneElement(o.isValidElement(U)?U:o.createElement("span",null,U),N)},{className:Me,prefixCls:Ne,inputPrefixCls:Qe,size:Ve}=W,qe=y(W,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Mt}=o.useContext(s.E_),wt=Mt("input",Qe),gt=Mt("input-password",Ne),Lt=O&&ge(gt),ke=t()(gt,Me,{[`${gt}-${Ve}`]:!!Ve}),He=Object.assign(Object.assign({},(0,p.Z)(qe,["suffix","iconRender","visibilityToggle"])),{type:Y?"text":"password",className:ke,prefixCls:wt,suffix:Lt});return Ve&&(He.size=Ve),o.createElement(h.Z,Object.assign({ref:(0,S.sQ)(G,Q)},He))}),z=e(99534),A=e(37047),L=e(12562),I=e(58785),$=e(43528),B=function(W,G){var O={};for(var k in W)Object.prototype.hasOwnProperty.call(W,k)&&G.indexOf(k)<0&&(O[k]=W[k]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,k=Object.getOwnPropertySymbols(W);Y{const{prefixCls:O,inputPrefixCls:k,className:Y,size:P,suffix:Q,enterButton:fe=!1,addonAfter:Ce,loading:ge,disabled:Me,onSearch:Ne,onChange:Qe,onCompositionStart:Ve,onCompositionEnd:qe}=W,Mt=B(W,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:wt,direction:gt}=o.useContext(s.E_),Lt=o.useRef(!1),ke=wt("input-search",O),He=wt("input",k),{compactSize:et}=(0,$.ri)(ke,gt),Fe=(0,I.Z)(de=>{var le;return(le=P!=null?P:et)!==null&&le!==void 0?le:de}),ue=o.useRef(null),V=de=>{de&&de.target&&de.type==="click"&&Ne&&Ne(de.target.value,de),Qe&&Qe(de)},U=de=>{var le;document.activeElement===((le=ue.current)===null||le===void 0?void 0:le.input)&&de.preventDefault()},N=de=>{var le,ve;Ne&&Ne((ve=(le=ue.current)===null||le===void 0?void 0:le.input)===null||ve===void 0?void 0:ve.value,de)},D=de=>{Lt.current||ge||N(de)},ee=typeof fe=="boolean"?o.createElement(z.Z,null):null,se=`${ke}-button`;let X;const re=fe||{},Ie=re.type&&re.type.__ANT_BUTTON===!0;Ie||re.type==="button"?X=(0,A.Tm)(re,Object.assign({onMouseDown:U,onClick:de=>{var le,ve;(ve=(le=re==null?void 0:re.props)===null||le===void 0?void 0:le.onClick)===null||ve===void 0||ve.call(le,de),N(de)},key:"enterButton"},Ie?{className:se,size:Fe}:{})):X=o.createElement(L.ZP,{className:se,type:fe?"primary":void 0,size:Fe,disabled:Me,key:"enterButton",onMouseDown:U,onClick:N,loading:ge,icon:ee},fe),Ce&&(X=[X,(0,A.Tm)(Ce,{key:"addonAfter"})]);const Se=t()(ke,{[`${ke}-rtl`]:gt==="rtl",[`${ke}-${Fe}`]:!!Fe,[`${ke}-with-button`]:!!fe},Y),he=de=>{Lt.current=!0,Ve==null||Ve(de)},We=de=>{Lt.current=!1,qe==null||qe(de)};return o.createElement(h.Z,Object.assign({ref:(0,S.sQ)(ue,G),onPressEnter:D},Mt,{size:Fe,onCompositionStart:he,onCompositionEnd:We,prefixCls:He,addonAfter:X,suffix:Q,onChange:V,className:Se,disabled:Me}))}),ie=e(79617);const ce=h.Z;ce.Group=v,ce.Search=H,ce.TextArea=ie.Z,ce.Password=T;var te=ce},46902:function(M,b,e){"use strict";e.d(b,{M1:function(){return l},Xy:function(){return v},bi:function(){return C},e5:function(){return T},ik:function(){return p},nz:function(){return n},pU:function(){return c},s7:function(){return S},x0:function(){return m}});var i=e(78330),t=e(64493),o=e(22151),s=e(52628);const n=A=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:A,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),c=A=>({borderColor:A.inputBorderHoverColor,borderInlineEndWidth:A.lineWidth}),l=A=>({borderColor:A.inputBorderHoverColor,boxShadow:`0 0 0 ${A.controlOutlineWidth}px ${A.controlOutline}`,borderInlineEndWidth:A.lineWidth,outline:0}),v=A=>({color:A.colorTextDisabled,backgroundColor:A.colorBgContainerDisabled,borderColor:A.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},c((0,o.TS)(A,{inputBorderHoverColor:A.colorBorder})))}),h=A=>{const{inputPaddingVerticalLG:L,fontSizeLG:I,lineHeightLG:$,borderRadiusLG:B,inputPaddingHorizontalLG:K}=A;return{padding:`${L}px ${K}px`,fontSize:I,lineHeight:$,borderRadius:B}},m=A=>({padding:`${A.inputPaddingVerticalSM}px ${A.controlPaddingHorizontalSM-1}px`,borderRadius:A.borderRadiusSM}),C=(A,L)=>{const{componentCls:I,colorError:$,colorWarning:B,colorErrorOutline:K,colorWarningOutline:H,colorErrorBorderHover:ie,colorWarningBorderHover:ce}=A;return{[`&-status-error:not(${L}-disabled):not(${L}-borderless)${L}`]:{borderColor:$,"&:hover":{borderColor:ie},"&:focus, &-focused":Object.assign({},l((0,o.TS)(A,{inputBorderActiveColor:$,inputBorderHoverColor:$,controlOutline:K}))),[`${I}-prefix, ${I}-suffix`]:{color:$}},[`&-status-warning:not(${L}-disabled):not(${L}-borderless)${L}`]:{borderColor:B,"&:hover":{borderColor:ce},"&:focus, &-focused":Object.assign({},l((0,o.TS)(A,{inputBorderActiveColor:B,inputBorderHoverColor:B,controlOutline:H}))),[`${I}-prefix, ${I}-suffix`]:{color:B}}}},p=A=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${A.inputPaddingVertical}px ${A.inputPaddingHorizontal}px`,color:A.colorText,fontSize:A.fontSize,lineHeight:A.lineHeight,backgroundColor:A.colorBgContainer,backgroundImage:"none",borderWidth:A.lineWidth,borderStyle:A.lineType,borderColor:A.colorBorder,borderRadius:A.borderRadius,transition:`all ${A.motionDurationMid}`},n(A.colorTextPlaceholder)),{"&:hover":Object.assign({},c(A)),"&:focus, &-focused":Object.assign({},l(A)),"&-disabled, &[disabled]":Object.assign({},v(A)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:A.controlHeight,lineHeight:A.lineHeight,verticalAlign:"bottom",transition:`all ${A.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},h(A)),"&-sm":Object.assign({},m(A)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),S=A=>{const{componentCls:L,antCls:I}=A;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,["&[class*='col-']"]:{paddingInlineEnd:A.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${L}, &-lg > ${L}-group-addon`]:Object.assign({},h(A)),[`&-sm ${L}, &-sm > ${L}-group-addon`]:Object.assign({},m(A)),[`&-lg ${I}-select-single ${I}-select-selector`]:{height:A.controlHeightLG},[`&-sm ${I}-select-single ${I}-select-selector`]:{height:A.controlHeightSM},[`> ${L}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${L}-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 ${A.inputPaddingHorizontal}px`,color:A.colorText,fontWeight:"normal",fontSize:A.fontSize,textAlign:"center",backgroundColor:A.colorFillAlter,border:`${A.lineWidth}px ${A.lineType} ${A.colorBorder}`,borderRadius:A.borderRadius,transition:`all ${A.motionDurationSlow}`,lineHeight:1,[`${I}-select`]:{margin:`-${A.inputPaddingVertical+1}px -${A.inputPaddingHorizontal}px`,[`&${I}-select-single:not(${I}-select-customize-input)`]:{[`${I}-select-selector`]:{backgroundColor:"inherit",border:`${A.lineWidth}px ${A.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${I}-select-selector`]:{color:A.colorPrimary}}},[`${I}-cascader-picker`]:{margin:`-9px -${A.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${I}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${L}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${L}-search-with-button &`]:{zIndex:0}}},[`> ${L}:first-child, ${L}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}-affix-wrapper`]:{[`&:not(:first-child) ${L}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${L}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${L}:last-child, ${L}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${I}-select ${I}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${L}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${L}-search &`]:{borderStartStartRadius:A.borderRadius,borderEndStartRadius:A.borderRadius}},[`&:not(:first-child), ${L}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${L}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,i.dF)()),{[`${L}-group-addon, ${L}-group-wrap, > ${L}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:A.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[` & > ${L}-affix-wrapper, & > ${L}-number-affix-wrapper, & > ${I}-picker-range @@ -229,7 +229,7 @@ http://j.mp/37Fkd5Q & > ${I}-cascader-picker:last-child ${L}, & > ${I}-cascader-picker-focused:last-child ${L}`]:{borderInlineEndWidth:A.lineWidth,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius},[`& > ${I}-select-auto-complete ${L}`]:{verticalAlign:"top"},[`${L}-group-wrapper + ${L}-group-wrapper`]:{marginInlineStart:-A.lineWidth,[`${L}-affix-wrapper`]:{borderRadius:0}},[`${L}-group-wrapper:not(:last-child)`]:{[`&${L}-search > ${L}-group`]:{[`& > ${L}-group-addon > ${L}-search-button`]:{borderRadius:0},[`& > ${L}`]:{borderStartStartRadius:A.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:A.borderRadius}}}})}},w=A=>{const{componentCls:L,controlHeightSM:I,lineWidth:$}=A,B=16,K=(I-$*2-B)/2;return{[L]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,i.Wf)(A)),p(A)),C(A,L)),{'&[type="color"]':{height:A.controlHeight,[`&${L}-lg`]:{height:A.controlHeightLG},[`&${L}-sm`]:{height:I,paddingTop:K,paddingBottom:K}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},y=A=>{const{componentCls:L}=A;return{[`${L}-clear-icon`]:{margin:0,color:A.colorTextQuaternary,fontSize:A.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${A.motionDurationSlow}`,"&:hover":{color:A.colorTextTertiary},"&:active":{color:A.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${A.inputAffixPadding}px`}}}},Z=A=>{const{componentCls:L,inputAffixPadding:I,colorTextDescription:$,motionDurationSlow:B,colorIcon:K,colorIconHover:H,iconCls:ie}=A;return{[`${L}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p(A)),{display:"inline-flex",[`&:not(${L}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},c(A)),{zIndex:1,[`${L}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${L}[disabled]`]:{background:"transparent"}},[`> input${L}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${L}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:A.paddingXS}},"&-show-count-suffix":{color:$},"&-show-count-has-suffix":{marginInlineEnd:A.paddingXXS},"&-prefix":{marginInlineEnd:I},"&-suffix":{marginInlineStart:I}}}),y(A)),{[`${ie}${L}-password-icon`]:{color:K,cursor:"pointer",transition:`all ${B}`,"&:hover":{color:H}}}),C(A,`${L}-affix-wrapper`))}},F=A=>{const{componentCls:L,colorError:I,colorWarning:$,borderRadiusLG:B,borderRadiusSM:K}=A;return{[`${L}-group`]:Object.assign(Object.assign(Object.assign({},(0,i.Wf)(A)),S(A)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${L}-group-addon`]:{borderRadius:B,fontSize:A.fontSizeLG}},"&-sm":{[`${L}-group-addon`]:{borderRadius:K}},"&-status-error":{[`${L}-group-addon`]:{color:I,borderColor:I}},"&-status-warning":{[`${L}-group-addon`]:{color:$,borderColor:$}},"&-disabled":{[`${L}-group-addon`]:Object.assign({},v(A))},[`&:not(${L}-compact-first-item):not(${L}-compact-last-item)${L}-compact-item`]:{[`${L}, ${L}-group-addon`]:{borderRadius:0}},[`&:not(${L}-compact-last-item)${L}-compact-first-item`]:{[`${L}, ${L}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${L}-compact-first-item)${L}-compact-last-item`]:{[`${L}, ${L}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},R=A=>{const{componentCls:L,antCls:I}=A,$=`${L}-search`;return{[$]:{[`${L}`]:{"&:hover, &:focus":{borderColor:A.colorPrimaryHover,[`+ ${L}-group-addon ${$}-button:not(${I}-btn-primary)`]:{borderInlineStartColor:A.colorPrimaryHover}}},[`${L}-affix-wrapper`]:{borderRadius:0},[`${L}-lg`]:{lineHeight:A.lineHeightLG-2e-4},[`> ${L}-group`]:{[`> ${L}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${$}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:A.borderRadius,borderEndEndRadius:A.borderRadius,borderEndStartRadius:0},[`${$}-button:not(${I}-btn-primary)`]:{color:A.colorTextDescription,"&:hover":{color:A.colorPrimaryHover},"&:active":{color:A.colorPrimaryActive},[`&${I}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${$}-button`]:{height:A.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${$}-button`]:{height:A.controlHeightLG},[`&-small ${$}-button`]:{height:A.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${L}-compact-item`]:{[`&:not(${L}-compact-last-item)`]:{[`${L}-group-addon`]:{[`${L}-search-button`]:{marginInlineEnd:-A.lineWidth,borderRadius:0}}},[`&:not(${L}-compact-first-item)`]:{[`${L},${L}-affix-wrapper`]:{borderRadius:0}},[`> ${L}-group-addon ${L}-search-button, > ${L}, - ${L}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${L}-affix-wrapper-focused`]:{zIndex:2}}}}};function T(A){return(0,o.TS)(A,{inputAffixPadding:A.paddingXXS,inputPaddingVertical:Math.max(Math.round((A.controlHeight-A.fontSize*A.lineHeight)/2*10)/10-A.lineWidth,3),inputPaddingVerticalLG:Math.ceil((A.controlHeightLG-A.fontSizeLG*A.lineHeightLG)/2*10)/10-A.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((A.controlHeightSM-A.fontSize*A.lineHeight)/2*10)/10-A.lineWidth,0),inputPaddingHorizontal:A.paddingSM-A.lineWidth,inputPaddingHorizontalSM:A.paddingXS-A.lineWidth,inputPaddingHorizontalLG:A.controlPaddingHorizontal-A.lineWidth,inputBorderHoverColor:A.colorPrimaryHover,inputBorderActiveColor:A.colorPrimaryHover})}const z=A=>{const{componentCls:L,paddingLG:I}=A,$=`${L}-textarea`;return{[$]:{position:"relative","&-show-count":{[`> ${L}`]:{height:"100%"},[`${L}-data-count`]:{position:"absolute",bottom:-A.fontSize*A.lineHeight,insetInlineEnd:0,color:A.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${L}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${$}-has-feedback`]:{[`${L}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${L}-affix-wrapper`]:{padding:0,[`> textarea${L}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${L}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${L}-clear-icon`]:{position:"absolute",insetInlineEnd:A.paddingXS,insetBlockStart:A.paddingXS},[`${$}-suffix`]:{position:"absolute",top:0,insetInlineEnd:A.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};b.ZP=(0,s.Z)("Input",A=>{const L=T(A);return[w(L),z(L),Z(L),F(L),R(L),(0,t.c)(L)]})},67423:function(M,b,e){"use strict";e.d(b,{D:function(){return T},Z:function(){return L}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function($,B){return t.createElement(n.Z,(0,i.Z)({},$,{ref:B,icon:s}))},l=t.forwardRef(c),v=e(99142),h=e(91169),m=e(87608),C=e.n(m),p=e(98186),w=I=>!isNaN(parseFloat(I))&&isFinite(I),y=e(61836),Z=e(79802),F=function(I,$){var B={};for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&$.indexOf(K)<0&&(B[K]=I[K]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,K=Object.getOwnPropertySymbols(I);H{let I=0;return function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I+=1,`${$}${I}`}})();var L=t.forwardRef((I,$)=>{const{prefixCls:B,className:K,trigger:H,children:ie,defaultCollapsed:ce=!1,theme:te="dark",style:W={},collapsible:G=!1,reverseArrow:O=!1,width:k=200,collapsedWidth:Y=80,zeroWidthTriggerStyle:P,breakpoint:Q,onCollapse:fe,onBreakpoint:Ce}=I,ge=F(I,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Me}=(0,t.useContext)(Z.Gs),[Re,Qe]=(0,t.useState)("collapsed"in I?I.collapsed:ce),[Ve,qe]=(0,t.useState)(!1);(0,t.useEffect)(()=>{"collapsed"in I&&Qe(I.collapsed)},[I.collapsed]);const Mt=(et,Fe)=>{"collapsed"in I||Qe(et),fe==null||fe(et,Fe)},wt=(0,t.useRef)();wt.current=et=>{qe(et.matches),Ce==null||Ce(et.matches),Re!==et.matches&&Mt(et.matches,"responsive")},(0,t.useEffect)(()=>{function et(ue){return wt.current(ue)}let Fe;if(typeof window!="undefined"){const{matchMedia:ue}=window;if(ue&&Q&&Q in R){Fe=ue(`(max-width: ${R[Q]})`);try{Fe.addEventListener("change",et)}catch(V){Fe.addListener(et)}et(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",et)}catch(ue){Fe==null||Fe.removeListener(et)}}},[Q]),(0,t.useEffect)(()=>{const et=z("ant-sider-");return Me.addSider(et),()=>Me.removeSider(et)},[]);const mt=()=>{Mt(!Re,"clickTrigger")},{getPrefixCls:Nt}=(0,t.useContext)(y.E_),ke=()=>{const et=Nt("layout-sider",B),Fe=(0,p.Z)(ge,["collapsed"]),ue=Re?Y:k,V=w(ue)?`${ue}px`:String(ue),U=parseFloat(String(Y||0))===0?t.createElement("span",{onClick:mt,className:C()(`${et}-zero-width-trigger`,`${et}-zero-width-trigger-${O?"right":"left"}`),style:P},H||t.createElement(l,null)):null,ee={expanded:O?t.createElement(h.Z,null):t.createElement(v.Z,null),collapsed:O?t.createElement(v.Z,null):t.createElement(h.Z,null)}[Re?"collapsed":"expanded"],se=H!==null?U||t.createElement("div",{className:`${et}-trigger`,onClick:mt,style:{width:V}},H||ee):null,X=Object.assign(Object.assign({},W),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),re=C()(et,`${et}-${te}`,{[`${et}-collapsed`]:!!Re,[`${et}-has-trigger`]:G&&H!==null&&!U,[`${et}-below`]:!!Ve,[`${et}-zero-width`]:parseFloat(V)===0},K);return t.createElement("aside",Object.assign({className:re},Fe,{style:X,ref:$}),t.createElement("div",{className:`${et}-children`},ie),G||Ve&&U?se:null)},He=t.useMemo(()=>({siderCollapsed:Re}),[Re]);return t.createElement(T.Provider,{value:He},ke())})},79802:function(M,b,e){"use strict";e.d(b,{VY:function(){return A},$_:function(){return z},h4:function(){return T},Gs:function(){return w},ZP:function(){return L}});var i=e(29140),t=e(87608),o=e.n(t),s=e(98186),n=e(58757),c=e(61836),l=e(52628),v=e(22151),m=I=>{const{componentCls:$,colorBgContainer:B,colorBgBody:K,colorText:H}=I;return{[`${$}-sider-light`]:{background:B,[`${$}-sider-trigger`]:{color:H,background:B},[`${$}-sider-zero-width-trigger`]:{color:H,background:B,border:`1px solid ${K}`,borderInlineStart:0}}}};const C=I=>{const{antCls:$,componentCls:B,colorText:K,colorTextLightSolid:H,colorBgHeader:ie,colorBgBody:ce,colorBgTrigger:te,layoutHeaderHeight:W,layoutHeaderPaddingInline:G,layoutHeaderColor:O,layoutFooterPadding:k,layoutTriggerHeight:Y,layoutZeroTriggerSize:P,motionDurationMid:Q,motionDurationSlow:fe,fontSize:Ce,borderRadius:ge}=I;return{[B]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ce,"&, *":{boxSizing:"border-box"},[`&${B}-has-sider`]:{flexDirection:"row",[`> ${B}, > ${B}-content`]:{width:0}},[`${B}-header, &${B}-footer`]:{flex:"0 0 auto"},[`${B}-sider`]:{position:"relative",minWidth:0,background:ie,transition:`all ${Q}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${$}-menu${$}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Y},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Y,color:H,lineHeight:`${Y}px`,textAlign:"center",background:te,cursor:"pointer",transition:`all ${Q}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:W,insetInlineEnd:-P,zIndex:1,width:P,height:P,color:H,fontSize:I.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ie,borderStartStartRadius:0,borderStartEndRadius:ge,borderEndEndRadius:ge,borderEndStartRadius:0,cursor:"pointer",transition:`background ${fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-P,borderStartStartRadius:ge,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ge}}}}},m(I)),{"&-rtl":{direction:"rtl"}}),[`${B}-header`]:{height:W,paddingInline:G,color:O,lineHeight:`${W}px`,background:ie,[`${$}-menu`]:{lineHeight:"inherit"}},[`${B}-footer`]:{padding:k,color:K,fontSize:Ce,background:ce},[`${B}-content`]:{flex:"auto",minHeight:0}}};var p=(0,l.Z)("Layout",I=>{const{colorText:$,controlHeightSM:B,controlHeight:K,controlHeightLG:H,marginXXS:ie}=I,ce=H*1.25,te=(0,v.TS)(I,{layoutHeaderHeight:K*2,layoutHeaderPaddingInline:ce,layoutHeaderColor:$,layoutFooterPadding:`${B}px ${ce}px`,layoutTriggerHeight:H+ie*2,layoutZeroTriggerSize:H});return[C(te)]},I=>{const{colorBgLayout:$}=I;return{colorBgHeader:"#001529",colorBgBody:$,colorBgTrigger:"#002140"}}),S=function(I,$){var B={};for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&$.indexOf(K)<0&&(B[K]=I[K]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,K=Object.getOwnPropertySymbols(I);Hnull,removeSider:()=>null}});function y(I){let{suffixCls:$,tagName:B,displayName:K}=I;return H=>n.forwardRef((ce,te)=>n.createElement(H,Object.assign({ref:te,suffixCls:$,tagName:B},ce)))}const Z=n.forwardRef((I,$)=>{const{prefixCls:B,suffixCls:K,className:H,tagName:ie}=I,ce=S(I,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:te}=n.useContext(c.E_),W=te("layout",B),[G,O]=p(W),k=K?`${W}-${K}`:W;return G(n.createElement(ie,Object.assign({className:o()(B||k,H,O),ref:$},ce)))}),F=n.forwardRef((I,$)=>{const{direction:B}=n.useContext(c.E_),[K,H]=n.useState([]),{prefixCls:ie,className:ce,rootClassName:te,children:W,hasSider:G,tagName:O,style:k}=I,Y=S(I,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),P=(0,s.Z)(Y,["suffixCls"]),{getPrefixCls:Q,layout:fe}=n.useContext(c.E_),Ce=Q("layout",ie),[ge,Me]=p(Ce),Re=o()(Ce,{[`${Ce}-has-sider`]:typeof G=="boolean"?G:K.length>0,[`${Ce}-rtl`]:B==="rtl"},fe==null?void 0:fe.className,ce,te,Me),Qe=n.useMemo(()=>({siderHook:{addSider:Ve=>{H(qe=>[].concat((0,i.Z)(qe),[Ve]))},removeSider:Ve=>{H(qe=>qe.filter(Mt=>Mt!==Ve))}}}),[]);return ge(n.createElement(w.Provider,{value:Qe},n.createElement(O,Object.assign({ref:$,className:Re,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),k)},P),W)))}),R=y({tagName:"div",displayName:"Layout"})(F),T=y({suffixCls:"header",tagName:"header",displayName:"Header"})(Z),z=y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Z),A=y({suffixCls:"content",tagName:"main",displayName:"Content"})(Z);var L=R},37617:function(M,b,e){"use strict";e.d(b,{Z:function(){return W}});var i=e(29140),t=e(87608),o=e.n(t),s=e(58757),n=e(44818),c=e(87078),l=e(61836),v=e(10401),h=e(67665),m=e(60059),C=e(35910),p=e(79233),S=e(37047),w=e(91334);const y=s.createContext({}),Z=y.Consumer;var F=function(G,O){var k={};for(var Y in G)Object.prototype.hasOwnProperty.call(G,Y)&&O.indexOf(Y)<0&&(k[Y]=G[Y]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Y=Object.getOwnPropertySymbols(G);P{var{prefixCls:O,className:k,avatar:Y,title:P,description:Q}=G,fe=F(G,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:Ce}=(0,s.useContext)(l.E_),ge=Ce("list",O),Me=o()(`${ge}-item-meta`,k),Re=s.createElement("div",{className:`${ge}-item-meta-content`},P&&s.createElement("h4",{className:`${ge}-item-meta-title`},P),Q&&s.createElement("div",{className:`${ge}-item-meta-description`},Q));return s.createElement("div",Object.assign({},fe,{className:Me}),Y&&s.createElement("div",{className:`${ge}-item-meta-avatar`},Y),(P||Q)&&Re)},T=(G,O)=>{var{prefixCls:k,children:Y,actions:P,extra:Q,className:fe,colStyle:Ce}=G,ge=F(G,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:Me,itemLayout:Re}=(0,s.useContext)(y),{getPrefixCls:Qe}=(0,s.useContext)(l.E_),Ve=()=>{let ke;return s.Children.forEach(Y,He=>{typeof He=="string"&&(ke=!0)}),ke&&s.Children.count(Y)>1},qe=()=>Re==="vertical"?!!Q:!Ve(),Mt=Qe("list",k),wt=P&&P.length>0&&s.createElement("ul",{className:`${Mt}-item-action`,key:"actions"},P.map((ke,He)=>s.createElement("li",{key:`${Mt}-item-action-${He}`},ke,He!==P.length-1&&s.createElement("em",{className:`${Mt}-item-action-split`})))),mt=Me?"div":"li",Nt=s.createElement(mt,Object.assign({},ge,Me?{}:{ref:O},{className:o()(`${Mt}-item`,{[`${Mt}-item-no-flex`]:!qe()},fe)}),Re==="vertical"&&Q?[s.createElement("div",{className:`${Mt}-item-main`,key:"content"},Y,wt),s.createElement("div",{className:`${Mt}-item-extra`,key:"extra"},Q)]:[Y,wt,(0,S.Tm)(Q,{key:"extra"})]);return Me?s.createElement(w.Z,{ref:O,flex:1,style:Ce},Nt):Nt},z=(0,s.forwardRef)(T);z.Meta=R;var A=z,L=e(78330),I=e(52628),$=e(22151);const B=G=>{const{listBorderedCls:O,componentCls:k,paddingLG:Y,margin:P,itemPaddingSM:Q,itemPaddingLG:fe,marginLG:Ce,borderRadiusLG:ge}=G;return{[`${O}`]:{border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,borderRadius:ge,[`${k}-header,${k}-footer,${k}-item`]:{paddingInline:Y},[`${k}-pagination`]:{margin:`${P}px ${Ce}px`}},[`${O}${k}-sm`]:{[`${k}-item,${k}-header,${k}-footer`]:{padding:Q}},[`${O}${k}-lg`]:{[`${k}-item,${k}-header,${k}-footer`]:{padding:fe}}}},K=G=>{const{componentCls:O,screenSM:k,screenMD:Y,marginLG:P,marginSM:Q,margin:fe}=G;return{[`@media screen and (max-width:${Y})`]:{[`${O}`]:{[`${O}-item`]:{[`${O}-item-action`]:{marginInlineStart:P}}},[`${O}-vertical`]:{[`${O}-item`]:{[`${O}-item-extra`]:{marginInlineStart:P}}}},[`@media screen and (max-width: ${k})`]:{[`${O}`]:{[`${O}-item`]:{flexWrap:"wrap",[`${O}-action`]:{marginInlineStart:Q}}},[`${O}-vertical`]:{[`${O}-item`]:{flexWrap:"wrap-reverse",[`${O}-item-main`]:{minWidth:G.contentWidth},[`${O}-item-extra`]:{margin:`auto auto ${fe}px`}}}}}},H=G=>{const{componentCls:O,antCls:k,controlHeight:Y,minHeight:P,paddingSM:Q,marginLG:fe,padding:Ce,itemPadding:ge,colorPrimary:Me,itemPaddingSM:Re,itemPaddingLG:Qe,paddingXS:Ve,margin:qe,colorText:Mt,colorTextDescription:wt,motionDurationSlow:mt,lineWidth:Nt,headerBg:ke,footerBg:He,emptyTextPadding:et,metaMarginBottom:Fe,avatarMarginRight:ue,titleMarginBottom:V,descriptionFontSize:U}=G,N={};return["start","center","end"].forEach(D=>{N[`&-align-${D}`]={textAlign:D}}),{[`${O}`]:Object.assign(Object.assign({},(0,L.Wf)(G)),{position:"relative","*":{outline:"none"},[`${O}-header`]:{background:ke},[`${O}-footer`]:{background:He},[`${O}-header, ${O}-footer`]:{paddingBlock:Q},[`${O}-pagination`]:Object.assign(Object.assign({marginBlockStart:fe},N),{[`${k}-pagination-options`]:{textAlign:"start"}}),[`${O}-spin`]:{minHeight:P,textAlign:"center"},[`${O}-items`]:{margin:0,padding:0,listStyle:"none"},[`${O}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:ge,color:Mt,[`${O}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${O}-item-meta-avatar`]:{marginInlineEnd:ue},[`${O}-item-meta-content`]:{flex:"1 0",width:0,color:Mt},[`${O}-item-meta-title`]:{margin:`0 0 ${G.marginXXS}px 0`,color:Mt,fontSize:G.fontSize,lineHeight:G.lineHeight,"> a":{color:Mt,transition:`all ${mt}`,["&:hover"]:{color:Me}}},[`${O}-item-meta-description`]:{color:wt,fontSize:U,lineHeight:G.lineHeight}},[`${O}-item-action`]:{flex:"0 0 auto",marginInlineStart:G.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${Ve}px`,color:wt,fontSize:G.fontSize,lineHeight:G.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${O}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:Nt,height:Math.ceil(G.fontSize*G.lineHeight)-G.marginXXS*2,transform:"translateY(-50%)",backgroundColor:G.colorSplit}}},[`${O}-empty`]:{padding:`${Ce}px 0`,color:wt,fontSize:G.fontSizeSM,textAlign:"center"},[`${O}-empty-text`]:{padding:et,color:G.colorTextDisabled,fontSize:G.fontSize,textAlign:"center"},[`${O}-item-no-flex`]:{display:"block"}}),[`${O}-grid ${k}-col > ${O}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:qe,paddingBlock:0,borderBlockEnd:"none"},[`${O}-vertical ${O}-item`]:{alignItems:"initial",[`${O}-item-main`]:{display:"block",flex:1},[`${O}-item-extra`]:{marginInlineStart:fe},[`${O}-item-meta`]:{marginBlockEnd:Fe,[`${O}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:V,color:Mt,fontSize:G.fontSizeLG,lineHeight:G.lineHeightLG}},[`${O}-item-action`]:{marginBlockStart:Ce,marginInlineStart:"auto","> li":{padding:`0 ${Ce}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${O}-split ${O}-item`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${O}-split ${O}-header`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-split${O}-empty ${O}-footer`]:{borderTop:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-loading ${O}-spin-nested-loading`]:{minHeight:Y},[`${O}-split${O}-something-after-last-item ${k}-spin-container > ${O}-items > ${O}-item:last-child`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-lg ${O}-item`]:{padding:Qe},[`${O}-sm ${O}-item`]:{padding:Re},[`${O}:not(${O}-vertical)`]:{[`${O}-item-no-flex`]:{[`${O}-item-action`]:{float:"right"}}}}};var ie=(0,I.Z)("List",G=>{const O=(0,$.TS)(G,{listBorderedCls:`${G.componentCls}-bordered`,minHeight:G.controlHeightLG});return[H(O),B(O),K(O)]},G=>({contentWidth:220,itemPadding:`${G.paddingContentVertical}px 0`,itemPaddingSM:`${G.paddingContentVerticalSM}px ${G.paddingContentHorizontal}px`,itemPaddingLG:`${G.paddingContentVerticalLG}px ${G.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:G.padding,metaMarginBottom:G.padding,avatarMarginRight:G.padding,titleMarginBottom:G.paddingSM,descriptionFontSize:G.fontSize})),ce=function(G,O){var k={};for(var Y in G)Object.prototype.hasOwnProperty.call(G,Y)&&O.indexOf(Y)<0&&(k[Y]=G[Y]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Y=Object.getOwnPropertySymbols(G);P(Ot,jt)=>{var Gt;U(Ot),D(jt),k&&k[At]&&((Gt=k==null?void 0:k[At])===null||Gt===void 0||Gt.call(k,Ot,jt))},he=Se("onChange"),We=Se("onShowSizeChange"),de=(At,Ot)=>{if(!He)return null;let jt;return typeof ke=="function"?jt=ke(At):ke?jt=At[ke]:jt=At.key,jt||(jt=`list-item-${Ot}`),s.createElement(s.Fragment,{key:jt},He(At,Ot))},le=()=>!!(Qe||k||mt),ve=ee("list",Y),[xe,Ze]=ie(ve);let pe=Nt;typeof pe=="boolean"&&(pe={spinning:pe});const Je=pe&&pe.spinning;let Ae="";switch(Mt){case"large":Ae="lg";break;case"small":Ae="sm";break;default:break}const oe=o()(ve,{[`${ve}-vertical`]:Re==="vertical",[`${ve}-${Ae}`]:Ae,[`${ve}-split`]:Q,[`${ve}-bordered`]:P,[`${ve}-loading`]:Je,[`${ve}-grid`]:!!Ve,[`${ve}-something-after-last-item`]:le(),[`${ve}-rtl`]:X==="rtl"},re==null?void 0:re.className,fe,Ce,Ze),ye=(0,n.Z)(Ie,{total:qe.length,current:V,pageSize:N},k||{}),Be=Math.ceil(ye.total/ye.pageSize);ye.current>Be&&(ye.current=Be);const De=k?s.createElement("div",{className:o()(`${ve}-pagination`,`${ve}-pagination-align-${(O=ye==null?void 0:ye.align)!==null&&O!==void 0?O:"end"}`)},s.createElement(C.Z,Object.assign({},ye,{onChange:he,onShowSizeChange:We}))):null;let Pe=(0,i.Z)(qe);k&&qe.length>(ye.current-1)*ye.pageSize&&(Pe=(0,i.Z)(qe).splice((ye.current-1)*ye.pageSize,ye.pageSize));const we=Object.keys(Ve||{}).some(At=>["xs","sm","md","lg","xl","xxl"].includes(At)),Le=(0,m.Z)(we),Ye=s.useMemo(()=>{for(let At=0;At{if(!Ve)return;const At=Ye&&Ve[Ye]?Ve[Ye]:Ve.column;if(At)return{width:`${100/At}%`,maxWidth:`${100/At}%`}},[Ve==null?void 0:Ve.column,Ye]);let dt=Je&&s.createElement("div",{style:{minHeight:53}});if(Pe.length>0){const At=Pe.map((Ot,jt)=>de(Ot,jt));dt=Ve?s.createElement(h.Z,{gutter:Ve.gutter},s.Children.map(At,Ot=>s.createElement("div",{key:Ot==null?void 0:Ot.key,style:Ue},Ot))):s.createElement("ul",{className:`${ve}-items`},At)}else!Me&&!Je&&(dt=s.createElement("div",{className:`${ve}-empty-text`},et&&et.emptyText||(se==null?void 0:se("List"))||s.createElement(v.Z,{componentName:"List"})));const bt=ye.position||"bottom",ft=s.useMemo(()=>({grid:Ve,itemLayout:Re}),[JSON.stringify(Ve),Re]);return xe(s.createElement(y.Provider,{value:ft},s.createElement("div",Object.assign({style:Object.assign(Object.assign({},re==null?void 0:re.style),ge),className:oe},Fe),(bt==="top"||bt==="both")&&De,wt&&s.createElement("div",{className:`${ve}-header`},wt),s.createElement(p.Z,Object.assign({},pe),dt,Me),mt&&s.createElement("div",{className:`${ve}-footer`},mt),Qe||(bt==="bottom"||bt==="both")&&De)))}te.Item=A;var W=te},10520:function(M,b,e){"use strict";var i=e(58757);const t=(0,i.createContext)(void 0);b.Z=t},80076:function(M,b,e){"use strict";var i=e(57522),t=e(81872),o=e(7056),s=e(38107);const n="${label} is not a valid ${type}",c={locale:"en",Pagination:i.Z,DatePicker:o.Z,TimePicker:s.Z,Calendar:t.Z,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",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"},PageHeader:{back:"Back"},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:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},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"},ColorPicker:{presetEmpty:"Empty"}};b.Z=c},29487:function(M,b,e){"use strict";var i=e(58757),t=e(10520),o=e(80076);const s=(n,c)=>{const l=i.useContext(t.Z),v=i.useMemo(()=>{var m;const C=c||o.Z[n],p=(m=l==null?void 0:l[n])!==null&&m!==void 0?m:{};return Object.assign(Object.assign({},typeof C=="function"?C():C),p||{})},[n,c,l]),h=i.useMemo(()=>{const m=l==null?void 0:l.locale;return l!=null&&l.exist&&!m?o.Z.locale:m},[l]);return[v,h]};b.Z=s},1597:function(M,b,e){"use strict";e.d(b,{Z:function(){return C}});var i=e(23737),t={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},o=t,n={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};const c={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},o),timePickerLocale:Object.assign({},n)};c.lang.ok="\u786E\u5B9A";var l=c,v=l;const h="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";var C={locale:"zh-cn",Pagination:i.Z,DatePicker:l,TimePicker:n,Calendar:v,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}}},81285:function(M,b,e){"use strict";e.d(b,{J:function(){return c}});var i=e(58757),t=e(43528),o=e(71219),s=function(l,v){var h={};for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&v.indexOf(m)<0&&(h[m]=l[m]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,m=Object.getOwnPropertySymbols(l);C{const{children:h}=l,m=s(l,["children"]),C=i.useContext(n),p=i.useMemo(()=>Object.assign(Object.assign({},C),m),[C,m.prefixCls,m.mode,m.selectable]);return i.createElement(n.Provider,{value:p},i.createElement(t.BR,null,(0,o.t4)(h)?i.cloneElement(h,{ref:v}):h))});b.Z=n},85706:function(M,b,e){"use strict";e.d(b,{Z:function(){return et}});var i=e(87854),t=e(58757),o=e(67423),s=e(87608),n=e.n(s),c=e(61836),l=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{const{prefixCls:ue,className:V,dashed:U}=Fe,N=l(Fe,["prefixCls","className","dashed"]),{getPrefixCls:D}=t.useContext(c.E_),ee=D("menu",ue),se=n()({[`${ee}-item-divider-dashed`]:!!U},V);return t.createElement(i.iz,Object.assign({className:se},N))},m=e(42156),C=e(98186),p=e(74820),S=e(37047),y=(0,t.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),F=Fe=>{var ue;const{className:V,children:U,icon:N,title:D,danger:ee}=Fe,{prefixCls:se,firstLevel:X,direction:re,disableMenuItemTitleTooltip:Ie,inlineCollapsed:Se}=t.useContext(y),he=Ze=>{const pe=t.createElement("span",{className:`${se}-title-content`},U);return(!N||(0,S.l$)(U)&&U.type==="span")&&U&&Ze&&X&&typeof U=="string"?t.createElement("div",{className:`${se}-inline-collapsed-noicon`},U.charAt(0)):pe},{siderCollapsed:We}=t.useContext(o.D);let de=D;typeof D=="undefined"?de=X?U:"":D===!1&&(de="");const le={title:de};!We&&!Se&&(le.title=null,le.open=!1);const ve=(0,m.Z)(U).length;let xe=t.createElement(i.ck,Object.assign({},(0,C.Z)(Fe,["title","icon","danger"]),{className:n()({[`${se}-item-danger`]:ee,[`${se}-item-only-child`]:(N?ve+1:ve)===1},V),title:typeof D=="string"?D:void 0}),(0,S.Tm)(N,{className:n()((0,S.l$)(N)?(ue=N.props)===null||ue===void 0?void 0:ue.className:"",`${se}-item-icon`)}),he(Se));return Ie||(xe=t.createElement(p.Z,Object.assign({},le,{placement:re==="rtl"?"left":"right",overlayClassName:`${se}-inline-collapsed-tooltip`}),xe)),xe},T=Fe=>{var ue;const{popupClassName:V,icon:U,title:N,theme:D}=Fe,ee=t.useContext(y),{prefixCls:se,inlineCollapsed:X,theme:re}=ee,Ie=(0,i.Xl)();let Se;if(!U)Se=X&&!Ie.length&&N&&typeof N=="string"?t.createElement("div",{className:`${se}-inline-collapsed-noicon`},N.charAt(0)):t.createElement("span",{className:`${se}-title-content`},N);else{const We=(0,S.l$)(N)&&N.type==="span";Se=t.createElement(t.Fragment,null,(0,S.Tm)(U,{className:n()((0,S.l$)(U)?(ue=U.props)===null||ue===void 0?void 0:ue.className:"",`${se}-item-icon`)}),We?N:t.createElement("span",{className:`${se}-title-content`},N))}const he=t.useMemo(()=>Object.assign(Object.assign({},ee),{firstLevel:!1}),[ee]);return t.createElement(y.Provider,{value:he},t.createElement(i.Wd,Object.assign({},(0,C.Z)(Fe,["icon"]),{title:Se,popupClassName:n()(se,V,`${se}-${D||re}`)})))},z=e(18974),A=e(51729),L=e(90881),I=e(81285),$=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{if(ue&&typeof ue=="object"){const U=ue,{label:N,children:D,key:ee,type:se}=U,X=$(U,["label","children","key","type"]),re=ee!=null?ee:`tmp-${V}`;return D||se==="group"?se==="group"?t.createElement(i.BW,Object.assign({key:re},X,{title:N}),B(D)):t.createElement(T,Object.assign({key:re},X,{title:N}),B(D)):se==="divider"?t.createElement(h,Object.assign({key:re},X)):t.createElement(F,Object.assign({key:re},X),N)}return null}).filter(ue=>ue)}function K(Fe){return t.useMemo(()=>Fe&&B(Fe),[Fe])}var H=e(66671),ie=e(78330),ce=e(41086),te=e(1016),W=e(28107),G=e(52628),O=e(22151),Y=Fe=>{const{componentCls:ue,motionDurationSlow:V,horizontalLineHeight:U,colorSplit:N,lineWidth:D,lineType:ee,itemPaddingInline:se}=Fe;return{[`${ue}-horizontal`]:{lineHeight:U,border:0,borderBottom:`${D}px ${ee} ${N}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ue}-item, ${ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:se},[`> ${ue}-item:hover, + ${L}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${L}-affix-wrapper-focused`]:{zIndex:2}}}}};function T(A){return(0,o.TS)(A,{inputAffixPadding:A.paddingXXS,inputPaddingVertical:Math.max(Math.round((A.controlHeight-A.fontSize*A.lineHeight)/2*10)/10-A.lineWidth,3),inputPaddingVerticalLG:Math.ceil((A.controlHeightLG-A.fontSizeLG*A.lineHeightLG)/2*10)/10-A.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((A.controlHeightSM-A.fontSize*A.lineHeight)/2*10)/10-A.lineWidth,0),inputPaddingHorizontal:A.paddingSM-A.lineWidth,inputPaddingHorizontalSM:A.paddingXS-A.lineWidth,inputPaddingHorizontalLG:A.controlPaddingHorizontal-A.lineWidth,inputBorderHoverColor:A.colorPrimaryHover,inputBorderActiveColor:A.colorPrimaryHover})}const z=A=>{const{componentCls:L,paddingLG:I}=A,$=`${L}-textarea`;return{[$]:{position:"relative","&-show-count":{[`> ${L}`]:{height:"100%"},[`${L}-data-count`]:{position:"absolute",bottom:-A.fontSize*A.lineHeight,insetInlineEnd:0,color:A.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${L}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${$}-has-feedback`]:{[`${L}`]:{paddingInlineEnd:I}},[`&-affix-wrapper${L}-affix-wrapper`]:{padding:0,[`> textarea${L}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${L}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${L}-clear-icon`]:{position:"absolute",insetInlineEnd:A.paddingXS,insetBlockStart:A.paddingXS},[`${$}-suffix`]:{position:"absolute",top:0,insetInlineEnd:A.inputPaddingHorizontal,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};b.ZP=(0,s.Z)("Input",A=>{const L=T(A);return[w(L),z(L),Z(L),F(L),R(L),(0,t.c)(L)]})},67423:function(M,b,e){"use strict";e.d(b,{D:function(){return T},Z:function(){return L}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function($,B){return t.createElement(n.Z,(0,i.Z)({},$,{ref:B,icon:s}))},l=t.forwardRef(c),v=e(99142),h=e(91169),m=e(87608),C=e.n(m),p=e(98186),w=I=>!isNaN(parseFloat(I))&&isFinite(I),y=e(61836),Z=e(79802),F=function(I,$){var B={};for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&$.indexOf(K)<0&&(B[K]=I[K]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,K=Object.getOwnPropertySymbols(I);H{let I=0;return function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return I+=1,`${$}${I}`}})();var L=t.forwardRef((I,$)=>{const{prefixCls:B,className:K,trigger:H,children:ie,defaultCollapsed:ce=!1,theme:te="dark",style:W={},collapsible:G=!1,reverseArrow:O=!1,width:k=200,collapsedWidth:Y=80,zeroWidthTriggerStyle:P,breakpoint:Q,onCollapse:fe,onBreakpoint:Ce}=I,ge=F(I,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Me}=(0,t.useContext)(Z.Gs),[Ne,Qe]=(0,t.useState)("collapsed"in I?I.collapsed:ce),[Ve,qe]=(0,t.useState)(!1);(0,t.useEffect)(()=>{"collapsed"in I&&Qe(I.collapsed)},[I.collapsed]);const Mt=(et,Fe)=>{"collapsed"in I||Qe(et),fe==null||fe(et,Fe)},wt=(0,t.useRef)();wt.current=et=>{qe(et.matches),Ce==null||Ce(et.matches),Ne!==et.matches&&Mt(et.matches,"responsive")},(0,t.useEffect)(()=>{function et(ue){return wt.current(ue)}let Fe;if(typeof window!="undefined"){const{matchMedia:ue}=window;if(ue&&Q&&Q in R){Fe=ue(`(max-width: ${R[Q]})`);try{Fe.addEventListener("change",et)}catch(V){Fe.addListener(et)}et(Fe)}}return()=>{try{Fe==null||Fe.removeEventListener("change",et)}catch(ue){Fe==null||Fe.removeListener(et)}}},[Q]),(0,t.useEffect)(()=>{const et=z("ant-sider-");return Me.addSider(et),()=>Me.removeSider(et)},[]);const gt=()=>{Mt(!Ne,"clickTrigger")},{getPrefixCls:Lt}=(0,t.useContext)(y.E_),ke=()=>{const et=Lt("layout-sider",B),Fe=(0,p.Z)(ge,["collapsed"]),ue=Ne?Y:k,V=w(ue)?`${ue}px`:String(ue),U=parseFloat(String(Y||0))===0?t.createElement("span",{onClick:gt,className:C()(`${et}-zero-width-trigger`,`${et}-zero-width-trigger-${O?"right":"left"}`),style:P},H||t.createElement(l,null)):null,ee={expanded:O?t.createElement(h.Z,null):t.createElement(v.Z,null),collapsed:O?t.createElement(v.Z,null):t.createElement(h.Z,null)}[Ne?"collapsed":"expanded"],se=H!==null?U||t.createElement("div",{className:`${et}-trigger`,onClick:gt,style:{width:V}},H||ee):null,X=Object.assign(Object.assign({},W),{flex:`0 0 ${V}`,maxWidth:V,minWidth:V,width:V}),re=C()(et,`${et}-${te}`,{[`${et}-collapsed`]:!!Ne,[`${et}-has-trigger`]:G&&H!==null&&!U,[`${et}-below`]:!!Ve,[`${et}-zero-width`]:parseFloat(V)===0},K);return t.createElement("aside",Object.assign({className:re},Fe,{style:X,ref:$}),t.createElement("div",{className:`${et}-children`},ie),G||Ve&&U?se:null)},He=t.useMemo(()=>({siderCollapsed:Ne}),[Ne]);return t.createElement(T.Provider,{value:He},ke())})},79802:function(M,b,e){"use strict";e.d(b,{VY:function(){return A},$_:function(){return z},h4:function(){return T},Gs:function(){return w},ZP:function(){return L}});var i=e(29140),t=e(87608),o=e.n(t),s=e(98186),n=e(58757),c=e(61836),l=e(52628),v=e(22151),m=I=>{const{componentCls:$,colorBgContainer:B,colorBgBody:K,colorText:H}=I;return{[`${$}-sider-light`]:{background:B,[`${$}-sider-trigger`]:{color:H,background:B},[`${$}-sider-zero-width-trigger`]:{color:H,background:B,border:`1px solid ${K}`,borderInlineStart:0}}}};const C=I=>{const{antCls:$,componentCls:B,colorText:K,colorTextLightSolid:H,colorBgHeader:ie,colorBgBody:ce,colorBgTrigger:te,layoutHeaderHeight:W,layoutHeaderPaddingInline:G,layoutHeaderColor:O,layoutFooterPadding:k,layoutTriggerHeight:Y,layoutZeroTriggerSize:P,motionDurationMid:Q,motionDurationSlow:fe,fontSize:Ce,borderRadius:ge}=I;return{[B]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ce,"&, *":{boxSizing:"border-box"},[`&${B}-has-sider`]:{flexDirection:"row",[`> ${B}, > ${B}-content`]:{width:0}},[`${B}-header, &${B}-footer`]:{flex:"0 0 auto"},[`${B}-sider`]:{position:"relative",minWidth:0,background:ie,transition:`all ${Q}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${$}-menu${$}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Y},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Y,color:H,lineHeight:`${Y}px`,textAlign:"center",background:te,cursor:"pointer",transition:`all ${Q}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:W,insetInlineEnd:-P,zIndex:1,width:P,height:P,color:H,fontSize:I.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ie,borderStartStartRadius:0,borderStartEndRadius:ge,borderEndEndRadius:ge,borderEndStartRadius:0,cursor:"pointer",transition:`background ${fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-P,borderStartStartRadius:ge,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ge}}}}},m(I)),{"&-rtl":{direction:"rtl"}}),[`${B}-header`]:{height:W,paddingInline:G,color:O,lineHeight:`${W}px`,background:ie,[`${$}-menu`]:{lineHeight:"inherit"}},[`${B}-footer`]:{padding:k,color:K,fontSize:Ce,background:ce},[`${B}-content`]:{flex:"auto",minHeight:0}}};var p=(0,l.Z)("Layout",I=>{const{colorText:$,controlHeightSM:B,controlHeight:K,controlHeightLG:H,marginXXS:ie}=I,ce=H*1.25,te=(0,v.TS)(I,{layoutHeaderHeight:K*2,layoutHeaderPaddingInline:ce,layoutHeaderColor:$,layoutFooterPadding:`${B}px ${ce}px`,layoutTriggerHeight:H+ie*2,layoutZeroTriggerSize:H});return[C(te)]},I=>{const{colorBgLayout:$}=I;return{colorBgHeader:"#001529",colorBgBody:$,colorBgTrigger:"#002140"}}),S=function(I,$){var B={};for(var K in I)Object.prototype.hasOwnProperty.call(I,K)&&$.indexOf(K)<0&&(B[K]=I[K]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var H=0,K=Object.getOwnPropertySymbols(I);Hnull,removeSider:()=>null}});function y(I){let{suffixCls:$,tagName:B,displayName:K}=I;return H=>n.forwardRef((ce,te)=>n.createElement(H,Object.assign({ref:te,suffixCls:$,tagName:B},ce)))}const Z=n.forwardRef((I,$)=>{const{prefixCls:B,suffixCls:K,className:H,tagName:ie}=I,ce=S(I,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:te}=n.useContext(c.E_),W=te("layout",B),[G,O]=p(W),k=K?`${W}-${K}`:W;return G(n.createElement(ie,Object.assign({className:o()(B||k,H,O),ref:$},ce)))}),F=n.forwardRef((I,$)=>{const{direction:B}=n.useContext(c.E_),[K,H]=n.useState([]),{prefixCls:ie,className:ce,rootClassName:te,children:W,hasSider:G,tagName:O,style:k}=I,Y=S(I,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),P=(0,s.Z)(Y,["suffixCls"]),{getPrefixCls:Q,layout:fe}=n.useContext(c.E_),Ce=Q("layout",ie),[ge,Me]=p(Ce),Ne=o()(Ce,{[`${Ce}-has-sider`]:typeof G=="boolean"?G:K.length>0,[`${Ce}-rtl`]:B==="rtl"},fe==null?void 0:fe.className,ce,te,Me),Qe=n.useMemo(()=>({siderHook:{addSider:Ve=>{H(qe=>[].concat((0,i.Z)(qe),[Ve]))},removeSider:Ve=>{H(qe=>qe.filter(Mt=>Mt!==Ve))}}}),[]);return ge(n.createElement(w.Provider,{value:Qe},n.createElement(O,Object.assign({ref:$,className:Ne,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),k)},P),W)))}),R=y({tagName:"div",displayName:"Layout"})(F),T=y({suffixCls:"header",tagName:"header",displayName:"Header"})(Z),z=y({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Z),A=y({suffixCls:"content",tagName:"main",displayName:"Content"})(Z);var L=R},37617:function(M,b,e){"use strict";e.d(b,{Z:function(){return W}});var i=e(29140),t=e(87608),o=e.n(t),s=e(58757),n=e(44818),c=e(87078),l=e(61836),v=e(10401),h=e(67665),m=e(60059),C=e(35910),p=e(79233),S=e(37047),w=e(91334);const y=s.createContext({}),Z=y.Consumer;var F=function(G,O){var k={};for(var Y in G)Object.prototype.hasOwnProperty.call(G,Y)&&O.indexOf(Y)<0&&(k[Y]=G[Y]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Y=Object.getOwnPropertySymbols(G);P{var{prefixCls:O,className:k,avatar:Y,title:P,description:Q}=G,fe=F(G,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:Ce}=(0,s.useContext)(l.E_),ge=Ce("list",O),Me=o()(`${ge}-item-meta`,k),Ne=s.createElement("div",{className:`${ge}-item-meta-content`},P&&s.createElement("h4",{className:`${ge}-item-meta-title`},P),Q&&s.createElement("div",{className:`${ge}-item-meta-description`},Q));return s.createElement("div",Object.assign({},fe,{className:Me}),Y&&s.createElement("div",{className:`${ge}-item-meta-avatar`},Y),(P||Q)&&Ne)},T=(G,O)=>{var{prefixCls:k,children:Y,actions:P,extra:Q,className:fe,colStyle:Ce}=G,ge=F(G,["prefixCls","children","actions","extra","className","colStyle"]);const{grid:Me,itemLayout:Ne}=(0,s.useContext)(y),{getPrefixCls:Qe}=(0,s.useContext)(l.E_),Ve=()=>{let ke;return s.Children.forEach(Y,He=>{typeof He=="string"&&(ke=!0)}),ke&&s.Children.count(Y)>1},qe=()=>Ne==="vertical"?!!Q:!Ve(),Mt=Qe("list",k),wt=P&&P.length>0&&s.createElement("ul",{className:`${Mt}-item-action`,key:"actions"},P.map((ke,He)=>s.createElement("li",{key:`${Mt}-item-action-${He}`},ke,He!==P.length-1&&s.createElement("em",{className:`${Mt}-item-action-split`})))),gt=Me?"div":"li",Lt=s.createElement(gt,Object.assign({},ge,Me?{}:{ref:O},{className:o()(`${Mt}-item`,{[`${Mt}-item-no-flex`]:!qe()},fe)}),Ne==="vertical"&&Q?[s.createElement("div",{className:`${Mt}-item-main`,key:"content"},Y,wt),s.createElement("div",{className:`${Mt}-item-extra`,key:"extra"},Q)]:[Y,wt,(0,S.Tm)(Q,{key:"extra"})]);return Me?s.createElement(w.Z,{ref:O,flex:1,style:Ce},Lt):Lt},z=(0,s.forwardRef)(T);z.Meta=R;var A=z,L=e(78330),I=e(52628),$=e(22151);const B=G=>{const{listBorderedCls:O,componentCls:k,paddingLG:Y,margin:P,itemPaddingSM:Q,itemPaddingLG:fe,marginLG:Ce,borderRadiusLG:ge}=G;return{[`${O}`]:{border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,borderRadius:ge,[`${k}-header,${k}-footer,${k}-item`]:{paddingInline:Y},[`${k}-pagination`]:{margin:`${P}px ${Ce}px`}},[`${O}${k}-sm`]:{[`${k}-item,${k}-header,${k}-footer`]:{padding:Q}},[`${O}${k}-lg`]:{[`${k}-item,${k}-header,${k}-footer`]:{padding:fe}}}},K=G=>{const{componentCls:O,screenSM:k,screenMD:Y,marginLG:P,marginSM:Q,margin:fe}=G;return{[`@media screen and (max-width:${Y})`]:{[`${O}`]:{[`${O}-item`]:{[`${O}-item-action`]:{marginInlineStart:P}}},[`${O}-vertical`]:{[`${O}-item`]:{[`${O}-item-extra`]:{marginInlineStart:P}}}},[`@media screen and (max-width: ${k})`]:{[`${O}`]:{[`${O}-item`]:{flexWrap:"wrap",[`${O}-action`]:{marginInlineStart:Q}}},[`${O}-vertical`]:{[`${O}-item`]:{flexWrap:"wrap-reverse",[`${O}-item-main`]:{minWidth:G.contentWidth},[`${O}-item-extra`]:{margin:`auto auto ${fe}px`}}}}}},H=G=>{const{componentCls:O,antCls:k,controlHeight:Y,minHeight:P,paddingSM:Q,marginLG:fe,padding:Ce,itemPadding:ge,colorPrimary:Me,itemPaddingSM:Ne,itemPaddingLG:Qe,paddingXS:Ve,margin:qe,colorText:Mt,colorTextDescription:wt,motionDurationSlow:gt,lineWidth:Lt,headerBg:ke,footerBg:He,emptyTextPadding:et,metaMarginBottom:Fe,avatarMarginRight:ue,titleMarginBottom:V,descriptionFontSize:U}=G,N={};return["start","center","end"].forEach(D=>{N[`&-align-${D}`]={textAlign:D}}),{[`${O}`]:Object.assign(Object.assign({},(0,L.Wf)(G)),{position:"relative","*":{outline:"none"},[`${O}-header`]:{background:ke},[`${O}-footer`]:{background:He},[`${O}-header, ${O}-footer`]:{paddingBlock:Q},[`${O}-pagination`]:Object.assign(Object.assign({marginBlockStart:fe},N),{[`${k}-pagination-options`]:{textAlign:"start"}}),[`${O}-spin`]:{minHeight:P,textAlign:"center"},[`${O}-items`]:{margin:0,padding:0,listStyle:"none"},[`${O}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:ge,color:Mt,[`${O}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${O}-item-meta-avatar`]:{marginInlineEnd:ue},[`${O}-item-meta-content`]:{flex:"1 0",width:0,color:Mt},[`${O}-item-meta-title`]:{margin:`0 0 ${G.marginXXS}px 0`,color:Mt,fontSize:G.fontSize,lineHeight:G.lineHeight,"> a":{color:Mt,transition:`all ${gt}`,["&:hover"]:{color:Me}}},[`${O}-item-meta-description`]:{color:wt,fontSize:U,lineHeight:G.lineHeight}},[`${O}-item-action`]:{flex:"0 0 auto",marginInlineStart:G.marginXXL,padding:0,fontSize:0,listStyle:"none",["& > li"]:{position:"relative",display:"inline-block",padding:`0 ${Ve}px`,color:wt,fontSize:G.fontSize,lineHeight:G.lineHeight,textAlign:"center",["&:first-child"]:{paddingInlineStart:0}},[`${O}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:Lt,height:Math.ceil(G.fontSize*G.lineHeight)-G.marginXXS*2,transform:"translateY(-50%)",backgroundColor:G.colorSplit}}},[`${O}-empty`]:{padding:`${Ce}px 0`,color:wt,fontSize:G.fontSizeSM,textAlign:"center"},[`${O}-empty-text`]:{padding:et,color:G.colorTextDisabled,fontSize:G.fontSize,textAlign:"center"},[`${O}-item-no-flex`]:{display:"block"}}),[`${O}-grid ${k}-col > ${O}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:qe,paddingBlock:0,borderBlockEnd:"none"},[`${O}-vertical ${O}-item`]:{alignItems:"initial",[`${O}-item-main`]:{display:"block",flex:1},[`${O}-item-extra`]:{marginInlineStart:fe},[`${O}-item-meta`]:{marginBlockEnd:Fe,[`${O}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:V,color:Mt,fontSize:G.fontSizeLG,lineHeight:G.lineHeightLG}},[`${O}-item-action`]:{marginBlockStart:Ce,marginInlineStart:"auto","> li":{padding:`0 ${Ce}px`,["&:first-child"]:{paddingInlineStart:0}}}},[`${O}-split ${O}-item`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`,["&:last-child"]:{borderBlockEnd:"none"}},[`${O}-split ${O}-header`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-split${O}-empty ${O}-footer`]:{borderTop:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-loading ${O}-spin-nested-loading`]:{minHeight:Y},[`${O}-split${O}-something-after-last-item ${k}-spin-container > ${O}-items > ${O}-item:last-child`]:{borderBlockEnd:`${G.lineWidth}px ${G.lineType} ${G.colorSplit}`},[`${O}-lg ${O}-item`]:{padding:Qe},[`${O}-sm ${O}-item`]:{padding:Ne},[`${O}:not(${O}-vertical)`]:{[`${O}-item-no-flex`]:{[`${O}-item-action`]:{float:"right"}}}}};var ie=(0,I.Z)("List",G=>{const O=(0,$.TS)(G,{listBorderedCls:`${G.componentCls}-bordered`,minHeight:G.controlHeightLG});return[H(O),B(O),K(O)]},G=>({contentWidth:220,itemPadding:`${G.paddingContentVertical}px 0`,itemPaddingSM:`${G.paddingContentVerticalSM}px ${G.paddingContentHorizontal}px`,itemPaddingLG:`${G.paddingContentVerticalLG}px ${G.paddingContentHorizontalLG}px`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:G.padding,metaMarginBottom:G.padding,avatarMarginRight:G.padding,titleMarginBottom:G.paddingSM,descriptionFontSize:G.fontSize})),ce=function(G,O){var k={};for(var Y in G)Object.prototype.hasOwnProperty.call(G,Y)&&O.indexOf(Y)<0&&(k[Y]=G[Y]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,Y=Object.getOwnPropertySymbols(G);P(Ot,jt)=>{var Gt;U(Ot),D(jt),k&&k[At]&&((Gt=k==null?void 0:k[At])===null||Gt===void 0||Gt.call(k,Ot,jt))},he=Se("onChange"),We=Se("onShowSizeChange"),de=(At,Ot)=>{if(!He)return null;let jt;return typeof ke=="function"?jt=ke(At):ke?jt=At[ke]:jt=At.key,jt||(jt=`list-item-${Ot}`),s.createElement(s.Fragment,{key:jt},He(At,Ot))},le=()=>!!(Qe||k||gt),ve=ee("list",Y),[xe,Ze]=ie(ve);let pe=Lt;typeof pe=="boolean"&&(pe={spinning:pe});const Je=pe&&pe.spinning;let Ae="";switch(Mt){case"large":Ae="lg";break;case"small":Ae="sm";break;default:break}const oe=o()(ve,{[`${ve}-vertical`]:Ne==="vertical",[`${ve}-${Ae}`]:Ae,[`${ve}-split`]:Q,[`${ve}-bordered`]:P,[`${ve}-loading`]:Je,[`${ve}-grid`]:!!Ve,[`${ve}-something-after-last-item`]:le(),[`${ve}-rtl`]:X==="rtl"},re==null?void 0:re.className,fe,Ce,Ze),ye=(0,n.Z)(Ie,{total:qe.length,current:V,pageSize:N},k||{}),Be=Math.ceil(ye.total/ye.pageSize);ye.current>Be&&(ye.current=Be);const De=k?s.createElement("div",{className:o()(`${ve}-pagination`,`${ve}-pagination-align-${(O=ye==null?void 0:ye.align)!==null&&O!==void 0?O:"end"}`)},s.createElement(C.Z,Object.assign({},ye,{onChange:he,onShowSizeChange:We}))):null;let Pe=(0,i.Z)(qe);k&&qe.length>(ye.current-1)*ye.pageSize&&(Pe=(0,i.Z)(qe).splice((ye.current-1)*ye.pageSize,ye.pageSize));const we=Object.keys(Ve||{}).some(At=>["xs","sm","md","lg","xl","xxl"].includes(At)),Le=(0,m.Z)(we),Ye=s.useMemo(()=>{for(let At=0;At{if(!Ve)return;const At=Ye&&Ve[Ye]?Ve[Ye]:Ve.column;if(At)return{width:`${100/At}%`,maxWidth:`${100/At}%`}},[Ve==null?void 0:Ve.column,Ye]);let dt=Je&&s.createElement("div",{style:{minHeight:53}});if(Pe.length>0){const At=Pe.map((Ot,jt)=>de(Ot,jt));dt=Ve?s.createElement(h.Z,{gutter:Ve.gutter},s.Children.map(At,Ot=>s.createElement("div",{key:Ot==null?void 0:Ot.key,style:Ue},Ot))):s.createElement("ul",{className:`${ve}-items`},At)}else!Me&&!Je&&(dt=s.createElement("div",{className:`${ve}-empty-text`},et&&et.emptyText||(se==null?void 0:se("List"))||s.createElement(v.Z,{componentName:"List"})));const bt=ye.position||"bottom",ft=s.useMemo(()=>({grid:Ve,itemLayout:Ne}),[JSON.stringify(Ve),Ne]);return xe(s.createElement(y.Provider,{value:ft},s.createElement("div",Object.assign({style:Object.assign(Object.assign({},re==null?void 0:re.style),ge),className:oe},Fe),(bt==="top"||bt==="both")&&De,wt&&s.createElement("div",{className:`${ve}-header`},wt),s.createElement(p.Z,Object.assign({},pe),dt,Me),gt&&s.createElement("div",{className:`${ve}-footer`},gt),Qe||(bt==="bottom"||bt==="both")&&De)))}te.Item=A;var W=te},10520:function(M,b,e){"use strict";var i=e(58757);const t=(0,i.createContext)(void 0);b.Z=t},80076:function(M,b,e){"use strict";var i=e(57522),t=e(81872),o=e(7056),s=e(38107);const n="${label} is not a valid ${type}",c={locale:"en",Pagination:i.Z,DatePicker:o.Z,TimePicker:s.Z,Calendar:t.Z,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",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"},PageHeader:{back:"Back"},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:n,method:n,array:n,object:n,number:n,date:n,boolean:n,integer:n,float:n,regexp:n,email:n,url:n,hex:n},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"},ColorPicker:{presetEmpty:"Empty"}};b.Z=c},29487:function(M,b,e){"use strict";var i=e(58757),t=e(10520),o=e(80076);const s=(n,c)=>{const l=i.useContext(t.Z),v=i.useMemo(()=>{var m;const C=c||o.Z[n],p=(m=l==null?void 0:l[n])!==null&&m!==void 0?m:{};return Object.assign(Object.assign({},typeof C=="function"?C():C),p||{})},[n,c,l]),h=i.useMemo(()=>{const m=l==null?void 0:l.locale;return l!=null&&l.exist&&!m?o.Z.locale:m},[l]);return[v,h]};b.Z=s},1597:function(M,b,e){"use strict";e.d(b,{Z:function(){return C}});var i=e(23737),t={locale:"zh_CN",today:"\u4ECA\u5929",now:"\u6B64\u523B",backToToday:"\u8FD4\u56DE\u4ECA\u5929",ok:"\u786E\u5B9A",timeSelect:"\u9009\u62E9\u65F6\u95F4",dateSelect:"\u9009\u62E9\u65E5\u671F",weekSelect:"\u9009\u62E9\u5468",clear:"\u6E05\u9664",month:"\u6708",year:"\u5E74",previousMonth:"\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",nextMonth:"\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",monthSelect:"\u9009\u62E9\u6708\u4EFD",yearSelect:"\u9009\u62E9\u5E74\u4EFD",decadeSelect:"\u9009\u62E9\u5E74\u4EE3",yearFormat:"YYYY\u5E74",dayFormat:"D\u65E5",dateFormat:"YYYY\u5E74M\u6708D\u65E5",dateTimeFormat:"YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",previousYear:"\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",nextYear:"\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",previousDecade:"\u4E0A\u4E00\u5E74\u4EE3",nextDecade:"\u4E0B\u4E00\u5E74\u4EE3",previousCentury:"\u4E0A\u4E00\u4E16\u7EAA",nextCentury:"\u4E0B\u4E00\u4E16\u7EAA"},o=t,n={placeholder:"\u8BF7\u9009\u62E9\u65F6\u95F4",rangePlaceholder:["\u5F00\u59CB\u65F6\u95F4","\u7ED3\u675F\u65F6\u95F4"]};const c={lang:Object.assign({placeholder:"\u8BF7\u9009\u62E9\u65E5\u671F",yearPlaceholder:"\u8BF7\u9009\u62E9\u5E74\u4EFD",quarterPlaceholder:"\u8BF7\u9009\u62E9\u5B63\u5EA6",monthPlaceholder:"\u8BF7\u9009\u62E9\u6708\u4EFD",weekPlaceholder:"\u8BF7\u9009\u62E9\u5468",rangePlaceholder:["\u5F00\u59CB\u65E5\u671F","\u7ED3\u675F\u65E5\u671F"],rangeYearPlaceholder:["\u5F00\u59CB\u5E74\u4EFD","\u7ED3\u675F\u5E74\u4EFD"],rangeMonthPlaceholder:["\u5F00\u59CB\u6708\u4EFD","\u7ED3\u675F\u6708\u4EFD"],rangeQuarterPlaceholder:["\u5F00\u59CB\u5B63\u5EA6","\u7ED3\u675F\u5B63\u5EA6"],rangeWeekPlaceholder:["\u5F00\u59CB\u5468","\u7ED3\u675F\u5468"]},o),timePickerLocale:Object.assign({},n)};c.lang.ok="\u786E\u5B9A";var l=c,v=l;const h="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";var C={locale:"zh-cn",Pagination:i.Z,DatePicker:l,TimePicker:n,Calendar:v,global:{placeholder:"\u8BF7\u9009\u62E9"},Table:{filterTitle:"\u7B5B\u9009",filterConfirm:"\u786E\u5B9A",filterReset:"\u91CD\u7F6E",filterEmptyText:"\u65E0\u7B5B\u9009\u9879",filterCheckall:"\u5168\u9009",filterSearchPlaceholder:"\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",selectAll:"\u5168\u9009\u5F53\u9875",selectInvert:"\u53CD\u9009\u5F53\u9875",selectNone:"\u6E05\u7A7A\u6240\u6709",selectionAll:"\u5168\u9009\u6240\u6709",sortTitle:"\u6392\u5E8F",expand:"\u5C55\u5F00\u884C",collapse:"\u5173\u95ED\u884C",triggerDesc:"\u70B9\u51FB\u964D\u5E8F",triggerAsc:"\u70B9\u51FB\u5347\u5E8F",cancelSort:"\u53D6\u6D88\u6392\u5E8F"},Modal:{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",justOkText:"\u77E5\u9053\u4E86"},Tour:{Next:"\u4E0B\u4E00\u6B65",Previous:"\u4E0A\u4E00\u6B65",Finish:"\u7ED3\u675F\u5BFC\u89C8"},Popconfirm:{cancelText:"\u53D6\u6D88",okText:"\u786E\u5B9A"},Transfer:{titles:["",""],searchPlaceholder:"\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",itemUnit:"\u9879",itemsUnit:"\u9879",remove:"\u5220\u9664",selectCurrent:"\u5168\u9009\u5F53\u9875",removeCurrent:"\u5220\u9664\u5F53\u9875",selectAll:"\u5168\u9009\u6240\u6709",removeAll:"\u5220\u9664\u5168\u90E8",selectInvert:"\u53CD\u9009\u5F53\u9875"},Upload:{uploading:"\u6587\u4EF6\u4E0A\u4F20\u4E2D",removeFile:"\u5220\u9664\u6587\u4EF6",uploadError:"\u4E0A\u4F20\u9519\u8BEF",previewFile:"\u9884\u89C8\u6587\u4EF6",downloadFile:"\u4E0B\u8F7D\u6587\u4EF6"},Empty:{description:"\u6682\u65E0\u6570\u636E"},Icon:{icon:"\u56FE\u6807"},Text:{edit:"\u7F16\u8F91",copy:"\u590D\u5236",copied:"\u590D\u5236\u6210\u529F",expand:"\u5C55\u5F00"},PageHeader:{back:"\u8FD4\u56DE"},Form:{optional:"\uFF08\u53EF\u9009\uFF09",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:h,method:h,array:h,object:h,number:h,date:h,boolean:h,integer:h,float:h,regexp:h,email:h,url:h,hex:h},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},Image:{preview:"\u9884\u89C8"},QRCode:{expired:"\u4E8C\u7EF4\u7801\u8FC7\u671F",refresh:"\u70B9\u51FB\u5237\u65B0"},ColorPicker:{presetEmpty:"\u6682\u65E0"}}},81285:function(M,b,e){"use strict";e.d(b,{J:function(){return c}});var i=e(58757),t=e(43528),o=e(71219),s=function(l,v){var h={};for(var m in l)Object.prototype.hasOwnProperty.call(l,m)&&v.indexOf(m)<0&&(h[m]=l[m]);if(l!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,m=Object.getOwnPropertySymbols(l);C{const{children:h}=l,m=s(l,["children"]),C=i.useContext(n),p=i.useMemo(()=>Object.assign(Object.assign({},C),m),[C,m.prefixCls,m.mode,m.selectable]);return i.createElement(n.Provider,{value:p},i.createElement(t.BR,null,(0,o.t4)(h)?i.cloneElement(h,{ref:v}):h))});b.Z=n},85706:function(M,b,e){"use strict";e.d(b,{Z:function(){return et}});var i=e(87854),t=e(58757),o=e(67423),s=e(87608),n=e.n(s),c=e(61836),l=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{const{prefixCls:ue,className:V,dashed:U}=Fe,N=l(Fe,["prefixCls","className","dashed"]),{getPrefixCls:D}=t.useContext(c.E_),ee=D("menu",ue),se=n()({[`${ee}-item-divider-dashed`]:!!U},V);return t.createElement(i.iz,Object.assign({className:se},N))},m=e(42156),C=e(98186),p=e(74820),S=e(37047),y=(0,t.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),F=Fe=>{var ue;const{className:V,children:U,icon:N,title:D,danger:ee}=Fe,{prefixCls:se,firstLevel:X,direction:re,disableMenuItemTitleTooltip:Ie,inlineCollapsed:Se}=t.useContext(y),he=Ze=>{const pe=t.createElement("span",{className:`${se}-title-content`},U);return(!N||(0,S.l$)(U)&&U.type==="span")&&U&&Ze&&X&&typeof U=="string"?t.createElement("div",{className:`${se}-inline-collapsed-noicon`},U.charAt(0)):pe},{siderCollapsed:We}=t.useContext(o.D);let de=D;typeof D=="undefined"?de=X?U:"":D===!1&&(de="");const le={title:de};!We&&!Se&&(le.title=null,le.open=!1);const ve=(0,m.Z)(U).length;let xe=t.createElement(i.ck,Object.assign({},(0,C.Z)(Fe,["title","icon","danger"]),{className:n()({[`${se}-item-danger`]:ee,[`${se}-item-only-child`]:(N?ve+1:ve)===1},V),title:typeof D=="string"?D:void 0}),(0,S.Tm)(N,{className:n()((0,S.l$)(N)?(ue=N.props)===null||ue===void 0?void 0:ue.className:"",`${se}-item-icon`)}),he(Se));return Ie||(xe=t.createElement(p.Z,Object.assign({},le,{placement:re==="rtl"?"left":"right",overlayClassName:`${se}-inline-collapsed-tooltip`}),xe)),xe},T=Fe=>{var ue;const{popupClassName:V,icon:U,title:N,theme:D}=Fe,ee=t.useContext(y),{prefixCls:se,inlineCollapsed:X,theme:re}=ee,Ie=(0,i.Xl)();let Se;if(!U)Se=X&&!Ie.length&&N&&typeof N=="string"?t.createElement("div",{className:`${se}-inline-collapsed-noicon`},N.charAt(0)):t.createElement("span",{className:`${se}-title-content`},N);else{const We=(0,S.l$)(N)&&N.type==="span";Se=t.createElement(t.Fragment,null,(0,S.Tm)(U,{className:n()((0,S.l$)(U)?(ue=U.props)===null||ue===void 0?void 0:ue.className:"",`${se}-item-icon`)}),We?N:t.createElement("span",{className:`${se}-title-content`},N))}const he=t.useMemo(()=>Object.assign(Object.assign({},ee),{firstLevel:!1}),[ee]);return t.createElement(y.Provider,{value:he},t.createElement(i.Wd,Object.assign({},(0,C.Z)(Fe,["icon"]),{title:Se,popupClassName:n()(se,V,`${se}-${D||re}`)})))},z=e(18974),A=e(51729),L=e(90881),I=e(81285),$=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{if(ue&&typeof ue=="object"){const U=ue,{label:N,children:D,key:ee,type:se}=U,X=$(U,["label","children","key","type"]),re=ee!=null?ee:`tmp-${V}`;return D||se==="group"?se==="group"?t.createElement(i.BW,Object.assign({key:re},X,{title:N}),B(D)):t.createElement(T,Object.assign({key:re},X,{title:N}),B(D)):se==="divider"?t.createElement(h,Object.assign({key:re},X)):t.createElement(F,Object.assign({key:re},X),N)}return null}).filter(ue=>ue)}function K(Fe){return t.useMemo(()=>Fe&&B(Fe),[Fe])}var H=e(66671),ie=e(78330),ce=e(41086),te=e(1016),W=e(28107),G=e(52628),O=e(22151),Y=Fe=>{const{componentCls:ue,motionDurationSlow:V,horizontalLineHeight:U,colorSplit:N,lineWidth:D,lineType:ee,itemPaddingInline:se}=Fe;return{[`${ue}-horizontal`]:{lineHeight:U,border:0,borderBottom:`${D}px ${ee} ${N}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${ue}-item, ${ue}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:se},[`> ${ue}-item:hover, > ${ue}-item-active, > ${ue}-submenu ${ue}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${ue}-item, ${ue}-submenu-title`]:{transition:[`border-color ${V}`,`background ${V}`].join(",")},[`${ue}-submenu-arrow`]:{display:"none"}}}},Q=Fe=>{let{componentCls:ue,menuArrowOffset:V}=Fe;return{[`${ue}-rtl`]:{direction:"rtl"},[`${ue}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${ue}-rtl${ue}-vertical, ${ue}-submenu-rtl ${ue}-vertical`]:{[`${ue}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${V})`},"&::after":{transform:`rotate(45deg) translateY(${V})`}}}}};const fe=Fe=>Object.assign({},(0,ie.oN)(Fe));var ge=(Fe,ue)=>{const{componentCls:V,itemColor:U,itemSelectedColor:N,groupTitleColor:D,itemBg:ee,subMenuItemBg:se,itemSelectedBg:X,activeBarHeight:re,activeBarWidth:Ie,activeBarBorderWidth:Se,motionDurationSlow:he,motionEaseInOut:We,motionEaseOut:de,itemPaddingInline:le,motionDurationMid:ve,itemHoverColor:xe,lineType:Ze,colorSplit:pe,itemDisabledColor:Je,dangerItemColor:Ae,dangerItemHoverColor:oe,dangerItemSelectedColor:ye,dangerItemActiveBg:Be,dangerItemSelectedBg:De,itemHoverBg:Pe,itemActiveBg:we,menuSubMenuBg:Le,horizontalItemSelectedColor:Ye,horizontalItemSelectedBg:Ue,horizontalItemBorderRadius:dt,horizontalItemHoverBg:bt,popupBg:ft}=Fe;return{[`${V}-${ue}, ${V}-${ue} > ${V}`]:{color:U,background:ee,[`&${V}-root:focus-visible`]:Object.assign({},fe(Fe)),[`${V}-item-group-title`]:{color:D},[`${V}-submenu-selected`]:{[`> ${V}-submenu-title`]:{color:N}},[`${V}-item-disabled, ${V}-submenu-disabled`]:{color:`${Je} !important`},[`${V}-item:not(${V}-item-selected):not(${V}-submenu-selected)`]:{[`&:hover, > ${V}-submenu-title:hover`]:{color:xe}},[`&:not(${V}-horizontal)`]:{[`${V}-item:not(${V}-item-selected)`]:{"&:hover":{backgroundColor:Pe},"&:active":{backgroundColor:we}},[`${V}-submenu-title`]:{"&:hover":{backgroundColor:Pe},"&:active":{backgroundColor:we}}},[`${V}-item-danger`]:{color:Ae,[`&${V}-item:hover`]:{[`&:not(${V}-item-selected):not(${V}-submenu-selected)`]:{color:oe}},[`&${V}-item:active`]:{background:Be}},[`${V}-item a`]:{"&, &:hover":{color:"inherit"}},[`${V}-item-selected`]:{color:N,[`&${V}-item-danger`]:{color:ye},["a, a:hover"]:{color:"inherit"}},[`& ${V}-item-selected`]:{backgroundColor:X,[`&${V}-item-danger`]:{backgroundColor:De}},[`${V}-item, ${V}-submenu-title`]:{[`&:not(${V}-item-disabled):focus-visible`]:Object.assign({},fe(Fe))},[`&${V}-submenu > ${V}`]:{backgroundColor:Le},[`&${V}-popup > ${V}`]:{backgroundColor:ft},[`&${V}-horizontal`]:Object.assign(Object.assign({},ue==="dark"?{borderBottom:0}:{}),{[`> ${V}-item, > ${V}-submenu`]:{top:Se,marginTop:-Se,marginBottom:0,borderRadius:dt,"&::after":{position:"absolute",insetInline:le,bottom:0,borderBottom:`${re}px solid transparent`,transition:`border-color ${he} ${We}`,content:'""'},["&:hover, &-active, &-open"]:{background:bt,"&::after":{borderBottomWidth:re,borderBottomColor:Ye}},["&-selected"]:{color:Ye,backgroundColor:Ue,"&:hover":{backgroundColor:Ue},"&::after":{borderBottomWidth:re,borderBottomColor:Ye}}}}),[`&${V}-root`]:{[`&${V}-inline, &${V}-vertical`]:{borderInlineEnd:`${Se}px ${Ze} ${pe}`}},[`&${V}-inline`]:{[`${V}-sub${V}-inline`]:{background:se},[`${V}-item, ${V}-submenu-title`]:Se&&Ie?{width:`calc(100% + ${Se}px)`}:{},[`${V}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ie}px solid ${N}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ve} ${de}`,`opacity ${ve} ${de}`].join(","),content:'""'},[`&${V}-item-danger`]:{"&::after":{borderInlineEndColor:ye}}},[`${V}-selected, ${V}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ve} ${We}`,`opacity ${ve} ${We}`].join(",")}}}}}};const Me=Fe=>{const{componentCls:ue,itemHeight:V,itemMarginInline:U,padding:N,menuArrowSize:D,marginXS:ee,itemMarginBlock:se}=Fe,X=N+D+ee;return{[`${ue}-item`]:{position:"relative",overflow:"hidden"},[`${ue}-item, ${ue}-submenu-title`]:{height:V,lineHeight:`${V}px`,paddingInline:N,overflow:"hidden",textOverflow:"ellipsis",marginInline:U,marginBlock:se,width:`calc(100% - ${U*2}px)`},[`> ${ue}-item, @@ -265,17 +265,17 @@ http://j.mp/37Fkd5Q &-placement-bottomRight, &-placement-bottomLeft `]:{paddingTop:Fe.paddingXS},[`> ${V}`]:Object.assign(Object.assign(Object.assign({borderRadius:he},Ve(Fe)),qe(Fe)),{[`${V}-item, ${V}-submenu > ${V}-submenu-title`]:{borderRadius:We},[`${V}-submenu-title::after`]:{transition:`transform ${N} ${ee}`}})}}),qe(Fe)),{[`&-inline-collapsed ${V}-submenu-arrow, - &-inline ${V}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le})`},"&::after":{transform:`rotate(45deg) translateX(-${le})`}},[`${V}-submenu-open${V}-submenu-inline > ${V}-submenu-title > ${V}-submenu-arrow`]:{transform:`translateY(-${de*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${le})`},"&::before":{transform:`rotate(45deg) translateX(${le})`}}})},{[`${ue}-layout-header`]:{[V]:{lineHeight:"inherit"}}}]};var wt=(Fe,ue)=>(0,G.Z)("Menu",U=>{if(ue===!1)return[];const{colorBgElevated:N,colorPrimary:D,colorTextLightSolid:ee,controlHeightLG:se,fontSize:X,darkItemColor:re,darkDangerItemColor:Ie,darkItemBg:Se,darkSubMenuItemBg:he,darkItemSelectedColor:We,darkItemSelectedBg:de,darkDangerItemSelectedBg:le,darkItemHoverBg:ve,darkGroupTitleColor:xe,darkItemHoverColor:Ze,darkItemDisabledColor:pe,darkDangerItemHoverColor:Je,darkDangerItemSelectedColor:Ae,darkDangerItemActiveBg:oe}=U,ye=X/7*5,Be=(0,O.TS)(U,{menuArrowSize:ye,menuHorizontalHeight:se*1.15,menuArrowOffset:`${ye*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:N}),De=(0,O.TS)(Be,{itemColor:re,itemHoverColor:Ze,groupTitleColor:xe,itemSelectedColor:We,itemBg:Se,popupBg:Se,subMenuItemBg:he,itemActiveBg:"transparent",itemSelectedBg:de,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ve,itemDisabledColor:pe,dangerItemColor:Ie,dangerItemHoverColor:Je,dangerItemSelectedColor:Ae,dangerItemActiveBg:oe,dangerItemSelectedBg:le,menuSubMenuBg:he,horizontalItemSelectedColor:ee,horizontalItemSelectedBg:D});return[Mt(Be),Y(Be),Qe(Be),ge(Be,"light"),ge(De,"dark"),Q(Be),(0,ce.Z)(Be),(0,te.oN)(Be,"slide-up"),(0,te.oN)(Be,"slide-down"),(0,W._y)(Be,"zoom-big")]},U=>{const{colorPrimary:N,colorError:D,colorTextDisabled:ee,colorErrorBg:se,colorText:X,colorTextDescription:re,colorBgContainer:Ie,colorFillAlter:Se,colorFillContent:he,lineWidth:We,lineWidthBold:de,controlItemBgActive:le,colorBgTextHover:ve,controlHeightLG:xe,lineHeight:Ze,colorBgElevated:pe,marginXXS:Je,padding:Ae,fontSize:oe,controlHeightSM:ye,fontSizeLG:Be,colorTextLightSolid:De,colorErrorHover:Pe}=U,we=new H.C(De).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:U.zIndexPopupBase+50,radiusItem:U.borderRadiusLG,itemBorderRadius:U.borderRadiusLG,radiusSubMenuItem:U.borderRadiusSM,subMenuItemBorderRadius:U.borderRadiusSM,colorItemText:X,itemColor:X,colorItemTextHover:X,itemHoverColor:X,colorItemTextHoverHorizontal:N,horizontalItemHoverColor:N,colorGroupTitle:re,groupTitleColor:re,colorItemTextSelected:N,itemSelectedColor:N,colorItemTextSelectedHorizontal:N,horizontalItemSelectedColor:N,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:ve,itemHoverBg:ve,colorItemBgActive:he,itemActiveBg:le,colorSubItemBg:Se,subMenuItemBg:Se,colorItemBgSelected:le,itemSelectedBg:le,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:de,activeBarHeight:de,colorActiveBarBorderSize:We,activeBarBorderWidth:We,colorItemTextDisabled:ee,itemDisabledColor:ee,colorDangerItemText:D,dangerItemColor:D,colorDangerItemTextHover:D,dangerItemHoverColor:D,colorDangerItemTextSelected:D,dangerItemSelectedColor:D,colorDangerItemBgActive:se,dangerItemActiveBg:se,colorDangerItemBgSelected:se,dangerItemSelectedBg:se,itemMarginInline:U.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xe,groupTitleLineHeight:Ze,collapsedWidth:xe*2,popupBg:pe,itemMarginBlock:Je,itemPaddingInline:Ae,horizontalLineHeight:`${xe*1.15}px`,iconSize:oe,iconMarginInlineEnd:ye-oe,collapsedIconSize:Be,groupTitleFontSize:oe,darkItemDisabledColor:new H.C(De).setAlpha(.25).toRgbString(),darkItemColor:we,darkDangerItemColor:D,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:De,darkItemSelectedBg:N,darkDangerItemSelectedBg:D,darkItemHoverBg:"transparent",darkGroupTitleColor:we,darkItemHoverColor:De,darkDangerItemHoverColor:Pe,darkDangerItemSelectedColor:De,darkDangerItemActiveBg:D}},{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"]]})(Fe),mt=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{var V,U;const N=t.useContext(I.Z),D=N||{},{getPrefixCls:ee,getPopupContainer:se,direction:X,menu:re}=t.useContext(c.E_),Ie=ee(),{prefixCls:Se,className:he,style:We,theme:de="light",expandIcon:le,_internalDisableMenuItemTitleTooltip:ve,inlineCollapsed:xe,siderCollapsed:Ze,items:pe,children:Je,rootClassName:Ae,mode:oe,selectable:ye,onClick:Be,overflowedIndicatorPopupClassName:De}=Fe,Pe=mt(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),we=(0,C.Z)(Pe,["collapsedWidth"]),Le=K(pe)||Je;(V=D.validator)===null||V===void 0||V.call(D,{mode:oe});const Ye=(0,A.Z)(function(){var fn;Be==null||Be.apply(void 0,arguments),(fn=D.onClick)===null||fn===void 0||fn.call(D)}),Ue=D.mode||oe,dt=ye!=null?ye:D.selectable,bt=t.useMemo(()=>Ze!==void 0?Ze:xe,[xe,Ze]),ft={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,L.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},At=ee("menu",Se||D.prefixCls),[Ot,jt]=wt(At,!N),Gt=n()(`${At}-${de}`,re==null?void 0:re.className,he);let Xt;if(typeof le=="function")Xt=le;else{const fn=le||D.expandIcon;Xt=(0,S.Tm)(fn,{className:n()(`${At}-submenu-expand-icon`,(0,S.l$)(fn)?(U=fn.props)===null||U===void 0?void 0:U.className:"")})}const zn=t.useMemo(()=>({prefixCls:At,inlineCollapsed:bt||!1,direction:X,firstLevel:!0,theme:de,mode:Ue,disableMenuItemTitleTooltip:ve}),[At,bt,X,ve,de]);return Ot(t.createElement(I.Z.Provider,{value:null},t.createElement(y.Provider,{value:zn},t.createElement(i.ZP,Object.assign({getPopupContainer:se,overflowedIndicator:t.createElement(z.Z,null),overflowedIndicatorPopupClassName:n()(At,`${At}-${de}`,De),mode:Ue,selectable:dt,onClick:Ye},we,{inlineCollapsed:bt,style:Object.assign(Object.assign({},re==null?void 0:re.style),We),className:Gt,prefixCls:At,direction:X,defaultMotions:ft,expandIcon:Xt,ref:ue,rootClassName:n()(Ae,jt)}),Le))))});const He=(0,t.forwardRef)((Fe,ue)=>{const V=(0,t.useRef)(null),U=t.useContext(o.D);return(0,t.useImperativeHandle)(ue,()=>({menu:V.current,focus:N=>{var D;(D=V.current)===null||D===void 0||D.focus(N)}})),t.createElement(ke,Object.assign({ref:V},Fe,U))});He.Item=F,He.SubMenu=T,He.Divider=h,He.ItemGroup=i.BW;var et=He},80209:function(M,b,e){"use strict";e.d(b,{CW:function(){return w}});var i=e(85678),t=e(79999),o=e(69831),s=e(33064),n=e(25755),c=e(87608),l=e.n(c),v=e(75248),h=e(58757),m=e(61836),C=e(13952),p=function(Z,F){var R={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&F.indexOf(T)<0&&(R[T]=Z[T]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,T=Object.getOwnPropertySymbols(Z);z{let{prefixCls:F,type:R,icon:T,children:z}=Z;return h.createElement("div",{className:l()(`${F}-custom-content`,`${F}-${R}`)},T||S[R],h.createElement("span",null,z))},y=Z=>{const{prefixCls:F,className:R,type:T,icon:z,content:A}=Z,L=p(Z,["prefixCls","className","type","icon","content"]),{getPrefixCls:I}=h.useContext(m.E_),$=F||I("message"),[,B]=(0,C.Z)($);return h.createElement(v.q,Object.assign({},L,{prefixCls:$,className:l()(R,B,`${$}-notice-pure-panel`),eventKey:"pure",duration:null,content:h.createElement(w,{prefixCls:$,type:T,icon:z},A)}))};b.ZP=y},84045:function(M,b,e){"use strict";var i=e(29140),t=e(58757),o=e(52323),s=e(42505),n=e(80209),c=e(45054),l=e(86538);let v=null,h=B=>B(),m=[],C={};function p(){const{prefixCls:B,getContainer:K,duration:H,rtl:ie,maxCount:ce,top:te}=C,W=B!=null?B:(0,s.w6)().getPrefixCls("message"),G=(K==null?void 0:K())||document.body;return{prefixCls:W,getContainer:()=>G,duration:H,rtl:ie,maxCount:ce,top:te}}const S=t.forwardRef((B,K)=>{const[H,ie]=t.useState(p),[ce,te]=(0,c.K)(H),W=(0,s.w6)(),G=W.getRootPrefixCls(),O=W.getIconPrefixCls(),k=W.getTheme(),Y=()=>{ie(p)};return t.useEffect(Y,[]),t.useImperativeHandle(K,()=>{const P=Object.assign({},ce);return Object.keys(P).forEach(Q=>{P[Q]=function(){return Y(),ce[Q].apply(ce,arguments)}}),{instance:P,sync:Y}}),t.createElement(s.ZP,{prefixCls:G,iconPrefixCls:O,theme:k},te)});function w(){if(!v){const B=document.createDocumentFragment(),K={fragment:B};v=K,h(()=>{(0,o.s)(t.createElement(S,{ref:H=>{const{instance:ie,sync:ce}=H||{};Promise.resolve().then(()=>{!K.instance&&ie&&(K.instance=ie,K.sync=ce,w())})}}),B)});return}v.instance&&(m.forEach(B=>{const{type:K,skipped:H}=B;if(!H)switch(K){case"open":{h(()=>{const ie=v.instance.open(Object.assign(Object.assign({},C),B.config));ie==null||ie.then(B.resolve),B.setCloseFn(ie)});break}case"destroy":h(()=>{v==null||v.instance.destroy(B.key)});break;default:h(()=>{var ie;const ce=(ie=v.instance)[K].apply(ie,(0,i.Z)(B.args));ce==null||ce.then(B.resolve),B.setCloseFn(ce)})}}),m=[])}function y(B){C=Object.assign(Object.assign({},C),B),h(()=>{var K;(K=v==null?void 0:v.sync)===null||K===void 0||K.call(v)})}function Z(B){const K=(0,l.J)(H=>{let ie;const ce={type:"open",config:B,resolve:H,setCloseFn:te=>{ie=te}};return m.push(ce),()=>{ie?h(()=>{ie()}):ce.skipped=!0}});return w(),K}function F(B,K){const H=(0,l.J)(ie=>{let ce;const te={type:B,args:K,resolve:ie,setCloseFn:W=>{ce=W}};return m.push(te),()=>{ce?h(()=>{ce()}):te.skipped=!0}});return w(),H}function R(B){m.push({type:"destroy",key:B}),w()}const T=["success","info","warning","error","loading"],A={open:Z,destroy:R,config:y,useMessage:c.Z,_InternalPanelDoNotUseOrYouWillBeFired:n.ZP};T.forEach(B=>{A[B]=function(){for(var K=arguments.length,H=new Array(K),ie=0;ie{};let I=null,$=null;b.ZP=A},13952:function(M,b,e){"use strict";var i=e(57793),t=e(78330),o=e(52628),s=e(22151);const n=c=>{const{componentCls:l,iconCls:v,boxShadow:h,colorText:m,colorSuccess:C,colorError:p,colorWarning:S,colorInfo:w,fontSizeLG:y,motionEaseInOutCirc:Z,motionDurationSlow:F,marginXS:R,paddingXS:T,borderRadiusLG:z,zIndexPopup:A,contentPadding:L,contentBg:I}=c,$=`${l}-notice`,B=new i.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:T,transform:"translateY(0)",opacity:1}}),K=new i.E4("MessageMoveOut",{"0%":{maxHeight:c.height,padding:T,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),H={padding:T,textAlign:"center",[`${l}-custom-content > ${v}`]:{verticalAlign:"text-bottom",marginInlineEnd:R,fontSize:y},[`${$}-content`]:{display:"inline-block",padding:L,background:I,borderRadius:z,boxShadow:h,pointerEvents:"all"},[`${l}-success > ${v}`]:{color:C},[`${l}-error > ${v}`]:{color:p},[`${l}-warning > ${v}`]:{color:S},[`${l}-info > ${v}, + &-inline ${V}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${le})`},"&::after":{transform:`rotate(45deg) translateX(-${le})`}},[`${V}-submenu-open${V}-submenu-inline > ${V}-submenu-title > ${V}-submenu-arrow`]:{transform:`translateY(-${de*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${le})`},"&::before":{transform:`rotate(45deg) translateX(${le})`}}})},{[`${ue}-layout-header`]:{[V]:{lineHeight:"inherit"}}}]};var wt=(Fe,ue)=>(0,G.Z)("Menu",U=>{if(ue===!1)return[];const{colorBgElevated:N,colorPrimary:D,colorTextLightSolid:ee,controlHeightLG:se,fontSize:X,darkItemColor:re,darkDangerItemColor:Ie,darkItemBg:Se,darkSubMenuItemBg:he,darkItemSelectedColor:We,darkItemSelectedBg:de,darkDangerItemSelectedBg:le,darkItemHoverBg:ve,darkGroupTitleColor:xe,darkItemHoverColor:Ze,darkItemDisabledColor:pe,darkDangerItemHoverColor:Je,darkDangerItemSelectedColor:Ae,darkDangerItemActiveBg:oe}=U,ye=X/7*5,Be=(0,O.TS)(U,{menuArrowSize:ye,menuHorizontalHeight:se*1.15,menuArrowOffset:`${ye*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:N}),De=(0,O.TS)(Be,{itemColor:re,itemHoverColor:Ze,groupTitleColor:xe,itemSelectedColor:We,itemBg:Se,popupBg:Se,subMenuItemBg:he,itemActiveBg:"transparent",itemSelectedBg:de,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ve,itemDisabledColor:pe,dangerItemColor:Ie,dangerItemHoverColor:Je,dangerItemSelectedColor:Ae,dangerItemActiveBg:oe,dangerItemSelectedBg:le,menuSubMenuBg:he,horizontalItemSelectedColor:ee,horizontalItemSelectedBg:D});return[Mt(Be),Y(Be),Qe(Be),ge(Be,"light"),ge(De,"dark"),Q(Be),(0,ce.Z)(Be),(0,te.oN)(Be,"slide-up"),(0,te.oN)(Be,"slide-down"),(0,W._y)(Be,"zoom-big")]},U=>{const{colorPrimary:N,colorError:D,colorTextDisabled:ee,colorErrorBg:se,colorText:X,colorTextDescription:re,colorBgContainer:Ie,colorFillAlter:Se,colorFillContent:he,lineWidth:We,lineWidthBold:de,controlItemBgActive:le,colorBgTextHover:ve,controlHeightLG:xe,lineHeight:Ze,colorBgElevated:pe,marginXXS:Je,padding:Ae,fontSize:oe,controlHeightSM:ye,fontSizeLG:Be,colorTextLightSolid:De,colorErrorHover:Pe}=U,we=new H.C(De).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:U.zIndexPopupBase+50,radiusItem:U.borderRadiusLG,itemBorderRadius:U.borderRadiusLG,radiusSubMenuItem:U.borderRadiusSM,subMenuItemBorderRadius:U.borderRadiusSM,colorItemText:X,itemColor:X,colorItemTextHover:X,itemHoverColor:X,colorItemTextHoverHorizontal:N,horizontalItemHoverColor:N,colorGroupTitle:re,groupTitleColor:re,colorItemTextSelected:N,itemSelectedColor:N,colorItemTextSelectedHorizontal:N,horizontalItemSelectedColor:N,colorItemBg:Ie,itemBg:Ie,colorItemBgHover:ve,itemHoverBg:ve,colorItemBgActive:he,itemActiveBg:le,colorSubItemBg:Se,subMenuItemBg:Se,colorItemBgSelected:le,itemSelectedBg:le,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:de,activeBarHeight:de,colorActiveBarBorderSize:We,activeBarBorderWidth:We,colorItemTextDisabled:ee,itemDisabledColor:ee,colorDangerItemText:D,dangerItemColor:D,colorDangerItemTextHover:D,dangerItemHoverColor:D,colorDangerItemTextSelected:D,dangerItemSelectedColor:D,colorDangerItemBgActive:se,dangerItemActiveBg:se,colorDangerItemBgSelected:se,dangerItemSelectedBg:se,itemMarginInline:U.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:xe,groupTitleLineHeight:Ze,collapsedWidth:xe*2,popupBg:pe,itemMarginBlock:Je,itemPaddingInline:Ae,horizontalLineHeight:`${xe*1.15}px`,iconSize:oe,iconMarginInlineEnd:ye-oe,collapsedIconSize:Be,groupTitleFontSize:oe,darkItemDisabledColor:new H.C(De).setAlpha(.25).toRgbString(),darkItemColor:we,darkDangerItemColor:D,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:De,darkItemSelectedBg:N,darkDangerItemSelectedBg:D,darkItemHoverBg:"transparent",darkGroupTitleColor:we,darkItemHoverColor:De,darkDangerItemHoverColor:Pe,darkDangerItemSelectedColor:De,darkDangerItemActiveBg:D}},{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"]]})(Fe),gt=function(Fe,ue){var V={};for(var U in Fe)Object.prototype.hasOwnProperty.call(Fe,U)&&ue.indexOf(U)<0&&(V[U]=Fe[U]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var N=0,U=Object.getOwnPropertySymbols(Fe);N{var V,U;const N=t.useContext(I.Z),D=N||{},{getPrefixCls:ee,getPopupContainer:se,direction:X,menu:re}=t.useContext(c.E_),Ie=ee(),{prefixCls:Se,className:he,style:We,theme:de="light",expandIcon:le,_internalDisableMenuItemTitleTooltip:ve,inlineCollapsed:xe,siderCollapsed:Ze,items:pe,children:Je,rootClassName:Ae,mode:oe,selectable:ye,onClick:Be,overflowedIndicatorPopupClassName:De}=Fe,Pe=gt(Fe,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),we=(0,C.Z)(Pe,["collapsedWidth"]),Le=K(pe)||Je;(V=D.validator)===null||V===void 0||V.call(D,{mode:oe});const Ye=(0,A.Z)(function(){var fn;Be==null||Be.apply(void 0,arguments),(fn=D.onClick)===null||fn===void 0||fn.call(D)}),Ue=D.mode||oe,dt=ye!=null?ye:D.selectable,bt=t.useMemo(()=>Ze!==void 0?Ze:xe,[xe,Ze]),ft={horizontal:{motionName:`${Ie}-slide-up`},inline:(0,L.Z)(Ie),other:{motionName:`${Ie}-zoom-big`}},At=ee("menu",Se||D.prefixCls),[Ot,jt]=wt(At,!N),Gt=n()(`${At}-${de}`,re==null?void 0:re.className,he);let Xt;if(typeof le=="function")Xt=le;else{const fn=le||D.expandIcon;Xt=(0,S.Tm)(fn,{className:n()(`${At}-submenu-expand-icon`,(0,S.l$)(fn)?(U=fn.props)===null||U===void 0?void 0:U.className:"")})}const Bn=t.useMemo(()=>({prefixCls:At,inlineCollapsed:bt||!1,direction:X,firstLevel:!0,theme:de,mode:Ue,disableMenuItemTitleTooltip:ve}),[At,bt,X,ve,de]);return Ot(t.createElement(I.Z.Provider,{value:null},t.createElement(y.Provider,{value:Bn},t.createElement(i.ZP,Object.assign({getPopupContainer:se,overflowedIndicator:t.createElement(z.Z,null),overflowedIndicatorPopupClassName:n()(At,`${At}-${de}`,De),mode:Ue,selectable:dt,onClick:Ye},we,{inlineCollapsed:bt,style:Object.assign(Object.assign({},re==null?void 0:re.style),We),className:Gt,prefixCls:At,direction:X,defaultMotions:ft,expandIcon:Xt,ref:ue,rootClassName:n()(Ae,jt)}),Le))))});const He=(0,t.forwardRef)((Fe,ue)=>{const V=(0,t.useRef)(null),U=t.useContext(o.D);return(0,t.useImperativeHandle)(ue,()=>({menu:V.current,focus:N=>{var D;(D=V.current)===null||D===void 0||D.focus(N)}})),t.createElement(ke,Object.assign({ref:V},Fe,U))});He.Item=F,He.SubMenu=T,He.Divider=h,He.ItemGroup=i.BW;var et=He},80209:function(M,b,e){"use strict";e.d(b,{CW:function(){return w}});var i=e(85678),t=e(79999),o=e(69831),s=e(33064),n=e(25755),c=e(87608),l=e.n(c),v=e(75248),h=e(58757),m=e(61836),C=e(13952),p=function(Z,F){var R={};for(var T in Z)Object.prototype.hasOwnProperty.call(Z,T)&&F.indexOf(T)<0&&(R[T]=Z[T]);if(Z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,T=Object.getOwnPropertySymbols(Z);z{let{prefixCls:F,type:R,icon:T,children:z}=Z;return h.createElement("div",{className:l()(`${F}-custom-content`,`${F}-${R}`)},T||S[R],h.createElement("span",null,z))},y=Z=>{const{prefixCls:F,className:R,type:T,icon:z,content:A}=Z,L=p(Z,["prefixCls","className","type","icon","content"]),{getPrefixCls:I}=h.useContext(m.E_),$=F||I("message"),[,B]=(0,C.Z)($);return h.createElement(v.q,Object.assign({},L,{prefixCls:$,className:l()(R,B,`${$}-notice-pure-panel`),eventKey:"pure",duration:null,content:h.createElement(w,{prefixCls:$,type:T,icon:z},A)}))};b.ZP=y},84045:function(M,b,e){"use strict";var i=e(29140),t=e(58757),o=e(52323),s=e(42505),n=e(80209),c=e(45054),l=e(86538);let v=null,h=B=>B(),m=[],C={};function p(){const{prefixCls:B,getContainer:K,duration:H,rtl:ie,maxCount:ce,top:te}=C,W=B!=null?B:(0,s.w6)().getPrefixCls("message"),G=(K==null?void 0:K())||document.body;return{prefixCls:W,getContainer:()=>G,duration:H,rtl:ie,maxCount:ce,top:te}}const S=t.forwardRef((B,K)=>{const[H,ie]=t.useState(p),[ce,te]=(0,c.K)(H),W=(0,s.w6)(),G=W.getRootPrefixCls(),O=W.getIconPrefixCls(),k=W.getTheme(),Y=()=>{ie(p)};return t.useEffect(Y,[]),t.useImperativeHandle(K,()=>{const P=Object.assign({},ce);return Object.keys(P).forEach(Q=>{P[Q]=function(){return Y(),ce[Q].apply(ce,arguments)}}),{instance:P,sync:Y}}),t.createElement(s.ZP,{prefixCls:G,iconPrefixCls:O,theme:k},te)});function w(){if(!v){const B=document.createDocumentFragment(),K={fragment:B};v=K,h(()=>{(0,o.s)(t.createElement(S,{ref:H=>{const{instance:ie,sync:ce}=H||{};Promise.resolve().then(()=>{!K.instance&&ie&&(K.instance=ie,K.sync=ce,w())})}}),B)});return}v.instance&&(m.forEach(B=>{const{type:K,skipped:H}=B;if(!H)switch(K){case"open":{h(()=>{const ie=v.instance.open(Object.assign(Object.assign({},C),B.config));ie==null||ie.then(B.resolve),B.setCloseFn(ie)});break}case"destroy":h(()=>{v==null||v.instance.destroy(B.key)});break;default:h(()=>{var ie;const ce=(ie=v.instance)[K].apply(ie,(0,i.Z)(B.args));ce==null||ce.then(B.resolve),B.setCloseFn(ce)})}}),m=[])}function y(B){C=Object.assign(Object.assign({},C),B),h(()=>{var K;(K=v==null?void 0:v.sync)===null||K===void 0||K.call(v)})}function Z(B){const K=(0,l.J)(H=>{let ie;const ce={type:"open",config:B,resolve:H,setCloseFn:te=>{ie=te}};return m.push(ce),()=>{ie?h(()=>{ie()}):ce.skipped=!0}});return w(),K}function F(B,K){const H=(0,l.J)(ie=>{let ce;const te={type:B,args:K,resolve:ie,setCloseFn:W=>{ce=W}};return m.push(te),()=>{ce?h(()=>{ce()}):te.skipped=!0}});return w(),H}function R(B){m.push({type:"destroy",key:B}),w()}const T=["success","info","warning","error","loading"],A={open:Z,destroy:R,config:y,useMessage:c.Z,_InternalPanelDoNotUseOrYouWillBeFired:n.ZP};T.forEach(B=>{A[B]=function(){for(var K=arguments.length,H=new Array(K),ie=0;ie{};let I=null,$=null;b.ZP=A},13952:function(M,b,e){"use strict";var i=e(57793),t=e(78330),o=e(52628),s=e(22151);const n=c=>{const{componentCls:l,iconCls:v,boxShadow:h,colorText:m,colorSuccess:C,colorError:p,colorWarning:S,colorInfo:w,fontSizeLG:y,motionEaseInOutCirc:Z,motionDurationSlow:F,marginXS:R,paddingXS:T,borderRadiusLG:z,zIndexPopup:A,contentPadding:L,contentBg:I}=c,$=`${l}-notice`,B=new i.E4("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:T,transform:"translateY(0)",opacity:1}}),K=new i.E4("MessageMoveOut",{"0%":{maxHeight:c.height,padding:T,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),H={padding:T,textAlign:"center",[`${l}-custom-content > ${v}`]:{verticalAlign:"text-bottom",marginInlineEnd:R,fontSize:y},[`${$}-content`]:{display:"inline-block",padding:L,background:I,borderRadius:z,boxShadow:h,pointerEvents:"all"},[`${l}-success > ${v}`]:{color:C},[`${l}-error > ${v}`]:{color:p},[`${l}-warning > ${v}`]:{color:S},[`${l}-info > ${v}, ${l}-loading > ${v}`]:{color:w}};return[{[l]:Object.assign(Object.assign({},(0,t.Wf)(c)),{color:m,position:"fixed",top:R,width:"100%",pointerEvents:"none",zIndex:A,[`${l}-move-up`]:{animationFillMode:"forwards"},[` ${l}-move-up-appear, ${l}-move-up-enter `]:{animationName:B,animationDuration:F,animationPlayState:"paused",animationTimingFunction:Z},[` ${l}-move-up-appear${l}-move-up-appear-active, ${l}-move-up-enter${l}-move-up-enter-active - `]:{animationPlayState:"running"},[`${l}-move-up-leave`]:{animationName:K,animationDuration:F,animationPlayState:"paused",animationTimingFunction:Z},[`${l}-move-up-leave${l}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[l]:{[$]:Object.assign({},H)}},{[`${l}-notice-pure-panel`]:Object.assign(Object.assign({},H),{padding:0,textAlign:"start"})}]};b.Z=(0,o.Z)("Message",c=>{const l=(0,s.TS)(c,{height:150});return[n(l)]},c=>({zIndexPopup:c.zIndexPopupBase+10,contentBg:c.colorBgElevated,contentPadding:`${(c.controlHeightLG-c.fontSize*c.lineHeight)/2}px ${c.paddingSM}px`}),{clientOnly:!0})},45054:function(M,b,e){"use strict";e.d(b,{K:function(){return y},Z:function(){return Z}});var i=e(52495),t=e(87608),o=e.n(t),s=e(75248),n=e(58757),c=e(61836),l=e(80209),v=e(13952),h=e(86538),m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{const{top:T,prefixCls:z,getContainer:A,maxCount:L,duration:I=p,rtl:$,transitionName:B,onAllRemoved:K}=F,{getPrefixCls:H,getPopupContainer:ie,message:ce}=n.useContext(c.E_),te=z||H("message"),[,W]=(0,v.Z)(te),G=()=>({left:"50%",transform:"translateX(-50%)",top:T!=null?T:C}),O=()=>o()(W,{[`${te}-rtl`]:$}),k=()=>(0,h.g)(te,B),Y=n.createElement("span",{className:`${te}-close-x`},n.createElement(i.Z,{className:`${te}-close-icon`})),[P,Q]=(0,s.l)({prefixCls:te,style:G,className:O,motion:k,closable:!1,closeIcon:Y,duration:I,getContainer:()=>(A==null?void 0:A())||(ie==null?void 0:ie())||document.body,maxCount:L,onAllRemoved:K});return n.useImperativeHandle(R,()=>Object.assign(Object.assign({},P),{prefixCls:te,hashId:W,message:ce})),Q});let w=0;function y(F){const R=n.useRef(null);return[n.useMemo(()=>{const z=B=>{var K;(K=R.current)===null||K===void 0||K.close(B)},A=B=>{if(!R.current){const ge=()=>{};return ge.then=()=>{},ge}const{open:K,prefixCls:H,hashId:ie,message:ce}=R.current,te=`${H}-notice`,{content:W,icon:G,type:O,key:k,className:Y,style:P,onClose:Q}=B,fe=m(B,["content","icon","type","key","className","style","onClose"]);let Ce=k;return Ce==null&&(w+=1,Ce=`antd-message-${w}`),(0,h.J)(ge=>(K(Object.assign(Object.assign({},fe),{key:Ce,content:n.createElement(l.CW,{prefixCls:H,type:O,icon:G},W),placement:"top",className:o()(O&&`${te}-${O}`,ie,Y,ce==null?void 0:ce.className),style:Object.assign(Object.assign({},ce==null?void 0:ce.style),P),onClose:()=>{Q==null||Q(),ge()}})),()=>{z(Ce)}))},I={open:A,destroy:B=>{var K;B!==void 0?z(B):(K=R.current)===null||K===void 0||K.destroy()}};return["info","success","warning","error","loading"].forEach(B=>{const K=(H,ie,ce)=>{let te;H&&typeof H=="object"&&"content"in H?te=H:te={content:H};let W,G;typeof ie=="function"?G=ie:(W=ie,G=ce);const O=Object.assign(Object.assign({onClose:G,duration:W},te),{type:B});return A(O)};I[B]=K}),I},[]),n.createElement(S,Object.assign({key:"message-holder"},F,{ref:R}))]}function Z(F){return y(F)}},86538:function(M,b,e){"use strict";e.d(b,{J:function(){return t},g:function(){return i}});function i(o,s){return{motionName:s!=null?s:`${o}-move-up`}}function t(o){let s;const n=new Promise(l=>{s=o(()=>{l(!0)})}),c=()=>{s==null||s()};return c.then=(l,v)=>n.then(l,v),c.promise=n,c}},76370:function(M,b,e){"use strict";e.d(b,{O:function(){return S}});var i=e(85678),t=e(79999),o=e(69831),s=e(33064),n=e(87608),c=e.n(n),l=e(58757),v=e(99086),h=e(90881),m=e(42505),C=e(29487),p=e(65401);function S(y){const{icon:Z,onCancel:F,onOk:R,close:T,onConfirm:z,isSilent:A,okText:L,okButtonProps:I,cancelText:$,cancelButtonProps:B,confirmPrefixCls:K,rootPrefixCls:H,type:ie,okCancel:ce,footer:te,locale:W}=y;let G=Z;if(!Z&&Z!==null)switch(ie){case"info":G=l.createElement(s.Z,null);break;case"success":G=l.createElement(i.Z,null);break;case"error":G=l.createElement(t.Z,null);break;default:G=l.createElement(o.Z,null)}const O=y.okType||"primary",k=ce!=null?ce:ie==="confirm",Y=y.autoFocusButton===null?!1:y.autoFocusButton||"ok",[P]=(0,C.Z)("Modal"),Q=W||P,fe=k&&l.createElement(v.Z,{isSilent:A,actionFn:F,close:function(){T==null||T.apply(void 0,arguments),z==null||z(!1)},autoFocus:Y==="cancel",buttonProps:B,prefixCls:`${H}-btn`},$||(Q==null?void 0:Q.cancelText));return l.createElement("div",{className:`${K}-body-wrapper`},l.createElement("div",{className:`${K}-body`},G,y.title===void 0?null:l.createElement("span",{className:`${K}-title`},y.title),l.createElement("div",{className:`${K}-content`},y.content)),te===void 0?l.createElement("div",{className:`${K}-btns`},fe,l.createElement(v.Z,{isSilent:A,type:O,actionFn:R,close:function(){T==null||T.apply(void 0,arguments),z==null||z(!0)},autoFocus:Y==="ok",buttonProps:I,prefixCls:`${H}-btn`},L||(k?Q==null?void 0:Q.okText:Q==null?void 0:Q.justOkText))):te)}const w=y=>{const{close:Z,zIndex:F,afterClose:R,visible:T,open:z,keyboard:A,centered:L,getContainer:I,maskStyle:$,direction:B,prefixCls:K,wrapClassName:H,rootPrefixCls:ie,iconPrefixCls:ce,theme:te,bodyStyle:W,closable:G=!1,closeIcon:O,modalRender:k,focusTriggerAfterClose:Y}=y,P=`${K}-confirm`,Q=y.width||416,fe=y.style||{},Ce=y.mask===void 0?!0:y.mask,ge=y.maskClosable===void 0?!1:y.maskClosable,Me=c()(P,`${P}-${y.type}`,{[`${P}-rtl`]:B==="rtl"},y.className);return l.createElement(m.ZP,{prefixCls:ie,iconPrefixCls:ce,direction:B,theme:te},l.createElement(p.Z,{prefixCls:K,className:Me,wrapClassName:c()({[`${P}-centered`]:!!y.centered},H),onCancel:()=>Z==null?void 0:Z({triggerCancel:!0}),open:z,title:"",footer:null,transitionName:(0,h.m)(ie,"zoom",y.transitionName),maskTransitionName:(0,h.m)(ie,"fade",y.maskTransitionName),mask:Ce,maskClosable:ge,maskStyle:$,style:fe,bodyStyle:W,width:Q,zIndex:F,afterClose:R,keyboard:A,centered:L,getContainer:I,closable:G,closeIcon:O,modalRender:k,focusTriggerAfterClose:Y},l.createElement(S,Object.assign({},y,{confirmPrefixCls:P}))))};b.Z=w},65401:function(M,b,e){"use strict";var i=e(52495),t=e(87608),o=e.n(t),s=e(67117),n=e(58757),c=e(88858),l=e(90881),v=e(32792),h=e(61836),m=e(81496),C=e(43528),p=e(78669),S=e(76073),w=function(R,T){var z={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&T.indexOf(A)<0&&(z[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(R);L{y={x:R.pageX,y:R.pageY},setTimeout(()=>{y=null},100)};(0,v.jD)()&&document.documentElement.addEventListener("click",Z,!0);const F=R=>{var T;const{getPopupContainer:z,getPrefixCls:A,direction:L,modal:I}=n.useContext(h.E_),$=Nt=>{const{onCancel:ke}=R;ke==null||ke(Nt)},B=Nt=>{const{onOk:ke}=R;ke==null||ke(Nt)},{prefixCls:K,className:H,rootClassName:ie,open:ce,wrapClassName:te,centered:W,getContainer:G,closeIcon:O,closable:k,focusTriggerAfterClose:Y=!0,style:P,visible:Q,width:fe=520,footer:Ce}=R,ge=w(R,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),Me=A("modal",K),Re=A(),[Qe,Ve]=(0,S.Z)(Me),qe=o()(te,{[`${Me}-centered`]:!!W,[`${Me}-wrap-rtl`]:L==="rtl"}),Mt=Ce===void 0?n.createElement(p.$,Object.assign({},R,{onOk:B,onCancel:$})):Ce,[wt,mt]=(0,c.Z)(k,O,Nt=>(0,p.b)(Me,Nt),n.createElement(i.Z,{className:`${Me}-close-icon`}),!0);return Qe(n.createElement(C.BR,null,n.createElement(m.Ux,{status:!0,override:!0},n.createElement(s.Z,Object.assign({width:fe},ge,{getContainer:G===void 0?z:G,prefixCls:Me,rootClassName:o()(Ve,ie),wrapClassName:qe,footer:Mt,visible:ce!=null?ce:Q,mousePosition:(T=ge.mousePosition)!==null&&T!==void 0?T:y,onClose:$,closable:wt,closeIcon:mt,focusTriggerAfterClose:Y,transitionName:(0,l.m)(Re,"zoom",R.transitionName),maskTransitionName:(0,l.m)(Re,"fade",R.maskTransitionName),className:o()(Ve,H,I==null?void 0:I.className),style:Object.assign(Object.assign({},I==null?void 0:I.style),P)})))))};b.Z=F},49316:function(M,b,e){"use strict";e.d(b,{AQ:function(){return y},Au:function(){return Z},ZP:function(){return C},ai:function(){return F},cw:function(){return S},uW:function(){return p},vq:function(){return w}});var i=e(29140),t=e(52323),o=e(58757),s=e(42505),n=e(76370),c=e(98702),l=e(67228),v=function(R,T){var z={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&T.indexOf(A)<0&&(z[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(R);Lte&&te.triggerCancel);R.onCancel&&ce&&R.onCancel.apply(R,[()=>{}].concat((0,i.Z)(H.slice(1))));for(let te=0;te{const G=(0,l.A)(),{getPrefixCls:O,getIconPrefixCls:k,getTheme:Y}=(0,s.w6)(),P=O(void 0,m()),Q=ce||`${P}-modal`,fe=k(),Ce=Y();let ge=te;ge===!1&&(ge=void 0),(0,t.s)(o.createElement(n.Z,Object.assign({},W,{getContainer:ge,prefixCls:Q,rootPrefixCls:P,iconPrefixCls:fe,okText:H,locale:G,theme:Ce,cancelText:ie||G.cancelText})),T)})}function $(){for(var K=arguments.length,H=new Array(K),ie=0;ie{typeof R.afterClose=="function"&&R.afterClose(),L.apply(this,H)}}),z.visible&&delete z.visible,I(z)}function B(K){typeof K=="function"?z=K(z):z=Object.assign(Object.assign({},z),K),I(z)}return I(z),c.Z.push($),{destroy:$,update:B}}function p(R){return Object.assign(Object.assign({},R),{type:"warning"})}function S(R){return Object.assign(Object.assign({},R),{type:"info"})}function w(R){return Object.assign(Object.assign({},R),{type:"success"})}function y(R){return Object.assign(Object.assign({},R),{type:"error"})}function Z(R){return Object.assign(Object.assign({},R),{type:"confirm"})}function F(R){let{rootPrefixCls:T}=R;h=T}},98702:function(M,b){"use strict";const e=[];b.Z=e},62109:function(M,b,e){"use strict";e.d(b,{Z:function(){return T}});var i=e(49316),t=e(98702),o=e(65401),s=e(87608),n=e.n(s),c=e(67117),l=e(58757),v=e(61836),h=e(76370),m=e(78669),C=e(76073),p=e(15018),S=function(z,A){var L={};for(var I in z)Object.prototype.hasOwnProperty.call(z,I)&&A.indexOf(I)<0&&(L[I]=z[I]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,I=Object.getOwnPropertySymbols(z);${const{prefixCls:A,className:L,closeIcon:I,closable:$,type:B,title:K,children:H}=z,ie=S(z,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:ce}=l.useContext(v.E_),te=ce(),W=A||ce("modal"),[,G]=(0,C.Z)(W),O=`${W}-confirm`;let k={};return B?k={closable:$!=null?$:!1,title:"",footer:"",children:l.createElement(h.O,Object.assign({},z,{confirmPrefixCls:O,rootPrefixCls:te,content:H}))}:k={closable:$!=null?$:!0,title:K,footer:z.footer===void 0?l.createElement(m.$,Object.assign({},z)):z.footer,children:H},l.createElement(c.s,Object.assign({prefixCls:W,className:n()(G,`${W}-pure-panel`,B&&O,B&&`${O}-${B}`,L)},ie,{closeIcon:(0,m.b)(W,I),closable:$},k))};var y=(0,p.i)(w),Z=e(65172);function F(z){return(0,i.ZP)((0,i.uW)(z))}const R=o.Z;R.useModal=Z.Z,R.info=function(A){return(0,i.ZP)((0,i.cw)(A))},R.success=function(A){return(0,i.ZP)((0,i.vq)(A))},R.error=function(A){return(0,i.ZP)((0,i.AQ)(A))},R.warning=F,R.warn=F,R.confirm=function(A){return(0,i.ZP)((0,i.Au)(A))},R.destroyAll=function(){for(;t.Z.length;){const A=t.Z.pop();A&&A()}},R.config=i.ai,R._InternalPanelDoNotUseOrYouWillBeFired=y;var T=R},67228:function(M,b,e){"use strict";e.d(b,{A:function(){return c},f:function(){return n}});var i=e(80076);let t=Object.assign({},i.Z.Modal),o=[];const s=()=>o.reduce((l,v)=>Object.assign(Object.assign({},l),v),i.Z.Modal);function n(l){if(l){const v=Object.assign({},l);return o.push(v),t=s(),()=>{o=o.filter(h=>h!==v),t=s()}}t=Object.assign({},i.Z.Modal)}function c(){return t}},78669:function(M,b,e){"use strict";e.d(b,{$:function(){return h},b:function(){return v}});var i=e(52495),t=e(58757),o=e(12562),s=e(70921),n=e(92428),c=e(29487),l=e(67228);function v(m,C){return t.createElement("span",{className:`${m}-close-x`},C||t.createElement(i.Z,{className:`${m}-close-icon`}))}const h=m=>{const{okText:C,okType:p="primary",cancelText:S,confirmLoading:w,onOk:y,onCancel:Z,okButtonProps:F,cancelButtonProps:R}=m,[T]=(0,c.Z)("Modal",(0,l.A)());return t.createElement(n.n,{disabled:!1},t.createElement(o.ZP,Object.assign({onClick:Z},R),S||(T==null?void 0:T.cancelText)),t.createElement(o.ZP,Object.assign({},(0,s.n)(p),{loading:w,onClick:y},F),C||(T==null?void 0:T.okText)))}},76073:function(M,b,e){"use strict";e.d(b,{Q:function(){return l}});var i=e(78330),t=e(7239),o=e(28107),s=e(52628),n=e(22151);function c(p){return{position:p,inset:0}}const l=p=>{const{componentCls:S,antCls:w}=p;return[{[`${S}-root`]:{[`${S}${w}-zoom-enter, ${S}${w}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:p.motionDurationSlow,userSelect:"none"},[`${S}${w}-zoom-leave ${S}-content`]:{pointerEvents:"none"},[`${S}-mask`]:Object.assign(Object.assign({},c("fixed")),{zIndex:p.zIndexPopupBase,height:"100%",backgroundColor:p.colorBgMask,pointerEvents:"none",[`${S}-hidden`]:{display:"none"}}),[`${S}-wrap`]:Object.assign(Object.assign({},c("fixed")),{zIndex:p.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${S}${w}-zoom-enter), &:has(${S}${w}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${S}-root`]:(0,t.J$)(p)}]},v=p=>{const{componentCls:S}=p;return[{[`${S}-root`]:{[`${S}-wrap-rtl`]:{direction:"rtl"},[`${S}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[S]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${p.screenSMMax})`]:{[S]:{maxWidth:"calc(100vw - 16px)",margin:`${p.marginXS} auto`},[`${S}-centered`]:{[S]:{flex:1}}}}},{[S]:Object.assign(Object.assign({},(0,i.Wf)(p)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${p.margin*2}px)`,margin:"0 auto",paddingBottom:p.paddingLG,[`${S}-title`]:{margin:0,color:p.titleColor,fontWeight:p.fontWeightStrong,fontSize:p.titleFontSize,lineHeight:p.titleLineHeight,wordWrap:"break-word"},[`${S}-content`]:{position:"relative",backgroundColor:p.contentBg,backgroundClip:"padding-box",border:0,borderRadius:p.borderRadiusLG,boxShadow:p.boxShadow,pointerEvents:"auto",padding:`${p.paddingMD}px ${p.paddingContentHorizontalLG}px`},[`${S}-close`]:Object.assign({position:"absolute",top:(p.modalHeaderHeight-p.modalCloseBtnSize)/2,insetInlineEnd:(p.modalHeaderHeight-p.modalCloseBtnSize)/2,zIndex:p.zIndexPopupBase+10,padding:0,color:p.modalCloseIconColor,fontWeight:p.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:p.borderRadiusSM,width:p.modalCloseBtnSize,height:p.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${p.motionDurationMid}, background-color ${p.motionDurationMid}`,"&-x":{display:"flex",fontSize:p.fontSizeLG,fontStyle:"normal",lineHeight:`${p.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:p.modalIconHoverColor,backgroundColor:p.wireframe?"transparent":p.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:p.wireframe?"transparent":p.colorFillContentHover}},(0,i.Qy)(p)),[`${S}-header`]:{color:p.colorText,background:p.headerBg,borderRadius:`${p.borderRadiusLG}px ${p.borderRadiusLG}px 0 0`,marginBottom:p.marginXS},[`${S}-body`]:{fontSize:p.fontSize,lineHeight:p.lineHeight,wordWrap:"break-word"},[`${S}-footer`]:{textAlign:"end",background:p.footerBg,marginTop:p.marginSM,[`${p.antCls}-btn + ${p.antCls}-btn:not(${p.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:p.marginXS}},[`${S}-open`]:{overflow:"hidden"}})},{[`${S}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${S}-content, + `]:{animationPlayState:"running"},[`${l}-move-up-leave`]:{animationName:K,animationDuration:F,animationPlayState:"paused",animationTimingFunction:Z},[`${l}-move-up-leave${l}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[l]:{[$]:Object.assign({},H)}},{[`${l}-notice-pure-panel`]:Object.assign(Object.assign({},H),{padding:0,textAlign:"start"})}]};b.Z=(0,o.Z)("Message",c=>{const l=(0,s.TS)(c,{height:150});return[n(l)]},c=>({zIndexPopup:c.zIndexPopupBase+10,contentBg:c.colorBgElevated,contentPadding:`${(c.controlHeightLG-c.fontSize*c.lineHeight)/2}px ${c.paddingSM}px`}),{clientOnly:!0})},45054:function(M,b,e){"use strict";e.d(b,{K:function(){return y},Z:function(){return Z}});var i=e(52495),t=e(87608),o=e.n(t),s=e(75248),n=e(58757),c=e(61836),l=e(80209),v=e(13952),h=e(86538),m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{const{top:T,prefixCls:z,getContainer:A,maxCount:L,duration:I=p,rtl:$,transitionName:B,onAllRemoved:K}=F,{getPrefixCls:H,getPopupContainer:ie,message:ce}=n.useContext(c.E_),te=z||H("message"),[,W]=(0,v.Z)(te),G=()=>({left:"50%",transform:"translateX(-50%)",top:T!=null?T:C}),O=()=>o()(W,{[`${te}-rtl`]:$}),k=()=>(0,h.g)(te,B),Y=n.createElement("span",{className:`${te}-close-x`},n.createElement(i.Z,{className:`${te}-close-icon`})),[P,Q]=(0,s.l)({prefixCls:te,style:G,className:O,motion:k,closable:!1,closeIcon:Y,duration:I,getContainer:()=>(A==null?void 0:A())||(ie==null?void 0:ie())||document.body,maxCount:L,onAllRemoved:K});return n.useImperativeHandle(R,()=>Object.assign(Object.assign({},P),{prefixCls:te,hashId:W,message:ce})),Q});let w=0;function y(F){const R=n.useRef(null);return[n.useMemo(()=>{const z=B=>{var K;(K=R.current)===null||K===void 0||K.close(B)},A=B=>{if(!R.current){const ge=()=>{};return ge.then=()=>{},ge}const{open:K,prefixCls:H,hashId:ie,message:ce}=R.current,te=`${H}-notice`,{content:W,icon:G,type:O,key:k,className:Y,style:P,onClose:Q}=B,fe=m(B,["content","icon","type","key","className","style","onClose"]);let Ce=k;return Ce==null&&(w+=1,Ce=`antd-message-${w}`),(0,h.J)(ge=>(K(Object.assign(Object.assign({},fe),{key:Ce,content:n.createElement(l.CW,{prefixCls:H,type:O,icon:G},W),placement:"top",className:o()(O&&`${te}-${O}`,ie,Y,ce==null?void 0:ce.className),style:Object.assign(Object.assign({},ce==null?void 0:ce.style),P),onClose:()=>{Q==null||Q(),ge()}})),()=>{z(Ce)}))},I={open:A,destroy:B=>{var K;B!==void 0?z(B):(K=R.current)===null||K===void 0||K.destroy()}};return["info","success","warning","error","loading"].forEach(B=>{const K=(H,ie,ce)=>{let te;H&&typeof H=="object"&&"content"in H?te=H:te={content:H};let W,G;typeof ie=="function"?G=ie:(W=ie,G=ce);const O=Object.assign(Object.assign({onClose:G,duration:W},te),{type:B});return A(O)};I[B]=K}),I},[]),n.createElement(S,Object.assign({key:"message-holder"},F,{ref:R}))]}function Z(F){return y(F)}},86538:function(M,b,e){"use strict";e.d(b,{J:function(){return t},g:function(){return i}});function i(o,s){return{motionName:s!=null?s:`${o}-move-up`}}function t(o){let s;const n=new Promise(l=>{s=o(()=>{l(!0)})}),c=()=>{s==null||s()};return c.then=(l,v)=>n.then(l,v),c.promise=n,c}},76370:function(M,b,e){"use strict";e.d(b,{O:function(){return S}});var i=e(85678),t=e(79999),o=e(69831),s=e(33064),n=e(87608),c=e.n(n),l=e(58757),v=e(99086),h=e(90881),m=e(42505),C=e(29487),p=e(65401);function S(y){const{icon:Z,onCancel:F,onOk:R,close:T,onConfirm:z,isSilent:A,okText:L,okButtonProps:I,cancelText:$,cancelButtonProps:B,confirmPrefixCls:K,rootPrefixCls:H,type:ie,okCancel:ce,footer:te,locale:W}=y;let G=Z;if(!Z&&Z!==null)switch(ie){case"info":G=l.createElement(s.Z,null);break;case"success":G=l.createElement(i.Z,null);break;case"error":G=l.createElement(t.Z,null);break;default:G=l.createElement(o.Z,null)}const O=y.okType||"primary",k=ce!=null?ce:ie==="confirm",Y=y.autoFocusButton===null?!1:y.autoFocusButton||"ok",[P]=(0,C.Z)("Modal"),Q=W||P,fe=k&&l.createElement(v.Z,{isSilent:A,actionFn:F,close:function(){T==null||T.apply(void 0,arguments),z==null||z(!1)},autoFocus:Y==="cancel",buttonProps:B,prefixCls:`${H}-btn`},$||(Q==null?void 0:Q.cancelText));return l.createElement("div",{className:`${K}-body-wrapper`},l.createElement("div",{className:`${K}-body`},G,y.title===void 0?null:l.createElement("span",{className:`${K}-title`},y.title),l.createElement("div",{className:`${K}-content`},y.content)),te===void 0?l.createElement("div",{className:`${K}-btns`},fe,l.createElement(v.Z,{isSilent:A,type:O,actionFn:R,close:function(){T==null||T.apply(void 0,arguments),z==null||z(!0)},autoFocus:Y==="ok",buttonProps:I,prefixCls:`${H}-btn`},L||(k?Q==null?void 0:Q.okText:Q==null?void 0:Q.justOkText))):te)}const w=y=>{const{close:Z,zIndex:F,afterClose:R,visible:T,open:z,keyboard:A,centered:L,getContainer:I,maskStyle:$,direction:B,prefixCls:K,wrapClassName:H,rootPrefixCls:ie,iconPrefixCls:ce,theme:te,bodyStyle:W,closable:G=!1,closeIcon:O,modalRender:k,focusTriggerAfterClose:Y}=y,P=`${K}-confirm`,Q=y.width||416,fe=y.style||{},Ce=y.mask===void 0?!0:y.mask,ge=y.maskClosable===void 0?!1:y.maskClosable,Me=c()(P,`${P}-${y.type}`,{[`${P}-rtl`]:B==="rtl"},y.className);return l.createElement(m.ZP,{prefixCls:ie,iconPrefixCls:ce,direction:B,theme:te},l.createElement(p.Z,{prefixCls:K,className:Me,wrapClassName:c()({[`${P}-centered`]:!!y.centered},H),onCancel:()=>Z==null?void 0:Z({triggerCancel:!0}),open:z,title:"",footer:null,transitionName:(0,h.m)(ie,"zoom",y.transitionName),maskTransitionName:(0,h.m)(ie,"fade",y.maskTransitionName),mask:Ce,maskClosable:ge,maskStyle:$,style:fe,bodyStyle:W,width:Q,zIndex:F,afterClose:R,keyboard:A,centered:L,getContainer:I,closable:G,closeIcon:O,modalRender:k,focusTriggerAfterClose:Y},l.createElement(S,Object.assign({},y,{confirmPrefixCls:P}))))};b.Z=w},65401:function(M,b,e){"use strict";var i=e(52495),t=e(87608),o=e.n(t),s=e(67117),n=e(58757),c=e(88858),l=e(90881),v=e(32792),h=e(61836),m=e(81496),C=e(43528),p=e(78669),S=e(76073),w=function(R,T){var z={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&T.indexOf(A)<0&&(z[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(R);L{y={x:R.pageX,y:R.pageY},setTimeout(()=>{y=null},100)};(0,v.jD)()&&document.documentElement.addEventListener("click",Z,!0);const F=R=>{var T;const{getPopupContainer:z,getPrefixCls:A,direction:L,modal:I}=n.useContext(h.E_),$=Lt=>{const{onCancel:ke}=R;ke==null||ke(Lt)},B=Lt=>{const{onOk:ke}=R;ke==null||ke(Lt)},{prefixCls:K,className:H,rootClassName:ie,open:ce,wrapClassName:te,centered:W,getContainer:G,closeIcon:O,closable:k,focusTriggerAfterClose:Y=!0,style:P,visible:Q,width:fe=520,footer:Ce}=R,ge=w(R,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","closeIcon","closable","focusTriggerAfterClose","style","visible","width","footer"]),Me=A("modal",K),Ne=A(),[Qe,Ve]=(0,S.Z)(Me),qe=o()(te,{[`${Me}-centered`]:!!W,[`${Me}-wrap-rtl`]:L==="rtl"}),Mt=Ce===void 0?n.createElement(p.$,Object.assign({},R,{onOk:B,onCancel:$})):Ce,[wt,gt]=(0,c.Z)(k,O,Lt=>(0,p.b)(Me,Lt),n.createElement(i.Z,{className:`${Me}-close-icon`}),!0);return Qe(n.createElement(C.BR,null,n.createElement(m.Ux,{status:!0,override:!0},n.createElement(s.Z,Object.assign({width:fe},ge,{getContainer:G===void 0?z:G,prefixCls:Me,rootClassName:o()(Ve,ie),wrapClassName:qe,footer:Mt,visible:ce!=null?ce:Q,mousePosition:(T=ge.mousePosition)!==null&&T!==void 0?T:y,onClose:$,closable:wt,closeIcon:gt,focusTriggerAfterClose:Y,transitionName:(0,l.m)(Ne,"zoom",R.transitionName),maskTransitionName:(0,l.m)(Ne,"fade",R.maskTransitionName),className:o()(Ve,H,I==null?void 0:I.className),style:Object.assign(Object.assign({},I==null?void 0:I.style),P)})))))};b.Z=F},49316:function(M,b,e){"use strict";e.d(b,{AQ:function(){return y},Au:function(){return Z},ZP:function(){return C},ai:function(){return F},cw:function(){return S},uW:function(){return p},vq:function(){return w}});var i=e(29140),t=e(52323),o=e(58757),s=e(42505),n=e(76370),c=e(98702),l=e(67228),v=function(R,T){var z={};for(var A in R)Object.prototype.hasOwnProperty.call(R,A)&&T.indexOf(A)<0&&(z[A]=R[A]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var L=0,A=Object.getOwnPropertySymbols(R);Lte&&te.triggerCancel);R.onCancel&&ce&&R.onCancel.apply(R,[()=>{}].concat((0,i.Z)(H.slice(1))));for(let te=0;te{const G=(0,l.A)(),{getPrefixCls:O,getIconPrefixCls:k,getTheme:Y}=(0,s.w6)(),P=O(void 0,m()),Q=ce||`${P}-modal`,fe=k(),Ce=Y();let ge=te;ge===!1&&(ge=void 0),(0,t.s)(o.createElement(n.Z,Object.assign({},W,{getContainer:ge,prefixCls:Q,rootPrefixCls:P,iconPrefixCls:fe,okText:H,locale:G,theme:Ce,cancelText:ie||G.cancelText})),T)})}function $(){for(var K=arguments.length,H=new Array(K),ie=0;ie{typeof R.afterClose=="function"&&R.afterClose(),L.apply(this,H)}}),z.visible&&delete z.visible,I(z)}function B(K){typeof K=="function"?z=K(z):z=Object.assign(Object.assign({},z),K),I(z)}return I(z),c.Z.push($),{destroy:$,update:B}}function p(R){return Object.assign(Object.assign({},R),{type:"warning"})}function S(R){return Object.assign(Object.assign({},R),{type:"info"})}function w(R){return Object.assign(Object.assign({},R),{type:"success"})}function y(R){return Object.assign(Object.assign({},R),{type:"error"})}function Z(R){return Object.assign(Object.assign({},R),{type:"confirm"})}function F(R){let{rootPrefixCls:T}=R;h=T}},98702:function(M,b){"use strict";const e=[];b.Z=e},62109:function(M,b,e){"use strict";e.d(b,{Z:function(){return T}});var i=e(49316),t=e(98702),o=e(65401),s=e(87608),n=e.n(s),c=e(67117),l=e(58757),v=e(61836),h=e(76370),m=e(78669),C=e(76073),p=e(15018),S=function(z,A){var L={};for(var I in z)Object.prototype.hasOwnProperty.call(z,I)&&A.indexOf(I)<0&&(L[I]=z[I]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,I=Object.getOwnPropertySymbols(z);${const{prefixCls:A,className:L,closeIcon:I,closable:$,type:B,title:K,children:H}=z,ie=S(z,["prefixCls","className","closeIcon","closable","type","title","children"]),{getPrefixCls:ce}=l.useContext(v.E_),te=ce(),W=A||ce("modal"),[,G]=(0,C.Z)(W),O=`${W}-confirm`;let k={};return B?k={closable:$!=null?$:!1,title:"",footer:"",children:l.createElement(h.O,Object.assign({},z,{confirmPrefixCls:O,rootPrefixCls:te,content:H}))}:k={closable:$!=null?$:!0,title:K,footer:z.footer===void 0?l.createElement(m.$,Object.assign({},z)):z.footer,children:H},l.createElement(c.s,Object.assign({prefixCls:W,className:n()(G,`${W}-pure-panel`,B&&O,B&&`${O}-${B}`,L)},ie,{closeIcon:(0,m.b)(W,I),closable:$},k))};var y=(0,p.i)(w),Z=e(65172);function F(z){return(0,i.ZP)((0,i.uW)(z))}const R=o.Z;R.useModal=Z.Z,R.info=function(A){return(0,i.ZP)((0,i.cw)(A))},R.success=function(A){return(0,i.ZP)((0,i.vq)(A))},R.error=function(A){return(0,i.ZP)((0,i.AQ)(A))},R.warning=F,R.warn=F,R.confirm=function(A){return(0,i.ZP)((0,i.Au)(A))},R.destroyAll=function(){for(;t.Z.length;){const A=t.Z.pop();A&&A()}},R.config=i.ai,R._InternalPanelDoNotUseOrYouWillBeFired=y;var T=R},67228:function(M,b,e){"use strict";e.d(b,{A:function(){return c},f:function(){return n}});var i=e(80076);let t=Object.assign({},i.Z.Modal),o=[];const s=()=>o.reduce((l,v)=>Object.assign(Object.assign({},l),v),i.Z.Modal);function n(l){if(l){const v=Object.assign({},l);return o.push(v),t=s(),()=>{o=o.filter(h=>h!==v),t=s()}}t=Object.assign({},i.Z.Modal)}function c(){return t}},78669:function(M,b,e){"use strict";e.d(b,{$:function(){return h},b:function(){return v}});var i=e(52495),t=e(58757),o=e(12562),s=e(70921),n=e(92428),c=e(29487),l=e(67228);function v(m,C){return t.createElement("span",{className:`${m}-close-x`},C||t.createElement(i.Z,{className:`${m}-close-icon`}))}const h=m=>{const{okText:C,okType:p="primary",cancelText:S,confirmLoading:w,onOk:y,onCancel:Z,okButtonProps:F,cancelButtonProps:R}=m,[T]=(0,c.Z)("Modal",(0,l.A)());return t.createElement(n.n,{disabled:!1},t.createElement(o.ZP,Object.assign({onClick:Z},R),S||(T==null?void 0:T.cancelText)),t.createElement(o.ZP,Object.assign({},(0,s.n)(p),{loading:w,onClick:y},F),C||(T==null?void 0:T.okText)))}},76073:function(M,b,e){"use strict";e.d(b,{Q:function(){return l}});var i=e(78330),t=e(7239),o=e(28107),s=e(52628),n=e(22151);function c(p){return{position:p,inset:0}}const l=p=>{const{componentCls:S,antCls:w}=p;return[{[`${S}-root`]:{[`${S}${w}-zoom-enter, ${S}${w}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:p.motionDurationSlow,userSelect:"none"},[`${S}${w}-zoom-leave ${S}-content`]:{pointerEvents:"none"},[`${S}-mask`]:Object.assign(Object.assign({},c("fixed")),{zIndex:p.zIndexPopupBase,height:"100%",backgroundColor:p.colorBgMask,pointerEvents:"none",[`${S}-hidden`]:{display:"none"}}),[`${S}-wrap`]:Object.assign(Object.assign({},c("fixed")),{zIndex:p.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch",[`&:has(${S}${w}-zoom-enter), &:has(${S}${w}-zoom-appear)`]:{pointerEvents:"none"}})}},{[`${S}-root`]:(0,t.J$)(p)}]},v=p=>{const{componentCls:S}=p;return[{[`${S}-root`]:{[`${S}-wrap-rtl`]:{direction:"rtl"},[`${S}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[S]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${p.screenSMMax})`]:{[S]:{maxWidth:"calc(100vw - 16px)",margin:`${p.marginXS} auto`},[`${S}-centered`]:{[S]:{flex:1}}}}},{[S]:Object.assign(Object.assign({},(0,i.Wf)(p)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${p.margin*2}px)`,margin:"0 auto",paddingBottom:p.paddingLG,[`${S}-title`]:{margin:0,color:p.titleColor,fontWeight:p.fontWeightStrong,fontSize:p.titleFontSize,lineHeight:p.titleLineHeight,wordWrap:"break-word"},[`${S}-content`]:{position:"relative",backgroundColor:p.contentBg,backgroundClip:"padding-box",border:0,borderRadius:p.borderRadiusLG,boxShadow:p.boxShadow,pointerEvents:"auto",padding:`${p.paddingMD}px ${p.paddingContentHorizontalLG}px`},[`${S}-close`]:Object.assign({position:"absolute",top:(p.modalHeaderHeight-p.modalCloseBtnSize)/2,insetInlineEnd:(p.modalHeaderHeight-p.modalCloseBtnSize)/2,zIndex:p.zIndexPopupBase+10,padding:0,color:p.modalCloseIconColor,fontWeight:p.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:p.borderRadiusSM,width:p.modalCloseBtnSize,height:p.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${p.motionDurationMid}, background-color ${p.motionDurationMid}`,"&-x":{display:"flex",fontSize:p.fontSizeLG,fontStyle:"normal",lineHeight:`${p.modalCloseBtnSize}px`,justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:p.modalIconHoverColor,backgroundColor:p.wireframe?"transparent":p.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:p.wireframe?"transparent":p.colorFillContentHover}},(0,i.Qy)(p)),[`${S}-header`]:{color:p.colorText,background:p.headerBg,borderRadius:`${p.borderRadiusLG}px ${p.borderRadiusLG}px 0 0`,marginBottom:p.marginXS},[`${S}-body`]:{fontSize:p.fontSize,lineHeight:p.lineHeight,wordWrap:"break-word"},[`${S}-footer`]:{textAlign:"end",background:p.footerBg,marginTop:p.marginSM,[`${p.antCls}-btn + ${p.antCls}-btn:not(${p.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:p.marginXS}},[`${S}-open`]:{overflow:"hidden"}})},{[`${S}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${S}-content, ${S}-body, ${S}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${S}-confirm-body`]:{marginBottom:"auto"}}}]},h=p=>{const{componentCls:S}=p,w=`${S}-confirm`;return{[w]:{"&-rtl":{direction:"rtl"},[`${p.antCls}-modal-header`]:{display:"none"},[`${w}-body-wrapper`]:Object.assign({},(0,i.dF)()),[`${w}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${w}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:p.colorTextHeading,fontWeight:p.fontWeightStrong,fontSize:p.titleFontSize,lineHeight:p.titleLineHeight,[`+ ${w}-content`]:{marginBlockStart:p.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${p.modalConfirmIconSize+p.marginSM}px)`}},[`${w}-content`]:{color:p.colorText,fontSize:p.fontSize},[`> ${p.iconCls}`]:{flex:"none",marginInlineEnd:p.marginSM,fontSize:p.modalConfirmIconSize,[`+ ${w}-title`]:{flex:1},[`+ ${w}-title + ${w}-content`]:{marginInlineStart:p.modalConfirmIconSize+p.marginSM}}},[`${w}-btns`]:{textAlign:"end",marginTop:p.marginSM,[`${p.antCls}-btn + ${p.antCls}-btn`]:{marginBottom:0,marginInlineStart:p.marginXS}}},[`${w}-error ${w}-body > ${p.iconCls}`]:{color:p.colorError},[`${w}-warning ${w}-body > ${p.iconCls}, - ${w}-confirm ${w}-body > ${p.iconCls}`]:{color:p.colorWarning},[`${w}-info ${w}-body > ${p.iconCls}`]:{color:p.colorInfo},[`${w}-success ${w}-body > ${p.iconCls}`]:{color:p.colorSuccess}}},m=p=>{const{componentCls:S}=p;return{[`${S}-root`]:{[`${S}-wrap-rtl`]:{direction:"rtl",[`${S}-confirm-body`]:{direction:"rtl"}}}}},C=p=>{const{componentCls:S,antCls:w}=p,y=`${S}-confirm`;return{[S]:{[`${S}-content`]:{padding:0},[`${S}-header`]:{padding:p.modalHeaderPadding,borderBottom:`${p.modalHeaderBorderWidth}px ${p.modalHeaderBorderStyle} ${p.modalHeaderBorderColorSplit}`,marginBottom:0},[`${S}-body`]:{padding:p.modalBodyPadding},[`${S}-footer`]:{padding:`${p.modalFooterPaddingVertical}px ${p.modalFooterPaddingHorizontal}px`,borderTop:`${p.modalFooterBorderWidth}px ${p.modalFooterBorderStyle} ${p.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${p.borderRadiusLG}px ${p.borderRadiusLG}px`,marginTop:0}},[y]:{[`${w}-modal-body`]:{padding:`${p.padding*2}px ${p.padding*2}px ${p.paddingLG}px`},[`${y}-body`]:{[`> ${p.iconCls}`]:{marginInlineEnd:p.margin,[`+ ${y}-title + ${y}-content`]:{marginInlineStart:p.modalConfirmIconSize+p.margin}}},[`${y}-btns`]:{marginTop:p.marginLG}}}};b.Z=(0,s.Z)("Modal",p=>{const S=p.padding,w=p.fontSizeHeading5,y=p.lineHeightHeading5,Z=(0,n.TS)(p,{modalBodyPadding:p.paddingLG,modalHeaderPadding:`${S}px ${p.paddingLG}px`,modalHeaderBorderWidth:p.lineWidth,modalHeaderBorderStyle:p.lineType,modalHeaderBorderColorSplit:p.colorSplit,modalHeaderHeight:y*w+S*2,modalFooterBorderColorSplit:p.colorSplit,modalFooterBorderStyle:p.lineType,modalFooterPaddingVertical:p.paddingXS,modalFooterPaddingHorizontal:p.padding,modalFooterBorderWidth:p.lineWidth,modalIconHoverColor:p.colorIconHover,modalCloseIconColor:p.colorIcon,modalCloseBtnSize:p.fontSize*p.lineHeight,modalConfirmIconSize:p.fontSize*p.lineHeight});return[v(Z),h(Z),m(Z),l(Z),p.wireframe&&C(Z),(0,o._y)(Z,"zoom")]},p=>({footerBg:"transparent",headerBg:p.colorBgElevated,titleLineHeight:p.lineHeightHeading5,titleFontSize:p.fontSizeHeading5,contentBg:p.colorBgElevated,titleColor:p.colorTextHeading}))},65172:function(M,b,e){"use strict";e.d(b,{Z:function(){return Z}});var i=e(29140),t=e(58757);function o(){const[F,R]=t.useState([]),T=t.useCallback(z=>(R(A=>[].concat((0,i.Z)(A),[z])),()=>{R(A=>A.filter(L=>L!==z))}),[]);return[F,T]}var s=e(49316),n=e(98702),c=e(61836),l=e(80076),v=e(29487),h=e(76370),m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{var T,{afterClose:z,config:A}=F,L=m(F,["afterClose","config"]);const[I,$]=t.useState(!0),[B,K]=t.useState(A),{direction:H,getPrefixCls:ie}=t.useContext(c.E_),ce=ie("modal"),te=ie(),W=()=>{var Y;z(),(Y=B.afterClose)===null||Y===void 0||Y.call(B)},G=function(){$(!1);for(var Y=arguments.length,P=new Array(Y),Q=0;QCe&&Ce.triggerCancel);B.onCancel&&fe&&B.onCancel.apply(B,[()=>{}].concat((0,i.Z)(P.slice(1))))};t.useImperativeHandle(R,()=>({destroy:G,update:Y=>{K(P=>Object.assign(Object.assign({},P),Y))}}));const O=(T=B.okCancel)!==null&&T!==void 0?T:B.type==="confirm",[k]=(0,v.Z)("Modal",l.Z.Modal);return t.createElement(h.Z,Object.assign({prefixCls:ce,rootPrefixCls:te},B,{close:G,open:I,afterClose:W,okText:B.okText||(O?k==null?void 0:k.okText:k==null?void 0:k.justOkText),direction:B.direction||H,cancelText:B.cancelText||(k==null?void 0:k.cancelText)},L))};var p=t.forwardRef(C);let S=0;const w=t.memo(t.forwardRef((F,R)=>{const[T,z]=o();return t.useImperativeHandle(R,()=>({patchElement:z}),[]),t.createElement(t.Fragment,null,T)}));function y(){const F=t.useRef(null),[R,T]=t.useState([]);t.useEffect(()=>{R.length&&((0,i.Z)(R).forEach(I=>{I()}),T([]))},[R]);const z=t.useCallback(L=>function($){var B;S+=1;const K=t.createRef();let H;const ie=new Promise(O=>{H=O});let ce=!1,te;const W=t.createElement(p,{key:`modal-${S}`,config:L($),ref:K,afterClose:()=>{te==null||te()},isSilent:()=>ce,onConfirm:O=>{H(O)}});return te=(B=F.current)===null||B===void 0?void 0:B.patchElement(W),te&&n.Z.push(te),{destroy:()=>{function O(){var k;(k=K.current)===null||k===void 0||k.destroy()}K.current?O():T(k=>[].concat((0,i.Z)(k),[O]))},update:O=>{function k(){var Y;(Y=K.current)===null||Y===void 0||Y.update(O)}K.current?k():T(Y=>[].concat((0,i.Z)(Y),[k]))},then:O=>(ce=!0,ie.then(O))}},[]);return[t.useMemo(()=>({info:z(s.cw),success:z(s.vq),error:z(s.AQ),warning:z(s.uW),confirm:z(s.Au)}),[]),t.createElement(w,{key:"modal-holder",ref:F})]}var Z=y},37864:function(M,b,e){"use strict";e.d(b,{CW:function(){return F},z5:function(){return y}});var i=e(85678),t=e(79999),o=e(52495),s=e(69831),n=e(33064),c=e(25755),l=e(87608),v=e.n(l),h=e(75248),m=e(58757),C=e(61836),p=e(26284),S=function(T,z){var A={};for(var L in T)Object.prototype.hasOwnProperty.call(T,L)&&z.indexOf(L)<0&&(A[L]=T[L]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,L=Object.getOwnPropertySymbols(T);I{const{prefixCls:z,icon:A,type:L,message:I,description:$,btn:B,role:K="alert"}=T;let H=null;return A?H=m.createElement("span",{className:`${z}-icon`},A):L&&(H=m.createElement(Z[L]||null,{className:v()(`${z}-icon`,`${z}-icon-${L}`)})),m.createElement("div",{className:v()({[`${z}-with-icon`]:H}),role:K},H,m.createElement("div",{className:`${z}-message`},I),m.createElement("div",{className:`${z}-description`},$),B&&m.createElement("div",{className:`${z}-btn`},B))},R=T=>{const{prefixCls:z,className:A,icon:L,type:I,message:$,description:B,btn:K,closable:H=!0,closeIcon:ie}=T,ce=S(T,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:te}=m.useContext(C.E_),W=z||te("notification"),G=`${W}-notice`,[,O]=(0,p.Z)(W);return m.createElement(h.q,Object.assign({},ce,{prefixCls:W,className:v()(A,O,`${G}-pure-panel`),eventKey:"pure",duration:null,closable:H,closeIcon:y(W,ie),content:m.createElement(F,{prefixCls:G,icon:L,type:I,message:$,description:B,btn:K})}))};b.ZP=R},65388:function(M,b,e){"use strict";var i=e(58757),t=e(52323),o=e(42505),s=e(37864),n=e(75105);let c=null,l=A=>A(),v=[],h={};function m(){const{prefixCls:A,getContainer:L,rtl:I,maxCount:$,top:B,bottom:K}=h,H=A!=null?A:(0,o.w6)().getPrefixCls("notification"),ie=(L==null?void 0:L())||document.body;return{prefixCls:H,getContainer:()=>ie,rtl:I,maxCount:$,top:B,bottom:K}}const C=i.forwardRef((A,L)=>{const[I,$]=i.useState(m),[B,K]=(0,n.k)(I),H=(0,o.w6)(),ie=H.getRootPrefixCls(),ce=H.getIconPrefixCls(),te=H.getTheme(),W=()=>{$(m)};return i.useEffect(W,[]),i.useImperativeHandle(L,()=>{const G=Object.assign({},B);return Object.keys(G).forEach(O=>{G[O]=function(){return W(),B[O].apply(B,arguments)}}),{instance:G,sync:W}}),i.createElement(o.ZP,{prefixCls:ie,iconPrefixCls:ce,theme:te},K)});function p(){if(!c){const A=document.createDocumentFragment(),L={fragment:A};c=L,l(()=>{(0,t.s)(i.createElement(C,{ref:I=>{const{instance:$,sync:B}=I||{};Promise.resolve().then(()=>{!L.instance&&$&&(L.instance=$,L.sync=B,p())})}}),A)});return}c.instance&&(v.forEach(A=>{switch(A.type){case"open":{l(()=>{c.instance.open(Object.assign(Object.assign({},h),A.config))});break}case"destroy":l(()=>{c==null||c.instance.destroy(A.key)});break}}),v=[])}function S(A){h=Object.assign(Object.assign({},h),A),l(()=>{var L;(L=c==null?void 0:c.sync)===null||L===void 0||L.call(c)})}function w(A){v.push({type:"open",config:A}),p()}function y(A){v.push({type:"destroy",key:A}),p()}const Z=["success","info","warning","error"],R={open:w,destroy:y,config:S,useNotification:n.Z,_InternalPanelDoNotUseOrYouWillBeFired:s.ZP};Z.forEach(A=>{R[A]=L=>w(Object.assign(Object.assign({},L),{type:A}))});const T=()=>{};let z=null;b.Z=R},26284:function(M,b,e){"use strict";e.d(b,{Z:function(){return v}});var i=e(57793),t=e(78330),o=e(52628),s=e(22151),c=h=>{const{componentCls:m,width:C,notificationMarginEdge:p}=h,S=new i.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),w=new i.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),y=new i.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:C},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${m}-top, &${m}-bottom`]:{marginInline:0},[`&${m}-top`]:{[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:S}},[`&${m}-bottom`]:{[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:w}},[`&${m}-topLeft, &${m}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:p,[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:y}}}};const l=h=>{const{iconCls:m,componentCls:C,boxShadow:p,fontSizeLG:S,notificationMarginBottom:w,borderRadiusLG:y,colorSuccess:Z,colorInfo:F,colorWarning:R,colorError:T,colorTextHeading:z,notificationBg:A,notificationPadding:L,notificationMarginEdge:I,motionDurationMid:$,motionEaseInOut:B,fontSize:K,lineHeight:H,width:ie,notificationIconSize:ce,colorText:te}=h,W=`${C}-notice`,G=new i.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:ie},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),O=new i.E4("antNotificationFadeOut",{"0%":{maxHeight:h.animationMaxHeight,marginBottom:w,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),k={position:"relative",width:ie,maxWidth:`calc(100vw - ${I*2}px)`,marginBottom:w,marginInlineStart:"auto",padding:L,overflow:"hidden",lineHeight:H,wordWrap:"break-word",background:A,borderRadius:y,boxShadow:p,[`${C}-close-icon`]:{fontSize:K,cursor:"pointer"},[`${W}-message`]:{marginBottom:h.marginXS,color:z,fontSize:S,lineHeight:h.lineHeightLG},[`${W}-description`]:{fontSize:K,color:te},[`&${W}-closable ${W}-message`]:{paddingInlineEnd:h.paddingLG},[`${W}-with-icon ${W}-message`]:{marginBottom:h.marginXS,marginInlineStart:h.marginSM+ce,fontSize:S},[`${W}-with-icon ${W}-description`]:{marginInlineStart:h.marginSM+ce,fontSize:K},[`${W}-icon`]:{position:"absolute",fontSize:ce,lineHeight:0,[`&-success${m}`]:{color:Z},[`&-info${m}`]:{color:F},[`&-warning${m}`]:{color:R},[`&-error${m}`]:{color:T}},[`${W}-close`]:{position:"absolute",top:h.notificationPaddingVertical,insetInlineEnd:h.notificationPaddingHorizontal,color:h.colorIcon,outline:"none",width:h.notificationCloseButtonSize,height:h.notificationCloseButtonSize,borderRadius:h.borderRadiusSM,transition:`background-color ${h.motionDurationMid}, color ${h.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:h.colorIconHover,backgroundColor:h.wireframe?"transparent":h.colorFillContent}},[`${W}-btn`]:{float:"right",marginTop:h.marginSM}};return[{[C]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t.Wf)(h)),{position:"fixed",zIndex:h.zIndexPopup,marginInlineEnd:I,[`${C}-hook-holder`]:{position:"relative"},[`&${C}-top, &${C}-bottom`]:{[W]:{marginInline:"auto auto"}},[`&${C}-topLeft, &${C}-bottomLeft`]:{[W]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${C}-fade-enter, ${C}-fade-appear`]:{animationDuration:h.motionDurationMid,animationTimingFunction:B,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${C}-fade-leave`]:{animationTimingFunction:B,animationFillMode:"both",animationDuration:$,animationPlayState:"paused"},[`${C}-fade-enter${C}-fade-enter-active, ${C}-fade-appear${C}-fade-appear-active`]:{animationName:G,animationPlayState:"running"},[`${C}-fade-leave${C}-fade-leave-active`]:{animationName:O,animationPlayState:"running"}}),c(h)),{"&-rtl":{direction:"rtl",[`${W}-btn`]:{float:"left"}}})},{[C]:{[W]:Object.assign({},k)}},{[`${W}-pure-panel`]:Object.assign(Object.assign({},k),{margin:0})}]};var v=(0,o.Z)("Notification",h=>{const m=h.paddingMD,C=h.paddingLG,p=(0,s.TS)(h,{notificationBg:h.colorBgElevated,notificationPaddingVertical:m,notificationPaddingHorizontal:C,notificationIconSize:h.fontSizeLG*h.lineHeightLG,notificationCloseButtonSize:h.controlHeightLG*.55,notificationMarginBottom:h.margin,notificationPadding:`${h.paddingMD}px ${h.paddingContentHorizontalLG}px`,notificationMarginEdge:h.marginLG,animationMaxHeight:150});return[l(p)]},h=>({zIndexPopup:h.zIndexPopupBase+50,width:384}),{clientOnly:!0})},75105:function(M,b,e){"use strict";e.d(b,{Z:function(){return Z},k:function(){return y}});var i=e(58757),t=e(87608),o=e.n(t),s=e(75248),n=e(61836),c=e(37864),l=e(26284);function v(F,R,T){let z;switch(F){case"top":z={left:"50%",transform:"translateX(-50%)",right:"auto",top:R,bottom:"auto"};break;case"topLeft":z={left:0,top:R,bottom:"auto"};break;case"topRight":z={right:0,top:R,bottom:"auto"};break;case"bottom":z={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:T};break;case"bottomLeft":z={left:0,top:"auto",bottom:T};break;default:z={right:0,top:"auto",bottom:T};break}return z}function h(F){return{motionName:`${F}-fade`}}var m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{const{top:T,bottom:z,prefixCls:A,getContainer:L,maxCount:I,rtl:$,onAllRemoved:B}=F,{getPrefixCls:K,getPopupContainer:H,notification:ie}=i.useContext(n.E_),ce=A||K("notification"),te=P=>v(P,T!=null?T:C,z!=null?z:C),[,W]=(0,l.Z)(ce),G=()=>o()(W,{[`${ce}-rtl`]:$}),O=()=>h(ce),[k,Y]=(0,s.l)({prefixCls:ce,style:te,className:G,motion:O,closable:!0,closeIcon:(0,c.z5)(ce),duration:p,getContainer:()=>(L==null?void 0:L())||(H==null?void 0:H())||document.body,maxCount:I,onAllRemoved:B});return i.useImperativeHandle(R,()=>Object.assign(Object.assign({},k),{prefixCls:ce,hashId:W,notification:ie})),Y});function y(F){const R=i.useRef(null);return[i.useMemo(()=>{const z=$=>{var B;if(!R.current)return;const{open:K,prefixCls:H,hashId:ie,notification:ce}=R.current,te=`${H}-notice`,{message:W,description:G,icon:O,type:k,btn:Y,className:P,style:Q,role:fe="alert",closeIcon:Ce}=$,ge=m($,["message","description","icon","type","btn","className","style","role","closeIcon"]),Me=(0,c.z5)(te,Ce);return K(Object.assign(Object.assign({placement:(B=F==null?void 0:F.placement)!==null&&B!==void 0?B:S},ge),{content:i.createElement(c.CW,{prefixCls:te,icon:O,type:k,message:W,description:G,btn:Y,role:fe}),className:o()(k&&`${te}-${k}`,ie,P,ce==null?void 0:ce.className),style:Object.assign(Object.assign({},ce==null?void 0:ce.style),Q),closeIcon:Me,closable:!!Me}))},L={open:z,destroy:$=>{var B,K;$!==void 0?(B=R.current)===null||B===void 0||B.close($):(K=R.current)===null||K===void 0||K.destroy()}};return["success","info","warning","error"].forEach($=>{L[$]=B=>z(Object.assign(Object.assign({},B),{type:$}))}),L},[]),i.createElement(w,Object.assign({key:"notification-holder"},F,{ref:R}))]}function Z(F){return y(F)}},35910:function(M,b,e){"use strict";e.d(b,{Z:function(){return se}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(re,Ie){return t.createElement(n.Z,(0,i.Z)({},re,{ref:Ie,icon:s}))},l=t.forwardRef(c),v={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"},h=v,m=function(re,Ie){return t.createElement(n.Z,(0,i.Z)({},re,{ref:Ie,icon:h}))},C=t.forwardRef(m),p=e(99142),S=e(91169),w=e(87608),y=e.n(w),Z=e(37734),F=e(57370),R=e(60412),T=e(14346),z=e(87498),A=e(73726),L=e(33926),I={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=I,B=e(23737),K=function(X){(0,z.Z)(Ie,X);var re=(0,A.Z)(Ie);function Ie(){var Se;(0,R.Z)(this,Ie);for(var he=arguments.length,We=new Array(he),de=0;de=0||le.relatedTarget.className.indexOf("".concat(pe,"-item"))>=0))&&Ze(Se.getValidValue()))},Se.go=function(le){var ve=Se.state.goInputText;ve!==""&&(le.keyCode===$.ENTER||le.type==="click")&&(Se.setState({goInputText:""}),Se.props.quickGo(Se.getValidValue()))},Se}return(0,T.Z)(Ie,[{key:"getPageSizeOptions",value:function(){var he=this.props,We=he.pageSize,de=he.pageSizeOptions;return de.some(function(le){return le.toString()===We.toString()})?de:de.concat([We.toString()]).sort(function(le,ve){var xe=Number.isNaN(Number(le))?0:Number(le),Ze=Number.isNaN(Number(ve))?0:Number(ve);return xe-Ze})}},{key:"render",value:function(){var he=this,We=this.props,de=We.pageSize,le=We.locale,ve=We.rootPrefixCls,xe=We.changeSize,Ze=We.quickGo,pe=We.goButton,Je=We.selectComponentClass,Ae=We.buildOptionText,oe=We.selectPrefixCls,ye=We.disabled,Be=this.state.goInputText,De="".concat(ve,"-options"),Pe=Je,we=null,Le=null,Ye=null;if(!xe&&!Ze)return null;var Ue=this.getPageSizeOptions();if(xe&&Pe){var dt=Ue.map(function(bt,ft){return t.createElement(Pe.Option,{key:ft,value:bt.toString()},(Ae||he.buildOptionText)(bt))});we=t.createElement(Pe,{disabled:ye,prefixCls:oe,showSearch:!1,className:"".concat(De,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(de||Ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":le.page_size,defaultOpen:!1},dt)}return Ze&&(pe&&(Ye=typeof pe=="boolean"?t.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ye,className:"".concat(De,"-quick-jumper-button")},le.jump_to_confirm):t.createElement("span",{onClick:this.go,onKeyUp:this.go},pe)),Le=t.createElement("div",{className:"".concat(De,"-quick-jumper")},le.jump_to,t.createElement("input",{disabled:ye,type:"text",value:Be,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":le.page}),le.page,Ye)),t.createElement("li",{className:"".concat(De)},we,Le)}}]),Ie}(t.Component);K.defaultProps={pageSizeOptions:["10","20","50","100"]};var H=K,ie=function(re){var Ie,Se=re.rootPrefixCls,he=re.page,We=re.active,de=re.className,le=re.showTitle,ve=re.onClick,xe=re.onKeyPress,Ze=re.itemRender,pe="".concat(Se,"-item"),Je=y()(pe,"".concat(pe,"-").concat(he),(Ie={},(0,Z.Z)(Ie,"".concat(pe,"-active"),We),(0,Z.Z)(Ie,"".concat(pe,"-disabled"),!he),(0,Z.Z)(Ie,re.className,de),Ie)),Ae=function(){ve(he)},oe=function(De){xe(De,ve,he)},ye=Ze(he,"page",t.createElement("a",{rel:"nofollow"},he));return ye?t.createElement("li",{title:le?he.toString():null,className:Je,onClick:Ae,onKeyPress:oe,tabIndex:0},ye):null},ce=ie;function te(){}function W(X){var re=Number(X);return typeof re=="number"&&!Number.isNaN(re)&&isFinite(re)&&Math.floor(re)===re}var G=function(re,Ie,Se){return Se};function O(X,re,Ie){var Se=typeof X=="undefined"?re.pageSize:X;return Math.floor((Ie.total-1)/Se)+1}var k=function(X){(0,z.Z)(Ie,X);var re=(0,A.Z)(Ie);function Ie(Se){var he;(0,R.Z)(this,Ie),he=re.call(this,Se),he.paginationNode=t.createRef(),he.getJumpPrevPage=function(){return Math.max(1,he.state.current-(he.props.showLessItems?3:5))},he.getJumpNextPage=function(){return Math.min(O(void 0,he.state,he.props),he.state.current+(he.props.showLessItems?3:5))},he.getItemIcon=function(xe,Ze){var pe=he.props.prefixCls,Je=xe||t.createElement("button",{type:"button","aria-label":Ze,className:"".concat(pe,"-item-link")});return typeof xe=="function"&&(Je=t.createElement(xe,(0,F.Z)({},he.props))),Je},he.isValid=function(xe){var Ze=he.props.total;return W(xe)&&xe!==he.state.current&&W(Ze)&&Ze>0},he.shouldDisplayQuickJumper=function(){var xe=he.props,Ze=xe.showQuickJumper,pe=xe.total,Je=he.state.pageSize;return pe<=Je?!1:Ze},he.handleKeyDown=function(xe){(xe.keyCode===$.ARROW_UP||xe.keyCode===$.ARROW_DOWN)&&xe.preventDefault()},he.handleKeyUp=function(xe){var Ze=he.getValidValue(xe),pe=he.state.currentInputValue;Ze!==pe&&he.setState({currentInputValue:Ze}),xe.keyCode===$.ENTER?he.handleChange(Ze):xe.keyCode===$.ARROW_UP?he.handleChange(Ze-1):xe.keyCode===$.ARROW_DOWN&&he.handleChange(Ze+1)},he.handleBlur=function(xe){var Ze=he.getValidValue(xe);he.handleChange(Ze)},he.changePageSize=function(xe){var Ze=he.state.current,pe=O(xe,he.state,he.props);Ze=Ze>pe?pe:Ze,pe===0&&(Ze=he.state.current),typeof xe=="number"&&("pageSize"in he.props||he.setState({pageSize:xe}),"current"in he.props||he.setState({current:Ze,currentInputValue:Ze})),he.props.onShowSizeChange(Ze,xe),"onChange"in he.props&&he.props.onChange&&he.props.onChange(Ze,xe)},he.handleChange=function(xe){var Ze=he.props,pe=Ze.disabled,Je=Ze.onChange,Ae=he.state,oe=Ae.pageSize,ye=Ae.current,Be=Ae.currentInputValue;if(he.isValid(xe)&&!pe){var De=O(void 0,he.state,he.props),Pe=xe;return xe>De?Pe=De:xe<1&&(Pe=1),"current"in he.props||he.setState({current:Pe}),Pe!==Be&&he.setState({currentInputValue:Pe}),Je(Pe,oe),Pe}return ye},he.prev=function(){he.hasPrev()&&he.handleChange(he.state.current-1)},he.next=function(){he.hasNext()&&he.handleChange(he.state.current+1)},he.jumpPrev=function(){he.handleChange(he.getJumpPrevPage())},he.jumpNext=function(){he.handleChange(he.getJumpNextPage())},he.hasPrev=function(){return he.state.current>1},he.hasNext=function(){return he.state.current2?pe-2:0),Ae=2;Ae=de?ve=de:ve=Number(We),ve}},{key:"getShowSizeChanger",value:function(){var he=this.props,We=he.showSizeChanger,de=he.total,le=he.totalBoundaryShowSizeChanger;return typeof We!="undefined"?We:de>le}},{key:"render",value:function(){var he=this.props,We=he.prefixCls,de=he.className,le=he.style,ve=he.disabled,xe=he.hideOnSinglePage,Ze=he.total,pe=he.locale,Je=he.showQuickJumper,Ae=he.showLessItems,oe=he.showTitle,ye=he.showTotal,Be=he.simple,De=he.itemRender,Pe=he.showPrevNextJumpers,we=he.jumpPrevIcon,Le=he.jumpNextIcon,Ye=he.selectComponentClass,Ue=he.selectPrefixCls,dt=he.pageSizeOptions,bt=this.state,ft=bt.current,At=bt.pageSize,Ot=bt.currentInputValue;if(xe===!0&&Ze<=At)return null;var jt=O(void 0,this.state,this.props),Gt=[],Xt=null,zn=null,fn=null,Bn=null,On=null,Mn=Je&&Je.goButton,_e=Ae?1:2,at=ft-1>0?ft-1:0,Vt=ft+1Ze?Ze:ft*At]));if(Be){Mn&&(typeof Mn=="boolean"?On=t.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},pe.jump_to_confirm):On=t.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Mn),On=t.createElement("li",{title:oe?"".concat(pe.jump_to).concat(ft,"/").concat(jt):null,className:"".concat(We,"-simple-pager")},On));var ut=this.renderPrev(at);return t.createElement("ul",(0,i.Z)({className:y()(We,"".concat(We,"-simple"),(0,Z.Z)({},"".concat(We,"-disabled"),ve),de),style:le,ref:this.paginationNode},rn),st,ut?t.createElement("li",{title:oe?pe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:y()("".concat(We,"-prev"),(0,Z.Z)({},"".concat(We,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ut):null,t.createElement("li",{title:oe?"".concat(ft,"/").concat(jt):null,className:"".concat(We,"-simple-pager")},t.createElement("input",{type:"text",value:Ot,disabled:ve,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),t.createElement("span",{className:"".concat(We,"-slash")},"/"),jt),t.createElement("li",{title:oe?pe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:y()("".concat(We,"-next"),(0,Z.Z)({},"".concat(We,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Vt)),On)}if(jt<=3+_e*2){var $t={locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:oe,itemRender:De};jt||Gt.push(t.createElement(ce,(0,i.Z)({},$t,{key:"noPager",page:1,className:"".concat(We,"-item-disabled")})));for(var nt=1;nt<=jt;nt+=1){var gt=ft===nt;Gt.push(t.createElement(ce,(0,i.Z)({},$t,{key:nt,page:nt,active:gt})))}}else{var Dt=Ae?pe.prev_3:pe.prev_5,xn=Ae?pe.next_3:pe.next_5,tn=De(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(we,"prev page")),Hn=De(this.getJumpNextPage(),"jump-next",this.getItemIcon(Le,"next page"));Pe&&(Xt=tn?t.createElement("li",{title:oe?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:y()("".concat(We,"-jump-prev"),(0,Z.Z)({},"".concat(We,"-jump-prev-custom-icon"),!!we))},tn):null,zn=Hn?t.createElement("li",{title:oe?xn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:y()("".concat(We,"-jump-next"),(0,Z.Z)({},"".concat(We,"-jump-next-custom-icon"),!!Le))},Hn):null),Bn=t.createElement(ce,{locale:pe,last:!0,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jt,page:jt,active:!1,showTitle:oe,itemRender:De}),fn=t.createElement(ce,{locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:oe,itemRender:De});var Nn=Math.max(1,ft-_e),pr=Math.min(ft+_e,jt);ft-1<=_e&&(pr=1+_e*2),jt-ft<=_e&&(Nn=jt-_e*2);for(var gr=Nn;gr<=pr;gr+=1){var Or=ft===gr;Gt.push(t.createElement(ce,{locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:gr,page:gr,active:Or,showTitle:oe,itemRender:De}))}ft-1>=_e*2&&ft!==1+2&&(Gt[0]=(0,t.cloneElement)(Gt[0],{className:"".concat(We,"-item-after-jump-prev")}),Gt.unshift(Xt)),jt-ft>=_e*2&&ft!==jt-2&&(Gt[Gt.length-1]=(0,t.cloneElement)(Gt[Gt.length-1],{className:"".concat(We,"-item-before-jump-next")}),Gt.push(zn)),Nn!==1&&Gt.unshift(fn),pr!==jt&&Gt.push(Bn)}var ar=!this.hasPrev()||!jt,mr=!this.hasNext()||!jt,ea=this.renderPrev(at),Lr=this.renderNext(Vt);return t.createElement("ul",(0,i.Z)({className:y()(We,de,(0,Z.Z)({},"".concat(We,"-disabled"),ve)),style:le,ref:this.paginationNode},rn),st,ea?t.createElement("li",{title:oe?pe.prev_page:null,onClick:this.prev,tabIndex:ar?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(We,"-prev"),(0,Z.Z)({},"".concat(We,"-disabled"),ar)),"aria-disabled":ar},ea):null,Gt,Lr?t.createElement("li",{title:oe?pe.next_page:null,onClick:this.next,tabIndex:mr?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(We,"-next"),(0,Z.Z)({},"".concat(We,"-disabled"),mr)),"aria-disabled":mr},Lr):null,t.createElement(H,{disabled:ve,locale:pe,rootPrefixCls:We,selectComponentClass:Ye,selectPrefixCls:Ue,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ft,pageSize:At,pageSizeOptions:dt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Mn}))}}],[{key:"getDerivedStateFromProps",value:function(he,We){var de={};if("current"in he&&(de.current=he.current,he.current!==We.current&&(de.currentInputValue=de.current)),"pageSize"in he&&he.pageSize!==We.pageSize){var le=We.current,ve=O(he.pageSize,We,he);le=le>ve?ve:le,"current"in he||(de.current=le,de.currentInputValue=le),de.pageSize=he.pageSize}return de}}]),Ie}(t.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:te,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:te,locale:B.Z,style:{},itemRender:G,totalBoundaryShowSizeChanger:50};var Y=k,P=e(57522),Q=e(61836),fe=e(58785),Ce=e(60059),ge=e(29487),Me=e(59504);const Re=X=>t.createElement(Me.Z,Object.assign({},X,{showSearch:!0,size:"small"})),Qe=X=>t.createElement(Me.Z,Object.assign({},X,{showSearch:!0,size:"middle"}));Re.Option=Me.Z.Option,Qe.Option=Me.Z.Option;var Ve=e(46902),qe=e(78330),Mt=e(52628),wt=e(22151);const mt=X=>{const{componentCls:re}=X;return{[`${re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed"}}},[`&${re}-disabled`]:{cursor:"not-allowed",[`${re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:X.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:X.colorBorder,backgroundColor:X.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:X.itemActiveBgDisabled},a:{color:X.itemActiveColorDisabled}}},[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${re}-simple-pager`]:{color:X.colorTextDisabled},[`${re}-jump-prev, ${re}-jump-next`]:{[`${re}-item-link-icon`]:{opacity:0},[`${re}-item-ellipsis`]:{opacity:1}}},[`&${re}-simple`]:{[`${re}-prev, ${re}-next`]:{[`&${re}-disabled ${re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Nt=X=>{const{componentCls:re}=X;return{[`&${re}-mini ${re}-total-text, &${re}-mini ${re}-simple-pager`]:{height:X.itemSizeSM,lineHeight:`${X.itemSizeSM}px`},[`&${re}-mini ${re}-item`]:{minWidth:X.itemSizeSM,height:X.itemSizeSM,margin:0,lineHeight:`${X.itemSizeSM-2}px`},[`&${re}-mini:not(${re}-disabled) ${re}-item:not(${re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:X.colorBgTextHover},"&:active":{backgroundColor:X.colorBgTextActive}},[`&${re}-mini ${re}-prev, &${re}-mini ${re}-next`]:{minWidth:X.itemSizeSM,height:X.itemSizeSM,margin:0,lineHeight:`${X.itemSizeSM}px`},[`&${re}-mini:not(${re}-disabled)`]:{[`${re}-prev, ${re}-next`]:{[`&:hover ${re}-item-link`]:{backgroundColor:X.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:X.colorBgTextActive},[`&${re}-disabled:hover ${re}-item-link`]:{backgroundColor:"transparent"}}},[` + ${w}-confirm ${w}-body > ${p.iconCls}`]:{color:p.colorWarning},[`${w}-info ${w}-body > ${p.iconCls}`]:{color:p.colorInfo},[`${w}-success ${w}-body > ${p.iconCls}`]:{color:p.colorSuccess}}},m=p=>{const{componentCls:S}=p;return{[`${S}-root`]:{[`${S}-wrap-rtl`]:{direction:"rtl",[`${S}-confirm-body`]:{direction:"rtl"}}}}},C=p=>{const{componentCls:S,antCls:w}=p,y=`${S}-confirm`;return{[S]:{[`${S}-content`]:{padding:0},[`${S}-header`]:{padding:p.modalHeaderPadding,borderBottom:`${p.modalHeaderBorderWidth}px ${p.modalHeaderBorderStyle} ${p.modalHeaderBorderColorSplit}`,marginBottom:0},[`${S}-body`]:{padding:p.modalBodyPadding},[`${S}-footer`]:{padding:`${p.modalFooterPaddingVertical}px ${p.modalFooterPaddingHorizontal}px`,borderTop:`${p.modalFooterBorderWidth}px ${p.modalFooterBorderStyle} ${p.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${p.borderRadiusLG}px ${p.borderRadiusLG}px`,marginTop:0}},[y]:{[`${w}-modal-body`]:{padding:`${p.padding*2}px ${p.padding*2}px ${p.paddingLG}px`},[`${y}-body`]:{[`> ${p.iconCls}`]:{marginInlineEnd:p.margin,[`+ ${y}-title + ${y}-content`]:{marginInlineStart:p.modalConfirmIconSize+p.margin}}},[`${y}-btns`]:{marginTop:p.marginLG}}}};b.Z=(0,s.Z)("Modal",p=>{const S=p.padding,w=p.fontSizeHeading5,y=p.lineHeightHeading5,Z=(0,n.TS)(p,{modalBodyPadding:p.paddingLG,modalHeaderPadding:`${S}px ${p.paddingLG}px`,modalHeaderBorderWidth:p.lineWidth,modalHeaderBorderStyle:p.lineType,modalHeaderBorderColorSplit:p.colorSplit,modalHeaderHeight:y*w+S*2,modalFooterBorderColorSplit:p.colorSplit,modalFooterBorderStyle:p.lineType,modalFooterPaddingVertical:p.paddingXS,modalFooterPaddingHorizontal:p.padding,modalFooterBorderWidth:p.lineWidth,modalIconHoverColor:p.colorIconHover,modalCloseIconColor:p.colorIcon,modalCloseBtnSize:p.fontSize*p.lineHeight,modalConfirmIconSize:p.fontSize*p.lineHeight});return[v(Z),h(Z),m(Z),l(Z),p.wireframe&&C(Z),(0,o._y)(Z,"zoom")]},p=>({footerBg:"transparent",headerBg:p.colorBgElevated,titleLineHeight:p.lineHeightHeading5,titleFontSize:p.fontSizeHeading5,contentBg:p.colorBgElevated,titleColor:p.colorTextHeading}))},65172:function(M,b,e){"use strict";e.d(b,{Z:function(){return Z}});var i=e(29140),t=e(58757);function o(){const[F,R]=t.useState([]),T=t.useCallback(z=>(R(A=>[].concat((0,i.Z)(A),[z])),()=>{R(A=>A.filter(L=>L!==z))}),[]);return[F,T]}var s=e(49316),n=e(98702),c=e(61836),l=e(80076),v=e(29487),h=e(76370),m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{var T,{afterClose:z,config:A}=F,L=m(F,["afterClose","config"]);const[I,$]=t.useState(!0),[B,K]=t.useState(A),{direction:H,getPrefixCls:ie}=t.useContext(c.E_),ce=ie("modal"),te=ie(),W=()=>{var Y;z(),(Y=B.afterClose)===null||Y===void 0||Y.call(B)},G=function(){$(!1);for(var Y=arguments.length,P=new Array(Y),Q=0;QCe&&Ce.triggerCancel);B.onCancel&&fe&&B.onCancel.apply(B,[()=>{}].concat((0,i.Z)(P.slice(1))))};t.useImperativeHandle(R,()=>({destroy:G,update:Y=>{K(P=>Object.assign(Object.assign({},P),Y))}}));const O=(T=B.okCancel)!==null&&T!==void 0?T:B.type==="confirm",[k]=(0,v.Z)("Modal",l.Z.Modal);return t.createElement(h.Z,Object.assign({prefixCls:ce,rootPrefixCls:te},B,{close:G,open:I,afterClose:W,okText:B.okText||(O?k==null?void 0:k.okText:k==null?void 0:k.justOkText),direction:B.direction||H,cancelText:B.cancelText||(k==null?void 0:k.cancelText)},L))};var p=t.forwardRef(C);let S=0;const w=t.memo(t.forwardRef((F,R)=>{const[T,z]=o();return t.useImperativeHandle(R,()=>({patchElement:z}),[]),t.createElement(t.Fragment,null,T)}));function y(){const F=t.useRef(null),[R,T]=t.useState([]);t.useEffect(()=>{R.length&&((0,i.Z)(R).forEach(I=>{I()}),T([]))},[R]);const z=t.useCallback(L=>function($){var B;S+=1;const K=t.createRef();let H;const ie=new Promise(O=>{H=O});let ce=!1,te;const W=t.createElement(p,{key:`modal-${S}`,config:L($),ref:K,afterClose:()=>{te==null||te()},isSilent:()=>ce,onConfirm:O=>{H(O)}});return te=(B=F.current)===null||B===void 0?void 0:B.patchElement(W),te&&n.Z.push(te),{destroy:()=>{function O(){var k;(k=K.current)===null||k===void 0||k.destroy()}K.current?O():T(k=>[].concat((0,i.Z)(k),[O]))},update:O=>{function k(){var Y;(Y=K.current)===null||Y===void 0||Y.update(O)}K.current?k():T(Y=>[].concat((0,i.Z)(Y),[k]))},then:O=>(ce=!0,ie.then(O))}},[]);return[t.useMemo(()=>({info:z(s.cw),success:z(s.vq),error:z(s.AQ),warning:z(s.uW),confirm:z(s.Au)}),[]),t.createElement(w,{key:"modal-holder",ref:F})]}var Z=y},37864:function(M,b,e){"use strict";e.d(b,{CW:function(){return F},z5:function(){return y}});var i=e(85678),t=e(79999),o=e(52495),s=e(69831),n=e(33064),c=e(25755),l=e(87608),v=e.n(l),h=e(75248),m=e(58757),C=e(61836),p=e(26284),S=function(T,z){var A={};for(var L in T)Object.prototype.hasOwnProperty.call(T,L)&&z.indexOf(L)<0&&(A[L]=T[L]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,L=Object.getOwnPropertySymbols(T);I{const{prefixCls:z,icon:A,type:L,message:I,description:$,btn:B,role:K="alert"}=T;let H=null;return A?H=m.createElement("span",{className:`${z}-icon`},A):L&&(H=m.createElement(Z[L]||null,{className:v()(`${z}-icon`,`${z}-icon-${L}`)})),m.createElement("div",{className:v()({[`${z}-with-icon`]:H}),role:K},H,m.createElement("div",{className:`${z}-message`},I),m.createElement("div",{className:`${z}-description`},$),B&&m.createElement("div",{className:`${z}-btn`},B))},R=T=>{const{prefixCls:z,className:A,icon:L,type:I,message:$,description:B,btn:K,closable:H=!0,closeIcon:ie}=T,ce=S(T,["prefixCls","className","icon","type","message","description","btn","closable","closeIcon"]),{getPrefixCls:te}=m.useContext(C.E_),W=z||te("notification"),G=`${W}-notice`,[,O]=(0,p.Z)(W);return m.createElement(h.q,Object.assign({},ce,{prefixCls:W,className:v()(A,O,`${G}-pure-panel`),eventKey:"pure",duration:null,closable:H,closeIcon:y(W,ie),content:m.createElement(F,{prefixCls:G,icon:L,type:I,message:$,description:B,btn:K})}))};b.ZP=R},65388:function(M,b,e){"use strict";var i=e(58757),t=e(52323),o=e(42505),s=e(37864),n=e(75105);let c=null,l=A=>A(),v=[],h={};function m(){const{prefixCls:A,getContainer:L,rtl:I,maxCount:$,top:B,bottom:K}=h,H=A!=null?A:(0,o.w6)().getPrefixCls("notification"),ie=(L==null?void 0:L())||document.body;return{prefixCls:H,getContainer:()=>ie,rtl:I,maxCount:$,top:B,bottom:K}}const C=i.forwardRef((A,L)=>{const[I,$]=i.useState(m),[B,K]=(0,n.k)(I),H=(0,o.w6)(),ie=H.getRootPrefixCls(),ce=H.getIconPrefixCls(),te=H.getTheme(),W=()=>{$(m)};return i.useEffect(W,[]),i.useImperativeHandle(L,()=>{const G=Object.assign({},B);return Object.keys(G).forEach(O=>{G[O]=function(){return W(),B[O].apply(B,arguments)}}),{instance:G,sync:W}}),i.createElement(o.ZP,{prefixCls:ie,iconPrefixCls:ce,theme:te},K)});function p(){if(!c){const A=document.createDocumentFragment(),L={fragment:A};c=L,l(()=>{(0,t.s)(i.createElement(C,{ref:I=>{const{instance:$,sync:B}=I||{};Promise.resolve().then(()=>{!L.instance&&$&&(L.instance=$,L.sync=B,p())})}}),A)});return}c.instance&&(v.forEach(A=>{switch(A.type){case"open":{l(()=>{c.instance.open(Object.assign(Object.assign({},h),A.config))});break}case"destroy":l(()=>{c==null||c.instance.destroy(A.key)});break}}),v=[])}function S(A){h=Object.assign(Object.assign({},h),A),l(()=>{var L;(L=c==null?void 0:c.sync)===null||L===void 0||L.call(c)})}function w(A){v.push({type:"open",config:A}),p()}function y(A){v.push({type:"destroy",key:A}),p()}const Z=["success","info","warning","error"],R={open:w,destroy:y,config:S,useNotification:n.Z,_InternalPanelDoNotUseOrYouWillBeFired:s.ZP};Z.forEach(A=>{R[A]=L=>w(Object.assign(Object.assign({},L),{type:A}))});const T=()=>{};let z=null;b.Z=R},26284:function(M,b,e){"use strict";e.d(b,{Z:function(){return v}});var i=e(57793),t=e(78330),o=e(52628),s=e(22151),c=h=>{const{componentCls:m,width:C,notificationMarginEdge:p}=h,S=new i.E4("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),w=new i.E4("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),y=new i.E4("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:C},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${m}-top, &${m}-bottom`]:{marginInline:0},[`&${m}-top`]:{[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:S}},[`&${m}-bottom`]:{[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:w}},[`&${m}-topLeft, &${m}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:p,[`${m}-fade-enter${m}-fade-enter-active, ${m}-fade-appear${m}-fade-appear-active`]:{animationName:y}}}};const l=h=>{const{iconCls:m,componentCls:C,boxShadow:p,fontSizeLG:S,notificationMarginBottom:w,borderRadiusLG:y,colorSuccess:Z,colorInfo:F,colorWarning:R,colorError:T,colorTextHeading:z,notificationBg:A,notificationPadding:L,notificationMarginEdge:I,motionDurationMid:$,motionEaseInOut:B,fontSize:K,lineHeight:H,width:ie,notificationIconSize:ce,colorText:te}=h,W=`${C}-notice`,G=new i.E4("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:ie},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),O=new i.E4("antNotificationFadeOut",{"0%":{maxHeight:h.animationMaxHeight,marginBottom:w,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}}),k={position:"relative",width:ie,maxWidth:`calc(100vw - ${I*2}px)`,marginBottom:w,marginInlineStart:"auto",padding:L,overflow:"hidden",lineHeight:H,wordWrap:"break-word",background:A,borderRadius:y,boxShadow:p,[`${C}-close-icon`]:{fontSize:K,cursor:"pointer"},[`${W}-message`]:{marginBottom:h.marginXS,color:z,fontSize:S,lineHeight:h.lineHeightLG},[`${W}-description`]:{fontSize:K,color:te},[`&${W}-closable ${W}-message`]:{paddingInlineEnd:h.paddingLG},[`${W}-with-icon ${W}-message`]:{marginBottom:h.marginXS,marginInlineStart:h.marginSM+ce,fontSize:S},[`${W}-with-icon ${W}-description`]:{marginInlineStart:h.marginSM+ce,fontSize:K},[`${W}-icon`]:{position:"absolute",fontSize:ce,lineHeight:0,[`&-success${m}`]:{color:Z},[`&-info${m}`]:{color:F},[`&-warning${m}`]:{color:R},[`&-error${m}`]:{color:T}},[`${W}-close`]:{position:"absolute",top:h.notificationPaddingVertical,insetInlineEnd:h.notificationPaddingHorizontal,color:h.colorIcon,outline:"none",width:h.notificationCloseButtonSize,height:h.notificationCloseButtonSize,borderRadius:h.borderRadiusSM,transition:`background-color ${h.motionDurationMid}, color ${h.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:h.colorIconHover,backgroundColor:h.wireframe?"transparent":h.colorFillContent}},[`${W}-btn`]:{float:"right",marginTop:h.marginSM}};return[{[C]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,t.Wf)(h)),{position:"fixed",zIndex:h.zIndexPopup,marginInlineEnd:I,[`${C}-hook-holder`]:{position:"relative"},[`&${C}-top, &${C}-bottom`]:{[W]:{marginInline:"auto auto"}},[`&${C}-topLeft, &${C}-bottomLeft`]:{[W]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${C}-fade-enter, ${C}-fade-appear`]:{animationDuration:h.motionDurationMid,animationTimingFunction:B,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${C}-fade-leave`]:{animationTimingFunction:B,animationFillMode:"both",animationDuration:$,animationPlayState:"paused"},[`${C}-fade-enter${C}-fade-enter-active, ${C}-fade-appear${C}-fade-appear-active`]:{animationName:G,animationPlayState:"running"},[`${C}-fade-leave${C}-fade-leave-active`]:{animationName:O,animationPlayState:"running"}}),c(h)),{"&-rtl":{direction:"rtl",[`${W}-btn`]:{float:"left"}}})},{[C]:{[W]:Object.assign({},k)}},{[`${W}-pure-panel`]:Object.assign(Object.assign({},k),{margin:0})}]};var v=(0,o.Z)("Notification",h=>{const m=h.paddingMD,C=h.paddingLG,p=(0,s.TS)(h,{notificationBg:h.colorBgElevated,notificationPaddingVertical:m,notificationPaddingHorizontal:C,notificationIconSize:h.fontSizeLG*h.lineHeightLG,notificationCloseButtonSize:h.controlHeightLG*.55,notificationMarginBottom:h.margin,notificationPadding:`${h.paddingMD}px ${h.paddingContentHorizontalLG}px`,notificationMarginEdge:h.marginLG,animationMaxHeight:150});return[l(p)]},h=>({zIndexPopup:h.zIndexPopupBase+50,width:384}),{clientOnly:!0})},75105:function(M,b,e){"use strict";e.d(b,{Z:function(){return Z},k:function(){return y}});var i=e(58757),t=e(87608),o=e.n(t),s=e(75248),n=e(61836),c=e(37864),l=e(26284);function v(F,R,T){let z;switch(F){case"top":z={left:"50%",transform:"translateX(-50%)",right:"auto",top:R,bottom:"auto"};break;case"topLeft":z={left:0,top:R,bottom:"auto"};break;case"topRight":z={right:0,top:R,bottom:"auto"};break;case"bottom":z={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:T};break;case"bottomLeft":z={left:0,top:"auto",bottom:T};break;default:z={right:0,top:"auto",bottom:T};break}return z}function h(F){return{motionName:`${F}-fade`}}var m=function(F,R){var T={};for(var z in F)Object.prototype.hasOwnProperty.call(F,z)&&R.indexOf(z)<0&&(T[z]=F[z]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var A=0,z=Object.getOwnPropertySymbols(F);A{const{top:T,bottom:z,prefixCls:A,getContainer:L,maxCount:I,rtl:$,onAllRemoved:B}=F,{getPrefixCls:K,getPopupContainer:H,notification:ie}=i.useContext(n.E_),ce=A||K("notification"),te=P=>v(P,T!=null?T:C,z!=null?z:C),[,W]=(0,l.Z)(ce),G=()=>o()(W,{[`${ce}-rtl`]:$}),O=()=>h(ce),[k,Y]=(0,s.l)({prefixCls:ce,style:te,className:G,motion:O,closable:!0,closeIcon:(0,c.z5)(ce),duration:p,getContainer:()=>(L==null?void 0:L())||(H==null?void 0:H())||document.body,maxCount:I,onAllRemoved:B});return i.useImperativeHandle(R,()=>Object.assign(Object.assign({},k),{prefixCls:ce,hashId:W,notification:ie})),Y});function y(F){const R=i.useRef(null);return[i.useMemo(()=>{const z=$=>{var B;if(!R.current)return;const{open:K,prefixCls:H,hashId:ie,notification:ce}=R.current,te=`${H}-notice`,{message:W,description:G,icon:O,type:k,btn:Y,className:P,style:Q,role:fe="alert",closeIcon:Ce}=$,ge=m($,["message","description","icon","type","btn","className","style","role","closeIcon"]),Me=(0,c.z5)(te,Ce);return K(Object.assign(Object.assign({placement:(B=F==null?void 0:F.placement)!==null&&B!==void 0?B:S},ge),{content:i.createElement(c.CW,{prefixCls:te,icon:O,type:k,message:W,description:G,btn:Y,role:fe}),className:o()(k&&`${te}-${k}`,ie,P,ce==null?void 0:ce.className),style:Object.assign(Object.assign({},ce==null?void 0:ce.style),Q),closeIcon:Me,closable:!!Me}))},L={open:z,destroy:$=>{var B,K;$!==void 0?(B=R.current)===null||B===void 0||B.close($):(K=R.current)===null||K===void 0||K.destroy()}};return["success","info","warning","error"].forEach($=>{L[$]=B=>z(Object.assign(Object.assign({},B),{type:$}))}),L},[]),i.createElement(w,Object.assign({key:"notification-holder"},F,{ref:R}))]}function Z(F){return y(F)}},35910:function(M,b,e){"use strict";e.d(b,{Z:function(){return se}});var i=e(60698),t=e(58757),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"},s=o,n=e(17202),c=function(re,Ie){return t.createElement(n.Z,(0,i.Z)({},re,{ref:Ie,icon:s}))},l=t.forwardRef(c),v={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"},h=v,m=function(re,Ie){return t.createElement(n.Z,(0,i.Z)({},re,{ref:Ie,icon:h}))},C=t.forwardRef(m),p=e(99142),S=e(91169),w=e(87608),y=e.n(w),Z=e(37734),F=e(57370),R=e(60412),T=e(14346),z=e(87498),A=e(73726),L=e(33926),I={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},$=I,B=e(23737),K=function(X){(0,z.Z)(Ie,X);var re=(0,A.Z)(Ie);function Ie(){var Se;(0,R.Z)(this,Ie);for(var he=arguments.length,We=new Array(he),de=0;de=0||le.relatedTarget.className.indexOf("".concat(pe,"-item"))>=0))&&Ze(Se.getValidValue()))},Se.go=function(le){var ve=Se.state.goInputText;ve!==""&&(le.keyCode===$.ENTER||le.type==="click")&&(Se.setState({goInputText:""}),Se.props.quickGo(Se.getValidValue()))},Se}return(0,T.Z)(Ie,[{key:"getPageSizeOptions",value:function(){var he=this.props,We=he.pageSize,de=he.pageSizeOptions;return de.some(function(le){return le.toString()===We.toString()})?de:de.concat([We.toString()]).sort(function(le,ve){var xe=Number.isNaN(Number(le))?0:Number(le),Ze=Number.isNaN(Number(ve))?0:Number(ve);return xe-Ze})}},{key:"render",value:function(){var he=this,We=this.props,de=We.pageSize,le=We.locale,ve=We.rootPrefixCls,xe=We.changeSize,Ze=We.quickGo,pe=We.goButton,Je=We.selectComponentClass,Ae=We.buildOptionText,oe=We.selectPrefixCls,ye=We.disabled,Be=this.state.goInputText,De="".concat(ve,"-options"),Pe=Je,we=null,Le=null,Ye=null;if(!xe&&!Ze)return null;var Ue=this.getPageSizeOptions();if(xe&&Pe){var dt=Ue.map(function(bt,ft){return t.createElement(Pe.Option,{key:ft,value:bt.toString()},(Ae||he.buildOptionText)(bt))});we=t.createElement(Pe,{disabled:ye,prefixCls:oe,showSearch:!1,className:"".concat(De,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(de||Ue[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ft){return ft.parentNode},"aria-label":le.page_size,defaultOpen:!1},dt)}return Ze&&(pe&&(Ye=typeof pe=="boolean"?t.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:ye,className:"".concat(De,"-quick-jumper-button")},le.jump_to_confirm):t.createElement("span",{onClick:this.go,onKeyUp:this.go},pe)),Le=t.createElement("div",{className:"".concat(De,"-quick-jumper")},le.jump_to,t.createElement("input",{disabled:ye,type:"text",value:Be,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":le.page}),le.page,Ye)),t.createElement("li",{className:"".concat(De)},we,Le)}}]),Ie}(t.Component);K.defaultProps={pageSizeOptions:["10","20","50","100"]};var H=K,ie=function(re){var Ie,Se=re.rootPrefixCls,he=re.page,We=re.active,de=re.className,le=re.showTitle,ve=re.onClick,xe=re.onKeyPress,Ze=re.itemRender,pe="".concat(Se,"-item"),Je=y()(pe,"".concat(pe,"-").concat(he),(Ie={},(0,Z.Z)(Ie,"".concat(pe,"-active"),We),(0,Z.Z)(Ie,"".concat(pe,"-disabled"),!he),(0,Z.Z)(Ie,re.className,de),Ie)),Ae=function(){ve(he)},oe=function(De){xe(De,ve,he)},ye=Ze(he,"page",t.createElement("a",{rel:"nofollow"},he));return ye?t.createElement("li",{title:le?he.toString():null,className:Je,onClick:Ae,onKeyPress:oe,tabIndex:0},ye):null},ce=ie;function te(){}function W(X){var re=Number(X);return typeof re=="number"&&!Number.isNaN(re)&&isFinite(re)&&Math.floor(re)===re}var G=function(re,Ie,Se){return Se};function O(X,re,Ie){var Se=typeof X=="undefined"?re.pageSize:X;return Math.floor((Ie.total-1)/Se)+1}var k=function(X){(0,z.Z)(Ie,X);var re=(0,A.Z)(Ie);function Ie(Se){var he;(0,R.Z)(this,Ie),he=re.call(this,Se),he.paginationNode=t.createRef(),he.getJumpPrevPage=function(){return Math.max(1,he.state.current-(he.props.showLessItems?3:5))},he.getJumpNextPage=function(){return Math.min(O(void 0,he.state,he.props),he.state.current+(he.props.showLessItems?3:5))},he.getItemIcon=function(xe,Ze){var pe=he.props.prefixCls,Je=xe||t.createElement("button",{type:"button","aria-label":Ze,className:"".concat(pe,"-item-link")});return typeof xe=="function"&&(Je=t.createElement(xe,(0,F.Z)({},he.props))),Je},he.isValid=function(xe){var Ze=he.props.total;return W(xe)&&xe!==he.state.current&&W(Ze)&&Ze>0},he.shouldDisplayQuickJumper=function(){var xe=he.props,Ze=xe.showQuickJumper,pe=xe.total,Je=he.state.pageSize;return pe<=Je?!1:Ze},he.handleKeyDown=function(xe){(xe.keyCode===$.ARROW_UP||xe.keyCode===$.ARROW_DOWN)&&xe.preventDefault()},he.handleKeyUp=function(xe){var Ze=he.getValidValue(xe),pe=he.state.currentInputValue;Ze!==pe&&he.setState({currentInputValue:Ze}),xe.keyCode===$.ENTER?he.handleChange(Ze):xe.keyCode===$.ARROW_UP?he.handleChange(Ze-1):xe.keyCode===$.ARROW_DOWN&&he.handleChange(Ze+1)},he.handleBlur=function(xe){var Ze=he.getValidValue(xe);he.handleChange(Ze)},he.changePageSize=function(xe){var Ze=he.state.current,pe=O(xe,he.state,he.props);Ze=Ze>pe?pe:Ze,pe===0&&(Ze=he.state.current),typeof xe=="number"&&("pageSize"in he.props||he.setState({pageSize:xe}),"current"in he.props||he.setState({current:Ze,currentInputValue:Ze})),he.props.onShowSizeChange(Ze,xe),"onChange"in he.props&&he.props.onChange&&he.props.onChange(Ze,xe)},he.handleChange=function(xe){var Ze=he.props,pe=Ze.disabled,Je=Ze.onChange,Ae=he.state,oe=Ae.pageSize,ye=Ae.current,Be=Ae.currentInputValue;if(he.isValid(xe)&&!pe){var De=O(void 0,he.state,he.props),Pe=xe;return xe>De?Pe=De:xe<1&&(Pe=1),"current"in he.props||he.setState({current:Pe}),Pe!==Be&&he.setState({currentInputValue:Pe}),Je(Pe,oe),Pe}return ye},he.prev=function(){he.hasPrev()&&he.handleChange(he.state.current-1)},he.next=function(){he.hasNext()&&he.handleChange(he.state.current+1)},he.jumpPrev=function(){he.handleChange(he.getJumpPrevPage())},he.jumpNext=function(){he.handleChange(he.getJumpNextPage())},he.hasPrev=function(){return he.state.current>1},he.hasNext=function(){return he.state.current2?pe-2:0),Ae=2;Ae=de?ve=de:ve=Number(We),ve}},{key:"getShowSizeChanger",value:function(){var he=this.props,We=he.showSizeChanger,de=he.total,le=he.totalBoundaryShowSizeChanger;return typeof We!="undefined"?We:de>le}},{key:"render",value:function(){var he=this.props,We=he.prefixCls,de=he.className,le=he.style,ve=he.disabled,xe=he.hideOnSinglePage,Ze=he.total,pe=he.locale,Je=he.showQuickJumper,Ae=he.showLessItems,oe=he.showTitle,ye=he.showTotal,Be=he.simple,De=he.itemRender,Pe=he.showPrevNextJumpers,we=he.jumpPrevIcon,Le=he.jumpNextIcon,Ye=he.selectComponentClass,Ue=he.selectPrefixCls,dt=he.pageSizeOptions,bt=this.state,ft=bt.current,At=bt.pageSize,Ot=bt.currentInputValue;if(xe===!0&&Ze<=At)return null;var jt=O(void 0,this.state,this.props),Gt=[],Xt=null,Bn=null,fn=null,$n=null,On=null,Mn=Je&&Je.goButton,_e=Ae?1:2,at=ft-1>0?ft-1:0,Vt=ft+1Ze?Ze:ft*At]));if(Be){Mn&&(typeof Mn=="boolean"?On=t.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},pe.jump_to_confirm):On=t.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Mn),On=t.createElement("li",{title:oe?"".concat(pe.jump_to).concat(ft,"/").concat(jt):null,className:"".concat(We,"-simple-pager")},On));var ut=this.renderPrev(at);return t.createElement("ul",(0,i.Z)({className:y()(We,"".concat(We,"-simple"),(0,Z.Z)({},"".concat(We,"-disabled"),ve),de),style:le,ref:this.paginationNode},an),st,ut?t.createElement("li",{title:oe?pe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:y()("".concat(We,"-prev"),(0,Z.Z)({},"".concat(We,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},ut):null,t.createElement("li",{title:oe?"".concat(ft,"/").concat(jt):null,className:"".concat(We,"-simple-pager")},t.createElement("input",{type:"text",value:Ot,disabled:ve,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),t.createElement("span",{className:"".concat(We,"-slash")},"/"),jt),t.createElement("li",{title:oe?pe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:y()("".concat(We,"-next"),(0,Z.Z)({},"".concat(We,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Vt)),On)}if(jt<=3+_e*2){var $t={locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:oe,itemRender:De};jt||Gt.push(t.createElement(ce,(0,i.Z)({},$t,{key:"noPager",page:1,className:"".concat(We,"-item-disabled")})));for(var nt=1;nt<=jt;nt+=1){var mt=ft===nt;Gt.push(t.createElement(ce,(0,i.Z)({},$t,{key:nt,page:nt,active:mt})))}}else{var Dt=Ae?pe.prev_3:pe.prev_5,Cn=Ae?pe.next_3:pe.next_5,en=De(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(we,"prev page")),Hn=De(this.getJumpNextPage(),"jump-next",this.getItemIcon(Le,"next page"));Pe&&(Xt=en?t.createElement("li",{title:oe?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:y()("".concat(We,"-jump-prev"),(0,Z.Z)({},"".concat(We,"-jump-prev-custom-icon"),!!we))},en):null,Bn=Hn?t.createElement("li",{title:oe?Cn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:y()("".concat(We,"-jump-next"),(0,Z.Z)({},"".concat(We,"-jump-next-custom-icon"),!!Le))},Hn):null),$n=t.createElement(ce,{locale:pe,last:!0,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jt,page:jt,active:!1,showTitle:oe,itemRender:De}),fn=t.createElement(ce,{locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:oe,itemRender:De});var Rn=Math.max(1,ft-_e),pr=Math.min(ft+_e,jt);ft-1<=_e&&(pr=1+_e*2),jt-ft<=_e&&(Rn=jt-_e*2);for(var gr=Rn;gr<=pr;gr+=1){var Or=ft===gr;Gt.push(t.createElement(ce,{locale:pe,rootPrefixCls:We,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:gr,page:gr,active:Or,showTitle:oe,itemRender:De}))}ft-1>=_e*2&&ft!==1+2&&(Gt[0]=(0,t.cloneElement)(Gt[0],{className:"".concat(We,"-item-after-jump-prev")}),Gt.unshift(Xt)),jt-ft>=_e*2&&ft!==jt-2&&(Gt[Gt.length-1]=(0,t.cloneElement)(Gt[Gt.length-1],{className:"".concat(We,"-item-before-jump-next")}),Gt.push(Bn)),Rn!==1&&Gt.unshift(fn),pr!==jt&&Gt.push($n)}var ar=!this.hasPrev()||!jt,mr=!this.hasNext()||!jt,qr=this.renderPrev(at),Pr=this.renderNext(Vt);return t.createElement("ul",(0,i.Z)({className:y()(We,de,(0,Z.Z)({},"".concat(We,"-disabled"),ve)),style:le,ref:this.paginationNode},an),st,qr?t.createElement("li",{title:oe?pe.prev_page:null,onClick:this.prev,tabIndex:ar?null:0,onKeyPress:this.runIfEnterPrev,className:y()("".concat(We,"-prev"),(0,Z.Z)({},"".concat(We,"-disabled"),ar)),"aria-disabled":ar},qr):null,Gt,Pr?t.createElement("li",{title:oe?pe.next_page:null,onClick:this.next,tabIndex:mr?null:0,onKeyPress:this.runIfEnterNext,className:y()("".concat(We,"-next"),(0,Z.Z)({},"".concat(We,"-disabled"),mr)),"aria-disabled":mr},Pr):null,t.createElement(H,{disabled:ve,locale:pe,rootPrefixCls:We,selectComponentClass:Ye,selectPrefixCls:Ue,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ft,pageSize:At,pageSizeOptions:dt,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Mn}))}}],[{key:"getDerivedStateFromProps",value:function(he,We){var de={};if("current"in he&&(de.current=he.current,he.current!==We.current&&(de.currentInputValue=de.current)),"pageSize"in he&&he.pageSize!==We.pageSize){var le=We.current,ve=O(he.pageSize,We,he);le=le>ve?ve:le,"current"in he||(de.current=le,de.currentInputValue=le),de.pageSize=he.pageSize}return de}}]),Ie}(t.Component);k.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:te,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:te,locale:B.Z,style:{},itemRender:G,totalBoundaryShowSizeChanger:50};var Y=k,P=e(57522),Q=e(61836),fe=e(58785),Ce=e(60059),ge=e(29487),Me=e(59504);const Ne=X=>t.createElement(Me.Z,Object.assign({},X,{showSearch:!0,size:"small"})),Qe=X=>t.createElement(Me.Z,Object.assign({},X,{showSearch:!0,size:"middle"}));Ne.Option=Me.Z.Option,Qe.Option=Me.Z.Option;var Ve=e(46902),qe=e(78330),Mt=e(52628),wt=e(22151);const gt=X=>{const{componentCls:re}=X;return{[`${re}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed"}}},[`&${re}-disabled`]:{cursor:"not-allowed",[`${re}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:X.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:X.colorBorder,backgroundColor:X.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:X.itemActiveBgDisabled},a:{color:X.itemActiveColorDisabled}}},[`${re}-item-link`]:{color:X.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${re}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${re}-simple-pager`]:{color:X.colorTextDisabled},[`${re}-jump-prev, ${re}-jump-next`]:{[`${re}-item-link-icon`]:{opacity:0},[`${re}-item-ellipsis`]:{opacity:1}}},[`&${re}-simple`]:{[`${re}-prev, ${re}-next`]:{[`&${re}-disabled ${re}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},Lt=X=>{const{componentCls:re}=X;return{[`&${re}-mini ${re}-total-text, &${re}-mini ${re}-simple-pager`]:{height:X.itemSizeSM,lineHeight:`${X.itemSizeSM}px`},[`&${re}-mini ${re}-item`]:{minWidth:X.itemSizeSM,height:X.itemSizeSM,margin:0,lineHeight:`${X.itemSizeSM-2}px`},[`&${re}-mini:not(${re}-disabled) ${re}-item:not(${re}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:X.colorBgTextHover},"&:active":{backgroundColor:X.colorBgTextActive}},[`&${re}-mini ${re}-prev, &${re}-mini ${re}-next`]:{minWidth:X.itemSizeSM,height:X.itemSizeSM,margin:0,lineHeight:`${X.itemSizeSM}px`},[`&${re}-mini:not(${re}-disabled)`]:{[`${re}-prev, ${re}-next`]:{[`&:hover ${re}-item-link`]:{backgroundColor:X.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:X.colorBgTextActive},[`&${re}-disabled:hover ${re}-item-link`]:{backgroundColor:"transparent"}}},[` &${re}-mini ${re}-prev ${re}-item-link, &${re}-mini ${re}-next ${re}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:X.itemSizeSM,lineHeight:`${X.itemSizeSM}px`}},[`&${re}-mini ${re}-jump-prev, &${re}-mini ${re}-jump-next`]:{height:X.itemSizeSM,marginInlineEnd:0,lineHeight:`${X.itemSizeSM}px`},[`&${re}-mini ${re}-options`]:{marginInlineStart:X.paginationMiniOptionsMarginInlineStart,["&-size-changer"]:{top:X.miniOptionsSizeChangerTop},["&-quick-jumper"]:{height:X.itemSizeSM,lineHeight:`${X.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Ve.x0)(X)),{width:X.paginationMiniQuickJumperInputWidth,height:X.controlHeightSM})}}}},ke=X=>{const{componentCls:re}=X;return{[` @@ -290,7 +290,7 @@ http://j.mp/37Fkd5Q ${re}-next, ${re}-jump-prev, ${re}-jump-next - `]:{display:"inline-block",minWidth:X.itemSize,height:X.itemSize,color:X.colorText,fontFamily:X.fontFamily,lineHeight:`${X.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:X.borderRadius,cursor:"pointer",transition:`all ${X.motionDurationMid}`},[`${re}-prev, ${re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:X.colorText,cursor:"pointer",userSelect:"none"},[`${re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:X.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${X.lineWidth}px ${X.lineType} transparent`,borderRadius:X.borderRadius,outline:"none",transition:`all ${X.motionDurationMid}`},[`&:hover ${re}-item-link`]:{backgroundColor:X.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:X.colorBgTextActive},[`&${re}-disabled:hover`]:{[`${re}-item-link`]:{backgroundColor:"transparent"}}},[`${re}-slash`]:{marginInlineEnd:X.paginationSlashMarginInlineEnd,marginInlineStart:X.paginationSlashMarginInlineStart},[`${re}-options`]:{display:"inline-block",marginInlineStart:X.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:X.controlHeight,marginInlineStart:X.marginXS,lineHeight:`${X.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ve.ik)(X)),{width:X.controlHeightLG*1.25,height:X.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:X.marginXS,marginInlineEnd:X.marginXS})}}}},et=X=>{const{componentCls:re}=X;return{[`${re}-item`]:{display:"inline-block",minWidth:X.itemSize,height:X.itemSize,marginInlineEnd:X.marginXS,fontFamily:X.fontFamily,lineHeight:`${X.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${X.lineWidth}px ${X.lineType} transparent`,borderRadius:X.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${X.paginationItemPaddingInline}px`,color:X.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${re}-item-active)`]:{"&:hover":{transition:`all ${X.motionDurationMid}`,backgroundColor:X.colorBgTextHover},"&:active":{backgroundColor:X.colorBgTextActive}},"&-active":{fontWeight:X.fontWeightStrong,backgroundColor:X.itemActiveBg,borderColor:X.colorPrimary,a:{color:X.colorPrimary},"&:hover":{borderColor:X.colorPrimaryHover},"&:hover a":{color:X.colorPrimaryHover}}}}},Fe=X=>{const{componentCls:re}=X;return{[re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(X)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${re}-total-text`]:{display:"inline-block",height:X.itemSize,marginInlineEnd:X.marginXS,lineHeight:`${X.itemSize-2}px`,verticalAlign:"middle"}}),et(X)),He(X)),ke(X)),Nt(X)),mt(X)),{[`@media only screen and (max-width: ${X.screenLG}px)`]:{[`${re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${X.screenSM}px)`]:{[`${re}-options`]:{display:"none"}}}),[`&${X.componentCls}-rtl`]:{direction:"rtl"}}},ue=X=>{const{componentCls:re}=X;return{[`${re}${re}-disabled:not(${re}-mini)`]:{"&, &:hover":{[`${re}-item-link`]:{borderColor:X.colorBorder}},"&:focus-visible":{[`${re}-item-link`]:{borderColor:X.colorBorder}},[`${re}-item, ${re}-item-link`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,[`&:hover:not(${re}-item-active)`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,a:{color:X.colorTextDisabled}},[`&${re}-item-active`]:{backgroundColor:X.itemActiveBgDisabled}},[`${re}-prev, ${re}-next`]:{"&:hover button":{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,color:X.colorTextDisabled},[`${re}-item-link`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder}}},[`${re}:not(${re}-mini)`]:{[`${re}-prev, ${re}-next`]:{"&:hover button":{borderColor:X.colorPrimaryHover,backgroundColor:X.itemBg},[`${re}-item-link`]:{backgroundColor:X.itemLinkBg,borderColor:X.colorBorder},[`&:hover ${re}-item-link`]:{borderColor:X.colorPrimary,backgroundColor:X.itemBg,color:X.colorPrimary},[`&${re}-disabled`]:{[`${re}-item-link`]:{borderColor:X.colorBorder,color:X.colorTextDisabled}}},[`${re}-item`]:{backgroundColor:X.itemBg,border:`${X.lineWidth}px ${X.lineType} ${X.colorBorder}`,[`&:hover:not(${re}-item-active)`]:{borderColor:X.colorPrimary,backgroundColor:X.itemBg,a:{color:X.colorPrimary}},"&-active":{borderColor:X.colorPrimary}}}}},V=X=>{const{componentCls:re}=X;return{[`${re}:not(${re}-disabled)`]:{[`${re}-item`]:Object.assign({},(0,qe.Qy)(X)),[`${re}-jump-prev, ${re}-jump-next`]:{"&:focus-visible":Object.assign({[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(X))},[`${re}-prev, ${re}-next`]:{[`&:focus-visible ${re}-item-link`]:Object.assign({},(0,qe.oN)(X))}}}};var U=(0,Mt.Z)("Pagination",X=>{const re=(0,wt.TS)(X,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:X.marginXXS/2,paginationMiniQuickJumperInputWidth:X.controlHeightLG*1.1,paginationItemPaddingInline:X.marginXXS*1.5,paginationEllipsisLetterSpacing:X.marginXXS/2,paginationSlashMarginInlineStart:X.marginXXS,paginationSlashMarginInlineEnd:X.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ve.e5)(X));return[Fe(re),V(re),X.wireframe&&ue(re)]},X=>({itemBg:X.colorBgContainer,itemSize:X.controlHeight,itemSizeSM:X.controlHeightSM,itemActiveBg:X.colorBgContainer,itemLinkBg:X.colorBgContainer,itemActiveColorDisabled:X.colorTextDisabled,itemActiveBgDisabled:X.controlItemBgActiveDisabled,itemInputBg:X.colorBgContainer,miniOptionsSizeChangerTop:0})),N=function(X,re){var Ie={};for(var Se in X)Object.prototype.hasOwnProperty.call(X,Se)&&re.indexOf(Se)<0&&(Ie[Se]=X[Se]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Se=Object.getOwnPropertySymbols(X);he{const{prefixCls:re,selectPrefixCls:Ie,className:Se,rootClassName:he,style:We,size:de,locale:le,selectComponentClass:ve,responsive:xe,showSizeChanger:Ze}=X,pe=N(X,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Je}=(0,Ce.Z)(xe),{getPrefixCls:Ae,direction:oe,pagination:ye={}}=t.useContext(Q.E_),Be=Ae("pagination",re),[De,Pe]=U(Be),we=Ze!=null?Ze:ye.showSizeChanger,Le=t.useMemo(()=>{const jt=t.createElement("span",{className:`${Be}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=t.createElement("button",{className:`${Be}-item-link`,type:"button",tabIndex:-1},oe==="rtl"?t.createElement(S.Z,null):t.createElement(p.Z,null)),Xt=t.createElement("button",{className:`${Be}-item-link`,type:"button",tabIndex:-1},oe==="rtl"?t.createElement(p.Z,null):t.createElement(S.Z,null)),zn=t.createElement("a",{className:`${Be}-item-link`},t.createElement("div",{className:`${Be}-item-container`},oe==="rtl"?t.createElement(C,{className:`${Be}-item-link-icon`}):t.createElement(l,{className:`${Be}-item-link-icon`}),jt)),fn=t.createElement("a",{className:`${Be}-item-link`},t.createElement("div",{className:`${Be}-item-container`},oe==="rtl"?t.createElement(l,{className:`${Be}-item-link-icon`}):t.createElement(C,{className:`${Be}-item-link-icon`}),jt));return{prevIcon:Gt,nextIcon:Xt,jumpPrevIcon:zn,jumpNextIcon:fn}},[oe,Be]),[Ye]=(0,ge.Z)("Pagination",P.Z),Ue=Object.assign(Object.assign({},Ye),le),dt=(0,fe.Z)(de),bt=dt==="small"||!!(Je&&!dt&&xe),ft=Ae("select",Ie),At=y()({[`${Be}-mini`]:bt,[`${Be}-rtl`]:oe==="rtl"},ye==null?void 0:ye.className,Se,he,Pe),Ot=Object.assign(Object.assign({},ye==null?void 0:ye.style),We);return De(t.createElement(Y,Object.assign({},Le,pe,{style:Ot,prefixCls:Be,selectPrefixCls:ft,className:At,selectComponentClass:ve||(bt?Re:Qe),locale:Ue,showSizeChanger:we})))},se=ee},21465:function(M,b,e){"use strict";e.d(b,{t5:function(){return m}});var i=e(87608),t=e.n(i),o=e(33664),s=e(58757),n=e(61836),c=e(99836),l=e(86194),v=function(p,S){var w={};for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&S.indexOf(y)<0&&(w[y]=p[y]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,y=Object.getOwnPropertySymbols(p);Z{if(!(!S&&!w))return s.createElement(s.Fragment,null,S&&s.createElement("div",{className:`${p}-title`},(0,c.Z)(S)),s.createElement("div",{className:`${p}-inner-content`},(0,c.Z)(w)))},m=p=>{const{hashId:S,prefixCls:w,className:y,style:Z,placement:F="top",title:R,content:T,children:z}=p;return s.createElement("div",{className:t()(S,w,`${w}-pure`,`${w}-placement-${F}`,y),style:Z},s.createElement("div",{className:`${w}-arrow`}),s.createElement(o.G,Object.assign({},p,{className:S,prefixCls:w}),z||h(w,R,T)))},C=p=>{const{prefixCls:S}=p,w=v(p,["prefixCls"]),{getPrefixCls:y}=s.useContext(n.E_),Z=y("popover",S),[F,R]=(0,l.Z)(Z);return F(s.createElement(m,Object.assign({},w,{prefixCls:Z,hashId:R})))};b.ZP=C},33181:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(99836),n=e(90881),c=e(61836),l=e(74820),v=e(21465),h=e(86194),m=function(S,w){var y={};for(var Z in S)Object.prototype.hasOwnProperty.call(S,Z)&&w.indexOf(Z)<0&&(y[Z]=S[Z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,Z=Object.getOwnPropertySymbols(S);F{let{title:w,content:y,prefixCls:Z}=S;return o.createElement(o.Fragment,null,w&&o.createElement("div",{className:`${Z}-title`},(0,s.Z)(w)),o.createElement("div",{className:`${Z}-inner-content`},(0,s.Z)(y)))},p=o.forwardRef((S,w)=>{const{prefixCls:y,title:Z,content:F,overlayClassName:R,placement:T="top",trigger:z="hover",mouseEnterDelay:A=.1,mouseLeaveDelay:L=.1,overlayStyle:I={}}=S,$=m(S,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:B}=o.useContext(c.E_),K=B("popover",y),[H,ie]=(0,h.Z)(K),ce=B(),te=t()(R,ie);return H(o.createElement(l.Z,Object.assign({placement:T,trigger:z,mouseEnterDelay:A,mouseLeaveDelay:L,overlayStyle:I},$,{prefixCls:K,overlayClassName:te,ref:w,overlay:Z||F?o.createElement(C,{prefixCls:K,title:Z,content:F}):null,transitionName:(0,n.m)(ce,"zoom-big",$.transitionName),"data-popover-inject":!0})))});p._InternalPanelDoNotUseOrYouWillBeFired=v.ZP,b.Z=p},86194:function(M,b,e){"use strict";var i=e(78330),t=e(28107),o=e(24542),s=e(34966),n=e(52628),c=e(22151);const l=m=>{const{componentCls:C,popoverColor:p,minWidth:S,fontWeightStrong:w,popoverPadding:y,boxShadowSecondary:Z,colorTextHeading:F,borderRadiusLG:R,zIndexPopup:T,marginXS:z,colorBgElevated:A,popoverBg:L}=m;return[{[C]:Object.assign(Object.assign({},(0,i.Wf)(m)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:T,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":A,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${C}-content`]:{position:"relative"},[`${C}-inner`]:{backgroundColor:L,backgroundClip:"padding-box",borderRadius:R,boxShadow:Z,padding:y},[`${C}-title`]:{minWidth:S,marginBottom:z,color:F,fontWeight:w},[`${C}-inner-content`]:{color:p}})},(0,o.ZP)(m,{colorBg:"var(--antd-arrow-background-color)"}),{[`${C}-pure`]:{position:"relative",maxWidth:"none",margin:m.sizePopupArrow,display:"inline-block",[`${C}-content`]:{display:"inline-block"}}}]},v=m=>{const{componentCls:C}=m;return{[C]:s.i.map(p=>{const S=m[`${p}6`];return{[`&${C}-${p}`]:{"--antd-arrow-background-color":S,[`${C}-inner`]:{backgroundColor:S},[`${C}-arrow`]:{background:"transparent"}}}})}},h=m=>{const{componentCls:C,lineWidth:p,lineType:S,colorSplit:w,paddingSM:y,controlHeight:Z,fontSize:F,lineHeight:R,padding:T}=m,z=Z-Math.round(F*R),A=z/2,L=z/2-p,I=T;return{[C]:{[`${C}-inner`]:{padding:0},[`${C}-title`]:{margin:0,padding:`${A}px ${I}px ${L}px`,borderBottom:`${p}px ${S} ${w}`},[`${C}-inner-content`]:{padding:`${y}px ${I}px`}}}};b.Z=(0,n.Z)("Popover",m=>{const{colorBgElevated:C,colorText:p,wireframe:S}=m,w=(0,c.TS)(m,{popoverPadding:12,popoverBg:C,popoverColor:p});return[l(w),v(w),S&&h(w),(0,t._y)(w,"zoom-big")]},m=>({width:177,minWidth:177,zIndexPopup:m.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]})},12632:function(M,b,e){"use strict";e.d(b,{ZP:function(){return O}});var i=e(85678),t=e(79999),o=e(69831),s=e(60698),n=e(58757),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},l=c,v=e(17202),h=function(Y,P){return n.createElement(v.Z,(0,s.Z)({},Y,{ref:P,icon:l}))},m=n.forwardRef(h),C=e(87608),p=e.n(C),S=e(61836),y=()=>n.createElement("svg",{width:"252",height:"294"},n.createElement("defs",null,n.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(0 .012)"},n.createElement("mask",{fill:"#fff"}),n.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),n.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),n.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),n.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),n.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),n.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),n.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),n.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),n.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),n.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),n.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),n.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),n.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),n.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),n.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),n.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),n.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),n.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),n.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),n.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),n.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),n.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),n.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),n.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),n.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),n.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),n.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),n.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),n.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),n.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),n.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),n.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),n.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),n.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),n.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),n.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),n.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),n.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),F=()=>n.createElement("svg",{width:"254",height:"294"},n.createElement("defs",null,n.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),n.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(0 .067)"},n.createElement("mask",{fill:"#fff"}),n.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),n.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),n.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),n.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),n.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),n.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),n.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),n.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),n.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),n.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),n.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),n.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),n.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),n.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),n.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),n.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),n.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),n.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),n.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),n.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),n.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),n.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),n.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),n.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),n.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),n.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),n.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),n.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),n.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),n.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),n.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),n.createElement("mask",{fill:"#fff"}),n.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),n.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),n.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),n.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),n.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),n.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),n.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),n.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),T=()=>n.createElement("svg",{width:"251",height:"294"},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),n.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),n.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),n.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),n.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),n.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),n.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),n.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),n.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),n.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),n.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),n.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),n.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),n.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),n.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),n.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),n.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),n.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),n.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),n.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),n.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),n.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),n.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),n.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),n.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),n.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),n.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),n.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),n.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),n.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),n.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),n.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),n.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),n.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),n.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),z=e(52628),A=e(22151);const L=k=>{const{componentCls:Y,lineHeightHeading3:P,iconCls:Q,padding:fe,paddingXL:Ce,paddingXS:ge,paddingLG:Me,marginXS:Re,lineHeight:Qe}=k;return{[Y]:{padding:`${Me*2}px ${Ce}px`,"&-rtl":{direction:"rtl"}},[`${Y} ${Y}-image`]:{width:k.imageWidth,height:k.imageHeight,margin:"auto"},[`${Y} ${Y}-icon`]:{marginBottom:Me,textAlign:"center",[`& > ${Q}`]:{fontSize:k.iconFontSize}},[`${Y} ${Y}-title`]:{color:k.colorTextHeading,fontSize:k.titleFontSize,lineHeight:P,marginBlock:Re,textAlign:"center"},[`${Y} ${Y}-subtitle`]:{color:k.colorTextDescription,fontSize:k.subtitleFontSize,lineHeight:Qe,textAlign:"center"},[`${Y} ${Y}-content`]:{marginTop:Me,padding:`${Me}px ${fe*2.5}px`,backgroundColor:k.colorFillAlter},[`${Y} ${Y}-extra`]:{margin:k.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ge,"&:last-child":{marginInlineEnd:0}}}}},I=k=>{const{componentCls:Y,iconCls:P}=k;return{[`${Y}-success ${Y}-icon > ${P}`]:{color:k.resultSuccessIconColor},[`${Y}-error ${Y}-icon > ${P}`]:{color:k.resultErrorIconColor},[`${Y}-info ${Y}-icon > ${P}`]:{color:k.resultInfoIconColor},[`${Y}-warning ${Y}-icon > ${P}`]:{color:k.resultWarningIconColor}}},$=k=>[L(k),I(k)],B=k=>$(k);var K=(0,z.Z)("Result",k=>{const Y=k.colorInfo,P=k.colorError,Q=k.colorSuccess,fe=k.colorWarning,Ce=(0,A.TS)(k,{resultInfoIconColor:Y,resultErrorIconColor:P,resultSuccessIconColor:Q,resultWarningIconColor:fe,imageWidth:250,imageHeight:295});return[B(Ce)]},k=>({titleFontSize:k.fontSizeHeading3,subtitleFontSize:k.fontSize,iconFontSize:k.fontSizeHeading3*3,extraMargin:`${k.paddingLG}px 0 0 0`}));const H={success:i.Z,error:t.Z,info:o.Z,warning:m},ie={404:y,500:F,403:T},ce=Object.keys(ie),te=k=>{let{prefixCls:Y,icon:P,status:Q}=k;const fe=p()(`${Y}-icon`);if(ce.includes(`${Q}`)){const ge=ie[Q];return n.createElement("div",{className:`${fe} ${Y}-image`},n.createElement(ge,null))}const Ce=n.createElement(H[Q]);return P===null||P===!1?null:n.createElement("div",{className:fe},P||Ce)},W=k=>{let{prefixCls:Y,extra:P}=k;return P?n.createElement("div",{className:`${Y}-extra`},P):null},G=k=>{let{prefixCls:Y,className:P,rootClassName:Q,subTitle:fe,title:Ce,style:ge,children:Me,status:Re="info",icon:Qe,extra:Ve}=k;const{getPrefixCls:qe,direction:Mt,result:wt}=n.useContext(S.E_),mt=qe("result",Y),[Nt,ke]=K(mt),He=p()(mt,`${mt}-${Re}`,P,wt==null?void 0:wt.className,Q,{[`${mt}-rtl`]:Mt==="rtl"},ke),et=Object.assign(Object.assign({},wt==null?void 0:wt.style),ge);return Nt(n.createElement("div",{className:He,style:et},n.createElement(te,{prefixCls:mt,status:Re,icon:Qe}),n.createElement("div",{className:`${mt}-title`},Ce),fe&&n.createElement("div",{className:`${mt}-subtitle`},fe),n.createElement(W,{prefixCls:mt,extra:Ve}),Me&&n.createElement("div",{className:`${mt}-content`},Me)))};G.PRESENTED_IMAGE_403=ie[403],G.PRESENTED_IMAGE_404=ie[404],G.PRESENTED_IMAGE_500=ie[500];var O=G},59504:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(18510),s=e(98186),n=e(58757),c=e(15018),l=e(90881),v=e(41496),h=e(61836),m=e(92428),C=e(10401),p=e(58785),S=e(81496),w=e(43528),y=e(92493),Z=e(25639),F=e(61698),R=e(29701),T=function($,B){var K={};for(var H in $)Object.prototype.hasOwnProperty.call($,H)&&B.indexOf(H)<0&&(K[H]=$[H]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,H=Object.getOwnPropertySymbols($);ie{var K,{prefixCls:H,bordered:ie=!0,className:ce,rootClassName:te,getPopupContainer:W,popupClassName:G,dropdownClassName:O,listHeight:k=256,placement:Y,listItemHeight:P=24,size:Q,disabled:fe,notFoundContent:Ce,status:ge,builtinPlacements:Me,dropdownMatchSelectWidth:Re,popupMatchSelectWidth:Qe,direction:Ve,style:qe,allowClear:Mt}=$,wt=T($,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:mt,getPrefixCls:Nt,renderEmpty:ke,direction:He,virtual:et,popupMatchSelectWidth:Fe,popupOverflow:ue,select:V}=n.useContext(h.E_),U=Nt("select",H),N=Nt(),D=Ve!=null?Ve:He,{compactSize:ee,compactItemClassnames:se}=(0,w.ri)(U,D),[X,re]=(0,y.Z)(U),Ie=n.useMemo(()=>{const{mode:ft}=wt;if(ft!=="combobox")return ft===z?"combobox":ft},[wt.mode]),Se=Ie==="multiple"||Ie==="tags",he=(0,F.Z)(wt.suffixIcon,wt.showArrow),We=(K=Qe!=null?Qe:Re)!==null&&K!==void 0?K:Fe,{status:de,hasFeedback:le,isFormItemInput:ve,feedbackIcon:xe}=n.useContext(S.aM),Ze=(0,v.F)(de,ge);let pe;Ce!==void 0?pe=Ce:Ie==="combobox"?pe=null:pe=(ke==null?void 0:ke("Select"))||n.createElement(C.Z,{componentName:"Select"});const{suffixIcon:Je,itemIcon:Ae,removeIcon:oe,clearIcon:ye}=(0,R.Z)(Object.assign(Object.assign({},wt),{multiple:Se,hasFeedback:le,feedbackIcon:xe,showSuffixIcon:he,prefixCls:U,showArrow:wt.showArrow,componentName:"Select"})),Be=Mt===!0?{clearIcon:ye}:Mt,De=(0,s.Z)(wt,["suffixIcon","itemIcon"]),Pe=t()(G||O,{[`${U}-dropdown-${D}`]:D==="rtl"},te,re),we=(0,p.Z)(ft=>{var At;return(At=Q!=null?Q:ee)!==null&&At!==void 0?At:ft}),Le=n.useContext(m.Z),Ye=fe!=null?fe:Le,Ue=t()({[`${U}-lg`]:we==="large",[`${U}-sm`]:we==="small",[`${U}-rtl`]:D==="rtl",[`${U}-borderless`]:!ie,[`${U}-in-form-item`]:ve},(0,v.Z)(U,Ze,le),se,V==null?void 0:V.className,ce,te,re),dt=n.useMemo(()=>Y!==void 0?Y:D==="rtl"?"bottomRight":"bottomLeft",[Y,D]),bt=(0,Z.Z)(Me,ue);return X(n.createElement(o.ZP,Object.assign({ref:B,virtual:et,showSearch:V==null?void 0:V.showSearch},De,{style:Object.assign(Object.assign({},V==null?void 0:V.style),qe),dropdownMatchSelectWidth:We,builtinPlacements:bt,transitionName:(0,l.m)(N,"slide-up",wt.transitionName),listHeight:k,listItemHeight:P,mode:Ie,prefixCls:U,placement:dt,direction:D,suffixIcon:Je,menuItemSelectedIcon:Ae,removeIcon:oe,allowClear:Be,notFoundContent:pe,className:Ue,getPopupContainer:W||mt,dropdownClassName:Pe,disabled:Ye})))},L=n.forwardRef(A),I=(0,c.Z)(L);L.SECRET_COMBOBOX_MODE_DO_NOT_USE=z,L.Option=o.Wx,L.OptGroup=o.Xo,L._InternalPanelDoNotUseOrYouWillBeFired=I,b.Z=L},92493:function(M,b,e){"use strict";e.d(b,{Z:function(){return L}});var i=e(78330),t=e(64493),o=e(22151),s=e(52628),n=e(1016),c=e(1546);const l=I=>{const{controlPaddingHorizontal:$,controlHeight:B,fontSize:K,lineHeight:H}=I;return{position:"relative",display:"block",minHeight:B,padding:`${(B-K*H)/2}px ${$}px`,color:I.colorText,fontWeight:"normal",fontSize:K,lineHeight:H,boxSizing:"border-box"}};var h=I=>{const{antCls:$,componentCls:B}=I,K=`${B}-item`,H=`&${$}-slide-up-enter${$}-slide-up-enter-active`,ie=`&${$}-slide-up-appear${$}-slide-up-appear-active`,ce=`&${$}-slide-up-leave${$}-slide-up-leave-active`,te=`${B}-dropdown-placement-`;return[{[`${B}-dropdown`]:Object.assign(Object.assign({},(0,i.Wf)(I)),{position:"absolute",top:-9999,zIndex:I.zIndexPopup,boxSizing:"border-box",padding:I.paddingXXS,overflow:"hidden",fontSize:I.fontSize,fontVariant:"initial",backgroundColor:I.colorBgElevated,borderRadius:I.borderRadiusLG,outline:"none",boxShadow:I.boxShadowSecondary,[` + `]:{display:"inline-block",minWidth:X.itemSize,height:X.itemSize,color:X.colorText,fontFamily:X.fontFamily,lineHeight:`${X.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:X.borderRadius,cursor:"pointer",transition:`all ${X.motionDurationMid}`},[`${re}-prev, ${re}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:X.colorText,cursor:"pointer",userSelect:"none"},[`${re}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:X.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${X.lineWidth}px ${X.lineType} transparent`,borderRadius:X.borderRadius,outline:"none",transition:`all ${X.motionDurationMid}`},[`&:hover ${re}-item-link`]:{backgroundColor:X.colorBgTextHover},[`&:active ${re}-item-link`]:{backgroundColor:X.colorBgTextActive},[`&${re}-disabled:hover`]:{[`${re}-item-link`]:{backgroundColor:"transparent"}}},[`${re}-slash`]:{marginInlineEnd:X.paginationSlashMarginInlineEnd,marginInlineStart:X.paginationSlashMarginInlineStart},[`${re}-options`]:{display:"inline-block",marginInlineStart:X.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:X.controlHeight,marginInlineStart:X.marginXS,lineHeight:`${X.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Ve.ik)(X)),{width:X.controlHeightLG*1.25,height:X.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:X.marginXS,marginInlineEnd:X.marginXS})}}}},et=X=>{const{componentCls:re}=X;return{[`${re}-item`]:{display:"inline-block",minWidth:X.itemSize,height:X.itemSize,marginInlineEnd:X.marginXS,fontFamily:X.fontFamily,lineHeight:`${X.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${X.lineWidth}px ${X.lineType} transparent`,borderRadius:X.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${X.paginationItemPaddingInline}px`,color:X.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${re}-item-active)`]:{"&:hover":{transition:`all ${X.motionDurationMid}`,backgroundColor:X.colorBgTextHover},"&:active":{backgroundColor:X.colorBgTextActive}},"&-active":{fontWeight:X.fontWeightStrong,backgroundColor:X.itemActiveBg,borderColor:X.colorPrimary,a:{color:X.colorPrimary},"&:hover":{borderColor:X.colorPrimaryHover},"&:hover a":{color:X.colorPrimaryHover}}}}},Fe=X=>{const{componentCls:re}=X;return{[re]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,qe.Wf)(X)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${re}-total-text`]:{display:"inline-block",height:X.itemSize,marginInlineEnd:X.marginXS,lineHeight:`${X.itemSize-2}px`,verticalAlign:"middle"}}),et(X)),He(X)),ke(X)),Lt(X)),gt(X)),{[`@media only screen and (max-width: ${X.screenLG}px)`]:{[`${re}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${X.screenSM}px)`]:{[`${re}-options`]:{display:"none"}}}),[`&${X.componentCls}-rtl`]:{direction:"rtl"}}},ue=X=>{const{componentCls:re}=X;return{[`${re}${re}-disabled:not(${re}-mini)`]:{"&, &:hover":{[`${re}-item-link`]:{borderColor:X.colorBorder}},"&:focus-visible":{[`${re}-item-link`]:{borderColor:X.colorBorder}},[`${re}-item, ${re}-item-link`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,[`&:hover:not(${re}-item-active)`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,a:{color:X.colorTextDisabled}},[`&${re}-item-active`]:{backgroundColor:X.itemActiveBgDisabled}},[`${re}-prev, ${re}-next`]:{"&:hover button":{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder,color:X.colorTextDisabled},[`${re}-item-link`]:{backgroundColor:X.colorBgContainerDisabled,borderColor:X.colorBorder}}},[`${re}:not(${re}-mini)`]:{[`${re}-prev, ${re}-next`]:{"&:hover button":{borderColor:X.colorPrimaryHover,backgroundColor:X.itemBg},[`${re}-item-link`]:{backgroundColor:X.itemLinkBg,borderColor:X.colorBorder},[`&:hover ${re}-item-link`]:{borderColor:X.colorPrimary,backgroundColor:X.itemBg,color:X.colorPrimary},[`&${re}-disabled`]:{[`${re}-item-link`]:{borderColor:X.colorBorder,color:X.colorTextDisabled}}},[`${re}-item`]:{backgroundColor:X.itemBg,border:`${X.lineWidth}px ${X.lineType} ${X.colorBorder}`,[`&:hover:not(${re}-item-active)`]:{borderColor:X.colorPrimary,backgroundColor:X.itemBg,a:{color:X.colorPrimary}},"&-active":{borderColor:X.colorPrimary}}}}},V=X=>{const{componentCls:re}=X;return{[`${re}:not(${re}-disabled)`]:{[`${re}-item`]:Object.assign({},(0,qe.Qy)(X)),[`${re}-jump-prev, ${re}-jump-next`]:{"&:focus-visible":Object.assign({[`${re}-item-link-icon`]:{opacity:1},[`${re}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(X))},[`${re}-prev, ${re}-next`]:{[`&:focus-visible ${re}-item-link`]:Object.assign({},(0,qe.oN)(X))}}}};var U=(0,Mt.Z)("Pagination",X=>{const re=(0,wt.TS)(X,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:X.marginXXS/2,paginationMiniQuickJumperInputWidth:X.controlHeightLG*1.1,paginationItemPaddingInline:X.marginXXS*1.5,paginationEllipsisLetterSpacing:X.marginXXS/2,paginationSlashMarginInlineStart:X.marginXXS,paginationSlashMarginInlineEnd:X.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Ve.e5)(X));return[Fe(re),V(re),X.wireframe&&ue(re)]},X=>({itemBg:X.colorBgContainer,itemSize:X.controlHeight,itemSizeSM:X.controlHeightSM,itemActiveBg:X.colorBgContainer,itemLinkBg:X.colorBgContainer,itemActiveColorDisabled:X.colorTextDisabled,itemActiveBgDisabled:X.controlItemBgActiveDisabled,itemInputBg:X.colorBgContainer,miniOptionsSizeChangerTop:0})),N=function(X,re){var Ie={};for(var Se in X)Object.prototype.hasOwnProperty.call(X,Se)&&re.indexOf(Se)<0&&(Ie[Se]=X[Se]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,Se=Object.getOwnPropertySymbols(X);he{const{prefixCls:re,selectPrefixCls:Ie,className:Se,rootClassName:he,style:We,size:de,locale:le,selectComponentClass:ve,responsive:xe,showSizeChanger:Ze}=X,pe=N(X,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Je}=(0,Ce.Z)(xe),{getPrefixCls:Ae,direction:oe,pagination:ye={}}=t.useContext(Q.E_),Be=Ae("pagination",re),[De,Pe]=U(Be),we=Ze!=null?Ze:ye.showSizeChanger,Le=t.useMemo(()=>{const jt=t.createElement("span",{className:`${Be}-item-ellipsis`},"\u2022\u2022\u2022"),Gt=t.createElement("button",{className:`${Be}-item-link`,type:"button",tabIndex:-1},oe==="rtl"?t.createElement(S.Z,null):t.createElement(p.Z,null)),Xt=t.createElement("button",{className:`${Be}-item-link`,type:"button",tabIndex:-1},oe==="rtl"?t.createElement(p.Z,null):t.createElement(S.Z,null)),Bn=t.createElement("a",{className:`${Be}-item-link`},t.createElement("div",{className:`${Be}-item-container`},oe==="rtl"?t.createElement(C,{className:`${Be}-item-link-icon`}):t.createElement(l,{className:`${Be}-item-link-icon`}),jt)),fn=t.createElement("a",{className:`${Be}-item-link`},t.createElement("div",{className:`${Be}-item-container`},oe==="rtl"?t.createElement(l,{className:`${Be}-item-link-icon`}):t.createElement(C,{className:`${Be}-item-link-icon`}),jt));return{prevIcon:Gt,nextIcon:Xt,jumpPrevIcon:Bn,jumpNextIcon:fn}},[oe,Be]),[Ye]=(0,ge.Z)("Pagination",P.Z),Ue=Object.assign(Object.assign({},Ye),le),dt=(0,fe.Z)(de),bt=dt==="small"||!!(Je&&!dt&&xe),ft=Ae("select",Ie),At=y()({[`${Be}-mini`]:bt,[`${Be}-rtl`]:oe==="rtl"},ye==null?void 0:ye.className,Se,he,Pe),Ot=Object.assign(Object.assign({},ye==null?void 0:ye.style),We);return De(t.createElement(Y,Object.assign({},Le,pe,{style:Ot,prefixCls:Be,selectPrefixCls:ft,className:At,selectComponentClass:ve||(bt?Ne:Qe),locale:Ue,showSizeChanger:we})))},se=ee},21465:function(M,b,e){"use strict";e.d(b,{t5:function(){return m}});var i=e(87608),t=e.n(i),o=e(33664),s=e(58757),n=e(61836),c=e(99836),l=e(86194),v=function(p,S){var w={};for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&S.indexOf(y)<0&&(w[y]=p[y]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Z=0,y=Object.getOwnPropertySymbols(p);Z{if(!(!S&&!w))return s.createElement(s.Fragment,null,S&&s.createElement("div",{className:`${p}-title`},(0,c.Z)(S)),s.createElement("div",{className:`${p}-inner-content`},(0,c.Z)(w)))},m=p=>{const{hashId:S,prefixCls:w,className:y,style:Z,placement:F="top",title:R,content:T,children:z}=p;return s.createElement("div",{className:t()(S,w,`${w}-pure`,`${w}-placement-${F}`,y),style:Z},s.createElement("div",{className:`${w}-arrow`}),s.createElement(o.G,Object.assign({},p,{className:S,prefixCls:w}),z||h(w,R,T)))},C=p=>{const{prefixCls:S}=p,w=v(p,["prefixCls"]),{getPrefixCls:y}=s.useContext(n.E_),Z=y("popover",S),[F,R]=(0,l.Z)(Z);return F(s.createElement(m,Object.assign({},w,{prefixCls:Z,hashId:R})))};b.ZP=C},33181:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(58757),s=e(99836),n=e(90881),c=e(61836),l=e(74820),v=e(21465),h=e(86194),m=function(S,w){var y={};for(var Z in S)Object.prototype.hasOwnProperty.call(S,Z)&&w.indexOf(Z)<0&&(y[Z]=S[Z]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var F=0,Z=Object.getOwnPropertySymbols(S);F{let{title:w,content:y,prefixCls:Z}=S;return o.createElement(o.Fragment,null,w&&o.createElement("div",{className:`${Z}-title`},(0,s.Z)(w)),o.createElement("div",{className:`${Z}-inner-content`},(0,s.Z)(y)))},p=o.forwardRef((S,w)=>{const{prefixCls:y,title:Z,content:F,overlayClassName:R,placement:T="top",trigger:z="hover",mouseEnterDelay:A=.1,mouseLeaveDelay:L=.1,overlayStyle:I={}}=S,$=m(S,["prefixCls","title","content","overlayClassName","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),{getPrefixCls:B}=o.useContext(c.E_),K=B("popover",y),[H,ie]=(0,h.Z)(K),ce=B(),te=t()(R,ie);return H(o.createElement(l.Z,Object.assign({placement:T,trigger:z,mouseEnterDelay:A,mouseLeaveDelay:L,overlayStyle:I},$,{prefixCls:K,overlayClassName:te,ref:w,overlay:Z||F?o.createElement(C,{prefixCls:K,title:Z,content:F}):null,transitionName:(0,n.m)(ce,"zoom-big",$.transitionName),"data-popover-inject":!0})))});p._InternalPanelDoNotUseOrYouWillBeFired=v.ZP,b.Z=p},86194:function(M,b,e){"use strict";var i=e(78330),t=e(28107),o=e(24542),s=e(34966),n=e(52628),c=e(22151);const l=m=>{const{componentCls:C,popoverColor:p,minWidth:S,fontWeightStrong:w,popoverPadding:y,boxShadowSecondary:Z,colorTextHeading:F,borderRadiusLG:R,zIndexPopup:T,marginXS:z,colorBgElevated:A,popoverBg:L}=m;return[{[C]:Object.assign(Object.assign({},(0,i.Wf)(m)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:T,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":A,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${C}-content`]:{position:"relative"},[`${C}-inner`]:{backgroundColor:L,backgroundClip:"padding-box",borderRadius:R,boxShadow:Z,padding:y},[`${C}-title`]:{minWidth:S,marginBottom:z,color:F,fontWeight:w},[`${C}-inner-content`]:{color:p}})},(0,o.ZP)(m,{colorBg:"var(--antd-arrow-background-color)"}),{[`${C}-pure`]:{position:"relative",maxWidth:"none",margin:m.sizePopupArrow,display:"inline-block",[`${C}-content`]:{display:"inline-block"}}}]},v=m=>{const{componentCls:C}=m;return{[C]:s.i.map(p=>{const S=m[`${p}6`];return{[`&${C}-${p}`]:{"--antd-arrow-background-color":S,[`${C}-inner`]:{backgroundColor:S},[`${C}-arrow`]:{background:"transparent"}}}})}},h=m=>{const{componentCls:C,lineWidth:p,lineType:S,colorSplit:w,paddingSM:y,controlHeight:Z,fontSize:F,lineHeight:R,padding:T}=m,z=Z-Math.round(F*R),A=z/2,L=z/2-p,I=T;return{[C]:{[`${C}-inner`]:{padding:0},[`${C}-title`]:{margin:0,padding:`${A}px ${I}px ${L}px`,borderBottom:`${p}px ${S} ${w}`},[`${C}-inner-content`]:{padding:`${y}px ${I}px`}}}};b.Z=(0,n.Z)("Popover",m=>{const{colorBgElevated:C,colorText:p,wireframe:S}=m,w=(0,c.TS)(m,{popoverPadding:12,popoverBg:C,popoverColor:p});return[l(w),v(w),S&&h(w),(0,t._y)(w,"zoom-big")]},m=>({width:177,minWidth:177,zIndexPopup:m.zIndexPopupBase+30}),{deprecatedTokens:[["width","minWidth"]]})},12632:function(M,b,e){"use strict";e.d(b,{ZP:function(){return O}});var i=e(85678),t=e(79999),o=e(69831),s=e(60698),n=e(58757),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},l=c,v=e(17202),h=function(Y,P){return n.createElement(v.Z,(0,s.Z)({},Y,{ref:P,icon:l}))},m=n.forwardRef(h),C=e(87608),p=e.n(C),S=e(61836),y=()=>n.createElement("svg",{width:"252",height:"294"},n.createElement("defs",null,n.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(0 .012)"},n.createElement("mask",{fill:"#fff"}),n.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),n.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),n.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),n.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),n.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),n.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),n.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),n.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1677ff"}),n.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),n.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),n.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),n.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),n.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),n.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),n.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),n.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),n.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),n.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),n.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),n.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),n.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),n.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),n.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),n.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),n.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),n.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),n.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),n.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),n.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),n.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),n.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),n.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),n.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),n.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),n.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),n.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),n.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),n.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}))),F=()=>n.createElement("svg",{width:"254",height:"294"},n.createElement("defs",null,n.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),n.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("g",{transform:"translate(0 .067)"},n.createElement("mask",{fill:"#fff"}),n.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),n.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),n.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),n.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),n.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),n.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),n.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),n.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),n.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),n.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),n.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),n.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),n.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),n.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),n.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),n.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),n.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),n.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),n.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),n.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),n.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),n.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),n.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),n.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),n.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),n.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),n.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),n.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),n.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),n.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),n.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),n.createElement("mask",{fill:"#fff"}),n.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),n.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),n.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),n.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),n.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),n.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),n.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),n.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),n.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"}))),T=()=>n.createElement("svg",{width:"251",height:"294"},n.createElement("g",{fill:"none",fillRule:"evenodd"},n.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),n.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),n.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),n.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),n.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),n.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),n.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),n.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),n.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),n.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),n.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),n.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),n.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),n.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),n.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),n.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),n.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),n.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),n.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),n.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),n.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),n.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),n.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),n.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),n.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),n.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),n.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),n.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),n.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),n.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),n.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),n.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),n.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),n.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),n.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),n.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),n.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),n.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}))),z=e(52628),A=e(22151);const L=k=>{const{componentCls:Y,lineHeightHeading3:P,iconCls:Q,padding:fe,paddingXL:Ce,paddingXS:ge,paddingLG:Me,marginXS:Ne,lineHeight:Qe}=k;return{[Y]:{padding:`${Me*2}px ${Ce}px`,"&-rtl":{direction:"rtl"}},[`${Y} ${Y}-image`]:{width:k.imageWidth,height:k.imageHeight,margin:"auto"},[`${Y} ${Y}-icon`]:{marginBottom:Me,textAlign:"center",[`& > ${Q}`]:{fontSize:k.iconFontSize}},[`${Y} ${Y}-title`]:{color:k.colorTextHeading,fontSize:k.titleFontSize,lineHeight:P,marginBlock:Ne,textAlign:"center"},[`${Y} ${Y}-subtitle`]:{color:k.colorTextDescription,fontSize:k.subtitleFontSize,lineHeight:Qe,textAlign:"center"},[`${Y} ${Y}-content`]:{marginTop:Me,padding:`${Me}px ${fe*2.5}px`,backgroundColor:k.colorFillAlter},[`${Y} ${Y}-extra`]:{margin:k.extraMargin,textAlign:"center","& > *":{marginInlineEnd:ge,"&:last-child":{marginInlineEnd:0}}}}},I=k=>{const{componentCls:Y,iconCls:P}=k;return{[`${Y}-success ${Y}-icon > ${P}`]:{color:k.resultSuccessIconColor},[`${Y}-error ${Y}-icon > ${P}`]:{color:k.resultErrorIconColor},[`${Y}-info ${Y}-icon > ${P}`]:{color:k.resultInfoIconColor},[`${Y}-warning ${Y}-icon > ${P}`]:{color:k.resultWarningIconColor}}},$=k=>[L(k),I(k)],B=k=>$(k);var K=(0,z.Z)("Result",k=>{const Y=k.colorInfo,P=k.colorError,Q=k.colorSuccess,fe=k.colorWarning,Ce=(0,A.TS)(k,{resultInfoIconColor:Y,resultErrorIconColor:P,resultSuccessIconColor:Q,resultWarningIconColor:fe,imageWidth:250,imageHeight:295});return[B(Ce)]},k=>({titleFontSize:k.fontSizeHeading3,subtitleFontSize:k.fontSize,iconFontSize:k.fontSizeHeading3*3,extraMargin:`${k.paddingLG}px 0 0 0`}));const H={success:i.Z,error:t.Z,info:o.Z,warning:m},ie={404:y,500:F,403:T},ce=Object.keys(ie),te=k=>{let{prefixCls:Y,icon:P,status:Q}=k;const fe=p()(`${Y}-icon`);if(ce.includes(`${Q}`)){const ge=ie[Q];return n.createElement("div",{className:`${fe} ${Y}-image`},n.createElement(ge,null))}const Ce=n.createElement(H[Q]);return P===null||P===!1?null:n.createElement("div",{className:fe},P||Ce)},W=k=>{let{prefixCls:Y,extra:P}=k;return P?n.createElement("div",{className:`${Y}-extra`},P):null},G=k=>{let{prefixCls:Y,className:P,rootClassName:Q,subTitle:fe,title:Ce,style:ge,children:Me,status:Ne="info",icon:Qe,extra:Ve}=k;const{getPrefixCls:qe,direction:Mt,result:wt}=n.useContext(S.E_),gt=qe("result",Y),[Lt,ke]=K(gt),He=p()(gt,`${gt}-${Ne}`,P,wt==null?void 0:wt.className,Q,{[`${gt}-rtl`]:Mt==="rtl"},ke),et=Object.assign(Object.assign({},wt==null?void 0:wt.style),ge);return Lt(n.createElement("div",{className:He,style:et},n.createElement(te,{prefixCls:gt,status:Ne,icon:Qe}),n.createElement("div",{className:`${gt}-title`},Ce),fe&&n.createElement("div",{className:`${gt}-subtitle`},fe),n.createElement(W,{prefixCls:gt,extra:Ve}),Me&&n.createElement("div",{className:`${gt}-content`},Me)))};G.PRESENTED_IMAGE_403=ie[403],G.PRESENTED_IMAGE_404=ie[404],G.PRESENTED_IMAGE_500=ie[500];var O=G},59504:function(M,b,e){"use strict";var i=e(87608),t=e.n(i),o=e(18510),s=e(98186),n=e(58757),c=e(15018),l=e(90881),v=e(41496),h=e(61836),m=e(92428),C=e(10401),p=e(58785),S=e(81496),w=e(43528),y=e(92493),Z=e(25639),F=e(61698),R=e(29701),T=function($,B){var K={};for(var H in $)Object.prototype.hasOwnProperty.call($,H)&&B.indexOf(H)<0&&(K[H]=$[H]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,H=Object.getOwnPropertySymbols($);ie{var K,{prefixCls:H,bordered:ie=!0,className:ce,rootClassName:te,getPopupContainer:W,popupClassName:G,dropdownClassName:O,listHeight:k=256,placement:Y,listItemHeight:P=24,size:Q,disabled:fe,notFoundContent:Ce,status:ge,builtinPlacements:Me,dropdownMatchSelectWidth:Ne,popupMatchSelectWidth:Qe,direction:Ve,style:qe,allowClear:Mt}=$,wt=T($,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:gt,getPrefixCls:Lt,renderEmpty:ke,direction:He,virtual:et,popupMatchSelectWidth:Fe,popupOverflow:ue,select:V}=n.useContext(h.E_),U=Lt("select",H),N=Lt(),D=Ve!=null?Ve:He,{compactSize:ee,compactItemClassnames:se}=(0,w.ri)(U,D),[X,re]=(0,y.Z)(U),Ie=n.useMemo(()=>{const{mode:ft}=wt;if(ft!=="combobox")return ft===z?"combobox":ft},[wt.mode]),Se=Ie==="multiple"||Ie==="tags",he=(0,F.Z)(wt.suffixIcon,wt.showArrow),We=(K=Qe!=null?Qe:Ne)!==null&&K!==void 0?K:Fe,{status:de,hasFeedback:le,isFormItemInput:ve,feedbackIcon:xe}=n.useContext(S.aM),Ze=(0,v.F)(de,ge);let pe;Ce!==void 0?pe=Ce:Ie==="combobox"?pe=null:pe=(ke==null?void 0:ke("Select"))||n.createElement(C.Z,{componentName:"Select"});const{suffixIcon:Je,itemIcon:Ae,removeIcon:oe,clearIcon:ye}=(0,R.Z)(Object.assign(Object.assign({},wt),{multiple:Se,hasFeedback:le,feedbackIcon:xe,showSuffixIcon:he,prefixCls:U,showArrow:wt.showArrow,componentName:"Select"})),Be=Mt===!0?{clearIcon:ye}:Mt,De=(0,s.Z)(wt,["suffixIcon","itemIcon"]),Pe=t()(G||O,{[`${U}-dropdown-${D}`]:D==="rtl"},te,re),we=(0,p.Z)(ft=>{var At;return(At=Q!=null?Q:ee)!==null&&At!==void 0?At:ft}),Le=n.useContext(m.Z),Ye=fe!=null?fe:Le,Ue=t()({[`${U}-lg`]:we==="large",[`${U}-sm`]:we==="small",[`${U}-rtl`]:D==="rtl",[`${U}-borderless`]:!ie,[`${U}-in-form-item`]:ve},(0,v.Z)(U,Ze,le),se,V==null?void 0:V.className,ce,te,re),dt=n.useMemo(()=>Y!==void 0?Y:D==="rtl"?"bottomRight":"bottomLeft",[Y,D]),bt=(0,Z.Z)(Me,ue);return X(n.createElement(o.ZP,Object.assign({ref:B,virtual:et,showSearch:V==null?void 0:V.showSearch},De,{style:Object.assign(Object.assign({},V==null?void 0:V.style),qe),dropdownMatchSelectWidth:We,builtinPlacements:bt,transitionName:(0,l.m)(N,"slide-up",wt.transitionName),listHeight:k,listItemHeight:P,mode:Ie,prefixCls:U,placement:dt,direction:D,suffixIcon:Je,menuItemSelectedIcon:Ae,removeIcon:oe,allowClear:Be,notFoundContent:pe,className:Ue,getPopupContainer:W||gt,dropdownClassName:Pe,disabled:Ye})))},L=n.forwardRef(A),I=(0,c.Z)(L);L.SECRET_COMBOBOX_MODE_DO_NOT_USE=z,L.Option=o.Wx,L.OptGroup=o.Xo,L._InternalPanelDoNotUseOrYouWillBeFired=I,b.Z=L},92493:function(M,b,e){"use strict";e.d(b,{Z:function(){return L}});var i=e(78330),t=e(64493),o=e(22151),s=e(52628),n=e(1016),c=e(1546);const l=I=>{const{controlPaddingHorizontal:$,controlHeight:B,fontSize:K,lineHeight:H}=I;return{position:"relative",display:"block",minHeight:B,padding:`${(B-K*H)/2}px ${$}px`,color:I.colorText,fontWeight:"normal",fontSize:K,lineHeight:H,boxSizing:"border-box"}};var h=I=>{const{antCls:$,componentCls:B}=I,K=`${B}-item`,H=`&${$}-slide-up-enter${$}-slide-up-enter-active`,ie=`&${$}-slide-up-appear${$}-slide-up-appear-active`,ce=`&${$}-slide-up-leave${$}-slide-up-leave-active`,te=`${B}-dropdown-placement-`;return[{[`${B}-dropdown`]:Object.assign(Object.assign({},(0,i.Wf)(I)),{position:"absolute",top:-9999,zIndex:I.zIndexPopup,boxSizing:"border-box",padding:I.paddingXXS,overflow:"hidden",fontSize:I.fontSize,fontVariant:"initial",backgroundColor:I.colorBgElevated,borderRadius:I.borderRadiusLG,outline:"none",boxShadow:I.boxShadowSecondary,[` ${H}${te}bottomLeft, ${ie}${te}bottomLeft `]:{animationName:n.fJ},[` @@ -323,7 +323,7 @@ http://j.mp/37Fkd5Q ${ee}, ${se}, ${X} - `]:Object.assign({},w(ue))}}};var $=(0,h.Z)("Skeleton",ue=>{const{componentCls:V}=ue,U=(0,m.TS)(ue,{skeletonAvatarCls:`${V}-avatar`,skeletonTitleCls:`${V}-title`,skeletonParagraphCls:`${V}-paragraph`,skeletonButtonCls:`${V}-button`,skeletonInputCls:`${V}-input`,skeletonImageCls:`${V}-image`,imageSizeBase:ue.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ue.gradientFromColor} 25%, ${ue.gradientToColor} 37%, ${ue.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[I(U)]},ue=>{const{colorFillContent:V,colorFill:U}=ue,N=V,D=U;return{color:N,colorGradientEnd:D,gradientFromColor:N,gradientToColor:D,titleHeight:ue.controlHeight/2,blockRadius:ue.borderRadiusSM,paragraphMarginTop:ue.marginLG+ue.marginXXS,paragraphLiHeight:ue.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),K=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,shape:ee="circle",size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls","className"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-avatar`,shape:ee,size:se},he))))},ie=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,block:ee=!1,size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D,[`${re}-block`]:ee},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-button`,size:se},he))))};const ce="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var W=ue=>{const{prefixCls:V,className:U,rootClassName:N,style:D,active:ee}=ue,{getPrefixCls:se}=o.useContext(s.E_),X=se("skeleton",V),[re,Ie]=$(X),Se=t()(X,`${X}-element`,{[`${X}-active`]:ee},U,N,Ie);return re(o.createElement("div",{className:Se},o.createElement("div",{className:t()(`${X}-image`,U),style:D},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${X}-image-svg`},o.createElement("path",{d:ce,className:`${X}-image-path`})))))},O=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,block:ee,size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D,[`${re}-block`]:ee},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-input`,size:se},he))))},k=e(60698),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},P=Y,Q=e(17202),fe=function(V,U){return o.createElement(Q.Z,(0,k.Z)({},V,{ref:U,icon:P}))},Ce=o.forwardRef(fe),Me=ue=>{const{prefixCls:V,className:U,rootClassName:N,style:D,active:ee,children:se}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=t()(re,`${re}-element`,{[`${re}-active`]:ee},Se,U,N),We=se!=null?se:o.createElement(Ce,null);return Ie(o.createElement("div",{className:he},o.createElement("div",{className:t()(`${re}-image`,U),style:D},We)))},Re=e(29140),Ve=ue=>{const V=X=>{const{width:re,rows:Ie=2}=ue;if(Array.isArray(re))return re[X];if(Ie-1===X)return re},{prefixCls:U,className:N,style:D,rows:ee}=ue,se=(0,Re.Z)(Array(ee)).map((X,re)=>o.createElement("li",{key:re,style:{width:V(re)}}));return o.createElement("ul",{className:t()(U,N),style:D},se)},Mt=ue=>{let{prefixCls:V,className:U,width:N,style:D}=ue;return o.createElement("h3",{className:t()(V,U),style:Object.assign({width:N},D)})};function wt(ue){return ue&&typeof ue=="object"?ue:{}}function mt(ue,V){return ue&&!V?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Nt(ue,V){return!ue&&V?{width:"38%"}:ue&&V?{width:"50%"}:{}}function ke(ue,V){const U={};return(!ue||!V)&&(U.width="61%"),!ue&&V?U.rows=3:U.rows=2,U}const He=ue=>{const{prefixCls:V,loading:U,className:N,rootClassName:D,style:ee,children:se,avatar:X=!1,title:re=!0,paragraph:Ie=!0,active:Se,round:he}=ue,{getPrefixCls:We,direction:de,skeleton:le}=o.useContext(s.E_),ve=We("skeleton",V),[xe,Ze]=$(ve);if(U||!("loading"in ue)){const pe=!!X,Je=!!re,Ae=!!Ie;let oe;if(pe){const De=Object.assign(Object.assign({prefixCls:`${ve}-avatar`},mt(Je,Ae)),wt(X));oe=o.createElement("div",{className:`${ve}-header`},o.createElement(l,Object.assign({},De)))}let ye;if(Je||Ae){let De;if(Je){const we=Object.assign(Object.assign({prefixCls:`${ve}-title`},Nt(pe,Ae)),wt(re));De=o.createElement(Mt,Object.assign({},we))}let Pe;if(Ae){const we=Object.assign(Object.assign({prefixCls:`${ve}-paragraph`},ke(pe,Je)),wt(Ie));Pe=o.createElement(Ve,Object.assign({},we))}ye=o.createElement("div",{className:`${ve}-content`},De,Pe)}const Be=t()(ve,{[`${ve}-with-avatar`]:pe,[`${ve}-active`]:Se,[`${ve}-rtl`]:de==="rtl",[`${ve}-round`]:he},le==null?void 0:le.className,N,D,Ze);return xe(o.createElement("div",{className:Be,style:Object.assign(Object.assign({},le==null?void 0:le.style),ee)},oe,ye))}return typeof se!="undefined"?se:null};He.Button=ie,He.Avatar=K,He.Input=O,He.Image=W,He.Node=Me;var et=He,Fe=et},94706:function(M,b,e){"use strict";e.d(b,{Z:function(){return N}});var i=e(87608),t=e.n(i),o=e(37734),s=e(29140),n=e(28314),c=e(38790),l=e(58757),v=e(7637),h=e(60409),m=e(60698),C=e(47075),p=e(57370),S=e(29639),w=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),y=w;function Z(D,ee,se){return(D-ee)/(se-ee)}function F(D,ee,se,X){var re=Z(ee,se,X),Ie={};switch(D){case"rtl":Ie.right="".concat(re*100,"%"),Ie.transform="translateX(50%)";break;case"btt":Ie.bottom="".concat(re*100,"%"),Ie.transform="translateY(50%)";break;case"ttb":Ie.top="".concat(re*100,"%"),Ie.transform="translateY(-50%)";break;default:Ie.left="".concat(re*100,"%"),Ie.transform="translateX(-50%)";break}return Ie}function R(D,ee){return Array.isArray(D)?D[ee]:D}var T=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],z=l.forwardRef(function(D,ee){var se,X,re=D.prefixCls,Ie=D.value,Se=D.valueIndex,he=D.onStartMove,We=D.style,de=D.render,le=D.dragging,ve=D.onOffsetChange,xe=(0,C.Z)(D,T),Ze=l.useContext(y),pe=Ze.min,Je=Ze.max,Ae=Ze.direction,oe=Ze.disabled,ye=Ze.keyboard,Be=Ze.range,De=Ze.tabIndex,Pe=Ze.ariaLabelForHandle,we=Ze.ariaLabelledByForHandle,Le=Ze.ariaValueTextFormatterForHandle,Ye="".concat(re,"-handle"),Ue=function(Ot){oe||he(Ot,Se)},dt=function(Ot){if(!oe&&ye){var jt=null;switch(Ot.which||Ot.keyCode){case S.Z.LEFT:jt=Ae==="ltr"||Ae==="btt"?-1:1;break;case S.Z.RIGHT:jt=Ae==="ltr"||Ae==="btt"?1:-1;break;case S.Z.UP:jt=Ae!=="ttb"?1:-1;break;case S.Z.DOWN:jt=Ae!=="ttb"?-1:1;break;case S.Z.HOME:jt="min";break;case S.Z.END:jt="max";break;case S.Z.PAGE_UP:jt=2;break;case S.Z.PAGE_DOWN:jt=-2;break}jt!==null&&(Ot.preventDefault(),ve(jt,Se))}},bt=F(Ae,Ie,pe,Je),ft=l.createElement("div",(0,m.Z)({ref:ee,className:t()(Ye,(se={},(0,o.Z)(se,"".concat(Ye,"-").concat(Se+1),Be),(0,o.Z)(se,"".concat(Ye,"-dragging"),le),se)),style:(0,p.Z)((0,p.Z)({},bt),We),onMouseDown:Ue,onTouchStart:Ue,onKeyDown:dt,tabIndex:oe?null:R(De,Se),role:"slider","aria-valuemin":pe,"aria-valuemax":Je,"aria-valuenow":Ie,"aria-disabled":oe,"aria-label":R(Pe,Se),"aria-labelledby":R(we,Se),"aria-valuetext":(X=R(Le,Se))===null||X===void 0?void 0:X(Ie)},xe));return de&&(ft=de(ft,{index:Se,prefixCls:re,value:Ie,dragging:le})),ft}),A=z,L=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],I=l.forwardRef(function(D,ee){var se=D.prefixCls,X=D.style,re=D.onStartMove,Ie=D.onOffsetChange,Se=D.values,he=D.handleRender,We=D.draggingIndex,de=(0,C.Z)(D,L),le=l.useRef({});return l.useImperativeHandle(ee,function(){return{focus:function(xe){var Ze;(Ze=le.current[xe])===null||Ze===void 0||Ze.focus()}}}),l.createElement(l.Fragment,null,Se.map(function(ve,xe){return l.createElement(A,(0,m.Z)({ref:function(pe){pe?le.current[xe]=pe:delete le.current[xe]},dragging:We===xe,prefixCls:se,style:R(X,xe),key:xe,value:ve,valueIndex:xe,onStartMove:re,onOffsetChange:Ie,render:he},de))}))}),$=I;function B(D){var ee="touches"in D?D.touches[0]:D;return{pageX:ee.pageX,pageY:ee.pageY}}function K(D,ee,se,X,re,Ie,Se,he,We){var de=l.useState(null),le=(0,n.Z)(de,2),ve=le[0],xe=le[1],Ze=l.useState(-1),pe=(0,n.Z)(Ze,2),Je=pe[0],Ae=pe[1],oe=l.useState(se),ye=(0,n.Z)(oe,2),Be=ye[0],De=ye[1],Pe=l.useState(se),we=(0,n.Z)(Pe,2),Le=we[0],Ye=we[1],Ue=l.useRef(null),dt=l.useRef(null);l.useEffect(function(){Je===-1&&De(se)},[se,Je]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",Ue.current),document.removeEventListener("mouseup",dt.current),document.removeEventListener("touchmove",Ue.current),document.removeEventListener("touchend",dt.current)}},[]);var bt=function(Xt,zn){Be.some(function(fn,Bn){return fn!==Xt[Bn]})&&(zn!==void 0&&xe(zn),De(Xt),Se(Xt))},ft=function(Xt,zn){if(Xt===-1){var fn=Le[0],Bn=Le[Le.length-1],On=X-fn,Mn=re-Bn,_e=zn*(re-X);_e=Math.max(_e,On),_e=Math.min(_e,Mn);var at=Ie(fn+_e);_e=at-fn;var Vt=Le.map(function($t){return $t+_e});bt(Vt)}else{var rn=(re-X)*zn,st=(0,s.Z)(Be);st[Xt]=Le[Xt];var ut=We(st,rn,Xt,"dist");bt(ut.values,ut.value)}},At=l.useRef(ft);At.current=ft;var Ot=function(Xt,zn){Xt.stopPropagation();var fn=se[zn];Ae(zn),xe(fn),Ye(se);var Bn=B(Xt),On=Bn.pageX,Mn=Bn.pageY,_e=function(rn){rn.preventDefault();var st=B(rn),ut=st.pageX,$t=st.pageY,nt=ut-On,gt=$t-Mn,Dt=D.current.getBoundingClientRect(),xn=Dt.width,tn=Dt.height,Hn;switch(ee){case"btt":Hn=-gt/tn;break;case"ttb":Hn=gt/tn;break;case"rtl":Hn=-nt/xn;break;default:Hn=nt/xn}At.current(zn,Hn)},at=function Vt(rn){rn.preventDefault(),document.removeEventListener("mouseup",Vt),document.removeEventListener("mousemove",_e),document.removeEventListener("touchend",Vt),document.removeEventListener("touchmove",_e),Ue.current=null,dt.current=null,Ae(-1),he()};document.addEventListener("mouseup",at),document.addEventListener("mousemove",_e),document.addEventListener("touchend",at),document.addEventListener("touchmove",_e),Ue.current=_e,dt.current=at},jt=l.useMemo(function(){var Gt=(0,s.Z)(se).sort(function(zn,fn){return zn-fn}),Xt=(0,s.Z)(Be).sort(function(zn,fn){return zn-fn});return Gt.every(function(zn,fn){return zn===Xt[fn]})?Be:se},[se,Be]);return[Je,ve,jt,Ot]}function H(D){var ee=D.prefixCls,se=D.style,X=D.start,re=D.end,Ie=D.index,Se=D.onStartMove,he=l.useContext(y),We=he.direction,de=he.min,le=he.max,ve=he.disabled,xe=he.range,Ze="".concat(ee,"-track"),pe=Z(X,de,le),Je=Z(re,de,le),Ae=function(Be){!ve&&Se&&Se(Be,-1)},oe={};switch(We){case"rtl":oe.right="".concat(pe*100,"%"),oe.width="".concat(Je*100-pe*100,"%");break;case"btt":oe.bottom="".concat(pe*100,"%"),oe.height="".concat(Je*100-pe*100,"%");break;case"ttb":oe.top="".concat(pe*100,"%"),oe.height="".concat(Je*100-pe*100,"%");break;default:oe.left="".concat(pe*100,"%"),oe.width="".concat(Je*100-pe*100,"%")}return l.createElement("div",{className:t()(Ze,xe&&"".concat(Ze,"-").concat(Ie+1)),style:(0,p.Z)((0,p.Z)({},oe),se),onMouseDown:Ae,onTouchStart:Ae})}function ie(D){var ee=D.prefixCls,se=D.style,X=D.values,re=D.startPoint,Ie=D.onStartMove,Se=l.useContext(y),he=Se.included,We=Se.range,de=Se.min,le=l.useMemo(function(){if(!We){if(X.length===0)return[];var ve=re!=null?re:de,xe=X[0];return[{start:Math.min(ve,xe),end:Math.max(ve,xe)}]}for(var Ze=[],pe=0;pe3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Je=="number"){var ye,Be=pe[Ae],De=Be+Je,Pe=[];X.forEach(function(dt){Pe.push(dt.value)}),Pe.push(D,ee),Pe.push(he(Be));var we=Je>0?1:-1;oe==="unit"?Pe.push(he(Be+we*se)):Pe.push(he(De)),Pe=Pe.filter(function(dt){return dt!==null}).filter(function(dt){return Je<0?dt<=Be:dt>=Be}),oe==="unit"&&(Pe=Pe.filter(function(dt){return dt!==Be}));var Le=oe==="unit"?Be:De;ye=Pe[0];var Ye=Math.abs(ye-Le);if(Pe.forEach(function(dt){var bt=Math.abs(dt-Le);bt1){var Ue=(0,s.Z)(pe);return Ue[Ae]=ye,Ze(Ue,Je-we,Ae,oe)}return ye}else{if(Je==="min")return D;if(Je==="max")return ee}},le=function(pe,Je,Ae){var oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ye=pe[Ae],Be=de(pe,Je,Ae,oe);return{value:Be,changed:Be!==ye}},ve=function(pe){return Ie===null&&pe===0||typeof Ie=="number"&&pe3&&arguments[3]!==void 0?arguments[3]:"unit",ye=pe.map(We),Be=ye[Ae],De=de(ye,Je,Ae,oe);if(ye[Ae]=De,re===!1){var Pe=Ie||0;Ae>0&&ye[Ae-1]!==Be&&(ye[Ae]=Math.max(ye[Ae],ye[Ae-1]+Pe)),Ae0;Ue-=1)for(var dt=!0;ve(ye[Ue]-ye[Ue-1])&&dt;){var bt=le(ye,-1,Ue-1);ye[Ue-1]=bt.value,dt=bt.changed}for(var ft=ye.length-1;ft>0;ft-=1)for(var At=!0;ve(ye[ft]-ye[ft-1])&&At;){var Ot=le(ye,-1,ft-1);ye[ft-1]=Ot.value,At=Ot.changed}for(var jt=0;jt=0?Ot:!1},[Ot,Or]),mr=l.useMemo(function(){var aa=Object.keys(rn||{});return aa.map(function(Jr){var Zr=rn[Jr],Ca={value:Number(Jr)};return Zr&&(0,c.Z)(Zr)==="object"&&!l.isValidElement(Zr)&&("label"in Zr||"style"in Zr)?(Ca.style=Zr.style,Ca.label=Zr.label):Ca.label=Zr,Ca}).filter(function(Jr){var Zr=Jr.label;return Zr||typeof Zr=="number"}).sort(function(Jr,Zr){return Jr.value-Zr.value})},[rn]),ea=O(pr,gr,Or,mr,ft,ar),Lr=(0,n.Z)(ea,2),Kn=Lr[0],zt=Lr[1],Ft=(0,h.Z)(Pe,{value:De}),on=(0,n.Z)(Ft,2),nn=on[0],kt=on[1],hn=l.useMemo(function(){var aa=nn==null?[]:Array.isArray(nn)?nn:[nn],Jr=(0,n.Z)(aa,1),Zr=Jr[0],Ca=Zr===void 0?pr:Zr,la=nn===null?[]:[Ca];if(we){if(la=(0,s.Z)(aa),Le||nn===void 0){var Tn=Le>=0?Le+1:2;for(la=la.slice(0,Tn);la.length=0&&tn.current.focus(aa)}_t(null)},[Lt]);var yn=l.useMemo(function(){return jt&&Or===null?!1:jt},[jt,Or]),kn=function(){dt==null||dt($n(dn.current))},hr=K(Hn,Nn,hn,pr,gr,Kn,qn,kn,zt),cr=(0,n.Z)(hr,4),Dn=cr[0],Rr=cr[1],or=cr[2],Gr=cr[3],Ir=function(Jr,Zr){Gr(Jr,Zr),Ue==null||Ue($n(dn.current))},jn=Dn!==-1;l.useEffect(function(){if(!jn){var aa=hn.lastIndexOf(Rr);tn.current.focus(aa)}},[jn]);var vn=l.useMemo(function(){return(0,s.Z)(or).sort(function(aa,Jr){return aa-Jr})},[or]),Ln=l.useMemo(function(){return we?[vn[0],vn[vn.length-1]]:[pr,vn[0]]},[vn,we,pr]),Zn=(0,n.Z)(Ln,2),yr=Zn[0],Fr=Zn[1];l.useImperativeHandle(ee,function(){return{focus:function(){tn.current.focus(0)},blur:function(){var Jr=document,Zr=Jr.activeElement;Hn.current.contains(Zr)&&(Zr==null||Zr.blur())}}}),l.useEffect(function(){ve&&tn.current.focus(0)},[]);var Kr=l.useMemo(function(){return{min:pr,max:gr,direction:Nn,disabled:We,keyboard:le,step:Or,included:fn,includedStart:yr,includedEnd:Fr,range:we,tabIndex:nt,ariaLabelForHandle:gt,ariaLabelledByForHandle:Dt,ariaValueTextFormatterForHandle:xn}},[pr,gr,Nn,We,le,Or,fn,yr,Fr,we,nt,gt,Dt,xn]);return l.createElement(y.Provider,{value:Kr},l.createElement("div",{ref:Hn,className:t()(re,Ie,(se={},(0,o.Z)(se,"".concat(re,"-disabled"),We),(0,o.Z)(se,"".concat(re,"-vertical"),Xt),(0,o.Z)(se,"".concat(re,"-horizontal"),!Xt),(0,o.Z)(se,"".concat(re,"-with-marks"),mr.length),se)),style:Se,onMouseDown:lt},l.createElement("div",{className:"".concat(re,"-rail"),style:_e}),l.createElement(ie,{prefixCls:re,style:On,values:vn,startPoint:Bn,onStartMove:yn?Ir:null}),l.createElement(G,{prefixCls:re,marks:mr,dots:st,style:at,activeStyle:Vt}),l.createElement($,{ref:tn,prefixCls:re,style:Mn,values:or,draggingIndex:Dn,onStartMove:Ir,onOffsetChange:Wt,onFocus:xe,onBlur:Ze,handleRender:ut}),l.createElement(te,{prefixCls:re,marks:mr,onClick:ct})))}),P=Y,Q=P,fe=e(61836),Ce=e(92428),ge=e(61834),Me=e(21319),Re=e(74820),Ve=l.forwardRef((D,ee)=>{const{open:se}=D,X=(0,l.useRef)(null),re=(0,l.useRef)(null);function Ie(){ge.Z.cancel(re.current),re.current=null}function Se(){re.current=(0,ge.Z)(()=>{var he;(he=X.current)===null||he===void 0||he.forceAlign(),re.current=null})}return l.useEffect(()=>(se?Se():Ie(),Ie),[se,D.title]),l.createElement(Re.Z,Object.assign({ref:(0,Me.sQ)(X,ee)},D))}),qe=e(66671),Mt=e(78330),wt=e(52628),mt=e(22151);const Nt=D=>{const{componentCls:ee,antCls:se,controlSize:X,dotSize:re,marginFull:Ie,marginPart:Se,colorFillContentHover:he}=D;return{[ee]:Object.assign(Object.assign({},(0,Mt.Wf)(D)),{position:"relative",height:X,margin:`${Se}px ${Ie}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${Ie}px ${Se}px`},[`${ee}-rail`]:{position:"absolute",backgroundColor:D.railBg,borderRadius:D.borderRadiusXS,transition:`background-color ${D.motionDurationMid}`},[`${ee}-track`]:{position:"absolute",backgroundColor:D.trackBg,borderRadius:D.borderRadiusXS,transition:`background-color ${D.motionDurationMid}`},"&:hover":{[`${ee}-rail`]:{backgroundColor:D.railHoverBg},[`${ee}-track`]:{backgroundColor:D.trackHoverBg},[`${ee}-dot`]:{borderColor:he},[`${ee}-handle::after`]:{boxShadow:`0 0 0 ${D.handleLineWidth}px ${D.colorPrimaryBorderHover}`},[`${ee}-dot-active`]:{borderColor:D.dotActiveBorderColor}},[`${ee}-handle`]:{position:"absolute",width:D.handleSize,height:D.handleSize,outline:"none",[`${ee}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-D.handleLineWidth,insetBlockStart:-D.handleLineWidth,width:D.handleSize+D.handleLineWidth*2,height:D.handleSize+D.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:D.handleSize,height:D.handleSize,backgroundColor:D.colorBgElevated,boxShadow:`0 0 0 ${D.handleLineWidth}px ${D.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` + `]:Object.assign({},w(ue))}}};var $=(0,h.Z)("Skeleton",ue=>{const{componentCls:V}=ue,U=(0,m.TS)(ue,{skeletonAvatarCls:`${V}-avatar`,skeletonTitleCls:`${V}-title`,skeletonParagraphCls:`${V}-paragraph`,skeletonButtonCls:`${V}-button`,skeletonInputCls:`${V}-input`,skeletonImageCls:`${V}-image`,imageSizeBase:ue.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ue.gradientFromColor} 25%, ${ue.gradientToColor} 37%, ${ue.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[I(U)]},ue=>{const{colorFillContent:V,colorFill:U}=ue,N=V,D=U;return{color:N,colorGradientEnd:D,gradientFromColor:N,gradientToColor:D,titleHeight:ue.controlHeight/2,blockRadius:ue.borderRadiusSM,paragraphMarginTop:ue.marginLG+ue.marginXXS,paragraphLiHeight:ue.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),K=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,shape:ee="circle",size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls","className"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-avatar`,shape:ee,size:se},he))))},ie=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,block:ee=!1,size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D,[`${re}-block`]:ee},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-button`,size:se},he))))};const ce="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var W=ue=>{const{prefixCls:V,className:U,rootClassName:N,style:D,active:ee}=ue,{getPrefixCls:se}=o.useContext(s.E_),X=se("skeleton",V),[re,Ie]=$(X),Se=t()(X,`${X}-element`,{[`${X}-active`]:ee},U,N,Ie);return re(o.createElement("div",{className:Se},o.createElement("div",{className:t()(`${X}-image`,U),style:D},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${X}-image-svg`},o.createElement("path",{d:ce,className:`${X}-image-path`})))))},O=ue=>{const{prefixCls:V,className:U,rootClassName:N,active:D,block:ee,size:se="default"}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=(0,n.Z)(ue,["prefixCls"]),We=t()(re,`${re}-element`,{[`${re}-active`]:D,[`${re}-block`]:ee},U,N,Se);return Ie(o.createElement("div",{className:We},o.createElement(l,Object.assign({prefixCls:`${re}-input`,size:se},he))))},k=e(60698),Y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},P=Y,Q=e(17202),fe=function(V,U){return o.createElement(Q.Z,(0,k.Z)({},V,{ref:U,icon:P}))},Ce=o.forwardRef(fe),Me=ue=>{const{prefixCls:V,className:U,rootClassName:N,style:D,active:ee,children:se}=ue,{getPrefixCls:X}=o.useContext(s.E_),re=X("skeleton",V),[Ie,Se]=$(re),he=t()(re,`${re}-element`,{[`${re}-active`]:ee},Se,U,N),We=se!=null?se:o.createElement(Ce,null);return Ie(o.createElement("div",{className:he},o.createElement("div",{className:t()(`${re}-image`,U),style:D},We)))},Ne=e(29140),Ve=ue=>{const V=X=>{const{width:re,rows:Ie=2}=ue;if(Array.isArray(re))return re[X];if(Ie-1===X)return re},{prefixCls:U,className:N,style:D,rows:ee}=ue,se=(0,Ne.Z)(Array(ee)).map((X,re)=>o.createElement("li",{key:re,style:{width:V(re)}}));return o.createElement("ul",{className:t()(U,N),style:D},se)},Mt=ue=>{let{prefixCls:V,className:U,width:N,style:D}=ue;return o.createElement("h3",{className:t()(V,U),style:Object.assign({width:N},D)})};function wt(ue){return ue&&typeof ue=="object"?ue:{}}function gt(ue,V){return ue&&!V?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Lt(ue,V){return!ue&&V?{width:"38%"}:ue&&V?{width:"50%"}:{}}function ke(ue,V){const U={};return(!ue||!V)&&(U.width="61%"),!ue&&V?U.rows=3:U.rows=2,U}const He=ue=>{const{prefixCls:V,loading:U,className:N,rootClassName:D,style:ee,children:se,avatar:X=!1,title:re=!0,paragraph:Ie=!0,active:Se,round:he}=ue,{getPrefixCls:We,direction:de,skeleton:le}=o.useContext(s.E_),ve=We("skeleton",V),[xe,Ze]=$(ve);if(U||!("loading"in ue)){const pe=!!X,Je=!!re,Ae=!!Ie;let oe;if(pe){const De=Object.assign(Object.assign({prefixCls:`${ve}-avatar`},gt(Je,Ae)),wt(X));oe=o.createElement("div",{className:`${ve}-header`},o.createElement(l,Object.assign({},De)))}let ye;if(Je||Ae){let De;if(Je){const we=Object.assign(Object.assign({prefixCls:`${ve}-title`},Lt(pe,Ae)),wt(re));De=o.createElement(Mt,Object.assign({},we))}let Pe;if(Ae){const we=Object.assign(Object.assign({prefixCls:`${ve}-paragraph`},ke(pe,Je)),wt(Ie));Pe=o.createElement(Ve,Object.assign({},we))}ye=o.createElement("div",{className:`${ve}-content`},De,Pe)}const Be=t()(ve,{[`${ve}-with-avatar`]:pe,[`${ve}-active`]:Se,[`${ve}-rtl`]:de==="rtl",[`${ve}-round`]:he},le==null?void 0:le.className,N,D,Ze);return xe(o.createElement("div",{className:Be,style:Object.assign(Object.assign({},le==null?void 0:le.style),ee)},oe,ye))}return typeof se!="undefined"?se:null};He.Button=ie,He.Avatar=K,He.Input=O,He.Image=W,He.Node=Me;var et=He,Fe=et},94706:function(M,b,e){"use strict";e.d(b,{Z:function(){return N}});var i=e(87608),t=e.n(i),o=e(37734),s=e(29140),n=e(28314),c=e(38790),l=e(58757),v=e(7637),h=e(60409),m=e(60698),C=e(47075),p=e(57370),S=e(29639),w=l.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0}),y=w;function Z(D,ee,se){return(D-ee)/(se-ee)}function F(D,ee,se,X){var re=Z(ee,se,X),Ie={};switch(D){case"rtl":Ie.right="".concat(re*100,"%"),Ie.transform="translateX(50%)";break;case"btt":Ie.bottom="".concat(re*100,"%"),Ie.transform="translateY(50%)";break;case"ttb":Ie.top="".concat(re*100,"%"),Ie.transform="translateY(-50%)";break;default:Ie.left="".concat(re*100,"%"),Ie.transform="translateX(-50%)";break}return Ie}function R(D,ee){return Array.isArray(D)?D[ee]:D}var T=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],z=l.forwardRef(function(D,ee){var se,X,re=D.prefixCls,Ie=D.value,Se=D.valueIndex,he=D.onStartMove,We=D.style,de=D.render,le=D.dragging,ve=D.onOffsetChange,xe=(0,C.Z)(D,T),Ze=l.useContext(y),pe=Ze.min,Je=Ze.max,Ae=Ze.direction,oe=Ze.disabled,ye=Ze.keyboard,Be=Ze.range,De=Ze.tabIndex,Pe=Ze.ariaLabelForHandle,we=Ze.ariaLabelledByForHandle,Le=Ze.ariaValueTextFormatterForHandle,Ye="".concat(re,"-handle"),Ue=function(Ot){oe||he(Ot,Se)},dt=function(Ot){if(!oe&&ye){var jt=null;switch(Ot.which||Ot.keyCode){case S.Z.LEFT:jt=Ae==="ltr"||Ae==="btt"?-1:1;break;case S.Z.RIGHT:jt=Ae==="ltr"||Ae==="btt"?1:-1;break;case S.Z.UP:jt=Ae!=="ttb"?1:-1;break;case S.Z.DOWN:jt=Ae!=="ttb"?-1:1;break;case S.Z.HOME:jt="min";break;case S.Z.END:jt="max";break;case S.Z.PAGE_UP:jt=2;break;case S.Z.PAGE_DOWN:jt=-2;break}jt!==null&&(Ot.preventDefault(),ve(jt,Se))}},bt=F(Ae,Ie,pe,Je),ft=l.createElement("div",(0,m.Z)({ref:ee,className:t()(Ye,(se={},(0,o.Z)(se,"".concat(Ye,"-").concat(Se+1),Be),(0,o.Z)(se,"".concat(Ye,"-dragging"),le),se)),style:(0,p.Z)((0,p.Z)({},bt),We),onMouseDown:Ue,onTouchStart:Ue,onKeyDown:dt,tabIndex:oe?null:R(De,Se),role:"slider","aria-valuemin":pe,"aria-valuemax":Je,"aria-valuenow":Ie,"aria-disabled":oe,"aria-label":R(Pe,Se),"aria-labelledby":R(we,Se),"aria-valuetext":(X=R(Le,Se))===null||X===void 0?void 0:X(Ie)},xe));return de&&(ft=de(ft,{index:Se,prefixCls:re,value:Ie,dragging:le})),ft}),A=z,L=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],I=l.forwardRef(function(D,ee){var se=D.prefixCls,X=D.style,re=D.onStartMove,Ie=D.onOffsetChange,Se=D.values,he=D.handleRender,We=D.draggingIndex,de=(0,C.Z)(D,L),le=l.useRef({});return l.useImperativeHandle(ee,function(){return{focus:function(xe){var Ze;(Ze=le.current[xe])===null||Ze===void 0||Ze.focus()}}}),l.createElement(l.Fragment,null,Se.map(function(ve,xe){return l.createElement(A,(0,m.Z)({ref:function(pe){pe?le.current[xe]=pe:delete le.current[xe]},dragging:We===xe,prefixCls:se,style:R(X,xe),key:xe,value:ve,valueIndex:xe,onStartMove:re,onOffsetChange:Ie,render:he},de))}))}),$=I;function B(D){var ee="touches"in D?D.touches[0]:D;return{pageX:ee.pageX,pageY:ee.pageY}}function K(D,ee,se,X,re,Ie,Se,he,We){var de=l.useState(null),le=(0,n.Z)(de,2),ve=le[0],xe=le[1],Ze=l.useState(-1),pe=(0,n.Z)(Ze,2),Je=pe[0],Ae=pe[1],oe=l.useState(se),ye=(0,n.Z)(oe,2),Be=ye[0],De=ye[1],Pe=l.useState(se),we=(0,n.Z)(Pe,2),Le=we[0],Ye=we[1],Ue=l.useRef(null),dt=l.useRef(null);l.useEffect(function(){Je===-1&&De(se)},[se,Je]),l.useEffect(function(){return function(){document.removeEventListener("mousemove",Ue.current),document.removeEventListener("mouseup",dt.current),document.removeEventListener("touchmove",Ue.current),document.removeEventListener("touchend",dt.current)}},[]);var bt=function(Xt,Bn){Be.some(function(fn,$n){return fn!==Xt[$n]})&&(Bn!==void 0&&xe(Bn),De(Xt),Se(Xt))},ft=function(Xt,Bn){if(Xt===-1){var fn=Le[0],$n=Le[Le.length-1],On=X-fn,Mn=re-$n,_e=Bn*(re-X);_e=Math.max(_e,On),_e=Math.min(_e,Mn);var at=Ie(fn+_e);_e=at-fn;var Vt=Le.map(function($t){return $t+_e});bt(Vt)}else{var an=(re-X)*Bn,st=(0,s.Z)(Be);st[Xt]=Le[Xt];var ut=We(st,an,Xt,"dist");bt(ut.values,ut.value)}},At=l.useRef(ft);At.current=ft;var Ot=function(Xt,Bn){Xt.stopPropagation();var fn=se[Bn];Ae(Bn),xe(fn),Ye(se);var $n=B(Xt),On=$n.pageX,Mn=$n.pageY,_e=function(an){an.preventDefault();var st=B(an),ut=st.pageX,$t=st.pageY,nt=ut-On,mt=$t-Mn,Dt=D.current.getBoundingClientRect(),Cn=Dt.width,en=Dt.height,Hn;switch(ee){case"btt":Hn=-mt/en;break;case"ttb":Hn=mt/en;break;case"rtl":Hn=-nt/Cn;break;default:Hn=nt/Cn}At.current(Bn,Hn)},at=function Vt(an){an.preventDefault(),document.removeEventListener("mouseup",Vt),document.removeEventListener("mousemove",_e),document.removeEventListener("touchend",Vt),document.removeEventListener("touchmove",_e),Ue.current=null,dt.current=null,Ae(-1),he()};document.addEventListener("mouseup",at),document.addEventListener("mousemove",_e),document.addEventListener("touchend",at),document.addEventListener("touchmove",_e),Ue.current=_e,dt.current=at},jt=l.useMemo(function(){var Gt=(0,s.Z)(se).sort(function(Bn,fn){return Bn-fn}),Xt=(0,s.Z)(Be).sort(function(Bn,fn){return Bn-fn});return Gt.every(function(Bn,fn){return Bn===Xt[fn]})?Be:se},[se,Be]);return[Je,ve,jt,Ot]}function H(D){var ee=D.prefixCls,se=D.style,X=D.start,re=D.end,Ie=D.index,Se=D.onStartMove,he=l.useContext(y),We=he.direction,de=he.min,le=he.max,ve=he.disabled,xe=he.range,Ze="".concat(ee,"-track"),pe=Z(X,de,le),Je=Z(re,de,le),Ae=function(Be){!ve&&Se&&Se(Be,-1)},oe={};switch(We){case"rtl":oe.right="".concat(pe*100,"%"),oe.width="".concat(Je*100-pe*100,"%");break;case"btt":oe.bottom="".concat(pe*100,"%"),oe.height="".concat(Je*100-pe*100,"%");break;case"ttb":oe.top="".concat(pe*100,"%"),oe.height="".concat(Je*100-pe*100,"%");break;default:oe.left="".concat(pe*100,"%"),oe.width="".concat(Je*100-pe*100,"%")}return l.createElement("div",{className:t()(Ze,xe&&"".concat(Ze,"-").concat(Ie+1)),style:(0,p.Z)((0,p.Z)({},oe),se),onMouseDown:Ae,onTouchStart:Ae})}function ie(D){var ee=D.prefixCls,se=D.style,X=D.values,re=D.startPoint,Ie=D.onStartMove,Se=l.useContext(y),he=Se.included,We=Se.range,de=Se.min,le=l.useMemo(function(){if(!We){if(X.length===0)return[];var ve=re!=null?re:de,xe=X[0];return[{start:Math.min(ve,xe),end:Math.max(ve,xe)}]}for(var Ze=[],pe=0;pe3&&arguments[3]!==void 0?arguments[3]:"unit";if(typeof Je=="number"){var ye,Be=pe[Ae],De=Be+Je,Pe=[];X.forEach(function(dt){Pe.push(dt.value)}),Pe.push(D,ee),Pe.push(he(Be));var we=Je>0?1:-1;oe==="unit"?Pe.push(he(Be+we*se)):Pe.push(he(De)),Pe=Pe.filter(function(dt){return dt!==null}).filter(function(dt){return Je<0?dt<=Be:dt>=Be}),oe==="unit"&&(Pe=Pe.filter(function(dt){return dt!==Be}));var Le=oe==="unit"?Be:De;ye=Pe[0];var Ye=Math.abs(ye-Le);if(Pe.forEach(function(dt){var bt=Math.abs(dt-Le);bt1){var Ue=(0,s.Z)(pe);return Ue[Ae]=ye,Ze(Ue,Je-we,Ae,oe)}return ye}else{if(Je==="min")return D;if(Je==="max")return ee}},le=function(pe,Je,Ae){var oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"unit",ye=pe[Ae],Be=de(pe,Je,Ae,oe);return{value:Be,changed:Be!==ye}},ve=function(pe){return Ie===null&&pe===0||typeof Ie=="number"&&pe3&&arguments[3]!==void 0?arguments[3]:"unit",ye=pe.map(We),Be=ye[Ae],De=de(ye,Je,Ae,oe);if(ye[Ae]=De,re===!1){var Pe=Ie||0;Ae>0&&ye[Ae-1]!==Be&&(ye[Ae]=Math.max(ye[Ae],ye[Ae-1]+Pe)),Ae0;Ue-=1)for(var dt=!0;ve(ye[Ue]-ye[Ue-1])&&dt;){var bt=le(ye,-1,Ue-1);ye[Ue-1]=bt.value,dt=bt.changed}for(var ft=ye.length-1;ft>0;ft-=1)for(var At=!0;ve(ye[ft]-ye[ft-1])&&At;){var Ot=le(ye,-1,ft-1);ye[ft-1]=Ot.value,At=Ot.changed}for(var jt=0;jt=0?Ot:!1},[Ot,Or]),mr=l.useMemo(function(){var ra=Object.keys(an||{});return ra.map(function(Xr){var Fr=an[Xr],xa={value:Number(Xr)};return Fr&&(0,c.Z)(Fr)==="object"&&!l.isValidElement(Fr)&&("label"in Fr||"style"in Fr)?(xa.style=Fr.style,xa.label=Fr.label):xa.label=Fr,xa}).filter(function(Xr){var Fr=Xr.label;return Fr||typeof Fr=="number"}).sort(function(Xr,Fr){return Xr.value-Fr.value})},[an]),qr=O(pr,gr,Or,mr,ft,ar),Pr=(0,n.Z)(qr,2),Vn=Pr[0],zt=Pr[1],Ft=(0,h.Z)(Pe,{value:De}),sn=(0,n.Z)(Ft,2),tn=sn[0],kt=sn[1],hn=l.useMemo(function(){var ra=tn==null?[]:Array.isArray(tn)?tn:[tn],Xr=(0,n.Z)(ra,1),Fr=Xr[0],xa=Fr===void 0?pr:Fr,la=tn===null?[]:[xa];if(we){if(la=(0,s.Z)(ra),Le||tn===void 0){var Tn=Le>=0?Le+1:2;for(la=la.slice(0,Tn);la.length=0&&en.current.focus(ra)}_t(null)},[Nt]);var yn=l.useMemo(function(){return jt&&Or===null?!1:jt},[jt,Or]),kn=function(){dt==null||dt(Fn(dn.current))},hr=K(Hn,Rn,hn,pr,gr,Vn,tr,kn,zt),cr=(0,n.Z)(hr,4),Dn=cr[0],Rr=cr[1],or=cr[2],Gr=cr[3],Ir=function(Xr,Fr){Gr(Xr,Fr),Ue==null||Ue(Fn(dn.current))},Pn=Dn!==-1;l.useEffect(function(){if(!Pn){var ra=hn.lastIndexOf(Rr);en.current.focus(ra)}},[Pn]);var vn=l.useMemo(function(){return(0,s.Z)(or).sort(function(ra,Xr){return ra-Xr})},[or]),Nn=l.useMemo(function(){return we?[vn[0],vn[vn.length-1]]:[pr,vn[0]]},[vn,we,pr]),Zn=(0,n.Z)(Nn,2),yr=Zn[0],$r=Zn[1];l.useImperativeHandle(ee,function(){return{focus:function(){en.current.focus(0)},blur:function(){var Xr=document,Fr=Xr.activeElement;Hn.current.contains(Fr)&&(Fr==null||Fr.blur())}}}),l.useEffect(function(){ve&&en.current.focus(0)},[]);var Kr=l.useMemo(function(){return{min:pr,max:gr,direction:Rn,disabled:We,keyboard:le,step:Or,included:fn,includedStart:yr,includedEnd:$r,range:we,tabIndex:nt,ariaLabelForHandle:mt,ariaLabelledByForHandle:Dt,ariaValueTextFormatterForHandle:Cn}},[pr,gr,Rn,We,le,Or,fn,yr,$r,we,nt,mt,Dt,Cn]);return l.createElement(y.Provider,{value:Kr},l.createElement("div",{ref:Hn,className:t()(re,Ie,(se={},(0,o.Z)(se,"".concat(re,"-disabled"),We),(0,o.Z)(se,"".concat(re,"-vertical"),Xt),(0,o.Z)(se,"".concat(re,"-horizontal"),!Xt),(0,o.Z)(se,"".concat(re,"-with-marks"),mr.length),se)),style:Se,onMouseDown:lt},l.createElement("div",{className:"".concat(re,"-rail"),style:_e}),l.createElement(ie,{prefixCls:re,style:On,values:vn,startPoint:$n,onStartMove:yn?Ir:null}),l.createElement(G,{prefixCls:re,marks:mr,dots:st,style:at,activeStyle:Vt}),l.createElement($,{ref:en,prefixCls:re,style:Mn,values:or,draggingIndex:Dn,onStartMove:Ir,onOffsetChange:Wt,onFocus:xe,onBlur:Ze,handleRender:ut}),l.createElement(te,{prefixCls:re,marks:mr,onClick:ct})))}),P=Y,Q=P,fe=e(61836),Ce=e(92428),ge=e(61834),Me=e(21319),Ne=e(74820),Ve=l.forwardRef((D,ee)=>{const{open:se}=D,X=(0,l.useRef)(null),re=(0,l.useRef)(null);function Ie(){ge.Z.cancel(re.current),re.current=null}function Se(){re.current=(0,ge.Z)(()=>{var he;(he=X.current)===null||he===void 0||he.forceAlign(),re.current=null})}return l.useEffect(()=>(se?Se():Ie(),Ie),[se,D.title]),l.createElement(Ne.Z,Object.assign({ref:(0,Me.sQ)(X,ee)},D))}),qe=e(66671),Mt=e(78330),wt=e(52628),gt=e(22151);const Lt=D=>{const{componentCls:ee,antCls:se,controlSize:X,dotSize:re,marginFull:Ie,marginPart:Se,colorFillContentHover:he}=D;return{[ee]:Object.assign(Object.assign({},(0,Mt.Wf)(D)),{position:"relative",height:X,margin:`${Se}px ${Ie}px`,padding:0,cursor:"pointer",touchAction:"none",["&-vertical"]:{margin:`${Ie}px ${Se}px`},[`${ee}-rail`]:{position:"absolute",backgroundColor:D.railBg,borderRadius:D.borderRadiusXS,transition:`background-color ${D.motionDurationMid}`},[`${ee}-track`]:{position:"absolute",backgroundColor:D.trackBg,borderRadius:D.borderRadiusXS,transition:`background-color ${D.motionDurationMid}`},"&:hover":{[`${ee}-rail`]:{backgroundColor:D.railHoverBg},[`${ee}-track`]:{backgroundColor:D.trackHoverBg},[`${ee}-dot`]:{borderColor:he},[`${ee}-handle::after`]:{boxShadow:`0 0 0 ${D.handleLineWidth}px ${D.colorPrimaryBorderHover}`},[`${ee}-dot-active`]:{borderColor:D.dotActiveBorderColor}},[`${ee}-handle`]:{position:"absolute",width:D.handleSize,height:D.handleSize,outline:"none",[`${ee}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-D.handleLineWidth,insetBlockStart:-D.handleLineWidth,width:D.handleSize+D.handleLineWidth*2,height:D.handleSize+D.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:D.handleSize,height:D.handleSize,backgroundColor:D.colorBgElevated,boxShadow:`0 0 0 ${D.handleLineWidth}px ${D.handleColor}`,borderRadius:"50%",cursor:"pointer",transition:` inset-inline-start ${D.motionDurationMid}, inset-block-start ${D.motionDurationMid}, width ${D.motionDurationMid}, @@ -334,7 +334,7 @@ http://j.mp/37Fkd5Q `]:{backgroundColor:D.colorBgElevated,borderColor:D.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${ee}-handle::after`]:{backgroundColor:D.colorBgElevated,cursor:"not-allowed",width:D.handleSize,height:D.handleSize,boxShadow:`0 0 0 ${D.handleLineWidth}px ${new qe.C(D.colorTextDisabled).onBackground(D.colorBgContainer).toHexShortString()}`,insetInlineStart:0,insetBlockStart:0},[` ${ee}-mark-text, ${ee}-dot - `]:{cursor:"not-allowed !important"}},[`&-tooltip ${se}-tooltip-inner`]:{minWidth:"unset"}})}},ke=(D,ee)=>{const{componentCls:se,railSize:X,handleSize:re,dotSize:Ie}=D,Se=ee?"paddingBlock":"paddingInline",he=ee?"width":"height",We=ee?"height":"width",de=ee?"insetBlockStart":"insetInlineStart",le=ee?"top":"insetInlineStart";return{[Se]:X,[We]:X*3,[`${se}-rail`]:{[he]:"100%",[We]:X},[`${se}-track`]:{[We]:X},[`${se}-handle`]:{[de]:(X*3-re)/2},[`${se}-mark`]:{insetInlineStart:0,top:0,[le]:X*3+(ee?0:D.marginFull),[he]:"100%"},[`${se}-step`]:{insetInlineStart:0,top:0,[le]:X,[he]:"100%",[We]:X},[`${se}-dot`]:{position:"absolute",[de]:(X-Ie)/2}}},He=D=>{const{componentCls:ee,marginPartWithMark:se}=D;return{[`${ee}-horizontal`]:Object.assign(Object.assign({},ke(D,!0)),{[`&${ee}-with-marks`]:{marginBottom:se}})}},et=D=>{const{componentCls:ee}=D;return{[`${ee}-vertical`]:Object.assign(Object.assign({},ke(D,!1)),{height:"100%"})}};var Fe=(0,wt.Z)("Slider",D=>{const ee=(0,mt.TS)(D,{marginPart:(D.controlHeight-D.controlSize)/2,marginFull:D.controlSize/2,marginPartWithMark:D.controlHeightLG-D.controlSize});return[Nt(ee),He(ee),et(ee)]},D=>{const se=D.controlHeightLG/4,X=D.controlHeightSM/2,re=D.lineWidth+1,Ie=D.lineWidth+1*3;return{controlSize:se,railSize:4,handleSize:se,handleSizeHover:X,dotSize:8,handleLineWidth:re,handleLineWidthHover:Ie,railBg:D.colorFillTertiary,railHoverBg:D.colorFillSecondary,trackBg:D.colorPrimaryBorder,trackHoverBg:D.colorPrimaryBorderHover,handleColor:D.colorPrimaryBorder,handleActiveColor:D.colorPrimary,dotBorderColor:D.colorBorderSecondary,dotActiveBorderColor:D.colorPrimaryBorder,trackBgDisabled:D.colorBgContainerDisabled}}),ue=function(D,ee){var se={};for(var X in D)Object.prototype.hasOwnProperty.call(D,X)&&ee.indexOf(X)<0&&(se[X]=D[X]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,X=Object.getOwnPropertySymbols(D);retypeof D=="number"?D.toString():"";var N=l.forwardRef((D,ee)=>{const{prefixCls:se,range:X,className:re,rootClassName:Ie,style:Se,disabled:he,tooltipPrefixCls:We,tipFormatter:de,tooltipVisible:le,getTooltipPopupContainer:ve,tooltipPlacement:xe}=D,Ze=ue(D,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:pe,slider:Je,getPrefixCls:Ae,getPopupContainer:oe}=l.useContext(fe.E_),ye=l.useContext(Ce.Z),Be=he!=null?he:ye,[De,Pe]=l.useState({}),we=(Gt,Xt)=>{Pe(zn=>Object.assign(Object.assign({},zn),{[Gt]:Xt}))},Le=(Gt,Xt)=>Gt||(Xt?pe==="rtl"?"left":"right":"top"),Ye=Ae("slider",se),[Ue,dt]=Fe(Ye),bt=t()(re,Je==null?void 0:Je.className,Ie,{[`${Ye}-rtl`]:pe==="rtl"},dt);pe==="rtl"&&!Ze.vertical&&(Ze.reverse=!Ze.reverse);const[ft,At]=l.useMemo(()=>X?typeof X=="object"?[!0,X.draggableTrack]:[!0,!1]:[!1],[X]),Ot=(Gt,Xt)=>{var zn;const{index:fn,dragging:Bn}=Xt,{tooltip:On={},vertical:Mn}=D,_e=Object.assign({},On),{open:at,placement:Vt,getPopupContainer:rn,prefixCls:st,formatter:ut}=_e;let $t;ut||ut===null?$t=ut:de||de===null?$t=de:$t=V;const nt=$t?De[fn]||Bn:!1,gt=(zn=at!=null?at:le)!==null&&zn!==void 0?zn:at===void 0&&nt,Dt=Object.assign(Object.assign({},Gt.props),{onMouseEnter:()=>we(fn,!0),onMouseLeave:()=>we(fn,!1)}),xn=Ae("tooltip",st!=null?st:We);return l.createElement(Ve,Object.assign({},_e,{prefixCls:xn,title:$t?$t(Xt.value):"",open:gt,placement:Le(Vt!=null?Vt:xe,Mn),key:fn,overlayClassName:`${Ye}-tooltip`,getPopupContainer:rn||ve||oe}),l.cloneElement(Gt,Dt))},jt=Object.assign(Object.assign({},Je==null?void 0:Je.style),Se);return Ue(l.createElement(Q,Object.assign({},Ze,{step:Ze.step,range:ft,draggableTrack:At,className:bt,style:jt,disabled:Be,ref:ee,prefixCls:Ye,handleRender:Ot})))})},43528:function(M,b,e){"use strict";e.d(b,{BR:function(){return C},ri:function(){return m}});var i=e(87608),t=e.n(i),o=e(42156),s=e(58757),n=e(61836),c=e(58785),l=e(21724),v=function(w,y){var Z={};for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&y.indexOf(F)<0&&(Z[F]=w[F]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(w);R{const Z=s.useContext(h),F=s.useMemo(()=>{if(!Z)return"";const{compactDirection:R,isFirstItem:T,isLastItem:z}=Z,A=R==="vertical"?"-vertical-":"-";return t()(`${w}-compact${A}item`,{[`${w}-compact${A}first-item`]:T,[`${w}-compact${A}last-item`]:z,[`${w}-compact${A}item-rtl`]:y==="rtl"})},[w,y,Z]);return{compactSize:Z==null?void 0:Z.compactSize,compactDirection:Z==null?void 0:Z.compactDirection,compactItemClassnames:F}},C=w=>{let{children:y}=w;return s.createElement(h.Provider,{value:null},y)},p=w=>{var{children:y}=w,Z=v(w,["children"]);return s.createElement(h.Provider,{value:Z},y)},S=w=>{const{getPrefixCls:y,direction:Z}=s.useContext(n.E_),{size:F,direction:R,block:T,prefixCls:z,className:A,rootClassName:L,children:I}=w,$=v(w,["size","direction","block","prefixCls","className","rootClassName","children"]),B=(0,c.Z)(O=>F!=null?F:O),K=y("space-compact",z),[H,ie]=(0,l.Z)(K),ce=t()(K,ie,{[`${K}-rtl`]:Z==="rtl",[`${K}-block`]:T,[`${K}-vertical`]:R==="vertical"},A,L),te=s.useContext(h),W=(0,o.Z)(I),G=s.useMemo(()=>W.map((O,k)=>{const Y=O&&O.key||`${K}-item-${k}`;return s.createElement(p,{key:Y,compactSize:B,compactDirection:R,isFirstItem:k===0&&(!te||(te==null?void 0:te.isFirstItem)),isLastItem:k===W.length-1&&(!te||(te==null?void 0:te.isLastItem))},O)}),[F,W,te]);return W.length===0?null:H(s.createElement("div",Object.assign({className:ce},$),G))};b.ZP=S},57414:function(M,b,e){"use strict";e.d(b,{Z:function(){return R}});var i=e(87608),t=e.n(i),o=e(42156),s=e(58757),n=e(69387),c=e(61836),l=e(43528);const v=s.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),h=v.Provider;var C=T=>{let{className:z,direction:A,index:L,marginDirection:I,children:$,split:B,wrap:K,style:H}=T;const{horizontalSize:ie,verticalSize:ce,latestIndex:te,supportFlexGap:W}=s.useContext(v);let G={};return W||(A==="vertical"?L{var A,L;const{getPrefixCls:I,space:$,direction:B}=s.useContext(c.E_),{size:K=($==null?void 0:$.size)||"small",align:H,className:ie,rootClassName:ce,children:te,direction:W="horizontal",prefixCls:G,split:O,style:k,wrap:Y=!1,classNames:P,styles:Q}=T,fe=S(T,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),Ce=(0,n.Z)(),[ge,Me]=s.useMemo(()=>(Array.isArray(K)?K:[K,K]).map(ue=>y(ue)),[K]),Re=(0,o.Z)(te,{keepEmpty:!0}),Qe=H===void 0&&W==="horizontal"?"center":H,Ve=I("space",G),[qe,Mt]=(0,p.Z)(Ve),wt=t()(Ve,$==null?void 0:$.className,Mt,`${Ve}-${W}`,{[`${Ve}-rtl`]:B==="rtl",[`${Ve}-align-${Qe}`]:Qe},ie,ce),mt=t()(`${Ve}-item`,(A=P==null?void 0:P.item)!==null&&A!==void 0?A:(L=$==null?void 0:$.classNames)===null||L===void 0?void 0:L.item),Nt=B==="rtl"?"marginLeft":"marginRight";let ke=0;const He=Re.map((ue,V)=>{var U,N;ue!=null&&(ke=V);const D=ue&&ue.key||`${mt}-${V}`;return s.createElement(C,{className:mt,key:D,direction:W,index:V,marginDirection:Nt,split:O,wrap:Y,style:(U=Q==null?void 0:Q.item)!==null&&U!==void 0?U:(N=$==null?void 0:$.styles)===null||N===void 0?void 0:N.item},ue)}),et=s.useMemo(()=>({horizontalSize:ge,verticalSize:Me,latestIndex:ke,supportFlexGap:Ce}),[ge,Me,ke,Ce]);if(Re.length===0)return null;const Fe={};return Y&&(Fe.flexWrap="wrap",Ce||(Fe.marginBottom=-Me)),Ce&&(Fe.columnGap=ge,Fe.rowGap=Me),qe(s.createElement("div",Object.assign({ref:z,className:wt,style:Object.assign(Object.assign(Object.assign({},Fe),$==null?void 0:$.style),k)},fe),s.createElement(h,{value:et},He)))});F.Compact=l.ZP;var R=F},21724:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(52628),o=c=>{const{componentCls:l}=c;return{[l]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const s=c=>{const{componentCls:l}=c;return{[l]:{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"}},[`${l}-item:empty`]:{display:"none"}}}};var n=(0,i.Z)("Space",c=>[s(c),o(c)],()=>({}),{resetStyle:!1})},79233:function(M,b,e){"use strict";e.d(b,{Z:function(){return I}});var i=e(87608),t=e.n(i),o=e(98186),s=e(58757),n=e(70989),c=e(37047),l=e(61836),v=e(57793),h=e(78330),m=e(52628),C=e(22151);const p=new v.E4("antSpinMove",{to:{opacity:1}}),S=new v.E4("antRotate",{to:{transform:"rotate(405deg)"}}),w=$=>({[`${$.componentCls}`]:Object.assign(Object.assign({},(0,h.Wf)($)),{position:"absolute",display:"none",color:$.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${$.motionDurationSlow} ${$.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${$.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:$.contentHeight,[`${$.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-$.spinDotSize/2},[`${$.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:($.spinDotSize-$.fontSize)/2+2,textShadow:`0 1px 2px ${$.colorBgContainer}`,fontSize:$.fontSize},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSize/2)-10},"&-sm":{[`${$.componentCls}-dot`]:{margin:-$.spinDotSizeSM/2},[`${$.componentCls}-text`]:{paddingTop:($.spinDotSizeSM-$.fontSize)/2+2},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSizeSM/2)-10}},"&-lg":{[`${$.componentCls}-dot`]:{margin:-($.spinDotSizeLG/2)},[`${$.componentCls}-text`]:{paddingTop:($.spinDotSizeLG-$.fontSize)/2+2},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSizeLG/2)-10}}},[`${$.componentCls}-container`]:{position:"relative",transition:`opacity ${$.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:$.colorBgContainer,opacity:0,transition:`all ${$.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${$.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:$.spinDotDefault},[`${$.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:$.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:($.spinDotSize-$.marginXXS/2)/2,height:($.spinDotSize-$.marginXXS/2)/2,backgroundColor:$.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:p,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:S,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${$.componentCls}-dot`]:{fontSize:$.spinDotSizeSM,i:{width:($.spinDotSizeSM-$.marginXXS/2)/2,height:($.spinDotSizeSM-$.marginXXS/2)/2}},[`&-lg ${$.componentCls}-dot`]:{fontSize:$.spinDotSizeLG,i:{width:($.spinDotSizeLG-$.marginXXS)/2,height:($.spinDotSizeLG-$.marginXXS)/2}},[`&${$.componentCls}-show-text ${$.componentCls}-text`]:{display:"block"}})});var y=(0,m.Z)("Spin",$=>{const B=(0,C.TS)($,{spinDotDefault:$.colorTextDescription,spinDotSize:$.controlHeightLG/2,spinDotSizeSM:$.controlHeightLG*.35,spinDotSizeLG:$.controlHeight});return[w(B)]},{contentHeight:400}),Z=function($,B){var K={};for(var H in $)Object.prototype.hasOwnProperty.call($,H)&&B.indexOf(H)<0&&(K[H]=$[H]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,H=Object.getOwnPropertySymbols($);ie{const{spinPrefixCls:B,spinning:K=!0,delay:H=0,className:ie,rootClassName:ce,size:te="default",tip:W,wrapperClassName:G,style:O,children:k,hashId:Y}=$,P=Z($,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[Q,fe]=s.useState(()=>K&&!z(K,H));s.useEffect(()=>{if(K){const wt=(0,n.D)(H,()=>{fe(!0)});return wt(),()=>{var mt;(mt=wt==null?void 0:wt.cancel)===null||mt===void 0||mt.call(wt)}}fe(!1)},[H,K]);const Ce=s.useMemo(()=>typeof k!="undefined",[k]),{direction:ge,spin:Me}=s.useContext(l.E_),Re=t()(B,Me==null?void 0:Me.className,{[`${B}-sm`]:te==="small",[`${B}-lg`]:te==="large",[`${B}-spinning`]:Q,[`${B}-show-text`]:!!W,[`${B}-rtl`]:ge==="rtl"},ie,ce,Y),Qe=t()(`${B}-container`,{[`${B}-blur`]:Q}),Ve=(0,o.Z)(P,["indicator","prefixCls"]),qe=Object.assign(Object.assign({},Me==null?void 0:Me.style),O),Mt=s.createElement("div",Object.assign({},Ve,{style:qe,className:Re,"aria-live":"polite","aria-busy":Q}),T(B,$),W&&Ce?s.createElement("div",{className:`${B}-text`},W):null);return Ce?s.createElement("div",Object.assign({},Ve,{className:t()(`${B}-nested-loading`,G,Y)}),Q&&s.createElement("div",{key:"loading"},Mt),s.createElement("div",{className:Qe,key:"container"},k)):Mt},L=$=>{const{prefixCls:B}=$,{getPrefixCls:K}=s.useContext(l.E_),H=K("spin",B),[ie,ce]=y(H),te=Object.assign(Object.assign({},$),{spinPrefixCls:H,hashId:ce});return ie(s.createElement(A,Object.assign({},te)))};L.setDefaultIndicator=$=>{R=$};var I=L},64493:function(M,b,e){"use strict";e.d(b,{c:function(){return o}});function i(s,n,c){const{focusElCls:l,focus:v,borderElCls:h}=c,m=h?"> *":"",C=["hover",v?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${m}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:-s.lineWidth},"&-item":Object.assign(Object.assign({[C]:{zIndex:2}},l?{[`&${l}`]:{zIndex:2}}:{}),{[`&[disabled] ${m}`]:{zIndex:0}})}}function t(s,n,c){const{borderElCls:l}=c,v=l?`> ${l}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${v}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${v}, &${s}-sm ${v}, &${s}-lg ${v}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${v}, &${s}-sm ${v}, &${s}-lg ${v}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:c}=s,l=`${c}-compact`;return{[l]:Object.assign(Object.assign({},i(s,l,n)),t(c,l,n))}}},78330:function(M,b,e){"use strict";e.d(b,{Lx:function(){return n},Qy:function(){return v},Ro:function(){return o},Wf:function(){return t},dF:function(){return s},du:function(){return c},oN:function(){return l},vS:function(){return i}});const i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},t=h=>({boxSizing:"border-box",margin:0,padding:0,color:h.colorText,fontSize:h.fontSize,lineHeight:h.lineHeight,listStyle:"none",fontFamily:h.fontFamily}),o=()=>({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"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n=h=>({a:{color:h.colorLink,textDecoration:h.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${h.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:h.colorLinkHover},"&:active":{color:h.colorLinkActive},[`&:active, + `]:{cursor:"not-allowed !important"}},[`&-tooltip ${se}-tooltip-inner`]:{minWidth:"unset"}})}},ke=(D,ee)=>{const{componentCls:se,railSize:X,handleSize:re,dotSize:Ie}=D,Se=ee?"paddingBlock":"paddingInline",he=ee?"width":"height",We=ee?"height":"width",de=ee?"insetBlockStart":"insetInlineStart",le=ee?"top":"insetInlineStart";return{[Se]:X,[We]:X*3,[`${se}-rail`]:{[he]:"100%",[We]:X},[`${se}-track`]:{[We]:X},[`${se}-handle`]:{[de]:(X*3-re)/2},[`${se}-mark`]:{insetInlineStart:0,top:0,[le]:X*3+(ee?0:D.marginFull),[he]:"100%"},[`${se}-step`]:{insetInlineStart:0,top:0,[le]:X,[he]:"100%",[We]:X},[`${se}-dot`]:{position:"absolute",[de]:(X-Ie)/2}}},He=D=>{const{componentCls:ee,marginPartWithMark:se}=D;return{[`${ee}-horizontal`]:Object.assign(Object.assign({},ke(D,!0)),{[`&${ee}-with-marks`]:{marginBottom:se}})}},et=D=>{const{componentCls:ee}=D;return{[`${ee}-vertical`]:Object.assign(Object.assign({},ke(D,!1)),{height:"100%"})}};var Fe=(0,wt.Z)("Slider",D=>{const ee=(0,gt.TS)(D,{marginPart:(D.controlHeight-D.controlSize)/2,marginFull:D.controlSize/2,marginPartWithMark:D.controlHeightLG-D.controlSize});return[Lt(ee),He(ee),et(ee)]},D=>{const se=D.controlHeightLG/4,X=D.controlHeightSM/2,re=D.lineWidth+1,Ie=D.lineWidth+1*3;return{controlSize:se,railSize:4,handleSize:se,handleSizeHover:X,dotSize:8,handleLineWidth:re,handleLineWidthHover:Ie,railBg:D.colorFillTertiary,railHoverBg:D.colorFillSecondary,trackBg:D.colorPrimaryBorder,trackHoverBg:D.colorPrimaryBorderHover,handleColor:D.colorPrimaryBorder,handleActiveColor:D.colorPrimary,dotBorderColor:D.colorBorderSecondary,dotActiveBorderColor:D.colorPrimaryBorder,trackBgDisabled:D.colorBgContainerDisabled}}),ue=function(D,ee){var se={};for(var X in D)Object.prototype.hasOwnProperty.call(D,X)&&ee.indexOf(X)<0&&(se[X]=D[X]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,X=Object.getOwnPropertySymbols(D);retypeof D=="number"?D.toString():"";var N=l.forwardRef((D,ee)=>{const{prefixCls:se,range:X,className:re,rootClassName:Ie,style:Se,disabled:he,tooltipPrefixCls:We,tipFormatter:de,tooltipVisible:le,getTooltipPopupContainer:ve,tooltipPlacement:xe}=D,Ze=ue(D,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement"]),{direction:pe,slider:Je,getPrefixCls:Ae,getPopupContainer:oe}=l.useContext(fe.E_),ye=l.useContext(Ce.Z),Be=he!=null?he:ye,[De,Pe]=l.useState({}),we=(Gt,Xt)=>{Pe(Bn=>Object.assign(Object.assign({},Bn),{[Gt]:Xt}))},Le=(Gt,Xt)=>Gt||(Xt?pe==="rtl"?"left":"right":"top"),Ye=Ae("slider",se),[Ue,dt]=Fe(Ye),bt=t()(re,Je==null?void 0:Je.className,Ie,{[`${Ye}-rtl`]:pe==="rtl"},dt);pe==="rtl"&&!Ze.vertical&&(Ze.reverse=!Ze.reverse);const[ft,At]=l.useMemo(()=>X?typeof X=="object"?[!0,X.draggableTrack]:[!0,!1]:[!1],[X]),Ot=(Gt,Xt)=>{var Bn;const{index:fn,dragging:$n}=Xt,{tooltip:On={},vertical:Mn}=D,_e=Object.assign({},On),{open:at,placement:Vt,getPopupContainer:an,prefixCls:st,formatter:ut}=_e;let $t;ut||ut===null?$t=ut:de||de===null?$t=de:$t=V;const nt=$t?De[fn]||$n:!1,mt=(Bn=at!=null?at:le)!==null&&Bn!==void 0?Bn:at===void 0&&nt,Dt=Object.assign(Object.assign({},Gt.props),{onMouseEnter:()=>we(fn,!0),onMouseLeave:()=>we(fn,!1)}),Cn=Ae("tooltip",st!=null?st:We);return l.createElement(Ve,Object.assign({},_e,{prefixCls:Cn,title:$t?$t(Xt.value):"",open:mt,placement:Le(Vt!=null?Vt:xe,Mn),key:fn,overlayClassName:`${Ye}-tooltip`,getPopupContainer:an||ve||oe}),l.cloneElement(Gt,Dt))},jt=Object.assign(Object.assign({},Je==null?void 0:Je.style),Se);return Ue(l.createElement(Q,Object.assign({},Ze,{step:Ze.step,range:ft,draggableTrack:At,className:bt,style:jt,disabled:Be,ref:ee,prefixCls:Ye,handleRender:Ot})))})},43528:function(M,b,e){"use strict";e.d(b,{BR:function(){return C},ri:function(){return m}});var i=e(87608),t=e.n(i),o=e(42156),s=e(58757),n=e(61836),c=e(58785),l=e(21724),v=function(w,y){var Z={};for(var F in w)Object.prototype.hasOwnProperty.call(w,F)&&y.indexOf(F)<0&&(Z[F]=w[F]);if(w!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(w);R{const Z=s.useContext(h),F=s.useMemo(()=>{if(!Z)return"";const{compactDirection:R,isFirstItem:T,isLastItem:z}=Z,A=R==="vertical"?"-vertical-":"-";return t()(`${w}-compact${A}item`,{[`${w}-compact${A}first-item`]:T,[`${w}-compact${A}last-item`]:z,[`${w}-compact${A}item-rtl`]:y==="rtl"})},[w,y,Z]);return{compactSize:Z==null?void 0:Z.compactSize,compactDirection:Z==null?void 0:Z.compactDirection,compactItemClassnames:F}},C=w=>{let{children:y}=w;return s.createElement(h.Provider,{value:null},y)},p=w=>{var{children:y}=w,Z=v(w,["children"]);return s.createElement(h.Provider,{value:Z},y)},S=w=>{const{getPrefixCls:y,direction:Z}=s.useContext(n.E_),{size:F,direction:R,block:T,prefixCls:z,className:A,rootClassName:L,children:I}=w,$=v(w,["size","direction","block","prefixCls","className","rootClassName","children"]),B=(0,c.Z)(O=>F!=null?F:O),K=y("space-compact",z),[H,ie]=(0,l.Z)(K),ce=t()(K,ie,{[`${K}-rtl`]:Z==="rtl",[`${K}-block`]:T,[`${K}-vertical`]:R==="vertical"},A,L),te=s.useContext(h),W=(0,o.Z)(I),G=s.useMemo(()=>W.map((O,k)=>{const Y=O&&O.key||`${K}-item-${k}`;return s.createElement(p,{key:Y,compactSize:B,compactDirection:R,isFirstItem:k===0&&(!te||(te==null?void 0:te.isFirstItem)),isLastItem:k===W.length-1&&(!te||(te==null?void 0:te.isLastItem))},O)}),[F,W,te]);return W.length===0?null:H(s.createElement("div",Object.assign({className:ce},$),G))};b.ZP=S},57414:function(M,b,e){"use strict";e.d(b,{Z:function(){return R}});var i=e(87608),t=e.n(i),o=e(42156),s=e(58757),n=e(69387),c=e(61836),l=e(43528);const v=s.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),h=v.Provider;var C=T=>{let{className:z,direction:A,index:L,marginDirection:I,children:$,split:B,wrap:K,style:H}=T;const{horizontalSize:ie,verticalSize:ce,latestIndex:te,supportFlexGap:W}=s.useContext(v);let G={};return W||(A==="vertical"?L{var A,L;const{getPrefixCls:I,space:$,direction:B}=s.useContext(c.E_),{size:K=($==null?void 0:$.size)||"small",align:H,className:ie,rootClassName:ce,children:te,direction:W="horizontal",prefixCls:G,split:O,style:k,wrap:Y=!1,classNames:P,styles:Q}=T,fe=S(T,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),Ce=(0,n.Z)(),[ge,Me]=s.useMemo(()=>(Array.isArray(K)?K:[K,K]).map(ue=>y(ue)),[K]),Ne=(0,o.Z)(te,{keepEmpty:!0}),Qe=H===void 0&&W==="horizontal"?"center":H,Ve=I("space",G),[qe,Mt]=(0,p.Z)(Ve),wt=t()(Ve,$==null?void 0:$.className,Mt,`${Ve}-${W}`,{[`${Ve}-rtl`]:B==="rtl",[`${Ve}-align-${Qe}`]:Qe},ie,ce),gt=t()(`${Ve}-item`,(A=P==null?void 0:P.item)!==null&&A!==void 0?A:(L=$==null?void 0:$.classNames)===null||L===void 0?void 0:L.item),Lt=B==="rtl"?"marginLeft":"marginRight";let ke=0;const He=Ne.map((ue,V)=>{var U,N;ue!=null&&(ke=V);const D=ue&&ue.key||`${gt}-${V}`;return s.createElement(C,{className:gt,key:D,direction:W,index:V,marginDirection:Lt,split:O,wrap:Y,style:(U=Q==null?void 0:Q.item)!==null&&U!==void 0?U:(N=$==null?void 0:$.styles)===null||N===void 0?void 0:N.item},ue)}),et=s.useMemo(()=>({horizontalSize:ge,verticalSize:Me,latestIndex:ke,supportFlexGap:Ce}),[ge,Me,ke,Ce]);if(Ne.length===0)return null;const Fe={};return Y&&(Fe.flexWrap="wrap",Ce||(Fe.marginBottom=-Me)),Ce&&(Fe.columnGap=ge,Fe.rowGap=Me),qe(s.createElement("div",Object.assign({ref:z,className:wt,style:Object.assign(Object.assign(Object.assign({},Fe),$==null?void 0:$.style),k)},fe),s.createElement(h,{value:et},He)))});F.Compact=l.ZP;var R=F},21724:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(52628),o=c=>{const{componentCls:l}=c;return{[l]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}};const s=c=>{const{componentCls:l}=c;return{[l]:{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"}},[`${l}-item:empty`]:{display:"none"}}}};var n=(0,i.Z)("Space",c=>[s(c),o(c)],()=>({}),{resetStyle:!1})},79233:function(M,b,e){"use strict";e.d(b,{Z:function(){return I}});var i=e(87608),t=e.n(i),o=e(98186),s=e(58757),n=e(70989),c=e(37047),l=e(61836),v=e(57793),h=e(78330),m=e(52628),C=e(22151);const p=new v.E4("antSpinMove",{to:{opacity:1}}),S=new v.E4("antRotate",{to:{transform:"rotate(405deg)"}}),w=$=>({[`${$.componentCls}`]:Object.assign(Object.assign({},(0,h.Wf)($)),{position:"absolute",display:"none",color:$.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${$.motionDurationSlow} ${$.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${$.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:$.contentHeight,[`${$.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-$.spinDotSize/2},[`${$.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:($.spinDotSize-$.fontSize)/2+2,textShadow:`0 1px 2px ${$.colorBgContainer}`,fontSize:$.fontSize},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSize/2)-10},"&-sm":{[`${$.componentCls}-dot`]:{margin:-$.spinDotSizeSM/2},[`${$.componentCls}-text`]:{paddingTop:($.spinDotSizeSM-$.fontSize)/2+2},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSizeSM/2)-10}},"&-lg":{[`${$.componentCls}-dot`]:{margin:-($.spinDotSizeLG/2)},[`${$.componentCls}-text`]:{paddingTop:($.spinDotSizeLG-$.fontSize)/2+2},[`&${$.componentCls}-show-text ${$.componentCls}-dot`]:{marginTop:-($.spinDotSizeLG/2)-10}}},[`${$.componentCls}-container`]:{position:"relative",transition:`opacity ${$.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:$.colorBgContainer,opacity:0,transition:`all ${$.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${$.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none",["&::after"]:{opacity:.4,pointerEvents:"auto"}}},["&-tip"]:{color:$.spinDotDefault},[`${$.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:$.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:($.spinDotSize-$.marginXXS/2)/2,height:($.spinDotSize-$.marginXXS/2)/2,backgroundColor:$.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:p,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&: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:S,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${$.componentCls}-dot`]:{fontSize:$.spinDotSizeSM,i:{width:($.spinDotSizeSM-$.marginXXS/2)/2,height:($.spinDotSizeSM-$.marginXXS/2)/2}},[`&-lg ${$.componentCls}-dot`]:{fontSize:$.spinDotSizeLG,i:{width:($.spinDotSizeLG-$.marginXXS)/2,height:($.spinDotSizeLG-$.marginXXS)/2}},[`&${$.componentCls}-show-text ${$.componentCls}-text`]:{display:"block"}})});var y=(0,m.Z)("Spin",$=>{const B=(0,C.TS)($,{spinDotDefault:$.colorTextDescription,spinDotSize:$.controlHeightLG/2,spinDotSizeSM:$.controlHeightLG*.35,spinDotSizeLG:$.controlHeight});return[w(B)]},{contentHeight:400}),Z=function($,B){var K={};for(var H in $)Object.prototype.hasOwnProperty.call($,H)&&B.indexOf(H)<0&&(K[H]=$[H]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,H=Object.getOwnPropertySymbols($);ie{const{spinPrefixCls:B,spinning:K=!0,delay:H=0,className:ie,rootClassName:ce,size:te="default",tip:W,wrapperClassName:G,style:O,children:k,hashId:Y}=$,P=Z($,["spinPrefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","hashId"]),[Q,fe]=s.useState(()=>K&&!z(K,H));s.useEffect(()=>{if(K){const wt=(0,n.D)(H,()=>{fe(!0)});return wt(),()=>{var gt;(gt=wt==null?void 0:wt.cancel)===null||gt===void 0||gt.call(wt)}}fe(!1)},[H,K]);const Ce=s.useMemo(()=>typeof k!="undefined",[k]),{direction:ge,spin:Me}=s.useContext(l.E_),Ne=t()(B,Me==null?void 0:Me.className,{[`${B}-sm`]:te==="small",[`${B}-lg`]:te==="large",[`${B}-spinning`]:Q,[`${B}-show-text`]:!!W,[`${B}-rtl`]:ge==="rtl"},ie,ce,Y),Qe=t()(`${B}-container`,{[`${B}-blur`]:Q}),Ve=(0,o.Z)(P,["indicator","prefixCls"]),qe=Object.assign(Object.assign({},Me==null?void 0:Me.style),O),Mt=s.createElement("div",Object.assign({},Ve,{style:qe,className:Ne,"aria-live":"polite","aria-busy":Q}),T(B,$),W&&Ce?s.createElement("div",{className:`${B}-text`},W):null);return Ce?s.createElement("div",Object.assign({},Ve,{className:t()(`${B}-nested-loading`,G,Y)}),Q&&s.createElement("div",{key:"loading"},Mt),s.createElement("div",{className:Qe,key:"container"},k)):Mt},L=$=>{const{prefixCls:B}=$,{getPrefixCls:K}=s.useContext(l.E_),H=K("spin",B),[ie,ce]=y(H),te=Object.assign(Object.assign({},$),{spinPrefixCls:H,hashId:ce});return ie(s.createElement(A,Object.assign({},te)))};L.setDefaultIndicator=$=>{R=$};var I=L},64493:function(M,b,e){"use strict";e.d(b,{c:function(){return o}});function i(s,n,c){const{focusElCls:l,focus:v,borderElCls:h}=c,m=h?"> *":"",C=["hover",v?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${m}`).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:-s.lineWidth},"&-item":Object.assign(Object.assign({[C]:{zIndex:2}},l?{[`&${l}`]:{zIndex:2}}:{}),{[`&[disabled] ${m}`]:{zIndex:0}})}}function t(s,n,c){const{borderElCls:l}=c,v=l?`> ${l}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${v}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${v}, &${s}-sm ${v}, &${s}-lg ${v}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${v}, &${s}-sm ${v}, &${s}-lg ${v}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function o(s){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:c}=s,l=`${c}-compact`;return{[l]:Object.assign(Object.assign({},i(s,l,n)),t(c,l,n))}}},78330:function(M,b,e){"use strict";e.d(b,{Lx:function(){return n},Qy:function(){return v},Ro:function(){return o},Wf:function(){return t},dF:function(){return s},du:function(){return c},oN:function(){return l},vS:function(){return i}});const i={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},t=h=>({boxSizing:"border-box",margin:0,padding:0,color:h.colorText,fontSize:h.fontSize,lineHeight:h.lineHeight,listStyle:"none",fontFamily:h.fontFamily}),o=()=>({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"}}),s=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),n=h=>({a:{color:h.colorLink,textDecoration:h.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${h.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:h.colorLinkHover},"&:active":{color:h.colorLinkActive},[`&:active, &:hover`]:{textDecoration:h.linkHoverDecoration,outline:0},"&:focus":{textDecoration:h.linkFocusDecoration,outline:0},"&[disabled]":{color:h.colorTextDisabled,cursor:"not-allowed"}}}),c=(h,m)=>{const{fontFamily:C,fontSize:p}=h,S=`[class^="${m}"], [class*=" ${m}"]`;return{[S]:{fontFamily:C,fontSize:p,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[S]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},l=h=>({outline:`${h.lineWidthFocus}px solid ${h.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),v=h=>({"&:focus-visible":Object.assign({},l(h))})},41086:function(M,b){"use strict";const e=i=>({[i.componentCls]:{[`${i.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${i.motionDurationMid} ${i.motionEaseInOut}, opacity ${i.motionDurationMid} ${i.motionEaseInOut} !important`}},[`${i.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${i.motionDurationMid} ${i.motionEaseInOut}, opacity ${i.motionDurationMid} ${i.motionEaseInOut} !important`}}});b.Z=e},7239:function(M,b,e){"use strict";e.d(b,{J$:function(){return n}});var i=e(57793),t=e(85745);const o=new i.E4("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),s=new i.E4("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),n=function(c){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:v}=c,h=`${v}-fade`,m=l?"&":"";return[(0,t.R)(h,o,s,c.motionDurationMid,l),{[` @@ -355,9 +355,9 @@ http://j.mp/37Fkd5Q `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:S.motionEaseOutQuint,["&-prepare"]:{transform:"scale(1)"}},[`${Z}-leave`]:{animationTimingFunction:S.motionEaseInQuint}}]}},28107:function(M,b,e){"use strict";e.d(b,{_y:function(){return Z},kr:function(){return o}});var i=e(57793),t=e(85745);const o=new i.E4("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new i.E4("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),n=new i.E4("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c=new i.E4("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),l=new i.E4("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),v=new i.E4("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),h=new i.E4("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),m=new i.E4("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),C=new i.E4("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),p=new i.E4("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),S=new i.E4("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),w=new i.E4("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),y={zoom:{inKeyframes:o,outKeyframes:s},"zoom-big":{inKeyframes:n,outKeyframes:c},"zoom-big-fast":{inKeyframes:n,outKeyframes:c},"zoom-left":{inKeyframes:h,outKeyframes:m},"zoom-right":{inKeyframes:C,outKeyframes:p},"zoom-up":{inKeyframes:l,outKeyframes:v},"zoom-down":{inKeyframes:S,outKeyframes:w}},Z=(F,R)=>{const{antCls:T}=F,z=`${T}-${R}`,{inKeyframes:A,outKeyframes:L}=y[R];return[(0,t.R)(z,A,L,R==="zoom-big-fast"?F.motionDurationFast:F.motionDurationMid),{[` ${z}-enter, ${z}-appear - `]:{transform:"scale(0)",opacity:0,animationTimingFunction:F.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${z}-leave`]:{animationTimingFunction:F.motionEaseInOutCirc}}]}},24542:function(M,b,e){"use strict";e.d(b,{ZP:function(){return n},fS:function(){return o},qN:function(){return t}});var i=e(72944);const t=8;function o(c){const l=t,{contentRadius:v,limitVerticalRadius:h}=c,m=v>12?v+2:12;return{dropdownArrowOffset:m,dropdownArrowOffsetVertical:h?l:m}}function s(c,l){return c?l:{}}function n(c,l){const{componentCls:v,sizePopupArrow:h,borderRadiusXS:m,borderRadiusOuter:C,boxShadowPopoverArrow:p}=c,{colorBg:S,contentRadius:w=c.borderRadiusLG,limitVerticalRadius:y,arrowDistance:Z=0,arrowPlacement:F={left:!0,right:!0,top:!0,bottom:!0}}=l,{dropdownArrowOffsetVertical:R,dropdownArrowOffset:T}=o({contentRadius:w,limitVerticalRadius:y});return{[v]:Object.assign(Object.assign(Object.assign(Object.assign({[`${v}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,i.r)(h,m,C,S,p)),{"&:before":{background:S}})]},s(!!F.top,{[[`&-placement-top ${v}-arrow`,`&-placement-topLeft ${v}-arrow`,`&-placement-topRight ${v}-arrow`].join(",")]:{bottom:Z,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${v}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${v}-arrow`]:{left:{_skip_check_:!0,value:T}},[`&-placement-topRight ${v}-arrow`]:{right:{_skip_check_:!0,value:T}}})),s(!!F.bottom,{[[`&-placement-bottom ${v}-arrow`,`&-placement-bottomLeft ${v}-arrow`,`&-placement-bottomRight ${v}-arrow`].join(",")]:{top:Z,transform:"translateY(-100%)"},[`&-placement-bottom ${v}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${v}-arrow`]:{left:{_skip_check_:!0,value:T}},[`&-placement-bottomRight ${v}-arrow`]:{right:{_skip_check_:!0,value:T}}})),s(!!F.left,{[[`&-placement-left ${v}-arrow`,`&-placement-leftTop ${v}-arrow`,`&-placement-leftBottom ${v}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Z},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${v}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${v}-arrow`]:{top:R},[`&-placement-leftBottom ${v}-arrow`]:{bottom:R}})),s(!!F.right,{[[`&-placement-right ${v}-arrow`,`&-placement-rightTop ${v}-arrow`,`&-placement-rightBottom ${v}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Z},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${v}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${v}-arrow`]:{top:R},[`&-placement-rightBottom ${v}-arrow`]:{bottom:R}}))}}},72944:function(M,b,e){"use strict";e.d(b,{r:function(){return i}});const i=(t,o,s,n,c)=>{const l=t/2,v=0,h=l,m=s*1/Math.sqrt(2),C=l-s*(1-1/Math.sqrt(2)),p=l-o*(1/Math.sqrt(2)),S=s*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),w=2*l-p,y=S,Z=2*l-m,F=C,R=2*l-v,T=h,z=l*Math.sqrt(2)+s*(Math.sqrt(2)-2),A=s*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${A}px 100%, 50% ${A}px, ${2*l-A}px 100%, ${A}px 100%)`,`path('M ${v} ${h} A ${s} ${s} 0 0 0 ${m} ${C} L ${p} ${S} A ${o} ${o} 0 0 1 ${w} ${y} L ${Z} ${F} A ${s} ${s} 0 0 0 ${R} ${T} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:z,height:z,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:c,zIndex:0,background:"transparent"}}}},16951:function(M,b,e){"use strict";e.d(b,{Z:function(){return Mn}});var i=e(52495),t=e(18974),o=e(12673),s=e(87608),n=e.n(s),c=e(60698),l=e(37734),v=e(57370),h=e(28314),m=e(38790),C=e(47075),p=e(58757),S=e(21618),w=e(60409),y=e(17598),Z=(0,p.createContext)(null),F=p.forwardRef(function(_e,at){var Vt=_e.prefixCls,rn=_e.className,st=_e.style,ut=_e.id,$t=_e.active,nt=_e.tabKey,gt=_e.children;return p.createElement("div",{id:ut&&"".concat(ut,"-panel-").concat(nt),role:"tabpanel",tabIndex:$t?0:-1,"aria-labelledby":ut&&"".concat(ut,"-tab-").concat(nt),"aria-hidden":!$t,style:st,className:n()(Vt,$t&&"".concat(Vt,"-active"),rn),ref:at},gt)}),R=F,T=["key","forceRender","style","className"];function z(_e){var at=_e.id,Vt=_e.activeKey,rn=_e.animated,st=_e.tabPosition,ut=_e.destroyInactiveTabPane,$t=p.useContext(Z),nt=$t.prefixCls,gt=$t.tabs,Dt=rn.tabPane,xn="".concat(nt,"-tabpane");return p.createElement("div",{className:n()("".concat(nt,"-content-holder"))},p.createElement("div",{className:n()("".concat(nt,"-content"),"".concat(nt,"-content-").concat(st),(0,l.Z)({},"".concat(nt,"-content-animated"),Dt))},gt.map(function(tn){var Hn=tn.key,Nn=tn.forceRender,pr=tn.style,gr=tn.className,Or=(0,C.Z)(tn,T),ar=Hn===Vt;return p.createElement(y.ZP,(0,c.Z)({key:Hn,visible:ar,forceRender:Nn,removeOnLeave:!!ut,leavedClassName:"".concat(xn,"-hidden")},rn.tabPaneMotion),function(mr,ea){var Lr=mr.style,Kn=mr.className;return p.createElement(R,(0,c.Z)({},Or,{prefixCls:xn,id:at,tabKey:Hn,animated:Dt,active:ar,style:(0,v.Z)((0,v.Z)({},pr),Lr),className:n()(gr,Kn),ref:ea}))})})))}var A=e(29140),L=e(19425),I=e(51729),$=e(61834),B=e(21319),K={width:0,height:0,left:0,top:0};function H(_e,at,Vt){return(0,p.useMemo)(function(){for(var rn,st=new Map,ut=at.get((rn=_e[0])===null||rn===void 0?void 0:rn.key)||K,$t=ut.left+ut.width,nt=0;nt<_e.length;nt+=1){var gt=_e[nt].key,Dt=at.get(gt);if(!Dt){var xn;Dt=at.get((xn=_e[nt-1])===null||xn===void 0?void 0:xn.key)||K}var tn=st.get(gt)||(0,v.Z)({},Dt);tn.right=$t-tn.left-tn.width,st.set(gt,tn)}return st},[_e.map(function(rn){return rn.key}).join("_"),at,Vt])}function ie(_e,at){var Vt=p.useRef(_e),rn=p.useState({}),st=(0,h.Z)(rn,2),ut=st[1];function $t(nt){var gt=typeof nt=="function"?nt(Vt.current):nt;gt!==Vt.current&&at(gt,Vt.current),Vt.current=gt,ut({})}return[Vt.current,$t]}var ce=.1,te=.01,W=20,G=Math.pow(.995,W);function O(_e,at){var Vt=(0,p.useState)(),rn=(0,h.Z)(Vt,2),st=rn[0],ut=rn[1],$t=(0,p.useState)(0),nt=(0,h.Z)($t,2),gt=nt[0],Dt=nt[1],xn=(0,p.useState)(0),tn=(0,h.Z)(xn,2),Hn=tn[0],Nn=tn[1],pr=(0,p.useState)(),gr=(0,h.Z)(pr,2),Or=gr[0],ar=gr[1],mr=(0,p.useRef)();function ea(nn){var kt=nn.touches[0],hn=kt.screenX,dn=kt.screenY;ut({x:hn,y:dn}),window.clearInterval(mr.current)}function Lr(nn){if(st){nn.preventDefault();var kt=nn.touches[0],hn=kt.screenX,dn=kt.screenY;ut({x:hn,y:dn});var $n=hn-st.x,qn=dn-st.y;at($n,qn);var ct=Date.now();Dt(ct),Nn(ct-gt),ar({x:$n,y:qn})}}function Kn(){if(st&&(ut(null),ar(null),Or)){var nn=Or.x/Hn,kt=Or.y/Hn,hn=Math.abs(nn),dn=Math.abs(kt);if(Math.max(hn,dn)qn?(dn=kt,zt.current="x"):(dn=hn,zt.current="y"),at(-dn,-dn)&&nn.preventDefault()}var on=(0,p.useRef)(null);on.current={onTouchStart:ea,onTouchMove:Lr,onTouchEnd:Kn,onWheel:Ft},p.useEffect(function(){function nn($n){on.current.onTouchStart($n)}function kt($n){on.current.onTouchMove($n)}function hn($n){on.current.onTouchEnd($n)}function dn($n){on.current.onWheel($n)}return document.addEventListener("touchmove",kt,{passive:!1}),document.addEventListener("touchend",hn,{passive:!1}),_e.current.addEventListener("touchstart",nn,{passive:!1}),_e.current.addEventListener("wheel",dn),function(){document.removeEventListener("touchmove",kt),document.removeEventListener("touchend",hn)}},[])}var k=e(81334);function Y(_e){var at=(0,p.useState)(0),Vt=(0,h.Z)(at,2),rn=Vt[0],st=Vt[1],ut=(0,p.useRef)(0),$t=(0,p.useRef)();return $t.current=_e,(0,k.o)(function(){var nt;(nt=$t.current)===null||nt===void 0||nt.call($t)},[rn]),function(){ut.current===rn&&(ut.current+=1,st(ut.current))}}function P(_e){var at=(0,p.useRef)([]),Vt=(0,p.useState)({}),rn=(0,h.Z)(Vt,2),st=rn[1],ut=(0,p.useRef)(typeof _e=="function"?_e():_e),$t=Y(function(){var gt=ut.current;at.current.forEach(function(Dt){gt=Dt(gt)}),at.current=[],ut.current=gt,st({})});function nt(gt){at.current.push(gt),$t()}return[ut.current,nt]}var Q={width:0,height:0,left:0,top:0,right:0};function fe(_e,at,Vt,rn,st,ut,$t){var nt=$t.tabs,gt=$t.tabPosition,Dt=$t.rtl,xn,tn,Hn;return["top","bottom"].includes(gt)?(xn="width",tn=Dt?"right":"left",Hn=Math.abs(Vt)):(xn="height",tn="top",Hn=-Vt),(0,p.useMemo)(function(){if(!nt.length)return[0,0];for(var Nn=nt.length,pr=Nn,gr=0;grHn+at){pr=gr-1;break}}for(var ar=0,mr=Nn-1;mr>=0;mr-=1){var ea=_e.get(nt[mr].key)||Q;if(ea[tn]=pr?[0,0]:[ar,pr]},[_e,at,rn,st,ut,Hn,gt,nt.map(function(Nn){return Nn.key}).join("_"),Dt])}function Ce(_e){var at;return _e instanceof Map?(at={},_e.forEach(function(Vt,rn){at[rn]=Vt})):at=_e,JSON.stringify(at)}var ge="TABS_DQ";function Me(_e){return String(_e).replace(/"/g,ge)}function Re(_e,at,Vt,rn){return!(!Vt||rn||_e===!1||_e===void 0&&(at===!1||at===null))}function Qe(_e,at){var Vt=_e.prefixCls,rn=_e.editable,st=_e.locale,ut=_e.style;return!rn||rn.showAdd===!1?null:p.createElement("button",{ref:at,type:"button",className:"".concat(Vt,"-nav-add"),style:ut,"aria-label":(st==null?void 0:st.addAriaLabel)||"Add tab",onClick:function(nt){rn.onEdit("add",{event:nt})}},rn.addIcon||"+")}var Ve=p.forwardRef(Qe),qe=p.forwardRef(function(_e,at){var Vt=_e.position,rn=_e.prefixCls,st=_e.extra;if(!st)return null;var ut,$t={};return(0,m.Z)(st)==="object"&&!p.isValidElement(st)?$t=st:$t.right=st,Vt==="right"&&(ut=$t.right),Vt==="left"&&(ut=$t.left),ut?p.createElement("div",{className:"".concat(rn,"-extra-content"),ref:at},ut):null}),Mt=qe,wt=e(4933),mt=e(87854),Nt=e(29639);function ke(_e,at){var Vt=_e.prefixCls,rn=_e.id,st=_e.tabs,ut=_e.locale,$t=_e.mobile,nt=_e.moreIcon,gt=nt===void 0?"More":nt,Dt=_e.moreTransitionName,xn=_e.style,tn=_e.className,Hn=_e.editable,Nn=_e.tabBarGutter,pr=_e.rtl,gr=_e.removeAriaLabel,Or=_e.onTabClick,ar=_e.getPopupContainer,mr=_e.popupClassName,ea=(0,p.useState)(!1),Lr=(0,h.Z)(ea,2),Kn=Lr[0],zt=Lr[1],Ft=(0,p.useState)(null),on=(0,h.Z)(Ft,2),nn=on[0],kt=on[1],hn="".concat(rn,"-more-popup"),dn="".concat(Vt,"-dropdown"),$n=nn!==null?"".concat(hn,"-").concat(nn):null,qn=ut==null?void 0:ut.dropdownAriaLabel;function ct(yn,kn){yn.preventDefault(),yn.stopPropagation(),Hn.onEdit("remove",{key:kn,event:yn})}var lt=p.createElement(mt.ZP,{onClick:function(kn){var hr=kn.key,cr=kn.domEvent;Or(hr,cr),zt(!1)},prefixCls:"".concat(dn,"-menu"),id:hn,tabIndex:-1,role:"listbox","aria-activedescendant":$n,selectedKeys:[nn],"aria-label":qn!==void 0?qn:"expanded dropdown"},st.map(function(yn){var kn=yn.closable,hr=yn.disabled,cr=yn.closeIcon,Dn=yn.key,Rr=yn.label,or=Re(kn,cr,Hn,hr);return p.createElement(mt.sN,{key:Dn,id:"".concat(hn,"-").concat(Dn),role:"option","aria-controls":rn&&"".concat(rn,"-panel-").concat(Dn),disabled:hr},p.createElement("span",null,Rr),or&&p.createElement("button",{type:"button","aria-label":gr||"remove",tabIndex:0,className:"".concat(dn,"-menu-item-remove"),onClick:function(Ir){Ir.stopPropagation(),ct(Ir,Dn)}},cr||Hn.removeIcon||"\xD7"))}));function xt(yn){for(var kn=st.filter(function(or){return!or.disabled}),hr=kn.findIndex(function(or){return or.key===nn})||0,cr=kn.length,Dn=0;DnEr?"left":"right"})}),$n=(0,h.Z)(dn,2),qn=$n[0],ct=$n[1],lt=ie(0,function(fr,Er){!hn&&ea&&ea({direction:fr>Er?"top":"bottom"})}),xt=(0,h.Z)(lt,2),St=xt[0],Lt=xt[1],_t=(0,p.useState)([0,0]),Wt=(0,h.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,p.useState)([0,0]),cr=(0,h.Z)(hr,2),Dn=cr[0],Rr=cr[1],or=(0,p.useState)([0,0]),Gr=(0,h.Z)(or,2),Ir=Gr[0],jn=Gr[1],vn=(0,p.useState)([0,0]),Ln=(0,h.Z)(vn,2),Zn=Ln[0],yr=Ln[1],Fr=P(new Map),Kr=(0,h.Z)(Fr,2),aa=Kr[0],Jr=Kr[1],Zr=H(ut,aa,Dn[0]),Ca=V(yn,hn),la=V(Dn,hn),Tn=V(Ir,hn),In=V(Zn,hn),Yn=CaMa?Ma:fr}var to=(0,p.useRef)(),Io=(0,p.useState)(),ja=(0,h.Z)(Io,2),Ua=ja[0],qa=ja[1];function Fo(){qa(Date.now())}function Lo(){window.clearTimeout(to.current)}O(Ft,function(fr,Er){function wn(vr,Ar){vr(function(ia){var na=uo(ia+Ar);return na})}return Yn?(hn?wn(ct,fr):wn(Lt,Er),Lo(),Fo(),!0):!1}),(0,p.useEffect)(function(){return Lo(),Ua&&(to.current=window.setTimeout(function(){qa(0)},100)),Lo},[Ua]);var Bo=fe(Zr,Nr,hn?qn:St,la,Tn,In,(0,v.Z)((0,v.Z)({},_e),{},{tabs:ut})),ot=(0,h.Z)(Bo,2),yt=ot[0],be=ot[1],Bt=(0,I.Z)(function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xn,Er=Zr.get(fr)||{width:0,height:0,left:0,right:0,top:0};if(hn){var wn=qn;tn?Er.rightqn+Nr&&(wn=Er.right+Er.width-Nr):Er.left<-qn?wn=-Er.left:Er.left+Er.width>-qn+Nr&&(wn=-(Er.left+Er.width-Nr)),Lt(0),ct(uo(wn))}else{var vr=St;Er.top<-St?vr=-Er.top:Er.top+Er.height>-St+Nr&&(vr=-(Er.top+Er.height-Nr)),ct(0),Lt(uo(vr))}}),Jt={};gr==="top"||gr==="bottom"?Jt[tn?"marginRight":"marginLeft"]=Or:Jt.marginTop=Or;var Xn=ut.map(function(fr,Er){var wn=fr.key;return p.createElement(Fe,{id:gt,prefixCls:st,key:wn,tab:fr,style:Er===0?void 0:Jt,closable:fr.closable,editable:Nn,active:wn===xn,renderWrapper:ar,removeAriaLabel:pr==null?void 0:pr.removeAriaLabel,onClick:function(Ar){mr(wn,Ar)},onFocus:function(){Bt(wn),Fo(),Ft.current&&(tn||(Ft.current.scrollLeft=0),Ft.current.scrollTop=0)}})}),Gn=function(){return Jr(function(){var Er=new Map;return ut.forEach(function(wn){var vr,Ar=wn.key,ia=(vr=on.current)===null||vr===void 0?void 0:vr.querySelector('[data-node-key="'.concat(Me(Ar),'"]'));ia&&Er.set(Ar,{width:ia.offsetWidth,height:ia.offsetHeight,left:ia.offsetLeft,top:ia.offsetTop})}),Er})};(0,p.useEffect)(function(){Gn()},[ut.map(function(fr){return fr.key}).join("_")]);var br=Y(function(){var fr=ue(Lr),Er=ue(Kn),wn=ue(zt);kn([fr[0]-Er[0]-wn[0],fr[1]-Er[1]-wn[1]]);var vr=ue(kt);jn(vr);var Ar=ue(nn);yr(Ar);var ia=ue(on);Rr([ia[0]-vr[0],ia[1]-vr[1]]),Gn()}),ta=ut.slice(0,yt),ka=ut.slice(be+1),kr=[].concat((0,A.Z)(ta),(0,A.Z)(ka)),Dr=(0,p.useState)(),wr=(0,h.Z)(Dr,2),sr=wr[0],dr=wr[1],jr=Zr.get(xn),va=(0,p.useRef)();function co(){$.Z.cancel(va.current)}(0,p.useEffect)(function(){var fr={};return jr&&(hn?(tn?fr.right=jr.right:fr.left=jr.left,fr.width=jr.width):(fr.top=jr.top,fr.height=jr.height)),co(),va.current=(0,$.Z)(function(){dr(fr)}),co},[jr,hn,tn]),(0,p.useEffect)(function(){Bt()},[xn,Br,Ma,Ce(jr),Ce(Zr),hn]),(0,p.useEffect)(function(){br()},[tn]);var Qa=!!kr.length,Tt="".concat(st,"-nav-wrap"),Kt,sn,An,_n;return hn?tn?(sn=qn>0,Kt=qn!==Ma):(Kt=qn<0,sn=qn!==Br):(An=St<0,_n=St!==Br),p.createElement(L.Z,{onResize:br},p.createElement("div",{ref:(0,B.x1)(at,Lr),role:"tablist",className:n()("".concat(st,"-nav"),$t),style:nt,onKeyDown:function(){Fo()}},p.createElement(Mt,{ref:Kn,position:"left",extra:Hn,prefixCls:st}),p.createElement("div",{className:n()(Tt,(Vt={},(0,l.Z)(Vt,"".concat(Tt,"-ping-left"),Kt),(0,l.Z)(Vt,"".concat(Tt,"-ping-right"),sn),(0,l.Z)(Vt,"".concat(Tt,"-ping-top"),An),(0,l.Z)(Vt,"".concat(Tt,"-ping-bottom"),_n),Vt)),ref:Ft},p.createElement(L.Z,{onResize:br},p.createElement("div",{ref:on,className:"".concat(st,"-nav-list"),style:{transform:"translate(".concat(qn,"px, ").concat(St,"px)"),transition:Ua?"none":void 0}},Xn,p.createElement(Ve,{ref:kt,prefixCls:st,locale:pr,editable:Nn,style:(0,v.Z)((0,v.Z)({},Xn.length===0?void 0:Jt),{},{visibility:Qa?"hidden":null})}),p.createElement("div",{className:n()("".concat(st,"-ink-bar"),(0,l.Z)({},"".concat(st,"-ink-bar-animated"),Dt.inkBar)),style:sr})))),p.createElement(He,(0,c.Z)({},_e,{removeAriaLabel:pr==null?void 0:pr.removeAriaLabel,ref:nn,prefixCls:st,tabs:kr,className:!Qa&&zr,tabMoving:!!Ua})),p.createElement(Mt,{ref:zt,position:"right",extra:Hn,prefixCls:st})))}var N=p.forwardRef(U),D=["renderTabBar"],ee=["label","key"];function se(_e){var at=_e.renderTabBar,Vt=(0,C.Z)(_e,D),rn=p.useContext(Z),st=rn.tabs;if(at){var ut=(0,v.Z)((0,v.Z)({},Vt),{},{panes:st.map(function($t){var nt=$t.label,gt=$t.key,Dt=(0,C.Z)($t,ee);return p.createElement(R,(0,c.Z)({tab:nt,key:gt,tabKey:gt},Dt))})});return at(ut,N)}return p.createElement(N,Vt)}var X=e(75556);function re(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},at;return _e===!1?at={inkBar:!1,tabPane:!1}:_e===!0?at={inkBar:!0,tabPane:!1}:at=(0,v.Z)({inkBar:!0},(0,m.Z)(_e)==="object"?_e:{}),at.tabPaneMotion&&at.tabPane===void 0&&(at.tabPane=!0),!at.tabPaneMotion&&at.tabPane&&(at.tabPane=!1),at}var Ie=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Se=0;function he(_e,at){var Vt,rn=_e.id,st=_e.prefixCls,ut=st===void 0?"rc-tabs":st,$t=_e.className,nt=_e.items,gt=_e.direction,Dt=_e.activeKey,xn=_e.defaultActiveKey,tn=_e.editable,Hn=_e.animated,Nn=_e.tabPosition,pr=Nn===void 0?"top":Nn,gr=_e.tabBarGutter,Or=_e.tabBarStyle,ar=_e.tabBarExtraContent,mr=_e.locale,ea=_e.moreIcon,Lr=_e.moreTransitionName,Kn=_e.destroyInactiveTabPane,zt=_e.renderTabBar,Ft=_e.onChange,on=_e.onTabClick,nn=_e.onTabScroll,kt=_e.getPopupContainer,hn=_e.popupClassName,dn=(0,C.Z)(_e,Ie),$n=p.useMemo(function(){return(nt||[]).filter(function(Fr){return Fr&&(0,m.Z)(Fr)==="object"&&"key"in Fr})},[nt]),qn=gt==="rtl",ct=re(Hn),lt=(0,p.useState)(!1),xt=(0,h.Z)(lt,2),St=xt[0],Lt=xt[1];(0,p.useEffect)(function(){Lt((0,S.Z)())},[]);var _t=(0,w.Z)(function(){var Fr;return(Fr=$n[0])===null||Fr===void 0?void 0:Fr.key},{value:Dt,defaultValue:xn}),Wt=(0,h.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,p.useState)(function(){return $n.findIndex(function(Fr){return Fr.key===yn})}),cr=(0,h.Z)(hr,2),Dn=cr[0],Rr=cr[1];(0,p.useEffect)(function(){var Fr=$n.findIndex(function(aa){return aa.key===yn});if(Fr===-1){var Kr;Fr=Math.max(0,Math.min(Dn,$n.length-1)),kn((Kr=$n[Fr])===null||Kr===void 0?void 0:Kr.key)}Rr(Fr)},[$n.map(function(Fr){return Fr.key}).join("_"),yn,Dn]);var or=(0,w.Z)(null,{value:rn}),Gr=(0,h.Z)(or,2),Ir=Gr[0],jn=Gr[1];(0,p.useEffect)(function(){rn||(jn("rc-tabs-".concat(Se)),Se+=1)},[]);function vn(Fr,Kr){on==null||on(Fr,Kr);var aa=Fr!==yn;kn(Fr),aa&&(Ft==null||Ft(Fr))}var Ln={id:Ir,activeKey:yn,animated:ct,tabPosition:pr,rtl:qn,mobile:St},Zn,yr=(0,v.Z)((0,v.Z)({},Ln),{},{editable:tn,locale:mr,moreIcon:ea,moreTransitionName:Lr,tabBarGutter:gr,onTabClick:vn,onTabScroll:nn,extra:ar,style:Or,panes:null,getPopupContainer:kt,popupClassName:hn});return p.createElement(Z.Provider,{value:{tabs:$n,prefixCls:ut}},p.createElement("div",(0,c.Z)({ref:at,id:rn,className:n()(ut,"".concat(ut,"-").concat(pr),(Vt={},(0,l.Z)(Vt,"".concat(ut,"-mobile"),St),(0,l.Z)(Vt,"".concat(ut,"-editable"),tn),(0,l.Z)(Vt,"".concat(ut,"-rtl"),qn),Vt),$t)},dn),Zn,p.createElement(se,(0,c.Z)({},yr,{renderTabBar:zt})),p.createElement(z,(0,c.Z)({destroyInactiveTabPane:Kn},Ln,{animated:ct}))))}var We=p.forwardRef(he),de=We,le=de,ve=e(61836),xe=e(58785),pe=()=>null,Je=e(90881);const Ae={motionAppear:!1,motionEnter:!0,motionLeave:!0};function oe(_e){let at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Vt;return at===!1?Vt={inkBar:!1,tabPane:!1}:at===!0?Vt={inkBar:!0,tabPane:!0}:Vt=Object.assign({inkBar:!0},typeof at=="object"?at:{}),Vt.tabPane&&(Vt.tabPaneMotion=Object.assign(Object.assign({},Ae),{motionName:(0,Je.m)(_e,"switch")})),Vt}var ye=e(42156),Be=function(_e,at){var Vt={};for(var rn in _e)Object.prototype.hasOwnProperty.call(_e,rn)&&at.indexOf(rn)<0&&(Vt[rn]=_e[rn]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,rn=Object.getOwnPropertySymbols(_e);stat)}function Pe(_e,at){if(_e)return _e;const Vt=(0,ye.Z)(at).map(rn=>{if(p.isValidElement(rn)){const{key:st,props:ut}=rn,$t=ut||{},{tab:nt}=$t,gt=Be($t,["tab"]);return Object.assign(Object.assign({key:String(st)},gt),{label:nt})}return null});return De(Vt)}var we=e(78330),Le=e(52628),Ye=e(22151),Ue=e(1016),bt=_e=>{const{componentCls:at,motionDurationSlow:Vt}=_e;return[{[at]:{[`${at}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Vt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Vt}`}}}}},[(0,Ue.oN)(_e,"slide-up"),(0,Ue.oN)(_e,"slide-down")]]};const ft=_e=>{const{componentCls:at,tabsCardPadding:Vt,cardBg:rn,cardGutter:st,colorBorderSecondary:ut,itemSelectedColor:$t}=_e;return{[`${at}-card`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{margin:0,padding:Vt,background:rn,border:`${_e.lineWidth}px ${_e.lineType} ${ut}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${at}-tab-active`]:{color:$t,background:_e.colorBgContainer},[`${at}-ink-bar`]:{visibility:"hidden"}},[`&${at}-top, &${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginLeft:{_skip_check_:!0,value:`${st}px`}}}},[`&${at}-top`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`},[`${at}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:`0 0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px`},[`${at}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${at}-left, &${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginTop:`${st}px`}}},[`&${at}-left`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadiusLG}px 0 0 ${_e.borderRadiusLG}px`}},[`${at}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0`}},[`${at}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},At=_e=>{const{componentCls:at,itemHoverColor:Vt,dropdownEdgeChildVerticalPadding:rn}=_e;return{[`${at}-dropdown`]:Object.assign(Object.assign({},(0,we.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${at}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${rn}px 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({},we.vS),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${_e.paddingXXS}px ${_e.paddingSM}px`,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:Vt}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ot=_e=>{const{componentCls:at,margin:Vt,colorBorderSecondary:rn,horizontalMargin:st,verticalItemPadding:ut,verticalItemMargin:$t}=_e;return{[`${at}-top, ${at}-bottom`]:{flexDirection:"column",[`> ${at}-nav, > div > ${at}-nav`]:{margin:st,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e.lineWidth}px ${_e.lineType} ${rn}`,content:"''"},[`${at}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow}, + `]:{transform:"scale(0)",opacity:0,animationTimingFunction:F.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${z}-leave`]:{animationTimingFunction:F.motionEaseInOutCirc}}]}},24542:function(M,b,e){"use strict";e.d(b,{ZP:function(){return n},fS:function(){return o},qN:function(){return t}});var i=e(72944);const t=8;function o(c){const l=t,{contentRadius:v,limitVerticalRadius:h}=c,m=v>12?v+2:12;return{dropdownArrowOffset:m,dropdownArrowOffsetVertical:h?l:m}}function s(c,l){return c?l:{}}function n(c,l){const{componentCls:v,sizePopupArrow:h,borderRadiusXS:m,borderRadiusOuter:C,boxShadowPopoverArrow:p}=c,{colorBg:S,contentRadius:w=c.borderRadiusLG,limitVerticalRadius:y,arrowDistance:Z=0,arrowPlacement:F={left:!0,right:!0,top:!0,bottom:!0}}=l,{dropdownArrowOffsetVertical:R,dropdownArrowOffset:T}=o({contentRadius:w,limitVerticalRadius:y});return{[v]:Object.assign(Object.assign(Object.assign(Object.assign({[`${v}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},(0,i.r)(h,m,C,S,p)),{"&:before":{background:S}})]},s(!!F.top,{[[`&-placement-top ${v}-arrow`,`&-placement-topLeft ${v}-arrow`,`&-placement-topRight ${v}-arrow`].join(",")]:{bottom:Z,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${v}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${v}-arrow`]:{left:{_skip_check_:!0,value:T}},[`&-placement-topRight ${v}-arrow`]:{right:{_skip_check_:!0,value:T}}})),s(!!F.bottom,{[[`&-placement-bottom ${v}-arrow`,`&-placement-bottomLeft ${v}-arrow`,`&-placement-bottomRight ${v}-arrow`].join(",")]:{top:Z,transform:"translateY(-100%)"},[`&-placement-bottom ${v}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${v}-arrow`]:{left:{_skip_check_:!0,value:T}},[`&-placement-bottomRight ${v}-arrow`]:{right:{_skip_check_:!0,value:T}}})),s(!!F.left,{[[`&-placement-left ${v}-arrow`,`&-placement-leftTop ${v}-arrow`,`&-placement-leftBottom ${v}-arrow`].join(",")]:{right:{_skip_check_:!0,value:Z},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${v}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${v}-arrow`]:{top:R},[`&-placement-leftBottom ${v}-arrow`]:{bottom:R}})),s(!!F.right,{[[`&-placement-right ${v}-arrow`,`&-placement-rightTop ${v}-arrow`,`&-placement-rightBottom ${v}-arrow`].join(",")]:{left:{_skip_check_:!0,value:Z},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${v}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${v}-arrow`]:{top:R},[`&-placement-rightBottom ${v}-arrow`]:{bottom:R}}))}}},72944:function(M,b,e){"use strict";e.d(b,{r:function(){return i}});const i=(t,o,s,n,c)=>{const l=t/2,v=0,h=l,m=s*1/Math.sqrt(2),C=l-s*(1-1/Math.sqrt(2)),p=l-o*(1/Math.sqrt(2)),S=s*(Math.sqrt(2)-1)+o*(1/Math.sqrt(2)),w=2*l-p,y=S,Z=2*l-m,F=C,R=2*l-v,T=h,z=l*Math.sqrt(2)+s*(Math.sqrt(2)-2),A=s*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:n,clipPath:{_multi_value_:!0,value:[`polygon(${A}px 100%, 50% ${A}px, ${2*l-A}px 100%, ${A}px 100%)`,`path('M ${v} ${h} A ${s} ${s} 0 0 0 ${m} ${C} L ${p} ${S} A ${o} ${o} 0 0 1 ${w} ${y} L ${Z} ${F} A ${s} ${s} 0 0 0 ${R} ${T} Z')`]},content:'""'},"&::after":{content:'""',position:"absolute",width:z,height:z,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${o}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:c,zIndex:0,background:"transparent"}}}},16951:function(M,b,e){"use strict";e.d(b,{Z:function(){return Mn}});var i=e(52495),t=e(18974),o=e(12673),s=e(87608),n=e.n(s),c=e(60698),l=e(37734),v=e(57370),h=e(28314),m=e(38790),C=e(47075),p=e(58757),S=e(21618),w=e(60409),y=e(17598),Z=(0,p.createContext)(null),F=p.forwardRef(function(_e,at){var Vt=_e.prefixCls,an=_e.className,st=_e.style,ut=_e.id,$t=_e.active,nt=_e.tabKey,mt=_e.children;return p.createElement("div",{id:ut&&"".concat(ut,"-panel-").concat(nt),role:"tabpanel",tabIndex:$t?0:-1,"aria-labelledby":ut&&"".concat(ut,"-tab-").concat(nt),"aria-hidden":!$t,style:st,className:n()(Vt,$t&&"".concat(Vt,"-active"),an),ref:at},mt)}),R=F,T=["key","forceRender","style","className"];function z(_e){var at=_e.id,Vt=_e.activeKey,an=_e.animated,st=_e.tabPosition,ut=_e.destroyInactiveTabPane,$t=p.useContext(Z),nt=$t.prefixCls,mt=$t.tabs,Dt=an.tabPane,Cn="".concat(nt,"-tabpane");return p.createElement("div",{className:n()("".concat(nt,"-content-holder"))},p.createElement("div",{className:n()("".concat(nt,"-content"),"".concat(nt,"-content-").concat(st),(0,l.Z)({},"".concat(nt,"-content-animated"),Dt))},mt.map(function(en){var Hn=en.key,Rn=en.forceRender,pr=en.style,gr=en.className,Or=(0,C.Z)(en,T),ar=Hn===Vt;return p.createElement(y.ZP,(0,c.Z)({key:Hn,visible:ar,forceRender:Rn,removeOnLeave:!!ut,leavedClassName:"".concat(Cn,"-hidden")},an.tabPaneMotion),function(mr,qr){var Pr=mr.style,Vn=mr.className;return p.createElement(R,(0,c.Z)({},Or,{prefixCls:Cn,id:at,tabKey:Hn,animated:Dt,active:ar,style:(0,v.Z)((0,v.Z)({},pr),Pr),className:n()(gr,Vn),ref:qr}))})})))}var A=e(29140),L=e(19425),I=e(51729),$=e(61834),B=e(21319),K={width:0,height:0,left:0,top:0};function H(_e,at,Vt){return(0,p.useMemo)(function(){for(var an,st=new Map,ut=at.get((an=_e[0])===null||an===void 0?void 0:an.key)||K,$t=ut.left+ut.width,nt=0;nt<_e.length;nt+=1){var mt=_e[nt].key,Dt=at.get(mt);if(!Dt){var Cn;Dt=at.get((Cn=_e[nt-1])===null||Cn===void 0?void 0:Cn.key)||K}var en=st.get(mt)||(0,v.Z)({},Dt);en.right=$t-en.left-en.width,st.set(mt,en)}return st},[_e.map(function(an){return an.key}).join("_"),at,Vt])}function ie(_e,at){var Vt=p.useRef(_e),an=p.useState({}),st=(0,h.Z)(an,2),ut=st[1];function $t(nt){var mt=typeof nt=="function"?nt(Vt.current):nt;mt!==Vt.current&&at(mt,Vt.current),Vt.current=mt,ut({})}return[Vt.current,$t]}var ce=.1,te=.01,W=20,G=Math.pow(.995,W);function O(_e,at){var Vt=(0,p.useState)(),an=(0,h.Z)(Vt,2),st=an[0],ut=an[1],$t=(0,p.useState)(0),nt=(0,h.Z)($t,2),mt=nt[0],Dt=nt[1],Cn=(0,p.useState)(0),en=(0,h.Z)(Cn,2),Hn=en[0],Rn=en[1],pr=(0,p.useState)(),gr=(0,h.Z)(pr,2),Or=gr[0],ar=gr[1],mr=(0,p.useRef)();function qr(tn){var kt=tn.touches[0],hn=kt.screenX,dn=kt.screenY;ut({x:hn,y:dn}),window.clearInterval(mr.current)}function Pr(tn){if(st){tn.preventDefault();var kt=tn.touches[0],hn=kt.screenX,dn=kt.screenY;ut({x:hn,y:dn});var Fn=hn-st.x,tr=dn-st.y;at(Fn,tr);var ct=Date.now();Dt(ct),Rn(ct-mt),ar({x:Fn,y:tr})}}function Vn(){if(st&&(ut(null),ar(null),Or)){var tn=Or.x/Hn,kt=Or.y/Hn,hn=Math.abs(tn),dn=Math.abs(kt);if(Math.max(hn,dn)tr?(dn=kt,zt.current="x"):(dn=hn,zt.current="y"),at(-dn,-dn)&&tn.preventDefault()}var sn=(0,p.useRef)(null);sn.current={onTouchStart:qr,onTouchMove:Pr,onTouchEnd:Vn,onWheel:Ft},p.useEffect(function(){function tn(Fn){sn.current.onTouchStart(Fn)}function kt(Fn){sn.current.onTouchMove(Fn)}function hn(Fn){sn.current.onTouchEnd(Fn)}function dn(Fn){sn.current.onWheel(Fn)}return document.addEventListener("touchmove",kt,{passive:!1}),document.addEventListener("touchend",hn,{passive:!1}),_e.current.addEventListener("touchstart",tn,{passive:!1}),_e.current.addEventListener("wheel",dn),function(){document.removeEventListener("touchmove",kt),document.removeEventListener("touchend",hn)}},[])}var k=e(81334);function Y(_e){var at=(0,p.useState)(0),Vt=(0,h.Z)(at,2),an=Vt[0],st=Vt[1],ut=(0,p.useRef)(0),$t=(0,p.useRef)();return $t.current=_e,(0,k.o)(function(){var nt;(nt=$t.current)===null||nt===void 0||nt.call($t)},[an]),function(){ut.current===an&&(ut.current+=1,st(ut.current))}}function P(_e){var at=(0,p.useRef)([]),Vt=(0,p.useState)({}),an=(0,h.Z)(Vt,2),st=an[1],ut=(0,p.useRef)(typeof _e=="function"?_e():_e),$t=Y(function(){var mt=ut.current;at.current.forEach(function(Dt){mt=Dt(mt)}),at.current=[],ut.current=mt,st({})});function nt(mt){at.current.push(mt),$t()}return[ut.current,nt]}var Q={width:0,height:0,left:0,top:0,right:0};function fe(_e,at,Vt,an,st,ut,$t){var nt=$t.tabs,mt=$t.tabPosition,Dt=$t.rtl,Cn,en,Hn;return["top","bottom"].includes(mt)?(Cn="width",en=Dt?"right":"left",Hn=Math.abs(Vt)):(Cn="height",en="top",Hn=-Vt),(0,p.useMemo)(function(){if(!nt.length)return[0,0];for(var Rn=nt.length,pr=Rn,gr=0;grHn+at){pr=gr-1;break}}for(var ar=0,mr=Rn-1;mr>=0;mr-=1){var qr=_e.get(nt[mr].key)||Q;if(qr[en]=pr?[0,0]:[ar,pr]},[_e,at,an,st,ut,Hn,mt,nt.map(function(Rn){return Rn.key}).join("_"),Dt])}function Ce(_e){var at;return _e instanceof Map?(at={},_e.forEach(function(Vt,an){at[an]=Vt})):at=_e,JSON.stringify(at)}var ge="TABS_DQ";function Me(_e){return String(_e).replace(/"/g,ge)}function Ne(_e,at,Vt,an){return!(!Vt||an||_e===!1||_e===void 0&&(at===!1||at===null))}function Qe(_e,at){var Vt=_e.prefixCls,an=_e.editable,st=_e.locale,ut=_e.style;return!an||an.showAdd===!1?null:p.createElement("button",{ref:at,type:"button",className:"".concat(Vt,"-nav-add"),style:ut,"aria-label":(st==null?void 0:st.addAriaLabel)||"Add tab",onClick:function(nt){an.onEdit("add",{event:nt})}},an.addIcon||"+")}var Ve=p.forwardRef(Qe),qe=p.forwardRef(function(_e,at){var Vt=_e.position,an=_e.prefixCls,st=_e.extra;if(!st)return null;var ut,$t={};return(0,m.Z)(st)==="object"&&!p.isValidElement(st)?$t=st:$t.right=st,Vt==="right"&&(ut=$t.right),Vt==="left"&&(ut=$t.left),ut?p.createElement("div",{className:"".concat(an,"-extra-content"),ref:at},ut):null}),Mt=qe,wt=e(4933),gt=e(87854),Lt=e(29639);function ke(_e,at){var Vt=_e.prefixCls,an=_e.id,st=_e.tabs,ut=_e.locale,$t=_e.mobile,nt=_e.moreIcon,mt=nt===void 0?"More":nt,Dt=_e.moreTransitionName,Cn=_e.style,en=_e.className,Hn=_e.editable,Rn=_e.tabBarGutter,pr=_e.rtl,gr=_e.removeAriaLabel,Or=_e.onTabClick,ar=_e.getPopupContainer,mr=_e.popupClassName,qr=(0,p.useState)(!1),Pr=(0,h.Z)(qr,2),Vn=Pr[0],zt=Pr[1],Ft=(0,p.useState)(null),sn=(0,h.Z)(Ft,2),tn=sn[0],kt=sn[1],hn="".concat(an,"-more-popup"),dn="".concat(Vt,"-dropdown"),Fn=tn!==null?"".concat(hn,"-").concat(tn):null,tr=ut==null?void 0:ut.dropdownAriaLabel;function ct(yn,kn){yn.preventDefault(),yn.stopPropagation(),Hn.onEdit("remove",{key:kn,event:yn})}var lt=p.createElement(gt.ZP,{onClick:function(kn){var hr=kn.key,cr=kn.domEvent;Or(hr,cr),zt(!1)},prefixCls:"".concat(dn,"-menu"),id:hn,tabIndex:-1,role:"listbox","aria-activedescendant":Fn,selectedKeys:[tn],"aria-label":tr!==void 0?tr:"expanded dropdown"},st.map(function(yn){var kn=yn.closable,hr=yn.disabled,cr=yn.closeIcon,Dn=yn.key,Rr=yn.label,or=Ne(kn,cr,Hn,hr);return p.createElement(gt.sN,{key:Dn,id:"".concat(hn,"-").concat(Dn),role:"option","aria-controls":an&&"".concat(an,"-panel-").concat(Dn),disabled:hr},p.createElement("span",null,Rr),or&&p.createElement("button",{type:"button","aria-label":gr||"remove",tabIndex:0,className:"".concat(dn,"-menu-item-remove"),onClick:function(Ir){Ir.stopPropagation(),ct(Ir,Dn)}},cr||Hn.removeIcon||"\xD7"))}));function xt(yn){for(var kn=st.filter(function(or){return!or.disabled}),hr=kn.findIndex(function(or){return or.key===tn})||0,cr=kn.length,Dn=0;DnEr?"left":"right"})}),Fn=(0,h.Z)(dn,2),tr=Fn[0],ct=Fn[1],lt=ie(0,function(fr,Er){!hn&&qr&&qr({direction:fr>Er?"top":"bottom"})}),xt=(0,h.Z)(lt,2),St=xt[0],Nt=xt[1],_t=(0,p.useState)([0,0]),Wt=(0,h.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,p.useState)([0,0]),cr=(0,h.Z)(hr,2),Dn=cr[0],Rr=cr[1],or=(0,p.useState)([0,0]),Gr=(0,h.Z)(or,2),Ir=Gr[0],Pn=Gr[1],vn=(0,p.useState)([0,0]),Nn=(0,h.Z)(vn,2),Zn=Nn[0],yr=Nn[1],$r=P(new Map),Kr=(0,h.Z)($r,2),ra=Kr[0],Xr=Kr[1],Fr=H(ut,ra,Dn[0]),xa=V(yn,hn),la=V(Dn,hn),Tn=V(Ir,hn),xn=V(Zn,hn),Gn=xaMa?Ma:fr}var ro=(0,p.useRef)(),xo=(0,p.useState)(),Pa=(0,h.Z)(xo,2),Ua=Pa[0],eo=Pa[1];function Fo(){eo(Date.now())}function jo(){window.clearTimeout(ro.current)}O(Ft,function(fr,Er){function wn(vr,Ar){vr(function(oa){var ta=co(oa+Ar);return ta})}return Gn?(hn?wn(ct,fr):wn(Nt,Er),jo(),Fo(),!0):!1}),(0,p.useEffect)(function(){return jo(),Ua&&(ro.current=window.setTimeout(function(){eo(0)},100)),jo},[Ua]);var Bo=fe(Fr,Lr,hn?tr:St,la,Tn,xn,(0,v.Z)((0,v.Z)({},_e),{},{tabs:ut})),ot=(0,h.Z)(Bo,2),yt=ot[0],be=ot[1],Bt=(0,I.Z)(function(){var fr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cn,Er=Fr.get(fr)||{width:0,height:0,left:0,right:0,top:0};if(hn){var wn=tr;en?Er.righttr+Lr&&(wn=Er.right+Er.width-Lr):Er.left<-tr?wn=-Er.left:Er.left+Er.width>-tr+Lr&&(wn=-(Er.left+Er.width-Lr)),Nt(0),ct(co(wn))}else{var vr=St;Er.top<-St?vr=-Er.top:Er.top+Er.height>-St+Lr&&(vr=-(Er.top+Er.height-Lr)),ct(0),Nt(co(vr))}}),Jt={};gr==="top"||gr==="bottom"?Jt[en?"marginRight":"marginLeft"]=Or:Jt.marginTop=Or;var Jn=ut.map(function(fr,Er){var wn=fr.key;return p.createElement(Fe,{id:mt,prefixCls:st,key:wn,tab:fr,style:Er===0?void 0:Jt,closable:fr.closable,editable:Rn,active:wn===Cn,renderWrapper:ar,removeAriaLabel:pr==null?void 0:pr.removeAriaLabel,onClick:function(Ar){mr(wn,Ar)},onFocus:function(){Bt(wn),Fo(),Ft.current&&(en||(Ft.current.scrollLeft=0),Ft.current.scrollTop=0)}})}),Kn=function(){return Xr(function(){var Er=new Map;return ut.forEach(function(wn){var vr,Ar=wn.key,oa=(vr=sn.current)===null||vr===void 0?void 0:vr.querySelector('[data-node-key="'.concat(Me(Ar),'"]'));oa&&Er.set(Ar,{width:oa.offsetWidth,height:oa.offsetHeight,left:oa.offsetLeft,top:oa.offsetTop})}),Er})};(0,p.useEffect)(function(){Kn()},[ut.map(function(fr){return fr.key}).join("_")]);var br=Y(function(){var fr=ue(Pr),Er=ue(Vn),wn=ue(zt);kn([fr[0]-Er[0]-wn[0],fr[1]-Er[1]-wn[1]]);var vr=ue(kt);Pn(vr);var Ar=ue(tn);yr(Ar);var oa=ue(sn);Rr([oa[0]-vr[0],oa[1]-vr[1]]),Kn()}),ea=ut.slice(0,yt),ka=ut.slice(be+1),kr=[].concat((0,A.Z)(ea),(0,A.Z)(ka)),Dr=(0,p.useState)(),wr=(0,h.Z)(Dr,2),sr=wr[0],dr=wr[1],Tr=Fr.get(Cn),ga=(0,p.useRef)();function fo(){$.Z.cancel(ga.current)}(0,p.useEffect)(function(){var fr={};return Tr&&(hn?(en?fr.right=Tr.right:fr.left=Tr.left,fr.width=Tr.width):(fr.top=Tr.top,fr.height=Tr.height)),fo(),ga.current=(0,$.Z)(function(){dr(fr)}),fo},[Tr,hn,en]),(0,p.useEffect)(function(){Bt()},[Cn,Br,Ma,Ce(Tr),Ce(Fr),hn]),(0,p.useEffect)(function(){br()},[en]);var Xa=!!kr.length,Tt="".concat(st,"-nav-wrap"),Kt,ln,An,_n;return hn?en?(ln=tr>0,Kt=tr!==Ma):(Kt=tr<0,ln=tr!==Br):(An=St<0,_n=St!==Br),p.createElement(L.Z,{onResize:br},p.createElement("div",{ref:(0,B.x1)(at,Pr),role:"tablist",className:n()("".concat(st,"-nav"),$t),style:nt,onKeyDown:function(){Fo()}},p.createElement(Mt,{ref:Vn,position:"left",extra:Hn,prefixCls:st}),p.createElement("div",{className:n()(Tt,(Vt={},(0,l.Z)(Vt,"".concat(Tt,"-ping-left"),Kt),(0,l.Z)(Vt,"".concat(Tt,"-ping-right"),ln),(0,l.Z)(Vt,"".concat(Tt,"-ping-top"),An),(0,l.Z)(Vt,"".concat(Tt,"-ping-bottom"),_n),Vt)),ref:Ft},p.createElement(L.Z,{onResize:br},p.createElement("div",{ref:sn,className:"".concat(st,"-nav-list"),style:{transform:"translate(".concat(tr,"px, ").concat(St,"px)"),transition:Ua?"none":void 0}},Jn,p.createElement(Ve,{ref:kt,prefixCls:st,locale:pr,editable:Rn,style:(0,v.Z)((0,v.Z)({},Jn.length===0?void 0:Jt),{},{visibility:Xa?"hidden":null})}),p.createElement("div",{className:n()("".concat(st,"-ink-bar"),(0,l.Z)({},"".concat(st,"-ink-bar-animated"),Dt.inkBar)),style:sr})))),p.createElement(He,(0,c.Z)({},_e,{removeAriaLabel:pr==null?void 0:pr.removeAriaLabel,ref:tn,prefixCls:st,tabs:kr,className:!Xa&&zr,tabMoving:!!Ua})),p.createElement(Mt,{ref:zt,position:"right",extra:Hn,prefixCls:st})))}var N=p.forwardRef(U),D=["renderTabBar"],ee=["label","key"];function se(_e){var at=_e.renderTabBar,Vt=(0,C.Z)(_e,D),an=p.useContext(Z),st=an.tabs;if(at){var ut=(0,v.Z)((0,v.Z)({},Vt),{},{panes:st.map(function($t){var nt=$t.label,mt=$t.key,Dt=(0,C.Z)($t,ee);return p.createElement(R,(0,c.Z)({tab:nt,key:mt,tabKey:mt},Dt))})});return at(ut,N)}return p.createElement(N,Vt)}var X=e(75556);function re(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},at;return _e===!1?at={inkBar:!1,tabPane:!1}:_e===!0?at={inkBar:!0,tabPane:!1}:at=(0,v.Z)({inkBar:!0},(0,m.Z)(_e)==="object"?_e:{}),at.tabPaneMotion&&at.tabPane===void 0&&(at.tabPane=!0),!at.tabPaneMotion&&at.tabPane&&(at.tabPane=!1),at}var Ie=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],Se=0;function he(_e,at){var Vt,an=_e.id,st=_e.prefixCls,ut=st===void 0?"rc-tabs":st,$t=_e.className,nt=_e.items,mt=_e.direction,Dt=_e.activeKey,Cn=_e.defaultActiveKey,en=_e.editable,Hn=_e.animated,Rn=_e.tabPosition,pr=Rn===void 0?"top":Rn,gr=_e.tabBarGutter,Or=_e.tabBarStyle,ar=_e.tabBarExtraContent,mr=_e.locale,qr=_e.moreIcon,Pr=_e.moreTransitionName,Vn=_e.destroyInactiveTabPane,zt=_e.renderTabBar,Ft=_e.onChange,sn=_e.onTabClick,tn=_e.onTabScroll,kt=_e.getPopupContainer,hn=_e.popupClassName,dn=(0,C.Z)(_e,Ie),Fn=p.useMemo(function(){return(nt||[]).filter(function($r){return $r&&(0,m.Z)($r)==="object"&&"key"in $r})},[nt]),tr=mt==="rtl",ct=re(Hn),lt=(0,p.useState)(!1),xt=(0,h.Z)(lt,2),St=xt[0],Nt=xt[1];(0,p.useEffect)(function(){Nt((0,S.Z)())},[]);var _t=(0,w.Z)(function(){var $r;return($r=Fn[0])===null||$r===void 0?void 0:$r.key},{value:Dt,defaultValue:Cn}),Wt=(0,h.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,p.useState)(function(){return Fn.findIndex(function($r){return $r.key===yn})}),cr=(0,h.Z)(hr,2),Dn=cr[0],Rr=cr[1];(0,p.useEffect)(function(){var $r=Fn.findIndex(function(ra){return ra.key===yn});if($r===-1){var Kr;$r=Math.max(0,Math.min(Dn,Fn.length-1)),kn((Kr=Fn[$r])===null||Kr===void 0?void 0:Kr.key)}Rr($r)},[Fn.map(function($r){return $r.key}).join("_"),yn,Dn]);var or=(0,w.Z)(null,{value:an}),Gr=(0,h.Z)(or,2),Ir=Gr[0],Pn=Gr[1];(0,p.useEffect)(function(){an||(Pn("rc-tabs-".concat(Se)),Se+=1)},[]);function vn($r,Kr){sn==null||sn($r,Kr);var ra=$r!==yn;kn($r),ra&&(Ft==null||Ft($r))}var Nn={id:Ir,activeKey:yn,animated:ct,tabPosition:pr,rtl:tr,mobile:St},Zn,yr=(0,v.Z)((0,v.Z)({},Nn),{},{editable:en,locale:mr,moreIcon:qr,moreTransitionName:Pr,tabBarGutter:gr,onTabClick:vn,onTabScroll:tn,extra:ar,style:Or,panes:null,getPopupContainer:kt,popupClassName:hn});return p.createElement(Z.Provider,{value:{tabs:Fn,prefixCls:ut}},p.createElement("div",(0,c.Z)({ref:at,id:an,className:n()(ut,"".concat(ut,"-").concat(pr),(Vt={},(0,l.Z)(Vt,"".concat(ut,"-mobile"),St),(0,l.Z)(Vt,"".concat(ut,"-editable"),en),(0,l.Z)(Vt,"".concat(ut,"-rtl"),tr),Vt),$t)},dn),Zn,p.createElement(se,(0,c.Z)({},yr,{renderTabBar:zt})),p.createElement(z,(0,c.Z)({destroyInactiveTabPane:Vn},Nn,{animated:ct}))))}var We=p.forwardRef(he),de=We,le=de,ve=e(61836),xe=e(58785),pe=()=>null,Je=e(90881);const Ae={motionAppear:!1,motionEnter:!0,motionLeave:!0};function oe(_e){let at=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Vt;return at===!1?Vt={inkBar:!1,tabPane:!1}:at===!0?Vt={inkBar:!0,tabPane:!0}:Vt=Object.assign({inkBar:!0},typeof at=="object"?at:{}),Vt.tabPane&&(Vt.tabPaneMotion=Object.assign(Object.assign({},Ae),{motionName:(0,Je.m)(_e,"switch")})),Vt}var ye=e(42156),Be=function(_e,at){var Vt={};for(var an in _e)Object.prototype.hasOwnProperty.call(_e,an)&&at.indexOf(an)<0&&(Vt[an]=_e[an]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,an=Object.getOwnPropertySymbols(_e);stat)}function Pe(_e,at){if(_e)return _e;const Vt=(0,ye.Z)(at).map(an=>{if(p.isValidElement(an)){const{key:st,props:ut}=an,$t=ut||{},{tab:nt}=$t,mt=Be($t,["tab"]);return Object.assign(Object.assign({key:String(st)},mt),{label:nt})}return null});return De(Vt)}var we=e(78330),Le=e(52628),Ye=e(22151),Ue=e(1016),bt=_e=>{const{componentCls:at,motionDurationSlow:Vt}=_e;return[{[at]:{[`${at}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Vt}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Vt}`}}}}},[(0,Ue.oN)(_e,"slide-up"),(0,Ue.oN)(_e,"slide-down")]]};const ft=_e=>{const{componentCls:at,tabsCardPadding:Vt,cardBg:an,cardGutter:st,colorBorderSecondary:ut,itemSelectedColor:$t}=_e;return{[`${at}-card`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{margin:0,padding:Vt,background:an,border:`${_e.lineWidth}px ${_e.lineType} ${ut}`,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`},[`${at}-tab-active`]:{color:$t,background:_e.colorBgContainer},[`${at}-ink-bar`]:{visibility:"hidden"}},[`&${at}-top, &${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginLeft:{_skip_check_:!0,value:`${st}px`}}}},[`&${at}-top`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`},[`${at}-tab-active`]:{borderBottomColor:_e.colorBgContainer}}},[`&${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:`0 0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px`},[`${at}-tab-active`]:{borderTopColor:_e.colorBgContainer}}},[`&${at}-left, &${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginTop:`${st}px`}}},[`&${at}-left`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadiusLG}px 0 0 ${_e.borderRadiusLG}px`}},[`${at}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:_e.colorBgContainer}}}},[`&${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0`}},[`${at}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:_e.colorBgContainer}}}}}}},At=_e=>{const{componentCls:at,itemHoverColor:Vt,dropdownEdgeChildVerticalPadding:an}=_e;return{[`${at}-dropdown`]:Object.assign(Object.assign({},(0,we.Wf)(_e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:_e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${at}-dropdown-menu`]:{maxHeight:_e.tabsDropdownHeight,margin:0,padding:`${an}px 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({},we.vS),{display:"flex",alignItems:"center",minWidth:_e.tabsDropdownWidth,margin:0,padding:`${_e.paddingXXS}px ${_e.paddingSM}px`,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:Vt}},"&:hover":{background:_e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:_e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Ot=_e=>{const{componentCls:at,margin:Vt,colorBorderSecondary:an,horizontalMargin:st,verticalItemPadding:ut,verticalItemMargin:$t}=_e;return{[`${at}-top, ${at}-bottom`]:{flexDirection:"column",[`> ${at}-nav, > div > ${at}-nav`]:{margin:st,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${_e.lineWidth}px ${_e.lineType} ${an}`,content:"''"},[`${at}-ink-bar`]:{height:_e.lineWidthBold,"&-animated":{transition:`width ${_e.motionDurationSlow}, left ${_e.motionDurationSlow}, right ${_e.motionDurationSlow}`}},[`${at}-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},[`&${at}-nav-wrap-ping-left::before`]:{opacity:1},[`&${at}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${at}-top`]:{[`> ${at}-nav, - > div > ${at}-nav`]:{"&::before":{bottom:0},[`${at}-ink-bar`]:{bottom:0}}},[`${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{order:1,marginTop:`${Vt}px`,marginBottom:0,"&::before":{top:0},[`${at}-ink-bar`]:{top:0}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{order:0}},[`${at}-left, ${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{flexDirection:"column",minWidth:_e.controlHeight*1.25,[`${at}-tab`]:{padding:ut,textAlign:"center"},[`${at}-tab + ${at}-tab`]:{margin:$t},[`${at}-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},[`&${at}-nav-wrap-ping-top::before`]:{opacity:1},[`&${at}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${at}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${at}-nav-list, ${at}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${at}-left`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${_e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${at}-content > ${at}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{order:1,[`${at}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-_e.lineWidth},borderRight:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${at}-content > ${at}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},jt=_e=>{const{componentCls:at,cardPaddingSM:Vt,cardPaddingLG:rn,horizontalItemPaddingSM:st,horizontalItemPaddingLG:ut}=_e;return{[at]:{"&-small":{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:st,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:ut,fontSize:_e.titleFontSizeLG}}}},[`${at}-card`]:{[`&${at}-small`]:{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:Vt}},[`&${at}-bottom`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:`0 0 ${_e.borderRadius}px ${_e.borderRadius}px`}},[`&${at}-top`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:`${_e.borderRadius}px ${_e.borderRadius}px 0 0`}},[`&${at}-right`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadius}px ${_e.borderRadius}px 0`}}},[`&${at}-left`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadius}px 0 0 ${_e.borderRadius}px`}}}},[`&${at}-large`]:{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:rn}}}}}},Gt=_e=>{const{componentCls:at,itemActiveColor:Vt,itemHoverColor:rn,iconCls:st,tabsHorizontalItemMargin:ut,horizontalItemPadding:$t,itemSelectedColor:nt}=_e,gt=`${at}-tab`;return{[gt]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:$t,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Vt}},(0,we.Qy)(_e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-_e.marginXXS},marginLeft:{_skip_check_:!0,value:_e.marginXS},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"&:hover":{color:_e.colorTextHeading}},"&:hover":{color:rn},[`&${gt}-active ${gt}-btn`]:{color:nt,textShadow:_e.tabsActiveTextShadow},[`&${gt}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${gt}-disabled ${gt}-btn, &${gt}-disabled ${at}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${gt}-remove ${st}`]:{margin:0},[st]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${gt} + ${gt}`]:{margin:{_skip_check_:!0,value:ut}}}},Xt=_e=>{const{componentCls:at,tabsHorizontalItemMarginRTL:Vt,iconCls:rn,cardGutter:st}=_e;return{[`${at}-rtl`]:{direction:"rtl",[`${at}-nav`]:{[`${at}-tab`]:{margin:{_skip_check_:!0,value:Vt},[`${at}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[rn]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${_e.marginSM}px`}},[`${at}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${_e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${_e.marginXXS}px`},[rn]:{margin:0}}}},[`&${at}-left`]:{[`> ${at}-nav`]:{order:1},[`> ${at}-content-holder`]:{order:0}},[`&${at}-right`]:{[`> ${at}-nav`]:{order:0},[`> ${at}-content-holder`]:{order:1}},[`&${at}-card${at}-top, &${at}-card${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginRight:{_skip_check_:!0,value:st},marginLeft:{_skip_check_:!0,value:0}}}}},[`${at}-dropdown-rtl`]:{direction:"rtl"},[`${at}-menu-item`]:{[`${at}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},zn=_e=>{const{componentCls:at,tabsCardPadding:Vt,cardHeight:rn,cardGutter:st,itemHoverColor:ut,itemActiveColor:$t,colorBorderSecondary:nt}=_e;return{[at]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(_e)),{display:"flex",[`> ${at}-nav, > div > ${at}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${at}-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"}},[`${at}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${at}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${at}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${at}-nav-more`]:{position:"relative",padding:Vt,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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${at}-nav-add`]:Object.assign({minWidth:rn,marginLeft:{_skip_check_:!0,value:st},padding:`0 ${_e.paddingXS}px`,background:"transparent",border:`${_e.lineWidth}px ${_e.lineType} ${nt}`,borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:ut},"&:active, &:focus:not(:focus-visible)":{color:$t}},(0,we.Qy)(_e))},[`${at}-extra-content`]:{flex:"none"},[`${at}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),Gt(_e)),{[`${at}-content`]:{position:"relative",width:"100%"},[`${at}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${at}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${at}-centered`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-nav-wrap`]:{[`&:not([class*='${at}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var fn=(0,Le.Z)("Tabs",_e=>{const at=(0,Ye.TS)(_e,{tabsCardPadding:_e.cardPadding||`${(_e.cardHeight-Math.round(_e.fontSize*_e.lineHeight))/2-_e.lineWidth}px ${_e.padding}px`,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e.horizontalItemGutter}px`});return[jt(at),Xt(at),Ot(at),At(at),ft(at),zn(at),bt(at)]},_e=>{const at=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:at,cardPadding:"",cardPaddingSM:`${_e.paddingXXS*1.5}px ${_e.padding}px`,cardPaddingLG:`${_e.paddingXS}px ${_e.padding}px ${_e.paddingXXS*1.5}px`,titleFontSize:_e.fontSize,titleFontSizeLG:_e.fontSizeLG,titleFontSizeSM:_e.fontSize,inkBarColor:_e.colorPrimary,horizontalMargin:`0 0 ${_e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${_e.paddingSM}px 0`,horizontalItemPaddingSM:`${_e.paddingXS}px 0`,horizontalItemPaddingLG:`${_e.padding}px 0`,verticalItemPadding:`${_e.paddingXS}px ${_e.paddingLG}px`,verticalItemMargin:`${_e.margin}px 0 0 0`,itemSelectedColor:_e.colorPrimary,itemHoverColor:_e.colorPrimaryHover,itemActiveColor:_e.colorPrimaryActive,cardGutter:_e.marginXXS/2}}),Bn=function(_e,at){var Vt={};for(var rn in _e)Object.prototype.hasOwnProperty.call(_e,rn)&&at.indexOf(rn)<0&&(Vt[rn]=_e[rn]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,rn=Object.getOwnPropertySymbols(_e);st{const{type:at,className:Vt,rootClassName:rn,size:st,onEdit:ut,hideAdd:$t,centered:nt,addIcon:gt,popupClassName:Dt,children:xn,items:tn,animated:Hn,style:Nn}=_e,pr=Bn(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:gr,moreIcon:Or=p.createElement(t.Z,null)}=pr,{direction:ar,tabs:mr,getPrefixCls:ea,getPopupContainer:Lr}=p.useContext(ve.E_),Kn=ea("tabs",gr),[zt,Ft]=fn(Kn);let on;at==="editable-card"&&(on={onEdit:(qn,ct)=>{let{key:lt,event:xt}=ct;ut==null||ut(qn==="add"?xt:lt,qn)},removeIcon:p.createElement(i.Z,null),addIcon:gt||p.createElement(o.Z,null),showAdd:$t!==!0});const nn=ea(),kt=Pe(tn,xn),hn=oe(Kn,Hn),dn=(0,xe.Z)(st),$n=Object.assign(Object.assign({},mr==null?void 0:mr.style),Nn);return zt(p.createElement(le,Object.assign({direction:ar,getPopupContainer:Lr,moreTransitionName:`${nn}-slide-up`},pr,{items:kt,className:n()({[`${Kn}-${dn}`]:dn,[`${Kn}-card`]:["card","editable-card"].includes(at),[`${Kn}-editable-card`]:at==="editable-card",[`${Kn}-centered`]:nt},mr==null?void 0:mr.className,Vt,rn,Ft),popupClassName:n()(Dt,Ft),style:$n,editable:on,moreIcon:Or,prefixCls:Kn,animated:hn})))};On.TabPane=pe;var Mn=On},83631:function(M,b,e){"use strict";e.d(b,{Mj:function(){return l},uH:function(){return n},u_:function(){return c}});var i=e(57793),t=e(58757),o=e(57738),s=e(28378);const n=(0,i.jG)(o.Z),c={token:s.Z,hashed:!0},l=t.createContext(c)},22802:function(M,b,e){"use strict";e.d(b,{Z:function(){return $}});var i=e(57793),t=e(57738),o=e(28378),s=e(57634),c=B=>{const K=B!=null&&B.algorithm?(0,i.jG)(B.algorithm):(0,i.jG)(t.Z),H=Object.assign(Object.assign({},o.Z),B==null?void 0:B.token);return(0,i.t2)(H,{override:B==null?void 0:B.token},K,s.Z)},l=e(51806),v=e(83631),h=e(38458);function m(B){const{sizeUnit:K,sizeStep:H}=B,ie=H-2;return{sizeXXL:K*(ie+10),sizeXL:K*(ie+6),sizeLG:K*(ie+2),sizeMD:K*(ie+2),sizeMS:K*(ie+1),size:K*ie,sizeSM:K*ie,sizeXS:K*(ie-1),sizeXXS:K*(ie-1)}}var C=e(4490),S=(B,K)=>{const H=K!=null?K:(0,t.Z)(B),ie=H.fontSizeSM,ce=H.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H),m(K!=null?K:B)),(0,C.Z)(ie)),{controlHeight:ce}),(0,h.Z)(Object.assign(Object.assign({},H),{controlHeight:ce})))},w=e(26134),y=e(67782),Z=e(66671);const F=(B,K)=>new Z.C(B).setAlpha(K).toRgbString(),R=(B,K)=>new Z.C(B).lighten(K).toHexString(),T=B=>{const K=(0,w.generate)(B,{theme:"dark"});return{1:K[0],2:K[1],3:K[2],4:K[3],5:K[6],6:K[5],7:K[4],8:K[6],9:K[5],10:K[4]}},z=(B,K)=>{const H=B||"#000",ie=K||"#fff";return{colorBgBase:H,colorTextBase:ie,colorText:F(ie,.85),colorTextSecondary:F(ie,.65),colorTextTertiary:F(ie,.45),colorTextQuaternary:F(ie,.25),colorFill:F(ie,.18),colorFillSecondary:F(ie,.12),colorFillTertiary:F(ie,.08),colorFillQuaternary:F(ie,.04),colorBgElevated:R(H,12),colorBgContainer:R(H,8),colorBgLayout:R(H,0),colorBgSpotlight:R(H,26),colorBorder:R(H,26),colorBorderSecondary:R(H,19)}};var L=(B,K)=>{const H=Object.keys(o.M).map(ce=>{const te=(0,w.generate)(B[ce],{theme:"dark"});return new Array(10).fill(1).reduce((W,G,O)=>(W[`${ce}-${O+1}`]=te[O],W[`${ce}${O+1}`]=te[O],W),{})}).reduce((ce,te)=>(ce=Object.assign(Object.assign({},ce),te),ce),{}),ie=K!=null?K:(0,t.Z)(B);return Object.assign(Object.assign(Object.assign({},ie),H),(0,y.Z)(B,{generateColorPalettes:T,generateNeutralColorPalettes:z}))};function I(){const[B,K,H]=(0,l.Z)();return{theme:B,token:K,hashId:H}}var $={defaultConfig:v.u_,defaultSeed:v.u_.token,useToken:I,defaultAlgorithm:t.Z,darkAlgorithm:L,compactAlgorithm:S,getDesignToken:c}},34966:function(M,b,e){"use strict";e.d(b,{i:function(){return i}});const i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},57738:function(M,b,e){"use strict";e.d(b,{Z:function(){return y}});var i=e(26134),t=e(38458);function o(Z){const{sizeUnit:F,sizeStep:R}=Z;return{sizeXXL:F*(R+8),sizeXL:F*(R+4),sizeLG:F*(R+2),sizeMD:F*(R+1),sizeMS:F*R,size:F*R,sizeSM:F*(R-1),sizeXS:F*(R-2),sizeXXS:F*(R-3)}}var s=e(28378),n=e(67782),l=Z=>{let F=Z,R=Z,T=Z,z=Z;return Z<6&&Z>=5?F=Z+1:Z<16&&Z>=6?F=Z+2:Z>=16&&(F=16),Z<7&&Z>=5?R=4:Z<8&&Z>=7?R=5:Z<14&&Z>=8?R=6:Z<16&&Z>=14?R=7:Z>=16&&(R=8),Z<6&&Z>=2?T=1:Z>=6&&(T=2),Z>4&&Z<8?z=4:Z>=8&&(z=6),{borderRadius:Z>16?16:Z,borderRadiusXS:T,borderRadiusSM:R,borderRadiusLG:F,borderRadiusOuter:z}};function v(Z){const{motionUnit:F,motionBase:R,borderRadius:T,lineWidth:z}=Z;return Object.assign({motionDurationFast:`${(R+F).toFixed(1)}s`,motionDurationMid:`${(R+F*2).toFixed(1)}s`,motionDurationSlow:`${(R+F*3).toFixed(1)}s`,lineWidthBold:z+1},l(T))}var h=e(66671);const m=(Z,F)=>new h.C(Z).setAlpha(F).toRgbString(),C=(Z,F)=>new h.C(Z).darken(F).toHexString(),p=Z=>{const F=(0,i.generate)(Z);return{1:F[0],2:F[1],3:F[2],4:F[3],5:F[4],6:F[5],7:F[6],8:F[4],9:F[5],10:F[6]}},S=(Z,F)=>{const R=Z||"#fff",T=F||"#000";return{colorBgBase:R,colorTextBase:T,colorText:m(T,.88),colorTextSecondary:m(T,.65),colorTextTertiary:m(T,.45),colorTextQuaternary:m(T,.25),colorFill:m(T,.15),colorFillSecondary:m(T,.06),colorFillTertiary:m(T,.04),colorFillQuaternary:m(T,.02),colorBgLayout:C(R,4),colorBgContainer:C(R,0),colorBgElevated:C(R,0),colorBgSpotlight:m(T,.85),colorBorder:C(R,15),colorBorderSecondary:C(R,6)}};var w=e(4490);function y(Z){const F=Object.keys(s.M).map(R=>{const T=(0,i.generate)(Z[R]);return new Array(10).fill(1).reduce((z,A,L)=>(z[`${R}-${L+1}`]=T[L],z[`${R}${L+1}`]=T[L],z),{})}).reduce((R,T)=>(R=Object.assign(Object.assign({},R),T),R),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Z),F),(0,n.Z)(Z,{generateColorPalettes:p,generateNeutralColorPalettes:S})),(0,w.Z)(Z.fontSize)),o(Z)),(0,t.Z)(Z)),v(Z))}},28378:function(M,b,e){"use strict";e.d(b,{M:function(){return i}});const i={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"},t=Object.assign(Object.assign({},i),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, + > div > ${at}-nav`]:{"&::before":{bottom:0},[`${at}-ink-bar`]:{bottom:0}}},[`${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{order:1,marginTop:`${Vt}px`,marginBottom:0,"&::before":{top:0},[`${at}-ink-bar`]:{top:0}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{order:0}},[`${at}-left, ${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{flexDirection:"column",minWidth:_e.controlHeight*1.25,[`${at}-tab`]:{padding:ut,textAlign:"center"},[`${at}-tab + ${at}-tab`]:{margin:$t},[`${at}-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},[`&${at}-nav-wrap-ping-top::before`]:{opacity:1},[`&${at}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${at}-ink-bar`]:{width:_e.lineWidthBold,"&-animated":{transition:`height ${_e.motionDurationSlow}, top ${_e.motionDurationSlow}`}},[`${at}-nav-list, ${at}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${at}-left`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${_e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${at}-content > ${at}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:_e.paddingLG}}}},[`${at}-right`]:{[`> ${at}-nav, > div > ${at}-nav`]:{order:1,[`${at}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${at}-content-holder, > div > ${at}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-_e.lineWidth},borderRight:{_skip_check_:!0,value:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`},[`> ${at}-content > ${at}-tabpane`]:{paddingRight:{_skip_check_:!0,value:_e.paddingLG}}}}}},jt=_e=>{const{componentCls:at,cardPaddingSM:Vt,cardPaddingLG:an,horizontalItemPaddingSM:st,horizontalItemPaddingLG:ut}=_e;return{[at]:{"&-small":{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:st,fontSize:_e.titleFontSizeSM}}},"&-large":{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:ut,fontSize:_e.titleFontSizeLG}}}},[`${at}-card`]:{[`&${at}-small`]:{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:Vt}},[`&${at}-bottom`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:`0 0 ${_e.borderRadius}px ${_e.borderRadius}px`}},[`&${at}-top`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:`${_e.borderRadius}px ${_e.borderRadius}px 0 0`}},[`&${at}-right`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${_e.borderRadius}px ${_e.borderRadius}px 0`}}},[`&${at}-left`]:{[`> ${at}-nav ${at}-tab`]:{borderRadius:{_skip_check_:!0,value:`${_e.borderRadius}px 0 0 ${_e.borderRadius}px`}}}},[`&${at}-large`]:{[`> ${at}-nav`]:{[`${at}-tab`]:{padding:an}}}}}},Gt=_e=>{const{componentCls:at,itemActiveColor:Vt,itemHoverColor:an,iconCls:st,tabsHorizontalItemMargin:ut,horizontalItemPadding:$t,itemSelectedColor:nt}=_e,mt=`${at}-tab`;return{[mt]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:$t,fontSize:_e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Vt}},(0,we.Qy)(_e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-_e.marginXXS},marginLeft:{_skip_check_:!0,value:_e.marginXS},color:_e.colorTextDescription,fontSize:_e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,"&:hover":{color:_e.colorTextHeading}},"&:hover":{color:an},[`&${mt}-active ${mt}-btn`]:{color:nt,textShadow:_e.tabsActiveTextShadow},[`&${mt}-disabled`]:{color:_e.colorTextDisabled,cursor:"not-allowed"},[`&${mt}-disabled ${mt}-btn, &${mt}-disabled ${at}-remove`]:{"&:focus, &:active":{color:_e.colorTextDisabled}},[`& ${mt}-remove ${st}`]:{margin:0},[st]:{marginRight:{_skip_check_:!0,value:_e.marginSM}}},[`${mt} + ${mt}`]:{margin:{_skip_check_:!0,value:ut}}}},Xt=_e=>{const{componentCls:at,tabsHorizontalItemMarginRTL:Vt,iconCls:an,cardGutter:st}=_e;return{[`${at}-rtl`]:{direction:"rtl",[`${at}-nav`]:{[`${at}-tab`]:{margin:{_skip_check_:!0,value:Vt},[`${at}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[an]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${_e.marginSM}px`}},[`${at}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${_e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${_e.marginXXS}px`},[an]:{margin:0}}}},[`&${at}-left`]:{[`> ${at}-nav`]:{order:1},[`> ${at}-content-holder`]:{order:0}},[`&${at}-right`]:{[`> ${at}-nav`]:{order:0},[`> ${at}-content-holder`]:{order:1}},[`&${at}-card${at}-top, &${at}-card${at}-bottom`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-tab + ${at}-tab`]:{marginRight:{_skip_check_:!0,value:st},marginLeft:{_skip_check_:!0,value:0}}}}},[`${at}-dropdown-rtl`]:{direction:"rtl"},[`${at}-menu-item`]:{[`${at}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Bn=_e=>{const{componentCls:at,tabsCardPadding:Vt,cardHeight:an,cardGutter:st,itemHoverColor:ut,itemActiveColor:$t,colorBorderSecondary:nt}=_e;return{[at]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,we.Wf)(_e)),{display:"flex",[`> ${at}-nav, > div > ${at}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${at}-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"}},[`${at}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${_e.motionDurationSlow}`},[`${at}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${at}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${at}-nav-more`]:{position:"relative",padding:Vt,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.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${at}-nav-add`]:Object.assign({minWidth:an,marginLeft:{_skip_check_:!0,value:st},padding:`0 ${_e.paddingXS}px`,background:"transparent",border:`${_e.lineWidth}px ${_e.lineType} ${nt}`,borderRadius:`${_e.borderRadiusLG}px ${_e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:_e.colorText,transition:`all ${_e.motionDurationSlow} ${_e.motionEaseInOut}`,"&:hover":{color:ut},"&:active, &:focus:not(:focus-visible)":{color:$t}},(0,we.Qy)(_e))},[`${at}-extra-content`]:{flex:"none"},[`${at}-ink-bar`]:{position:"absolute",background:_e.inkBarColor,pointerEvents:"none"}}),Gt(_e)),{[`${at}-content`]:{position:"relative",width:"100%"},[`${at}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${at}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${at}-centered`]:{[`> ${at}-nav, > div > ${at}-nav`]:{[`${at}-nav-wrap`]:{[`&:not([class*='${at}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var fn=(0,Le.Z)("Tabs",_e=>{const at=(0,Ye.TS)(_e,{tabsCardPadding:_e.cardPadding||`${(_e.cardHeight-Math.round(_e.fontSize*_e.lineHeight))/2-_e.lineWidth}px ${_e.padding}px`,dropdownEdgeChildVerticalPadding:_e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${_e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${_e.horizontalItemGutter}px`});return[jt(at),Xt(at),Ot(at),At(at),ft(at),Bn(at),bt(at)]},_e=>{const at=_e.controlHeightLG;return{zIndexPopup:_e.zIndexPopupBase+50,cardBg:_e.colorFillAlter,cardHeight:at,cardPadding:"",cardPaddingSM:`${_e.paddingXXS*1.5}px ${_e.padding}px`,cardPaddingLG:`${_e.paddingXS}px ${_e.padding}px ${_e.paddingXXS*1.5}px`,titleFontSize:_e.fontSize,titleFontSizeLG:_e.fontSizeLG,titleFontSizeSM:_e.fontSize,inkBarColor:_e.colorPrimary,horizontalMargin:`0 0 ${_e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${_e.paddingSM}px 0`,horizontalItemPaddingSM:`${_e.paddingXS}px 0`,horizontalItemPaddingLG:`${_e.padding}px 0`,verticalItemPadding:`${_e.paddingXS}px ${_e.paddingLG}px`,verticalItemMargin:`${_e.margin}px 0 0 0`,itemSelectedColor:_e.colorPrimary,itemHoverColor:_e.colorPrimaryHover,itemActiveColor:_e.colorPrimaryActive,cardGutter:_e.marginXXS/2}}),$n=function(_e,at){var Vt={};for(var an in _e)Object.prototype.hasOwnProperty.call(_e,an)&&at.indexOf(an)<0&&(Vt[an]=_e[an]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,an=Object.getOwnPropertySymbols(_e);st{const{type:at,className:Vt,rootClassName:an,size:st,onEdit:ut,hideAdd:$t,centered:nt,addIcon:mt,popupClassName:Dt,children:Cn,items:en,animated:Hn,style:Rn}=_e,pr=$n(_e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style"]),{prefixCls:gr,moreIcon:Or=p.createElement(t.Z,null)}=pr,{direction:ar,tabs:mr,getPrefixCls:qr,getPopupContainer:Pr}=p.useContext(ve.E_),Vn=qr("tabs",gr),[zt,Ft]=fn(Vn);let sn;at==="editable-card"&&(sn={onEdit:(tr,ct)=>{let{key:lt,event:xt}=ct;ut==null||ut(tr==="add"?xt:lt,tr)},removeIcon:p.createElement(i.Z,null),addIcon:mt||p.createElement(o.Z,null),showAdd:$t!==!0});const tn=qr(),kt=Pe(en,Cn),hn=oe(Vn,Hn),dn=(0,xe.Z)(st),Fn=Object.assign(Object.assign({},mr==null?void 0:mr.style),Rn);return zt(p.createElement(le,Object.assign({direction:ar,getPopupContainer:Pr,moreTransitionName:`${tn}-slide-up`},pr,{items:kt,className:n()({[`${Vn}-${dn}`]:dn,[`${Vn}-card`]:["card","editable-card"].includes(at),[`${Vn}-editable-card`]:at==="editable-card",[`${Vn}-centered`]:nt},mr==null?void 0:mr.className,Vt,an,Ft),popupClassName:n()(Dt,Ft),style:Fn,editable:sn,moreIcon:Or,prefixCls:Vn,animated:hn})))};On.TabPane=pe;var Mn=On},83631:function(M,b,e){"use strict";e.d(b,{Mj:function(){return l},uH:function(){return n},u_:function(){return c}});var i=e(57793),t=e(58757),o=e(57738),s=e(28378);const n=(0,i.jG)(o.Z),c={token:s.Z,hashed:!0},l=t.createContext(c)},22802:function(M,b,e){"use strict";e.d(b,{Z:function(){return $}});var i=e(57793),t=e(57738),o=e(28378),s=e(57634),c=B=>{const K=B!=null&&B.algorithm?(0,i.jG)(B.algorithm):(0,i.jG)(t.Z),H=Object.assign(Object.assign({},o.Z),B==null?void 0:B.token);return(0,i.t2)(H,{override:B==null?void 0:B.token},K,s.Z)},l=e(51806),v=e(83631),h=e(38458);function m(B){const{sizeUnit:K,sizeStep:H}=B,ie=H-2;return{sizeXXL:K*(ie+10),sizeXL:K*(ie+6),sizeLG:K*(ie+2),sizeMD:K*(ie+2),sizeMS:K*(ie+1),size:K*ie,sizeSM:K*ie,sizeXS:K*(ie-1),sizeXXS:K*(ie-1)}}var C=e(4490),S=(B,K)=>{const H=K!=null?K:(0,t.Z)(B),ie=H.fontSizeSM,ce=H.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},H),m(K!=null?K:B)),(0,C.Z)(ie)),{controlHeight:ce}),(0,h.Z)(Object.assign(Object.assign({},H),{controlHeight:ce})))},w=e(26134),y=e(67782),Z=e(66671);const F=(B,K)=>new Z.C(B).setAlpha(K).toRgbString(),R=(B,K)=>new Z.C(B).lighten(K).toHexString(),T=B=>{const K=(0,w.generate)(B,{theme:"dark"});return{1:K[0],2:K[1],3:K[2],4:K[3],5:K[6],6:K[5],7:K[4],8:K[6],9:K[5],10:K[4]}},z=(B,K)=>{const H=B||"#000",ie=K||"#fff";return{colorBgBase:H,colorTextBase:ie,colorText:F(ie,.85),colorTextSecondary:F(ie,.65),colorTextTertiary:F(ie,.45),colorTextQuaternary:F(ie,.25),colorFill:F(ie,.18),colorFillSecondary:F(ie,.12),colorFillTertiary:F(ie,.08),colorFillQuaternary:F(ie,.04),colorBgElevated:R(H,12),colorBgContainer:R(H,8),colorBgLayout:R(H,0),colorBgSpotlight:R(H,26),colorBorder:R(H,26),colorBorderSecondary:R(H,19)}};var L=(B,K)=>{const H=Object.keys(o.M).map(ce=>{const te=(0,w.generate)(B[ce],{theme:"dark"});return new Array(10).fill(1).reduce((W,G,O)=>(W[`${ce}-${O+1}`]=te[O],W[`${ce}${O+1}`]=te[O],W),{})}).reduce((ce,te)=>(ce=Object.assign(Object.assign({},ce),te),ce),{}),ie=K!=null?K:(0,t.Z)(B);return Object.assign(Object.assign(Object.assign({},ie),H),(0,y.Z)(B,{generateColorPalettes:T,generateNeutralColorPalettes:z}))};function I(){const[B,K,H]=(0,l.Z)();return{theme:B,token:K,hashId:H}}var $={defaultConfig:v.u_,defaultSeed:v.u_.token,useToken:I,defaultAlgorithm:t.Z,darkAlgorithm:L,compactAlgorithm:S,getDesignToken:c}},34966:function(M,b,e){"use strict";e.d(b,{i:function(){return i}});const i=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},57738:function(M,b,e){"use strict";e.d(b,{Z:function(){return y}});var i=e(26134),t=e(38458);function o(Z){const{sizeUnit:F,sizeStep:R}=Z;return{sizeXXL:F*(R+8),sizeXL:F*(R+4),sizeLG:F*(R+2),sizeMD:F*(R+1),sizeMS:F*R,size:F*R,sizeSM:F*(R-1),sizeXS:F*(R-2),sizeXXS:F*(R-3)}}var s=e(28378),n=e(67782),l=Z=>{let F=Z,R=Z,T=Z,z=Z;return Z<6&&Z>=5?F=Z+1:Z<16&&Z>=6?F=Z+2:Z>=16&&(F=16),Z<7&&Z>=5?R=4:Z<8&&Z>=7?R=5:Z<14&&Z>=8?R=6:Z<16&&Z>=14?R=7:Z>=16&&(R=8),Z<6&&Z>=2?T=1:Z>=6&&(T=2),Z>4&&Z<8?z=4:Z>=8&&(z=6),{borderRadius:Z>16?16:Z,borderRadiusXS:T,borderRadiusSM:R,borderRadiusLG:F,borderRadiusOuter:z}};function v(Z){const{motionUnit:F,motionBase:R,borderRadius:T,lineWidth:z}=Z;return Object.assign({motionDurationFast:`${(R+F).toFixed(1)}s`,motionDurationMid:`${(R+F*2).toFixed(1)}s`,motionDurationSlow:`${(R+F*3).toFixed(1)}s`,lineWidthBold:z+1},l(T))}var h=e(66671);const m=(Z,F)=>new h.C(Z).setAlpha(F).toRgbString(),C=(Z,F)=>new h.C(Z).darken(F).toHexString(),p=Z=>{const F=(0,i.generate)(Z);return{1:F[0],2:F[1],3:F[2],4:F[3],5:F[4],6:F[5],7:F[6],8:F[4],9:F[5],10:F[6]}},S=(Z,F)=>{const R=Z||"#fff",T=F||"#000";return{colorBgBase:R,colorTextBase:T,colorText:m(T,.88),colorTextSecondary:m(T,.65),colorTextTertiary:m(T,.45),colorTextQuaternary:m(T,.25),colorFill:m(T,.15),colorFillSecondary:m(T,.06),colorFillTertiary:m(T,.04),colorFillQuaternary:m(T,.02),colorBgLayout:C(R,4),colorBgContainer:C(R,0),colorBgElevated:C(R,0),colorBgSpotlight:m(T,.85),colorBorder:C(R,15),colorBorderSecondary:C(R,6)}};var w=e(4490);function y(Z){const F=Object.keys(s.M).map(R=>{const T=(0,i.generate)(Z[R]);return new Array(10).fill(1).reduce((z,A,L)=>(z[`${R}-${L+1}`]=T[L],z[`${R}${L+1}`]=T[L],z),{})}).reduce((R,T)=>(R=Object.assign(Object.assign({},R),T),R),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Z),F),(0,n.Z)(Z,{generateColorPalettes:p,generateNeutralColorPalettes:S})),(0,w.Z)(Z.fontSize)),o(Z)),(0,t.Z)(Z)),v(Z))}},28378:function(M,b,e){"use strict";e.d(b,{M:function(){return i}});const i={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"},t=Object.assign(Object.assign({},i),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});b.Z=t},67782:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(66671);function t(o,s){let{generateColorPalettes:n,generateNeutralColorPalettes:c}=s;const{colorSuccess:l,colorWarning:v,colorError:h,colorInfo:m,colorPrimary:C,colorBgBase:p,colorTextBase:S}=o,w=n(C),y=n(l),Z=n(v),F=n(h),R=n(m),T=c(p,S),z=o.colorLink||o.colorInfo,A=n(z);return Object.assign(Object.assign({},T),{colorPrimaryBg:w[1],colorPrimaryBgHover:w[2],colorPrimaryBorder:w[3],colorPrimaryBorderHover:w[4],colorPrimaryHover:w[5],colorPrimary:w[6],colorPrimaryActive:w[7],colorPrimaryTextHover:w[8],colorPrimaryText:w[9],colorPrimaryTextActive:w[10],colorSuccessBg:y[1],colorSuccessBgHover:y[2],colorSuccessBorder:y[3],colorSuccessBorderHover:y[4],colorSuccessHover:y[4],colorSuccess:y[6],colorSuccessActive:y[7],colorSuccessTextHover:y[8],colorSuccessText:y[9],colorSuccessTextActive:y[10],colorErrorBg:F[1],colorErrorBgHover:F[2],colorErrorBorder:F[3],colorErrorBorderHover:F[4],colorErrorHover:F[5],colorError:F[6],colorErrorActive:F[7],colorErrorTextHover:F[8],colorErrorText:F[9],colorErrorTextActive:F[10],colorWarningBg:Z[1],colorWarningBgHover:Z[2],colorWarningBorder:Z[3],colorWarningBorderHover:Z[4],colorWarningHover:Z[4],colorWarning:Z[6],colorWarningActive:Z[7],colorWarningTextHover:Z[8],colorWarningText:Z[9],colorWarningTextActive:Z[10],colorInfoBg:R[1],colorInfoBgHover:R[2],colorInfoBorder:R[3],colorInfoBorderHover:R[4],colorInfoHover:R[4],colorInfo:R[6],colorInfoActive:R[7],colorInfoTextHover:R[8],colorInfoText:R[9],colorInfoTextActive:R[10],colorLinkHover:A[4],colorLink:A[6],colorLinkActive:A[7],colorBgMask:new i.C("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}},38458:function(M,b){"use strict";const e=i=>{const{controlHeight:t}=i;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};b.Z=e},4490:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});function i(s){const n=new Array(10).fill(null).map((c,l)=>{const v=l-1,h=s*Math.pow(2.71828,v/5),m=l>1?Math.floor(h):Math.ceil(h);return Math.floor(m/2)*2});return n[1]=s,n.map(c=>{const l=c+8;return{size:c,lineHeight:l/c}})}var o=s=>{const n=i(s),c=n.map(v=>v.size),l=n.map(v=>v.lineHeight);return{fontSizeSM:c[0],fontSize:c[1],fontSizeLG:c[2],fontSizeXL:c[3],fontSizeHeading1:c[6],fontSizeHeading2:c[5],fontSizeHeading3:c[4],fontSizeHeading4:c[3],fontSizeHeading5:c[2],lineHeight:l[1],lineHeightLG:l[2],lineHeightSM:l[0],lineHeightHeading1:l[6],lineHeightHeading2:l[5],lineHeightHeading3:l[4],lineHeightHeading4:l[3],lineHeightHeading5:l[2]}}},51806:function(M,b,e){"use strict";e.d(b,{Z:function(){return h}});var i=e(57793),t=e(58757),o=e(93430),s=e(83631),n=e(28378),c=e(57634),l=function(m,C){var p={};for(var S in m)Object.prototype.hasOwnProperty.call(m,S)&&C.indexOf(S)<0&&(p[S]=m[S]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,S=Object.getOwnPropertySymbols(m);w{const S=p.getDerivativeToken(m),{override:w}=C,y=l(C,["override"]);let Z=Object.assign(Object.assign({},S),{override:w});return Z=(0,c.Z)(Z),y&&Object.entries(y).forEach(F=>{let[R,T]=F;const{theme:z}=T,A=l(T,["theme"]);let L=A;z&&(L=v(Object.assign(Object.assign({},Z),A),{override:A},z)),Z[R]=L}),Z};function h(){const{token:m,hashed:C,theme:p,components:S}=t.useContext(s.Mj),w=`${o.Z}-${C||""}`,y=p||s.uH,[Z,F]=(0,i.fp)(y,[n.Z,m],{salt:w,override:Object.assign({override:m},S),getComputedToken:v,formatToken:c.Z});return[y,Z,C?F:""]}},57634:function(M,b,e){"use strict";e.d(b,{Z:function(){return l}});var i=e(66671),t=e(28378);function o(v){return v>=0&&v<=255}function s(v,h){const{r:m,g:C,b:p,a:S}=new i.C(v).toRgb();if(S<1)return v;const{r:w,g:y,b:Z}=new i.C(h).toRgb();for(let F=.01;F<=1;F+=.01){const R=Math.round((m-w*(1-F))/F),T=Math.round((C-y*(1-F))/F),z=Math.round((p-Z*(1-F))/F);if(o(R)&&o(T)&&o(z))return new i.C({r:R,g:T,b:z,a:Math.round(F*100)/100}).toRgbString()}return new i.C({r:m,g:C,b:p,a:1}).toRgbString()}var n=s,c=function(v,h){var m={};for(var C in v)Object.prototype.hasOwnProperty.call(v,C)&&h.indexOf(C)<0&&(m[C]=v[C]);if(v!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,C=Object.getOwnPropertySymbols(v);p{delete C[z]});const p=Object.assign(Object.assign({},m),C),S=480,w=576,y=768,Z=992,F=1200,R=1600;if(p.motion===!1){const z="0s";p.motionDurationFast=z,p.motionDurationMid=z,p.motionDurationSlow=z}return Object.assign(Object.assign(Object.assign({},p),{colorFillContent:p.colorFillSecondary,colorFillContentHover:p.colorFill,colorFillAlter:p.colorFillQuaternary,colorBgContainerDisabled:p.colorFillTertiary,colorBorderBg:p.colorBgContainer,colorSplit:n(p.colorBorderSecondary,p.colorBgContainer),colorTextPlaceholder:p.colorTextQuaternary,colorTextDisabled:p.colorTextQuaternary,colorTextHeading:p.colorText,colorTextLabel:p.colorTextSecondary,colorTextDescription:p.colorTextTertiary,colorTextLightSolid:p.colorWhite,colorHighlight:p.colorError,colorBgTextHover:p.colorFillSecondary,colorBgTextActive:p.colorFill,colorIcon:p.colorTextTertiary,colorIconHover:p.colorText,colorErrorOutline:n(p.colorErrorBg,p.colorBgContainer),colorWarningOutline:n(p.colorWarningBg,p.colorBgContainer),fontSizeIcon:p.fontSizeSM,lineWidthFocus:p.lineWidth*4,lineWidth:p.lineWidth,controlOutlineWidth:p.lineWidth*2,controlInteractiveSize:p.controlHeight/2,controlItemBgHover:p.colorFillTertiary,controlItemBgActive:p.colorPrimaryBg,controlItemBgActiveHover:p.colorPrimaryBgHover,controlItemBgActiveDisabled:p.colorFill,controlTmpOutline:p.colorFillQuaternary,controlOutline:n(p.colorPrimaryBg,p.colorBgContainer),lineType:p.lineType,borderRadius:p.borderRadius,borderRadiusXS:p.borderRadiusXS,borderRadiusSM:p.borderRadiusSM,borderRadiusLG:p.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:p.sizeXXS,paddingXS:p.sizeXS,paddingSM:p.sizeSM,padding:p.size,paddingMD:p.sizeMD,paddingLG:p.sizeLG,paddingXL:p.sizeXL,paddingContentHorizontalLG:p.sizeLG,paddingContentVerticalLG:p.sizeMS,paddingContentHorizontal:p.sizeMS,paddingContentVertical:p.sizeSM,paddingContentHorizontalSM:p.size,paddingContentVerticalSM:p.sizeXS,marginXXS:p.sizeXXS,marginXS:p.sizeXS,marginSM:p.sizeSM,margin:p.size,marginMD:p.sizeMD,marginLG:p.sizeLG,marginXL:p.sizeXL,marginXXL:p.sizeXXL,boxShadow:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), @@ -391,7 +391,7 @@ http://j.mp/37Fkd5Q 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) - `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),C)}},52628:function(M,b,e){"use strict";e.d(b,{Z:function(){return h}});var i=e(58757),t=e(57793),o=e(71219),s=e(61836),n=e(78330),c=e(51806),l=e(22151),v=e(60619);function h(m,C,p,S){const w=Array.isArray(m)?m:[m,m],[y]=w,Z=w.join("-");return F=>{const[R,T,z]=(0,c.Z)(),{getPrefixCls:A,iconPrefixCls:L,csp:I}=(0,i.useContext)(s.E_),$=A(),B={theme:R,token:T,hashId:z,nonce:()=>I==null?void 0:I.nonce,clientOnly:S==null?void 0:S.clientOnly,order:-999};return(0,t.xy)(Object.assign(Object.assign({},B),{clientOnly:!1,path:["Shared",$]}),()=>[{"&":(0,n.Lx)(T)}]),(0,v.Z)(L),[(0,t.xy)(Object.assign(Object.assign({},B),{path:[Z,F,L]}),()=>{const{token:K,flush:H}=(0,l.ZP)(T),ie=Object.assign({},T[y]);if(S!=null&&S.deprecatedTokens){const{deprecatedTokens:k}=S;k.forEach(Y=>{let[P,Q]=Y;var fe;(ie!=null&&ie[P]||ie!=null&&ie[Q])&&((fe=ie[Q])!==null&&fe!==void 0||(ie[Q]=ie==null?void 0:ie[P]))})}const ce=typeof p=="function"?p((0,l.TS)(K,ie!=null?ie:{})):p,te=Object.assign(Object.assign({},ce),ie),W=`.${F}`,G=(0,l.TS)(K,{componentCls:W,prefixCls:F,iconCls:`.${L}`,antCls:`.${$}`},te),O=C(G,{hashId:z,prefixCls:F,rootPrefixCls:$,iconPrefixCls:L,overrideComponentToken:ie});return H(y,te),[(S==null?void 0:S.resetStyle)===!1?null:(0,n.du)(T,F),O]}),z]}}},98251:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(34966);function t(o,s){return i.i.reduce((n,c)=>{const l=o[`${c}1`],v=o[`${c}3`],h=o[`${c}6`],m=o[`${c}7`];return Object.assign(Object.assign({},n),s(c,{lightColor:l,lightBorderColor:v,darkColor:h,textColor:m}))},{})}},22151:function(M,b,e){"use strict";e.d(b,{TS:function(){return o},ZP:function(){return l}});const i=typeof CSSINJS_STATISTIC!="undefined";let t=!0;function o(){for(var v=arguments.length,h=new Array(v),m=0;m{Object.keys(p).forEach(w=>{Object.defineProperty(C,w,{configurable:!0,enumerable:!0,get:()=>p[w]})})}),t=!0,C}const s={},n={};function c(){}function l(v){let h,m=v,C=c;return i&&(h=new Set,m=new Proxy(v,{get(p,S){return t&&h.add(S),p[S]}}),C=(p,S)=>{var w;s[p]={global:Array.from(h),component:Object.assign(Object.assign({},(w=s[p])===null||w===void 0?void 0:w.component),S)}}),{token:m,keys:h,flush:C}}},60619:function(M,b,e){"use strict";var i=e(57793),t=e(78330),o=e(51806);const s=(n,c)=>{const[l,v]=(0,o.Z)();return(0,i.xy)({theme:l,token:v,hashId:"",path:["ant-design-icons",n],nonce:()=>c==null?void 0:c.nonce},()=>[{[`.${n}`]:Object.assign(Object.assign({},(0,t.Ro)()),{[`.${n} .${n}-icon`]:{display:"block"}})}])};b.Z=s},38107:function(M,b){"use strict";const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};b.Z=e},74820:function(M,b,e){"use strict";e.d(b,{Z:function(){return ce}});var i=e(87608),t=e.n(i),o=e(33664),s=e(60409),n=e(58757),c=e(90881),l=e(95446),v=e(37047),h=e(61836),m=e(43528),C=e(22802),p=e(78330),S=e(28107),w=e(24542),y=e(98251),Z=e(22151),F=e(52628);const R=te=>{const{componentCls:W,tooltipMaxWidth:G,tooltipColor:O,tooltipBg:k,tooltipBorderRadius:Y,zIndexPopup:P,controlHeight:Q,boxShadowSecondary:fe,paddingSM:Ce,paddingXS:ge,tooltipRadiusOuter:Me}=te;return[{[W]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(te)),{position:"absolute",zIndex:P,display:"block",width:"max-content",maxWidth:G,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":k,[`${W}-inner`]:{minWidth:Q,minHeight:Q,padding:`${Ce/2}px ${ge}px`,color:O,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:k,borderRadius:Y,boxShadow:fe,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${W}-inner`]:{borderRadius:Math.min(Y,w.qN)}},[`${W}-content`]:{position:"relative"}}),(0,y.Z)(te,(Re,Qe)=>{let{darkColor:Ve}=Qe;return{[`&${W}-${Re}`]:{[`${W}-inner`]:{backgroundColor:Ve},[`${W}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,w.ZP)((0,Z.TS)(te,{borderRadiusOuter:Me}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Y,limitVerticalRadius:!0}),{[`${W}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow}}]};var T=(te,W)=>(0,F.Z)("Tooltip",O=>{if(W===!1)return[];const{borderRadius:k,colorTextLightSolid:Y,colorBgDefault:P,borderRadiusOuter:Q}=O,fe=(0,Z.TS)(O,{tooltipMaxWidth:250,tooltipColor:Y,tooltipBorderRadius:k,tooltipBg:P,tooltipRadiusOuter:Q>4?4:Q});return[R(fe),(0,S._y)(O,"zoom-big-fast")]},O=>{let{zIndexPopupBase:k,colorBgSpotlight:Y}=O;return{zIndexPopup:k+70,colorBgDefault:Y}},{resetStyle:!1})(te),z=e(1878);function A(te,W){const G=(0,z.o2)(W),O=t()({[`${te}-${W}`]:W&&G}),k={},Y={};return W&&!G&&(k.background=W,Y["--antd-arrow-background-color"]=W),{className:O,overlayStyle:k,arrowStyle:Y}}var I=te=>{const{prefixCls:W,className:G,placement:O="top",title:k,color:Y,overlayInnerStyle:P}=te,{getPrefixCls:Q}=n.useContext(h.E_),fe=Q("tooltip",W),[Ce,ge]=T(fe,!0),Me=A(fe,Y),Re=Me.arrowStyle,Qe=Object.assign(Object.assign({},P),Me.overlayStyle),Ve=t()(ge,fe,`${fe}-pure`,`${fe}-placement-${O}`,G,Me.className);return Ce(n.createElement("div",{className:Ve,style:Re},n.createElement("div",{className:`${fe}-arrow`}),n.createElement(o.G,Object.assign({},te,{className:ge,prefixCls:fe,overlayInnerStyle:Qe}),k)))},$=function(te,W){var G={};for(var O in te)Object.prototype.hasOwnProperty.call(te,O)&&W.indexOf(O)<0&&(G[O]=te[O]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,O=Object.getOwnPropertySymbols(te);k{const G={},O=Object.assign({},te);return W.forEach(k=>{te&&k in te&&(G[k]=te[k],delete O[k])}),{picked:G,omitted:O}};function H(te,W){const G=te.type;if((G.__ANT_BUTTON===!0||te.type==="button")&&te.props.disabled||G.__ANT_SWITCH===!0&&(te.props.disabled||te.props.loading)||G.__ANT_RADIO===!0&&te.props.disabled){const{picked:O,omitted:k}=K(te.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Y=Object.assign(Object.assign({display:"inline-block"},O),{cursor:"not-allowed",width:te.props.block?"100%":void 0}),P=Object.assign(Object.assign({},k),{pointerEvents:"none"}),Q=(0,v.Tm)(te,{style:P,className:null});return n.createElement("span",{style:Y,className:t()(te.props.className,`${W}-disabled-compatible-wrapper`)},Q)}return te}const ie=n.forwardRef((te,W)=>{var G,O;const{prefixCls:k,openClassName:Y,getTooltipContainer:P,overlayClassName:Q,color:fe,overlayInnerStyle:Ce,children:ge,afterOpenChange:Me,afterVisibleChange:Re,destroyTooltipOnHide:Qe,arrow:Ve=!0,title:qe,overlay:Mt,builtinPlacements:wt,arrowPointAtCenter:mt=!1,autoAdjustOverflow:Nt=!0}=te,ke=!!Ve,{token:He}=B(),{getPopupContainer:et,getPrefixCls:Fe,direction:ue}=n.useContext(h.E_),V=n.useRef(null),U=()=>{var dt;(dt=V.current)===null||dt===void 0||dt.forceAlign()};n.useImperativeHandle(W,()=>({forceAlign:U,forcePopupAlign:()=>{U()}}));const[N,D]=(0,s.Z)(!1,{value:(G=te.open)!==null&&G!==void 0?G:te.visible,defaultValue:(O=te.defaultOpen)!==null&&O!==void 0?O:te.defaultVisible}),ee=!qe&&!Mt&&qe!==0,se=dt=>{var bt,ft;D(ee?!1:dt),ee||((bt=te.onOpenChange)===null||bt===void 0||bt.call(te,dt),(ft=te.onVisibleChange)===null||ft===void 0||ft.call(te,dt))},X=n.useMemo(()=>{var dt,bt;let ft=mt;return typeof Ve=="object"&&(ft=(bt=(dt=Ve.pointAtCenter)!==null&&dt!==void 0?dt:Ve.arrowPointAtCenter)!==null&&bt!==void 0?bt:mt),wt||(0,l.Z)({arrowPointAtCenter:ft,autoAdjustOverflow:Nt,arrowWidth:ke?He.sizePopupArrow:0,borderRadius:He.borderRadius,offset:He.marginXXS,visibleFirst:!0})},[mt,Ve,wt,He]),re=n.useMemo(()=>qe===0?qe:Mt||qe||"",[Mt,qe]),Ie=n.createElement(m.BR,null,typeof re=="function"?re():re),{getPopupContainer:Se,placement:he="top",mouseEnterDelay:We=.1,mouseLeaveDelay:de=.1,overlayStyle:le,rootClassName:ve}=te,xe=$(te,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ze=Fe("tooltip",k),pe=Fe(),Je=te["data-popover-inject"];let Ae=N;!("open"in te)&&!("visible"in te)&&ee&&(Ae=!1);const oe=H((0,v.l$)(ge)&&!(0,v.M2)(ge)?ge:n.createElement("span",null,ge),Ze),ye=oe.props,Be=!ye.className||typeof ye.className=="string"?t()(ye.className,Y||`${Ze}-open`):ye.className,[De,Pe]=T(Ze,!Je),we=A(Ze,fe),Le=we.arrowStyle,Ye=Object.assign(Object.assign({},Ce),we.overlayStyle),Ue=t()(Q,{[`${Ze}-rtl`]:ue==="rtl"},we.className,ve,Pe);return De(n.createElement(o.Z,Object.assign({},xe,{showArrow:ke,placement:he,mouseEnterDelay:We,mouseLeaveDelay:de,prefixCls:Ze,overlayClassName:Ue,overlayStyle:Object.assign(Object.assign({},Le),le),getTooltipContainer:Se||P||et,ref:V,builtinPlacements:X,overlay:Ie,visible:Ae,onVisibleChange:se,afterVisibleChange:Me!=null?Me:Re,overlayInnerStyle:Ye,arrowContent:n.createElement("span",{className:`${Ze}-arrow-content`}),motion:{motionName:(0,c.m)(pe,"zoom-big-fast",te.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Qe}),Ae?(0,v.Tm)(oe,{className:Be}):oe))});ie._InternalPanelDoNotUseOrYouWillBeFired=I;var ce=ie},93430:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i="5.8.5",t=i},78635:function(M,b,e){"use strict";e.d(b,{Z:function(){return U}});var i=e(73656);function t(){return t=Object.assign?Object.assign.bind():function(N){for(var D=1;D1?D-1:0),se=1;se=re)return Se;switch(Se){case"%s":return String(ee[X++]);case"%d":return Number(ee[X++]);case"%j":try{return JSON.stringify(ee[X++])}catch(he){return"[Circular]"}break;default:return Se}});return Ie}return N}function w(N){return N==="string"||N==="url"||N==="hex"||N==="email"||N==="date"||N==="pattern"}function y(N,D){return!!(N==null||D==="array"&&Array.isArray(N)&&!N.length||w(D)&&typeof N=="string"&&!N)}function Z(N,D,ee){var se=[],X=0,re=N.length;function Ie(Se){se.push.apply(se,Se||[]),X++,X===re&&ee(se)}N.forEach(function(Se){D(Se,Ie)})}function F(N,D,ee){var se=0,X=N.length;function re(Ie){if(Ie&&Ie.length){ee(Ie);return}var Se=se;se=se+1,Se{const[R,T,z]=(0,c.Z)(),{getPrefixCls:A,iconPrefixCls:L,csp:I}=(0,i.useContext)(s.E_),$=A(),B={theme:R,token:T,hashId:z,nonce:()=>I==null?void 0:I.nonce,clientOnly:S==null?void 0:S.clientOnly,order:-999};return(0,t.xy)(Object.assign(Object.assign({},B),{clientOnly:!1,path:["Shared",$]}),()=>[{"&":(0,n.Lx)(T)}]),(0,v.Z)(L),[(0,t.xy)(Object.assign(Object.assign({},B),{path:[Z,F,L]}),()=>{const{token:K,flush:H}=(0,l.ZP)(T),ie=Object.assign({},T[y]);if(S!=null&&S.deprecatedTokens){const{deprecatedTokens:k}=S;k.forEach(Y=>{let[P,Q]=Y;var fe;(ie!=null&&ie[P]||ie!=null&&ie[Q])&&((fe=ie[Q])!==null&&fe!==void 0||(ie[Q]=ie==null?void 0:ie[P]))})}const ce=typeof p=="function"?p((0,l.TS)(K,ie!=null?ie:{})):p,te=Object.assign(Object.assign({},ce),ie),W=`.${F}`,G=(0,l.TS)(K,{componentCls:W,prefixCls:F,iconCls:`.${L}`,antCls:`.${$}`},te),O=C(G,{hashId:z,prefixCls:F,rootPrefixCls:$,iconPrefixCls:L,overrideComponentToken:ie});return H(y,te),[(S==null?void 0:S.resetStyle)===!1?null:(0,n.du)(T,F),O]}),z]}}},98251:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(34966);function t(o,s){return i.i.reduce((n,c)=>{const l=o[`${c}1`],v=o[`${c}3`],h=o[`${c}6`],m=o[`${c}7`];return Object.assign(Object.assign({},n),s(c,{lightColor:l,lightBorderColor:v,darkColor:h,textColor:m}))},{})}},22151:function(M,b,e){"use strict";e.d(b,{TS:function(){return o},ZP:function(){return l}});const i=typeof CSSINJS_STATISTIC!="undefined";let t=!0;function o(){for(var v=arguments.length,h=new Array(v),m=0;m{Object.keys(p).forEach(w=>{Object.defineProperty(C,w,{configurable:!0,enumerable:!0,get:()=>p[w]})})}),t=!0,C}const s={},n={};function c(){}function l(v){let h,m=v,C=c;return i&&(h=new Set,m=new Proxy(v,{get(p,S){return t&&h.add(S),p[S]}}),C=(p,S)=>{var w;s[p]={global:Array.from(h),component:Object.assign(Object.assign({},(w=s[p])===null||w===void 0?void 0:w.component),S)}}),{token:m,keys:h,flush:C}}},60619:function(M,b,e){"use strict";var i=e(57793),t=e(78330),o=e(51806);const s=(n,c)=>{const[l,v]=(0,o.Z)();return(0,i.xy)({theme:l,token:v,hashId:"",path:["ant-design-icons",n],nonce:()=>c==null?void 0:c.nonce},()=>[{[`.${n}`]:Object.assign(Object.assign({},(0,t.Ro)()),{[`.${n} .${n}-icon`]:{display:"block"}})}])};b.Z=s},38107:function(M,b){"use strict";const e={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};b.Z=e},74820:function(M,b,e){"use strict";e.d(b,{Z:function(){return ce}});var i=e(87608),t=e.n(i),o=e(33664),s=e(60409),n=e(58757),c=e(90881),l=e(95446),v=e(37047),h=e(61836),m=e(43528),C=e(22802),p=e(78330),S=e(28107),w=e(24542),y=e(98251),Z=e(22151),F=e(52628);const R=te=>{const{componentCls:W,tooltipMaxWidth:G,tooltipColor:O,tooltipBg:k,tooltipBorderRadius:Y,zIndexPopup:P,controlHeight:Q,boxShadowSecondary:fe,paddingSM:Ce,paddingXS:ge,tooltipRadiusOuter:Me}=te;return[{[W]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,p.Wf)(te)),{position:"absolute",zIndex:P,display:"block",width:"max-content",maxWidth:G,visibility:"visible",transformOrigin:"var(--arrow-x, 50%) var(--arrow-y, 50%)","&-hidden":{display:"none"},"--antd-arrow-background-color":k,[`${W}-inner`]:{minWidth:Q,minHeight:Q,padding:`${Ce/2}px ${ge}px`,color:O,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:k,borderRadius:Y,boxShadow:fe,boxSizing:"border-box"},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${W}-inner`]:{borderRadius:Math.min(Y,w.qN)}},[`${W}-content`]:{position:"relative"}}),(0,y.Z)(te,(Ne,Qe)=>{let{darkColor:Ve}=Qe;return{[`&${W}-${Ne}`]:{[`${W}-inner`]:{backgroundColor:Ve},[`${W}-arrow`]:{"--antd-arrow-background-color":Ve}}}})),{"&-rtl":{direction:"rtl"}})},(0,w.ZP)((0,Z.TS)(te,{borderRadiusOuter:Me}),{colorBg:"var(--antd-arrow-background-color)",contentRadius:Y,limitVerticalRadius:!0}),{[`${W}-pure`]:{position:"relative",maxWidth:"none",margin:te.sizePopupArrow}}]};var T=(te,W)=>(0,F.Z)("Tooltip",O=>{if(W===!1)return[];const{borderRadius:k,colorTextLightSolid:Y,colorBgDefault:P,borderRadiusOuter:Q}=O,fe=(0,Z.TS)(O,{tooltipMaxWidth:250,tooltipColor:Y,tooltipBorderRadius:k,tooltipBg:P,tooltipRadiusOuter:Q>4?4:Q});return[R(fe),(0,S._y)(O,"zoom-big-fast")]},O=>{let{zIndexPopupBase:k,colorBgSpotlight:Y}=O;return{zIndexPopup:k+70,colorBgDefault:Y}},{resetStyle:!1})(te),z=e(1878);function A(te,W){const G=(0,z.o2)(W),O=t()({[`${te}-${W}`]:W&&G}),k={},Y={};return W&&!G&&(k.background=W,Y["--antd-arrow-background-color"]=W),{className:O,overlayStyle:k,arrowStyle:Y}}var I=te=>{const{prefixCls:W,className:G,placement:O="top",title:k,color:Y,overlayInnerStyle:P}=te,{getPrefixCls:Q}=n.useContext(h.E_),fe=Q("tooltip",W),[Ce,ge]=T(fe,!0),Me=A(fe,Y),Ne=Me.arrowStyle,Qe=Object.assign(Object.assign({},P),Me.overlayStyle),Ve=t()(ge,fe,`${fe}-pure`,`${fe}-placement-${O}`,G,Me.className);return Ce(n.createElement("div",{className:Ve,style:Ne},n.createElement("div",{className:`${fe}-arrow`}),n.createElement(o.G,Object.assign({},te,{className:ge,prefixCls:fe,overlayInnerStyle:Qe}),k)))},$=function(te,W){var G={};for(var O in te)Object.prototype.hasOwnProperty.call(te,O)&&W.indexOf(O)<0&&(G[O]=te[O]);if(te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,O=Object.getOwnPropertySymbols(te);k{const G={},O=Object.assign({},te);return W.forEach(k=>{te&&k in te&&(G[k]=te[k],delete O[k])}),{picked:G,omitted:O}};function H(te,W){const G=te.type;if((G.__ANT_BUTTON===!0||te.type==="button")&&te.props.disabled||G.__ANT_SWITCH===!0&&(te.props.disabled||te.props.loading)||G.__ANT_RADIO===!0&&te.props.disabled){const{picked:O,omitted:k}=K(te.props.style,["position","left","right","top","bottom","float","display","zIndex"]),Y=Object.assign(Object.assign({display:"inline-block"},O),{cursor:"not-allowed",width:te.props.block?"100%":void 0}),P=Object.assign(Object.assign({},k),{pointerEvents:"none"}),Q=(0,v.Tm)(te,{style:P,className:null});return n.createElement("span",{style:Y,className:t()(te.props.className,`${W}-disabled-compatible-wrapper`)},Q)}return te}const ie=n.forwardRef((te,W)=>{var G,O;const{prefixCls:k,openClassName:Y,getTooltipContainer:P,overlayClassName:Q,color:fe,overlayInnerStyle:Ce,children:ge,afterOpenChange:Me,afterVisibleChange:Ne,destroyTooltipOnHide:Qe,arrow:Ve=!0,title:qe,overlay:Mt,builtinPlacements:wt,arrowPointAtCenter:gt=!1,autoAdjustOverflow:Lt=!0}=te,ke=!!Ve,{token:He}=B(),{getPopupContainer:et,getPrefixCls:Fe,direction:ue}=n.useContext(h.E_),V=n.useRef(null),U=()=>{var dt;(dt=V.current)===null||dt===void 0||dt.forceAlign()};n.useImperativeHandle(W,()=>({forceAlign:U,forcePopupAlign:()=>{U()}}));const[N,D]=(0,s.Z)(!1,{value:(G=te.open)!==null&&G!==void 0?G:te.visible,defaultValue:(O=te.defaultOpen)!==null&&O!==void 0?O:te.defaultVisible}),ee=!qe&&!Mt&&qe!==0,se=dt=>{var bt,ft;D(ee?!1:dt),ee||((bt=te.onOpenChange)===null||bt===void 0||bt.call(te,dt),(ft=te.onVisibleChange)===null||ft===void 0||ft.call(te,dt))},X=n.useMemo(()=>{var dt,bt;let ft=gt;return typeof Ve=="object"&&(ft=(bt=(dt=Ve.pointAtCenter)!==null&&dt!==void 0?dt:Ve.arrowPointAtCenter)!==null&&bt!==void 0?bt:gt),wt||(0,l.Z)({arrowPointAtCenter:ft,autoAdjustOverflow:Lt,arrowWidth:ke?He.sizePopupArrow:0,borderRadius:He.borderRadius,offset:He.marginXXS,visibleFirst:!0})},[gt,Ve,wt,He]),re=n.useMemo(()=>qe===0?qe:Mt||qe||"",[Mt,qe]),Ie=n.createElement(m.BR,null,typeof re=="function"?re():re),{getPopupContainer:Se,placement:he="top",mouseEnterDelay:We=.1,mouseLeaveDelay:de=.1,overlayStyle:le,rootClassName:ve}=te,xe=$(te,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),Ze=Fe("tooltip",k),pe=Fe(),Je=te["data-popover-inject"];let Ae=N;!("open"in te)&&!("visible"in te)&&ee&&(Ae=!1);const oe=H((0,v.l$)(ge)&&!(0,v.M2)(ge)?ge:n.createElement("span",null,ge),Ze),ye=oe.props,Be=!ye.className||typeof ye.className=="string"?t()(ye.className,Y||`${Ze}-open`):ye.className,[De,Pe]=T(Ze,!Je),we=A(Ze,fe),Le=we.arrowStyle,Ye=Object.assign(Object.assign({},Ce),we.overlayStyle),Ue=t()(Q,{[`${Ze}-rtl`]:ue==="rtl"},we.className,ve,Pe);return De(n.createElement(o.Z,Object.assign({},xe,{showArrow:ke,placement:he,mouseEnterDelay:We,mouseLeaveDelay:de,prefixCls:Ze,overlayClassName:Ue,overlayStyle:Object.assign(Object.assign({},Le),le),getTooltipContainer:Se||P||et,ref:V,builtinPlacements:X,overlay:Ie,visible:Ae,onVisibleChange:se,afterVisibleChange:Me!=null?Me:Ne,overlayInnerStyle:Ye,arrowContent:n.createElement("span",{className:`${Ze}-arrow-content`}),motion:{motionName:(0,c.m)(pe,"zoom-big-fast",te.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!Qe}),Ae?(0,v.Tm)(oe,{className:Be}):oe))});ie._InternalPanelDoNotUseOrYouWillBeFired=I;var ce=ie},93430:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i="5.8.5",t=i},78635:function(M,b,e){"use strict";e.d(b,{Z:function(){return U}});var i=e(73656);function t(){return t=Object.assign?Object.assign.bind():function(N){for(var D=1;D1?D-1:0),se=1;se=re)return Se;switch(Se){case"%s":return String(ee[X++]);case"%d":return Number(ee[X++]);case"%j":try{return JSON.stringify(ee[X++])}catch(he){return"[Circular]"}break;default:return Se}});return Ie}return N}function w(N){return N==="string"||N==="url"||N==="hex"||N==="email"||N==="date"||N==="pattern"}function y(N,D){return!!(N==null||D==="array"&&Array.isArray(N)&&!N.length||w(D)&&typeof N=="string"&&!N)}function Z(N,D,ee){var se=[],X=0,re=N.length;function Ie(Se){se.push.apply(se,Se||[]),X++,X===re&&ee(se)}N.forEach(function(Se){D(Se,Ie)})}function F(N,D,ee){var se=0,X=N.length;function re(Ie){if(Ie&&Ie.length){ee(Ie);return}var Se=se;se=se+1,Se()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},te={integer:function(D){return te.number(D)&&parseInt(D,10)===D},float:function(D){return te.number(D)&&!te.integer(D)},array:function(D){return Array.isArray(D)},regexp:function(D){if(D instanceof RegExp)return!0;try{return!!new RegExp(D)}catch(ee){return!1}},date:function(D){return typeof D.getTime=="function"&&typeof D.getMonth=="function"&&typeof D.getYear=="function"&&!isNaN(D.getTime())},number:function(D){return isNaN(D)?!1:typeof D=="number"},object:function(D){return typeof D=="object"&&!te.array(D)},method:function(D){return typeof D=="function"},email:function(D){return typeof D=="string"&&D.length<=320&&!!D.match(ce.email)},url:function(D){return typeof D=="string"&&D.length<=2048&&!!D.match(ie())},hex:function(D){return typeof D=="string"&&!!D.match(ce.hex)}},W=function(D,ee,se,X,re){if(D.required&&ee===void 0){B(D,ee,se,X,re);return}var Ie=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Se=D.type;Ie.indexOf(Se)>-1?te[Se](ee)||X.push(S(re.messages.types[Se],D.fullField,D.type)):Se&&typeof ee!==D.type&&X.push(S(re.messages.types[Se],D.fullField,D.type))},G=function(D,ee,se,X,re){var Ie=typeof D.len=="number",Se=typeof D.min=="number",he=typeof D.max=="number",We=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,de=ee,le=null,ve=typeof ee=="number",xe=typeof ee=="string",Ze=Array.isArray(ee);if(ve?le="number":xe?le="string":Ze&&(le="array"),!le)return!1;Ze&&(de=ee.length),xe&&(de=ee.replace(We,"_").length),Ie?de!==D.len&&X.push(S(re.messages[le].len,D.fullField,D.len)):Se&&!he&&deD.max?X.push(S(re.messages[le].max,D.fullField,D.max)):Se&&he&&(deD.max)&&X.push(S(re.messages[le].range,D.fullField,D.min,D.max))},O="enum",k=function(D,ee,se,X,re){D[O]=Array.isArray(D[O])?D[O]:[],D[O].indexOf(ee)===-1&&X.push(S(re.messages[O],D.fullField,D[O].join(", ")))},Y=function(D,ee,se,X,re){if(D.pattern){if(D.pattern instanceof RegExp)D.pattern.lastIndex=0,D.pattern.test(ee)||X.push(S(re.messages.pattern.mismatch,D.fullField,ee,D.pattern));else if(typeof D.pattern=="string"){var Ie=new RegExp(D.pattern);Ie.test(ee)||X.push(S(re.messages.pattern.mismatch,D.fullField,ee,D.pattern))}}},P={required:B,whitespace:K,type:W,range:G,enum:k,pattern:Y},Q=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"string")&&!D.required)return se();P.required(D,ee,X,Ie,re,"string"),y(ee,"string")||(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re),P.pattern(D,ee,X,Ie,re),D.whitespace===!0&&P.whitespace(D,ee,X,Ie,re))}se(Ie)},fe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Ce=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(ee===""&&(ee=void 0),y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},ge=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Me=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),y(ee)||P.type(D,ee,X,Ie,re)}se(Ie)},Re=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},Qe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},Ve=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(ee==null&&!D.required)return se();P.required(D,ee,X,Ie,re,"array"),ee!=null&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},qe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Mt="enum",wt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P[Mt](D,ee,X,Ie,re)}se(Ie)},mt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"string")&&!D.required)return se();P.required(D,ee,X,Ie,re),y(ee,"string")||P.pattern(D,ee,X,Ie,re)}se(Ie)},Nt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"date")&&!D.required)return se();if(P.required(D,ee,X,Ie,re),!y(ee,"date")){var he;ee instanceof Date?he=ee:he=new Date(ee),P.type(D,he,X,Ie,re),he&&P.range(D,he.getTime(),X,Ie,re)}}se(Ie)},ke=function(D,ee,se,X,re){var Ie=[],Se=Array.isArray(ee)?"array":typeof ee;P.required(D,ee,X,Ie,re,Se),se(Ie)},He=function(D,ee,se,X,re){var Ie=D.type,Se=[],he=D.required||!D.required&&X.hasOwnProperty(D.field);if(he){if(y(ee,Ie)&&!D.required)return se();P.required(D,ee,X,Se,re,Ie),y(ee,Ie)||P.type(D,ee,X,Se,re)}se(Se)},et=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re)}se(Ie)},Fe={string:Q,method:fe,number:Ce,boolean:ge,regexp:Me,integer:Re,float:Qe,array:Ve,object:qe,enum:wt,pattern:mt,date:Nt,url:He,hex:He,email:He,required:ke,any:et};function ue(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var D=JSON.parse(JSON.stringify(this));return D.clone=this.clone,D}}}var V=ue(),U=function(){function N(ee){this.rules=null,this._messages=V,this.define(ee)}var D=N.prototype;return D.define=function(se){var X=this;if(!se)throw new Error("Cannot configure a schema with no rules");if(typeof se!="object"||Array.isArray(se))throw new Error("Rules must be an object");this.rules={},Object.keys(se).forEach(function(re){var Ie=se[re];X.rules[re]=Array.isArray(Ie)?Ie:[Ie]})},D.messages=function(se){return se&&(this._messages=$(ue(),se)),this._messages},D.validate=function(se,X,re){var Ie=this;X===void 0&&(X={}),re===void 0&&(re=function(){});var Se=se,he=X,We=re;if(typeof he=="function"&&(We=he,he={}),!this.rules||Object.keys(this.rules).length===0)return We&&We(null,Se),Promise.resolve(Se);function de(pe){var Je=[],Ae={};function oe(Be){if(Array.isArray(Be)){var De;Je=(De=Je).concat.apply(De,Be)}else Je.push(Be)}for(var ye=0;ye=200&&S<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};t.forEach(["delete","get","head"],function(S){C.headers[S]={}}),t.forEach(["post","put","patch"],function(S){C.headers[S]=t.merge(l)}),M.exports=C},30872:function(M){"use strict";M.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},93424:function(M){M.exports={version:"0.27.2"}},22154:function(M){"use strict";M.exports=function(e,i){return function(){for(var o=new Array(arguments.length),s=0;s=0)return;c==="set-cookie"?n[c]=(n[c]?n[c]:[]).concat([l]):n[c]=n[c]?n[c]+", "+l:l}}),n}},17437:function(M){"use strict";M.exports=function(e){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return i&&i[1]||""}},64476:function(M){"use strict";M.exports=function(e){return function(t){return e.apply(null,t)}}},90792:function(M,b,e){"use strict";var i=e(21468).lW,t=e(82774);function o(s,n){n=n||new FormData;var c=[];function l(h){return h===null?"":t.isDate(h)?h.toISOString():t.isArrayBuffer(h)||t.isTypedArray(h)?typeof Blob=="function"?new Blob([h]):i.from(h):h}function v(h,m){if(t.isPlainObject(h)||t.isArray(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+m);c.push(h),t.forEach(h,function(p,S){if(!t.isUndefined(p)){var w=m?m+"."+S:S,y;if(p&&!m&&typeof p=="object"){if(t.endsWith(S,"{}"))p=JSON.stringify(p);else if(t.endsWith(S,"[]")&&(y=t.toArray(p))){y.forEach(function(Z){!t.isUndefined(Z)&&n.append(w,l(Z))});return}}v(p,w)}}),c.pop()}else n.append(m,l(h))}return v(s),n}M.exports=o},73215:function(M,b,e){"use strict";var i=e(93424).version,t=e(44936),o={};["object","boolean","number","function","string","symbol"].forEach(function(c,l){o[c]=function(h){return typeof h===c||"a"+(l<1?"n ":" ")+c}});var s={};o.transitional=function(l,v,h){function m(C,p){return"[Axios v"+i+"] Transitional option '"+C+"'"+p+(h?". "+h:"")}return function(C,p,S){if(l===!1)throw new t(m(p," has been removed"+(v?" in "+v:"")),t.ERR_DEPRECATED);return v&&!s[p]&&(s[p]=!0,console.warn(m(p," has been deprecated since v"+v+" and will be removed in the near future"))),l?l(C,p,S):!0}};function n(c,l,v){if(typeof c!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var h=Object.keys(c),m=h.length;m-- >0;){var C=h[m],p=l[C];if(p){var S=c[C],w=S===void 0||p(S,C,c);if(w!==!0)throw new t("option "+C+" must be "+w,t.ERR_BAD_OPTION_VALUE);continue}if(v!==!0)throw new t("Unknown option "+C,t.ERR_BAD_OPTION)}}M.exports={assertOptions:n,validators:o}},82774:function(M,b,e){"use strict";var i=e(22154),t=Object.prototype.toString,o=function(O){return function(k){var Y=t.call(k);return O[Y]||(O[Y]=Y.slice(8,-1).toLowerCase())}}(Object.create(null));function s(O){return O=O.toLowerCase(),function(Y){return o(Y)===O}}function n(O){return Array.isArray(O)}function c(O){return typeof O=="undefined"}function l(O){return O!==null&&!c(O)&&O.constructor!==null&&!c(O.constructor)&&typeof O.constructor.isBuffer=="function"&&O.constructor.isBuffer(O)}var v=s("ArrayBuffer");function h(O){var k;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?k=ArrayBuffer.isView(O):k=O&&O.buffer&&v(O.buffer),k}function m(O){return typeof O=="string"}function C(O){return typeof O=="number"}function p(O){return O!==null&&typeof O=="object"}function S(O){if(o(O)!=="object")return!1;var k=Object.getPrototypeOf(O);return k===null||k===Object.prototype}var w=s("Date"),y=s("File"),Z=s("Blob"),F=s("FileList");function R(O){return t.call(O)==="[object Function]"}function T(O){return p(O)&&R(O.pipe)}function z(O){var k="[object FormData]";return O&&(typeof FormData=="function"&&O instanceof FormData||t.call(O)===k||R(O.toString)&&O.toString()===k)}var A=s("URLSearchParams");function L(O){return O.trim?O.trim():O.replace(/^\s+|\s+$/g,"")}function I(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $(O,k){if(!(O===null||typeof O=="undefined"))if(typeof O!="object"&&(O=[O]),n(O))for(var Y=0,P=O.length;Y0;)fe=P[Q],Ce[fe]||(k[fe]=O[fe],Ce[fe]=!0);O=Object.getPrototypeOf(O)}while(O&&(!Y||Y(O,k))&&O!==Object.prototype);return k}function te(O,k,Y){O=String(O),(Y===void 0||Y>O.length)&&(Y=O.length),Y-=k.length;var P=O.indexOf(k,Y);return P!==-1&&P===Y}function W(O){if(!O)return null;var k=O.length;if(c(k))return null;for(var Y=new Array(k);k-- >0;)Y[k]=O[k];return Y}var G=function(O){return function(k){return O&&k instanceof O}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array));M.exports={isArray:n,isArrayBuffer:v,isBuffer:l,isFormData:z,isArrayBufferView:h,isString:m,isNumber:C,isObject:p,isPlainObject:S,isUndefined:c,isDate:w,isFile:y,isBlob:Z,isFunction:R,isStream:T,isURLSearchParams:A,isStandardBrowserEnv:I,forEach:$,merge:B,extend:K,trim:L,stripBOM:H,inherits:ie,toFlatObject:ce,kindOf:o,kindOfTest:s,endsWith:te,toArray:W,isTypedArray:G,isFileList:F}},26446:function(M,b){"use strict";b.byteLength=l,b.toByteArray=h,b.fromByteArray=p;for(var e=[],i=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,n=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var y=S.indexOf("=");y===-1&&(y=w);var Z=y===w?0:4-y%4;return[y,Z]}function l(S){var w=c(S),y=w[0],Z=w[1];return(y+Z)*3/4-Z}function v(S,w,y){return(w+y)*3/4-y}function h(S){var w,y=c(S),Z=y[0],F=y[1],R=new t(v(S,Z,F)),T=0,z=F>0?Z-4:Z,A;for(A=0;A>16&255,R[T++]=w>>8&255,R[T++]=w&255;return F===2&&(w=i[S.charCodeAt(A)]<<2|i[S.charCodeAt(A+1)]>>4,R[T++]=w&255),F===1&&(w=i[S.charCodeAt(A)]<<10|i[S.charCodeAt(A+1)]<<4|i[S.charCodeAt(A+2)]>>2,R[T++]=w>>8&255,R[T++]=w&255),R}function m(S){return e[S>>18&63]+e[S>>12&63]+e[S>>6&63]+e[S&63]}function C(S,w,y){for(var Z,F=[],R=w;Rz?z:T+R));return Z===1?(w=S[y-1],F.push(e[w>>2]+e[w<<4&63]+"==")):Z===2&&(w=(S[y-2]<<8)+S[y-1],F.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),F.join("")}},21468:function(M,b,e){"use strict";var i;var t=e(26446),o=e(47164),s=e(23161);b.lW=v,i=R,b.h2=50,v.TYPED_ARRAY_SUPPORT=e.g.TYPED_ARRAY_SUPPORT!==void 0?e.g.TYPED_ARRAY_SUPPORT:n(),i=c();function n(){try{var V=new Uint8Array(1);return V.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},V.foo()===42&&typeof V.subarray=="function"&&V.subarray(1,1).byteLength===0}catch(U){return!1}}function c(){return v.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(V,U){if(c()=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return V|0}function R(V){return+V!=V&&(V=0),v.alloc(+V)}v.isBuffer=function(U){return!!(U!=null&&U._isBuffer)},v.compare=function(U,N){if(!v.isBuffer(U)||!v.isBuffer(N))throw new TypeError("Arguments must be Buffers");if(U===N)return 0;for(var D=U.length,ee=N.length,se=0,X=Math.min(D,ee);se>>1;case"base64":return et(V).length;default:if(D)return Nt(V).length;U=(""+U).toLowerCase(),D=!0}}v.byteLength=T;function z(V,U,N){var D=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,U>>>=0,N<=U))return"";for(V||(V="utf8");;)switch(V){case"hex":return P(this,U,N);case"utf8":case"utf-8":return W(this,U,N);case"ascii":return k(this,U,N);case"latin1":case"binary":return Y(this,U,N);case"base64":return te(this,U,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,U,N);default:if(D)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),D=!0}}v.prototype._isBuffer=!0;function A(V,U,N){var D=V[U];V[U]=V[N],V[N]=D}v.prototype.swap16=function(){var U=this.length;if(U%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N0&&(U=this.toString("hex",0,N).match(/.{2}/g).join(" "),this.length>N&&(U+=" ... ")),""},v.prototype.compare=function(U,N,D,ee,se){if(!v.isBuffer(U))throw new TypeError("Argument must be a Buffer");if(N===void 0&&(N=0),D===void 0&&(D=U?U.length:0),ee===void 0&&(ee=0),se===void 0&&(se=this.length),N<0||D>U.length||ee<0||se>this.length)throw new RangeError("out of range index");if(ee>=se&&N>=D)return 0;if(ee>=se)return-1;if(N>=D)return 1;if(N>>>=0,D>>>=0,ee>>>=0,se>>>=0,this===U)return 0;for(var X=se-ee,re=D-N,Ie=Math.min(X,re),Se=this.slice(ee,se),he=U.slice(N,D),We=0;We2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,isNaN(N)&&(N=ee?0:V.length-1),N<0&&(N=V.length+N),N>=V.length){if(ee)return-1;N=V.length-1}else if(N<0)if(ee)N=0;else return-1;if(typeof U=="string"&&(U=v.from(U,D)),v.isBuffer(U))return U.length===0?-1:I(V,U,N,D,ee);if(typeof U=="number")return U=U&255,v.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(V,U,N):Uint8Array.prototype.lastIndexOf.call(V,U,N):I(V,[U],N,D,ee);throw new TypeError("val must be string, number or Buffer")}function I(V,U,N,D,ee){var se=1,X=V.length,re=U.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(V.length<2||U.length<2)return-1;se=2,X/=2,re/=2,N/=2}function Ie(le,ve){return se===1?le[ve]:le.readUInt16BE(ve*se)}var Se;if(ee){var he=-1;for(Se=N;SeX&&(N=X-re),Se=N;Se>=0;Se--){for(var We=!0,de=0;deee&&(D=ee)):D=ee;var se=U.length;if(se%2!==0)throw new TypeError("Invalid hex string");D>se/2&&(D=se/2);for(var X=0;Xse)&&(D=se),U.length>0&&(D<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var X=!1;;)switch(ee){case"hex":return $(this,U,N,D);case"utf8":case"utf-8":return B(this,U,N,D);case"ascii":return K(this,U,N,D);case"latin1":case"binary":return H(this,U,N,D);case"base64":return ie(this,U,N,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,U,N,D);default:if(X)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),X=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(V,U,N){return U===0&&N===V.length?t.fromByteArray(V):t.fromByteArray(V.slice(U,N))}function W(V,U,N){N=Math.min(V.length,N);for(var D=[],ee=U;ee239?4:se>223?3:se>191?2:1;if(ee+re<=N){var Ie,Se,he,We;switch(re){case 1:se<128&&(X=se);break;case 2:Ie=V[ee+1],(Ie&192)===128&&(We=(se&31)<<6|Ie&63,We>127&&(X=We));break;case 3:Ie=V[ee+1],Se=V[ee+2],(Ie&192)===128&&(Se&192)===128&&(We=(se&15)<<12|(Ie&63)<<6|Se&63,We>2047&&(We<55296||We>57343)&&(X=We));break;case 4:Ie=V[ee+1],Se=V[ee+2],he=V[ee+3],(Ie&192)===128&&(Se&192)===128&&(he&192)===128&&(We=(se&15)<<18|(Ie&63)<<12|(Se&63)<<6|he&63,We>65535&&We<1114112&&(X=We))}}X===null?(X=65533,re=1):X>65535&&(X-=65536,D.push(X>>>10&1023|55296),X=56320|X&1023),D.push(X),ee+=re}return O(D)}var G=4096;function O(V){var U=V.length;if(U<=G)return String.fromCharCode.apply(String,V);for(var N="",D=0;DD)&&(N=D);for(var ee="",se=U;seD&&(U=D),N<0?(N+=D,N<0&&(N=0)):N>D&&(N=D),NN)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUIntLE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=this[U],se=1,X=0;++X0&&(se*=256);)ee+=this[U+--N]*se;return ee},v.prototype.readUInt8=function(U,N){return N||fe(U,1,this.length),this[U]},v.prototype.readUInt16LE=function(U,N){return N||fe(U,2,this.length),this[U]|this[U+1]<<8},v.prototype.readUInt16BE=function(U,N){return N||fe(U,2,this.length),this[U]<<8|this[U+1]},v.prototype.readUInt32LE=function(U,N){return N||fe(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216},v.prototype.readUInt32BE=function(U,N){return N||fe(U,4,this.length),this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])},v.prototype.readIntLE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=this[U],se=1,X=0;++X=se&&(ee-=Math.pow(2,8*N)),ee},v.prototype.readIntBE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=N,se=1,X=this[U+--ee];ee>0&&(se*=256);)X+=this[U+--ee]*se;return se*=128,X>=se&&(X-=Math.pow(2,8*N)),X},v.prototype.readInt8=function(U,N){return N||fe(U,1,this.length),this[U]&128?(255-this[U]+1)*-1:this[U]},v.prototype.readInt16LE=function(U,N){N||fe(U,2,this.length);var D=this[U]|this[U+1]<<8;return D&32768?D|4294901760:D},v.prototype.readInt16BE=function(U,N){N||fe(U,2,this.length);var D=this[U+1]|this[U]<<8;return D&32768?D|4294901760:D},v.prototype.readInt32LE=function(U,N){return N||fe(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},v.prototype.readInt32BE=function(U,N){return N||fe(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},v.prototype.readFloatLE=function(U,N){return N||fe(U,4,this.length),o.read(this,U,!0,23,4)},v.prototype.readFloatBE=function(U,N){return N||fe(U,4,this.length),o.read(this,U,!1,23,4)},v.prototype.readDoubleLE=function(U,N){return N||fe(U,8,this.length),o.read(this,U,!0,52,8)},v.prototype.readDoubleBE=function(U,N){return N||fe(U,8,this.length),o.read(this,U,!1,52,8)};function Ce(V,U,N,D,ee,se){if(!v.isBuffer(V))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ee||UV.length)throw new RangeError("Index out of range")}v.prototype.writeUIntLE=function(U,N,D,ee){if(U=+U,N=N|0,D=D|0,!ee){var se=Math.pow(2,8*D)-1;Ce(this,U,N,D,se,0)}var X=1,re=0;for(this[N]=U&255;++re=0&&(re*=256);)this[N+X]=U/re&255;return N+D},v.prototype.writeUInt8=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,1,255,0),v.TYPED_ARRAY_SUPPORT||(U=Math.floor(U)),this[N]=U&255,N+1};function ge(V,U,N,D){U<0&&(U=65535+U+1);for(var ee=0,se=Math.min(V.length-N,2);ee>>(D?ee:1-ee)*8}v.prototype.writeUInt16LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8):ge(this,U,N,!0),N+2},v.prototype.writeUInt16BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>8,this[N+1]=U&255):ge(this,U,N,!1),N+2};function Me(V,U,N,D){U<0&&(U=4294967295+U+1);for(var ee=0,se=Math.min(V.length-N,4);ee>>(D?ee:3-ee)*8&255}v.prototype.writeUInt32LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[N+3]=U>>>24,this[N+2]=U>>>16,this[N+1]=U>>>8,this[N]=U&255):Me(this,U,N,!0),N+4},v.prototype.writeUInt32BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>24,this[N+1]=U>>>16,this[N+2]=U>>>8,this[N+3]=U&255):Me(this,U,N,!1),N+4},v.prototype.writeIntLE=function(U,N,D,ee){if(U=+U,N=N|0,!ee){var se=Math.pow(2,8*D-1);Ce(this,U,N,D,se-1,-se)}var X=0,re=1,Ie=0;for(this[N]=U&255;++X>0)-Ie&255;return N+D},v.prototype.writeIntBE=function(U,N,D,ee){if(U=+U,N=N|0,!ee){var se=Math.pow(2,8*D-1);Ce(this,U,N,D,se-1,-se)}var X=D-1,re=1,Ie=0;for(this[N+X]=U&255;--X>=0&&(re*=256);)U<0&&Ie===0&&this[N+X+1]!==0&&(Ie=1),this[N+X]=(U/re>>0)-Ie&255;return N+D},v.prototype.writeInt8=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,1,127,-128),v.TYPED_ARRAY_SUPPORT||(U=Math.floor(U)),U<0&&(U=255+U+1),this[N]=U&255,N+1},v.prototype.writeInt16LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8):ge(this,U,N,!0),N+2},v.prototype.writeInt16BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>8,this[N+1]=U&255):ge(this,U,N,!1),N+2},v.prototype.writeInt32LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,2147483647,-2147483648),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8,this[N+2]=U>>>16,this[N+3]=U>>>24):Me(this,U,N,!0),N+4},v.prototype.writeInt32BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>24,this[N+1]=U>>>16,this[N+2]=U>>>8,this[N+3]=U&255):Me(this,U,N,!1),N+4};function Re(V,U,N,D,ee,se){if(N+D>V.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function Qe(V,U,N,D,ee){return ee||Re(V,U,N,4,34028234663852886e22,-34028234663852886e22),o.write(V,U,N,D,23,4),N+4}v.prototype.writeFloatLE=function(U,N,D){return Qe(this,U,N,!0,D)},v.prototype.writeFloatBE=function(U,N,D){return Qe(this,U,N,!1,D)};function Ve(V,U,N,D,ee){return ee||Re(V,U,N,8,17976931348623157e292,-17976931348623157e292),o.write(V,U,N,D,52,8),N+8}v.prototype.writeDoubleLE=function(U,N,D){return Ve(this,U,N,!0,D)},v.prototype.writeDoubleBE=function(U,N,D){return Ve(this,U,N,!1,D)},v.prototype.copy=function(U,N,D,ee){if(D||(D=0),!ee&&ee!==0&&(ee=this.length),N>=U.length&&(N=U.length),N||(N=0),ee>0&&ee=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),U.length-N=0;--X)U[X+N]=this[X+D];else if(se<1e3||!v.TYPED_ARRAY_SUPPORT)for(X=0;X>>0,D=D===void 0?this.length:D>>>0,U||(U=0);var X;if(typeof U=="number")for(X=N;X55295&&N<57344){if(!ee){if(N>56319){(U-=3)>-1&&se.push(239,191,189);continue}else if(X+1===D){(U-=3)>-1&&se.push(239,191,189);continue}ee=N;continue}if(N<56320){(U-=3)>-1&&se.push(239,191,189),ee=N;continue}N=(ee-55296<<10|N-56320)+65536}else ee&&(U-=3)>-1&&se.push(239,191,189);if(ee=null,N<128){if((U-=1)<0)break;se.push(N)}else if(N<2048){if((U-=2)<0)break;se.push(N>>6|192,N&63|128)}else if(N<65536){if((U-=3)<0)break;se.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((U-=4)<0)break;se.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return se}function ke(V){for(var U=[],N=0;N>8,ee=N%256,se.push(ee),se.push(D);return se}function et(V){return t.toByteArray(Mt(V))}function Fe(V,U,N,D){for(var ee=0;ee=U.length||ee>=V.length);++ee)U[ee+N]=V[ee];return ee}function ue(V){return V!==V}},87608:function(M,b){var e,i;(function(){"use strict";var t={}.hasOwnProperty,o="[native code]";function s(){for(var n=[],c=0;c1?arguments[1]:void 0,B=I>2?arguments[2]:void 0;return new(C("Promise"))(function(K){var H=o(A);$!==void 0&&($=i($,B));var ie=h(H,y),ce=ie?void 0:v(H)||R,te=s(L)?new L:[],W=ie?n(H,ie):new S(l(c(H,ce)));K(w(W,$,te))})}},50112:function(M,b,e){var i=e(89122);M.exports=function(t,o){for(var s=0,n=i(o),c=new t(n);n>s;)c[s]=o[s++];return c}},59765:function(M,b,e){"use strict";var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(89122),c=e(85623),l=c.Map,v=c.get,h=c.has,m=c.set,C=t([].push);M.exports=function(S){for(var w=s(this),y=o(w),Z=i(S,arguments.length>1?arguments[1]:void 0),F=new l,R=n(y),T=0,z,A;R>T;T++)A=y[T],z=Z(A,T,w),h(F,z)?C(v(F,z),A):m(F,z,[A]);return F}},69093:function(M,b,e){var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(76846),c=e(89122),l=e(34552),v=e(50112),h=Array,m=t([].push);M.exports=function(C,p,S,w){for(var y=s(C),Z=o(y),F=i(p,S),R=l(null),T=c(Z),z=0,A,L,I;T>z;z++)I=Z[z],L=n(F(I,z,y)),L in R?m(R[L],I):R[L]=[I];if(w&&(A=w(y),A!==h))for(L in R)R[L]=v(A,R[L]);return R}},63795:function(M,b,e){var i=e(514),t=e(71410),o=e(89122),s=function(n){return function(c,l,v){var h=i(c),m=o(h),C=t(v,m),p;if(n&&l!=l){for(;m>C;)if(p=h[C++],p!=p)return!0}else for(;m>C;C++)if((n||C in h)&&h[C]===l)return n||C||0;return!n&&-1}};M.exports={includes:s(!0),indexOf:s(!1)}},17464:function(M,b,e){var i=e(34066),t=e(42414),o=e(64441),s=e(89122),n=function(c){var l=c==1;return function(v,h,m){for(var C=o(v),p=t(C),S=i(h,m),w=s(p),y,Z;w-- >0;)if(y=p[w],Z=S(y,w,C),Z)switch(c){case 0:return y;case 1:return w}return l?-1:void 0}};M.exports={findLast:n(0),findLastIndex:n(1)}},44708:function(M,b,e){var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(89122),c=e(70850),l=t([].push),v=function(h){var m=h==1,C=h==2,p=h==3,S=h==4,w=h==6,y=h==7,Z=h==5||w;return function(F,R,T,z){for(var A=s(F),L=o(A),I=i(R,T),$=n(L),B=0,K=z||c,H=m?K(F,$):C||y?K(F,0):void 0,ie,ce;$>B;B++)if((Z||B in L)&&(ie=L[B],ce=I(ie,B,A),h))if(m)H[B]=ce;else if(ce)switch(h){case 3:return!0;case 5:return ie;case 6:return B;case 2:l(H,ie)}else switch(h){case 4:return!1;case 7:l(H,ie)}return w?-1:p||S?S:H}};M.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},83242:function(M,b,e){"use strict";var i=e(77149);M.exports=function(t,o){var s=[][t];return!!s&&i(function(){s.call(null,o||function(){return 1},1)})}},82565:function(M,b,e){var i=e(31927),t=e(64441),o=e(42414),s=e(89122),n=TypeError,c=function(l){return function(v,h,m,C){i(h);var p=t(v),S=o(p),w=s(p),y=l?w-1:0,Z=l?-1:1;if(m<2)for(;;){if(y in S){C=S[y],y+=Z;break}if(y+=Z,l?y<0:w<=y)throw n("Reduce of empty array with no initial value")}for(;l?y>=0:w>y;y+=Z)y in S&&(C=h(C,S[y],y,p));return C}};M.exports={left:c(!1),right:c(!0)}},77060:function(M,b,e){"use strict";var i=e(57759),t=e(190),o=TypeError,s=Object.getOwnPropertyDescriptor,n=i&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(c){return c instanceof TypeError}}();M.exports=n?function(c,l){if(t(c)&&!s(c,"length").writable)throw o("Cannot set read only .length");return c.length=l}:function(c,l){return c.length=l}},81469:function(M,b,e){var i=e(71410),t=e(89122),o=e(46509),s=Array,n=Math.max;M.exports=function(c,l,v){for(var h=t(c),m=i(l,h),C=i(v===void 0?h:v,h),p=s(n(C-m,0)),S=0;m=v||m<0)throw o("Incorrect index");for(var C=new n(v),p=0;p1?arguments[1]:void 0,p,S,w,y;return s(this),p=C!==void 0,p&&o(C),n(h)?new this:(S=[],p?(w=0,y=i(C,m>2?arguments[2]:void 0),c(h,function(Z){t(l,S,y(Z,w++))})):c(h,l,{that:S}),new this(S))}},55042:function(M,b,e){"use strict";var i=e(66322);M.exports=function(){return new this(i(arguments))}},42710:function(M,b,e){"use strict";var i=e(34552),t=e(2265),o=e(3313),s=e(34066),n=e(92453),c=e(74883),l=e(95815),v=e(94636),h=e(76835),m=e(51309),C=e(57759),p=e(80787).fastKey,S=e(71584),w=S.set,y=S.getterFor;M.exports={getConstructor:function(Z,F,R,T){var z=Z(function(B,K){n(B,A),w(B,{type:F,index:i(null),first:void 0,last:void 0,size:0}),C||(B.size=0),c(K)||l(K,B[T],{that:B,AS_ENTRIES:R})}),A=z.prototype,L=y(F),I=function(B,K,H){var ie=L(B),ce=$(B,K),te,W;return ce?ce.value=H:(ie.last=ce={index:W=p(K,!0),key:K,value:H,previous:te=ie.last,next:void 0,removed:!1},ie.first||(ie.first=ce),te&&(te.next=ce),C?ie.size++:B.size++,W!=="F"&&(ie.index[W]=ce)),B},$=function(B,K){var H=L(B),ie=p(K),ce;if(ie!=="F")return H.index[ie];for(ce=H.first;ce;ce=ce.next)if(ce.key==K)return ce};return o(A,{clear:function(){for(var K=this,H=L(K),ie=H.index,ce=H.first;ce;)ce.removed=!0,ce.previous&&(ce.previous=ce.previous.next=void 0),delete ie[ce.index],ce=ce.next;H.first=H.last=void 0,C?H.size=0:K.size=0},delete:function(B){var K=this,H=L(K),ie=$(K,B);if(ie){var ce=ie.next,te=ie.previous;delete H.index[ie.index],ie.removed=!0,te&&(te.next=ce),ce&&(ce.previous=te),H.first==ie&&(H.first=ce),H.last==ie&&(H.last=te),C?H.size--:K.size--}return!!ie},forEach:function(K){for(var H=L(this),ie=s(K,arguments.length>1?arguments[1]:void 0),ce;ce=ce?ce.next:H.first;)for(ie(ce.value,ce.key,this);ce&&ce.removed;)ce=ce.previous},has:function(K){return!!$(this,K)}}),o(A,R?{get:function(K){var H=$(this,K);return H&&H.value},set:function(K,H){return I(this,K===0?0:K,H)}}:{add:function(K){return I(this,K=K===0?0:K,K)}}),C&&t(A,"size",{configurable:!0,get:function(){return L(this).size}}),z},setStrong:function(Z,F,R){var T=F+" Iterator",z=y(F),A=y(T);v(Z,F,function(L,I){w(this,{type:T,target:L,state:z(L),kind:I,last:void 0})},function(){for(var L=A(this),I=L.kind,$=L.last;$&&$.removed;)$=$.previous;return!L.target||!(L.last=$=$?$.next:L.state.first)?(L.target=void 0,h(void 0,!0)):I=="keys"?h($.key,!1):I=="values"?h($.value,!1):h([$.key,$.value],!1)},R?"entries":"values",!R,!0),m(F)}}},90253:function(M,b,e){"use strict";var i=e(11700),t=e(3313),o=e(80787).getWeakData,s=e(92453),n=e(78958),c=e(74883),l=e(33225),v=e(95815),h=e(44708),m=e(26583),C=e(71584),p=C.set,S=C.getterFor,w=h.find,y=h.findIndex,Z=i([].splice),F=0,R=function(A){return A.frozen||(A.frozen=new T)},T=function(){this.entries=[]},z=function(A,L){return w(A.entries,function(I){return I[0]===L})};T.prototype={get:function(A){var L=z(this,A);if(L)return L[1]},has:function(A){return!!z(this,A)},set:function(A,L){var I=z(this,A);I?I[1]=L:this.entries.push([A,L])},delete:function(A){var L=y(this.entries,function(I){return I[0]===A});return~L&&Z(this.entries,L,1),!!~L}},M.exports={getConstructor:function(A,L,I,$){var B=A(function(ce,te){s(ce,K),p(ce,{type:L,id:F++,frozen:void 0}),c(te)||v(te,ce[$],{that:ce,AS_ENTRIES:I})}),K=B.prototype,H=S(L),ie=function(ce,te,W){var G=H(ce),O=o(n(te),!0);return O===!0?R(G).set(te,W):O[G.id]=W,ce};return t(K,{delete:function(ce){var te=H(this);if(!l(ce))return!1;var W=o(ce);return W===!0?R(te).delete(ce):W&&m(W,te.id)&&delete W[te.id]},has:function(te){var W=H(this);if(!l(te))return!1;var G=o(te);return G===!0?R(W).has(te):G&&m(G,W.id)}}),t(K,I?{get:function(te){var W=H(this);if(l(te)){var G=o(te);return G===!0?R(W).get(te):G?G[W.id]:void 0}},set:function(te,W){return ie(this,te,W)}}:{add:function(te){return ie(this,te,!0)}}),B}}},91821:function(M,b,e){"use strict";var i=e(13354),t=e(53065),o=e(11700),s=e(29206),n=e(28621),c=e(80787),l=e(95815),v=e(92453),h=e(6508),m=e(74883),C=e(33225),p=e(77149),S=e(44277),w=e(68156),y=e(95173);M.exports=function(Z,F,R){var T=Z.indexOf("Map")!==-1,z=Z.indexOf("Weak")!==-1,A=T?"set":"add",L=t[Z],I=L&&L.prototype,$=L,B={},K=function(O){var k=o(I[O]);n(I,O,O=="add"?function(P){return k(this,P===0?0:P),this}:O=="delete"?function(Y){return z&&!C(Y)?!1:k(this,Y===0?0:Y)}:O=="get"?function(P){return z&&!C(P)?void 0:k(this,P===0?0:P)}:O=="has"?function(P){return z&&!C(P)?!1:k(this,P===0?0:P)}:function(P,Q){return k(this,P===0?0:P,Q),this})},H=s(Z,!h(L)||!(z||I.forEach&&!p(function(){new L().entries().next()})));if(H)$=R.getConstructor(F,Z,T,A),c.enable();else if(s(Z,!0)){var ie=new $,ce=ie[A](z?{}:-0,1)!=ie,te=p(function(){ie.has(1)}),W=S(function(O){new L(O)}),G=!z&&p(function(){for(var O=new L,k=5;k--;)O[A](k,k);return!O.has(-0)});W||($=F(function(O,k){v(O,I);var Y=y(new L,O,$);return m(k)||l(k,Y[A],{that:Y,AS_ENTRIES:T}),Y}),$.prototype=I,I.constructor=$),(te||G)&&(K("delete"),K("has"),T&&K("get")),(G||ce)&&K(A),z&&I.clear&&delete I.clear}return B[Z]=$,i({global:!0,constructor:!0,forced:$!=L},B),w($,Z),z||R.setStrong($,Z,T),$}},95249:function(M,b,e){e(72660),e(11995);var i=e(42725),t=e(34552),o=e(33225),s=Object,n=TypeError,c=i("Map"),l=i("WeakMap"),v=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=t(null)};v.prototype.get=function(m,C){return this[m]||(this[m]=C())},v.prototype.next=function(m,C,p){var S=p?this.objectsByIndex[m]||(this.objectsByIndex[m]=new l):this.primitives||(this.primitives=new c),w=S.get(C);return w||S.set(C,w=new v),w};var h=new v;M.exports=function(){var m=h,C=arguments.length,p,S;for(p=0;pe)throw b("Maximum allowed index exceeded");return i}},73443:function(M){M.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},83051:function(M,b,e){var i=e(79132),t=e(79727);M.exports=!i&&!t&&typeof window=="object"&&typeof document=="object"},8266:function(M){M.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},79132:function(M){M.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},72833:function(M,b,e){var i=e(47048);M.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},79727:function(M,b,e){var i=e(73656),t=e(88596);M.exports=typeof i!="undefined"&&t(i)=="process"},47048:function(M){M.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},8783:function(M,b,e){var i=e(53065),t=e(47048),o=i.process,s=i.Deno,n=o&&o.versions||s&&s.version,c=n&&n.v8,l,v;c&&(l=c.split("."),v=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!v&&t&&(l=t.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=t.match(/Chrome\/(\d+)/),l&&(v=+l[1]))),M.exports=v},70721:function(M,b,e){var i=e(53065);M.exports=function(t){return i[t].prototype}},68150:function(M){M.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},68488:function(M,b,e){var i=e(11700),t=Error,o=i("".replace),s=function(l){return String(t(l).stack)}("zxcasd"),n=/\n\s*at [^:]*:[^\n]*/,c=n.test(s);M.exports=function(l,v){if(c&&typeof l=="string"&&!t.prepareStackTrace)for(;v--;)l=o(l,n,"");return l}},96410:function(M,b,e){var i=e(5927),t=e(68488),o=e(39728),s=Error.captureStackTrace;M.exports=function(n,c,l,v){o&&(s?s(n,c):i(n,"stack",t(l,v)))}},39728:function(M,b,e){var i=e(77149),t=e(87971);M.exports=!i(function(){var o=Error("a");return"stack"in o?(Object.defineProperty(o,"stack",t(1,7)),o.stack!==7):!0})},13354:function(M,b,e){var i=e(53065),t=e(91042).f,o=e(5927),s=e(28621),n=e(40194),c=e(81732),l=e(29206);M.exports=function(v,h){var m=v.target,C=v.global,p=v.stat,S,w,y,Z,F,R;if(C?w=i:p?w=i[m]||n(m,{}):w=(i[m]||{}).prototype,w)for(y in h){if(F=h[y],v.dontCallGetSet?(R=t(w,y),Z=R&&R.value):Z=w[y],S=l(C?y:m+(p?".":"#")+y,v.forced),!S&&Z!==void 0){if(typeof F==typeof Z)continue;c(F,Z)}(v.sham||Z&&Z.sham)&&o(F,"sham",!0),s(w,y,F,v)}}},77149:function(M){M.exports=function(b){try{return!!b()}catch(e){return!0}}},81506:function(M,b,e){var i=e(77149);M.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},59178:function(M,b,e){var i=e(34300),t=Function.prototype,o=t.apply,s=t.call;M.exports=typeof Reflect=="object"&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},34066:function(M,b,e){var i=e(39338),t=e(31927),o=e(34300),s=i(i.bind);M.exports=function(n,c){return t(n),c===void 0?n:o?s(n,c):function(){return n.apply(c,arguments)}}},34300:function(M,b,e){var i=e(77149);M.exports=!i(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})},68029:function(M,b,e){var i=e(34300),t=Function.prototype.call;M.exports=i?t.bind(t):function(){return t.apply(t,arguments)}},44761:function(M,b,e){"use strict";var i=e(11700),t=e(31927);M.exports=function(){return i(t(this))}},27593:function(M,b,e){var i=e(57759),t=e(26583),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,n=t(o,"name"),c=n&&function(){}.name==="something",l=n&&(!i||i&&s(o,"name").configurable);M.exports={EXISTS:n,PROPER:c,CONFIGURABLE:l}},12719:function(M,b,e){var i=e(11700),t=e(31927);M.exports=function(o,s,n){try{return i(t(Object.getOwnPropertyDescriptor(o,s)[n]))}catch(c){}}},39338:function(M,b,e){var i=e(88596),t=e(11700);M.exports=function(o){if(i(o)==="Function")return t(o)}},11700:function(M,b,e){var i=e(34300),t=Function.prototype,o=t.call,s=i&&t.bind.bind(o,o);M.exports=i?s:function(n){return function(){return o.apply(n,arguments)}}},83658:function(M,b,e){var i=e(68029),t=e(6508),o=e(78958),s=e(55086),n=e(56071),c=e(15931),l=e(77740),v=e(66219),h=l("asyncIterator");M.exports=function(C){var p=o(C),S=!0,w=c(p,h),y;return t(w)||(w=n(p),S=!1),t(w)?y=i(w,p):(y=p,S=!0),o(y),s(S?y:new v(s(y)))}},85231:function(M,b,e){var i=e(68029),t=e(66219),o=e(78958),s=e(64712),n=e(55086),c=e(15931),l=e(77740),v=l("asyncIterator");M.exports=function(h,m){var C=arguments.length<2?c(h,v):m;return C?o(i(C,h)):new t(n(s(h)))}},42725:function(M,b,e){var i=e(53065),t=e(6508),o=function(s){return t(s)?s:void 0};M.exports=function(s,n){return arguments.length<2?o(i[s]):i[s]&&i[s][n]}},55086:function(M,b,e){var i=e(31927),t=e(78958);M.exports=function(o){return{iterator:o,next:i(t(o).next)}}},69896:function(M,b,e){var i=e(68029),t=e(6508),o=e(78958),s=e(55086),n=e(56071);M.exports=function(c){var l=o(c),v=n(l);return s(o(t(v)?i(v,l):l))}},56071:function(M,b,e){var i=e(56834),t=e(15931),o=e(74883),s=e(43125),n=e(77740),c=n("iterator");M.exports=function(l){if(!o(l))return t(l,c)||t(l,"@@iterator")||s[i(l)]}},64712:function(M,b,e){var i=e(68029),t=e(31927),o=e(78958),s=e(30238),n=e(56071),c=TypeError;M.exports=function(l,v){var h=arguments.length<2?n(l):v;if(t(h))return o(i(h,l));throw c(s(l)+" is not iterable")}},75126:function(M,b,e){var i=e(11700),t=e(190),o=e(6508),s=e(88596),n=e(68424),c=i([].push);M.exports=function(l){if(o(l))return l;if(t(l)){for(var v=l.length,h=[],m=0;m]*>)/g,v=/\$([$&'`]|\d{1,2})/g;M.exports=function(h,m,C,p,S,w){var y=C+h.length,Z=p.length,F=v;return S!==void 0&&(S=t(S),F=l),n(w,F,function(R,T){var z;switch(s(T,0)){case"$":return"$";case"&":return h;case"`":return c(m,0,C);case"'":return c(m,y);case"<":z=S[c(T,1,-1)];break;default:var A=+T;if(A===0)return R;if(A>Z){var L=o(A/10);return L===0?R:L<=Z?p[L-1]===void 0?s(T,1):p[L-1]+s(T,1):R}z=p[A-1]}return z===void 0?"":z})}},53065:function(M,b,e){var i=function(t){return t&&t.Math==Math&&t};M.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof e.g=="object"&&e.g)||function(){return this}()||Function("return this")()},26583:function(M,b,e){var i=e(11700),t=e(64441),o=i({}.hasOwnProperty);M.exports=Object.hasOwn||function(n,c){return o(t(n),c)}},17859:function(M){M.exports={}},3234:function(M){M.exports=function(b,e){try{arguments.length==1?console.error(b):console.error(b,e)}catch(i){}}},8199:function(M,b,e){var i=e(42725);M.exports=i("document","documentElement")},96335:function(M,b,e){var i=e(57759),t=e(77149),o=e(75074);M.exports=!i&&!t(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},42414:function(M,b,e){var i=e(11700),t=e(77149),o=e(88596),s=Object,n=i("".split);M.exports=t(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?n(c,""):s(c)}:s},95173:function(M,b,e){var i=e(6508),t=e(33225),o=e(63332);M.exports=function(s,n,c){var l,v;return o&&i(l=n.constructor)&&l!==c&&t(v=l.prototype)&&v!==c.prototype&&o(s,v),s}},45274:function(M,b,e){var i=e(11700),t=e(6508),o=e(1396),s=i(Function.toString);t(o.inspectSource)||(o.inspectSource=function(n){return s(n)}),M.exports=o.inspectSource},13719:function(M,b,e){var i=e(33225),t=e(5927);M.exports=function(o,s){i(s)&&"cause"in s&&t(o,"cause",s.cause)}},80787:function(M,b,e){var i=e(13354),t=e(11700),o=e(17859),s=e(33225),n=e(26583),c=e(38248).f,l=e(94561),v=e(56647),h=e(50175),m=e(89669),C=e(81506),p=!1,S=m("meta"),w=0,y=function(A){c(A,S,{value:{objectID:"O"+w++,weakData:{}}})},Z=function(A,L){if(!s(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!n(A,S)){if(!h(A))return"F";if(!L)return"E";y(A)}return A[S].objectID},F=function(A,L){if(!n(A,S)){if(!h(A))return!0;if(!L)return!1;y(A)}return A[S].weakData},R=function(A){return C&&p&&h(A)&&!n(A,S)&&y(A),A},T=function(){z.enable=function(){},p=!0;var A=l.f,L=t([].splice),I={};I[S]=1,A(I).length&&(l.f=function($){for(var B=A($),K=0,H=B.length;KB;B++)if(H=W(w[B]),H&&l(S,H))return H;return new p(!1)}I=v(w,$)}for(ie=T?w.next:I.next;!(ce=t(ie,I)).done;){try{H=W(ce.value)}catch(G){m(I,"throw",G)}if(typeof H=="object"&&H&&l(S,H))return H}return new p(!1)}},40164:function(M,b,e){var i=e(68029),t=e(78958),o=e(15931);M.exports=function(s,n,c){var l,v;t(s);try{if(l=o(s,"return"),!l){if(n==="throw")throw c;return c}l=i(l,s)}catch(h){v=!0,l=h}if(n==="throw")throw c;if(v)throw l;return t(l),c}},87821:function(M,b,e){"use strict";var i=e(41019).IteratorPrototype,t=e(34552),o=e(87971),s=e(68156),n=e(43125),c=function(){return this};M.exports=function(l,v,h,m){var C=v+" Iterator";return l.prototype=t(i,{next:o(+!m,h)}),s(l,C,!1,!0),n[C]=c,l}},36911:function(M,b,e){"use strict";var i=e(68029),t=e(34552),o=e(5927),s=e(3313),n=e(77740),c=e(71584),l=e(15931),v=e(41019).IteratorPrototype,h=e(76835),m=e(40164),C=n("toStringTag"),p="IteratorHelper",S="WrapForValidIterator",w=c.set,y=function(R){var T=c.getterFor(R?S:p);return s(t(v),{next:function(){var A=T(this);if(R)return A.nextHandler();try{var L=A.done?void 0:A.nextHandler();return h(L,A.done)}catch(I){throw A.done=!0,I}},return:function(){var z=T(this),A=z.iterator;if(z.done=!0,R){var L=l(A,"return");return L?i(L,A):h(void 0,!0)}if(z.inner)try{m(z.inner.iterator,"normal")}catch(I){return m(A,"throw",I)}return m(A,"normal"),h(void 0,!0)}})},Z=y(!0),F=y(!1);o(F,C,"Iterator Helper"),M.exports=function(R,T){var z=function(L,I){I?(I.iterator=L.iterator,I.next=L.next):I=L,I.type=T?S:p,I.nextHandler=R,I.counter=0,I.done=!1,w(this,I)};return z.prototype=T?Z:F,z}},94636:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(77449),s=e(27593),n=e(6508),c=e(87821),l=e(77767),v=e(63332),h=e(68156),m=e(5927),C=e(28621),p=e(77740),S=e(43125),w=e(41019),y=s.PROPER,Z=s.CONFIGURABLE,F=w.IteratorPrototype,R=w.BUGGY_SAFARI_ITERATORS,T=p("iterator"),z="keys",A="values",L="entries",I=function(){return this};M.exports=function($,B,K,H,ie,ce,te){c(K,B,H);var W=function(Me){if(Me===ie&&P)return P;if(!R&&Me in k)return k[Me];switch(Me){case z:return function(){return new K(this,Me)};case A:return function(){return new K(this,Me)};case L:return function(){return new K(this,Me)}}return function(){return new K(this)}},G=B+" Iterator",O=!1,k=$.prototype,Y=k[T]||k["@@iterator"]||ie&&k[ie],P=!R&&Y||W(ie),Q=B=="Array"&&k.entries||Y,fe,Ce,ge;if(Q&&(fe=l(Q.call(new $)),fe!==Object.prototype&&fe.next&&(!o&&l(fe)!==F&&(v?v(fe,F):n(fe[T])||C(fe,T,I)),h(fe,G,!0,!0),o&&(S[G]=I))),y&&ie==A&&Y&&Y.name!==A&&(!o&&Z?m(k,"name",A):(O=!0,P=function(){return t(Y,this)})),ie)if(Ce={values:W(A),keys:ce?P:W(z),entries:W(L)},te)for(ge in Ce)(R||O||!(ge in k))&&C(k,ge,Ce[ge]);else i({target:B,proto:!0,forced:R||O},Ce);return(!o||te)&&k[T]!==P&&C(k,T,P,{name:ie}),S[B]=P,Ce}},45656:function(M,b,e){"use strict";var i=e(68029),t=e(87931),o=function(s,n){return[n,s]};M.exports=function(){return i(t,this,o)}},87931:function(M,b,e){"use strict";var i=e(68029),t=e(31927),o=e(78958),s=e(55086),n=e(36911),c=e(74031),l=n(function(){var v=this.iterator,h=o(i(this.next,v)),m=this.done=!!h.done;if(!m)return c(v,this.mapper,[h.value,this.counter++],!0)});M.exports=function(h){return new l(s(this),{mapper:t(h)})}},41019:function(M,b,e){"use strict";var i=e(77149),t=e(6508),o=e(33225),s=e(34552),n=e(77767),c=e(28621),l=e(77740),v=e(77449),h=l("iterator"),m=!1,C,p,S;[].keys&&(S=[].keys(),"next"in S?(p=n(n(S)),p!==Object.prototype&&(C=p)):m=!0);var w=!o(C)||i(function(){var y={};return C[h].call(y)!==y});w?C={}:v&&(C=s(C)),t(C[h])||c(C,h,function(){return this}),M.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:m}},43125:function(M){M.exports={}},89122:function(M,b,e){var i=e(25010);M.exports=function(t){return i(t.length)}},70377:function(M,b,e){var i=e(11700),t=e(77149),o=e(6508),s=e(26583),n=e(57759),c=e(27593).CONFIGURABLE,l=e(45274),v=e(71584),h=v.enforce,m=v.get,C=String,p=Object.defineProperty,S=i("".slice),w=i("".replace),y=i([].join),Z=n&&!t(function(){return p(function(){},"length",{value:8}).length!==8}),F=String(String).split("String"),R=M.exports=function(T,z,A){S(C(z),0,7)==="Symbol("&&(z="["+w(C(z),/^Symbol\(([^)]*)\)/,"$1")+"]"),A&&A.getter&&(z="get "+z),A&&A.setter&&(z="set "+z),(!s(T,"name")||c&&T.name!==z)&&(n?p(T,"name",{value:z,configurable:!0}):T.name=z),Z&&A&&s(A,"arity")&&T.length!==A.arity&&p(T,"length",{value:A.arity});try{A&&s(A,"constructor")&&A.constructor?n&&p(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch(I){}var L=h(T);return s(L,"source")||(L.source=y(F,typeof z=="string"?z:"")),T};Function.prototype.toString=R(function(){return o(this)&&m(this).source||l(this)},"toString")},85623:function(M,b,e){var i=e(11700),t=Map.prototype;M.exports={Map,set:i(t.set),get:i(t.get),has:i(t.has),remove:i(t.delete),proto:t}},46782:function(M,b,e){var i=e(11700),t=e(95060),o=e(85623),s=o.Map,n=o.proto,c=i(n.forEach),l=i(n.entries),v=l(new s).next;M.exports=function(h,m,C){return C?t(l(h),function(p){return m(p[1],p[0])},v):c(h,m)}},32171:function(M,b,e){"use strict";var i=e(68029),t=e(31927),o=e(6508),s=e(78958),n=TypeError;M.exports=function(l,v){var h=s(this),m=t(h.get),C=t(h.has),p=t(h.set),S=arguments.length>2?arguments[2]:void 0,w;if(!o(v)&&!o(S))throw n("At least one callback required");return i(C,h,l)?(w=i(m,h,l),o(v)&&(w=v(w),i(p,h,l,w))):o(S)&&(w=S(),i(p,h,l,w)),w}},18749:function(M,b,e){var i=e(75169),t=Math.abs,o=Math.pow,s=o(2,-52),n=o(2,-23),c=o(2,127)*(2-n),l=o(2,-126),v=function(h){return h+1/s-1/s};M.exports=Math.fround||function(m){var C=+m,p=t(C),S=i(C),w,y;return pc||y!=y?S*(1/0):S*y)}},15129:function(M){M.exports=Math.scale||function(e,i,t,o,s){var n=+e,c=+i,l=+t,v=+o,h=+s;return n!=n||c!=c||l!=l||v!=v||h!=h?NaN:n===1/0||n===-1/0?n:(n-c)*(h-v)/(l-c)+v}},75169:function(M){M.exports=Math.sign||function(e){var i=+e;return i==0||i!=i?i:i<0?-1:1}},18243:function(M){var b=Math.ceil,e=Math.floor;M.exports=Math.trunc||function(t){var o=+t;return(o>0?e:b)(o)}},66286:function(M,b,e){var i=e(77149);M.exports=!i(function(){var t="9007199254740993",o=JSON.rawJSON(t);return!JSON.isRawJSON(o)||JSON.stringify(o)!==t})},71440:function(M,b,e){"use strict";var i=e(31927),t=TypeError,o=function(s){var n,c;this.promise=new s(function(l,v){if(n!==void 0||c!==void 0)throw t("Bad Promise constructor");n=l,c=v}),this.resolve=i(n),this.reject=i(c)};M.exports.f=function(s){return new o(s)}},9280:function(M,b,e){var i=e(68424);M.exports=function(t,o){return t===void 0?arguments.length<2?"":o:i(t)}},29597:function(M){var b=RangeError;M.exports=function(e){if(e===e)return e;throw b("NaN is not allowed")}},54633:function(M,b,e){var i=e(53065),t=i.isFinite;M.exports=Number.isFinite||function(s){return typeof s=="number"&&t(s)}},35323:function(M,b,e){var i=e(53065),t=e(77149),o=e(11700),s=e(68424),n=e(53761).trim,c=e(91289),l=i.parseInt,v=i.Symbol,h=v&&v.iterator,m=/^[+-]?0x/i,C=o(m.exec),p=l(c+"08")!==8||l(c+"0x16")!==22||h&&!t(function(){l(Object(h))});M.exports=p?function(w,y){var Z=n(s(w));return l(Z,y>>>0||(C(m,Z)?16:10))}:l},73126:function(M,b,e){"use strict";var i=e(71584),t=e(87821),o=e(76835),s=e(74883),n=e(33225),c=e(97867).f,l=e(57759),v="Incorrect Iterator.range arguments",h="NumericRangeIterator",m=i.set,C=i.getterFor(h),p=RangeError,S=TypeError,w=t(function(F,R,T,z,A,L){if(typeof F!=z||R!==1/0&&R!==-1/0&&typeof R!=z)throw S(v);if(F===1/0||F===-1/0)throw p(v);var I=R>F,$=!1,B;if(T===void 0)B=void 0;else if(n(T))B=T.step,$=!!T.inclusive;else if(typeof T==z)B=T;else throw S(v);if(s(B)&&(B=I?L:-L),typeof B!=z)throw S(v);if(B===1/0||B===-1/0||B===A&&F!==R)throw p(v);var K=F!=F||R!=R||B!=B||R>F!=B>A;m(this,{type:h,start:F,end:R,step:B,inclusiveEnd:$,hitsEnd:K,currentCount:A,zero:A}),l||(this.start=F,this.end=R,this.step=B,this.inclusive=$)},h,function(){var F=C(this);if(F.hitsEnd)return o(void 0,!0);var R=F.start,T=F.end,z=F.step,A=R+z*F.currentCount++;A===T&&(F.hitsEnd=!0);var L=F.inclusiveEnd,I;return T>R?I=L?A>T:A>=T:I=L?T>A:T>=A,I?(F.hitsEnd=!0,o(void 0,!0)):o(A,!1)}),y=function(Z){return{get:Z,set:function(){},configurable:!0,enumerable:!1}};l&&c(w.prototype,{start:y(function(){return C(this).start}),end:y(function(){return C(this).end}),inclusive:y(function(){return C(this).inclusiveEnd}),step:y(function(){return C(this).step})}),M.exports=w},34552:function(M,b,e){var i=e(78958),t=e(97867),o=e(68150),s=e(17859),n=e(8199),c=e(75074),l=e(39376),v=">",h="<",m="prototype",C="script",p=l("IE_PROTO"),S=function(){},w=function(T){return h+C+v+T+h+"/"+C+v},y=function(T){T.write(w("")),T.close();var z=T.parentWindow.Object;return T=null,z},Z=function(){var T=c("iframe"),z="java"+C+":",A;return T.style.display="none",n.appendChild(T),T.src=String(z),A=T.contentWindow.document,A.open(),A.write(w("document.F=Object")),A.close(),A.F},F,R=function(){try{F=new ActiveXObject("htmlfile")}catch(z){}R=typeof document!="undefined"?document.domain&&F?y(F):Z():y(F);for(var T=o.length;T--;)delete R[m][o[T]];return R()};s[p]=!0,M.exports=Object.create||function(z,A){var L;return z!==null?(S[m]=i(z),L=new S,S[m]=null,L[p]=z):L=R(),A===void 0?L:t.f(L,A)}},97867:function(M,b,e){var i=e(57759),t=e(63980),o=e(38248),s=e(78958),n=e(514),c=e(71691);b.f=i&&!t?Object.defineProperties:function(v,h){s(v);for(var m=n(h),C=c(h),p=C.length,S=0,w;p>S;)o.f(v,w=C[S++],m[w]);return v}},38248:function(M,b,e){var i=e(57759),t=e(96335),o=e(63980),s=e(78958),n=e(76846),c=TypeError,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,h="enumerable",m="configurable",C="writable";b.f=i?o?function(S,w,y){if(s(S),w=n(w),s(y),typeof S=="function"&&w==="prototype"&&"value"in y&&C in y&&!y[C]){var Z=v(S,w);Z&&Z[C]&&(S[w]=y.value,y={configurable:m in y?y[m]:Z[m],enumerable:h in y?y[h]:Z[h],writable:!1})}return l(S,w,y)}:l:function(S,w,y){if(s(S),w=n(w),s(y),t)try{return l(S,w,y)}catch(Z){}if("get"in y||"set"in y)throw c("Accessors not supported");return"value"in y&&(S[w]=y.value),S}},91042:function(M,b,e){var i=e(57759),t=e(68029),o=e(83688),s=e(87971),n=e(514),c=e(76846),l=e(26583),v=e(96335),h=Object.getOwnPropertyDescriptor;b.f=i?h:function(C,p){if(C=n(C),p=c(p),v)try{return h(C,p)}catch(S){}if(l(C,p))return s(!t(o.f,C,p),C[p])}},56647:function(M,b,e){var i=e(88596),t=e(514),o=e(94561).f,s=e(81469),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(l){try{return o(l)}catch(v){return s(n)}};M.exports.f=function(v){return n&&i(v)=="Window"?c(v):o(t(v))}},94561:function(M,b,e){var i=e(4482),t=e(68150),o=t.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(n){return i(n,o)}},10290:function(M,b){b.f=Object.getOwnPropertySymbols},77767:function(M,b,e){var i=e(26583),t=e(6508),o=e(64441),s=e(39376),n=e(80978),c=s("IE_PROTO"),l=Object,v=l.prototype;M.exports=n?l.getPrototypeOf:function(h){var m=o(h);if(i(m,c))return m[c];var C=m.constructor;return t(C)&&m instanceof C?C.prototype:m instanceof l?v:null}},50175:function(M,b,e){var i=e(77149),t=e(33225),o=e(88596),s=e(23932),n=Object.isExtensible,c=i(function(){n(1)});M.exports=c||s?function(v){return!t(v)||s&&o(v)=="ArrayBuffer"?!1:n?n(v):!0}:n},72901:function(M,b,e){var i=e(11700);M.exports=i({}.isPrototypeOf)},65556:function(M,b,e){"use strict";var i=e(71584),t=e(87821),o=e(76835),s=e(26583),n=e(71691),c=e(64441),l="Object Iterator",v=i.set,h=i.getterFor(l);M.exports=t(function(C,p){var S=c(C);v(this,{type:l,mode:p,object:S,keys:n(S),index:0})},"Object",function(){for(var C=h(this),p=C.keys;;){if(p===null||C.index>=p.length)return C.object=C.keys=null,o(void 0,!0);var S=p[C.index++],w=C.object;if(s(w,S)){switch(C.mode){case"keys":return o(S,!1);case"values":return o(w[S],!1)}return o([S,w[S]],!1)}}})},4482:function(M,b,e){var i=e(11700),t=e(26583),o=e(514),s=e(63795).indexOf,n=e(17859),c=i([].push);M.exports=function(l,v){var h=o(l),m=0,C=[],p;for(p in h)!t(n,p)&&t(h,p)&&c(C,p);for(;v.length>m;)t(h,p=v[m++])&&(~s(C,p)||c(C,p));return C}},71691:function(M,b,e){var i=e(4482),t=e(68150);M.exports=Object.keys||function(s){return i(s,t)}},83688:function(M,b){"use strict";var e={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,t=i&&!e.call({1:2},1);b.f=t?function(s){var n=i(this,s);return!!n&&n.enumerable}:e},63332:function(M,b,e){var i=e(12719),t=e(78958),o=e(66961);M.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,n={},c;try{c=i(Object.prototype,"__proto__","set"),c(n,[]),s=n instanceof Array}catch(l){}return function(v,h){return t(v),o(h),s?c(v,h):v.__proto__=h,v}}():void 0)},88818:function(M,b,e){var i=e(53065),t=e(6508),o=e(77740),s=o("observable"),n=i.Observable,c=n&&n.prototype;M.exports=!t(n)||!t(n.from)||!t(n.of)||!t(c.subscribe)||!t(c[s])},54026:function(M,b,e){var i=e(68029),t=e(6508),o=e(33225),s=TypeError;M.exports=function(n,c){var l,v;if(c==="string"&&t(l=n.toString)&&!o(v=i(l,n))||t(l=n.valueOf)&&!o(v=i(l,n))||c!=="string"&&t(l=n.toString)&&!o(v=i(l,n)))return v;throw s("Can't convert object to primitive value")}},60999:function(M,b,e){var i=e(42725),t=e(11700),o=e(94561),s=e(10290),n=e(78958),c=t([].concat);M.exports=i("Reflect","ownKeys")||function(v){var h=o.f(n(v)),m=s.f;return m?c(h,m(v)):h}},12539:function(M,b,e){var i=e(11700),t=e(26583),o=SyntaxError,s=parseInt,n=String.fromCharCode,c=i("".charAt),l=i("".slice),v=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` +`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),re=new RegExp("(?:^"+ee+"$)|(?:^"+X+"$)"),Ie=new RegExp("^"+ee+"$"),Se=new RegExp("^"+X+"$"),he=function(Be){return Be&&Be.exact?re:new RegExp("(?:"+D(Be)+ee+D(Be)+")|(?:"+D(Be)+X+D(Be)+")","g")};he.v4=function(ye){return ye&&ye.exact?Ie:new RegExp(""+D(ye)+ee+D(ye),"g")},he.v6=function(ye){return ye&&ye.exact?Se:new RegExp(""+D(ye)+X+D(ye),"g")};var We="(?:(?:[a-z]+:)?//)",de="(?:\\S+(?::\\S*)?@)?",le=he.v4().source,ve=he.v6().source,xe="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",Ze="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",pe="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",Je="(?::\\d{2,5})?",Ae='(?:[/?#][^\\s"]*)?',oe="(?:"+We+"|www\\.)"+de+"(?:localhost|"+le+"|"+ve+"|"+xe+Ze+pe+")"+Je+Ae;return H=new RegExp("(?:^"+oe+"$)","i"),H},ce={email:/^(([^<>()\[\]\\.,;:\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,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},te={integer:function(D){return te.number(D)&&parseInt(D,10)===D},float:function(D){return te.number(D)&&!te.integer(D)},array:function(D){return Array.isArray(D)},regexp:function(D){if(D instanceof RegExp)return!0;try{return!!new RegExp(D)}catch(ee){return!1}},date:function(D){return typeof D.getTime=="function"&&typeof D.getMonth=="function"&&typeof D.getYear=="function"&&!isNaN(D.getTime())},number:function(D){return isNaN(D)?!1:typeof D=="number"},object:function(D){return typeof D=="object"&&!te.array(D)},method:function(D){return typeof D=="function"},email:function(D){return typeof D=="string"&&D.length<=320&&!!D.match(ce.email)},url:function(D){return typeof D=="string"&&D.length<=2048&&!!D.match(ie())},hex:function(D){return typeof D=="string"&&!!D.match(ce.hex)}},W=function(D,ee,se,X,re){if(D.required&&ee===void 0){B(D,ee,se,X,re);return}var Ie=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Se=D.type;Ie.indexOf(Se)>-1?te[Se](ee)||X.push(S(re.messages.types[Se],D.fullField,D.type)):Se&&typeof ee!==D.type&&X.push(S(re.messages.types[Se],D.fullField,D.type))},G=function(D,ee,se,X,re){var Ie=typeof D.len=="number",Se=typeof D.min=="number",he=typeof D.max=="number",We=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,de=ee,le=null,ve=typeof ee=="number",xe=typeof ee=="string",Ze=Array.isArray(ee);if(ve?le="number":xe?le="string":Ze&&(le="array"),!le)return!1;Ze&&(de=ee.length),xe&&(de=ee.replace(We,"_").length),Ie?de!==D.len&&X.push(S(re.messages[le].len,D.fullField,D.len)):Se&&!he&&deD.max?X.push(S(re.messages[le].max,D.fullField,D.max)):Se&&he&&(deD.max)&&X.push(S(re.messages[le].range,D.fullField,D.min,D.max))},O="enum",k=function(D,ee,se,X,re){D[O]=Array.isArray(D[O])?D[O]:[],D[O].indexOf(ee)===-1&&X.push(S(re.messages[O],D.fullField,D[O].join(", ")))},Y=function(D,ee,se,X,re){if(D.pattern){if(D.pattern instanceof RegExp)D.pattern.lastIndex=0,D.pattern.test(ee)||X.push(S(re.messages.pattern.mismatch,D.fullField,ee,D.pattern));else if(typeof D.pattern=="string"){var Ie=new RegExp(D.pattern);Ie.test(ee)||X.push(S(re.messages.pattern.mismatch,D.fullField,ee,D.pattern))}}},P={required:B,whitespace:K,type:W,range:G,enum:k,pattern:Y},Q=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"string")&&!D.required)return se();P.required(D,ee,X,Ie,re,"string"),y(ee,"string")||(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re),P.pattern(D,ee,X,Ie,re),D.whitespace===!0&&P.whitespace(D,ee,X,Ie,re))}se(Ie)},fe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Ce=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(ee===""&&(ee=void 0),y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},ge=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Me=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),y(ee)||P.type(D,ee,X,Ie,re)}se(Ie)},Ne=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},Qe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},Ve=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(ee==null&&!D.required)return se();P.required(D,ee,X,Ie,re,"array"),ee!=null&&(P.type(D,ee,X,Ie,re),P.range(D,ee,X,Ie,re))}se(Ie)},qe=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P.type(D,ee,X,Ie,re)}se(Ie)},Mt="enum",wt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re),ee!==void 0&&P[Mt](D,ee,X,Ie,re)}se(Ie)},gt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"string")&&!D.required)return se();P.required(D,ee,X,Ie,re),y(ee,"string")||P.pattern(D,ee,X,Ie,re)}se(Ie)},Lt=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee,"date")&&!D.required)return se();if(P.required(D,ee,X,Ie,re),!y(ee,"date")){var he;ee instanceof Date?he=ee:he=new Date(ee),P.type(D,he,X,Ie,re),he&&P.range(D,he.getTime(),X,Ie,re)}}se(Ie)},ke=function(D,ee,se,X,re){var Ie=[],Se=Array.isArray(ee)?"array":typeof ee;P.required(D,ee,X,Ie,re,Se),se(Ie)},He=function(D,ee,se,X,re){var Ie=D.type,Se=[],he=D.required||!D.required&&X.hasOwnProperty(D.field);if(he){if(y(ee,Ie)&&!D.required)return se();P.required(D,ee,X,Se,re,Ie),y(ee,Ie)||P.type(D,ee,X,Se,re)}se(Se)},et=function(D,ee,se,X,re){var Ie=[],Se=D.required||!D.required&&X.hasOwnProperty(D.field);if(Se){if(y(ee)&&!D.required)return se();P.required(D,ee,X,Ie,re)}se(Ie)},Fe={string:Q,method:fe,number:Ce,boolean:ge,regexp:Me,integer:Ne,float:Qe,array:Ve,object:qe,enum:wt,pattern:gt,date:Lt,url:He,hex:He,email:He,required:ke,any:et};function ue(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var D=JSON.parse(JSON.stringify(this));return D.clone=this.clone,D}}}var V=ue(),U=function(){function N(ee){this.rules=null,this._messages=V,this.define(ee)}var D=N.prototype;return D.define=function(se){var X=this;if(!se)throw new Error("Cannot configure a schema with no rules");if(typeof se!="object"||Array.isArray(se))throw new Error("Rules must be an object");this.rules={},Object.keys(se).forEach(function(re){var Ie=se[re];X.rules[re]=Array.isArray(Ie)?Ie:[Ie]})},D.messages=function(se){return se&&(this._messages=$(ue(),se)),this._messages},D.validate=function(se,X,re){var Ie=this;X===void 0&&(X={}),re===void 0&&(re=function(){});var Se=se,he=X,We=re;if(typeof he=="function"&&(We=he,he={}),!this.rules||Object.keys(this.rules).length===0)return We&&We(null,Se),Promise.resolve(Se);function de(pe){var Je=[],Ae={};function oe(Be){if(Array.isArray(Be)){var De;Je=(De=Je).concat.apply(De,Be)}else Je.push(Be)}for(var ye=0;ye=200&&S<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};t.forEach(["delete","get","head"],function(S){C.headers[S]={}}),t.forEach(["post","put","patch"],function(S){C.headers[S]=t.merge(l)}),M.exports=C},30872:function(M){"use strict";M.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},93424:function(M){M.exports={version:"0.27.2"}},22154:function(M){"use strict";M.exports=function(e,i){return function(){for(var o=new Array(arguments.length),s=0;s=0)return;c==="set-cookie"?n[c]=(n[c]?n[c]:[]).concat([l]):n[c]=n[c]?n[c]+", "+l:l}}),n}},17437:function(M){"use strict";M.exports=function(e){var i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return i&&i[1]||""}},64476:function(M){"use strict";M.exports=function(e){return function(t){return e.apply(null,t)}}},90792:function(M,b,e){"use strict";var i=e(21468).lW,t=e(82774);function o(s,n){n=n||new FormData;var c=[];function l(h){return h===null?"":t.isDate(h)?h.toISOString():t.isArrayBuffer(h)||t.isTypedArray(h)?typeof Blob=="function"?new Blob([h]):i.from(h):h}function v(h,m){if(t.isPlainObject(h)||t.isArray(h)){if(c.indexOf(h)!==-1)throw Error("Circular reference detected in "+m);c.push(h),t.forEach(h,function(p,S){if(!t.isUndefined(p)){var w=m?m+"."+S:S,y;if(p&&!m&&typeof p=="object"){if(t.endsWith(S,"{}"))p=JSON.stringify(p);else if(t.endsWith(S,"[]")&&(y=t.toArray(p))){y.forEach(function(Z){!t.isUndefined(Z)&&n.append(w,l(Z))});return}}v(p,w)}}),c.pop()}else n.append(m,l(h))}return v(s),n}M.exports=o},73215:function(M,b,e){"use strict";var i=e(93424).version,t=e(44936),o={};["object","boolean","number","function","string","symbol"].forEach(function(c,l){o[c]=function(h){return typeof h===c||"a"+(l<1?"n ":" ")+c}});var s={};o.transitional=function(l,v,h){function m(C,p){return"[Axios v"+i+"] Transitional option '"+C+"'"+p+(h?". "+h:"")}return function(C,p,S){if(l===!1)throw new t(m(p," has been removed"+(v?" in "+v:"")),t.ERR_DEPRECATED);return v&&!s[p]&&(s[p]=!0,console.warn(m(p," has been deprecated since v"+v+" and will be removed in the near future"))),l?l(C,p,S):!0}};function n(c,l,v){if(typeof c!="object")throw new t("options must be an object",t.ERR_BAD_OPTION_VALUE);for(var h=Object.keys(c),m=h.length;m-- >0;){var C=h[m],p=l[C];if(p){var S=c[C],w=S===void 0||p(S,C,c);if(w!==!0)throw new t("option "+C+" must be "+w,t.ERR_BAD_OPTION_VALUE);continue}if(v!==!0)throw new t("Unknown option "+C,t.ERR_BAD_OPTION)}}M.exports={assertOptions:n,validators:o}},82774:function(M,b,e){"use strict";var i=e(22154),t=Object.prototype.toString,o=function(O){return function(k){var Y=t.call(k);return O[Y]||(O[Y]=Y.slice(8,-1).toLowerCase())}}(Object.create(null));function s(O){return O=O.toLowerCase(),function(Y){return o(Y)===O}}function n(O){return Array.isArray(O)}function c(O){return typeof O=="undefined"}function l(O){return O!==null&&!c(O)&&O.constructor!==null&&!c(O.constructor)&&typeof O.constructor.isBuffer=="function"&&O.constructor.isBuffer(O)}var v=s("ArrayBuffer");function h(O){var k;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?k=ArrayBuffer.isView(O):k=O&&O.buffer&&v(O.buffer),k}function m(O){return typeof O=="string"}function C(O){return typeof O=="number"}function p(O){return O!==null&&typeof O=="object"}function S(O){if(o(O)!=="object")return!1;var k=Object.getPrototypeOf(O);return k===null||k===Object.prototype}var w=s("Date"),y=s("File"),Z=s("Blob"),F=s("FileList");function R(O){return t.call(O)==="[object Function]"}function T(O){return p(O)&&R(O.pipe)}function z(O){var k="[object FormData]";return O&&(typeof FormData=="function"&&O instanceof FormData||t.call(O)===k||R(O.toString)&&O.toString()===k)}var A=s("URLSearchParams");function L(O){return O.trim?O.trim():O.replace(/^\s+|\s+$/g,"")}function I(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function $(O,k){if(!(O===null||typeof O=="undefined"))if(typeof O!="object"&&(O=[O]),n(O))for(var Y=0,P=O.length;Y0;)fe=P[Q],Ce[fe]||(k[fe]=O[fe],Ce[fe]=!0);O=Object.getPrototypeOf(O)}while(O&&(!Y||Y(O,k))&&O!==Object.prototype);return k}function te(O,k,Y){O=String(O),(Y===void 0||Y>O.length)&&(Y=O.length),Y-=k.length;var P=O.indexOf(k,Y);return P!==-1&&P===Y}function W(O){if(!O)return null;var k=O.length;if(c(k))return null;for(var Y=new Array(k);k-- >0;)Y[k]=O[k];return Y}var G=function(O){return function(k){return O&&k instanceof O}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array));M.exports={isArray:n,isArrayBuffer:v,isBuffer:l,isFormData:z,isArrayBufferView:h,isString:m,isNumber:C,isObject:p,isPlainObject:S,isUndefined:c,isDate:w,isFile:y,isBlob:Z,isFunction:R,isStream:T,isURLSearchParams:A,isStandardBrowserEnv:I,forEach:$,merge:B,extend:K,trim:L,stripBOM:H,inherits:ie,toFlatObject:ce,kindOf:o,kindOfTest:s,endsWith:te,toArray:W,isTypedArray:G,isFileList:F}},26446:function(M,b){"use strict";b.byteLength=l,b.toByteArray=h,b.fromByteArray=p;for(var e=[],i=[],t=typeof Uint8Array!="undefined"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,n=o.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var y=S.indexOf("=");y===-1&&(y=w);var Z=y===w?0:4-y%4;return[y,Z]}function l(S){var w=c(S),y=w[0],Z=w[1];return(y+Z)*3/4-Z}function v(S,w,y){return(w+y)*3/4-y}function h(S){var w,y=c(S),Z=y[0],F=y[1],R=new t(v(S,Z,F)),T=0,z=F>0?Z-4:Z,A;for(A=0;A>16&255,R[T++]=w>>8&255,R[T++]=w&255;return F===2&&(w=i[S.charCodeAt(A)]<<2|i[S.charCodeAt(A+1)]>>4,R[T++]=w&255),F===1&&(w=i[S.charCodeAt(A)]<<10|i[S.charCodeAt(A+1)]<<4|i[S.charCodeAt(A+2)]>>2,R[T++]=w>>8&255,R[T++]=w&255),R}function m(S){return e[S>>18&63]+e[S>>12&63]+e[S>>6&63]+e[S&63]}function C(S,w,y){for(var Z,F=[],R=w;Rz?z:T+R));return Z===1?(w=S[y-1],F.push(e[w>>2]+e[w<<4&63]+"==")):Z===2&&(w=(S[y-2]<<8)+S[y-1],F.push(e[w>>10]+e[w>>4&63]+e[w<<2&63]+"=")),F.join("")}},21468:function(M,b,e){"use strict";var i;var t=e(26446),o=e(47164),s=e(23161);b.lW=v,i=R,b.h2=50,v.TYPED_ARRAY_SUPPORT=e.g.TYPED_ARRAY_SUPPORT!==void 0?e.g.TYPED_ARRAY_SUPPORT:n(),i=c();function n(){try{var V=new Uint8Array(1);return V.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},V.foo()===42&&typeof V.subarray=="function"&&V.subarray(1,1).byteLength===0}catch(U){return!1}}function c(){return v.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(V,U){if(c()=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return V|0}function R(V){return+V!=V&&(V=0),v.alloc(+V)}v.isBuffer=function(U){return!!(U!=null&&U._isBuffer)},v.compare=function(U,N){if(!v.isBuffer(U)||!v.isBuffer(N))throw new TypeError("Arguments must be Buffers");if(U===N)return 0;for(var D=U.length,ee=N.length,se=0,X=Math.min(D,ee);se>>1;case"base64":return et(V).length;default:if(D)return Lt(V).length;U=(""+U).toLowerCase(),D=!0}}v.byteLength=T;function z(V,U,N){var D=!1;if((U===void 0||U<0)&&(U=0),U>this.length||((N===void 0||N>this.length)&&(N=this.length),N<=0)||(N>>>=0,U>>>=0,N<=U))return"";for(V||(V="utf8");;)switch(V){case"hex":return P(this,U,N);case"utf8":case"utf-8":return W(this,U,N);case"ascii":return k(this,U,N);case"latin1":case"binary":return Y(this,U,N);case"base64":return te(this,U,N);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,U,N);default:if(D)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),D=!0}}v.prototype._isBuffer=!0;function A(V,U,N){var D=V[U];V[U]=V[N],V[N]=D}v.prototype.swap16=function(){var U=this.length;if(U%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var N=0;N0&&(U=this.toString("hex",0,N).match(/.{2}/g).join(" "),this.length>N&&(U+=" ... ")),""},v.prototype.compare=function(U,N,D,ee,se){if(!v.isBuffer(U))throw new TypeError("Argument must be a Buffer");if(N===void 0&&(N=0),D===void 0&&(D=U?U.length:0),ee===void 0&&(ee=0),se===void 0&&(se=this.length),N<0||D>U.length||ee<0||se>this.length)throw new RangeError("out of range index");if(ee>=se&&N>=D)return 0;if(ee>=se)return-1;if(N>=D)return 1;if(N>>>=0,D>>>=0,ee>>>=0,se>>>=0,this===U)return 0;for(var X=se-ee,re=D-N,Ie=Math.min(X,re),Se=this.slice(ee,se),he=U.slice(N,D),We=0;We2147483647?N=2147483647:N<-2147483648&&(N=-2147483648),N=+N,isNaN(N)&&(N=ee?0:V.length-1),N<0&&(N=V.length+N),N>=V.length){if(ee)return-1;N=V.length-1}else if(N<0)if(ee)N=0;else return-1;if(typeof U=="string"&&(U=v.from(U,D)),v.isBuffer(U))return U.length===0?-1:I(V,U,N,D,ee);if(typeof U=="number")return U=U&255,v.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(V,U,N):Uint8Array.prototype.lastIndexOf.call(V,U,N):I(V,[U],N,D,ee);throw new TypeError("val must be string, number or Buffer")}function I(V,U,N,D,ee){var se=1,X=V.length,re=U.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(V.length<2||U.length<2)return-1;se=2,X/=2,re/=2,N/=2}function Ie(le,ve){return se===1?le[ve]:le.readUInt16BE(ve*se)}var Se;if(ee){var he=-1;for(Se=N;SeX&&(N=X-re),Se=N;Se>=0;Se--){for(var We=!0,de=0;deee&&(D=ee)):D=ee;var se=U.length;if(se%2!==0)throw new TypeError("Invalid hex string");D>se/2&&(D=se/2);for(var X=0;Xse)&&(D=se),U.length>0&&(D<0||N<0)||N>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var X=!1;;)switch(ee){case"hex":return $(this,U,N,D);case"utf8":case"utf-8":return B(this,U,N,D);case"ascii":return K(this,U,N,D);case"latin1":case"binary":return H(this,U,N,D);case"base64":return ie(this,U,N,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,U,N,D);default:if(X)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),X=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function te(V,U,N){return U===0&&N===V.length?t.fromByteArray(V):t.fromByteArray(V.slice(U,N))}function W(V,U,N){N=Math.min(V.length,N);for(var D=[],ee=U;ee239?4:se>223?3:se>191?2:1;if(ee+re<=N){var Ie,Se,he,We;switch(re){case 1:se<128&&(X=se);break;case 2:Ie=V[ee+1],(Ie&192)===128&&(We=(se&31)<<6|Ie&63,We>127&&(X=We));break;case 3:Ie=V[ee+1],Se=V[ee+2],(Ie&192)===128&&(Se&192)===128&&(We=(se&15)<<12|(Ie&63)<<6|Se&63,We>2047&&(We<55296||We>57343)&&(X=We));break;case 4:Ie=V[ee+1],Se=V[ee+2],he=V[ee+3],(Ie&192)===128&&(Se&192)===128&&(he&192)===128&&(We=(se&15)<<18|(Ie&63)<<12|(Se&63)<<6|he&63,We>65535&&We<1114112&&(X=We))}}X===null?(X=65533,re=1):X>65535&&(X-=65536,D.push(X>>>10&1023|55296),X=56320|X&1023),D.push(X),ee+=re}return O(D)}var G=4096;function O(V){var U=V.length;if(U<=G)return String.fromCharCode.apply(String,V);for(var N="",D=0;DD)&&(N=D);for(var ee="",se=U;seD&&(U=D),N<0?(N+=D,N<0&&(N=0)):N>D&&(N=D),NN)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUIntLE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=this[U],se=1,X=0;++X0&&(se*=256);)ee+=this[U+--N]*se;return ee},v.prototype.readUInt8=function(U,N){return N||fe(U,1,this.length),this[U]},v.prototype.readUInt16LE=function(U,N){return N||fe(U,2,this.length),this[U]|this[U+1]<<8},v.prototype.readUInt16BE=function(U,N){return N||fe(U,2,this.length),this[U]<<8|this[U+1]},v.prototype.readUInt32LE=function(U,N){return N||fe(U,4,this.length),(this[U]|this[U+1]<<8|this[U+2]<<16)+this[U+3]*16777216},v.prototype.readUInt32BE=function(U,N){return N||fe(U,4,this.length),this[U]*16777216+(this[U+1]<<16|this[U+2]<<8|this[U+3])},v.prototype.readIntLE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=this[U],se=1,X=0;++X=se&&(ee-=Math.pow(2,8*N)),ee},v.prototype.readIntBE=function(U,N,D){U=U|0,N=N|0,D||fe(U,N,this.length);for(var ee=N,se=1,X=this[U+--ee];ee>0&&(se*=256);)X+=this[U+--ee]*se;return se*=128,X>=se&&(X-=Math.pow(2,8*N)),X},v.prototype.readInt8=function(U,N){return N||fe(U,1,this.length),this[U]&128?(255-this[U]+1)*-1:this[U]},v.prototype.readInt16LE=function(U,N){N||fe(U,2,this.length);var D=this[U]|this[U+1]<<8;return D&32768?D|4294901760:D},v.prototype.readInt16BE=function(U,N){N||fe(U,2,this.length);var D=this[U+1]|this[U]<<8;return D&32768?D|4294901760:D},v.prototype.readInt32LE=function(U,N){return N||fe(U,4,this.length),this[U]|this[U+1]<<8|this[U+2]<<16|this[U+3]<<24},v.prototype.readInt32BE=function(U,N){return N||fe(U,4,this.length),this[U]<<24|this[U+1]<<16|this[U+2]<<8|this[U+3]},v.prototype.readFloatLE=function(U,N){return N||fe(U,4,this.length),o.read(this,U,!0,23,4)},v.prototype.readFloatBE=function(U,N){return N||fe(U,4,this.length),o.read(this,U,!1,23,4)},v.prototype.readDoubleLE=function(U,N){return N||fe(U,8,this.length),o.read(this,U,!0,52,8)},v.prototype.readDoubleBE=function(U,N){return N||fe(U,8,this.length),o.read(this,U,!1,52,8)};function Ce(V,U,N,D,ee,se){if(!v.isBuffer(V))throw new TypeError('"buffer" argument must be a Buffer instance');if(U>ee||UV.length)throw new RangeError("Index out of range")}v.prototype.writeUIntLE=function(U,N,D,ee){if(U=+U,N=N|0,D=D|0,!ee){var se=Math.pow(2,8*D)-1;Ce(this,U,N,D,se,0)}var X=1,re=0;for(this[N]=U&255;++re=0&&(re*=256);)this[N+X]=U/re&255;return N+D},v.prototype.writeUInt8=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,1,255,0),v.TYPED_ARRAY_SUPPORT||(U=Math.floor(U)),this[N]=U&255,N+1};function ge(V,U,N,D){U<0&&(U=65535+U+1);for(var ee=0,se=Math.min(V.length-N,2);ee>>(D?ee:1-ee)*8}v.prototype.writeUInt16LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8):ge(this,U,N,!0),N+2},v.prototype.writeUInt16BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,65535,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>8,this[N+1]=U&255):ge(this,U,N,!1),N+2};function Me(V,U,N,D){U<0&&(U=4294967295+U+1);for(var ee=0,se=Math.min(V.length-N,4);ee>>(D?ee:3-ee)*8&255}v.prototype.writeUInt32LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[N+3]=U>>>24,this[N+2]=U>>>16,this[N+1]=U>>>8,this[N]=U&255):Me(this,U,N,!0),N+4},v.prototype.writeUInt32BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,4294967295,0),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>24,this[N+1]=U>>>16,this[N+2]=U>>>8,this[N+3]=U&255):Me(this,U,N,!1),N+4},v.prototype.writeIntLE=function(U,N,D,ee){if(U=+U,N=N|0,!ee){var se=Math.pow(2,8*D-1);Ce(this,U,N,D,se-1,-se)}var X=0,re=1,Ie=0;for(this[N]=U&255;++X>0)-Ie&255;return N+D},v.prototype.writeIntBE=function(U,N,D,ee){if(U=+U,N=N|0,!ee){var se=Math.pow(2,8*D-1);Ce(this,U,N,D,se-1,-se)}var X=D-1,re=1,Ie=0;for(this[N+X]=U&255;--X>=0&&(re*=256);)U<0&&Ie===0&&this[N+X+1]!==0&&(Ie=1),this[N+X]=(U/re>>0)-Ie&255;return N+D},v.prototype.writeInt8=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,1,127,-128),v.TYPED_ARRAY_SUPPORT||(U=Math.floor(U)),U<0&&(U=255+U+1),this[N]=U&255,N+1},v.prototype.writeInt16LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8):ge(this,U,N,!0),N+2},v.prototype.writeInt16BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,2,32767,-32768),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>8,this[N+1]=U&255):ge(this,U,N,!1),N+2},v.prototype.writeInt32LE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,2147483647,-2147483648),v.TYPED_ARRAY_SUPPORT?(this[N]=U&255,this[N+1]=U>>>8,this[N+2]=U>>>16,this[N+3]=U>>>24):Me(this,U,N,!0),N+4},v.prototype.writeInt32BE=function(U,N,D){return U=+U,N=N|0,D||Ce(this,U,N,4,2147483647,-2147483648),U<0&&(U=4294967295+U+1),v.TYPED_ARRAY_SUPPORT?(this[N]=U>>>24,this[N+1]=U>>>16,this[N+2]=U>>>8,this[N+3]=U&255):Me(this,U,N,!1),N+4};function Ne(V,U,N,D,ee,se){if(N+D>V.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("Index out of range")}function Qe(V,U,N,D,ee){return ee||Ne(V,U,N,4,34028234663852886e22,-34028234663852886e22),o.write(V,U,N,D,23,4),N+4}v.prototype.writeFloatLE=function(U,N,D){return Qe(this,U,N,!0,D)},v.prototype.writeFloatBE=function(U,N,D){return Qe(this,U,N,!1,D)};function Ve(V,U,N,D,ee){return ee||Ne(V,U,N,8,17976931348623157e292,-17976931348623157e292),o.write(V,U,N,D,52,8),N+8}v.prototype.writeDoubleLE=function(U,N,D){return Ve(this,U,N,!0,D)},v.prototype.writeDoubleBE=function(U,N,D){return Ve(this,U,N,!1,D)},v.prototype.copy=function(U,N,D,ee){if(D||(D=0),!ee&&ee!==0&&(ee=this.length),N>=U.length&&(N=U.length),N||(N=0),ee>0&&ee=this.length)throw new RangeError("sourceStart out of bounds");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),U.length-N=0;--X)U[X+N]=this[X+D];else if(se<1e3||!v.TYPED_ARRAY_SUPPORT)for(X=0;X>>0,D=D===void 0?this.length:D>>>0,U||(U=0);var X;if(typeof U=="number")for(X=N;X55295&&N<57344){if(!ee){if(N>56319){(U-=3)>-1&&se.push(239,191,189);continue}else if(X+1===D){(U-=3)>-1&&se.push(239,191,189);continue}ee=N;continue}if(N<56320){(U-=3)>-1&&se.push(239,191,189),ee=N;continue}N=(ee-55296<<10|N-56320)+65536}else ee&&(U-=3)>-1&&se.push(239,191,189);if(ee=null,N<128){if((U-=1)<0)break;se.push(N)}else if(N<2048){if((U-=2)<0)break;se.push(N>>6|192,N&63|128)}else if(N<65536){if((U-=3)<0)break;se.push(N>>12|224,N>>6&63|128,N&63|128)}else if(N<1114112){if((U-=4)<0)break;se.push(N>>18|240,N>>12&63|128,N>>6&63|128,N&63|128)}else throw new Error("Invalid code point")}return se}function ke(V){for(var U=[],N=0;N>8,ee=N%256,se.push(ee),se.push(D);return se}function et(V){return t.toByteArray(Mt(V))}function Fe(V,U,N,D){for(var ee=0;ee=U.length||ee>=V.length);++ee)U[ee+N]=V[ee];return ee}function ue(V){return V!==V}},87608:function(M,b){var e,i;(function(){"use strict";var t={}.hasOwnProperty,o="[native code]";function s(){for(var n=[],c=0;c1?arguments[1]:void 0,B=I>2?arguments[2]:void 0;return new(C("Promise"))(function(K){var H=o(A);$!==void 0&&($=i($,B));var ie=h(H,y),ce=ie?void 0:v(H)||R,te=s(L)?new L:[],W=ie?n(H,ie):new S(l(c(H,ce)));K(w(W,$,te))})}},50112:function(M,b,e){var i=e(89122);M.exports=function(t,o){for(var s=0,n=i(o),c=new t(n);n>s;)c[s]=o[s++];return c}},59765:function(M,b,e){"use strict";var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(89122),c=e(85623),l=c.Map,v=c.get,h=c.has,m=c.set,C=t([].push);M.exports=function(S){for(var w=s(this),y=o(w),Z=i(S,arguments.length>1?arguments[1]:void 0),F=new l,R=n(y),T=0,z,A;R>T;T++)A=y[T],z=Z(A,T,w),h(F,z)?C(v(F,z),A):m(F,z,[A]);return F}},69093:function(M,b,e){var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(76846),c=e(89122),l=e(34552),v=e(50112),h=Array,m=t([].push);M.exports=function(C,p,S,w){for(var y=s(C),Z=o(y),F=i(p,S),R=l(null),T=c(Z),z=0,A,L,I;T>z;z++)I=Z[z],L=n(F(I,z,y)),L in R?m(R[L],I):R[L]=[I];if(w&&(A=w(y),A!==h))for(L in R)R[L]=v(A,R[L]);return R}},63795:function(M,b,e){var i=e(514),t=e(71410),o=e(89122),s=function(n){return function(c,l,v){var h=i(c),m=o(h),C=t(v,m),p;if(n&&l!=l){for(;m>C;)if(p=h[C++],p!=p)return!0}else for(;m>C;C++)if((n||C in h)&&h[C]===l)return n||C||0;return!n&&-1}};M.exports={includes:s(!0),indexOf:s(!1)}},17464:function(M,b,e){var i=e(34066),t=e(42414),o=e(64441),s=e(89122),n=function(c){var l=c==1;return function(v,h,m){for(var C=o(v),p=t(C),S=i(h,m),w=s(p),y,Z;w-- >0;)if(y=p[w],Z=S(y,w,C),Z)switch(c){case 0:return y;case 1:return w}return l?-1:void 0}};M.exports={findLast:n(0),findLastIndex:n(1)}},44708:function(M,b,e){var i=e(34066),t=e(11700),o=e(42414),s=e(64441),n=e(89122),c=e(70850),l=t([].push),v=function(h){var m=h==1,C=h==2,p=h==3,S=h==4,w=h==6,y=h==7,Z=h==5||w;return function(F,R,T,z){for(var A=s(F),L=o(A),I=i(R,T),$=n(L),B=0,K=z||c,H=m?K(F,$):C||y?K(F,0):void 0,ie,ce;$>B;B++)if((Z||B in L)&&(ie=L[B],ce=I(ie,B,A),h))if(m)H[B]=ce;else if(ce)switch(h){case 3:return!0;case 5:return ie;case 6:return B;case 2:l(H,ie)}else switch(h){case 4:return!1;case 7:l(H,ie)}return w?-1:p||S?S:H}};M.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6),filterReject:v(7)}},83242:function(M,b,e){"use strict";var i=e(77149);M.exports=function(t,o){var s=[][t];return!!s&&i(function(){s.call(null,o||function(){return 1},1)})}},82565:function(M,b,e){var i=e(31927),t=e(64441),o=e(42414),s=e(89122),n=TypeError,c=function(l){return function(v,h,m,C){i(h);var p=t(v),S=o(p),w=s(p),y=l?w-1:0,Z=l?-1:1;if(m<2)for(;;){if(y in S){C=S[y],y+=Z;break}if(y+=Z,l?y<0:w<=y)throw n("Reduce of empty array with no initial value")}for(;l?y>=0:w>y;y+=Z)y in S&&(C=h(C,S[y],y,p));return C}};M.exports={left:c(!1),right:c(!0)}},77060:function(M,b,e){"use strict";var i=e(57759),t=e(190),o=TypeError,s=Object.getOwnPropertyDescriptor,n=i&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(c){return c instanceof TypeError}}();M.exports=n?function(c,l){if(t(c)&&!s(c,"length").writable)throw o("Cannot set read only .length");return c.length=l}:function(c,l){return c.length=l}},81469:function(M,b,e){var i=e(71410),t=e(89122),o=e(46509),s=Array,n=Math.max;M.exports=function(c,l,v){for(var h=t(c),m=i(l,h),C=i(v===void 0?h:v,h),p=s(n(C-m,0)),S=0;m=v||m<0)throw o("Incorrect index");for(var C=new n(v),p=0;p1?arguments[1]:void 0,p,S,w,y;return s(this),p=C!==void 0,p&&o(C),n(h)?new this:(S=[],p?(w=0,y=i(C,m>2?arguments[2]:void 0),c(h,function(Z){t(l,S,y(Z,w++))})):c(h,l,{that:S}),new this(S))}},55042:function(M,b,e){"use strict";var i=e(66322);M.exports=function(){return new this(i(arguments))}},42710:function(M,b,e){"use strict";var i=e(34552),t=e(2265),o=e(3313),s=e(34066),n=e(92453),c=e(74883),l=e(95815),v=e(94636),h=e(76835),m=e(51309),C=e(57759),p=e(80787).fastKey,S=e(71584),w=S.set,y=S.getterFor;M.exports={getConstructor:function(Z,F,R,T){var z=Z(function(B,K){n(B,A),w(B,{type:F,index:i(null),first:void 0,last:void 0,size:0}),C||(B.size=0),c(K)||l(K,B[T],{that:B,AS_ENTRIES:R})}),A=z.prototype,L=y(F),I=function(B,K,H){var ie=L(B),ce=$(B,K),te,W;return ce?ce.value=H:(ie.last=ce={index:W=p(K,!0),key:K,value:H,previous:te=ie.last,next:void 0,removed:!1},ie.first||(ie.first=ce),te&&(te.next=ce),C?ie.size++:B.size++,W!=="F"&&(ie.index[W]=ce)),B},$=function(B,K){var H=L(B),ie=p(K),ce;if(ie!=="F")return H.index[ie];for(ce=H.first;ce;ce=ce.next)if(ce.key==K)return ce};return o(A,{clear:function(){for(var K=this,H=L(K),ie=H.index,ce=H.first;ce;)ce.removed=!0,ce.previous&&(ce.previous=ce.previous.next=void 0),delete ie[ce.index],ce=ce.next;H.first=H.last=void 0,C?H.size=0:K.size=0},delete:function(B){var K=this,H=L(K),ie=$(K,B);if(ie){var ce=ie.next,te=ie.previous;delete H.index[ie.index],ie.removed=!0,te&&(te.next=ce),ce&&(ce.previous=te),H.first==ie&&(H.first=ce),H.last==ie&&(H.last=te),C?H.size--:K.size--}return!!ie},forEach:function(K){for(var H=L(this),ie=s(K,arguments.length>1?arguments[1]:void 0),ce;ce=ce?ce.next:H.first;)for(ie(ce.value,ce.key,this);ce&&ce.removed;)ce=ce.previous},has:function(K){return!!$(this,K)}}),o(A,R?{get:function(K){var H=$(this,K);return H&&H.value},set:function(K,H){return I(this,K===0?0:K,H)}}:{add:function(K){return I(this,K=K===0?0:K,K)}}),C&&t(A,"size",{configurable:!0,get:function(){return L(this).size}}),z},setStrong:function(Z,F,R){var T=F+" Iterator",z=y(F),A=y(T);v(Z,F,function(L,I){w(this,{type:T,target:L,state:z(L),kind:I,last:void 0})},function(){for(var L=A(this),I=L.kind,$=L.last;$&&$.removed;)$=$.previous;return!L.target||!(L.last=$=$?$.next:L.state.first)?(L.target=void 0,h(void 0,!0)):I=="keys"?h($.key,!1):I=="values"?h($.value,!1):h([$.key,$.value],!1)},R?"entries":"values",!R,!0),m(F)}}},90253:function(M,b,e){"use strict";var i=e(11700),t=e(3313),o=e(80787).getWeakData,s=e(92453),n=e(78958),c=e(74883),l=e(33225),v=e(95815),h=e(44708),m=e(26583),C=e(71584),p=C.set,S=C.getterFor,w=h.find,y=h.findIndex,Z=i([].splice),F=0,R=function(A){return A.frozen||(A.frozen=new T)},T=function(){this.entries=[]},z=function(A,L){return w(A.entries,function(I){return I[0]===L})};T.prototype={get:function(A){var L=z(this,A);if(L)return L[1]},has:function(A){return!!z(this,A)},set:function(A,L){var I=z(this,A);I?I[1]=L:this.entries.push([A,L])},delete:function(A){var L=y(this.entries,function(I){return I[0]===A});return~L&&Z(this.entries,L,1),!!~L}},M.exports={getConstructor:function(A,L,I,$){var B=A(function(ce,te){s(ce,K),p(ce,{type:L,id:F++,frozen:void 0}),c(te)||v(te,ce[$],{that:ce,AS_ENTRIES:I})}),K=B.prototype,H=S(L),ie=function(ce,te,W){var G=H(ce),O=o(n(te),!0);return O===!0?R(G).set(te,W):O[G.id]=W,ce};return t(K,{delete:function(ce){var te=H(this);if(!l(ce))return!1;var W=o(ce);return W===!0?R(te).delete(ce):W&&m(W,te.id)&&delete W[te.id]},has:function(te){var W=H(this);if(!l(te))return!1;var G=o(te);return G===!0?R(W).has(te):G&&m(G,W.id)}}),t(K,I?{get:function(te){var W=H(this);if(l(te)){var G=o(te);return G===!0?R(W).get(te):G?G[W.id]:void 0}},set:function(te,W){return ie(this,te,W)}}:{add:function(te){return ie(this,te,!0)}}),B}}},91821:function(M,b,e){"use strict";var i=e(13354),t=e(53065),o=e(11700),s=e(29206),n=e(28621),c=e(80787),l=e(95815),v=e(92453),h=e(6508),m=e(74883),C=e(33225),p=e(77149),S=e(44277),w=e(68156),y=e(95173);M.exports=function(Z,F,R){var T=Z.indexOf("Map")!==-1,z=Z.indexOf("Weak")!==-1,A=T?"set":"add",L=t[Z],I=L&&L.prototype,$=L,B={},K=function(O){var k=o(I[O]);n(I,O,O=="add"?function(P){return k(this,P===0?0:P),this}:O=="delete"?function(Y){return z&&!C(Y)?!1:k(this,Y===0?0:Y)}:O=="get"?function(P){return z&&!C(P)?void 0:k(this,P===0?0:P)}:O=="has"?function(P){return z&&!C(P)?!1:k(this,P===0?0:P)}:function(P,Q){return k(this,P===0?0:P,Q),this})},H=s(Z,!h(L)||!(z||I.forEach&&!p(function(){new L().entries().next()})));if(H)$=R.getConstructor(F,Z,T,A),c.enable();else if(s(Z,!0)){var ie=new $,ce=ie[A](z?{}:-0,1)!=ie,te=p(function(){ie.has(1)}),W=S(function(O){new L(O)}),G=!z&&p(function(){for(var O=new L,k=5;k--;)O[A](k,k);return!O.has(-0)});W||($=F(function(O,k){v(O,I);var Y=y(new L,O,$);return m(k)||l(k,Y[A],{that:Y,AS_ENTRIES:T}),Y}),$.prototype=I,I.constructor=$),(te||G)&&(K("delete"),K("has"),T&&K("get")),(G||ce)&&K(A),z&&I.clear&&delete I.clear}return B[Z]=$,i({global:!0,constructor:!0,forced:$!=L},B),w($,Z),z||R.setStrong($,Z,T),$}},95249:function(M,b,e){e(72660),e(11995);var i=e(42725),t=e(34552),o=e(33225),s=Object,n=TypeError,c=i("Map"),l=i("WeakMap"),v=function(){this.object=null,this.symbol=null,this.primitives=null,this.objectsByIndex=t(null)};v.prototype.get=function(m,C){return this[m]||(this[m]=C())},v.prototype.next=function(m,C,p){var S=p?this.objectsByIndex[m]||(this.objectsByIndex[m]=new l):this.primitives||(this.primitives=new c),w=S.get(C);return w||S.set(C,w=new v),w};var h=new v;M.exports=function(){var m=h,C=arguments.length,p,S;for(p=0;pe)throw b("Maximum allowed index exceeded");return i}},73443:function(M){M.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},83051:function(M,b,e){var i=e(79132),t=e(79727);M.exports=!i&&!t&&typeof window=="object"&&typeof document=="object"},8266:function(M){M.exports=typeof Bun=="function"&&Bun&&typeof Bun.version=="string"},79132:function(M){M.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},72833:function(M,b,e){var i=e(47048);M.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},79727:function(M,b,e){var i=e(73656),t=e(88596);M.exports=typeof i!="undefined"&&t(i)=="process"},47048:function(M){M.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},8783:function(M,b,e){var i=e(53065),t=e(47048),o=i.process,s=i.Deno,n=o&&o.versions||s&&s.version,c=n&&n.v8,l,v;c&&(l=c.split("."),v=l[0]>0&&l[0]<4?1:+(l[0]+l[1])),!v&&t&&(l=t.match(/Edge\/(\d+)/),(!l||l[1]>=74)&&(l=t.match(/Chrome\/(\d+)/),l&&(v=+l[1]))),M.exports=v},70721:function(M,b,e){var i=e(53065);M.exports=function(t){return i[t].prototype}},68150:function(M){M.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},68488:function(M,b,e){var i=e(11700),t=Error,o=i("".replace),s=function(l){return String(t(l).stack)}("zxcasd"),n=/\n\s*at [^:]*:[^\n]*/,c=n.test(s);M.exports=function(l,v){if(c&&typeof l=="string"&&!t.prepareStackTrace)for(;v--;)l=o(l,n,"");return l}},96410:function(M,b,e){var i=e(5927),t=e(68488),o=e(39728),s=Error.captureStackTrace;M.exports=function(n,c,l,v){o&&(s?s(n,c):i(n,"stack",t(l,v)))}},39728:function(M,b,e){var i=e(77149),t=e(87971);M.exports=!i(function(){var o=Error("a");return"stack"in o?(Object.defineProperty(o,"stack",t(1,7)),o.stack!==7):!0})},13354:function(M,b,e){var i=e(53065),t=e(91042).f,o=e(5927),s=e(28621),n=e(40194),c=e(81732),l=e(29206);M.exports=function(v,h){var m=v.target,C=v.global,p=v.stat,S,w,y,Z,F,R;if(C?w=i:p?w=i[m]||n(m,{}):w=(i[m]||{}).prototype,w)for(y in h){if(F=h[y],v.dontCallGetSet?(R=t(w,y),Z=R&&R.value):Z=w[y],S=l(C?y:m+(p?".":"#")+y,v.forced),!S&&Z!==void 0){if(typeof F==typeof Z)continue;c(F,Z)}(v.sham||Z&&Z.sham)&&o(F,"sham",!0),s(w,y,F,v)}}},77149:function(M){M.exports=function(b){try{return!!b()}catch(e){return!0}}},81506:function(M,b,e){var i=e(77149);M.exports=!i(function(){return Object.isExtensible(Object.preventExtensions({}))})},59178:function(M,b,e){var i=e(34300),t=Function.prototype,o=t.apply,s=t.call;M.exports=typeof Reflect=="object"&&Reflect.apply||(i?s.bind(o):function(){return s.apply(o,arguments)})},34066:function(M,b,e){var i=e(39338),t=e(31927),o=e(34300),s=i(i.bind);M.exports=function(n,c){return t(n),c===void 0?n:o?s(n,c):function(){return n.apply(c,arguments)}}},34300:function(M,b,e){var i=e(77149);M.exports=!i(function(){var t=function(){}.bind();return typeof t!="function"||t.hasOwnProperty("prototype")})},68029:function(M,b,e){var i=e(34300),t=Function.prototype.call;M.exports=i?t.bind(t):function(){return t.apply(t,arguments)}},44761:function(M,b,e){"use strict";var i=e(11700),t=e(31927);M.exports=function(){return i(t(this))}},27593:function(M,b,e){var i=e(57759),t=e(26583),o=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,n=t(o,"name"),c=n&&function(){}.name==="something",l=n&&(!i||i&&s(o,"name").configurable);M.exports={EXISTS:n,PROPER:c,CONFIGURABLE:l}},12719:function(M,b,e){var i=e(11700),t=e(31927);M.exports=function(o,s,n){try{return i(t(Object.getOwnPropertyDescriptor(o,s)[n]))}catch(c){}}},39338:function(M,b,e){var i=e(88596),t=e(11700);M.exports=function(o){if(i(o)==="Function")return t(o)}},11700:function(M,b,e){var i=e(34300),t=Function.prototype,o=t.call,s=i&&t.bind.bind(o,o);M.exports=i?s:function(n){return function(){return o.apply(n,arguments)}}},83658:function(M,b,e){var i=e(68029),t=e(6508),o=e(78958),s=e(55086),n=e(56071),c=e(15931),l=e(77740),v=e(66219),h=l("asyncIterator");M.exports=function(C){var p=o(C),S=!0,w=c(p,h),y;return t(w)||(w=n(p),S=!1),t(w)?y=i(w,p):(y=p,S=!0),o(y),s(S?y:new v(s(y)))}},85231:function(M,b,e){var i=e(68029),t=e(66219),o=e(78958),s=e(64712),n=e(55086),c=e(15931),l=e(77740),v=l("asyncIterator");M.exports=function(h,m){var C=arguments.length<2?c(h,v):m;return C?o(i(C,h)):new t(n(s(h)))}},42725:function(M,b,e){var i=e(53065),t=e(6508),o=function(s){return t(s)?s:void 0};M.exports=function(s,n){return arguments.length<2?o(i[s]):i[s]&&i[s][n]}},55086:function(M,b,e){var i=e(31927),t=e(78958);M.exports=function(o){return{iterator:o,next:i(t(o).next)}}},69896:function(M,b,e){var i=e(68029),t=e(6508),o=e(78958),s=e(55086),n=e(56071);M.exports=function(c){var l=o(c),v=n(l);return s(o(t(v)?i(v,l):l))}},56071:function(M,b,e){var i=e(56834),t=e(15931),o=e(74883),s=e(43125),n=e(77740),c=n("iterator");M.exports=function(l){if(!o(l))return t(l,c)||t(l,"@@iterator")||s[i(l)]}},64712:function(M,b,e){var i=e(68029),t=e(31927),o=e(78958),s=e(30238),n=e(56071),c=TypeError;M.exports=function(l,v){var h=arguments.length<2?n(l):v;if(t(h))return o(i(h,l));throw c(s(l)+" is not iterable")}},75126:function(M,b,e){var i=e(11700),t=e(190),o=e(6508),s=e(88596),n=e(68424),c=i([].push);M.exports=function(l){if(o(l))return l;if(t(l)){for(var v=l.length,h=[],m=0;m]*>)/g,v=/\$([$&'`]|\d{1,2})/g;M.exports=function(h,m,C,p,S,w){var y=C+h.length,Z=p.length,F=v;return S!==void 0&&(S=t(S),F=l),n(w,F,function(R,T){var z;switch(s(T,0)){case"$":return"$";case"&":return h;case"`":return c(m,0,C);case"'":return c(m,y);case"<":z=S[c(T,1,-1)];break;default:var A=+T;if(A===0)return R;if(A>Z){var L=o(A/10);return L===0?R:L<=Z?p[L-1]===void 0?s(T,1):p[L-1]+s(T,1):R}z=p[A-1]}return z===void 0?"":z})}},53065:function(M,b,e){var i=function(t){return t&&t.Math==Math&&t};M.exports=i(typeof globalThis=="object"&&globalThis)||i(typeof window=="object"&&window)||i(typeof self=="object"&&self)||i(typeof e.g=="object"&&e.g)||function(){return this}()||Function("return this")()},26583:function(M,b,e){var i=e(11700),t=e(64441),o=i({}.hasOwnProperty);M.exports=Object.hasOwn||function(n,c){return o(t(n),c)}},17859:function(M){M.exports={}},3234:function(M){M.exports=function(b,e){try{arguments.length==1?console.error(b):console.error(b,e)}catch(i){}}},8199:function(M,b,e){var i=e(42725);M.exports=i("document","documentElement")},96335:function(M,b,e){var i=e(57759),t=e(77149),o=e(75074);M.exports=!i&&!t(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},42414:function(M,b,e){var i=e(11700),t=e(77149),o=e(88596),s=Object,n=i("".split);M.exports=t(function(){return!s("z").propertyIsEnumerable(0)})?function(c){return o(c)=="String"?n(c,""):s(c)}:s},95173:function(M,b,e){var i=e(6508),t=e(33225),o=e(63332);M.exports=function(s,n,c){var l,v;return o&&i(l=n.constructor)&&l!==c&&t(v=l.prototype)&&v!==c.prototype&&o(s,v),s}},45274:function(M,b,e){var i=e(11700),t=e(6508),o=e(1396),s=i(Function.toString);t(o.inspectSource)||(o.inspectSource=function(n){return s(n)}),M.exports=o.inspectSource},13719:function(M,b,e){var i=e(33225),t=e(5927);M.exports=function(o,s){i(s)&&"cause"in s&&t(o,"cause",s.cause)}},80787:function(M,b,e){var i=e(13354),t=e(11700),o=e(17859),s=e(33225),n=e(26583),c=e(38248).f,l=e(94561),v=e(56647),h=e(50175),m=e(89669),C=e(81506),p=!1,S=m("meta"),w=0,y=function(A){c(A,S,{value:{objectID:"O"+w++,weakData:{}}})},Z=function(A,L){if(!s(A))return typeof A=="symbol"?A:(typeof A=="string"?"S":"P")+A;if(!n(A,S)){if(!h(A))return"F";if(!L)return"E";y(A)}return A[S].objectID},F=function(A,L){if(!n(A,S)){if(!h(A))return!0;if(!L)return!1;y(A)}return A[S].weakData},R=function(A){return C&&p&&h(A)&&!n(A,S)&&y(A),A},T=function(){z.enable=function(){},p=!0;var A=l.f,L=t([].splice),I={};I[S]=1,A(I).length&&(l.f=function($){for(var B=A($),K=0,H=B.length;KB;B++)if(H=W(w[B]),H&&l(S,H))return H;return new p(!1)}I=v(w,$)}for(ie=T?w.next:I.next;!(ce=t(ie,I)).done;){try{H=W(ce.value)}catch(G){m(I,"throw",G)}if(typeof H=="object"&&H&&l(S,H))return H}return new p(!1)}},40164:function(M,b,e){var i=e(68029),t=e(78958),o=e(15931);M.exports=function(s,n,c){var l,v;t(s);try{if(l=o(s,"return"),!l){if(n==="throw")throw c;return c}l=i(l,s)}catch(h){v=!0,l=h}if(n==="throw")throw c;if(v)throw l;return t(l),c}},87821:function(M,b,e){"use strict";var i=e(41019).IteratorPrototype,t=e(34552),o=e(87971),s=e(68156),n=e(43125),c=function(){return this};M.exports=function(l,v,h,m){var C=v+" Iterator";return l.prototype=t(i,{next:o(+!m,h)}),s(l,C,!1,!0),n[C]=c,l}},36911:function(M,b,e){"use strict";var i=e(68029),t=e(34552),o=e(5927),s=e(3313),n=e(77740),c=e(71584),l=e(15931),v=e(41019).IteratorPrototype,h=e(76835),m=e(40164),C=n("toStringTag"),p="IteratorHelper",S="WrapForValidIterator",w=c.set,y=function(R){var T=c.getterFor(R?S:p);return s(t(v),{next:function(){var A=T(this);if(R)return A.nextHandler();try{var L=A.done?void 0:A.nextHandler();return h(L,A.done)}catch(I){throw A.done=!0,I}},return:function(){var z=T(this),A=z.iterator;if(z.done=!0,R){var L=l(A,"return");return L?i(L,A):h(void 0,!0)}if(z.inner)try{m(z.inner.iterator,"normal")}catch(I){return m(A,"throw",I)}return m(A,"normal"),h(void 0,!0)}})},Z=y(!0),F=y(!1);o(F,C,"Iterator Helper"),M.exports=function(R,T){var z=function(L,I){I?(I.iterator=L.iterator,I.next=L.next):I=L,I.type=T?S:p,I.nextHandler=R,I.counter=0,I.done=!1,w(this,I)};return z.prototype=T?Z:F,z}},94636:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(77449),s=e(27593),n=e(6508),c=e(87821),l=e(77767),v=e(63332),h=e(68156),m=e(5927),C=e(28621),p=e(77740),S=e(43125),w=e(41019),y=s.PROPER,Z=s.CONFIGURABLE,F=w.IteratorPrototype,R=w.BUGGY_SAFARI_ITERATORS,T=p("iterator"),z="keys",A="values",L="entries",I=function(){return this};M.exports=function($,B,K,H,ie,ce,te){c(K,B,H);var W=function(Me){if(Me===ie&&P)return P;if(!R&&Me in k)return k[Me];switch(Me){case z:return function(){return new K(this,Me)};case A:return function(){return new K(this,Me)};case L:return function(){return new K(this,Me)}}return function(){return new K(this)}},G=B+" Iterator",O=!1,k=$.prototype,Y=k[T]||k["@@iterator"]||ie&&k[ie],P=!R&&Y||W(ie),Q=B=="Array"&&k.entries||Y,fe,Ce,ge;if(Q&&(fe=l(Q.call(new $)),fe!==Object.prototype&&fe.next&&(!o&&l(fe)!==F&&(v?v(fe,F):n(fe[T])||C(fe,T,I)),h(fe,G,!0,!0),o&&(S[G]=I))),y&&ie==A&&Y&&Y.name!==A&&(!o&&Z?m(k,"name",A):(O=!0,P=function(){return t(Y,this)})),ie)if(Ce={values:W(A),keys:ce?P:W(z),entries:W(L)},te)for(ge in Ce)(R||O||!(ge in k))&&C(k,ge,Ce[ge]);else i({target:B,proto:!0,forced:R||O},Ce);return(!o||te)&&k[T]!==P&&C(k,T,P,{name:ie}),S[B]=P,Ce}},45656:function(M,b,e){"use strict";var i=e(68029),t=e(87931),o=function(s,n){return[n,s]};M.exports=function(){return i(t,this,o)}},87931:function(M,b,e){"use strict";var i=e(68029),t=e(31927),o=e(78958),s=e(55086),n=e(36911),c=e(74031),l=n(function(){var v=this.iterator,h=o(i(this.next,v)),m=this.done=!!h.done;if(!m)return c(v,this.mapper,[h.value,this.counter++],!0)});M.exports=function(h){return new l(s(this),{mapper:t(h)})}},41019:function(M,b,e){"use strict";var i=e(77149),t=e(6508),o=e(33225),s=e(34552),n=e(77767),c=e(28621),l=e(77740),v=e(77449),h=l("iterator"),m=!1,C,p,S;[].keys&&(S=[].keys(),"next"in S?(p=n(n(S)),p!==Object.prototype&&(C=p)):m=!0);var w=!o(C)||i(function(){var y={};return C[h].call(y)!==y});w?C={}:v&&(C=s(C)),t(C[h])||c(C,h,function(){return this}),M.exports={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:m}},43125:function(M){M.exports={}},89122:function(M,b,e){var i=e(25010);M.exports=function(t){return i(t.length)}},70377:function(M,b,e){var i=e(11700),t=e(77149),o=e(6508),s=e(26583),n=e(57759),c=e(27593).CONFIGURABLE,l=e(45274),v=e(71584),h=v.enforce,m=v.get,C=String,p=Object.defineProperty,S=i("".slice),w=i("".replace),y=i([].join),Z=n&&!t(function(){return p(function(){},"length",{value:8}).length!==8}),F=String(String).split("String"),R=M.exports=function(T,z,A){S(C(z),0,7)==="Symbol("&&(z="["+w(C(z),/^Symbol\(([^)]*)\)/,"$1")+"]"),A&&A.getter&&(z="get "+z),A&&A.setter&&(z="set "+z),(!s(T,"name")||c&&T.name!==z)&&(n?p(T,"name",{value:z,configurable:!0}):T.name=z),Z&&A&&s(A,"arity")&&T.length!==A.arity&&p(T,"length",{value:A.arity});try{A&&s(A,"constructor")&&A.constructor?n&&p(T,"prototype",{writable:!1}):T.prototype&&(T.prototype=void 0)}catch(I){}var L=h(T);return s(L,"source")||(L.source=y(F,typeof z=="string"?z:"")),T};Function.prototype.toString=R(function(){return o(this)&&m(this).source||l(this)},"toString")},85623:function(M,b,e){var i=e(11700),t=Map.prototype;M.exports={Map,set:i(t.set),get:i(t.get),has:i(t.has),remove:i(t.delete),proto:t}},46782:function(M,b,e){var i=e(11700),t=e(95060),o=e(85623),s=o.Map,n=o.proto,c=i(n.forEach),l=i(n.entries),v=l(new s).next;M.exports=function(h,m,C){return C?t(l(h),function(p){return m(p[1],p[0])},v):c(h,m)}},32171:function(M,b,e){"use strict";var i=e(68029),t=e(31927),o=e(6508),s=e(78958),n=TypeError;M.exports=function(l,v){var h=s(this),m=t(h.get),C=t(h.has),p=t(h.set),S=arguments.length>2?arguments[2]:void 0,w;if(!o(v)&&!o(S))throw n("At least one callback required");return i(C,h,l)?(w=i(m,h,l),o(v)&&(w=v(w),i(p,h,l,w))):o(S)&&(w=S(),i(p,h,l,w)),w}},18749:function(M,b,e){var i=e(75169),t=Math.abs,o=Math.pow,s=o(2,-52),n=o(2,-23),c=o(2,127)*(2-n),l=o(2,-126),v=function(h){return h+1/s-1/s};M.exports=Math.fround||function(m){var C=+m,p=t(C),S=i(C),w,y;return pc||y!=y?S*(1/0):S*y)}},15129:function(M){M.exports=Math.scale||function(e,i,t,o,s){var n=+e,c=+i,l=+t,v=+o,h=+s;return n!=n||c!=c||l!=l||v!=v||h!=h?NaN:n===1/0||n===-1/0?n:(n-c)*(h-v)/(l-c)+v}},75169:function(M){M.exports=Math.sign||function(e){var i=+e;return i==0||i!=i?i:i<0?-1:1}},18243:function(M){var b=Math.ceil,e=Math.floor;M.exports=Math.trunc||function(t){var o=+t;return(o>0?e:b)(o)}},66286:function(M,b,e){var i=e(77149);M.exports=!i(function(){var t="9007199254740993",o=JSON.rawJSON(t);return!JSON.isRawJSON(o)||JSON.stringify(o)!==t})},71440:function(M,b,e){"use strict";var i=e(31927),t=TypeError,o=function(s){var n,c;this.promise=new s(function(l,v){if(n!==void 0||c!==void 0)throw t("Bad Promise constructor");n=l,c=v}),this.resolve=i(n),this.reject=i(c)};M.exports.f=function(s){return new o(s)}},9280:function(M,b,e){var i=e(68424);M.exports=function(t,o){return t===void 0?arguments.length<2?"":o:i(t)}},29597:function(M){var b=RangeError;M.exports=function(e){if(e===e)return e;throw b("NaN is not allowed")}},54633:function(M,b,e){var i=e(53065),t=i.isFinite;M.exports=Number.isFinite||function(s){return typeof s=="number"&&t(s)}},35323:function(M,b,e){var i=e(53065),t=e(77149),o=e(11700),s=e(68424),n=e(53761).trim,c=e(91289),l=i.parseInt,v=i.Symbol,h=v&&v.iterator,m=/^[+-]?0x/i,C=o(m.exec),p=l(c+"08")!==8||l(c+"0x16")!==22||h&&!t(function(){l(Object(h))});M.exports=p?function(w,y){var Z=n(s(w));return l(Z,y>>>0||(C(m,Z)?16:10))}:l},73126:function(M,b,e){"use strict";var i=e(71584),t=e(87821),o=e(76835),s=e(74883),n=e(33225),c=e(97867).f,l=e(57759),v="Incorrect Iterator.range arguments",h="NumericRangeIterator",m=i.set,C=i.getterFor(h),p=RangeError,S=TypeError,w=t(function(F,R,T,z,A,L){if(typeof F!=z||R!==1/0&&R!==-1/0&&typeof R!=z)throw S(v);if(F===1/0||F===-1/0)throw p(v);var I=R>F,$=!1,B;if(T===void 0)B=void 0;else if(n(T))B=T.step,$=!!T.inclusive;else if(typeof T==z)B=T;else throw S(v);if(s(B)&&(B=I?L:-L),typeof B!=z)throw S(v);if(B===1/0||B===-1/0||B===A&&F!==R)throw p(v);var K=F!=F||R!=R||B!=B||R>F!=B>A;m(this,{type:h,start:F,end:R,step:B,inclusiveEnd:$,hitsEnd:K,currentCount:A,zero:A}),l||(this.start=F,this.end=R,this.step=B,this.inclusive=$)},h,function(){var F=C(this);if(F.hitsEnd)return o(void 0,!0);var R=F.start,T=F.end,z=F.step,A=R+z*F.currentCount++;A===T&&(F.hitsEnd=!0);var L=F.inclusiveEnd,I;return T>R?I=L?A>T:A>=T:I=L?T>A:T>=A,I?(F.hitsEnd=!0,o(void 0,!0)):o(A,!1)}),y=function(Z){return{get:Z,set:function(){},configurable:!0,enumerable:!1}};l&&c(w.prototype,{start:y(function(){return C(this).start}),end:y(function(){return C(this).end}),inclusive:y(function(){return C(this).inclusiveEnd}),step:y(function(){return C(this).step})}),M.exports=w},34552:function(M,b,e){var i=e(78958),t=e(97867),o=e(68150),s=e(17859),n=e(8199),c=e(75074),l=e(39376),v=">",h="<",m="prototype",C="script",p=l("IE_PROTO"),S=function(){},w=function(T){return h+C+v+T+h+"/"+C+v},y=function(T){T.write(w("")),T.close();var z=T.parentWindow.Object;return T=null,z},Z=function(){var T=c("iframe"),z="java"+C+":",A;return T.style.display="none",n.appendChild(T),T.src=String(z),A=T.contentWindow.document,A.open(),A.write(w("document.F=Object")),A.close(),A.F},F,R=function(){try{F=new ActiveXObject("htmlfile")}catch(z){}R=typeof document!="undefined"?document.domain&&F?y(F):Z():y(F);for(var T=o.length;T--;)delete R[m][o[T]];return R()};s[p]=!0,M.exports=Object.create||function(z,A){var L;return z!==null?(S[m]=i(z),L=new S,S[m]=null,L[p]=z):L=R(),A===void 0?L:t.f(L,A)}},97867:function(M,b,e){var i=e(57759),t=e(63980),o=e(38248),s=e(78958),n=e(514),c=e(71691);b.f=i&&!t?Object.defineProperties:function(v,h){s(v);for(var m=n(h),C=c(h),p=C.length,S=0,w;p>S;)o.f(v,w=C[S++],m[w]);return v}},38248:function(M,b,e){var i=e(57759),t=e(96335),o=e(63980),s=e(78958),n=e(76846),c=TypeError,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,h="enumerable",m="configurable",C="writable";b.f=i?o?function(S,w,y){if(s(S),w=n(w),s(y),typeof S=="function"&&w==="prototype"&&"value"in y&&C in y&&!y[C]){var Z=v(S,w);Z&&Z[C]&&(S[w]=y.value,y={configurable:m in y?y[m]:Z[m],enumerable:h in y?y[h]:Z[h],writable:!1})}return l(S,w,y)}:l:function(S,w,y){if(s(S),w=n(w),s(y),t)try{return l(S,w,y)}catch(Z){}if("get"in y||"set"in y)throw c("Accessors not supported");return"value"in y&&(S[w]=y.value),S}},91042:function(M,b,e){var i=e(57759),t=e(68029),o=e(83688),s=e(87971),n=e(514),c=e(76846),l=e(26583),v=e(96335),h=Object.getOwnPropertyDescriptor;b.f=i?h:function(C,p){if(C=n(C),p=c(p),v)try{return h(C,p)}catch(S){}if(l(C,p))return s(!t(o.f,C,p),C[p])}},56647:function(M,b,e){var i=e(88596),t=e(514),o=e(94561).f,s=e(81469),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(l){try{return o(l)}catch(v){return s(n)}};M.exports.f=function(v){return n&&i(v)=="Window"?c(v):o(t(v))}},94561:function(M,b,e){var i=e(4482),t=e(68150),o=t.concat("length","prototype");b.f=Object.getOwnPropertyNames||function(n){return i(n,o)}},10290:function(M,b){b.f=Object.getOwnPropertySymbols},77767:function(M,b,e){var i=e(26583),t=e(6508),o=e(64441),s=e(39376),n=e(80978),c=s("IE_PROTO"),l=Object,v=l.prototype;M.exports=n?l.getPrototypeOf:function(h){var m=o(h);if(i(m,c))return m[c];var C=m.constructor;return t(C)&&m instanceof C?C.prototype:m instanceof l?v:null}},50175:function(M,b,e){var i=e(77149),t=e(33225),o=e(88596),s=e(23932),n=Object.isExtensible,c=i(function(){n(1)});M.exports=c||s?function(v){return!t(v)||s&&o(v)=="ArrayBuffer"?!1:n?n(v):!0}:n},72901:function(M,b,e){var i=e(11700);M.exports=i({}.isPrototypeOf)},65556:function(M,b,e){"use strict";var i=e(71584),t=e(87821),o=e(76835),s=e(26583),n=e(71691),c=e(64441),l="Object Iterator",v=i.set,h=i.getterFor(l);M.exports=t(function(C,p){var S=c(C);v(this,{type:l,mode:p,object:S,keys:n(S),index:0})},"Object",function(){for(var C=h(this),p=C.keys;;){if(p===null||C.index>=p.length)return C.object=C.keys=null,o(void 0,!0);var S=p[C.index++],w=C.object;if(s(w,S)){switch(C.mode){case"keys":return o(S,!1);case"values":return o(w[S],!1)}return o([S,w[S]],!1)}}})},4482:function(M,b,e){var i=e(11700),t=e(26583),o=e(514),s=e(63795).indexOf,n=e(17859),c=i([].push);M.exports=function(l,v){var h=o(l),m=0,C=[],p;for(p in h)!t(n,p)&&t(h,p)&&c(C,p);for(;v.length>m;)t(h,p=v[m++])&&(~s(C,p)||c(C,p));return C}},71691:function(M,b,e){var i=e(4482),t=e(68150);M.exports=Object.keys||function(s){return i(s,t)}},83688:function(M,b){"use strict";var e={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,t=i&&!e.call({1:2},1);b.f=t?function(s){var n=i(this,s);return!!n&&n.enumerable}:e},63332:function(M,b,e){var i=e(12719),t=e(78958),o=e(66961);M.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,n={},c;try{c=i(Object.prototype,"__proto__","set"),c(n,[]),s=n instanceof Array}catch(l){}return function(v,h){return t(v),o(h),s?c(v,h):v.__proto__=h,v}}():void 0)},88818:function(M,b,e){var i=e(53065),t=e(6508),o=e(77740),s=o("observable"),n=i.Observable,c=n&&n.prototype;M.exports=!t(n)||!t(n.from)||!t(n.of)||!t(c.subscribe)||!t(c[s])},54026:function(M,b,e){var i=e(68029),t=e(6508),o=e(33225),s=TypeError;M.exports=function(n,c){var l,v;if(c==="string"&&t(l=n.toString)&&!o(v=i(l,n))||t(l=n.valueOf)&&!o(v=i(l,n))||c!=="string"&&t(l=n.toString)&&!o(v=i(l,n)))return v;throw s("Can't convert object to primitive value")}},60999:function(M,b,e){var i=e(42725),t=e(11700),o=e(94561),s=e(10290),n=e(78958),c=t([].concat);M.exports=i("Reflect","ownKeys")||function(v){var h=o.f(n(v)),m=s.f;return m?c(h,m(v)):h}},12539:function(M,b,e){var i=e(11700),t=e(26583),o=SyntaxError,s=parseInt,n=String.fromCharCode,c=i("".charAt),l=i("".slice),v=i(/./.exec),h={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":` `,"\\r":"\r","\\t":" "},m=/^[\da-f]{4}$/i,C=/^[\u0000-\u001F]$/;M.exports=function(p,S){for(var w=!0,y="";Sp,Z=o(S)?S:v(S),F=y?c(arguments,p):[],R=y?function(){t(Z,this,F)}:Z;return C?m(R,w):m(R)}:m}},38684:function(M,b,e){var i=e(23313),t=e(22731),o=i.Set,s=i.add;M.exports=function(n){var c=new o;return t(n,function(l){s(c,l)}),c}},53505:function(M,b,e){"use strict";var i=e(77318),t=e(23313),o=e(38684),s=e(17085),n=e(35710),c=e(22731),l=e(95060),v=t.has,h=t.remove;M.exports=function(C){var p=i(this),S=n(C),w=o(p);return s(p)<=S.size?c(p,function(y){S.includes(y)&&h(w,y)}):l(S.getIterator(),function(y){v(p,y)&&h(w,y)}),w}},23313:function(M,b,e){var i=e(11700),t=Set.prototype;M.exports={Set,add:i(t.add),has:i(t.has),remove:i(t.delete),proto:t,$has:t.has,$keys:t.keys}},51737:function(M,b,e){"use strict";var i=e(77318),t=e(23313),o=e(17085),s=e(35710),n=e(22731),c=e(95060),l=t.Set,v=t.add,h=t.has,m=t.$has,C=t.$keys,p=function(S){return S.has===m&&S.keys===C};M.exports=function(w){var y=i(this),Z=s(w),F=new l;if(!p(Z)&&o(y)>Z.size){if(c(Z.getIterator(),function(T){h(y,T)&&v(F,T)}),o(F)<2)return F;var R=F;F=new l,n(y,function(T){h(R,T)&&v(F,T)})}else n(y,function(T){Z.includes(T)&&v(F,T)});return F}},46149:function(M,b,e){"use strict";var i=e(77318),t=e(23313).has,o=e(17085),s=e(35710),n=e(22731),c=e(95060),l=e(40164);M.exports=function(h){var m=i(this),C=s(h);if(o(m)<=C.size)return n(m,function(S){if(C.includes(S))return!1},!0)!==!1;var p=C.getIterator();return c(p,function(S){if(t(m,S))return l(p,"normal",!1)})!==!1}},99527:function(M,b,e){"use strict";var i=e(77318),t=e(17085),o=e(22731),s=e(35710);M.exports=function(c){var l=i(this),v=s(c);return t(l)>v.size?!1:o(l,function(h){if(!v.includes(h))return!1},!0)!==!1}},20698:function(M,b,e){"use strict";var i=e(77318),t=e(23313).has,o=e(17085),s=e(35710),n=e(95060),c=e(40164);M.exports=function(v){var h=i(this),m=s(v);if(o(h)=w?h?"":void 0:(y=c(p,S),y<55296||y>56319||S+1===w||(Z=c(p,S+1))<56320||Z>57343?h?n(p,S):y:h?l(p,S,S+2):(y-55296<<10)+(Z-56320)+65536)}};M.exports={codeAt:v(!1),charAt:v(!0)}},81089:function(M,b,e){var i=e(42725),t=e(11700),o=String.fromCharCode,s=i("String","fromCodePoint"),n=t("".charAt),c=t("".charCodeAt),l=t("".indexOf),v=t("".slice),h=48,m=57,C=97,p=102,S=65,w=70,y=function(R,T){var z=c(R,T);return z>=h&&z<=m},Z=function(R,T,z){if(z>=R.length)return-1;for(var A=0;T=h&&R<=m?R-h:R>=C&&R<=p?R-C+10:R>=S&&R<=w?R-S+10:-1};M.exports=function(R){for(var T="",z=0,A=0,L;(A=l(R,"\\",A))>-1;){if(T+=v(R,z,A),++A===R.length)return;var I=n(R,A++);switch(I){case"b":T+="\b";break;case"t":T+=" ";break;case"n":T+=` `;break;case"v":T+="\v";break;case"f":T+="\f";break;case"r":T+="\r";break;case"\r":A1114111)return;T+=s(L);break;default:if(y(I,0))return;T+=I}z=A}return T+v(R,z)}},53761:function(M,b,e){var i=e(11700),t=e(12105),o=e(68424),s=e(91289),n=i("".replace),c=RegExp("^["+s+"]+"),l=RegExp("(^|[^"+s+"])["+s+"]+$"),v=function(h){return function(m){var C=o(t(m));return h&1&&(C=n(C,c,"")),h&2&&(C=n(C,l,"$1")),C}};M.exports={start:v(1),end:v(2),trim:v(3)}},27698:function(M,b,e){var i=e(53065),t=e(77149),o=e(8783),s=e(83051),n=e(79132),c=e(79727),l=i.structuredClone;M.exports=!!l&&!t(function(){if(n&&o>92||c&&o>94||s&&o>97)return!1;var v=new ArrayBuffer(8),h=l(v,{transfer:[v]});return v.byteLength!=0||h.byteLength!=8})},18680:function(M,b,e){var i=e(8783),t=e(77149);M.exports=!!Object.getOwnPropertySymbols&&!t(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&i&&i<41})},56912:function(M,b,e){var i=e(53065),t=e(59178),o=e(34066),s=e(6508),n=e(26583),c=e(77149),l=e(8199),v=e(66322),h=e(75074),m=e(87486),C=e(72833),p=e(79727),S=i.setImmediate,w=i.clearImmediate,y=i.process,Z=i.Dispatch,F=i.Function,R=i.MessageChannel,T=i.String,z=0,A={},L="onreadystatechange",I,$,B,K;c(function(){I=i.location});var H=function(W){if(n(A,W)){var G=A[W];delete A[W],G()}},ie=function(W){return function(){H(W)}},ce=function(W){H(W.data)},te=function(W){i.postMessage(T(W),I.protocol+"//"+I.host)};(!S||!w)&&(S=function(G){m(arguments.length,1);var O=s(G)?G:F(G),k=v(arguments,1);return A[++z]=function(){t(O,void 0,k)},$(z),z},w=function(G){delete A[G]},p?$=function(W){y.nextTick(ie(W))}:Z&&Z.now?$=function(W){Z.now(ie(W))}:R&&!C?(B=new R,K=B.port2,B.port1.onmessage=ce,$=o(K.postMessage,K)):i.addEventListener&&s(i.postMessage)&&!i.importScripts&&I&&I.protocol!=="file:"&&!c(te)?($=te,i.addEventListener("message",ce,!1)):L in h("script")?$=function(W){l.appendChild(h("script"))[L]=function(){l.removeChild(this),H(W)}}:$=function(W){setTimeout(ie(W),0)}),M.exports={set:S,clear:w}},71410:function(M,b,e){var i=e(68345),t=Math.max,o=Math.min;M.exports=function(s,n){var c=i(s);return c<0?t(c+n,0):o(c,n)}},28046:function(M,b,e){var i=e(54845),t=TypeError;M.exports=function(o){var s=i(o,"number");if(typeof s=="number")throw t("Can't convert number to bigint");return BigInt(s)}},92503:function(M,b,e){var i=e(68345),t=e(25010),o=RangeError;M.exports=function(s){if(s===void 0)return 0;var n=i(s),c=t(n);if(n!==c)throw o("Wrong length or index");return c}},514:function(M,b,e){var i=e(42414),t=e(12105);M.exports=function(o){return i(t(o))}},68345:function(M,b,e){var i=e(18243);M.exports=function(t){var o=+t;return o!==o||o===0?0:i(o)}},25010:function(M,b,e){var i=e(68345),t=Math.min;M.exports=function(o){return o>0?t(i(o),9007199254740991):0}},64441:function(M,b,e){var i=e(12105),t=Object;M.exports=function(o){return t(i(o))}},5561:function(M,b,e){var i=e(82053),t=RangeError;M.exports=function(o,s){var n=i(o);if(n%s)throw t("Wrong offset");return n}},82053:function(M,b,e){var i=e(68345),t=RangeError;M.exports=function(o){var s=i(o);if(s<0)throw t("The argument can't be less than 0");return s}},54845:function(M,b,e){var i=e(68029),t=e(33225),o=e(59549),s=e(15931),n=e(54026),c=e(77740),l=TypeError,v=c("toPrimitive");M.exports=function(h,m){if(!t(h)||o(h))return h;var C=s(h,v),p;if(C){if(m===void 0&&(m="default"),p=i(C,h,m),!t(p)||o(p))return p;throw l("Can't convert object to primitive value")}return m===void 0&&(m="number"),n(h,m)}},76846:function(M,b,e){var i=e(54845),t=e(59549);M.exports=function(o){var s=i(o,"string");return t(s)?s:s+""}},74089:function(M,b,e){var i=e(42725),t=e(6508),o=e(94653),s=e(33225),n=i("Set"),c=function(l){return s(l)&&typeof l.size=="number"&&t(l.has)&&t(l.keys)};M.exports=function(l){if(c(l))return l;if(o(l))return new n(l)}},64726:function(M,b,e){var i=e(77740),t=i("toStringTag"),o={};o[t]="z",M.exports=String(o)==="[object z]"},68424:function(M,b,e){var i=e(56834),t=String;M.exports=function(o){if(i(o)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return t(o)}},30238:function(M){var b=String;M.exports=function(e){try{return b(e)}catch(i){return"Object"}}},64395:function(M,b,e){var i=e(50112),t=e(93947);M.exports=function(o,s){return i(t(o),s)}},93947:function(M,b,e){var i=e(94641),t=e(23473),o=i.aTypedArrayConstructor,s=i.getTypedArrayConstructor;M.exports=function(n){return o(t(n,s(n)))}},89669:function(M,b,e){var i=e(11700),t=0,o=Math.random(),s=i(1 .toString);M.exports=function(n){return"Symbol("+(n===void 0?"":n)+")_"+s(++t+o,36)}},61037:function(M,b,e){var i=e(18680);M.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},63980:function(M,b,e){var i=e(57759),t=e(77149);M.exports=i&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},87486:function(M){var b=TypeError;M.exports=function(e,i){if(eT&&m(ce,arguments[T]),ce});if(B.prototype=I,A!=="Error"?n?n(B,$):c(B,$,{name:!0}):p&&R in L&&(l(B,L,R),l(B,L,"prepareStackTrace")),c(B,L),!S)try{I.name!==A&&o(I,"name",A),I.constructor=B}catch(K){}return B}}},74503:function(M,b,e){var i=e(13354),t=e(42725),o=e(59178),s=e(77149),n=e(69485),c="AggregateError",l=t(c),v=!s(function(){return l([1]).errors[0]!==1})&&s(function(){return l([1],c,{cause:7}).cause!==7});i({global:!0,constructor:!0,arity:2,forced:v},{AggregateError:n(c,function(h){return function(C,p){return o(h,this,arguments)}},v,!0)})},90570:function(M,b,e){"use strict";var i=e(13354),t=e(72901),o=e(77767),s=e(63332),n=e(81732),c=e(34552),l=e(5927),v=e(87971),h=e(13719),m=e(96410),C=e(95815),p=e(9280),S=e(77740),w=S("toStringTag"),y=Error,Z=[].push,F=function(z,A){var L=t(R,this),I;s?I=s(y(),L?o(this):R):(I=L?this:c(R),l(I,w,"Error")),A!==void 0&&l(I,"message",p(A)),m(I,F,I.stack,1),arguments.length>2&&h(I,arguments[2]);var $=[];return C(z,Z,{that:$}),l(I,"errors",$),I};s?s(F,y):n(F,y,{name:!0});var R=F.prototype=c(y.prototype,{constructor:v(1,F),message:v(1,""),name:v(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},511:function(M,b,e){e(90570)},65591:function(M,b,e){"use strict";var i=e(13354),t=e(64441),o=e(89122),s=e(68345),n=e(22054);i({target:"Array",proto:!0},{at:function(l){var v=t(this),h=o(v),m=s(l),C=m>=0?m:h+m;return C<0||C>=h?void 0:v[C]}}),n("at")},33356:function(M,b,e){"use strict";var i=e(13354),t=e(17464).findLastIndex,o=e(22054);i({target:"Array",proto:!0},{findLastIndex:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},56082:function(M,b,e){"use strict";var i=e(13354),t=e(17464).findLast,o=e(22054);i({target:"Array",proto:!0},{findLast:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},73034:function(M,b,e){"use strict";var i=e(13354),t=e(64441),o=e(89122),s=e(77060),n=e(12262),c=e(77149),l=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),v=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(m){return m instanceof TypeError}},h=l||!v();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(C){var p=t(this),S=o(p),w=arguments.length;n(S+w);for(var y=0;y79&&s<83,l=c||!o("reduceRight");i({target:"Array",proto:!0,forced:l},{reduceRight:function(h){return t(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},62083:function(M,b,e){"use strict";var i=e(13354),t=e(82565).left,o=e(83242),s=e(8783),n=e(79727),c=!n&&s>79&&s<83,l=c||!o("reduce");i({target:"Array",proto:!0,forced:l},{reduce:function(h){var m=arguments.length;return t(this,h,m,m>1?arguments[1]:void 0)}})},36021:function(M,b,e){"use strict";var i=e(13354),t=e(2333),o=e(514),s=e(22054),n=Array;i({target:"Array",proto:!0},{toReversed:function(){return t(o(this),n)}}),s("toReversed")},38122:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(31927),s=e(514),n=e(50112),c=e(70721),l=e(22054),v=Array,h=t(c("Array").sort);i({target:"Array",proto:!0},{toSorted:function(C){C!==void 0&&o(C);var p=s(this),S=n(v,p);return h(S,C)}}),l("toSorted")},37116:function(M,b,e){"use strict";var i=e(13354),t=e(22054),o=e(12262),s=e(89122),n=e(71410),c=e(514),l=e(68345),v=Array,h=Math.max,m=Math.min;i({target:"Array",proto:!0},{toSpliced:function(p,S){var w=c(this),y=s(w),Z=n(p,y),F=arguments.length,R=0,T,z,A,L;for(F===0?T=z=0:F===1?(T=0,z=y-Z):(T=F-2,z=m(h(l(S),0),y-Z)),A=o(y+T-z),L=v(A);R=0?S:p+S;return w<0||w>=p?void 0:l(C,w)}})},97390:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(12105),n=e(6508),c=e(74883),l=e(42854),v=e(68424),h=e(15931),m=e(50533),C=e(47947),p=e(77740),S=e(77449),w=p("replace"),y=TypeError,Z=o("".indexOf),F=o("".replace),R=o("".slice),T=Math.max,z=function(A,L,I){return I>A.length?-1:L===""?I:Z(A,L,I)};i({target:"String",proto:!0},{replaceAll:function(L,I){var $=s(this),B,K,H,ie,ce,te,W,G,O,k=0,Y=0,P="";if(!c(L)){if(B=l(L),B&&(K=v(s(m(L))),!~Z(K,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(H=h(L,w),H)return t(H,L,$,I);if(S&&B)return F(v($),L,I)}for(ie=v($),ce=v(L),te=n(I),te||(I=v(I)),W=ce.length,G=T(1,W),k=z(ie,ce,0);k!==-1;)O=te?v(I(ce,k,ie)):C(ce,ie,k,[],void 0,I),P+=R(ie,Y,k)+O,Y=k+W,k=z(ie,ce,k+G);return Y=0?m:h+m;return C<0||C>=h?void 0:v[C]})},55759:function(M,b,e){"use strict";var i=e(94641),t=e(17464).findLastIndex,o=i.aTypedArray,s=i.exportTypedArrayMethod;s("findLastIndex",function(c){return t(o(this),c,arguments.length>1?arguments[1]:void 0)})},23239:function(M,b,e){"use strict";var i=e(94641),t=e(17464).findLast,o=i.aTypedArray,s=i.exportTypedArrayMethod;s("findLast",function(c){return t(o(this),c,arguments.length>1?arguments[1]:void 0)})},53289:function(M,b,e){"use strict";var i=e(53065),t=e(68029),o=e(94641),s=e(89122),n=e(5561),c=e(64441),l=e(77149),v=i.RangeError,h=i.Int8Array,m=h&&h.prototype,C=m&&m.set,p=o.aTypedArray,S=o.exportTypedArrayMethod,w=!l(function(){var Z=new Uint8ClampedArray(2);return t(C,Z,{length:1,0:3},1),Z[1]!==3}),y=w&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l(function(){var Z=new h(2);return Z.set(1),Z.set("2",1),Z[0]!==0||Z[1]!==2});S("set",function(F){p(this);var R=n(arguments.length>1?arguments[1]:void 0,1),T=c(F);if(w)return t(C,this,T,R);var z=this.length,A=s(T),L=0;if(A+R>z)throw v("Wrong length");for(;L1?arguments[1]:void 0)}}),o("filterOut")},6719:function(M,b,e){"use strict";var i=e(13354),t=e(44708).filterReject,o=e(22054);i({target:"Array",proto:!0,forced:!0},{filterReject:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},85590:function(M,b,e){var i=e(13354),t=e(44594);i({target:"Array",stat:!0},{fromAsync:t})},84602:function(M,b,e){var i=e(13354),t=e(83242),o=e(22054),s=e(59765),n=e(77449);i({target:"Array",proto:!0,name:"groupToMap",forced:n||!t("groupByToMap")},{groupByToMap:s}),o("groupByToMap")},56179:function(M,b,e){"use strict";var i=e(13354),t=e(69093),o=e(83242),s=e(22054);i({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(c){var l=arguments.length>1?arguments[1]:void 0;return t(this,c,l)}}),s("groupBy")},68765:function(M,b,e){var i=e(13354),t=e(22054),o=e(59765),s=e(77449);i({target:"Array",proto:!0,forced:s},{groupToMap:o}),t("groupToMap")},68090:function(M,b,e){"use strict";var i=e(13354),t=e(69093),o=e(22054);i({target:"Array",proto:!0},{group:function(n){var c=arguments.length>1?arguments[1]:void 0;return t(this,n,c)}}),o("group")},46377:function(M,b,e){var i=e(13354),t=e(190),o=Object.isFrozen,s=function(n,c){if(!o||!t(n)||!o(n))return!1;for(var l=0,v=n.length,h;l1?arguments[1]:void 0);return s(l,function(h,m){if(!v(h,m,l))return!1},!0)!==!1}})},82412:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){C(S,w,m)&&l(p,w,S)}),p}})},69205:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m,C){if(v(m,C,l))return{key:C}},!0);return h&&h.key}})},53677:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m,C){if(v(m,C,l))return{value:m}},!0);return h&&h.value}})},55994:function(M,b,e){var i=e(13354),t=e(67640);i({target:"Map",stat:!0,forced:!0},{from:t})},96103:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(6508),n=e(31927),c=e(95815),l=e(85623).Map,v=o([].push);i({target:"Map",stat:!0,forced:!0},{groupBy:function(m,C){var p=s(this)?this:l,S=new p;n(C);var w=n(S.has),y=n(S.get),Z=n(S.set);return c(m,function(F){var R=C(F);t(w,S,R)?v(t(y,S,R),F):t(Z,S,R,[F])}),S}})},13153:function(M,b,e){"use strict";var i=e(13354),t=e(53496),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(c){return s(o(this),function(l){if(t(l,c))return!0},!0)===!0}})},51331:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(95815),s=e(6508),n=e(31927),c=e(85623).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(v,h){var m=s(this)?this:c,C=new m;n(h);var p=n(C.set);return o(v,function(S){t(p,C,h(S),S)}),C}})},31471:function(M,b,e){"use strict";var i=e(13354),t=e(7328),o=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(n){var c=o(t(this),function(l,v){if(l===n)return{key:v}},!0);return c&&c.key}})},48008:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){l(p,C(S,w,m),S)}),p}})},72877:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){l(p,w,C(S,w,m))}),p}})},55778:function(M,b,e){"use strict";var i=e(13354),t=e(7328),o=e(95815),s=e(85623).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(c){for(var l=t(this),v=arguments.length,h=0;h1?arguments[1]:void 0);return s(l,function(h,m){if(v(h,m,l))return!0},!0)===!0}})},74613:function(M,b,e){"use strict";var i=e(13354),t=e(32171);i({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:t})},22252:function(M,b,e){"use strict";var i=e(13354),t=e(31927),o=e(7328),s=e(85623),n=TypeError,c=s.get,l=s.has,v=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(m,C){var p=o(this),S=arguments.length;t(C);var w=l(p,m);if(!w&&S<3)throw n("Updating absent value");var y=w?c(p,m):t(S>2?arguments[2]:void 0)(m,p);return v(p,m,C(y,m,p)),p}})},85890:function(M,b,e){"use strict";var i=e(13354),t=e(32171);i({target:"Map",proto:!0,real:!0,forced:!0},{upsert:t})},49489:function(M,b,e){var i=e(13354),t=Math.min,o=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(n,c,l){return t(l,o(c,n))}})},63478:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},88126:function(M,b,e){var i=e(13354),t=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(s){return s*t}})},24760:function(M,b,e){var i=e(13354),t=e(15129),o=e(18749);i({target:"Math",stat:!0,forced:!0},{fscale:function(n,c,l,v,h){return o(t(n,c,l,v,h))}})},37877:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{iaddh:function(o,s,n,c){var l=o>>>0,v=s>>>0,h=n>>>0;return v+(c>>>0)+((l&h|(l|h)&~(l+h>>>0))>>>31)|0}})},99461:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{imulh:function(o,s){var n=65535,c=+o,l=+s,v=c&n,h=l&n,m=c>>16,C=l>>16,p=(m*h>>>0)+(v*h>>>16);return m*C+(p>>16)+((v*C>>>0)+(p&n)>>16)}})},63746:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{isubh:function(o,s,n,c){var l=o>>>0,v=s>>>0,h=n>>>0;return v-(c>>>0)-((~l&h|~(l^h)&l-h>>>0)>>>31)|0}})},8443:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},75738:function(M,b,e){var i=e(13354),t=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(s){return s*t}})},13322:function(M,b,e){var i=e(13354),t=e(15129);i({target:"Math",stat:!0,forced:!0},{scale:t})},64748:function(M,b,e){var i=e(13354),t=e(78958),o=e(54633),s=e(87821),n=e(76835),c=e(71584),l="Seeded Random",v=l+" Generator",h='Math.seededPRNG() argument should have a "seed" field with a finite value.',m=c.set,C=c.getterFor(v),p=TypeError,S=s(function(y){m(this,{type:v,seed:y%2147483647})},l,function(){var y=C(this),Z=y.seed=(y.seed*1103515245+12345)%2147483647;return n((Z&1073741823)/1073741823,!1)});i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(y){var Z=t(y).seed;if(!o(Z))throw p(h);return new S(Z)}})},59048:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{signbit:function(o){var s=+o;return s==s&&s==0?1/s==-1/0:s<0}})},25215:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{umulh:function(o,s){var n=65535,c=+o,l=+s,v=c&n,h=l&n,m=c>>>16,C=l>>>16,p=(m*h>>>0)+(v*h>>>16);return m*C+(p>>>16)+((v*C>>>0)+(p&n)>>>16)}})},89495:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(68345),s=e(35323),n="Invalid number representation",c="Invalid radix",l=RangeError,v=SyntaxError,h=TypeError,m=/^[\da-z]+$/,C=t("".charAt),p=t(m.exec),S=t(1 .toString),w=t("".slice);i({target:"Number",stat:!0,forced:!0},{fromString:function(Z,F){var R=1,T,z;if(typeof Z!="string")throw h(n);if(!Z.length||C(Z,0)=="-"&&(R=-1,Z=w(Z,1),!Z.length))throw v(n);if(T=F===void 0?10:o(F),T<2||T>36)throw l(c);if(!p(m,Z)||S(z=s(Z,T),T)!==Z)throw v(n);return R*z}})},78490:function(M,b,e){"use strict";var i=e(13354),t=e(73126);i({target:"Number",stat:!0,forced:!0},{range:function(s,n,c){return new t(s,n,c,"number",0,1)}})},11790:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateEntries:function(s){return new t(s,"entries")}})},52739:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateKeys:function(s){return new t(s,"keys")}})},96847:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateValues:function(s){return new t(s,"values")}})},8120:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(57759),s=e(51309),n=e(31927),c=e(78958),l=e(92453),v=e(6508),h=e(74883),m=e(33225),C=e(15931),p=e(28621),S=e(3313),w=e(2265),y=e(3234),Z=e(77740),F=e(71584),R=e(88818),T=Z("observable"),z="Observable",A="Subscription",L="SubscriptionObserver",I=F.getterFor,$=F.set,B=I(z),K=I(A),H=I(L),ie=function(O){this.observer=c(O),this.cleanup=void 0,this.subscriptionObserver=void 0};ie.prototype={type:A,clean:function(){var O=this.cleanup;if(O){this.cleanup=void 0;try{O()}catch(k){y(k)}}},close:function(){if(!o){var O=this.facade,k=this.subscriptionObserver;O.closed=!0,k&&(k.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var ce=function(O,k){var Y=$(this,new ie(O)),P;o||(this.closed=!1);try{(P=C(O,"start"))&&t(P,O,this)}catch(ge){y(ge)}if(!Y.isClosed()){var Q=Y.subscriptionObserver=new te(Y);try{var fe=k(Q),Ce=fe;h(fe)||(Y.cleanup=v(fe.unsubscribe)?function(){Ce.unsubscribe()}:n(fe))}catch(ge){Q.error(ge);return}Y.isClosed()&&Y.clean()}};ce.prototype=S({},{unsubscribe:function(){var k=K(this);k.isClosed()||(k.close(),k.clean())}}),o&&w(ce.prototype,"closed",{configurable:!0,get:function(){return K(this).isClosed()}});var te=function(O){$(this,{type:L,subscriptionState:O}),o||(this.closed=!1)};te.prototype=S({},{next:function(k){var Y=H(this).subscriptionState;if(!Y.isClosed()){var P=Y.observer;try{var Q=C(P,"next");Q&&t(Q,P,k)}catch(fe){y(fe)}}},error:function(k){var Y=H(this).subscriptionState;if(!Y.isClosed()){var P=Y.observer;Y.close();try{var Q=C(P,"error");Q?t(Q,P,k):y(k)}catch(fe){y(fe)}Y.clean()}},complete:function(){var k=H(this).subscriptionState;if(!k.isClosed()){var Y=k.observer;k.close();try{var P=C(Y,"complete");P&&t(P,Y)}catch(Q){y(Q)}k.clean()}}}),o&&w(te.prototype,"closed",{configurable:!0,get:function(){return H(this).subscriptionState.isClosed()}});var W=function(k){l(this,G),$(this,{type:z,subscriber:n(k)})},G=W.prototype;S(G,{subscribe:function(k){var Y=arguments.length;return new ce(v(k)?{next:k,error:Y>1?arguments[1]:void 0,complete:Y>2?arguments[2]:void 0}:m(k)?k:{},B(this).subscriber)}}),p(G,T,function(){return this}),i({global:!0,constructor:!0,forced:R},{Observable:W}),s(z)},11341:function(M,b,e){"use strict";var i=e(13354),t=e(42725),o=e(68029),s=e(78958),n=e(13893),c=e(64712),l=e(15931),v=e(95815),h=e(77740),m=e(88818),C=h("observable");i({target:"Observable",stat:!0,forced:m},{from:function(S){var w=n(this)?this:t("Observable"),y=l(s(S),C);if(y){var Z=s(o(y,S));return Z.constructor===w?Z:new w(function(R){return Z.subscribe(R)})}var F=c(S);return new w(function(R){v(F,function(T,z){if(R.next(T),R.closed)return z()},{IS_ITERATOR:!0,INTERRUPTED:!0}),R.complete()})}})},57099:function(M,b,e){e(8120),e(11341),e(21720)},21720:function(M,b,e){"use strict";var i=e(13354),t=e(42725),o=e(13893),s=e(88818),n=t("Array");i({target:"Observable",stat:!0,forced:s},{of:function(){for(var l=o(this)?this:t("Observable"),v=arguments.length,h=n(v),m=0;m1?arguments[1]:void 0);return s(l,function(h){if(!v(h,h,l))return!1},!0)!==!1}})},17960:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(23313),n=e(22731),c=s.Set,l=s.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S){C(S,S,m)&&l(p,S)}),p}})},25823:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(22731);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m){if(v(m,m,l))return{value:m}},!0);return h&&h.value}})},56133:function(M,b,e){var i=e(13354),t=e(67640);i({target:"Set",stat:!0,forced:!0},{from:t})},6762:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(51737);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(c){return t(s,this,o(c))}})},60682:function(M,b,e){var i=e(13354),t=e(51737),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("intersection")},{intersection:t})},36925:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(46149);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(c){return t(s,this,o(c))}})},65107:function(M,b,e){var i=e(13354),t=e(46149),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:t})},9882:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(99527);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(c){return t(s,this,o(c))}})},31772:function(M,b,e){var i=e(13354),t=e(99527),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:t})},95344:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(20698);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(c){return t(s,this,o(c))}})},19453:function(M,b,e){var i=e(13354),t=e(20698),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:t})},51301:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(77318),s=e(22731),n=e(68424),c=t([].join),l=t([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(h){var m=o(this),C=h===void 0?",":n(h),p=[];return s(m,function(S){l(p,S)}),c(p,C)}})},71395:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(23313),n=e(22731),c=s.Set,l=s.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S){l(p,C(S,S,m))}),p}})},38054:function(M,b,e){var i=e(13354),t=e(55042);i({target:"Set",stat:!0,forced:!0},{of:t})},92141:function(M,b,e){"use strict";var i=e(13354),t=e(31927),o=e(77318),s=e(22731),n=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(l){var v=o(this),h=arguments.length<2,m=h?void 0:arguments[1];if(t(l),s(v,function(C){h?(h=!1,m=C):m=l(m,C,C,v)}),h)throw n("Reduce of empty set with no initial value");return m}})},95396:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(22731);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0);return s(l,function(h){if(v(h,h,l))return!0},!0)===!0}})},11859:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(52100);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(c){return t(s,this,o(c))}})},13409:function(M,b,e){var i=e(13354),t=e(52100),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:t})},4681:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(45953);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(c){return t(s,this,o(c))}})},51113:function(M,b,e){var i=e(13354),t=e(45953),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:t})},15307:function(M,b,e){"use strict";var i=e(13354),t=e(81673).charAt,o=e(12105),s=e(68345),n=e(68424);i({target:"String",proto:!0,forced:!0},{at:function(l){var v=n(o(this)),h=v.length,m=s(l),C=m>=0?m:h+m;return C<0||C>=h?void 0:t(v,C)}})},36879:function(M,b,e){"use strict";var i=e(13354),t=e(87821),o=e(76835),s=e(12105),n=e(68424),c=e(71584),l=e(81673),v=l.codeAt,h=l.charAt,m="String Iterator",C=c.set,p=c.getterFor(m),S=t(function(y){C(this,{type:m,string:y,index:0})},"String",function(){var y=p(this),Z=y.string,F=y.index,R;return F>=Z.length?o(void 0,!0):(R=h(Z,F),y.index+=R.length,o({codePoint:v(R,0),position:F},!1))});i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new S(n(s(this)))}})},27008:function(M,b,e){var i=e(13354),t=e(85650);i({target:"String",stat:!0,forced:!0},{cooked:t})},91345:function(M,b,e){"use strict";var i=e(81506),t=e(13354),o=e(71980),s=e(42725),n=e(70377),c=e(11700),l=e(59178),v=e(78958),h=e(64441),m=e(6508),C=e(89122),p=e(38248).f,S=e(81469),w=e(85650),y=e(81089),Z=e(91289),F=s("WeakMap"),R=o("GlobalDedentRegistry",new F);R.has=R.has,R.get=R.get,R.set=R.set;var T=Array,z=TypeError,A=Object.freeze||Object,L=Object.isFrozen,I=Math.min,$=c("".charAt),B=c("".slice),K=c("".split),H=c(/./.exec),ie=/([\n\u2028\u2029]|\r\n?)/g,ce=RegExp("^["+Z+"]*"),te=RegExp("[^"+Z+"]"),W="Invalid tag",G="Invalid opening line",O="Invalid closing line",k=function(ge){var Me=ge.raw;if(i&&!L(Me))throw z("Raw template should be frozen");if(R.has(Me))return R.get(Me);var Re=Y(Me),Qe=Q(Re);return p(Qe,"raw",{value:A(Re)}),A(Qe),R.set(Me,Qe),Qe},Y=function(ge){var Me=h(ge),Re=C(Me),Qe=T(Re),Ve=T(Re),qe=0,Mt,wt;if(!Re)throw z(W);for(;qe0)throw z(G);Mt[1]=""}if(Nt){if(Mt.length===1||H(te,Mt[Mt.length-1]))throw z(O);Mt[Mt.length-2]="",Mt[Mt.length-1]=""}for(var ke=2;ke=56320||++h>=v||(n(l,h)&64512)!=56320))return!1}return!0}})},5744:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(12105),n=e(68424),c=e(77149),l=Array,v=o("".charAt),h=o("".charCodeAt),m=o([].join),C="".toWellFormed,p="\uFFFD",S=C&&c(function(){return t(C,1)!=="1"});i({target:"String",proto:!0,forced:S},{toWellFormed:function(){var y=n(s(this));if(S)return t(C,y);for(var Z=y.length,F=l(Z),R=0;R=56320||R+1>=Z||(h(y,R+1)&64512)!=56320?F[R]=p:(F[R]=v(y,R),F[++R]=v(y,R))}return m(F,"")}})},2017:function(M,b,e){"use strict";var i=e(13354),t=e(72901),o=e(77767),s=e(63332),n=e(81732),c=e(34552),l=e(5927),v=e(87971),h=e(96410),m=e(9280),C=e(77740),p=C("toStringTag"),S=Error,w=function(F,R,T){var z=t(y,this),A;return s?A=s(S(),z?o(this):y):(A=z?this:c(y),l(A,p,"Error")),T!==void 0&&l(A,"message",m(T)),h(A,w,A.stack,1),l(A,"error",F),l(A,"suppressed",R),A};s?s(w,S):n(w,S,{name:!0});var y=w.prototype=c(S.prototype,{constructor:v(1,w),message:v(1,""),name:v(1,"SuppressedError")});i({global:!0,constructor:!0,arity:3},{SuppressedError:w})},12447:function(M,b,e){var i=e(78186);i("asyncDispose")},50706:function(M,b,e){var i=e(78186);i("dispose")},80593:function(M,b,e){var i=e(13354),t=e(42725),o=e(11700),s=t("Symbol"),n=s.keyFor,c=o(s.prototype.valueOf);i({target:"Symbol",stat:!0},{isRegistered:function(v){try{return n(c(v))!==void 0}catch(h){return!1}}})},41693:function(M,b,e){for(var i=e(13354),t=e(71980),o=e(42725),s=e(11700),n=e(59549),c=e(77740),l=o("Symbol"),v=l.isWellKnown,h=o("Object","getOwnPropertyNames"),m=s(l.prototype.valueOf),C=t("wks"),p=0,S=h(l),w=S.length;p1?arguments[1]:void 0);return o(this,v)},!0)},73165:function(M,b,e){"use strict";var i=e(94641),t=e(44708).filterReject,o=e(64395),s=i.aTypedArray,n=i.exportTypedArrayMethod;n("filterReject",function(l){var v=t(s(this),l,arguments.length>1?arguments[1]:void 0);return o(this,v)},!0)},56390:function(M,b,e){"use strict";var i=e(42725),t=e(89764),o=e(44594),s=e(94641),n=e(50112),c=s.aTypedArrayConstructor,l=s.exportTypedArrayStaticMethod;l("fromAsync",function(h){var m=this,C=arguments.length,p=C>1?arguments[1]:void 0,S=C>2?arguments[2]:void 0;return new(i("Promise"))(function(w){t(m),w(o(h,p,S))}).then(function(w){return n(c(m),w)})},!0)},20233:function(M,b,e){"use strict";var i=e(94641),t=e(69093),o=e(93947),s=i.aTypedArray,n=i.exportTypedArrayMethod;n("groupBy",function(l){var v=arguments.length>1?arguments[1]:void 0;return t(s(this),l,v,o)},!0)},18444:function(M,b,e){"use strict";var i=e(94641),t=e(89122),o=e(30879),s=e(71410),n=e(28046),c=e(68345),l=e(77149),v=i.aTypedArray,h=i.getTypedArrayConstructor,m=i.exportTypedArrayMethod,C=Math.max,p=Math.min,S=!l(function(){var w=new Int8Array([1]),y=w.toSpliced(1,0,{valueOf:function(){return w[0]=2,3}});return y[0]!==2||y[1]!==3});m("toSpliced",function(y,Z){var F=v(this),R=h(F),T=t(F),z=s(y,T),A=arguments.length,L=0,I,$,B,K,H,ie,ce;if(A===0)I=$=0;else if(A===1)I=0,$=T-z;else if($=p(C(c(Z),0),T-z),I=A-2,I){K=new R(I),B=o(K);for(var te=2;te1&&!m(arguments[1])?w(arguments[1]):void 0,pe=Ze?Ze.transfer:void 0,Je;return pe!==void 0&&(Je=new Re,le(pe,Je)),de(xe,Je)}})},81474:function(M,b,e){"use strict";var i=e(90894),t=e(8197),o=e(56265),s=e(20610),n=e(13),c=M.exports=function(l,v){var h,m,C,p,S;return arguments.length<2||typeof l!="string"?(p=v,v=l,l=null):p=arguments[2],i(l)?(h=n.call(l,"c"),m=n.call(l,"e"),C=n.call(l,"w")):(h=C=!0,m=!1),S={value:v,configurable:h,enumerable:m,writable:C},p?o(s(p),S):S};c.gs=function(l,v,h){var m,C,p,S;return typeof l!="string"?(p=h,h=v,v=l,l=null):p=arguments[3],i(v)?t(v)?i(h)?t(h)||(p=h,h=void 0):h=void 0:(p=v,v=h=void 0):v=void 0,i(l)?(m=n.call(l,"c"),C=n.call(l,"e")):(m=!0,C=!1),S={get:v,set:h,configurable:m,enumerable:C},p?o(s(p),S):S}},65140:function(M){"use strict";var b="%[a-f0-9]{2}",e=new RegExp("("+b+")|([^%]+?)","gi"),i=new RegExp("("+b+")+","gi");function t(n,c){try{return[decodeURIComponent(n.join(""))]}catch(h){}if(n.length===1)return n;c=c||1;var l=n.slice(0,c),v=n.slice(c);return Array.prototype.concat.call([],t(l),t(v))}function o(n){try{return decodeURIComponent(n)}catch(v){for(var c=n.match(e)||[],l=1;l1&&arguments[1]!==void 0?arguments[1]:s;if(t){var h={match:function(){l&&l(!0)},unmatch:function(){l&&l()}};return t.register(v,h),h}}function c(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;t&&t.unregister(v,l)}i=t},20699:function(M,b,e){var i=e(66835),t=e(54802).each;function o(s,n){this.query=s,this.isUnconditional=n,this.handlers=[],this.mql=window.matchMedia(s);var c=this;this.listener=function(l){c.mql=l.currentTarget||l,c.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(s){var n=new i(s);this.handlers.push(n),this.matches()&&n.on()},removeHandler:function(s){var n=this.handlers;t(n,function(c,l){if(c.equals(s))return c.destroy(),!n.splice(l,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(s){s.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var s=this.matches()?"on":"off";t(this.handlers,function(n){n[s]()})}},M.exports=o},68323:function(M,b,e){var i=e(20699),t=e(54802),o=t.each,s=t.isFunction,n=t.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(l,v,h){var m=this.queries,C=h&&this.browserIsIncapable;return m[l]||(m[l]=new i(l,C)),s(v)&&(v={match:v}),n(v)||(v=[v]),o(v,function(p){s(p)&&(p={match:p}),m[l].addHandler(p)}),this},unregister:function(l,v){var h=this.queries[l];return h&&(v?h.removeHandler(v):(h.clear(),delete this.queries[l])),this}},M.exports=c},66835:function(M){function b(e){this.options=e,!e.deferSetup&&this.setup()}b.prototype={constructor:b,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},M.exports=b},54802:function(M){function b(t,o){var s=0,n=t.length,c;for(s;s-1}},87308:function(M,b,e){"use strict";var i=e(81474),t=e(54550),o=Function.prototype.apply,s=Function.prototype.call,n=Object.create,c=Object.defineProperty,l=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0},m,C,p,S,w,y,Z;m=function(F,R){var T;return t(R),v.call(this,"__ee__")?T=this.__ee__:(T=h.value=n(null),c(this,"__ee__",h),h.value=null),T[F]?typeof T[F]=="object"?T[F].push(R):T[F]=[T[F],R]:T[F]=R,this},C=function(F,R){var T,z;return t(R),z=this,m.call(this,F,T=function(){p.call(z,F,T),o.call(R,this,arguments)}),T.__eeOnceListener__=R,this},p=function(F,R){var T,z,A,L;if(t(R),!v.call(this,"__ee__"))return this;if(T=this.__ee__,!T[F])return this;if(z=T[F],typeof z=="object")for(L=0;A=z[L];++L)(A===R||A.__eeOnceListener__===R)&&(z.length===2?T[F]=z[L?0:1]:z.splice(L,1));else(z===R||z.__eeOnceListener__===R)&&delete T[F];return this},S=function(F){var R,T,z,A,L;if(v.call(this,"__ee__")&&(A=this.__ee__[F],!!A))if(typeof A=="object"){for(T=arguments.length,L=new Array(T-1),R=1;R=0&&(R.hash=F.substr(T),F=F.substr(0,T));var z=F.indexOf("?");z>=0&&(R.search=F.substr(z),F=F.substr(0,z)),F&&(R.pathname=F)}return R}},10063:function(M,b,e){"use strict";var i=e(99415),t={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},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[i.ForwardRef]=s,c[i.Memo]=n;function l(y){return i.isMemo(y)?n:c[y.$$typeof]||t}var v=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,C=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,S=Object.prototype;function w(y,Z,F){if(typeof Z!="string"){if(S){var R=p(Z);R&&R!==S&&w(y,R,F)}var T=h(Z);m&&(T=T.concat(m(Z)));for(var z=l(y),A=l(Z),L=0;L>1,m=-7,C=t?s-1:0,p=t?-1:1,S=e[i+C];for(C+=p,n=S&(1<<-m)-1,S>>=-m,m+=l;m>0;n=n*256+e[i+C],C+=p,m-=8);for(c=n&(1<<-m)-1,n>>=-m,m+=o;m>0;c=c*256+e[i+C],C+=p,m-=8);if(n===0)n=1-h;else{if(n===v)return c?NaN:(S?-1:1)*(1/0);c=c+Math.pow(2,o),n=n-h}return(S?-1:1)*c*Math.pow(2,n-o)},b.write=function(e,i,t,o,s,n){var c,l,v,h=n*8-s-1,m=(1<>1,p=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:n-1,w=o?1:-1,y=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,c=m):(c=Math.floor(Math.log(i)/Math.LN2),i*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+C>=1?i+=p/v:i+=p*Math.pow(2,1-C),i*v>=2&&(c++,v/=2),c+C>=m?(l=0,c=m):c+C>=1?(l=(i*v-1)*Math.pow(2,s),c=c+C):(l=i*Math.pow(2,C-1)*Math.pow(2,s),c=0));s>=8;e[t+S]=l&255,S+=w,l/=256,s-=8);for(c=c<0;e[t+S]=c&255,S+=w,c/=256,h-=8);e[t+S-w]|=y*128}},21700:function(M){"use strict";var b=function(e,i,t,o,s,n,c,l){if(!e){var v;if(i===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[t,o,s,n,c,l],m=0;v=new Error(i.replace(/%s/g,function(){return h[m++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};M.exports=b},23161:function(M){var b={}.toString;M.exports=Array.isArray||function(e){return b.call(e)=="[object Array]"}},61012:function(M,b,e){var i=1/0,t="[object Symbol]",o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",l="\\u20d0-\\u20f0",v="\\u2700-\\u27bf",h="a-z\\xdf-\\xf6\\xf8-\\xff",m="\\xac\\xb1\\xd7\\xf7",C="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\u2000-\\u206f",S=" \\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",w="A-Z\\xc0-\\xd6\\xd8-\\xde",y="\\ufe0e\\ufe0f",Z=m+C+p+S,F="['\u2019]",R="["+n+"]",T="["+Z+"]",z="["+c+l+"]",A="\\d+",L="["+v+"]",I="["+h+"]",$="[^"+n+Z+A+v+h+w+"]",B="\\ud83c[\\udffb-\\udfff]",K="(?:"+z+"|"+B+")",H="[^"+n+"]",ie="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+w+"]",W="\\u200d",G="(?:"+I+"|"+$+")",O="(?:"+te+"|"+$+")",k="(?:"+F+"(?:d|ll|m|re|s|t|ve))?",Y="(?:"+F+"(?:D|LL|M|RE|S|T|VE))?",P=K+"?",Q="["+y+"]?",fe="(?:"+W+"(?:"+[H,ie,ce].join("|")+")"+Q+P+")*",Ce=Q+P+fe,ge="(?:"+[L,ie,ce].join("|")+")"+Ce,Me="(?:"+[H+z+"?",z,ie,ce,R].join("|")+")",Re=RegExp(F,"g"),Qe=RegExp(z,"g"),Ve=RegExp(B+"(?="+B+")|"+Me+Ce,"g"),qe=RegExp([te+"?"+I+"+"+k+"(?="+[T,te,"$"].join("|")+")",O+"+"+Y+"(?="+[T,te+G,"$"].join("|")+")",te+"?"+G+"+"+k,te+"+"+Y,A,ge].join("|"),"g"),Mt=RegExp("["+W+n+c+l+y+"]"),wt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,mt={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Nt=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,ke=typeof self=="object"&&self&&self.Object===Object&&self,He=Nt||ke||Function("return this")();function et(we,Le,Ye,Ue){var dt=-1,bt=we?we.length:0;for(Ue&&bt&&(Ye=we[++dt]);++dtdt?0:dt+Le),Ye=Ye>dt?dt:Ye,Ye<0&&(Ye+=dt),dt=Le>Ye?0:Ye-Le>>>0,Le>>>=0;for(var bt=Array(dt);++Ue=Ue?we:de(we,Le,Ye)}function xe(we){return function(Le){Le=Ae(Le);var Ye=N(Le)?ee(Le):void 0,Ue=Ye?Ye[0]:Le.charAt(0),dt=Ye?ve(Ye,1).join(""):Le.slice(1);return Ue[we]()+dt}}function Ze(we){return function(Le){return et(Pe(Be(Le).replace(Re,"")),we,"")}}function pe(we){return!!we&&typeof we=="object"}function Je(we){return typeof we=="symbol"||pe(we)&&Ie.call(we)==t}function Ae(we){return we==null?"":le(we)}var oe=Ze(function(we,Le,Ye){return Le=Le.toLowerCase(),we+(Ye?ye(Le):Le)});function ye(we){return De(Ae(we).toLowerCase())}function Be(we){return we=Ae(we),we&&we.replace(s,U).replace(Qe,"")}var De=xe("toUpperCase");function Pe(we,Le,Ye){return we=Ae(we),Le=Ye?void 0:Le,Le===void 0?D(we)?X(we):ue(we):we.match(Le)||[]}M.exports=oe},51899:function(M,b,e){var i="Expected a function",t=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt,h=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,m=typeof self=="object"&&self&&self.Object===Object&&self,C=h||m||Function("return this")(),p=Object.prototype,S=p.toString,w=Math.max,y=Math.min,Z=function(){return C.Date.now()};function F(L,I,$){var B,K,H,ie,ce,te,W=0,G=!1,O=!1,k=!0;if(typeof L!="function")throw new TypeError(i);I=A(I)||0,R($)&&(G=!!$.leading,O="maxWait"in $,H=O?w(A($.maxWait)||0,I):H,k="trailing"in $?!!$.trailing:k);function Y(Ve){var qe=B,Mt=K;return B=K=void 0,W=Ve,ie=L.apply(Mt,qe),ie}function P(Ve){return W=Ve,ce=setTimeout(Ce,I),G?Y(Ve):ie}function Q(Ve){var qe=Ve-te,Mt=Ve-W,wt=I-qe;return O?y(wt,H-Mt):wt}function fe(Ve){var qe=Ve-te,Mt=Ve-W;return te===void 0||qe>=I||qe<0||O&&Mt>=H}function Ce(){var Ve=Z();if(fe(Ve))return ge(Ve);ce=setTimeout(Ce,Q(Ve))}function ge(Ve){return ce=void 0,k&&B?Y(Ve):(B=K=void 0,ie)}function Me(){ce!==void 0&&clearTimeout(ce),W=0,B=te=K=ce=void 0}function Re(){return ce===void 0?ie:ge(Z())}function Qe(){var Ve=Z(),qe=fe(Ve);if(B=arguments,K=this,te=Ve,qe){if(ce===void 0)return P(te);if(O)return ce=setTimeout(Ce,I),Y(te)}return ce===void 0&&(ce=setTimeout(Ce,I)),ie}return Qe.cancel=Me,Qe.flush=Re,Qe}function R(L){var I=typeof L;return!!L&&(I=="object"||I=="function")}function T(L){return!!L&&typeof L=="object"}function z(L){return typeof L=="symbol"||T(L)&&S.call(L)==o}function A(L){if(typeof L=="number")return L;if(z(L))return t;if(R(L)){var I=typeof L.valueOf=="function"?L.valueOf():L;L=R(I)?I+"":I}if(typeof L!="string")return L===0?L:+L;L=L.replace(s,"");var $=c.test(L);return $||l.test(L)?v(L.slice(2),$?2:8):n.test(L)?t:+L}M.exports=F},14978:function(M,b,e){var i="Expected a function",t=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt,h=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,m=typeof self=="object"&&self&&self.Object===Object&&self,C=h||m||Function("return this")(),p=Object.prototype,S=p.toString,w=Math.max,y=Math.min,Z=function(){return C.Date.now()};function F(I,$,B){var K,H,ie,ce,te,W,G=0,O=!1,k=!1,Y=!0;if(typeof I!="function")throw new TypeError(i);$=L($)||0,T(B)&&(O=!!B.leading,k="maxWait"in B,ie=k?w(L(B.maxWait)||0,$):ie,Y="trailing"in B?!!B.trailing:Y);function P(qe){var Mt=K,wt=H;return K=H=void 0,G=qe,ce=I.apply(wt,Mt),ce}function Q(qe){return G=qe,te=setTimeout(ge,$),O?P(qe):ce}function fe(qe){var Mt=qe-W,wt=qe-G,mt=$-Mt;return k?y(mt,ie-wt):mt}function Ce(qe){var Mt=qe-W,wt=qe-G;return W===void 0||Mt>=$||Mt<0||k&&wt>=ie}function ge(){var qe=Z();if(Ce(qe))return Me(qe);te=setTimeout(ge,fe(qe))}function Me(qe){return te=void 0,Y&&K?P(qe):(K=H=void 0,ce)}function Re(){te!==void 0&&clearTimeout(te),G=0,K=W=H=te=void 0}function Qe(){return te===void 0?ce:Me(Z())}function Ve(){var qe=Z(),Mt=Ce(qe);if(K=arguments,H=this,W=qe,Mt){if(te===void 0)return Q(W);if(k)return te=setTimeout(ge,$),P(W)}return te===void 0&&(te=setTimeout(ge,$)),ce}return Ve.cancel=Re,Ve.flush=Qe,Ve}function R(I,$,B){var K=!0,H=!0;if(typeof I!="function")throw new TypeError(i);return T(B)&&(K="leading"in B?!!B.leading:K,H="trailing"in B?!!B.trailing:H),F(I,$,{leading:K,maxWait:$,trailing:H})}function T(I){var $=typeof I;return!!I&&($=="object"||$=="function")}function z(I){return!!I&&typeof I=="object"}function A(I){return typeof I=="symbol"||z(I)&&S.call(I)==o}function L(I){if(typeof I=="number")return I;if(A(I))return t;if(T(I)){var $=typeof I.valueOf=="function"?I.valueOf():I;I=T($)?$+"":$}if(typeof I!="string")return I===0?I:+I;I=I.replace(s,"");var B=c.test(I);return B||l.test(I)?v(I.slice(2),B?2:8):n.test(I)?t:+I}M.exports=R},94466:function(M,b,e){var i=e(65234),t=e(83250),o=i(t,"DataView");M.exports=o},85208:function(M,b,e){var i=e(34440),t=e(84108),o=e(61085),s=e(77706),n=e(8636);function c(l){var v=-1,h=l==null?0:l.length;for(this.clear();++vw))return!1;var Z=p.get(l),F=p.get(v);if(Z&&F)return Z==v&&F==l;var R=-1,T=!0,z=h&n?new i:void 0;for(p.set(l,v),p.set(v,l);++R-1&&t%1==0&&t-1}M.exports=t},67690:function(M,b,e){var i=e(18498);function t(o,s){var n=this.__data__,c=i(n,o);return c<0?(++this.size,n.push([o,s])):n[c][1]=s,this}M.exports=t},39016:function(M,b,e){var i=e(85208),t=e(81998),o=e(72887);function s(){this.size=0,this.__data__={hash:new i,map:new(o||t),string:new i}}M.exports=s},62363:function(M,b,e){var i=e(77570);function t(o){var s=i(this,o).delete(o);return this.size-=s?1:0,s}M.exports=t},64348:function(M,b,e){var i=e(77570);function t(o){return i(this,o).get(o)}M.exports=t},53062:function(M,b,e){var i=e(77570);function t(o){return i(this,o).has(o)}M.exports=t},30262:function(M,b,e){var i=e(77570);function t(o,s){var n=i(this,o),c=n.size;return n.set(o,s),this.size+=n.size==c?0:1,this}M.exports=t},81140:function(M){function b(e){var i=-1,t=Array(e.size);return e.forEach(function(o,s){t[++i]=[s,o]}),t}M.exports=b},24545:function(M,b,e){var i=e(65234),t=i(Object,"create");M.exports=t},82825:function(M,b,e){var i=e(33540),t=i(Object.keys,Object);M.exports=t},8690:function(M,b,e){M=e.nmd(M);var i=e(20302),t=b&&!b.nodeType&&b,o=t&&!0&&M&&!M.nodeType&&M,s=o&&o.exports===t,n=s&&i.process,c=function(){try{var l=o&&o.require&&o.require("util").types;return l||n&&n.binding&&n.binding("util")}catch(v){}}();M.exports=c},25151:function(M){var b=Object.prototype,e=b.toString;function i(t){return e.call(t)}M.exports=i},33540:function(M){function b(e,i){return function(t){return e(i(t))}}M.exports=b},83250:function(M,b,e){var i=e(20302),t=typeof self=="object"&&self&&self.Object===Object&&self,o=i||t||Function("return this")();M.exports=o},83937:function(M){var b="__lodash_hash_undefined__";function e(i){return this.__data__.set(i,b),this}M.exports=e},15009:function(M){function b(e){return this.__data__.has(e)}M.exports=b},77969:function(M){function b(e){var i=-1,t=Array(e.size);return e.forEach(function(o){t[++i]=o}),t}M.exports=b},93210:function(M,b,e){var i=e(81998);function t(){this.__data__=new i,this.size=0}M.exports=t},48603:function(M){function b(e){var i=this.__data__,t=i.delete(e);return this.size=i.size,t}M.exports=b},38947:function(M){function b(e){return this.__data__.get(e)}M.exports=b},70885:function(M){function b(e){return this.__data__.has(e)}M.exports=b},98938:function(M,b,e){var i=e(81998),t=e(72887),o=e(95678),s=200;function n(c,l){var v=this.__data__;if(v instanceof i){var h=v.__data__;if(!t||h.length=h||W<0||T&&G>=S}function B(){var te=t();if($(te))return K(te);y=setTimeout(B,I(te))}function K(te){return y=void 0,z&&C?A(te):(C=p=void 0,w)}function H(){y!==void 0&&clearTimeout(y),F=0,C=Z=p=y=void 0}function ie(){return y===void 0?w:K(t())}function ce(){var te=t(),W=$(te);if(C=arguments,p=this,Z=te,W){if(y===void 0)return L(Z);if(T)return clearTimeout(y),y=setTimeout(B,h),A(Z)}return y===void 0&&(y=setTimeout(B,h)),w}return ce.cancel=H,ce.flush=ie,ce}M.exports=l},58260:function(M){function b(e,i){return e===i||e!==e&&i!==i}M.exports=b},79312:function(M,b,e){var i=e(33016),t=e(50440),o=Object.prototype,s=o.hasOwnProperty,n=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(l){return t(l)&&s.call(l,"callee")&&!n.call(l,"callee")};M.exports=c},55589:function(M){var b=Array.isArray;M.exports=b},30568:function(M,b,e){var i=e(45563),t=e(66052);function o(s){return s!=null&&t(s.length)&&!i(s)}M.exports=o},85778:function(M,b,e){M=e.nmd(M);var i=e(83250),t=e(37999),o=b&&!b.nodeType&&b,s=o&&!0&&M&&!M.nodeType&&M,n=s&&s.exports===o,c=n?i.Buffer:void 0,l=c?c.isBuffer:void 0,v=l||t;M.exports=v},85466:function(M,b,e){var i=e(34662);function t(o,s){return i(o,s)}M.exports=t},45563:function(M,b,e){var i=e(69823),t=e(93702),o="[object AsyncFunction]",s="[object Function]",n="[object GeneratorFunction]",c="[object Proxy]";function l(v){if(!t(v))return!1;var h=i(v);return h==s||h==n||h==o||h==c}M.exports=l},66052:function(M){var b=9007199254740991;function e(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=b}M.exports=e},93702:function(M){function b(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}M.exports=b},50440:function(M){function b(e){return e!=null&&typeof e=="object"}M.exports=b},52624:function(M,b,e){var i=e(69823),t=e(50440),o="[object Symbol]";function s(n){return typeof n=="symbol"||t(n)&&i(n)==o}M.exports=s},50922:function(M,b,e){var i=e(42448),t=e(31525),o=e(8690),s=o&&o.isTypedArray,n=s?t(s):i;M.exports=n},62096:function(M,b,e){var i=e(75825),t=e(41351),o=e(30568);function s(n){return o(n)?i(n):t(n)}M.exports=s},39378:function(M,b,e){M=e.nmd(M);var i;(function(){var t,o="4.17.21",s=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",C=1,p=2,S=4,w=1,y=2,Z=1,F=2,R=4,T=8,z=16,A=32,L=64,I=128,$=256,B=512,K=30,H="...",ie=800,ce=16,te=1,W=2,G=3,O=1/0,k=9007199254740991,Y=17976931348623157e292,P=0/0,Q=4294967295,fe=Q-1,Ce=Q>>>1,ge=[["ary",I],["bind",Z],["bindKey",F],["curry",T],["curryRight",z],["flip",B],["partial",A],["partialRight",L],["rearg",$]],Me="[object Arguments]",Re="[object Array]",Qe="[object AsyncFunction]",Ve="[object Boolean]",qe="[object Date]",Mt="[object DOMException]",wt="[object Error]",mt="[object Function]",Nt="[object GeneratorFunction]",ke="[object Map]",He="[object Number]",et="[object Null]",Fe="[object Object]",ue="[object Promise]",V="[object Proxy]",U="[object RegExp]",N="[object Set]",D="[object String]",ee="[object Symbol]",se="[object Undefined]",X="[object WeakMap]",re="[object WeakSet]",Ie="[object ArrayBuffer]",Se="[object DataView]",he="[object Float32Array]",We="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",ve="[object Int32Array]",xe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",pe="[object Uint16Array]",Je="[object Uint32Array]",Ae=/\b__p \+= '';/g,oe=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Be=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Pe=RegExp(Be.source),we=RegExp(De.source),Le=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,Ue=/<%=([\s\S]+?)%>/g,dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bt=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(At.source),jt=/^\s+/,Gt=/\s/,Xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,zn=/\{\n\/\* \[wrapped with (.+)\] \*/,fn=/,? & /,Bn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,On=/[()=,{}\[\]\/\s]/,Mn=/\\(\\)?/g,_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Vt=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gt=/($^)/,Dt=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",tn="\\u0300-\\u036f",Hn="\\ufe20-\\ufe2f",Nn="\\u20d0-\\u20ff",pr=tn+Hn+Nn,gr="\\u2700-\\u27bf",Or="a-z\\xdf-\\xf6\\xf8-\\xff",ar="\\xac\\xb1\\xd7\\xf7",mr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ea="\\u2000-\\u206f",Lr=" \\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",Kn="A-Z\\xc0-\\xd6\\xd8-\\xde",zt="\\ufe0e\\ufe0f",Ft=ar+mr+ea+Lr,on="['\u2019]",nn="["+xn+"]",kt="["+Ft+"]",hn="["+pr+"]",dn="\\d+",$n="["+gr+"]",qn="["+Or+"]",ct="[^"+xn+Ft+dn+gr+Or+Kn+"]",lt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+hn+"|"+lt+")",St="[^"+xn+"]",Lt="(?:\\ud83c[\\udde6-\\uddff]){2}",_t="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Kn+"]",yn="\\u200d",kn="(?:"+qn+"|"+ct+")",hr="(?:"+Wt+"|"+ct+")",cr="(?:"+on+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+on+"(?:D|LL|M|RE|S|T|VE))?",Rr=xt+"?",or="["+zt+"]?",Gr="(?:"+yn+"(?:"+[St,Lt,_t].join("|")+")"+or+Rr+")*",Ir="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",jn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vn=or+Rr+Gr,Ln="(?:"+[$n,Lt,_t].join("|")+")"+vn,Zn="(?:"+[St+hn+"?",hn,Lt,_t,nn].join("|")+")",yr=RegExp(on,"g"),Fr=RegExp(hn,"g"),Kr=RegExp(lt+"(?="+lt+")|"+Zn+vn,"g"),aa=RegExp([Wt+"?"+qn+"+"+cr+"(?="+[kt,Wt,"$"].join("|")+")",hr+"+"+Dn+"(?="+[kt,Wt+kn,"$"].join("|")+")",Wt+"?"+kn+"+"+cr,Wt+"+"+Dn,jn,Ir,dn,Ln].join("|"),"g"),Jr=RegExp("["+yn+xn+pr+zt+"]"),Zr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ca=["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"],la=-1,Tn={};Tn[he]=Tn[We]=Tn[de]=Tn[le]=Tn[ve]=Tn[xe]=Tn[Ze]=Tn[pe]=Tn[Je]=!0,Tn[Me]=Tn[Re]=Tn[Ie]=Tn[Ve]=Tn[Se]=Tn[qe]=Tn[wt]=Tn[mt]=Tn[ke]=Tn[He]=Tn[Fe]=Tn[U]=Tn[N]=Tn[D]=Tn[X]=!1;var In={};In[Me]=In[Re]=In[Ie]=In[Se]=In[Ve]=In[qe]=In[he]=In[We]=In[de]=In[le]=In[ve]=In[ke]=In[He]=In[Fe]=In[U]=In[N]=In[D]=In[ee]=In[xe]=In[Ze]=In[pe]=In[Je]=!0,In[wt]=In[mt]=In[X]=!1;var Yn={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Nr={"&":"&","<":"<",">":">",'"':""","'":"'"},zr={"&":"&","<":"<",">":">",""":'"',"'":"'"},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ma=parseFloat,uo=parseInt,to=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,Io=typeof self=="object"&&self&&self.Object===Object&&self,ja=to||Io||Function("return this")(),Ua=b&&!b.nodeType&&b,qa=Ua&&!0&&M&&!M.nodeType&&M,Fo=qa&&qa.exports===Ua,Lo=Fo&&to.process,Bo=function(){try{var bn=qa&&qa.require&&qa.require("util").types;return bn||Lo&&Lo.binding&&Lo.binding("util")}catch(Mr){}}(),ot=Bo&&Bo.isArrayBuffer,yt=Bo&&Bo.isDate,be=Bo&&Bo.isMap,Bt=Bo&&Bo.isRegExp,Jt=Bo&&Bo.isSet,Xn=Bo&&Bo.isTypedArray;function Gn(bn,Mr,er){switch(er.length){case 0:return bn.call(Mr);case 1:return bn.call(Mr,er[0]);case 2:return bn.call(Mr,er[0],er[1]);case 3:return bn.call(Mr,er[0],er[1],er[2])}return bn.apply(Mr,er)}function br(bn,Mr,er,ur){for(var Cr=-1,ca=bn==null?0:bn.length;++Cr-1}function sr(bn,Mr,er){for(var ur=-1,Cr=bn==null?0:bn.length;++ur-1;);return er}function oi(bn,Mr){for(var er=bn.length;er--&&fr(Mr,bn[er],0)>-1;);return er}function di(bn,Mr){for(var er=bn.length,ur=0;er--;)bn[er]===Mr&&++ur;return ur}var go=ia(Yn),Oi=ia(Nr);function Li(bn){return"\\"+Br[bn]}function ii(bn,Mr){return bn==null?t:bn[Mr]}function Di(bn){return Jr.test(bn)}function $i(bn){return Zr.test(bn)}function wi(bn){for(var Mr,er=[];!(Mr=bn.next()).done;)er.push(Mr.value);return er}function Ti(bn){var Mr=-1,er=Array(bn.size);return bn.forEach(function(ur,Cr){er[++Mr]=[Cr,ur]}),er}function ns(bn,Mr){return function(er){return bn(Mr(er))}}function Fi(bn,Mr){for(var er=-1,ur=bn.length,Cr=0,ca=[];++er-1}function Rn(g,E){var ne=this.__data__,Te=jo(ne,g);return Te<0?(++this.size,ne.push([g,E])):ne[Te][1]=E,this}Ge.prototype.clear=cn,Ge.prototype.delete=qt,Ge.prototype.get=Fn,Ge.prototype.has=tr,Ge.prototype.set=Rn;function nr(g){var E=-1,ne=g==null?0:g.length;for(this.clear();++E=E?g:E)),g}function Tr(g,E,ne,Te,it,Pt){var Yt,gn=E&C,Pn=E&p,Yr=E&S;if(ne&&(Yt=it?ne(g,Te,it,Pt):ne(g)),Yt!==t)return Yt;if(!Ls(g))return g;var Vr=pi(g);if(Vr){if(Yt=jc(g),!gn)return Ts(g,Yt)}else{var sa=Ai(g),eo=sa==mt||sa==Nt;if(wc(g))return Hu(g,gn);if(sa==Fe||sa==Me||eo&&!it){if(Yt=Pn||eo?{}:Ec(g),!gn)return Pn?ml(g,xa(Yt,g)):xs(g,Aa(Yt,g))}else{if(!In[sa])return it?g:{};Yt=hl(g,sa,gn)}}Pt||(Pt=new rt);var wo=Pt.get(g);if(wo)return wo;Pt.set(g,Yt),wf(g)?g.forEach(function(ni){Yt.add(Tr(ni,E,ne,ni,g,Pt))}):Of(g)&&g.forEach(function(ni,Bi){Yt.set(Bi,Tr(ni,E,ne,Bi,g,Pt))});var ti=Yr?Pn?ts:Qi:Pn?cu:Ol,xi=Vr?t:ti(g);return ta(xi||g,function(ni,Bi){xi&&(Bi=ni,ni=g[Bi]),Ia(Yt,Bi,Tr(ni,E,ne,Bi,g,Pt))}),Yt}function Ra(g){var E=Ol(g);return function(ne){return Wr(ne,g,E)}}function Wr(g,E,ne){var Te=ne.length;if(g==null)return!Te;for(g=da(g);Te--;){var it=ne[Te],Pt=E[it],Yt=g[it];if(Yt===t&&!(it in g)||!Pt(Yt))return!1}return!0}function Xr(g,E,ne){if(typeof g!="function")throw new Xo(c);return xc(function(){g.apply(t,ne)},E)}function _a(g,E,ne,Te){var it=-1,Pt=wr,Yt=!0,gn=g.length,Pn=[],Yr=E.length;if(!gn)return Pn;ne&&(E=dr(E,vo(ne))),Te?(Pt=sr,Yt=!1):E.length>=s&&(Pt=Na,Yt=!1,E=new ya(E));e:for(;++itit?0:it+ne),Te=Te===t||Te>it?it:bi(Te),Te<0&&(Te+=it),Te=ne>Te?0:jf(Te);ne0&&ne(gn)?E>1?Ha(gn,E-1,ne,Te,it):jr(it,gn):Te||(it[it.length]=gn)}return it}var Ao=Gu(),oo=Gu(!0);function Oa(g,E){return g&&Ao(g,E,Ol)}function $a(g,E){return g&&oo(g,E,Ol)}function ui(g,E){return Dr(E,function(ne){return gc(g[ne])})}function Ya(g,E){E=Ll(E,g);for(var ne=0,Te=E.length;g!=null&&neE}function Uo(g,E){return g!=null&&ri.call(g,E)}function Do(g,E){return g!=null&&E in da(g)}function Po(g,E,ne){return g>=ji(E,ne)&&g=120&&Vr.length>=120)?new ya(Yt&&Vr):t}Vr=g[0];var sa=-1,eo=gn[0];e:for(;++sa-1;)gn!==g&&Rs.call(gn,Pn,1),Rs.call(g,Pn,1);return g}function xu(g,E){for(var ne=g?E.length:0,Te=ne-1;ne--;){var it=E[ne];if(ne==Te||it!==Pt){var Pt=it;Pa(it)?Rs.call(g,it,1):Uu(g,it)}}return g}function Iu(g,E){return g+xr(yo()*(E-g+1))}function el(g,E,ne,Te){for(var it=-1,Pt=zo(ll((E-g)/(ne||1)),0),Yt=er(Pt);Pt--;)Yt[Te?Pt:++it]=g,g+=ne;return Yt}function es(g,E){var ne="";if(!g||E<1||E>k)return ne;do E%2&&(ne+=g),E=xr(E/2),E&&(g+=g);while(E);return ne}function Fa(g,E){return ou(ru(g,E,du),g+"")}function gs(g){return $r(cd(g))}function Nu(g,E){var ne=cd(g);return Lc(ne,Sr(E,0,ne.length))}function Gl(g,E,ne,Te){if(!Ls(g))return g;E=Ll(E,g);for(var it=-1,Pt=E.length,Yt=Pt-1,gn=g;gn!=null&&++itit?0:it+E),ne=ne>it?it:ne,ne<0&&(ne+=it),it=E>ne?0:ne-E>>>0,E>>>=0;for(var Pt=er(it);++Te>>1,Yt=g[Pt];Yt!==null&&!Mu(Yt)&&(ne?Yt<=E:Yt=s){var Yr=E?null:Mo(g);if(Yr)return ro(Yr);Yt=!1,it=Na,Pn=new ya}else Pn=E?[]:gn;e:for(;++Te=Te?g:_s(g,E,ne)}var tc=No||function(g){return ja.clearTimeout(g)};function Hu(g,E){if(E)return g.slice();var ne=g.length,Te=Hl?Hl(ne):new g.constructor(ne);return g.copy(Te),Te}function Du(g){var E=new g.constructor(g.byteLength);return new sl(E).set(new sl(g)),E}function nc(g,E){var ne=E?Du(g.buffer):g.buffer;return new g.constructor(ne,g.byteOffset,g.byteLength)}function yc(g){var E=new g.constructor(g.source,at.exec(g));return E.lastIndex=g.lastIndex,E}function Mc(g){return Ws?da(Ws.call(g)):{}}function Yu(g,E){var ne=E?Du(g.buffer):g.buffer;return new g.constructor(ne,g.byteOffset,g.length)}function rc(g,E){if(g!==E){var ne=g!==t,Te=g===null,it=g===g,Pt=Mu(g),Yt=E!==t,gn=E===null,Pn=E===E,Yr=Mu(E);if(!gn&&!Yr&&!Pt&&g>E||Pt&&Yt&&Pn&&!gn&&!Yr||Te&&Yt&&Pn||!ne&&Pn||!it)return 1;if(!Te&&!Pt&&!Yr&&g=gn)return Pn;var Yr=ne[Te];return Pn*(Yr=="desc"?-1:1)}}return g.index-E.index}function ac(g,E,ne,Te){for(var it=-1,Pt=g.length,Yt=ne.length,gn=-1,Pn=E.length,Yr=zo(Pt-Yt,0),Vr=er(Pn+Yr),sa=!Te;++gn1?ne[it-1]:t,Yt=it>2?ne[2]:t;for(Pt=g.length>3&&typeof Pt=="function"?(it--,Pt):t,Yt&&ps(ne[0],ne[1],Yt)&&(Pt=it<3?t:Pt,it=1),E=da(E);++Te-1?it[Pt?E[Yt]:Yt]:t}}function Ht(g){return zi(function(E){var ne=E.length,Te=ne,it=Ji.prototype.thru;for(g&&E.reverse();Te--;){var Pt=E[Te];if(typeof Pt!="function")throw new Xo(c);if(it&&!Yt&&Qo(Pt)=="wrapper")var Yt=new Ji([],!0)}for(Te=Yt?Te:ne;++Te1&&Wi.reverse(),Vr&&Pngn))return!1;var Yr=Pt.get(g),Vr=Pt.get(E);if(Yr&&Vr)return Yr==E&&Vr==g;var sa=-1,eo=!0,wo=ne&y?new ya:t;for(Pt.set(g,E),Pt.set(E,g);++sa1?"& ":"")+E[Te],E=E.join(ne>2?", ":" "),g.replace(Xt,`{ +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},69485:function(M,b,e){"use strict";var i=e(42725),t=e(26583),o=e(5927),s=e(72901),n=e(63332),c=e(81732),l=e(37366),v=e(95173),h=e(9280),m=e(13719),C=e(96410),p=e(57759),S=e(77449);M.exports=function(w,y,Z,F){var R="stackTraceLimit",T=F?2:1,z=w.split("."),A=z[z.length-1],L=i.apply(null,z);if(L){var I=L.prototype;if(!S&&t(I,"cause")&&delete I.cause,!Z)return L;var $=i("Error"),B=y(function(K,H){var ie=h(F?H:K,void 0),ce=F?new L(K):new L;return ie!==void 0&&o(ce,"message",ie),C(ce,B,ce.stack,2),this&&s(I,this)&&v(ce,this,B),arguments.length>T&&m(ce,arguments[T]),ce});if(B.prototype=I,A!=="Error"?n?n(B,$):c(B,$,{name:!0}):p&&R in L&&(l(B,L,R),l(B,L,"prepareStackTrace")),c(B,L),!S)try{I.name!==A&&o(I,"name",A),I.constructor=B}catch(K){}return B}}},74503:function(M,b,e){var i=e(13354),t=e(42725),o=e(59178),s=e(77149),n=e(69485),c="AggregateError",l=t(c),v=!s(function(){return l([1]).errors[0]!==1})&&s(function(){return l([1],c,{cause:7}).cause!==7});i({global:!0,constructor:!0,arity:2,forced:v},{AggregateError:n(c,function(h){return function(C,p){return o(h,this,arguments)}},v,!0)})},90570:function(M,b,e){"use strict";var i=e(13354),t=e(72901),o=e(77767),s=e(63332),n=e(81732),c=e(34552),l=e(5927),v=e(87971),h=e(13719),m=e(96410),C=e(95815),p=e(9280),S=e(77740),w=S("toStringTag"),y=Error,Z=[].push,F=function(z,A){var L=t(R,this),I;s?I=s(y(),L?o(this):R):(I=L?this:c(R),l(I,w,"Error")),A!==void 0&&l(I,"message",p(A)),m(I,F,I.stack,1),arguments.length>2&&h(I,arguments[2]);var $=[];return C(z,Z,{that:$}),l(I,"errors",$),I};s?s(F,y):n(F,y,{name:!0});var R=F.prototype=c(y.prototype,{constructor:v(1,F),message:v(1,""),name:v(1,"AggregateError")});i({global:!0,constructor:!0,arity:2},{AggregateError:F})},511:function(M,b,e){e(90570)},65591:function(M,b,e){"use strict";var i=e(13354),t=e(64441),o=e(89122),s=e(68345),n=e(22054);i({target:"Array",proto:!0},{at:function(l){var v=t(this),h=o(v),m=s(l),C=m>=0?m:h+m;return C<0||C>=h?void 0:v[C]}}),n("at")},33356:function(M,b,e){"use strict";var i=e(13354),t=e(17464).findLastIndex,o=e(22054);i({target:"Array",proto:!0},{findLastIndex:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("findLastIndex")},56082:function(M,b,e){"use strict";var i=e(13354),t=e(17464).findLast,o=e(22054);i({target:"Array",proto:!0},{findLast:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("findLast")},73034:function(M,b,e){"use strict";var i=e(13354),t=e(64441),o=e(89122),s=e(77060),n=e(12262),c=e(77149),l=c(function(){return[].push.call({length:4294967296},1)!==4294967297}),v=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(m){return m instanceof TypeError}},h=l||!v();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(C){var p=t(this),S=o(p),w=arguments.length;n(S+w);for(var y=0;y79&&s<83,l=c||!o("reduceRight");i({target:"Array",proto:!0,forced:l},{reduceRight:function(h){return t(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},62083:function(M,b,e){"use strict";var i=e(13354),t=e(82565).left,o=e(83242),s=e(8783),n=e(79727),c=!n&&s>79&&s<83,l=c||!o("reduce");i({target:"Array",proto:!0,forced:l},{reduce:function(h){var m=arguments.length;return t(this,h,m,m>1?arguments[1]:void 0)}})},36021:function(M,b,e){"use strict";var i=e(13354),t=e(2333),o=e(514),s=e(22054),n=Array;i({target:"Array",proto:!0},{toReversed:function(){return t(o(this),n)}}),s("toReversed")},38122:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(31927),s=e(514),n=e(50112),c=e(70721),l=e(22054),v=Array,h=t(c("Array").sort);i({target:"Array",proto:!0},{toSorted:function(C){C!==void 0&&o(C);var p=s(this),S=n(v,p);return h(S,C)}}),l("toSorted")},37116:function(M,b,e){"use strict";var i=e(13354),t=e(22054),o=e(12262),s=e(89122),n=e(71410),c=e(514),l=e(68345),v=Array,h=Math.max,m=Math.min;i({target:"Array",proto:!0},{toSpliced:function(p,S){var w=c(this),y=s(w),Z=n(p,y),F=arguments.length,R=0,T,z,A,L;for(F===0?T=z=0:F===1?(T=0,z=y-Z):(T=F-2,z=m(h(l(S),0),y-Z)),A=o(y+T-z),L=v(A);R=0?S:p+S;return w<0||w>=p?void 0:l(C,w)}})},97390:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(12105),n=e(6508),c=e(74883),l=e(42854),v=e(68424),h=e(15931),m=e(50533),C=e(47947),p=e(77740),S=e(77449),w=p("replace"),y=TypeError,Z=o("".indexOf),F=o("".replace),R=o("".slice),T=Math.max,z=function(A,L,I){return I>A.length?-1:L===""?I:Z(A,L,I)};i({target:"String",proto:!0},{replaceAll:function(L,I){var $=s(this),B,K,H,ie,ce,te,W,G,O,k=0,Y=0,P="";if(!c(L)){if(B=l(L),B&&(K=v(s(m(L))),!~Z(K,"g")))throw y("`.replaceAll` does not allow non-global regexes");if(H=h(L,w),H)return t(H,L,$,I);if(S&&B)return F(v($),L,I)}for(ie=v($),ce=v(L),te=n(I),te||(I=v(I)),W=ce.length,G=T(1,W),k=z(ie,ce,0);k!==-1;)O=te?v(I(ce,k,ie)):C(ce,ie,k,[],void 0,I),P+=R(ie,Y,k)+O,Y=k+W,k=z(ie,ce,k+G);return Y=0?m:h+m;return C<0||C>=h?void 0:v[C]})},55759:function(M,b,e){"use strict";var i=e(94641),t=e(17464).findLastIndex,o=i.aTypedArray,s=i.exportTypedArrayMethod;s("findLastIndex",function(c){return t(o(this),c,arguments.length>1?arguments[1]:void 0)})},23239:function(M,b,e){"use strict";var i=e(94641),t=e(17464).findLast,o=i.aTypedArray,s=i.exportTypedArrayMethod;s("findLast",function(c){return t(o(this),c,arguments.length>1?arguments[1]:void 0)})},53289:function(M,b,e){"use strict";var i=e(53065),t=e(68029),o=e(94641),s=e(89122),n=e(5561),c=e(64441),l=e(77149),v=i.RangeError,h=i.Int8Array,m=h&&h.prototype,C=m&&m.set,p=o.aTypedArray,S=o.exportTypedArrayMethod,w=!l(function(){var Z=new Uint8ClampedArray(2);return t(C,Z,{length:1,0:3},1),Z[1]!==3}),y=w&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l(function(){var Z=new h(2);return Z.set(1),Z.set("2",1),Z[0]!==0||Z[1]!==2});S("set",function(F){p(this);var R=n(arguments.length>1?arguments[1]:void 0,1),T=c(F);if(w)return t(C,this,T,R);var z=this.length,A=s(T),L=0;if(A+R>z)throw v("Wrong length");for(;L1?arguments[1]:void 0)}}),o("filterOut")},6719:function(M,b,e){"use strict";var i=e(13354),t=e(44708).filterReject,o=e(22054);i({target:"Array",proto:!0,forced:!0},{filterReject:function(n){return t(this,n,arguments.length>1?arguments[1]:void 0)}}),o("filterReject")},85590:function(M,b,e){var i=e(13354),t=e(44594);i({target:"Array",stat:!0},{fromAsync:t})},84602:function(M,b,e){var i=e(13354),t=e(83242),o=e(22054),s=e(59765),n=e(77449);i({target:"Array",proto:!0,name:"groupToMap",forced:n||!t("groupByToMap")},{groupByToMap:s}),o("groupByToMap")},56179:function(M,b,e){"use strict";var i=e(13354),t=e(69093),o=e(83242),s=e(22054);i({target:"Array",proto:!0,forced:!o("groupBy")},{groupBy:function(c){var l=arguments.length>1?arguments[1]:void 0;return t(this,c,l)}}),s("groupBy")},68765:function(M,b,e){var i=e(13354),t=e(22054),o=e(59765),s=e(77449);i({target:"Array",proto:!0,forced:s},{groupToMap:o}),t("groupToMap")},68090:function(M,b,e){"use strict";var i=e(13354),t=e(69093),o=e(22054);i({target:"Array",proto:!0},{group:function(n){var c=arguments.length>1?arguments[1]:void 0;return t(this,n,c)}}),o("group")},46377:function(M,b,e){var i=e(13354),t=e(190),o=Object.isFrozen,s=function(n,c){if(!o||!t(n)||!o(n))return!1;for(var l=0,v=n.length,h;l1?arguments[1]:void 0);return s(l,function(h,m){if(!v(h,m,l))return!1},!0)!==!1}})},82412:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){C(S,w,m)&&l(p,w,S)}),p}})},69205:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m,C){if(v(m,C,l))return{key:C}},!0);return h&&h.key}})},53677:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{find:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m,C){if(v(m,C,l))return{value:m}},!0);return h&&h.value}})},55994:function(M,b,e){var i=e(13354),t=e(67640);i({target:"Map",stat:!0,forced:!0},{from:t})},96103:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(6508),n=e(31927),c=e(95815),l=e(85623).Map,v=o([].push);i({target:"Map",stat:!0,forced:!0},{groupBy:function(m,C){var p=s(this)?this:l,S=new p;n(C);var w=n(S.has),y=n(S.get),Z=n(S.set);return c(m,function(F){var R=C(F);t(w,S,R)?v(t(y,S,R),F):t(Z,S,R,[F])}),S}})},13153:function(M,b,e){"use strict";var i=e(13354),t=e(53496),o=e(7328),s=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(c){return s(o(this),function(l){if(t(l,c))return!0},!0)===!0}})},51331:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(95815),s=e(6508),n=e(31927),c=e(85623).Map;i({target:"Map",stat:!0,forced:!0},{keyBy:function(v,h){var m=s(this)?this:c,C=new m;n(h);var p=n(C.set);return o(v,function(S){t(p,C,h(S),S)}),C}})},31471:function(M,b,e){"use strict";var i=e(13354),t=e(7328),o=e(46782);i({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(n){var c=o(t(this),function(l,v){if(l===n)return{key:v}},!0);return c&&c.key}})},48008:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){l(p,C(S,w,m),S)}),p}})},72877:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(7328),s=e(85623),n=e(46782),c=s.Map,l=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S,w){l(p,w,C(S,w,m))}),p}})},55778:function(M,b,e){"use strict";var i=e(13354),t=e(7328),o=e(95815),s=e(85623).set;i({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(c){for(var l=t(this),v=arguments.length,h=0;h1?arguments[1]:void 0);return s(l,function(h,m){if(v(h,m,l))return!0},!0)===!0}})},74613:function(M,b,e){"use strict";var i=e(13354),t=e(32171);i({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:t})},22252:function(M,b,e){"use strict";var i=e(13354),t=e(31927),o=e(7328),s=e(85623),n=TypeError,c=s.get,l=s.has,v=s.set;i({target:"Map",proto:!0,real:!0,forced:!0},{update:function(m,C){var p=o(this),S=arguments.length;t(C);var w=l(p,m);if(!w&&S<3)throw n("Updating absent value");var y=w?c(p,m):t(S>2?arguments[2]:void 0)(m,p);return v(p,m,C(y,m,p)),p}})},85890:function(M,b,e){"use strict";var i=e(13354),t=e(32171);i({target:"Map",proto:!0,real:!0,forced:!0},{upsert:t})},49489:function(M,b,e){var i=e(13354),t=Math.min,o=Math.max;i({target:"Math",stat:!0,forced:!0},{clamp:function(n,c,l){return t(l,o(c,n))}})},63478:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{DEG_PER_RAD:Math.PI/180})},88126:function(M,b,e){var i=e(13354),t=180/Math.PI;i({target:"Math",stat:!0,forced:!0},{degrees:function(s){return s*t}})},24760:function(M,b,e){var i=e(13354),t=e(15129),o=e(18749);i({target:"Math",stat:!0,forced:!0},{fscale:function(n,c,l,v,h){return o(t(n,c,l,v,h))}})},37877:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{iaddh:function(o,s,n,c){var l=o>>>0,v=s>>>0,h=n>>>0;return v+(c>>>0)+((l&h|(l|h)&~(l+h>>>0))>>>31)|0}})},99461:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{imulh:function(o,s){var n=65535,c=+o,l=+s,v=c&n,h=l&n,m=c>>16,C=l>>16,p=(m*h>>>0)+(v*h>>>16);return m*C+(p>>16)+((v*C>>>0)+(p&n)>>16)}})},63746:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{isubh:function(o,s,n,c){var l=o>>>0,v=s>>>0,h=n>>>0;return v-(c>>>0)-((~l&h|~(l^h)&l-h>>>0)>>>31)|0}})},8443:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,nonConfigurable:!0,nonWritable:!0},{RAD_PER_DEG:180/Math.PI})},75738:function(M,b,e){var i=e(13354),t=Math.PI/180;i({target:"Math",stat:!0,forced:!0},{radians:function(s){return s*t}})},13322:function(M,b,e){var i=e(13354),t=e(15129);i({target:"Math",stat:!0,forced:!0},{scale:t})},64748:function(M,b,e){var i=e(13354),t=e(78958),o=e(54633),s=e(87821),n=e(76835),c=e(71584),l="Seeded Random",v=l+" Generator",h='Math.seededPRNG() argument should have a "seed" field with a finite value.',m=c.set,C=c.getterFor(v),p=TypeError,S=s(function(y){m(this,{type:v,seed:y%2147483647})},l,function(){var y=C(this),Z=y.seed=(y.seed*1103515245+12345)%2147483647;return n((Z&1073741823)/1073741823,!1)});i({target:"Math",stat:!0,forced:!0},{seededPRNG:function(y){var Z=t(y).seed;if(!o(Z))throw p(h);return new S(Z)}})},59048:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{signbit:function(o){var s=+o;return s==s&&s==0?1/s==-1/0:s<0}})},25215:function(M,b,e){var i=e(13354);i({target:"Math",stat:!0,forced:!0},{umulh:function(o,s){var n=65535,c=+o,l=+s,v=c&n,h=l&n,m=c>>>16,C=l>>>16,p=(m*h>>>0)+(v*h>>>16);return m*C+(p>>>16)+((v*C>>>0)+(p&n)>>>16)}})},89495:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(68345),s=e(35323),n="Invalid number representation",c="Invalid radix",l=RangeError,v=SyntaxError,h=TypeError,m=/^[\da-z]+$/,C=t("".charAt),p=t(m.exec),S=t(1 .toString),w=t("".slice);i({target:"Number",stat:!0,forced:!0},{fromString:function(Z,F){var R=1,T,z;if(typeof Z!="string")throw h(n);if(!Z.length||C(Z,0)=="-"&&(R=-1,Z=w(Z,1),!Z.length))throw v(n);if(T=F===void 0?10:o(F),T<2||T>36)throw l(c);if(!p(m,Z)||S(z=s(Z,T),T)!==Z)throw v(n);return R*z}})},78490:function(M,b,e){"use strict";var i=e(13354),t=e(73126);i({target:"Number",stat:!0,forced:!0},{range:function(s,n,c){return new t(s,n,c,"number",0,1)}})},11790:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateEntries:function(s){return new t(s,"entries")}})},52739:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateKeys:function(s){return new t(s,"keys")}})},96847:function(M,b,e){"use strict";var i=e(13354),t=e(65556);i({target:"Object",stat:!0,forced:!0},{iterateValues:function(s){return new t(s,"values")}})},8120:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(57759),s=e(51309),n=e(31927),c=e(78958),l=e(92453),v=e(6508),h=e(74883),m=e(33225),C=e(15931),p=e(28621),S=e(3313),w=e(2265),y=e(3234),Z=e(77740),F=e(71584),R=e(88818),T=Z("observable"),z="Observable",A="Subscription",L="SubscriptionObserver",I=F.getterFor,$=F.set,B=I(z),K=I(A),H=I(L),ie=function(O){this.observer=c(O),this.cleanup=void 0,this.subscriptionObserver=void 0};ie.prototype={type:A,clean:function(){var O=this.cleanup;if(O){this.cleanup=void 0;try{O()}catch(k){y(k)}}},close:function(){if(!o){var O=this.facade,k=this.subscriptionObserver;O.closed=!0,k&&(k.closed=!0)}this.observer=void 0},isClosed:function(){return this.observer===void 0}};var ce=function(O,k){var Y=$(this,new ie(O)),P;o||(this.closed=!1);try{(P=C(O,"start"))&&t(P,O,this)}catch(ge){y(ge)}if(!Y.isClosed()){var Q=Y.subscriptionObserver=new te(Y);try{var fe=k(Q),Ce=fe;h(fe)||(Y.cleanup=v(fe.unsubscribe)?function(){Ce.unsubscribe()}:n(fe))}catch(ge){Q.error(ge);return}Y.isClosed()&&Y.clean()}};ce.prototype=S({},{unsubscribe:function(){var k=K(this);k.isClosed()||(k.close(),k.clean())}}),o&&w(ce.prototype,"closed",{configurable:!0,get:function(){return K(this).isClosed()}});var te=function(O){$(this,{type:L,subscriptionState:O}),o||(this.closed=!1)};te.prototype=S({},{next:function(k){var Y=H(this).subscriptionState;if(!Y.isClosed()){var P=Y.observer;try{var Q=C(P,"next");Q&&t(Q,P,k)}catch(fe){y(fe)}}},error:function(k){var Y=H(this).subscriptionState;if(!Y.isClosed()){var P=Y.observer;Y.close();try{var Q=C(P,"error");Q?t(Q,P,k):y(k)}catch(fe){y(fe)}Y.clean()}},complete:function(){var k=H(this).subscriptionState;if(!k.isClosed()){var Y=k.observer;k.close();try{var P=C(Y,"complete");P&&t(P,Y)}catch(Q){y(Q)}k.clean()}}}),o&&w(te.prototype,"closed",{configurable:!0,get:function(){return H(this).subscriptionState.isClosed()}});var W=function(k){l(this,G),$(this,{type:z,subscriber:n(k)})},G=W.prototype;S(G,{subscribe:function(k){var Y=arguments.length;return new ce(v(k)?{next:k,error:Y>1?arguments[1]:void 0,complete:Y>2?arguments[2]:void 0}:m(k)?k:{},B(this).subscriber)}}),p(G,T,function(){return this}),i({global:!0,constructor:!0,forced:R},{Observable:W}),s(z)},11341:function(M,b,e){"use strict";var i=e(13354),t=e(42725),o=e(68029),s=e(78958),n=e(13893),c=e(64712),l=e(15931),v=e(95815),h=e(77740),m=e(88818),C=h("observable");i({target:"Observable",stat:!0,forced:m},{from:function(S){var w=n(this)?this:t("Observable"),y=l(s(S),C);if(y){var Z=s(o(y,S));return Z.constructor===w?Z:new w(function(R){return Z.subscribe(R)})}var F=c(S);return new w(function(R){v(F,function(T,z){if(R.next(T),R.closed)return z()},{IS_ITERATOR:!0,INTERRUPTED:!0}),R.complete()})}})},57099:function(M,b,e){e(8120),e(11341),e(21720)},21720:function(M,b,e){"use strict";var i=e(13354),t=e(42725),o=e(13893),s=e(88818),n=t("Array");i({target:"Observable",stat:!0,forced:s},{of:function(){for(var l=o(this)?this:t("Observable"),v=arguments.length,h=n(v),m=0;m1?arguments[1]:void 0);return s(l,function(h){if(!v(h,h,l))return!1},!0)!==!1}})},17960:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(23313),n=e(22731),c=s.Set,l=s.add;i({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S){C(S,S,m)&&l(p,S)}),p}})},25823:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(22731);i({target:"Set",proto:!0,real:!0,forced:!0},{find:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0),h=s(l,function(m){if(v(m,m,l))return{value:m}},!0);return h&&h.value}})},56133:function(M,b,e){var i=e(13354),t=e(67640);i({target:"Set",stat:!0,forced:!0},{from:t})},6762:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(51737);i({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(c){return t(s,this,o(c))}})},60682:function(M,b,e){var i=e(13354),t=e(51737),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("intersection")},{intersection:t})},36925:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(46149);i({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(c){return t(s,this,o(c))}})},65107:function(M,b,e){var i=e(13354),t=e(46149),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isDisjointFrom")},{isDisjointFrom:t})},9882:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(99527);i({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(c){return t(s,this,o(c))}})},31772:function(M,b,e){var i=e(13354),t=e(99527),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isSubsetOf")},{isSubsetOf:t})},95344:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(20698);i({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(c){return t(s,this,o(c))}})},19453:function(M,b,e){var i=e(13354),t=e(20698),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("isSupersetOf")},{isSupersetOf:t})},51301:function(M,b,e){"use strict";var i=e(13354),t=e(11700),o=e(77318),s=e(22731),n=e(68424),c=t([].join),l=t([].push);i({target:"Set",proto:!0,real:!0,forced:!0},{join:function(h){var m=o(this),C=h===void 0?",":n(h),p=[];return s(m,function(S){l(p,S)}),c(p,C)}})},71395:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(23313),n=e(22731),c=s.Set,l=s.add;i({target:"Set",proto:!0,real:!0,forced:!0},{map:function(h){var m=o(this),C=t(h,arguments.length>1?arguments[1]:void 0),p=new c;return n(m,function(S){l(p,C(S,S,m))}),p}})},38054:function(M,b,e){var i=e(13354),t=e(55042);i({target:"Set",stat:!0,forced:!0},{of:t})},92141:function(M,b,e){"use strict";var i=e(13354),t=e(31927),o=e(77318),s=e(22731),n=TypeError;i({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(l){var v=o(this),h=arguments.length<2,m=h?void 0:arguments[1];if(t(l),s(v,function(C){h?(h=!1,m=C):m=l(m,C,C,v)}),h)throw n("Reduce of empty set with no initial value");return m}})},95396:function(M,b,e){"use strict";var i=e(13354),t=e(34066),o=e(77318),s=e(22731);i({target:"Set",proto:!0,real:!0,forced:!0},{some:function(c){var l=o(this),v=t(c,arguments.length>1?arguments[1]:void 0);return s(l,function(h){if(v(h,h,l))return!0},!0)===!0}})},11859:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(52100);i({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(c){return t(s,this,o(c))}})},13409:function(M,b,e){var i=e(13354),t=e(52100),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("symmetricDifference")},{symmetricDifference:t})},4681:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(74089),s=e(45953);i({target:"Set",proto:!0,real:!0,forced:!0},{union:function(c){return t(s,this,o(c))}})},51113:function(M,b,e){var i=e(13354),t=e(45953),o=e(82493);i({target:"Set",proto:!0,real:!0,forced:!o("union")},{union:t})},15307:function(M,b,e){"use strict";var i=e(13354),t=e(81673).charAt,o=e(12105),s=e(68345),n=e(68424);i({target:"String",proto:!0,forced:!0},{at:function(l){var v=n(o(this)),h=v.length,m=s(l),C=m>=0?m:h+m;return C<0||C>=h?void 0:t(v,C)}})},36879:function(M,b,e){"use strict";var i=e(13354),t=e(87821),o=e(76835),s=e(12105),n=e(68424),c=e(71584),l=e(81673),v=l.codeAt,h=l.charAt,m="String Iterator",C=c.set,p=c.getterFor(m),S=t(function(y){C(this,{type:m,string:y,index:0})},"String",function(){var y=p(this),Z=y.string,F=y.index,R;return F>=Z.length?o(void 0,!0):(R=h(Z,F),y.index+=R.length,o({codePoint:v(R,0),position:F},!1))});i({target:"String",proto:!0,forced:!0},{codePoints:function(){return new S(n(s(this)))}})},27008:function(M,b,e){var i=e(13354),t=e(85650);i({target:"String",stat:!0,forced:!0},{cooked:t})},91345:function(M,b,e){"use strict";var i=e(81506),t=e(13354),o=e(71980),s=e(42725),n=e(70377),c=e(11700),l=e(59178),v=e(78958),h=e(64441),m=e(6508),C=e(89122),p=e(38248).f,S=e(81469),w=e(85650),y=e(81089),Z=e(91289),F=s("WeakMap"),R=o("GlobalDedentRegistry",new F);R.has=R.has,R.get=R.get,R.set=R.set;var T=Array,z=TypeError,A=Object.freeze||Object,L=Object.isFrozen,I=Math.min,$=c("".charAt),B=c("".slice),K=c("".split),H=c(/./.exec),ie=/([\n\u2028\u2029]|\r\n?)/g,ce=RegExp("^["+Z+"]*"),te=RegExp("[^"+Z+"]"),W="Invalid tag",G="Invalid opening line",O="Invalid closing line",k=function(ge){var Me=ge.raw;if(i&&!L(Me))throw z("Raw template should be frozen");if(R.has(Me))return R.get(Me);var Ne=Y(Me),Qe=Q(Ne);return p(Qe,"raw",{value:A(Ne)}),A(Qe),R.set(Me,Qe),Qe},Y=function(ge){var Me=h(ge),Ne=C(Me),Qe=T(Ne),Ve=T(Ne),qe=0,Mt,wt;if(!Ne)throw z(W);for(;qe0)throw z(G);Mt[1]=""}if(Lt){if(Mt.length===1||H(te,Mt[Mt.length-1]))throw z(O);Mt[Mt.length-2]="",Mt[Mt.length-1]=""}for(var ke=2;ke=56320||++h>=v||(n(l,h)&64512)!=56320))return!1}return!0}})},5744:function(M,b,e){"use strict";var i=e(13354),t=e(68029),o=e(11700),s=e(12105),n=e(68424),c=e(77149),l=Array,v=o("".charAt),h=o("".charCodeAt),m=o([].join),C="".toWellFormed,p="\uFFFD",S=C&&c(function(){return t(C,1)!=="1"});i({target:"String",proto:!0,forced:S},{toWellFormed:function(){var y=n(s(this));if(S)return t(C,y);for(var Z=y.length,F=l(Z),R=0;R=56320||R+1>=Z||(h(y,R+1)&64512)!=56320?F[R]=p:(F[R]=v(y,R),F[++R]=v(y,R))}return m(F,"")}})},2017:function(M,b,e){"use strict";var i=e(13354),t=e(72901),o=e(77767),s=e(63332),n=e(81732),c=e(34552),l=e(5927),v=e(87971),h=e(96410),m=e(9280),C=e(77740),p=C("toStringTag"),S=Error,w=function(F,R,T){var z=t(y,this),A;return s?A=s(S(),z?o(this):y):(A=z?this:c(y),l(A,p,"Error")),T!==void 0&&l(A,"message",m(T)),h(A,w,A.stack,1),l(A,"error",F),l(A,"suppressed",R),A};s?s(w,S):n(w,S,{name:!0});var y=w.prototype=c(S.prototype,{constructor:v(1,w),message:v(1,""),name:v(1,"SuppressedError")});i({global:!0,constructor:!0,arity:3},{SuppressedError:w})},12447:function(M,b,e){var i=e(78186);i("asyncDispose")},50706:function(M,b,e){var i=e(78186);i("dispose")},80593:function(M,b,e){var i=e(13354),t=e(42725),o=e(11700),s=t("Symbol"),n=s.keyFor,c=o(s.prototype.valueOf);i({target:"Symbol",stat:!0},{isRegistered:function(v){try{return n(c(v))!==void 0}catch(h){return!1}}})},41693:function(M,b,e){for(var i=e(13354),t=e(71980),o=e(42725),s=e(11700),n=e(59549),c=e(77740),l=o("Symbol"),v=l.isWellKnown,h=o("Object","getOwnPropertyNames"),m=s(l.prototype.valueOf),C=t("wks"),p=0,S=h(l),w=S.length;p1?arguments[1]:void 0);return o(this,v)},!0)},73165:function(M,b,e){"use strict";var i=e(94641),t=e(44708).filterReject,o=e(64395),s=i.aTypedArray,n=i.exportTypedArrayMethod;n("filterReject",function(l){var v=t(s(this),l,arguments.length>1?arguments[1]:void 0);return o(this,v)},!0)},56390:function(M,b,e){"use strict";var i=e(42725),t=e(89764),o=e(44594),s=e(94641),n=e(50112),c=s.aTypedArrayConstructor,l=s.exportTypedArrayStaticMethod;l("fromAsync",function(h){var m=this,C=arguments.length,p=C>1?arguments[1]:void 0,S=C>2?arguments[2]:void 0;return new(i("Promise"))(function(w){t(m),w(o(h,p,S))}).then(function(w){return n(c(m),w)})},!0)},20233:function(M,b,e){"use strict";var i=e(94641),t=e(69093),o=e(93947),s=i.aTypedArray,n=i.exportTypedArrayMethod;n("groupBy",function(l){var v=arguments.length>1?arguments[1]:void 0;return t(s(this),l,v,o)},!0)},18444:function(M,b,e){"use strict";var i=e(94641),t=e(89122),o=e(30879),s=e(71410),n=e(28046),c=e(68345),l=e(77149),v=i.aTypedArray,h=i.getTypedArrayConstructor,m=i.exportTypedArrayMethod,C=Math.max,p=Math.min,S=!l(function(){var w=new Int8Array([1]),y=w.toSpliced(1,0,{valueOf:function(){return w[0]=2,3}});return y[0]!==2||y[1]!==3});m("toSpliced",function(y,Z){var F=v(this),R=h(F),T=t(F),z=s(y,T),A=arguments.length,L=0,I,$,B,K,H,ie,ce;if(A===0)I=$=0;else if(A===1)I=0,$=T-z;else if($=p(C(c(Z),0),T-z),I=A-2,I){K=new R(I),B=o(K);for(var te=2;te1&&!m(arguments[1])?w(arguments[1]):void 0,pe=Ze?Ze.transfer:void 0,Je;return pe!==void 0&&(Je=new Ne,le(pe,Je)),de(xe,Je)}})},81474:function(M,b,e){"use strict";var i=e(90894),t=e(8197),o=e(56265),s=e(20610),n=e(13),c=M.exports=function(l,v){var h,m,C,p,S;return arguments.length<2||typeof l!="string"?(p=v,v=l,l=null):p=arguments[2],i(l)?(h=n.call(l,"c"),m=n.call(l,"e"),C=n.call(l,"w")):(h=C=!0,m=!1),S={value:v,configurable:h,enumerable:m,writable:C},p?o(s(p),S):S};c.gs=function(l,v,h){var m,C,p,S;return typeof l!="string"?(p=h,h=v,v=l,l=null):p=arguments[3],i(v)?t(v)?i(h)?t(h)||(p=h,h=void 0):h=void 0:(p=v,v=h=void 0):v=void 0,i(l)?(m=n.call(l,"c"),C=n.call(l,"e")):(m=!0,C=!1),S={get:v,set:h,configurable:m,enumerable:C},p?o(s(p),S):S}},65140:function(M){"use strict";var b="%[a-f0-9]{2}",e=new RegExp("("+b+")|([^%]+?)","gi"),i=new RegExp("("+b+")+","gi");function t(n,c){try{return[decodeURIComponent(n.join(""))]}catch(h){}if(n.length===1)return n;c=c||1;var l=n.slice(0,c),v=n.slice(c);return Array.prototype.concat.call([],t(l),t(v))}function o(n){try{return decodeURIComponent(n)}catch(v){for(var c=n.match(e)||[],l=1;l1&&arguments[1]!==void 0?arguments[1]:s;if(t){var h={match:function(){l&&l(!0)},unmatch:function(){l&&l()}};return t.register(v,h),h}}function c(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:s;t&&t.unregister(v,l)}i=t},20699:function(M,b,e){var i=e(66835),t=e(54802).each;function o(s,n){this.query=s,this.isUnconditional=n,this.handlers=[],this.mql=window.matchMedia(s);var c=this;this.listener=function(l){c.mql=l.currentTarget||l,c.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(s){var n=new i(s);this.handlers.push(n),this.matches()&&n.on()},removeHandler:function(s){var n=this.handlers;t(n,function(c,l){if(c.equals(s))return c.destroy(),!n.splice(l,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(s){s.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var s=this.matches()?"on":"off";t(this.handlers,function(n){n[s]()})}},M.exports=o},68323:function(M,b,e){var i=e(20699),t=e(54802),o=t.each,s=t.isFunction,n=t.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}c.prototype={constructor:c,register:function(l,v,h){var m=this.queries,C=h&&this.browserIsIncapable;return m[l]||(m[l]=new i(l,C)),s(v)&&(v={match:v}),n(v)||(v=[v]),o(v,function(p){s(p)&&(p={match:p}),m[l].addHandler(p)}),this},unregister:function(l,v){var h=this.queries[l];return h&&(v?h.removeHandler(v):(h.clear(),delete this.queries[l])),this}},M.exports=c},66835:function(M){function b(e){this.options=e,!e.deferSetup&&this.setup()}b.prototype={constructor:b,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},M.exports=b},54802:function(M){function b(t,o){var s=0,n=t.length,c;for(s;s-1}},87308:function(M,b,e){"use strict";var i=e(81474),t=e(54550),o=Function.prototype.apply,s=Function.prototype.call,n=Object.create,c=Object.defineProperty,l=Object.defineProperties,v=Object.prototype.hasOwnProperty,h={configurable:!0,enumerable:!1,writable:!0},m,C,p,S,w,y,Z;m=function(F,R){var T;return t(R),v.call(this,"__ee__")?T=this.__ee__:(T=h.value=n(null),c(this,"__ee__",h),h.value=null),T[F]?typeof T[F]=="object"?T[F].push(R):T[F]=[T[F],R]:T[F]=R,this},C=function(F,R){var T,z;return t(R),z=this,m.call(this,F,T=function(){p.call(z,F,T),o.call(R,this,arguments)}),T.__eeOnceListener__=R,this},p=function(F,R){var T,z,A,L;if(t(R),!v.call(this,"__ee__"))return this;if(T=this.__ee__,!T[F])return this;if(z=T[F],typeof z=="object")for(L=0;A=z[L];++L)(A===R||A.__eeOnceListener__===R)&&(z.length===2?T[F]=z[L?0:1]:z.splice(L,1));else(z===R||z.__eeOnceListener__===R)&&delete T[F];return this},S=function(F){var R,T,z,A,L;if(v.call(this,"__ee__")&&(A=this.__ee__[F],!!A))if(typeof A=="object"){for(T=arguments.length,L=new Array(T-1),R=1;R=0&&(R.hash=F.substr(T),F=F.substr(0,T));var z=F.indexOf("?");z>=0&&(R.search=F.substr(z),F=F.substr(0,z)),F&&(R.pathname=F)}return R}},10063:function(M,b,e){"use strict";var i=e(99415),t={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},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[i.ForwardRef]=s,c[i.Memo]=n;function l(y){return i.isMemo(y)?n:c[y.$$typeof]||t}var v=Object.defineProperty,h=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,C=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,S=Object.prototype;function w(y,Z,F){if(typeof Z!="string"){if(S){var R=p(Z);R&&R!==S&&w(y,R,F)}var T=h(Z);m&&(T=T.concat(m(Z)));for(var z=l(y),A=l(Z),L=0;L>1,m=-7,C=t?s-1:0,p=t?-1:1,S=e[i+C];for(C+=p,n=S&(1<<-m)-1,S>>=-m,m+=l;m>0;n=n*256+e[i+C],C+=p,m-=8);for(c=n&(1<<-m)-1,n>>=-m,m+=o;m>0;c=c*256+e[i+C],C+=p,m-=8);if(n===0)n=1-h;else{if(n===v)return c?NaN:(S?-1:1)*(1/0);c=c+Math.pow(2,o),n=n-h}return(S?-1:1)*c*Math.pow(2,n-o)},b.write=function(e,i,t,o,s,n){var c,l,v,h=n*8-s-1,m=(1<>1,p=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,S=o?0:n-1,w=o?1:-1,y=i<0||i===0&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,c=m):(c=Math.floor(Math.log(i)/Math.LN2),i*(v=Math.pow(2,-c))<1&&(c--,v*=2),c+C>=1?i+=p/v:i+=p*Math.pow(2,1-C),i*v>=2&&(c++,v/=2),c+C>=m?(l=0,c=m):c+C>=1?(l=(i*v-1)*Math.pow(2,s),c=c+C):(l=i*Math.pow(2,C-1)*Math.pow(2,s),c=0));s>=8;e[t+S]=l&255,S+=w,l/=256,s-=8);for(c=c<0;e[t+S]=c&255,S+=w,c/=256,h-=8);e[t+S-w]|=y*128}},21700:function(M){"use strict";var b=function(e,i,t,o,s,n,c,l){if(!e){var v;if(i===void 0)v=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[t,o,s,n,c,l],m=0;v=new Error(i.replace(/%s/g,function(){return h[m++]})),v.name="Invariant Violation"}throw v.framesToPop=1,v}};M.exports=b},23161:function(M){var b={}.toString;M.exports=Array.isArray||function(e){return b.call(e)=="[object Array]"}},61012:function(M,b,e){var i=1/0,t="[object Symbol]",o=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\ud800-\\udfff",c="\\u0300-\\u036f\\ufe20-\\ufe23",l="\\u20d0-\\u20f0",v="\\u2700-\\u27bf",h="a-z\\xdf-\\xf6\\xf8-\\xff",m="\\xac\\xb1\\xd7\\xf7",C="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",p="\\u2000-\\u206f",S=" \\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",w="A-Z\\xc0-\\xd6\\xd8-\\xde",y="\\ufe0e\\ufe0f",Z=m+C+p+S,F="['\u2019]",R="["+n+"]",T="["+Z+"]",z="["+c+l+"]",A="\\d+",L="["+v+"]",I="["+h+"]",$="[^"+n+Z+A+v+h+w+"]",B="\\ud83c[\\udffb-\\udfff]",K="(?:"+z+"|"+B+")",H="[^"+n+"]",ie="(?:\\ud83c[\\udde6-\\uddff]){2}",ce="[\\ud800-\\udbff][\\udc00-\\udfff]",te="["+w+"]",W="\\u200d",G="(?:"+I+"|"+$+")",O="(?:"+te+"|"+$+")",k="(?:"+F+"(?:d|ll|m|re|s|t|ve))?",Y="(?:"+F+"(?:D|LL|M|RE|S|T|VE))?",P=K+"?",Q="["+y+"]?",fe="(?:"+W+"(?:"+[H,ie,ce].join("|")+")"+Q+P+")*",Ce=Q+P+fe,ge="(?:"+[L,ie,ce].join("|")+")"+Ce,Me="(?:"+[H+z+"?",z,ie,ce,R].join("|")+")",Ne=RegExp(F,"g"),Qe=RegExp(z,"g"),Ve=RegExp(B+"(?="+B+")|"+Me+Ce,"g"),qe=RegExp([te+"?"+I+"+"+k+"(?="+[T,te,"$"].join("|")+")",O+"+"+Y+"(?="+[T,te+G,"$"].join("|")+")",te+"?"+G+"+"+k,te+"+"+Y,A,ge].join("|"),"g"),Mt=RegExp("["+W+n+c+l+y+"]"),wt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gt={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Lt=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,ke=typeof self=="object"&&self&&self.Object===Object&&self,He=Lt||ke||Function("return this")();function et(we,Le,Ye,Ue){var dt=-1,bt=we?we.length:0;for(Ue&&bt&&(Ye=we[++dt]);++dtdt?0:dt+Le),Ye=Ye>dt?dt:Ye,Ye<0&&(Ye+=dt),dt=Le>Ye?0:Ye-Le>>>0,Le>>>=0;for(var bt=Array(dt);++Ue=Ue?we:de(we,Le,Ye)}function xe(we){return function(Le){Le=Ae(Le);var Ye=N(Le)?ee(Le):void 0,Ue=Ye?Ye[0]:Le.charAt(0),dt=Ye?ve(Ye,1).join(""):Le.slice(1);return Ue[we]()+dt}}function Ze(we){return function(Le){return et(Pe(Be(Le).replace(Ne,"")),we,"")}}function pe(we){return!!we&&typeof we=="object"}function Je(we){return typeof we=="symbol"||pe(we)&&Ie.call(we)==t}function Ae(we){return we==null?"":le(we)}var oe=Ze(function(we,Le,Ye){return Le=Le.toLowerCase(),we+(Ye?ye(Le):Le)});function ye(we){return De(Ae(we).toLowerCase())}function Be(we){return we=Ae(we),we&&we.replace(s,U).replace(Qe,"")}var De=xe("toUpperCase");function Pe(we,Le,Ye){return we=Ae(we),Le=Ye?void 0:Le,Le===void 0?D(we)?X(we):ue(we):we.match(Le)||[]}M.exports=oe},51899:function(M,b,e){var i="Expected a function",t=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt,h=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,m=typeof self=="object"&&self&&self.Object===Object&&self,C=h||m||Function("return this")(),p=Object.prototype,S=p.toString,w=Math.max,y=Math.min,Z=function(){return C.Date.now()};function F(L,I,$){var B,K,H,ie,ce,te,W=0,G=!1,O=!1,k=!0;if(typeof L!="function")throw new TypeError(i);I=A(I)||0,R($)&&(G=!!$.leading,O="maxWait"in $,H=O?w(A($.maxWait)||0,I):H,k="trailing"in $?!!$.trailing:k);function Y(Ve){var qe=B,Mt=K;return B=K=void 0,W=Ve,ie=L.apply(Mt,qe),ie}function P(Ve){return W=Ve,ce=setTimeout(Ce,I),G?Y(Ve):ie}function Q(Ve){var qe=Ve-te,Mt=Ve-W,wt=I-qe;return O?y(wt,H-Mt):wt}function fe(Ve){var qe=Ve-te,Mt=Ve-W;return te===void 0||qe>=I||qe<0||O&&Mt>=H}function Ce(){var Ve=Z();if(fe(Ve))return ge(Ve);ce=setTimeout(Ce,Q(Ve))}function ge(Ve){return ce=void 0,k&&B?Y(Ve):(B=K=void 0,ie)}function Me(){ce!==void 0&&clearTimeout(ce),W=0,B=te=K=ce=void 0}function Ne(){return ce===void 0?ie:ge(Z())}function Qe(){var Ve=Z(),qe=fe(Ve);if(B=arguments,K=this,te=Ve,qe){if(ce===void 0)return P(te);if(O)return ce=setTimeout(Ce,I),Y(te)}return ce===void 0&&(ce=setTimeout(Ce,I)),ie}return Qe.cancel=Me,Qe.flush=Ne,Qe}function R(L){var I=typeof L;return!!L&&(I=="object"||I=="function")}function T(L){return!!L&&typeof L=="object"}function z(L){return typeof L=="symbol"||T(L)&&S.call(L)==o}function A(L){if(typeof L=="number")return L;if(z(L))return t;if(R(L)){var I=typeof L.valueOf=="function"?L.valueOf():L;L=R(I)?I+"":I}if(typeof L!="string")return L===0?L:+L;L=L.replace(s,"");var $=c.test(L);return $||l.test(L)?v(L.slice(2),$?2:8):n.test(L)?t:+L}M.exports=F},14978:function(M,b,e){var i="Expected a function",t=NaN,o="[object Symbol]",s=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt,h=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,m=typeof self=="object"&&self&&self.Object===Object&&self,C=h||m||Function("return this")(),p=Object.prototype,S=p.toString,w=Math.max,y=Math.min,Z=function(){return C.Date.now()};function F(I,$,B){var K,H,ie,ce,te,W,G=0,O=!1,k=!1,Y=!0;if(typeof I!="function")throw new TypeError(i);$=L($)||0,T(B)&&(O=!!B.leading,k="maxWait"in B,ie=k?w(L(B.maxWait)||0,$):ie,Y="trailing"in B?!!B.trailing:Y);function P(qe){var Mt=K,wt=H;return K=H=void 0,G=qe,ce=I.apply(wt,Mt),ce}function Q(qe){return G=qe,te=setTimeout(ge,$),O?P(qe):ce}function fe(qe){var Mt=qe-W,wt=qe-G,gt=$-Mt;return k?y(gt,ie-wt):gt}function Ce(qe){var Mt=qe-W,wt=qe-G;return W===void 0||Mt>=$||Mt<0||k&&wt>=ie}function ge(){var qe=Z();if(Ce(qe))return Me(qe);te=setTimeout(ge,fe(qe))}function Me(qe){return te=void 0,Y&&K?P(qe):(K=H=void 0,ce)}function Ne(){te!==void 0&&clearTimeout(te),G=0,K=W=H=te=void 0}function Qe(){return te===void 0?ce:Me(Z())}function Ve(){var qe=Z(),Mt=Ce(qe);if(K=arguments,H=this,W=qe,Mt){if(te===void 0)return Q(W);if(k)return te=setTimeout(ge,$),P(W)}return te===void 0&&(te=setTimeout(ge,$)),ce}return Ve.cancel=Ne,Ve.flush=Qe,Ve}function R(I,$,B){var K=!0,H=!0;if(typeof I!="function")throw new TypeError(i);return T(B)&&(K="leading"in B?!!B.leading:K,H="trailing"in B?!!B.trailing:H),F(I,$,{leading:K,maxWait:$,trailing:H})}function T(I){var $=typeof I;return!!I&&($=="object"||$=="function")}function z(I){return!!I&&typeof I=="object"}function A(I){return typeof I=="symbol"||z(I)&&S.call(I)==o}function L(I){if(typeof I=="number")return I;if(A(I))return t;if(T(I)){var $=typeof I.valueOf=="function"?I.valueOf():I;I=T($)?$+"":$}if(typeof I!="string")return I===0?I:+I;I=I.replace(s,"");var B=c.test(I);return B||l.test(I)?v(I.slice(2),B?2:8):n.test(I)?t:+I}M.exports=R},94466:function(M,b,e){var i=e(65234),t=e(83250),o=i(t,"DataView");M.exports=o},85208:function(M,b,e){var i=e(34440),t=e(84108),o=e(61085),s=e(77706),n=e(8636);function c(l){var v=-1,h=l==null?0:l.length;for(this.clear();++vw))return!1;var Z=p.get(l),F=p.get(v);if(Z&&F)return Z==v&&F==l;var R=-1,T=!0,z=h&n?new i:void 0;for(p.set(l,v),p.set(v,l);++R-1&&t%1==0&&t-1}M.exports=t},67690:function(M,b,e){var i=e(18498);function t(o,s){var n=this.__data__,c=i(n,o);return c<0?(++this.size,n.push([o,s])):n[c][1]=s,this}M.exports=t},39016:function(M,b,e){var i=e(85208),t=e(81998),o=e(72887);function s(){this.size=0,this.__data__={hash:new i,map:new(o||t),string:new i}}M.exports=s},62363:function(M,b,e){var i=e(77570);function t(o){var s=i(this,o).delete(o);return this.size-=s?1:0,s}M.exports=t},64348:function(M,b,e){var i=e(77570);function t(o){return i(this,o).get(o)}M.exports=t},53062:function(M,b,e){var i=e(77570);function t(o){return i(this,o).has(o)}M.exports=t},30262:function(M,b,e){var i=e(77570);function t(o,s){var n=i(this,o),c=n.size;return n.set(o,s),this.size+=n.size==c?0:1,this}M.exports=t},81140:function(M){function b(e){var i=-1,t=Array(e.size);return e.forEach(function(o,s){t[++i]=[s,o]}),t}M.exports=b},24545:function(M,b,e){var i=e(65234),t=i(Object,"create");M.exports=t},82825:function(M,b,e){var i=e(33540),t=i(Object.keys,Object);M.exports=t},8690:function(M,b,e){M=e.nmd(M);var i=e(20302),t=b&&!b.nodeType&&b,o=t&&!0&&M&&!M.nodeType&&M,s=o&&o.exports===t,n=s&&i.process,c=function(){try{var l=o&&o.require&&o.require("util").types;return l||n&&n.binding&&n.binding("util")}catch(v){}}();M.exports=c},25151:function(M){var b=Object.prototype,e=b.toString;function i(t){return e.call(t)}M.exports=i},33540:function(M){function b(e,i){return function(t){return e(i(t))}}M.exports=b},83250:function(M,b,e){var i=e(20302),t=typeof self=="object"&&self&&self.Object===Object&&self,o=i||t||Function("return this")();M.exports=o},83937:function(M){var b="__lodash_hash_undefined__";function e(i){return this.__data__.set(i,b),this}M.exports=e},15009:function(M){function b(e){return this.__data__.has(e)}M.exports=b},77969:function(M){function b(e){var i=-1,t=Array(e.size);return e.forEach(function(o){t[++i]=o}),t}M.exports=b},93210:function(M,b,e){var i=e(81998);function t(){this.__data__=new i,this.size=0}M.exports=t},48603:function(M){function b(e){var i=this.__data__,t=i.delete(e);return this.size=i.size,t}M.exports=b},38947:function(M){function b(e){return this.__data__.get(e)}M.exports=b},70885:function(M){function b(e){return this.__data__.has(e)}M.exports=b},98938:function(M,b,e){var i=e(81998),t=e(72887),o=e(95678),s=200;function n(c,l){var v=this.__data__;if(v instanceof i){var h=v.__data__;if(!t||h.length=h||W<0||T&&G>=S}function B(){var te=t();if($(te))return K(te);y=setTimeout(B,I(te))}function K(te){return y=void 0,z&&C?A(te):(C=p=void 0,w)}function H(){y!==void 0&&clearTimeout(y),F=0,C=Z=p=y=void 0}function ie(){return y===void 0?w:K(t())}function ce(){var te=t(),W=$(te);if(C=arguments,p=this,Z=te,W){if(y===void 0)return L(Z);if(T)return clearTimeout(y),y=setTimeout(B,h),A(Z)}return y===void 0&&(y=setTimeout(B,h)),w}return ce.cancel=H,ce.flush=ie,ce}M.exports=l},58260:function(M){function b(e,i){return e===i||e!==e&&i!==i}M.exports=b},79312:function(M,b,e){var i=e(33016),t=e(50440),o=Object.prototype,s=o.hasOwnProperty,n=o.propertyIsEnumerable,c=i(function(){return arguments}())?i:function(l){return t(l)&&s.call(l,"callee")&&!n.call(l,"callee")};M.exports=c},55589:function(M){var b=Array.isArray;M.exports=b},30568:function(M,b,e){var i=e(45563),t=e(66052);function o(s){return s!=null&&t(s.length)&&!i(s)}M.exports=o},85778:function(M,b,e){M=e.nmd(M);var i=e(83250),t=e(37999),o=b&&!b.nodeType&&b,s=o&&!0&&M&&!M.nodeType&&M,n=s&&s.exports===o,c=n?i.Buffer:void 0,l=c?c.isBuffer:void 0,v=l||t;M.exports=v},85466:function(M,b,e){var i=e(34662);function t(o,s){return i(o,s)}M.exports=t},45563:function(M,b,e){var i=e(69823),t=e(93702),o="[object AsyncFunction]",s="[object Function]",n="[object GeneratorFunction]",c="[object Proxy]";function l(v){if(!t(v))return!1;var h=i(v);return h==s||h==n||h==o||h==c}M.exports=l},66052:function(M){var b=9007199254740991;function e(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=b}M.exports=e},93702:function(M){function b(e){var i=typeof e;return e!=null&&(i=="object"||i=="function")}M.exports=b},50440:function(M){function b(e){return e!=null&&typeof e=="object"}M.exports=b},52624:function(M,b,e){var i=e(69823),t=e(50440),o="[object Symbol]";function s(n){return typeof n=="symbol"||t(n)&&i(n)==o}M.exports=s},50922:function(M,b,e){var i=e(42448),t=e(31525),o=e(8690),s=o&&o.isTypedArray,n=s?t(s):i;M.exports=n},62096:function(M,b,e){var i=e(75825),t=e(41351),o=e(30568);function s(n){return o(n)?i(n):t(n)}M.exports=s},39378:function(M,b,e){M=e.nmd(M);var i;(function(){var t,o="4.17.21",s=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",l="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",h=500,m="__lodash_placeholder__",C=1,p=2,S=4,w=1,y=2,Z=1,F=2,R=4,T=8,z=16,A=32,L=64,I=128,$=256,B=512,K=30,H="...",ie=800,ce=16,te=1,W=2,G=3,O=1/0,k=9007199254740991,Y=17976931348623157e292,P=0/0,Q=4294967295,fe=Q-1,Ce=Q>>>1,ge=[["ary",I],["bind",Z],["bindKey",F],["curry",T],["curryRight",z],["flip",B],["partial",A],["partialRight",L],["rearg",$]],Me="[object Arguments]",Ne="[object Array]",Qe="[object AsyncFunction]",Ve="[object Boolean]",qe="[object Date]",Mt="[object DOMException]",wt="[object Error]",gt="[object Function]",Lt="[object GeneratorFunction]",ke="[object Map]",He="[object Number]",et="[object Null]",Fe="[object Object]",ue="[object Promise]",V="[object Proxy]",U="[object RegExp]",N="[object Set]",D="[object String]",ee="[object Symbol]",se="[object Undefined]",X="[object WeakMap]",re="[object WeakSet]",Ie="[object ArrayBuffer]",Se="[object DataView]",he="[object Float32Array]",We="[object Float64Array]",de="[object Int8Array]",le="[object Int16Array]",ve="[object Int32Array]",xe="[object Uint8Array]",Ze="[object Uint8ClampedArray]",pe="[object Uint16Array]",Je="[object Uint32Array]",Ae=/\b__p \+= '';/g,oe=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Be=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Pe=RegExp(Be.source),we=RegExp(De.source),Le=/<%-([\s\S]+?)%>/g,Ye=/<%([\s\S]+?)%>/g,Ue=/<%=([\s\S]+?)%>/g,dt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bt=/^\w*$/,ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,At=/[\\^$.*+?()[\]{}|]/g,Ot=RegExp(At.source),jt=/^\s+/,Gt=/\s/,Xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Bn=/\{\n\/\* \[wrapped with (.+)\] \*/,fn=/,? & /,$n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,On=/[()=,{}\[\]\/\s]/,Mn=/\\(\\)?/g,_e=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,at=/\w*$/,Vt=/^[-+]0x[0-9a-f]+$/i,an=/^0b[01]+$/i,st=/^\[object .+?Constructor\]$/,ut=/^0o[0-7]+$/i,$t=/^(?:0|[1-9]\d*)$/,nt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mt=/($^)/,Dt=/['\n\r\u2028\u2029\\]/g,Cn="\\ud800-\\udfff",en="\\u0300-\\u036f",Hn="\\ufe20-\\ufe2f",Rn="\\u20d0-\\u20ff",pr=en+Hn+Rn,gr="\\u2700-\\u27bf",Or="a-z\\xdf-\\xf6\\xf8-\\xff",ar="\\xac\\xb1\\xd7\\xf7",mr="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",qr="\\u2000-\\u206f",Pr=" \\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",Vn="A-Z\\xc0-\\xd6\\xd8-\\xde",zt="\\ufe0e\\ufe0f",Ft=ar+mr+qr+Pr,sn="['\u2019]",tn="["+Cn+"]",kt="["+Ft+"]",hn="["+pr+"]",dn="\\d+",Fn="["+gr+"]",tr="["+Or+"]",ct="[^"+Cn+Ft+dn+gr+Or+Vn+"]",lt="\\ud83c[\\udffb-\\udfff]",xt="(?:"+hn+"|"+lt+")",St="[^"+Cn+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",_t="[\\ud800-\\udbff][\\udc00-\\udfff]",Wt="["+Vn+"]",yn="\\u200d",kn="(?:"+tr+"|"+ct+")",hr="(?:"+Wt+"|"+ct+")",cr="(?:"+sn+"(?:d|ll|m|re|s|t|ve))?",Dn="(?:"+sn+"(?:D|LL|M|RE|S|T|VE))?",Rr=xt+"?",or="["+zt+"]?",Gr="(?:"+yn+"(?:"+[St,Nt,_t].join("|")+")"+or+Rr+")*",Ir="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Pn="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vn=or+Rr+Gr,Nn="(?:"+[Fn,Nt,_t].join("|")+")"+vn,Zn="(?:"+[St+hn+"?",hn,Nt,_t,tn].join("|")+")",yr=RegExp(sn,"g"),$r=RegExp(hn,"g"),Kr=RegExp(lt+"(?="+lt+")|"+Zn+vn,"g"),ra=RegExp([Wt+"?"+tr+"+"+cr+"(?="+[kt,Wt,"$"].join("|")+")",hr+"+"+Dn+"(?="+[kt,Wt+kn,"$"].join("|")+")",Wt+"?"+kn+"+"+cr,Wt+"+"+Dn,Pn,Ir,dn,Nn].join("|"),"g"),Xr=RegExp("["+yn+Cn+pr+zt+"]"),Fr=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xa=["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"],la=-1,Tn={};Tn[he]=Tn[We]=Tn[de]=Tn[le]=Tn[ve]=Tn[xe]=Tn[Ze]=Tn[pe]=Tn[Je]=!0,Tn[Me]=Tn[Ne]=Tn[Ie]=Tn[Ve]=Tn[Se]=Tn[qe]=Tn[wt]=Tn[gt]=Tn[ke]=Tn[He]=Tn[Fe]=Tn[U]=Tn[N]=Tn[D]=Tn[X]=!1;var xn={};xn[Me]=xn[Ne]=xn[Ie]=xn[Se]=xn[Ve]=xn[qe]=xn[he]=xn[We]=xn[de]=xn[le]=xn[ve]=xn[ke]=xn[He]=xn[Fe]=xn[U]=xn[N]=xn[D]=xn[ee]=xn[xe]=xn[Ze]=xn[pe]=xn[Je]=!0,xn[wt]=xn[gt]=xn[X]=!1;var Gn={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Lr={"&":"&","<":"<",">":">",'"':""","'":"'"},zr={"&":"&","<":"<",">":">",""":'"',"'":"'"},Br={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ma=parseFloat,co=parseInt,ro=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g,xo=typeof self=="object"&&self&&self.Object===Object&&self,Pa=ro||xo||Function("return this")(),Ua=b&&!b.nodeType&&b,eo=Ua&&!0&&M&&!M.nodeType&&M,Fo=eo&&eo.exports===Ua,jo=Fo&&ro.process,Bo=function(){try{var bn=eo&&eo.require&&eo.require("util").types;return bn||jo&&jo.binding&&jo.binding("util")}catch(Mr){}}(),ot=Bo&&Bo.isArrayBuffer,yt=Bo&&Bo.isDate,be=Bo&&Bo.isMap,Bt=Bo&&Bo.isRegExp,Jt=Bo&&Bo.isSet,Jn=Bo&&Bo.isTypedArray;function Kn(bn,Mr,nr){switch(nr.length){case 0:return bn.call(Mr);case 1:return bn.call(Mr,nr[0]);case 2:return bn.call(Mr,nr[0],nr[1]);case 3:return bn.call(Mr,nr[0],nr[1],nr[2])}return bn.apply(Mr,nr)}function br(bn,Mr,nr,ur){for(var Cr=-1,ca=bn==null?0:bn.length;++Cr-1}function sr(bn,Mr,nr){for(var ur=-1,Cr=bn==null?0:bn.length;++ur-1;);return nr}function ai(bn,Mr){for(var nr=bn.length;nr--&&fr(Mr,bn[nr],0)>-1;);return nr}function fi(bn,Mr){for(var nr=bn.length,ur=0;nr--;)bn[nr]===Mr&&++ur;return ur}var go=oa(Gn),Oi=oa(Lr);function Li(bn){return"\\"+Br[bn]}function oi(bn,Mr){return bn==null?t:bn[Mr]}function Di(bn){return Xr.test(bn)}function Fi(bn){return Fr.test(bn)}function wi(bn){for(var Mr,nr=[];!(Mr=bn.next()).done;)nr.push(Mr.value);return nr}function Ti(bn){var Mr=-1,nr=Array(bn.size);return bn.forEach(function(ur,Cr){nr[++Mr]=[Cr,ur]}),nr}function ns(bn,Mr){return function(nr){return bn(Mr(nr))}}function Zi(bn,Mr){for(var nr=-1,ur=bn.length,Cr=0,ca=[];++nr-1}function zn(g,E){var ne=this.__data__,Te=Oo(ne,g);return Te<0?(++this.size,ne.push([g,E])):ne[Te][1]=E,this}Ke.prototype.clear=cn,Ke.prototype.delete=nn,Ke.prototype.get=jn,Ke.prototype.has=lr,Ke.prototype.set=zn;function Yn(g){var E=-1,ne=g==null?0:g.length;for(this.clear();++E=E?g:E)),g}function Nr(g,E,ne,Te,it,Pt){var Yt,mn=E&C,Ln=E&p,Yr=E&S;if(ne&&(Yt=it?ne(g,Te,it,Pt):ne(g)),Yt!==t)return Yt;if(!Ls(g))return g;var Vr=hi(g);if(Vr){if(Yt=jc(g),!mn)return Ts(g,Yt)}else{var sa=Ai(g),no=sa==gt||sa==Lt;if(wc(g))return Hu(g,mn);if(sa==Fe||sa==Me||no&&!it){if(Yt=Ln||no?{}:Ec(g),!mn)return Ln?ml(g,Ia(Yt,g)):xs(g,Sa(Yt,g))}else{if(!xn[sa])return it?g:{};Yt=hl(g,sa,mn)}}Pt||(Pt=new rt);var wo=Pt.get(g);if(wo)return wo;Pt.set(g,Yt),wf(g)?g.forEach(function(ni){Yt.add(Nr(ni,E,ne,ni,g,Pt))}):Of(g)&&g.forEach(function(ni,$i){Yt.set($i,Nr(ni,E,ne,$i,g,Pt))});var ti=Yr?Ln?ts:Xi:Ln?cu:Ol,xi=Vr?t:ti(g);return ea(xi||g,function(ni,$i){xi&&($i=ni,ni=g[$i]),Aa(Yt,$i,Nr(ni,E,ne,$i,g,Pt))}),Yt}function Da(g){var E=Ol(g);return function(ne){return Wr(ne,g,E)}}function Wr(g,E,ne){var Te=ne.length;if(g==null)return!Te;for(g=fa(g);Te--;){var it=ne[Te],Pt=E[it],Yt=g[it];if(Yt===t&&!(it in g)||!Pt(Yt))return!1}return!0}function Qr(g,E,ne){if(typeof g!="function")throw new Jo(c);return xc(function(){g.apply(t,ne)},E)}function _a(g,E,ne,Te){var it=-1,Pt=wr,Yt=!0,mn=g.length,Ln=[],Yr=E.length;if(!mn)return Ln;ne&&(E=dr(E,vo(ne))),Te?(Pt=sr,Yt=!1):E.length>=s&&(Pt=Ra,Yt=!1,E=new ha(E));e:for(;++itit?0:it+ne),Te=Te===t||Te>it?it:Si(Te),Te<0&&(Te+=it),Te=ne>Te?0:jf(Te);ne0&&ne(mn)?E>1?Ha(mn,E-1,ne,Te,it):Tr(it,mn):Te||(it[it.length]=mn)}return it}var Do=Gu(),lo=Gu(!0);function Oa(g,E){return g&&Do(g,E,Ol)}function $a(g,E){return g&&lo(g,E,Ol)}function li(g,E){return Dr(E,function(ne){return gc(g[ne])})}function Va(g,E){E=Ll(E,g);for(var ne=0,Te=E.length;g!=null&&neE}function ko(g,E){return g!=null&&ri.call(g,E)}function Io(g,E){return g!=null&&E in fa(g)}function Lo(g,E,ne){return g>=ji(E,ne)&&g=120&&Vr.length>=120)?new ha(Yt&&Vr):t}Vr=g[0];var sa=-1,no=mn[0];e:for(;++sa-1;)mn!==g&&Rs.call(mn,Ln,1),Rs.call(g,Ln,1);return g}function xu(g,E){for(var ne=g?E.length:0,Te=ne-1;ne--;){var it=E[ne];if(ne==Te||it!==Pt){var Pt=it;La(it)?Rs.call(g,it,1):Uu(g,it)}}return g}function Iu(g,E){return g+xr(po()*(E-g+1))}function el(g,E,ne,Te){for(var it=-1,Pt=Ro(ll((E-g)/(ne||1)),0),Yt=nr(Pt);Pt--;)Yt[Te?Pt:++it]=g,g+=ne;return Yt}function es(g,E){var ne="";if(!g||E<1||E>k)return ne;do E%2&&(ne+=g),E=xr(E/2),E&&(g+=g);while(E);return ne}function Fa(g,E){return ou(ru(g,E,du),g+"")}function gs(g){return Ur(cd(g))}function Nu(g,E){var ne=cd(g);return Lc(ne,Sr(E,0,ne.length))}function Gl(g,E,ne,Te){if(!Ls(g))return g;E=Ll(E,g);for(var it=-1,Pt=E.length,Yt=Pt-1,mn=g;mn!=null&&++itit?0:it+E),ne=ne>it?it:ne,ne<0&&(ne+=it),it=E>ne?0:ne-E>>>0,E>>>=0;for(var Pt=nr(it);++Te>>1,Yt=g[Pt];Yt!==null&&!Mu(Yt)&&(ne?Yt<=E:Yt=s){var Yr=E?null:ho(g);if(Yr)return ao(Yr);Yt=!1,it=Ra,Ln=new ha}else Ln=E?[]:mn;e:for(;++Te=Te?g:_s(g,E,ne)}var tc=Po||function(g){return Pa.clearTimeout(g)};function Hu(g,E){if(E)return g.slice();var ne=g.length,Te=Hl?Hl(ne):new g.constructor(ne);return g.copy(Te),Te}function Du(g){var E=new g.constructor(g.byteLength);return new sl(E).set(new sl(g)),E}function nc(g,E){var ne=E?Du(g.buffer):g.buffer;return new g.constructor(ne,g.byteOffset,g.byteLength)}function yc(g){var E=new g.constructor(g.source,at.exec(g));return E.lastIndex=g.lastIndex,E}function Mc(g){return Ws?fa(Ws.call(g)):{}}function Yu(g,E){var ne=E?Du(g.buffer):g.buffer;return new g.constructor(ne,g.byteOffset,g.length)}function rc(g,E){if(g!==E){var ne=g!==t,Te=g===null,it=g===g,Pt=Mu(g),Yt=E!==t,mn=E===null,Ln=E===E,Yr=Mu(E);if(!mn&&!Yr&&!Pt&&g>E||Pt&&Yt&&Ln&&!mn&&!Yr||Te&&Yt&&Ln||!ne&&Ln||!it)return 1;if(!Te&&!Pt&&!Yr&&g=mn)return Ln;var Yr=ne[Te];return Ln*(Yr=="desc"?-1:1)}}return g.index-E.index}function ac(g,E,ne,Te){for(var it=-1,Pt=g.length,Yt=ne.length,mn=-1,Ln=E.length,Yr=Ro(Pt-Yt,0),Vr=nr(Ln+Yr),sa=!Te;++mn1?ne[it-1]:t,Yt=it>2?ne[2]:t;for(Pt=g.length>3&&typeof Pt=="function"?(it--,Pt):t,Yt&&ps(ne[0],ne[1],Yt)&&(Pt=it<3?t:Pt,it=1),E=fa(E);++Te-1?it[Pt?E[Yt]:Yt]:t}}function Ht(g){return Bi(function(E){var ne=E.length,Te=ne,it=qi.prototype.thru;for(g&&E.reverse();Te--;){var Pt=E[Te];if(typeof Pt!="function")throw new Jo(c);if(it&&!Yt&&Xo(Pt)=="wrapper")var Yt=new qi([],!0)}for(Te=Yt?Te:ne;++Te1&&ki.reverse(),Vr&&Ln<$i&&(ki.length=Ln),this&&this!==Pa&&this instanceof ni&&(pc=xi||Oe(pc)),pc.apply(Zu,ki)}return ni}function Sn(g,E){return function(ne,Te){return ci(ne,g,E(Te),{})}}function Xn(g,E){return function(ne,Te){var it;if(ne===t&&Te===t)return E;if(ne!==t&&(it=ne),Te!==t){if(it===t)return Te;typeof ne=="string"||typeof Te=="string"?(ne=Hs(ne),Te=Hs(Te)):(ne=nu(ne),Te=nu(Te)),it=g(ne,Te)}return it}}function _r(g){return Bi(function(E){return E=dr(E,vo(va())),Fa(function(ne){var Te=this;return g(E,function(it){return Kn(it,Te,ne)})})})}function Hr(g,E){E=E===t?" ":Hs(E);var ne=E.length;if(ne<2)return ne?es(E,g):E;var Te=es(E,ll(g/Zo(E)));return Di(E)?Nl(Ko(Te),0,g).join(""):Te.slice(0,g)}function ma(g,E,ne,Te){var it=E&Z,Pt=Oe(g);function Yt(){for(var mn=-1,Ln=arguments.length,Yr=-1,Vr=Te.length,sa=nr(Vr+Ln),no=this&&this!==Pa&&this instanceof Yt?Pt:g;++Yrmn))return!1;var Yr=Pt.get(g),Vr=Pt.get(E);if(Yr&&Vr)return Yr==E&&Vr==g;var sa=-1,no=!0,wo=ne&y?new ha:t;for(Pt.set(g,E),Pt.set(E,g);++sa1?"& ":"")+E[Te],E=E.join(ne>2?", ":" "),g.replace(Xt,`{ /* [wrapped with `+E+`] */ -`)}function Zc(g){return pi(g)||Fc(g)||!!(Zl&&g&&g[Zl])}function Pa(g,E){var ne=typeof g;return E=E==null?k:E,!!E&&(ne=="number"||ne!="symbol"&&$t.test(g))&&g>-1&&g%1==0&&g0){if(++E>=ie)return arguments[0]}else E=0;return g.apply(t,arguments)}}function Lc(g,E){var ne=-1,Te=g.length,it=Te-1;for(E=E===t?Te:E;++ne1?g[E-1]:t;return ne=typeof ne=="function"?(g.pop(),ne):t,Ms(g,ne)});function td(g){var E=It(g);return E.__chain__=!0,E}function af(g,E){return E(g),g}function yu(g,E){return E(g)}var nd=zi(function(g){var E=g.length,ne=E?g[0]:0,Te=this.__wrapped__,it=function(Pt){return mo(Pt,g)};return E>1||this.__actions__.length||!(Te instanceof Go)||!Pa(ne)?this.thru(it):(Te=Te.slice(ne,+ne+(E?1:0)),Te.__actions__.push({func:yu,args:[it],thisArg:t}),new Ji(Te,this.__chain__).thru(function(Pt){return E&&!Pt.length&&Pt.push(t),Pt}))});function fc(){return td(this)}function rd(){return new Ji(this.value(),this.__chain__)}function xd(){this.__values__===t&&(this.__values__=Tf(this.value()));var g=this.__index__>=this.__values__.length,E=g?t:this.__values__[this.__index__++];return{done:g,value:E}}function Id(){return this}function of(g){for(var E,ne=this;ne instanceof jl;){var Te=_c(ne);Te.__index__=0,Te.__values__=t,E?it.__wrapped__=Te:E=Te;var it=Te;ne=ne.__wrapped__}return it.__wrapped__=g,E}function Ad(){var g=this.__wrapped__;if(g instanceof Go){var E=g;return this.__actions__.length&&(E=new Go(this)),E=E.reverse(),E.__actions__.push({func:yu,args:[Jc],thisArg:t}),new Ji(E,this.__chain__)}return this.thru(Jc)}function sf(){return ec(this.__wrapped__,this.__actions__)}var kd=Rl(function(g,E,ne){ri.call(g,ne)?++g[ne]:oa(g,ne,1)});function Wd(g,E,ne){var Te=pi(g)?kr:so;return ne&&ps(g,E,ne)&&(E=t),Te(g,fa(E,3))}function ad(g,E){var ne=pi(g)?Dr:no;return ne(g,fa(E,3))}var od=pt(Yc),_d=pt(Ac);function Od(g,E){return Ha(vc(g,E),1)}function lf(g,E){return Ha(vc(g,E),O)}function Hd(g,E,ne){return ne=ne===t?1:bi(ne),Ha(vc(g,E),ne)}function id(g,E){var ne=pi(g)?ta:za;return ne(g,fa(E,3))}function Bc(g,E){var ne=pi(g)?ka:ma;return ne(g,fa(E,3))}var Dd=Rl(function(g,E,ne){ri.call(g,ne)?g[ne].push(E):oa(g,ne,[E])});function sd(g,E,ne,Te){g=uu(g)?g:cd(g),ne=ne&&!Te?bi(ne):0;var it=g.length;return ne<0&&(ne=zo(it+ne,0)),Kd(g)?ne<=it&&g.indexOf(E,ne)>-1:!!it&&fr(g,E,ne)>-1}var Yd=Fa(function(g,E,ne){var Te=-1,it=typeof E=="function",Pt=uu(g)?er(g.length):[];return za(g,function(Yt){Pt[++Te]=it?Gn(E,Yt,ne):Si(Yt,E,ne)}),Pt}),uf=Rl(function(g,E,ne){oa(g,ne,E)});function vc(g,E){var ne=pi(g)?dr:ao;return ne(g,fa(E,3))}function cf(g,E,ne,Te){return g==null?[]:(pi(E)||(E=E==null?[]:[E]),ne=Te?t:ne,pi(ne)||(ne=ne==null?[]:[ne]),Pl(g,E,ne))}var $c=Rl(function(g,E,ne){g[ne?0:1].push(E)},function(){return[[],[]]});function df(g,E,ne){var Te=pi(g)?va:na,it=arguments.length<3;return Te(g,fa(E,4),ne,it,za)}function ld(g,E,ne){var Te=pi(g)?co:na,it=arguments.length<3;return Te(g,fa(E,4),ne,it,ma)}function a(g,E){var ne=pi(g)?Dr:no;return ne(g,Ea(fa(E,3)))}function d(g){var E=pi(g)?$r:gs;return E(g)}function x(g,E,ne){(ne?ps(g,E,ne):E===t)?E=1:E=bi(E);var Te=pi(g)?Qr:Nu;return Te(g,E)}function J(g){var E=pi(g)?Sa:Bs;return E(g)}function Ee(g){if(g==null)return 0;if(uu(g))return Kd(g)?Zo(g):g.length;var E=Ai(g);return E==ke||E==N?g.size:ht(g).length}function ze(g,E,ne){var Te=pi(g)?Qa:Ju;return ne&&ps(g,E,ne)&&(E=t),Te(g,fa(E,3))}var Ct=Fa(function(g,E){if(g==null)return[];var ne=E.length;return ne>1&&ps(g,E[0],E[1])?E=[]:ne>2&&ps(E[0],E[1],E[2])&&(E=[E[0]]),Pl(g,Ha(E,1),[])}),Zt=ls||function(){return ja.Date.now()};function pn(g,E){if(typeof E!="function")throw new Xo(c);return g=bi(g),function(){if(--g<1)return E.apply(this,arguments)}}function rr(g,E,ne){return E=ne?t:E,E=g&&E==null?g.length:E,Vo(g,I,t,t,t,t,E)}function ra(g,E){var ne;if(typeof E!="function")throw new Xo(c);return g=bi(g),function(){return--g>0&&(ne=E.apply(this,arguments)),g<=1&&(E=t),ne}}var Ga=Fa(function(g,E,ne){var Te=Z;if(ne.length){var it=Fi(ne,ko(Ga));Te|=A}return Vo(g,Te,E,ne,it)}),Pr=Fa(function(g,E,ne){var Te=Z|F;if(ne.length){var it=Fi(ne,ko(Pr));Te|=A}return Vo(E,Te,g,ne,it)});function lo(g,E,ne){E=ne?t:E;var Te=Vo(g,T,t,t,t,t,t,E);return Te.placeholder=lo.placeholder,Te}function Za(g,E,ne){E=ne?t:E;var Te=Vo(g,z,t,t,t,t,t,E);return Te.placeholder=Za.placeholder,Te}function vi(g,E,ne){var Te,it,Pt,Yt,gn,Pn,Yr=0,Vr=!1,sa=!1,eo=!0;if(typeof g!="function")throw new Xo(c);E=ju(E)||0,Ls(ne)&&(Vr=!!ne.leading,sa="maxWait"in ne,Pt=sa?zo(ju(ne.maxWait)||0,E):Pt,eo="trailing"in ne?!!ne.trailing:eo);function wo(Vs){var Zu=Te,pc=it;return Te=it=t,Yr=Vs,Yt=g.apply(pc,Zu),Yt}function ti(Vs){return Yr=Vs,gn=xc(Bi,E),Vr?wo(Vs):Yt}function xi(Vs){var Zu=Vs-Pn,pc=Vs-Yr,Wf=E-Zu;return sa?ji(Wf,Pt-pc):Wf}function ni(Vs){var Zu=Vs-Pn,pc=Vs-Yr;return Pn===t||Zu>=E||Zu<0||sa&&pc>=Pt}function Bi(){var Vs=Zt();if(ni(Vs))return Wi(Vs);gn=xc(Bi,xi(Vs))}function Wi(Vs){return gn=t,eo&&Te?wo(Vs):(Te=it=t,Yt)}function bu(){gn!==t&&tc(gn),Yr=0,Te=Pn=it=gn=t}function Xl(){return gn===t?Yt:Wi(Zt())}function Su(){var Vs=Zt(),Zu=ni(Vs);if(Te=arguments,it=this,Pn=Vs,Zu){if(gn===t)return ti(Pn);if(sa)return tc(gn),gn=xc(Bi,E),wo(Pn)}return gn===t&&(gn=xc(Bi,E)),Yt}return Su.cancel=bu,Su.flush=Xl,Su}var Ps=Fa(function(g,E){return Xr(g,1,E)}),Wn=Fa(function(g,E,ne){return Xr(g,ju(E)||0,ne)});function Cn(g){return Vo(g,B)}function Jn(g,E){if(typeof g!="function"||E!=null&&typeof E!="function")throw new Xo(c);var ne=function(){var Te=arguments,it=E?E.apply(this,Te):Te[0],Pt=ne.cache;if(Pt.has(it))return Pt.get(it);var Yt=g.apply(this,Te);return ne.cache=Pt.set(it,Yt)||Pt,Yt};return ne.cache=new(Jn.Cache||nr),ne}Jn.Cache=nr;function Ea(g){if(typeof g!="function")throw new Xo(c);return function(){var E=arguments;switch(E.length){case 0:return!g.call(this);case 1:return!g.call(this,E[0]);case 2:return!g.call(this,E[0],E[1]);case 3:return!g.call(this,E[0],E[1],E[2])}return!g.apply(this,E)}}function So(g){return ra(2,g)}var Wo=kl(function(g,E){E=E.length==1&&pi(E[0])?dr(E[0],vo(fa())):dr(Ha(E,1),vo(fa()));var ne=E.length;return Fa(function(Te){for(var it=-1,Pt=ji(Te.length,ne);++it=E}),Fc=mi(function(){return arguments}())?mi:function(g){return Fs(g)&&ri.call(g,"callee")&&!Ds.call(g,"callee")},pi=er.isArray,nv=ot?vo(ot):qo;function uu(g){return g!=null&&Gd(g.length)&&!gc(g)}function Ks(g){return Fs(g)&&uu(g)}function rv(g){return g===!0||g===!1||Fs(g)&&ai(g)==Ve}var wc=ul||Cf,av=yt?vo(yt):Ki;function ov(g){return Fs(g)&&g.nodeType===1&&!wd(g)}function iv(g){if(g==null)return!0;if(uu(g)&&(pi(g)||typeof g=="string"||typeof g.splice=="function"||wc(g)||ud(g)||Fc(g)))return!g.length;var E=Ai(g);if(E==ke||E==N)return!g.size;if(ic(g))return!ht(g).length;for(var ne in g)if(ri.call(g,ne))return!1;return!0}function sv(g,E){return as(g,E)}function lv(g,E,ne){ne=typeof ne=="function"?ne:t;var Te=ne?ne(g,E):t;return Te===t?as(g,E,t,ne):!!Te}function vf(g){if(!Fs(g))return!1;var E=ai(g);return E==wt||E==Mt||typeof g.message=="string"&&typeof g.name=="string"&&!wd(g)}function uv(g){return typeof g=="number"&&ws(g)}function gc(g){if(!Ls(g))return!1;var E=ai(g);return E==mt||E==Nt||E==Qe||E==V}function Af(g){return typeof g=="number"&&g==bi(g)}function Gd(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=k}function Ls(g){var E=typeof g;return g!=null&&(E=="object"||E=="function")}function Fs(g){return g!=null&&typeof g=="object"}var Of=be?vo(be):qi;function cv(g,E){return g===E||Zi(g,E,Al(E))}function dv(g,E,ne){return ne=typeof ne=="function"?ne:t,Zi(g,E,Al(E),ne)}function fv(g){return Df(g)&&g!=+g}function vv(g){if(Uc(g))throw new Cr(n);return Ko(g)}function gv(g){return g===null}function mv(g){return g==null}function Df(g){return typeof g=="number"||Fs(g)&&ai(g)==He}function wd(g){if(!Fs(g)||ai(g)!=Fe)return!1;var E=vs(g);if(E===null)return!0;var ne=ri.call(E,"constructor")&&E.constructor;return typeof ne=="function"&&ne instanceof ne&&us.call(ne)==Fl}var gf=Bt?vo(Bt):j;function pv(g){return Af(g)&&g>=-k&&g<=k}var wf=Jt?vo(Jt):ae;function Kd(g){return typeof g=="string"||!pi(g)&&Fs(g)&&ai(g)==D}function Mu(g){return typeof g=="symbol"||Fs(g)&&ai(g)==ee}var ud=Xn?vo(Xn):je;function hv(g){return g===t}function yv(g){return Fs(g)&&Ai(g)==X}function Mv(g){return Fs(g)&&ai(g)==re}var bv=Da(ir),Sv=Da(function(g,E){return g<=E});function Tf(g){if(!g)return[];if(uu(g))return Kd(g)?Yo(g):Ts(g);if(Js&&g[Js])return wi(g[Js]());var E=Ai(g),ne=E==ke?Ti:E==N?ro:cd;return ne(g)}function mc(g){if(!g)return g===0?g:0;if(g=ju(g),g===O||g===-O){var E=g<0?-1:1;return E*Y}return g===g?g:0}function bi(g){var E=mc(g),ne=E%1;return E===E?ne?E-ne:E:0}function jf(g){return g?Sr(bi(g),0,Q):0}function ju(g){if(typeof g=="number")return g;if(Mu(g))return P;if(Ls(g)){var E=typeof g.valueOf=="function"?g.valueOf():g;g=Ls(E)?E+"":E}if(typeof g!="string")return g===0?g:+g;g=To(g);var ne=rn.test(g);return ne||ut.test(g)?uo(g.slice(2),ne?2:8):Vt.test(g)?P:+g}function Pf(g){return xl(g,cu(g))}function Ev(g){return g?Sr(bi(g),-k,k):g===0?g:0}function is(g){return g==null?"":Hs(g)}var Cv=Il(function(g,E){if(ic(E)||uu(E)){xl(E,Ol(E),g);return}for(var ne in E)ri.call(E,ne)&&Ia(g,ne,E[ne])}),Lf=Il(function(g,E){xl(E,cu(E),g)}),Vd=Il(function(g,E,ne,Te){xl(E,cu(E),g,Te)}),xv=Il(function(g,E,ne,Te){xl(E,Ol(E),g,Te)}),Iv=zi(mo);function Av(g,E){var ne=Pi(g);return E==null?ne:Aa(ne,E)}var Ov=Fa(function(g,E){g=da(g);var ne=-1,Te=E.length,it=Te>2?E[2]:t;for(it&&ps(E[0],E[1],it)&&(Te=1);++ne1),Pt}),xl(g,ts(g),ne),Te&&(ne=Tr(ne,C|p|S,Hi));for(var it=E.length;it--;)Uu(ne,E[it]);return ne});function Hv(g,E){return Rf(g,Ea(fa(E)))}var Yv=zi(function(g,E){return g==null?{}:Ui(g,E)});function Rf(g,E){if(g==null)return{};var ne=dr(ts(g),function(Te){return[Te]});return E=fa(E),Yl(g,ne,function(Te,it){return E(Te,it[0])})}function Gv(g,E,ne){E=Ll(E,g);var Te=-1,it=E.length;for(it||(it=1,g=t);++TeE){var Te=g;g=E,E=Te}if(ne||g%1||E%1){var it=yo();return ji(g+it*(E-g+Ma("1e-"+((it+"").length-1))),E)}return Iu(g,E)}var a0=me(function(g,E,ne){return E=E.toLowerCase(),g+(ne?$f(E):E)});function $f(g){return hf(is(g).toLowerCase())}function Ff(g){return g=is(g),g&&g.replace(nt,go).replace(Fr,"")}function o0(g,E,ne){g=is(g),E=Hs(E);var Te=g.length;ne=ne===t?Te:Sr(bi(ne),0,Te);var it=ne;return ne-=E.length,ne>=0&&g.slice(ne,it)==E}function i0(g){return g=is(g),g&&we.test(g)?g.replace(De,Oi):g}function s0(g){return g=is(g),g&&Ot.test(g)?g.replace(At,"\\$&"):g}var l0=me(function(g,E,ne){return g+(ne?"-":"")+E.toLowerCase()}),u0=me(function(g,E,ne){return g+(ne?" ":"")+E.toLowerCase()}),c0=_("toLowerCase");function d0(g,E,ne){g=is(g),E=bi(E);var Te=E?Zo(g):0;if(!E||Te>=E)return g;var it=(E-Te)/2;return Hr(xr(it),ne)+g+Hr(ll(it),ne)}function f0(g,E,ne){g=is(g),E=bi(E);var Te=E?Zo(g):0;return E&&Te>>0,ne?(g=is(g),g&&(typeof E=="string"||E!=null&&!gf(E))&&(E=Hs(E),!E&&Di(g))?Nl(Yo(g),0,ne):g.split(E,ne)):[]}var M0=me(function(g,E,ne){return g+(ne?" ":"")+hf(E)});function b0(g,E,ne){return g=is(g),ne=ne==null?0:Sr(bi(ne),0,g.length),E=Hs(E),g.slice(ne,ne+E.length)==E}function S0(g,E,ne){var Te=It.templateSettings;ne&&ps(g,E,ne)&&(E=t),g=is(g),E=Vd({},E,Te,Mi);var it=Vd({},E.imports,Te.imports,Mi),Pt=Ol(it),Yt=qr(it,Pt),gn,Pn,Yr=0,Vr=E.interpolate||gt,sa="__p += '",eo=_o((E.escape||gt).source+"|"+Vr.source+"|"+(Vr===Ue?_e:gt).source+"|"+(E.evaluate||gt).source+"|$","g"),wo="//# sourceURL="+(ri.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++la+"]")+` -`;g.replace(eo,function(ni,Bi,Wi,bu,Xl,Su){return Wi||(Wi=bu),sa+=g.slice(Yr,Su).replace(Dt,Li),Bi&&(gn=!0,sa+=`' + -__e(`+Bi+`) + -'`),Xl&&(Pn=!0,sa+=`'; +`)}function Zc(g){return hi(g)||Fc(g)||!!(Zl&&g&&g[Zl])}function La(g,E){var ne=typeof g;return E=E==null?k:E,!!E&&(ne=="number"||ne!="symbol"&&$t.test(g))&&g>-1&&g%1==0&&g0){if(++E>=ie)return arguments[0]}else E=0;return g.apply(t,arguments)}}function Lc(g,E){var ne=-1,Te=g.length,it=Te-1;for(E=E===t?Te:E;++ne1?g[E-1]:t;return ne=typeof ne=="function"?(g.pop(),ne):t,Ms(g,ne)});function td(g){var E=It(g);return E.__chain__=!0,E}function af(g,E){return E(g),g}function yu(g,E){return E(g)}var nd=Bi(function(g){var E=g.length,ne=E?g[0]:0,Te=this.__wrapped__,it=function(Pt){return oo(Pt,g)};return E>1||this.__actions__.length||!(Te instanceof Vo)||!La(ne)?this.thru(it):(Te=Te.slice(ne,+ne+(E?1:0)),Te.__actions__.push({func:yu,args:[it],thisArg:t}),new qi(Te,this.__chain__).thru(function(Pt){return E&&!Pt.length&&Pt.push(t),Pt}))});function fc(){return td(this)}function rd(){return new qi(this.value(),this.__chain__)}function xd(){this.__values__===t&&(this.__values__=Tf(this.value()));var g=this.__index__>=this.__values__.length,E=g?t:this.__values__[this.__index__++];return{done:g,value:E}}function Id(){return this}function of(g){for(var E,ne=this;ne instanceof jl;){var Te=_c(ne);Te.__index__=0,Te.__values__=t,E?it.__wrapped__=Te:E=Te;var it=Te;ne=ne.__wrapped__}return it.__wrapped__=g,E}function Ad(){var g=this.__wrapped__;if(g instanceof Vo){var E=g;return this.__actions__.length&&(E=new Vo(this)),E=E.reverse(),E.__actions__.push({func:yu,args:[Jc],thisArg:t}),new qi(E,this.__chain__)}return this.thru(Jc)}function sf(){return ec(this.__wrapped__,this.__actions__)}var kd=Rl(function(g,E,ne){ri.call(g,ne)?++g[ne]:ia(g,ne,1)});function Wd(g,E,ne){var Te=hi(g)?kr:io;return ne&&ps(g,E,ne)&&(E=t),Te(g,va(E,3))}function ad(g,E){var ne=hi(g)?Dr:qa;return ne(g,va(E,3))}var od=pt(Yc),_d=pt(Ac);function Od(g,E){return Ha(vc(g,E),1)}function lf(g,E){return Ha(vc(g,E),O)}function Hd(g,E,ne){return ne=ne===t?1:Si(ne),Ha(vc(g,E),ne)}function id(g,E){var ne=hi(g)?ea:za;return ne(g,va(E,3))}function Bc(g,E){var ne=hi(g)?ka:ya;return ne(g,va(E,3))}var Dd=Rl(function(g,E,ne){ri.call(g,ne)?g[ne].push(E):ia(g,ne,[E])});function sd(g,E,ne,Te){g=uu(g)?g:cd(g),ne=ne&&!Te?Si(ne):0;var it=g.length;return ne<0&&(ne=Ro(it+ne,0)),Kd(g)?ne<=it&&g.indexOf(E,ne)>-1:!!it&&fr(g,E,ne)>-1}var Yd=Fa(function(g,E,ne){var Te=-1,it=typeof E=="function",Pt=uu(g)?nr(g.length):[];return za(g,function(Yt){Pt[++Te]=it?Kn(E,Yt,ne):bi(Yt,E,ne)}),Pt}),uf=Rl(function(g,E,ne){ia(g,ne,E)});function vc(g,E){var ne=hi(g)?dr:to;return ne(g,va(E,3))}function cf(g,E,ne,Te){return g==null?[]:(hi(E)||(E=E==null?[]:[E]),ne=Te?t:ne,hi(ne)||(ne=ne==null?[]:[ne]),Yl(g,E,ne))}var $c=Rl(function(g,E,ne){g[ne?0:1].push(E)},function(){return[[],[]]});function df(g,E,ne){var Te=hi(g)?ga:ta,it=arguments.length<3;return Te(g,va(E,4),ne,it,za)}function ld(g,E,ne){var Te=hi(g)?fo:ta,it=arguments.length<3;return Te(g,va(E,4),ne,it,ya)}function a(g,E){var ne=hi(g)?Dr:qa;return ne(g,Ca(va(E,3)))}function d(g){var E=hi(g)?Ur:gs;return E(g)}function x(g,E,ne){(ne?ps(g,E,ne):E===t)?E=1:E=Si(E);var Te=hi(g)?aa:Nu;return Te(g,E)}function J(g){var E=hi(g)?da:Bs;return E(g)}function Ee(g){if(g==null)return 0;if(uu(g))return Kd(g)?Zo(g):g.length;var E=Ai(g);return E==ke||E==N?g.size:ht(g).length}function ze(g,E,ne){var Te=hi(g)?Xa:Ju;return ne&&ps(g,E,ne)&&(E=t),Te(g,va(E,3))}var Ct=Fa(function(g,E){if(g==null)return[];var ne=E.length;return ne>1&&ps(g,E[0],E[1])?E=[]:ne>2&&ps(E[0],E[1],E[2])&&(E=[E[0]]),Yl(g,Ha(E,1),[])}),Zt=ls||function(){return Pa.Date.now()};function pn(g,E){if(typeof E!="function")throw new Jo(c);return g=Si(g),function(){if(--g<1)return E.apply(this,arguments)}}function rr(g,E,ne){return E=ne?t:E,E=g&&E==null?g.length:E,Qo(g,I,t,t,t,t,E)}function na(g,E){var ne;if(typeof E!="function")throw new Jo(c);return g=Si(g),function(){return--g>0&&(ne=E.apply(this,arguments)),g<=1&&(E=t),ne}}var Ya=Fa(function(g,E,ne){var Te=Z;if(ne.length){var it=Zi(ne,Wo(Ya));Te|=A}return Qo(g,Te,E,ne,it)}),jr=Fa(function(g,E,ne){var Te=Z|F;if(ne.length){var it=Zi(ne,Wo(jr));Te|=A}return Qo(E,Te,g,ne,it)});function uo(g,E,ne){E=ne?t:E;var Te=Qo(g,T,t,t,t,t,t,E);return Te.placeholder=uo.placeholder,Te}function Za(g,E,ne){E=ne?t:E;var Te=Qo(g,z,t,t,t,t,t,E);return Te.placeholder=Za.placeholder,Te}function gi(g,E,ne){var Te,it,Pt,Yt,mn,Ln,Yr=0,Vr=!1,sa=!1,no=!0;if(typeof g!="function")throw new Jo(c);E=ju(E)||0,Ls(ne)&&(Vr=!!ne.leading,sa="maxWait"in ne,Pt=sa?Ro(ju(ne.maxWait)||0,E):Pt,no="trailing"in ne?!!ne.trailing:no);function wo(Vs){var Zu=Te,pc=it;return Te=it=t,Yr=Vs,Yt=g.apply(pc,Zu),Yt}function ti(Vs){return Yr=Vs,mn=xc($i,E),Vr?wo(Vs):Yt}function xi(Vs){var Zu=Vs-Ln,pc=Vs-Yr,Wf=E-Zu;return sa?ji(Wf,Pt-pc):Wf}function ni(Vs){var Zu=Vs-Ln,pc=Vs-Yr;return Ln===t||Zu>=E||Zu<0||sa&&pc>=Pt}function $i(){var Vs=Zt();if(ni(Vs))return ki(Vs);mn=xc($i,xi(Vs))}function ki(Vs){return mn=t,no&&Te?wo(Vs):(Te=it=t,Yt)}function bu(){mn!==t&&tc(mn),Yr=0,Te=Ln=it=mn=t}function Xl(){return mn===t?Yt:ki(Zt())}function Su(){var Vs=Zt(),Zu=ni(Vs);if(Te=arguments,it=this,Ln=Vs,Zu){if(mn===t)return ti(Ln);if(sa)return tc(mn),mn=xc($i,E),wo(Ln)}return mn===t&&(mn=xc($i,E)),Yt}return Su.cancel=bu,Su.flush=Xl,Su}var Ps=Fa(function(g,E){return Qr(g,1,E)}),Wn=Fa(function(g,E,ne){return Qr(g,ju(E)||0,ne)});function En(g){return Qo(g,B)}function qn(g,E){if(typeof g!="function"||E!=null&&typeof E!="function")throw new Jo(c);var ne=function(){var Te=arguments,it=E?E.apply(this,Te):Te[0],Pt=ne.cache;if(Pt.has(it))return Pt.get(it);var Yt=g.apply(this,Te);return ne.cache=Pt.set(it,Yt)||Pt,Yt};return ne.cache=new(qn.Cache||Yn),ne}qn.Cache=Yn;function Ca(g){if(typeof g!="function")throw new Jo(c);return function(){var E=arguments;switch(E.length){case 0:return!g.call(this);case 1:return!g.call(this,E[0]);case 2:return!g.call(this,E[0],E[1]);case 3:return!g.call(this,E[0],E[1],E[2])}return!g.apply(this,E)}}function Mo(g){return na(2,g)}var _o=kl(function(g,E){E=E.length==1&&hi(E[0])?dr(E[0],vo(va())):dr(Ha(E,1),vo(va()));var ne=E.length;return Fa(function(Te){for(var it=-1,Pt=ji(Te.length,ne);++it=E}),Fc=vi(function(){return arguments}())?vi:function(g){return Fs(g)&&ri.call(g,"callee")&&!Ds.call(g,"callee")},hi=nr.isArray,nv=ot?vo(ot):qo;function uu(g){return g!=null&&Gd(g.length)&&!gc(g)}function Ks(g){return Fs(g)&&uu(g)}function rv(g){return g===!0||g===!1||Fs(g)&&ui(g)==Ve}var wc=ul||Cf,av=yt?vo(yt):Vi;function ov(g){return Fs(g)&&g.nodeType===1&&!wd(g)}function iv(g){if(g==null)return!0;if(uu(g)&&(hi(g)||typeof g=="string"||typeof g.splice=="function"||wc(g)||ud(g)||Fc(g)))return!g.length;var E=Ai(g);if(E==ke||E==N)return!g.size;if(ic(g))return!ht(g).length;for(var ne in g)if(ri.call(g,ne))return!1;return!0}function sv(g,E){return as(g,E)}function lv(g,E,ne){ne=typeof ne=="function"?ne:t;var Te=ne?ne(g,E):t;return Te===t?as(g,E,t,ne):!!Te}function vf(g){if(!Fs(g))return!1;var E=ui(g);return E==wt||E==Mt||typeof g.message=="string"&&typeof g.name=="string"&&!wd(g)}function uv(g){return typeof g=="number"&&ws(g)}function gc(g){if(!Ls(g))return!1;var E=ui(g);return E==gt||E==Lt||E==Qe||E==V}function Af(g){return typeof g=="number"&&g==Si(g)}function Gd(g){return typeof g=="number"&&g>-1&&g%1==0&&g<=k}function Ls(g){var E=typeof g;return g!=null&&(E=="object"||E=="function")}function Fs(g){return g!=null&&typeof g=="object"}var Of=be?vo(be):Qi;function cv(g,E){return g===E||_i(g,E,Al(E))}function dv(g,E,ne){return ne=typeof ne=="function"?ne:t,_i(g,E,Al(E),ne)}function fv(g){return Df(g)&&g!=+g}function vv(g){if(Uc(g))throw new Cr(n);return Go(g)}function gv(g){return g===null}function mv(g){return g==null}function Df(g){return typeof g=="number"||Fs(g)&&ui(g)==He}function wd(g){if(!Fs(g)||ui(g)!=Fe)return!1;var E=vs(g);if(E===null)return!0;var ne=ri.call(E,"constructor")&&E.constructor;return typeof ne=="function"&&ne instanceof ne&&us.call(ne)==Fl}var gf=Bt?vo(Bt):j;function pv(g){return Af(g)&&g>=-k&&g<=k}var wf=Jt?vo(Jt):ae;function Kd(g){return typeof g=="string"||!hi(g)&&Fs(g)&&ui(g)==D}function Mu(g){return typeof g=="symbol"||Fs(g)&&ui(g)==ee}var ud=Jn?vo(Jn):je;function hv(g){return g===t}function yv(g){return Fs(g)&&Ai(g)==X}function Mv(g){return Fs(g)&&ui(g)==re}var bv=wa(er),Sv=wa(function(g,E){return g<=E});function Tf(g){if(!g)return[];if(uu(g))return Kd(g)?Ko(g):Ts(g);if(Js&&g[Js])return wi(g[Js]());var E=Ai(g),ne=E==ke?Ti:E==N?ao:cd;return ne(g)}function mc(g){if(!g)return g===0?g:0;if(g=ju(g),g===O||g===-O){var E=g<0?-1:1;return E*Y}return g===g?g:0}function Si(g){var E=mc(g),ne=E%1;return E===E?ne?E-ne:E:0}function jf(g){return g?Sr(Si(g),0,Q):0}function ju(g){if(typeof g=="number")return g;if(Mu(g))return P;if(Ls(g)){var E=typeof g.valueOf=="function"?g.valueOf():g;g=Ls(E)?E+"":E}if(typeof g!="string")return g===0?g:+g;g=To(g);var ne=an.test(g);return ne||ut.test(g)?co(g.slice(2),ne?2:8):Vt.test(g)?P:+g}function Pf(g){return xl(g,cu(g))}function Ev(g){return g?Sr(Si(g),-k,k):g===0?g:0}function is(g){return g==null?"":Hs(g)}var Cv=Il(function(g,E){if(ic(E)||uu(E)){xl(E,Ol(E),g);return}for(var ne in E)ri.call(E,ne)&&Aa(g,ne,E[ne])}),Lf=Il(function(g,E){xl(E,cu(E),g)}),Vd=Il(function(g,E,ne,Te){xl(E,cu(E),g,Te)}),xv=Il(function(g,E,ne,Te){xl(E,Ol(E),g,Te)}),Iv=Bi(oo);function Av(g,E){var ne=Pi(g);return E==null?ne:Sa(ne,E)}var Ov=Fa(function(g,E){g=fa(g);var ne=-1,Te=E.length,it=Te>2?E[2]:t;for(it&&ps(E[0],E[1],it)&&(Te=1);++ne1),Pt}),xl(g,ts(g),ne),Te&&(ne=Nr(ne,C|p|S,Yi));for(var it=E.length;it--;)Uu(ne,E[it]);return ne});function Hv(g,E){return Rf(g,Ca(va(E)))}var Yv=Bi(function(g,E){return g==null?{}:zi(g,E)});function Rf(g,E){if(g==null)return{};var ne=dr(ts(g),function(Te){return[Te]});return E=va(E),Pl(g,ne,function(Te,it){return E(Te,it[0])})}function Gv(g,E,ne){E=Ll(E,g);var Te=-1,it=E.length;for(it||(it=1,g=t);++TeE){var Te=g;g=E,E=Te}if(ne||g%1||E%1){var it=po();return ji(g+it*(E-g+Ma("1e-"+((it+"").length-1))),E)}return Iu(g,E)}var a0=me(function(g,E,ne){return E=E.toLowerCase(),g+(ne?$f(E):E)});function $f(g){return hf(is(g).toLowerCase())}function Ff(g){return g=is(g),g&&g.replace(nt,go).replace($r,"")}function o0(g,E,ne){g=is(g),E=Hs(E);var Te=g.length;ne=ne===t?Te:Sr(Si(ne),0,Te);var it=ne;return ne-=E.length,ne>=0&&g.slice(ne,it)==E}function i0(g){return g=is(g),g&&we.test(g)?g.replace(De,Oi):g}function s0(g){return g=is(g),g&&Ot.test(g)?g.replace(At,"\\$&"):g}var l0=me(function(g,E,ne){return g+(ne?"-":"")+E.toLowerCase()}),u0=me(function(g,E,ne){return g+(ne?" ":"")+E.toLowerCase()}),c0=_("toLowerCase");function d0(g,E,ne){g=is(g),E=Si(E);var Te=E?Zo(g):0;if(!E||Te>=E)return g;var it=(E-Te)/2;return Hr(xr(it),ne)+g+Hr(ll(it),ne)}function f0(g,E,ne){g=is(g),E=Si(E);var Te=E?Zo(g):0;return E&&Te>>0,ne?(g=is(g),g&&(typeof E=="string"||E!=null&&!gf(E))&&(E=Hs(E),!E&&Di(g))?Nl(Ko(g),0,ne):g.split(E,ne)):[]}var M0=me(function(g,E,ne){return g+(ne?" ":"")+hf(E)});function b0(g,E,ne){return g=is(g),ne=ne==null?0:Sr(Si(ne),0,g.length),E=Hs(E),g.slice(ne,ne+E.length)==E}function S0(g,E,ne){var Te=It.templateSettings;ne&&ps(g,E,ne)&&(E=t),g=is(g),E=Vd({},E,Te,Mi);var it=Vd({},E.imports,Te.imports,Mi),Pt=Ol(it),Yt=Jr(it,Pt),mn,Ln,Yr=0,Vr=E.interpolate||mt,sa="__p += '",no=Ho((E.escape||mt).source+"|"+Vr.source+"|"+(Vr===Ue?_e:mt).source+"|"+(E.evaluate||mt).source+"|$","g"),wo="//# sourceURL="+(ri.call(E,"sourceURL")?(E.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++la+"]")+` +`;g.replace(no,function(ni,$i,ki,bu,Xl,Su){return ki||(ki=bu),sa+=g.slice(Yr,Su).replace(Dt,Li),$i&&(mn=!0,sa+=`' + +__e(`+$i+`) + +'`),Xl&&(Ln=!0,sa+=`'; `+Xl+`; -__p += '`),Wi&&(sa+=`' + -((__t = (`+Wi+`)) == null ? '' : __t) + +__p += '`),ki&&(sa+=`' + +((__t = (`+ki+`)) == null ? '' : __t) + '`),Yr=Su+ni.length,ni}),sa+=`'; `;var ti=ri.call(E,"variable")&&E.variable;if(!ti)sa=`with (obj) { `+sa+` } -`;else if(On.test(ti))throw new Cr(l);sa=(Pn?sa.replace(Ae,""):sa).replace(oe,"$1").replace(ye,"$1;"),sa="function("+(ti||"obj")+`) { +`;else if(On.test(ti))throw new Cr(l);sa=(Ln?sa.replace(Ae,""):sa).replace(oe,"$1").replace(ye,"$1;"),sa="function("+(ti||"obj")+`) { `+(ti?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(gn?", __e = _.escape":"")+(Pn?`, __j = Array.prototype.join; +`)+"var __t, __p = ''"+(mn?", __e = _.escape":"")+(Ln?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+sa+`return __p -}`;var xi=Uf(function(){return ca(Pt,wo+"return "+sa).apply(t,Yt)});if(xi.source=sa,vf(xi))throw xi;return xi}function E0(g){return is(g).toLowerCase()}function C0(g){return is(g).toUpperCase()}function x0(g,E,ne){if(g=is(g),g&&(ne||E===t))return To(g);if(!g||!(E=Hs(E)))return g;var Te=Yo(g),it=Yo(E),Pt=Oo(Te,it),Yt=oi(Te,it)+1;return Nl(Te,Pt,Yt).join("")}function I0(g,E,ne){if(g=is(g),g&&(ne||E===t))return g.slice(0,Ni(g)+1);if(!g||!(E=Hs(E)))return g;var Te=Yo(g),it=oi(Te,Yo(E))+1;return Nl(Te,0,it).join("")}function A0(g,E,ne){if(g=is(g),g&&(ne||E===t))return g.replace(jt,"");if(!g||!(E=Hs(E)))return g;var Te=Yo(g),it=Oo(Te,Yo(E));return Nl(Te,it).join("")}function O0(g,E){var ne=K,Te=H;if(Ls(E)){var it="separator"in E?E.separator:it;ne="length"in E?bi(E.length):ne,Te="omission"in E?Hs(E.omission):Te}g=is(g);var Pt=g.length;if(Di(g)){var Yt=Yo(g);Pt=Yt.length}if(ne>=Pt)return g;var gn=ne-Zo(Te);if(gn<1)return Te;var Pn=Yt?Nl(Yt,0,gn).join(""):g.slice(0,gn);if(it===t)return Pn+Te;if(Yt&&(gn+=Pn.length-gn),gf(it)){if(g.slice(gn).search(it)){var Yr,Vr=Pn;for(it.global||(it=_o(it.source,is(at.exec(it))+"g")),it.lastIndex=0;Yr=it.exec(Vr);)var sa=Yr.index;Pn=Pn.slice(0,sa===t?gn:sa)}}else if(g.indexOf(Hs(it),gn)!=gn){var eo=Pn.lastIndexOf(it);eo>-1&&(Pn=Pn.slice(0,eo))}return Pn+Te}function D0(g){return g=is(g),g&&Pe.test(g)?g.replace(Be,Xi):g}var w0=me(function(g,E,ne){return g+(ne?" ":"")+E.toUpperCase()}),hf=_("toUpperCase");function Zf(g,E,ne){return g=is(g),E=ne?t:E,E===t?$i(g)?hs(g):sn(g):g.match(E)||[]}var Uf=Fa(function(g,E){try{return Gn(g,t,E)}catch(ne){return vf(ne)?ne:new Cr(ne)}}),T0=zi(function(g,E){return ta(E,function(ne){ne=hu(ne),oa(g,ne,Ga(g[ne],g))}),g});function j0(g){var E=g==null?0:g.length,ne=fa();return g=E?dr(g,function(Te){if(typeof Te[1]!="function")throw new Xo(c);return[ne(Te[0]),Te[1]]}):[],Fa(function(Te){for(var it=-1;++itk)return[];var ne=Q,Te=ji(g,Q);E=fa(E),g-=Q;for(var it=Ro(Te,E);++ne0||E<0)?new Go(ne):(g<0?ne=ne.takeRight(-g):g&&(ne=ne.drop(g)),E!==t&&(E=bi(E),ne=E<0?ne.dropRight(-E):ne.take(E-g)),ne)},Go.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Go.prototype.toArray=function(){return this.take(Q)},Oa(Go.prototype,function(g,E){var ne=/^(?:filter|find|map|reject)|While$/.test(E),Te=/^(?:head|last)$/.test(E),it=It[Te?"take"+(E=="last"?"Right":""):E],Pt=Te||/^find/.test(E);it&&(It.prototype[E]=function(){var Yt=this.__wrapped__,gn=Te?[1]:arguments,Pn=Yt instanceof Go,Yr=gn[0],Vr=Pn||pi(Yt),sa=function(Bi){var Wi=it.apply(It,jr([Bi],gn));return Te&&eo?Wi[0]:Wi};Vr&&ne&&typeof Yr=="function"&&Yr.length!=1&&(Pn=Vr=!1);var eo=this.__chain__,wo=!!this.__actions__.length,ti=Pt&&!eo,xi=Pn&&!wo;if(!Pt&&Vr){Yt=xi?Yt:new Go(this);var ni=g.apply(Yt,gn);return ni.__actions__.push({func:yu,args:[sa],thisArg:t}),new Ji(ni,eo)}return ti&&xi?g.apply(this,gn):(ni=this.thru(sa),ti?Te?ni.value()[0]:ni.value():ni)})}),ta(["pop","push","shift","sort","splice","unshift"],function(g){var E=_i[g],ne=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",Te=/^(?:pop|shift)$/.test(g);It.prototype[g]=function(){var it=arguments;if(Te&&!this.__chain__){var Pt=this.value();return E.apply(pi(Pt)?Pt:[],it)}return this[ne](function(Yt){return E.apply(pi(Yt)?Yt:[],it)})}}),Oa(Go.prototype,function(g,E){var ne=It[E];if(ne){var Te=ne.name+"";ri.call(Sl,Te)||(Sl[Te]=[]),Sl[Te].push({name:E,func:ne})}}),Sl[an(t,F).name]=[{name:"wrapper",func:t}],Go.prototype.clone=bo,Go.prototype.reverse=eu,Go.prototype.value=tu,It.prototype.at=nd,It.prototype.chain=fc,It.prototype.commit=rd,It.prototype.next=xd,It.prototype.plant=of,It.prototype.reverse=Ad,It.prototype.toJSON=It.prototype.valueOf=It.prototype.value=sf,It.prototype.first=It.prototype.head,Js&&(It.prototype[Js]=Id),It},bl=Ns();ja._=bl,i=function(){return bl}.call(b,e,b,M),i!==t&&(M.exports=i)}).call(this)},80231:function(M,b,e){var i=e(83250),t=function(){return i.Date.now()};M.exports=t},84506:function(M){function b(){return[]}M.exports=b},37999:function(M){function b(){return!1}M.exports=b},14633:function(M,b,e){var i=e(77837),t=e(93702),o="Expected a function";function s(n,c,l){var v=!0,h=!0;if(typeof n!="function")throw new TypeError(o);return t(l)&&(v="leading"in l?!!l.leading:v,h="trailing"in l?!!l.trailing:h),i(n,c,{leading:v,maxWait:c,trailing:h})}M.exports=s},29153:function(M,b,e){var i=e(21656),t=e(93702),o=e(52624),s=0/0,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt;function h(m){if(typeof m=="number")return m;if(o(m))return s;if(t(m)){var C=typeof m.valueOf=="function"?m.valueOf():m;m=t(C)?C+"":C}if(typeof m!="string")return m===0?m:+m;m=i(m);var p=c.test(m);return p||l.test(m)?v(m.slice(2),p?2:8):n.test(m)?s:+m}M.exports=h},85417:function(M,b,e){(function(i,t){t(e(6901))})(this,function(i){"use strict";var t=i.defineLocale("zh-cn",{months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(o,s){return o===12&&(o=0),s==="\u51CC\u6668"||s==="\u65E9\u4E0A"||s==="\u4E0A\u5348"?o:s==="\u4E0B\u5348"||s==="\u665A\u4E0A"?o+12:o>=11?o:o+12},meridiem:function(o,s,n){var c=o*100+s;return c<600?"\u51CC\u6668":c<900?"\u65E9\u4E0A":c<1130?"\u4E0A\u5348":c<1230?"\u4E2D\u5348":c<1800?"\u4E0B\u5348":"\u665A\u4E0A"},calendar:{sameDay:"[\u4ECA\u5929]LT",nextDay:"[\u660E\u5929]LT",nextWeek:function(o){return o.week()!==this.week()?"[\u4E0B]dddLT":"[\u672C]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(o){return this.week()!==o.week()?"[\u4E0A]dddLT":"[\u672C]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(o,s){switch(s){case"d":case"D":case"DDD":return o+"\u65E5";case"M":return o+"\u6708";case"w":case"W":return o+"\u5468";default:return o}},relativeTime:{future:"%s\u540E",past:"%s\u524D",s:"\u51E0\u79D2",ss:"%d \u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},week:{dow:1,doy:4}});return t})},6901:function(M,b,e){M=e.nmd(M);(function(i,t){M.exports=t()})(this,function(){"use strict";var i;function t(){return i.apply(null,arguments)}function o(j){i=j}function s(j){return j instanceof Array||Object.prototype.toString.call(j)==="[object Array]"}function n(j){return j!=null&&Object.prototype.toString.call(j)==="[object Object]"}function c(j,ae){return Object.prototype.hasOwnProperty.call(j,ae)}function l(j){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(j).length===0;var ae;for(ae in j)if(c(j,ae))return!1;return!0}function v(j){return j===void 0}function h(j){return typeof j=="number"||Object.prototype.toString.call(j)==="[object Number]"}function m(j){return j instanceof Date||Object.prototype.toString.call(j)==="[object Date]"}function C(j,ae){var je=[],Ke,ht=j.length;for(Ke=0;Ke>>0,Ke;for(Ke=0;Ke0)for(je=0;je=0;return(en?je?"+":"":"-")+Math.pow(10,Math.max(0,ht)).toString().substr(1)+Ke}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fe={},Ce={};function ge(j,ae,je,Ke){var ht=Ke;typeof Ke=="string"&&(ht=function(){return this[Ke]()}),j&&(Ce[j]=ht),ae&&(Ce[ae[0]]=function(){return Y(ht.apply(this,arguments),ae[1],ae[2])}),je&&(Ce[je]=function(){return this.localeData().ordinal(ht.apply(this,arguments),j)})}function Me(j){return j.match(/\[[\s\S]/)?j.replace(/^\[|\]$/g,""):j.replace(/\\/g,"")}function Re(j){var ae=j.match(P),je,Ke;for(je=0,Ke=ae.length;je=0&&Q.test(j);)j=j.replace(Q,Ke),Q.lastIndex=0,je-=1;return j}var qe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mt(j){var ae=this._longDateFormat[j],je=this._longDateFormat[j.toUpperCase()];return ae||!je?ae:(this._longDateFormat[j]=je.match(P).map(function(Ke){return Ke==="MMMM"||Ke==="MM"||Ke==="DD"||Ke==="dddd"?Ke.slice(1):Ke}).join(""),this._longDateFormat[j])}var wt="Invalid date";function mt(){return this._invalidDate}var Nt="%d",ke=/\d{1,2}/;function He(j){return this._ordinal.replace("%d",j)}var et={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Fe(j,ae,je,Ke){var ht=this._relativeTime[je];return ie(ht)?ht(j,ae,je,Ke):ht.replace(/%d/i,j)}function ue(j,ae){var je=this._relativeTime[j>0?"future":"past"];return ie(je)?je(ae):je.replace(/%s/i,ae)}var V={};function U(j,ae){var je=j.toLowerCase();V[je]=V[je+"s"]=V[ae]=j}function N(j){return typeof j=="string"?V[j]||V[j.toLowerCase()]:void 0}function D(j){var ae={},je,Ke;for(Ke in j)c(j,Ke)&&(je=N(Ke),je&&(ae[je]=j[Ke]));return ae}var ee={};function se(j,ae){ee[j]=ae}function X(j){var ae=[],je;for(je in j)c(j,je)&&ae.push({unit:je,priority:ee[je]});return ae.sort(function(Ke,ht){return Ke.priority-ht.priority}),ae}function re(j){return j%4===0&&j%100!==0||j%400===0}function Ie(j){return j<0?Math.ceil(j)||0:Math.floor(j)}function Se(j){var ae=+j,je=0;return ae!==0&&isFinite(ae)&&(je=Ie(ae)),je}function he(j,ae){return function(je){return je!=null?(de(this,j,je),t.updateOffset(this,ae),this):We(this,j)}}function We(j,ae){return j.isValid()?j._d["get"+(j._isUTC?"UTC":"")+ae]():NaN}function de(j,ae,je){j.isValid()&&!isNaN(je)&&(ae==="FullYear"&&re(j.year())&&j.month()===1&&j.date()===29?(je=Se(je),j._d["set"+(j._isUTC?"UTC":"")+ae](je,j.month(),xn(je,j.month()))):j._d["set"+(j._isUTC?"UTC":"")+ae](je))}function le(j){return j=N(j),ie(this[j])?this[j]():this}function ve(j,ae){if(typeof j=="object"){j=D(j);var je=X(j),Ke,ht=je.length;for(Ke=0;Ke68?1900:2e3)};var hn=he("FullYear",!0);function dn(){return re(this.year())}function $n(j,ae,je,Ke,ht,en,ir){var ao;return j<100&&j>=0?(ao=new Date(j+400,ae,je,Ke,ht,en,ir),isFinite(ao.getFullYear())&&ao.setFullYear(j)):ao=new Date(j,ae,je,Ke,ht,en,ir),ao}function qn(j){var ae,je;return j<100&&j>=0?(je=Array.prototype.slice.call(arguments),je[0]=j+400,ae=new Date(Date.UTC.apply(null,je)),isFinite(ae.getUTCFullYear())&&ae.setUTCFullYear(j)):ae=new Date(Date.UTC.apply(null,arguments)),ae}function ct(j,ae,je){var Ke=7+ae-je,ht=(7+qn(j,0,Ke).getUTCDay()-ae)%7;return-ht+Ke-1}function lt(j,ae,je,Ke,ht){var en=(7+je-Ke)%7,ir=ct(j,Ke,ht),ao=1+7*(ae-1)+en+ir,po,fi;return ao<=0?(po=j-1,fi=kt(po)+ao):ao>kt(j)?(po=j+1,fi=ao-kt(j)):(po=j,fi=ao),{year:po,dayOfYear:fi}}function xt(j,ae,je){var Ke=ct(j.year(),ae,je),ht=Math.floor((j.dayOfYear()-Ke-1)/7)+1,en,ir;return ht<1?(ir=j.year()-1,en=ht+St(ir,ae,je)):ht>St(j.year(),ae,je)?(en=ht-St(j.year(),ae,je),ir=j.year()+1):(ir=j.year(),en=ht),{week:en,year:ir}}function St(j,ae,je){var Ke=ct(j,ae,je),ht=ct(j+1,ae,je);return(kt(j)-Ke+ht)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),U("week","w"),U("isoWeek","W"),se("week",5),se("isoWeek",5),Ot("w",oe),Ot("ww",oe,Ze),Ot("W",oe),Ot("WW",oe,Ze),Bn(["w","ww","W","WW"],function(j,ae,je,Ke){ae[Ke.substr(0,1)]=Se(j)});function Lt(j){return xt(j,this._week.dow,this._week.doy).week}var _t={dow:0,doy:6};function Wt(){return this._week.dow}function yn(){return this._week.doy}function kn(j){var ae=this.localeData().week(this);return j==null?ae:this.add((j-ae)*7,"d")}function hr(j){var ae=xt(this,1,4).week;return j==null?ae:this.add((j-ae)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(j){return this.localeData().weekdaysMin(this,j)}),ge("ddd",0,0,function(j){return this.localeData().weekdaysShort(this,j)}),ge("dddd",0,0,function(j){return this.localeData().weekdays(this,j)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),U("day","d"),U("weekday","e"),U("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ot("d",oe),Ot("e",oe),Ot("E",oe),Ot("dd",function(j,ae){return ae.weekdaysMinRegex(j)}),Ot("ddd",function(j,ae){return ae.weekdaysShortRegex(j)}),Ot("dddd",function(j,ae){return ae.weekdaysRegex(j)}),Bn(["dd","ddd","dddd"],function(j,ae,je,Ke){var ht=je._locale.weekdaysParse(j,Ke,je._strict);ht!=null?ae.d=ht:y(je).invalidWeekday=j}),Bn(["d","e","E"],function(j,ae,je,Ke){ae[Ke]=Se(j)});function cr(j,ae){return typeof j!="string"?j:isNaN(j)?(j=ae.weekdaysParse(j),typeof j=="number"?j:null):parseInt(j,10)}function Dn(j,ae){return typeof j=="string"?ae.weekdaysParse(j)%7||7:isNaN(j)?null:j}function Rr(j,ae){return j.slice(ae,7).concat(j.slice(0,ae))}var or="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ir="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jn=ft,vn=ft,Ln=ft;function Zn(j,ae){var je=s(this._weekdays)?this._weekdays:this._weekdays[j&&j!==!0&&this._weekdays.isFormat.test(ae)?"format":"standalone"];return j===!0?Rr(je,this._week.dow):j?je[j.day()]:je}function yr(j){return j===!0?Rr(this._weekdaysShort,this._week.dow):j?this._weekdaysShort[j.day()]:this._weekdaysShort}function Fr(j){return j===!0?Rr(this._weekdaysMin,this._week.dow):j?this._weekdaysMin[j.day()]:this._weekdaysMin}function Kr(j,ae,je){var Ke,ht,en,ir=j.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ke=0;Ke<7;++Ke)en=S([2e3,1]).day(Ke),this._minWeekdaysParse[Ke]=this.weekdaysMin(en,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ke]=this.weekdaysShort(en,"").toLocaleLowerCase(),this._weekdaysParse[Ke]=this.weekdays(en,"").toLocaleLowerCase();return je?ae==="dddd"?(ht=Dt.call(this._weekdaysParse,ir),ht!==-1?ht:null):ae==="ddd"?(ht=Dt.call(this._shortWeekdaysParse,ir),ht!==-1?ht:null):(ht=Dt.call(this._minWeekdaysParse,ir),ht!==-1?ht:null):ae==="dddd"?(ht=Dt.call(this._weekdaysParse,ir),ht!==-1||(ht=Dt.call(this._shortWeekdaysParse,ir),ht!==-1)?ht:(ht=Dt.call(this._minWeekdaysParse,ir),ht!==-1?ht:null)):ae==="ddd"?(ht=Dt.call(this._shortWeekdaysParse,ir),ht!==-1||(ht=Dt.call(this._weekdaysParse,ir),ht!==-1)?ht:(ht=Dt.call(this._minWeekdaysParse,ir),ht!==-1?ht:null)):(ht=Dt.call(this._minWeekdaysParse,ir),ht!==-1||(ht=Dt.call(this._weekdaysParse,ir),ht!==-1)?ht:(ht=Dt.call(this._shortWeekdaysParse,ir),ht!==-1?ht:null))}function aa(j,ae,je){var Ke,ht,en;if(this._weekdaysParseExact)return Kr.call(this,j,ae,je);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Ke=0;Ke<7;Ke++){if(ht=S([2e3,1]).day(Ke),je&&!this._fullWeekdaysParse[Ke]&&(this._fullWeekdaysParse[Ke]=new RegExp("^"+this.weekdays(ht,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Ke]=new RegExp("^"+this.weekdaysShort(ht,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Ke]=new RegExp("^"+this.weekdaysMin(ht,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Ke]||(en="^"+this.weekdays(ht,"")+"|^"+this.weekdaysShort(ht,"")+"|^"+this.weekdaysMin(ht,""),this._weekdaysParse[Ke]=new RegExp(en.replace(".",""),"i")),je&&ae==="dddd"&&this._fullWeekdaysParse[Ke].test(j))return Ke;if(je&&ae==="ddd"&&this._shortWeekdaysParse[Ke].test(j))return Ke;if(je&&ae==="dd"&&this._minWeekdaysParse[Ke].test(j))return Ke;if(!je&&this._weekdaysParse[Ke].test(j))return Ke}}function Jr(j){if(!this.isValid())return j!=null?this:NaN;var ae=this._isUTC?this._d.getUTCDay():this._d.getDay();return j!=null?(j=cr(j,this.localeData()),this.add(j-ae,"d")):ae}function Zr(j){if(!this.isValid())return j!=null?this:NaN;var ae=(this.day()+7-this.localeData()._week.dow)%7;return j==null?ae:this.add(j-ae,"d")}function Ca(j){if(!this.isValid())return j!=null?this:NaN;if(j!=null){var ae=Dn(j,this.localeData());return this.day(this.day()%7?ae:ae-7)}else return this.day()||7}function la(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yn.call(this),j?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=jn),this._weekdaysStrictRegex&&j?this._weekdaysStrictRegex:this._weekdaysRegex)}function Tn(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yn.call(this),j?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vn),this._weekdaysShortStrictRegex&&j?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function In(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Yn.call(this),j?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ln),this._weekdaysMinStrictRegex&&j?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Yn(){function j(Vi,Cs){return Cs.length-Vi.length}var ae=[],je=[],Ke=[],ht=[],en,ir,ao,po,fi;for(en=0;en<7;en++)ir=S([2e3,1]).day(en),ao=Xt(this.weekdaysMin(ir,"")),po=Xt(this.weekdaysShort(ir,"")),fi=Xt(this.weekdays(ir,"")),ae.push(ao),je.push(po),Ke.push(fi),ht.push(ao),ht.push(po),ht.push(fi);ae.sort(j),je.sort(j),Ke.sort(j),ht.sort(j),this._weekdaysRegex=new RegExp("^("+ht.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ke.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+je.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ae.join("|")+")","i")}function Nr(){return this.hours()%12||12}function zr(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Nr),ge("k",["kk",2],0,zr),ge("hmm",0,0,function(){return""+Nr.apply(this)+Y(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Nr.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)});function Br(j,ae){ge(j,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),ae)})}Br("a",!0),Br("A",!1),U("hour","h"),se("hour",13);function Ma(j,ae){return ae._meridiemParse}Ot("a",Ma),Ot("A",Ma),Ot("H",oe),Ot("h",oe),Ot("k",oe),Ot("HH",oe,Ze),Ot("hh",oe,Ze),Ot("kk",oe,Ze),Ot("hmm",ye),Ot("hmmss",Be),Ot("Hmm",ye),Ot("Hmmss",Be),fn(["H","HH"],Vt),fn(["k","kk"],function(j,ae,je){var Ke=Se(j);ae[Vt]=Ke===24?0:Ke}),fn(["a","A"],function(j,ae,je){je._isPm=je._locale.isPM(j),je._meridiem=j}),fn(["h","hh"],function(j,ae,je){ae[Vt]=Se(j),y(je).bigHour=!0}),fn("hmm",function(j,ae,je){var Ke=j.length-2;ae[Vt]=Se(j.substr(0,Ke)),ae[rn]=Se(j.substr(Ke)),y(je).bigHour=!0}),fn("hmmss",function(j,ae,je){var Ke=j.length-4,ht=j.length-2;ae[Vt]=Se(j.substr(0,Ke)),ae[rn]=Se(j.substr(Ke,2)),ae[st]=Se(j.substr(ht)),y(je).bigHour=!0}),fn("Hmm",function(j,ae,je){var Ke=j.length-2;ae[Vt]=Se(j.substr(0,Ke)),ae[rn]=Se(j.substr(Ke))}),fn("Hmmss",function(j,ae,je){var Ke=j.length-4,ht=j.length-2;ae[Vt]=Se(j.substr(0,Ke)),ae[rn]=Se(j.substr(Ke,2)),ae[st]=Se(j.substr(ht))});function uo(j){return(j+"").toLowerCase().charAt(0)==="p"}var to=/[ap]\.?m?\.?/i,Io=he("Hours",!0);function ja(j,ae,je){return j>11?je?"pm":"PM":je?"am":"AM"}var Ua={calendar:O,longDateFormat:qe,invalidDate:wt,ordinal:Nt,dayOfMonthOrdinalParse:ke,relativeTime:et,months:tn,monthsShort:Hn,week:_t,weekdays:or,weekdaysMin:Ir,weekdaysShort:Gr,meridiemParse:to},qa={},Fo={},Lo;function Bo(j,ae){var je,Ke=Math.min(j.length,ae.length);for(je=0;je0;){if(ht=Bt(en.slice(0,je).join("-")),ht)return ht;if(Ke&&Ke.length>=je&&Bo(en,Ke)>=je-1)break;je--}ae++}return Lo}function be(j){return j.match("^[^/\\\\]*$")!=null}function Bt(j){var ae=null,je;if(qa[j]===void 0&&M&&M.exports&&be(j))try{ae=Lo._abbr,je=void 0,Object(function(){var ht=new Error("Cannot find module 'undefined'");throw ht.code="MODULE_NOT_FOUND",ht}()),Jt(ae)}catch(Ke){qa[j]=null}return qa[j]}function Jt(j,ae){var je;return j&&(v(ae)?je=br(j):je=Xn(j,ae),je?Lo=je:typeof console!="undefined"&&console.warn&&console.warn("Locale "+j+" not found. Did you forget to load it?")),Lo._abbr}function Xn(j,ae){if(ae!==null){var je,Ke=Ua;if(ae.abbr=j,qa[j]!=null)H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Ke=qa[j]._config;else if(ae.parentLocale!=null)if(qa[ae.parentLocale]!=null)Ke=qa[ae.parentLocale]._config;else if(je=Bt(ae.parentLocale),je!=null)Ke=je._config;else return Fo[ae.parentLocale]||(Fo[ae.parentLocale]=[]),Fo[ae.parentLocale].push({name:j,config:ae}),null;return qa[j]=new W(te(Ke,ae)),Fo[j]&&Fo[j].forEach(function(ht){Xn(ht.name,ht.config)}),Jt(j),qa[j]}else return delete qa[j],null}function Gn(j,ae){if(ae!=null){var je,Ke,ht=Ua;qa[j]!=null&&qa[j].parentLocale!=null?qa[j].set(te(qa[j]._config,ae)):(Ke=Bt(j),Ke!=null&&(ht=Ke._config),ae=te(ht,ae),Ke==null&&(ae.abbr=j),je=new W(ae),je.parentLocale=qa[j],qa[j]=je),Jt(j)}else qa[j]!=null&&(qa[j].parentLocale!=null?(qa[j]=qa[j].parentLocale,j===Jt()&&Jt(j)):qa[j]!=null&&delete qa[j]);return qa[j]}function br(j){var ae;if(j&&j._locale&&j._locale._abbr&&(j=j._locale._abbr),!j)return Lo;if(!s(j)){if(ae=Bt(j),ae)return ae;j=[j]}return yt(j)}function ta(){return G(qa)}function ka(j){var ae,je=j._a;return je&&y(j).overflow===-2&&(ae=je[_e]<0||je[_e]>11?_e:je[at]<1||je[at]>xn(je[Mn],je[_e])?at:je[Vt]<0||je[Vt]>24||je[Vt]===24&&(je[rn]!==0||je[st]!==0||je[ut]!==0)?Vt:je[rn]<0||je[rn]>59?rn:je[st]<0||je[st]>59?st:je[ut]<0||je[ut]>999?ut:-1,y(j)._overflowDayOfYear&&(aeat)&&(ae=at),y(j)._overflowWeeks&&ae===-1&&(ae=$t),y(j)._overflowWeekday&&ae===-1&&(ae=nt),y(j).overflow=ae),j}var kr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wr=/Z|[+-]\d\d(?::?\d\d)?/,sr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jr=/^\/?Date\((-?\d+)/i,va=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,co={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Qa(j){var ae,je,Ke=j._i,ht=kr.exec(Ke)||Dr.exec(Ke),en,ir,ao,po,fi=sr.length,Vi=dr.length;if(ht){for(y(j).iso=!0,ae=0,je=fi;aekt(ir)||j._dayOfYear===0)&&(y(j)._overflowDayOfYear=!0),je=qn(ir,0,j._dayOfYear),j._a[_e]=je.getUTCMonth(),j._a[at]=je.getUTCDate()),ae=0;ae<3&&j._a[ae]==null;++ae)j._a[ae]=Ke[ae]=ht[ae];for(;ae<7;ae++)j._a[ae]=Ke[ae]=j._a[ae]==null?ae===2?1:0:j._a[ae];j._a[Vt]===24&&j._a[rn]===0&&j._a[st]===0&&j._a[ut]===0&&(j._nextDay=!0,j._a[Vt]=0),j._d=(j._useUTC?qn:$n).apply(null,Ke),en=j._useUTC?j._d.getUTCDay():j._d.getDay(),j._tzm!=null&&j._d.setUTCMinutes(j._d.getUTCMinutes()-j._tzm),j._nextDay&&(j._a[Vt]=24),j._w&&typeof j._w.d!="undefined"&&j._w.d!==en&&(y(j).weekdayMismatch=!0)}}function ia(j){var ae,je,Ke,ht,en,ir,ao,po,fi;ae=j._w,ae.GG!=null||ae.W!=null||ae.E!=null?(en=1,ir=4,je=wn(ae.GG,j._a[Mn],xt(Na(),1,4).year),Ke=wn(ae.W,1),ht=wn(ae.E,1),(ht<1||ht>7)&&(po=!0)):(en=j._locale._week.dow,ir=j._locale._week.doy,fi=xt(Na(),en,ir),je=wn(ae.gg,j._a[Mn],fi.year),Ke=wn(ae.w,fi.week),ae.d!=null?(ht=ae.d,(ht<0||ht>6)&&(po=!0)):ae.e!=null?(ht=ae.e+en,(ae.e<0||ae.e>6)&&(po=!0)):ht=en),Ke<1||Ke>St(je,en,ir)?y(j)._overflowWeeks=!0:po!=null?y(j)._overflowWeekday=!0:(ao=lt(je,Ke,ht,en,ir),j._a[Mn]=ao.year,j._dayOfYear=ao.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function na(j){if(j._f===t.ISO_8601){Qa(j);return}if(j._f===t.RFC_2822){fr(j);return}j._a=[],y(j).empty=!0;var ae=""+j._i,je,Ke,ht,en,ir,ao=ae.length,po=0,fi,Vi;for(ht=Ve(j._f,j._locale).match(P)||[],Vi=ht.length,je=0;je0&&y(j).unusedInput.push(ir),ae=ae.slice(ae.indexOf(Ke)+Ke.length),po+=Ke.length),Ce[en]?(Ke?y(j).empty=!1:y(j).unusedTokens.push(en),On(en,Ke,j)):j._strict&&!Ke&&y(j).unusedTokens.push(en);y(j).charsLeftOver=ao-po,ae.length>0&&y(j).unusedInput.push(ae),j._a[Vt]<=12&&y(j).bigHour===!0&&j._a[Vt]>0&&(y(j).bigHour=void 0),y(j).parsedDateParts=j._a.slice(0),y(j).meridiem=j._meridiem,j._a[Vt]=Wa(j._locale,j._a[Vt],j._meridiem),fi=y(j).era,fi!==null&&(j._a[Mn]=j._locale.erasConvertYear(fi,j._a[Mn])),Ar(j),ka(j)}function Wa(j,ae,je){var Ke;return je==null?ae:j.meridiemHour!=null?j.meridiemHour(ae,je):(j.isPM!=null&&(Ke=j.isPM(je),Ke&&ae<12&&(ae+=12),!Ke&&ae===12&&(ae=0)),ae)}function Eo(j){var ae,je,Ke,ht,en,ir,ao=!1,po=j._f.length;if(po===0){y(j).invalidFormat=!0,j._d=new Date(NaN);return}for(ht=0;htthis?this:j:R()});function di(j,ae){var je,Ke;if(ae.length===1&&s(ae[0])&&(ae=ae[0]),!ae.length)return Na();for(je=ae[0],Ke=1;Kethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bn(){if(!v(this._isDSTShifted))return this._isDSTShifted;var j={},ae;return A(j,this),j=To(j),j._a?(ae=j._isUTC?S(j._a):Na(j._a),this._isDSTShifted=this.isValid()&&ro(j._a,ae.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mr(){return this.isValid()?!this._isUTC:!1}function er(){return this.isValid()?this._isUTC:!1}function ur(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ha(j,ae){var je=j,Ke=null,ht,en,ir;return ns(j)?je={ms:j._milliseconds,d:j._days,M:j._months}:h(j)||!isNaN(+j)?(je={},ae?je[ae]=+j:je.milliseconds=+j):(Ke=Cr.exec(j))?(ht=Ke[1]==="-"?-1:1,je={y:0,d:Se(Ke[at])*ht,h:Se(Ke[Vt])*ht,m:Se(Ke[rn])*ht,s:Se(Ke[st])*ht,ms:Se(Fi(Ke[ut]*1e3))*ht}):(Ke=ca.exec(j))?(ht=Ke[1]==="-"?-1:1,je={y:da(Ke[2],ht),M:da(Ke[3],ht),w:da(Ke[4],ht),d:da(Ke[5],ht),h:da(Ke[6],ht),m:da(Ke[7],ht),s:da(Ke[8],ht)}):je==null?je={}:typeof je=="object"&&("from"in je||"to"in je)&&(ir=li(Na(je.from),Na(je.to)),je={},je.ms=ir.milliseconds,je.M=ir.months),en=new Ti(je),ns(j)&&c(j,"_locale")&&(en._locale=j._locale),ns(j)&&c(j,"_isValid")&&(en._isValid=j._isValid),en}ha.fn=Ti.prototype,ha.invalid=wi;function da(j,ae){var je=j&&parseFloat(j.replace(",","."));return(isNaN(je)?0:je)*ae}function _o(j,ae){var je={};return je.months=ae.month()-j.month()+(ae.year()-j.year())*12,j.clone().add(je.months,"M").isAfter(ae)&&--je.months,je.milliseconds=+ae-+j.clone().add(je.months,"M"),je}function li(j,ae){var je;return j.isValid()&&ae.isValid()?(ae=Zo(ae,j),j.isBefore(ae)?je=_o(j,ae):(je=_o(ae,j),je.milliseconds=-je.milliseconds,je.months=-je.months),je):{milliseconds:0,months:0}}function Xo(j,ae){return function(je,Ke){var ht,en;return Ke!==null&&!isNaN(+Ke)&&(H(ae,"moment()."+ae+"(period, number) is deprecated. Please use moment()."+ae+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),en=je,je=Ke,Ke=en),ht=ha(je,Ke),_i(this,ht,j),this}}function _i(j,ae,je,Ke){var ht=ae._milliseconds,en=Fi(ae._days),ir=Fi(ae._months);j.isValid()&&(Ke=Ke==null?!0:Ke,ir&&Lr(j,We(j,"Month")+ir*je),en&&de(j,"Date",We(j,"Date")+en*je),ht&&j._d.setTime(j._d.valueOf()+ht*je),Ke&&t.updateOffset(j,en||ir))}var bs=Xo(1,"add"),ss=Xo(-1,"subtract");function As(j){return typeof j=="string"||j instanceof String}function us(j){return I(j)||m(j)||As(j)||h(j)||$l(j)||ri(j)||j===null||j===void 0}function ri(j){var ae=n(j)&&!l(j),je=!1,Ke=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ht,en,ir=Ke.length;for(ht=0;htje.valueOf():je.valueOf()9999?Qe(je,ae?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ie(Date.prototype.toISOString)?ae?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Qe(je,"Z")):Qe(je,ae?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Js(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var j="moment",ae="",je,Ke,ht,en;return this.isLocal()||(j=this.utcOffset()===0?"moment.utc":"moment.parseZone",ae="Z"),je="["+j+'("]',Ke=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ht="-MM-DD[T]HH:mm:ss.SSS",en=ae+'[")]',this.format(je+Ke+ht+en)}function cs(j){j||(j=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var ae=Qe(this,j);return this.localeData().postformat(ae)}function Et(j,ae){return this.isValid()&&(I(j)&&j.isValid()||Na(j).isValid())?ha({to:this,from:j}).locale(this.locale()).humanize(!ae):this.localeData().invalidDate()}function No(j){return this.from(Na(),j)}function ls(j,ae){return this.isValid()&&(I(j)&&j.isValid()||Na(j).isValid())?ha({from:this,to:j}).locale(this.locale()).humanize(!ae):this.localeData().invalidDate()}function xo(j){return this.to(Na(),j)}function ll(j){var ae;return j===void 0?this._locale._abbr:(ae=br(j),ae!=null&&(this._locale=ae),this)}var xr=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(j){return j===void 0?this.localeData():this.locale(j)});function qs(){return this._locale}var ul=1e3,ws=60*ul,cl=60*ws,wl=(365*400+97)*24*cl;function zo(j,ae){return(j%ae+ae)%ae}function ji(j,ae,je){return j<100&&j>=0?new Date(j+400,ae,je)-wl:new Date(j,ae,je).valueOf()}function Eu(j,ae,je){return j<100&&j>=0?Date.UTC(j+400,ae,je)-wl:Date.UTC(j,ae,je)}function Pu(j){var ae,je;if(j=N(j),j===void 0||j==="millisecond"||!this.isValid())return this;switch(je=this._isUTC?Eu:ji,j){case"year":ae=je(this.year(),0,1);break;case"quarter":ae=je(this.year(),this.month()-this.month()%3,1);break;case"month":ae=je(this.year(),this.month(),1);break;case"week":ae=je(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ae=je(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ae=je(this.year(),this.month(),this.date());break;case"hour":ae=this._d.valueOf(),ae-=zo(ae+(this._isUTC?0:this.utcOffset()*ws),cl);break;case"minute":ae=this._d.valueOf(),ae-=zo(ae,ws);break;case"second":ae=this._d.valueOf(),ae-=zo(ae,ul);break}return this._d.setTime(ae),t.updateOffset(this,!0),this}function yo(j){var ae,je;if(j=N(j),j===void 0||j==="millisecond"||!this.isValid())return this;switch(je=this._isUTC?Eu:ji,j){case"year":ae=je(this.year()+1,0,1)-1;break;case"quarter":ae=je(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ae=je(this.year(),this.month()+1,1)-1;break;case"week":ae=je(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ae=je(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ae=je(this.year(),this.month(),this.date()+1)-1;break;case"hour":ae=this._d.valueOf(),ae+=cl-zo(ae+(this._isUTC?0:this.utcOffset()*ws),cl)-1;break;case"minute":ae=this._d.valueOf(),ae+=ws-zo(ae,ws)-1;break;case"second":ae=this._d.valueOf(),ae+=ul-zo(ae,ul)-1;break}return this._d.setTime(ae),t.updateOffset(this,!0),this}function ds(){return this._d.valueOf()-(this._offset||0)*6e4}function ks(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function Tl(){var j=this;return[j.year(),j.month(),j.date(),j.hour(),j.minute(),j.second(),j.millisecond()]}function rs(){var j=this;return{years:j.year(),months:j.month(),date:j.date(),hours:j.hours(),minutes:j.minutes(),seconds:j.seconds(),milliseconds:j.milliseconds()}}function dl(){return this.isValid()?this.toISOString():null}function fl(){return F(this)}function Ul(){return p({},y(this))}function Sl(){return y(this).overflow}function Lu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),Ot("N",Ji),Ot("NN",Ji),Ot("NNN",Ji),Ot("NNNN",Go),Ot("NNNNN",bo),fn(["N","NN","NNN","NNNN","NNNNN"],function(j,ae,je,Ke){var ht=je._locale.erasParse(j,Ke,je._strict);ht?y(je).era=ht:y(je).invalidEra=j}),Ot("y",Le),Ot("yy",Le),Ot("yyy",Le),Ot("yyyy",Le),Ot("yo",eu),fn(["y","yy","yyy","yyyy"],Mn),fn(["yo"],function(j,ae,je,Ke){var ht;je._locale._eraYearOrdinalRegex&&(ht=j.match(je._locale._eraYearOrdinalRegex)),je._locale.eraYearOrdinalParse?ae[Mn]=je._locale.eraYearOrdinalParse(j,ht):ae[Mn]=parseInt(j,10)});function ql(j,ae){var je,Ke,ht,en=this._eras||br("en")._eras;for(je=0,Ke=en.length;je=0)return en[Ke]}function fu(j,ae){var je=j.since<=j.until?1:-1;return ae===void 0?t(j.since).year():t(j.since).year()+(ae-j.offset)*je}function El(){var j,ae,je,Ke=this.localeData().eras();for(j=0,ae=Ke.length;jen&&(ae=en),qt.call(this,j,ae,je,Ke,ht))}function qt(j,ae,je,Ke,ht){var en=lt(j,ae,je,Ke,ht),ir=qn(en.year,0,en.dayOfYear);return this.year(ir.getUTCFullYear()),this.month(ir.getUTCMonth()),this.date(ir.getUTCDate()),this}ge("Q",0,"Qo","quarter"),U("quarter","Q"),se("quarter",7),Ot("Q",xe),fn("Q",function(j,ae){ae[_e]=(Se(j)-1)*3});function Fn(j){return j==null?Math.ceil((this.month()+1)/3):this.month((j-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),U("date","D"),se("date",9),Ot("D",oe),Ot("DD",oe,Ze),Ot("Do",function(j,ae){return j?ae._dayOfMonthOrdinalParse||ae._ordinalParse:ae._dayOfMonthOrdinalParseLenient}),fn(["D","DD"],at),fn("Do",function(j,ae){ae[at]=Se(j.match(oe)[0])});var tr=he("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),U("dayOfYear","DDD"),se("dayOfYear",4),Ot("DDD",De),Ot("DDDD",pe),fn(["DDD","DDDD"],function(j,ae,je){je._dayOfYear=Se(j)});function Rn(j){var ae=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return j==null?ae:this.add(j-ae,"d")}ge("m",["mm",2],0,"minute"),U("minute","m"),se("minute",14),Ot("m",oe),Ot("mm",oe,Ze),fn(["m","mm"],rn);var nr=he("Minutes",!1);ge("s",["ss",2],0,"second"),U("second","s"),se("second",15),Ot("s",oe),Ot("ss",oe,Ze),fn(["s","ss"],st);var Ur=he("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),U("millisecond","ms"),se("millisecond",16),Ot("S",De,xe),Ot("SS",De,Ze),Ot("SSS",De,pe);var lr,Vn;for(lr="SSSS";lr.length<=9;lr+="S")Ot(lr,Le);function Un(j,ae){ae[ut]=Se(("0."+j)*1e3)}for(lr="S";lr.length<=9;lr+="S")fn(lr,Un);Vn=he("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function wa(){return this._isUTC?"UTC":""}function ya(){return this._isUTC?"Coordinated Universal Time":""}var Qt=L.prototype;Qt.add=bs,Qt.calendar=Fl,Qt.clone=Qs,Qt.diff=Ss,Qt.endOf=yo,Qt.format=cs,Qt.from=Et,Qt.fromNow=No,Qt.to=ls,Qt.toNow=xo,Qt.get=le,Qt.invalidAt=Sl,Qt.isAfter=Xs,Qt.isBefore=Os,Qt.isBetween=Us,Qt.isSame=sl,Qt.isSameOrAfter=Hl,Qt.isSameOrBefore=vs,Qt.isValid=fl,Qt.lang=xr,Qt.locale=ll,Qt.localeData=qs,Qt.max=oi,Qt.min=Oo,Qt.parsingFlags=Ul,Qt.set=ve,Qt.startOf=Pu,Qt.subtract=ss,Qt.toArray=Tl,Qt.toObject=rs,Qt.toDate=ba,Qt.toISOString=Zl,Qt.inspect=Js,typeof Symbol!="undefined"&&Symbol.for!=null&&(Qt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Qt.toJSON=dl,Qt.toString=Rs,Qt.unix=ks,Qt.valueOf=ds,Qt.creationData=Lu,Qt.eraName=El,Qt.eraNarrow=Es,Qt.eraAbbr=Ws,Qt.eraYear=vl,Qt.year=hn,Qt.isLeapYear=dn,Qt.weekYear=gl,Qt.isoWeekYear=Ii,Qt.quarter=Qt.quarters=Fn,Qt.month=Kn,Qt.daysInMonth=zt,Qt.week=Qt.weeks=kn,Qt.isoWeek=Qt.isoWeeks=hr,Qt.weeksInYear=$e,Qt.weeksInWeekYear=Ge,Qt.isoWeeksInYear=Ri,Qt.isoWeeksInISOWeekYear=tt,Qt.date=tr,Qt.day=Qt.days=Jr,Qt.weekday=Zr,Qt.isoWeekday=Ca,Qt.dayOfYear=Rn,Qt.hour=Qt.hours=Io,Qt.minute=Qt.minutes=nr,Qt.second=Qt.seconds=Ur,Qt.millisecond=Qt.milliseconds=Vn,Qt.utcOffset=Ni,Qt.utc=Gi,Qt.local=Is,Qt.parseZone=hs,Qt.hasAlignedHourOffset=Ns,Qt.isDST=bl,Qt.isLocal=Mr,Qt.isUtcOffset=er,Qt.isUtc=ur,Qt.isUTC=ur,Qt.zoneAbbr=wa,Qt.zoneName=ya,Qt.dates=B("dates accessor is deprecated. Use date instead.",tr),Qt.months=B("months accessor is deprecated. Use month instead",Kn),Qt.years=B("years accessor is deprecated. Use year instead",hn),Qt.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Xi),Qt.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bn);function Ne(j){return Na(j*1e3)}function rt(){return Na.apply(null,arguments).parseZone()}function Rt(j){return j}var Ut=W.prototype;Ut.calendar=k,Ut.longDateFormat=Mt,Ut.invalidDate=mt,Ut.ordinal=He,Ut.preparse=Rt,Ut.postformat=Rt,Ut.relativeTime=Fe,Ut.pastFuture=ue,Ut.set=ce,Ut.eras=ql,Ut.erasParse=Ho,Ut.erasConvertYear=fu,Ut.erasAbbrRegex=Pi,Ut.erasNameRegex=It,Ut.erasNarrowRegex=jl,Ut.months=Or,Ut.monthsShort=ar,Ut.monthsParse=ea,Ut.monthsRegex=on,Ut.monthsShortRegex=Ft,Ut.week=Lt,Ut.firstDayOfYear=yn,Ut.firstDayOfWeek=Wt,Ut.weekdays=Zn,Ut.weekdaysMin=Fr,Ut.weekdaysShort=yr,Ut.weekdaysParse=aa,Ut.weekdaysRegex=la,Ut.weekdaysShortRegex=Tn,Ut.weekdaysMinRegex=In,Ut.isPM=uo,Ut.meridiem=ja;function ln(j,ae,je,Ke){var ht=br(),en=S().set(Ke,ae);return ht[je](en,j)}function mn(j,ae,je){if(h(j)&&(ae=j,j=void 0),j=j||"",ae!=null)return ln(j,ae,je,"month");var Ke,ht=[];for(Ke=0;Ke<12;Ke++)ht[Ke]=ln(j,Ke,je,"month");return ht}function Sn(j,ae,je,Ke){typeof j=="boolean"?(h(ae)&&(je=ae,ae=void 0),ae=ae||""):(ae=j,je=ae,j=!1,h(ae)&&(je=ae,ae=void 0),ae=ae||"");var ht=br(),en=j?ht._week.dow:0,ir,ao=[];if(je!=null)return ln(ae,(je+en)%7,Ke,"day");for(ir=0;ir<7;ir++)ao[ir]=ln(ae,(ir+en)%7,Ke,"day");return ao}function un(j,ae){return mn(j,ae,"months")}function $r(j,ae){return mn(j,ae,"monthsShort")}function Qr(j,ae,je){return Sn(j,ae,je,"weekdays")}function Sa(j,ae,je){return Sn(j,ae,je,"weekdaysShort")}function ua(j,ae,je){return Sn(j,ae,je,"weekdaysMin")}Jt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(j){var ae=j%10,je=Se(j%100/10)===1?"th":ae===1?"st":ae===2?"nd":ae===3?"rd":"th";return j+je}}),t.lang=B("moment.lang is deprecated. Use moment.locale instead.",Jt),t.langData=B("moment.langData is deprecated. Use moment.localeData instead.",br);var Ia=Math.abs;function jo(){var j=this._data;return this._milliseconds=Ia(this._milliseconds),this._days=Ia(this._days),this._months=Ia(this._months),j.milliseconds=Ia(j.milliseconds),j.seconds=Ia(j.seconds),j.minutes=Ia(j.minutes),j.hours=Ia(j.hours),j.months=Ia(j.months),j.years=Ia(j.years),this}function fo(j,ae,je,Ke){var ht=ha(ae,je);return j._milliseconds+=Ke*ht._milliseconds,j._days+=Ke*ht._days,j._months+=Ke*ht._months,j._bubble()}function Aa(j,ae){return fo(this,j,ae,1)}function xa(j,ae){return fo(this,j,ae,-1)}function oa(j){return j<0?Math.floor(j):Math.ceil(j)}function mo(){var j=this._milliseconds,ae=this._days,je=this._months,Ke=this._data,ht,en,ir,ao,po;return j>=0&&ae>=0&&je>=0||j<=0&&ae<=0&&je<=0||(j+=oa(Tr(je)+ae)*864e5,ae=0,je=0),Ke.milliseconds=j%1e3,ht=Ie(j/1e3),Ke.seconds=ht%60,en=Ie(ht/60),Ke.minutes=en%60,ir=Ie(en/60),Ke.hours=ir%24,ae+=Ie(ir/24),po=Ie(Sr(ae)),je+=po,ae-=oa(Tr(po)),ao=Ie(je/12),je%=12,Ke.days=ae,Ke.months=je,Ke.years=ao,this}function Sr(j){return j*4800/146097}function Tr(j){return j*146097/4800}function Ra(j){if(!this.isValid())return NaN;var ae,je,Ke=this._milliseconds;if(j=N(j),j==="month"||j==="quarter"||j==="year")switch(ae=this._days+Ke/864e5,je=this._months+Sr(ae),j){case"month":return je;case"quarter":return je/3;case"year":return je/12}else switch(ae=this._days+Math.round(Tr(this._months)),j){case"week":return ae/7+Ke/6048e5;case"day":return ae+Ke/864e5;case"hour":return ae*24+Ke/36e5;case"minute":return ae*1440+Ke/6e4;case"second":return ae*86400+Ke/1e3;case"millisecond":return Math.floor(ae*864e5)+Ke;default:throw new Error("Unknown unit "+j)}}function Wr(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Se(this._months/12)*31536e6:NaN}function Xr(j){return function(){return this.as(j)}}var _a=Xr("ms"),za=Xr("s"),ma=Xr("m"),so=Xr("h"),Ba=Xr("d"),pa=Xr("w"),no=Xr("M"),Ha=Xr("Q"),Ao=Xr("y");function oo(){return ha(this)}function Oa(j){return j=N(j),this.isValid()?this[j+"s"]():NaN}function $a(j){return function(){return this.isValid()?this._data[j]:NaN}}var ui=$a("milliseconds"),Ya=$a("seconds"),hi=$a("minutes"),ai=$a("hours"),Ja=$a("days"),Uo=$a("months"),Do=$a("years");function Po(){return Ie(this.days()/7)}var Xa=Math.round,Jo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Si(j,ae,je,Ke,ht){return ht.relativeTime(ae||1,!!je,j,Ke)}function mi(j,ae,je,Ke){var ht=ha(j).abs(),en=Xa(ht.as("s")),ir=Xa(ht.as("m")),ao=Xa(ht.as("h")),po=Xa(ht.as("d")),fi=Xa(ht.as("M")),Vi=Xa(ht.as("w")),Cs=Xa(ht.as("y")),zs=en<=je.ss&&["s",en]||en0,zs[4]=Ke,Si.apply(null,zs)}function qo(j){return j===void 0?Xa:typeof j=="function"?(Xa=j,!0):!1}function Ki(j,ae){return Jo[j]===void 0?!1:ae===void 0?Jo[j]:(Jo[j]=ae,j==="s"&&(Jo.ss=ae-1),!0)}function as(j,ae){if(!this.isValid())return this.localeData().invalidDate();var je=!1,Ke=Jo,ht,en;return typeof j=="object"&&(ae=j,j=!1),typeof j=="boolean"&&(je=j),typeof ae=="object"&&(Ke=Object.assign({},Jo,ae),ae.s!=null&&ae.ss==null&&(Ke.ss=ae.s-1)),ht=this.localeData(),en=mi(this,!je,Ke,ht),je&&(en=ht.pastFuture(+this,en)),ht.postformat(en)}var os=Math.abs;function qi(j){return(j>0)-(j<0)||+j}function Zi(){if(!this.isValid())return this.localeData().invalidDate();var j=os(this._milliseconds)/1e3,ae=os(this._days),je=os(this._months),Ke,ht,en,ir,ao=this.asSeconds(),po,fi,Vi,Cs;return ao?(Ke=Ie(j/60),ht=Ie(Ke/60),j%=60,Ke%=60,en=Ie(je/12),je%=12,ir=j?j.toFixed(3).replace(/\.?0+$/,""):"",po=ao<0?"-":"",fi=qi(this._months)!==qi(ao)?"-":"",Vi=qi(this._days)!==qi(ao)?"-":"",Cs=qi(this._milliseconds)!==qi(ao)?"-":"",po+"P"+(en?fi+en+"Y":"")+(je?fi+je+"M":"")+(ae?Vi+ae+"D":"")+(ht||Ke||j?"T":"")+(ht?Cs+ht+"H":"")+(Ke?Cs+Ke+"M":"")+(j?Cs+ir+"S":"")):"P0D"}var Ko=Ti.prototype;Ko.isValid=$i,Ko.abs=jo,Ko.add=Aa,Ko.subtract=xa,Ko.as=Ra,Ko.asMilliseconds=_a,Ko.asSeconds=za,Ko.asMinutes=ma,Ko.asHours=so,Ko.asDays=Ba,Ko.asWeeks=pa,Ko.asMonths=no,Ko.asQuarters=Ha,Ko.asYears=Ao,Ko.valueOf=Wr,Ko._bubble=mo,Ko.clone=oo,Ko.get=Oa,Ko.milliseconds=ui,Ko.seconds=Ya,Ko.minutes=hi,Ko.hours=ai,Ko.days=Ja,Ko.weeks=Po,Ko.months=Uo,Ko.years=Do,Ko.humanize=as,Ko.toISOString=Zi,Ko.toString=Zi,Ko.toJSON=Zi,Ko.locale=ll,Ko.localeData=qs,Ko.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Zi),Ko.lang=xr,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),Ot("x",Ye),Ot("X",bt),fn("X",function(j,ae,je){je._d=new Date(parseFloat(j)*1e3)}),fn("x",function(j,ae,je){je._d=new Date(Se(j))});return t.version="2.29.4",o(Na),t.fn=Qt,t.min=go,t.max=Oi,t.now=Li,t.utc=S,t.unix=Ne,t.months=un,t.isDate=m,t.locale=Jt,t.invalid=R,t.duration=ha,t.isMoment=I,t.weekdays=Qr,t.parseZone=rt,t.localeData=br,t.isDuration=ns,t.monthsShort=$r,t.weekdaysMin=ua,t.defineLocale=Xn,t.updateLocale=Gn,t.locales=ta,t.weekdaysShort=Sa,t.normalizeUnits=N,t.relativeTimeRounding=qo,t.relativeTimeThreshold=Ki,t.calendarFormat=il,t.prototype=Qt,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})},73656:function(M){var b=M.exports={},e,i;function t(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=t}catch(w){e=t}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch(w){i=o}})();function s(w){if(e===setTimeout)return setTimeout(w,0);if((e===t||!e)&&setTimeout)return e=setTimeout,setTimeout(w,0);try{return e(w,0)}catch(y){try{return e.call(null,w,0)}catch(Z){return e.call(this,w,0)}}}function n(w){if(i===clearTimeout)return clearTimeout(w);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(w);try{return i(w)}catch(y){try{return i.call(null,w)}catch(Z){return i.call(this,w)}}}var c=[],l=!1,v,h=-1;function m(){!l||!v||(l=!1,v.length?c=v.concat(c):h=-1,c.length&&C())}function C(){if(!l){var w=s(m);l=!0;for(var y=c.length;y;){for(v=c,c=[];++h1)for(var Z=1;Z=Ye||Le<0||Le>=Ye)return Pe;var Ue=Pe[we],dt=we-Le;return dt>0?[].concat((0,c.Z)(Pe.slice(0,Le)),[Ue],(0,c.Z)(Pe.slice(Le,we)),(0,c.Z)(Pe.slice(we+1,Ye))):dt<0?[].concat((0,c.Z)(Pe.slice(0,we)),(0,c.Z)(Pe.slice(we+1,Le+1)),[Ue],(0,c.Z)(Pe.slice(Le+1,Ye))):Pe}var mt=["name"],Nt=[];function ke(Pe,we,Le,Ye,Ue,dt){return typeof Pe=="function"?Pe(we,Le,"source"in dt?{source:dt.source}:{}):Ye!==Ue}var He=function(Pe){(0,m.Z)(Le,Pe);var we=(0,C.Z)(Le);function Le(Ye){var Ue;if((0,l.Z)(this,Le),Ue=we.call(this,Ye),Ue.state={resetCount:0},Ue.cancelRegisterFunc=null,Ue.mounted=!1,Ue.touched=!1,Ue.dirty=!1,Ue.validatePromise=void 0,Ue.prevValidating=void 0,Ue.errors=Nt,Ue.warnings=Nt,Ue.cancelRegister=function(){var At=Ue.props,Ot=At.preserve,jt=At.isListField,Gt=At.name;Ue.cancelRegisterFunc&&Ue.cancelRegisterFunc(jt,Ot,Me(Gt)),Ue.cancelRegisterFunc=null},Ue.getNamePath=function(){var At=Ue.props,Ot=At.name,jt=At.fieldContext,Gt=jt.prefixName,Xt=Gt===void 0?[]:Gt;return Ot!==void 0?[].concat((0,c.Z)(Xt),(0,c.Z)(Ot)):[]},Ue.getRules=function(){var At=Ue.props,Ot=At.rules,jt=Ot===void 0?[]:Ot,Gt=At.fieldContext;return jt.map(function(Xt){return typeof Xt=="function"?Xt(Gt):Xt})},Ue.refresh=function(){Ue.mounted&&Ue.setState(function(At){var Ot=At.resetCount;return{resetCount:Ot+1}})},Ue.metaCache=null,Ue.triggerMetaEvent=function(At){var Ot=Ue.props.onMetaChange;if(Ot){var jt=(0,n.Z)((0,n.Z)({},Ue.getMeta()),{},{destroy:At});(0,w.Z)(Ue.metaCache,jt)||Ot(jt),Ue.metaCache=jt}else Ue.metaCache=null},Ue.onStoreChange=function(At,Ot,jt){var Gt=Ue.props,Xt=Gt.shouldUpdate,zn=Gt.dependencies,fn=zn===void 0?[]:zn,Bn=Gt.onReset,On=jt.store,Mn=Ue.getNamePath(),_e=Ue.getValue(At),at=Ue.getValue(On),Vt=Ot&&Qe(Ot,Mn);switch(jt.type==="valueUpdate"&&jt.source==="external"&&_e!==at&&(Ue.touched=!0,Ue.dirty=!0,Ue.validatePromise=null,Ue.errors=Nt,Ue.warnings=Nt,Ue.triggerMetaEvent()),jt.type){case"reset":if(!Ot||Vt){Ue.touched=!1,Ue.dirty=!1,Ue.validatePromise=void 0,Ue.errors=Nt,Ue.warnings=Nt,Ue.triggerMetaEvent(),Bn==null||Bn(),Ue.refresh();return}break;case"remove":{if(Xt){Ue.reRender();return}break}case"setField":{if(Vt){var rn=jt.data;"touched"in rn&&(Ue.touched=rn.touched),"validating"in rn&&!("originRCField"in rn)&&(Ue.validatePromise=rn.validating?Promise.resolve([]):null),"errors"in rn&&(Ue.errors=rn.errors||Nt),"warnings"in rn&&(Ue.warnings=rn.warnings||Nt),Ue.dirty=!0,Ue.triggerMetaEvent(),Ue.reRender();return}if(Xt&&!Mn.length&&ke(Xt,At,On,_e,at,jt)){Ue.reRender();return}break}case"dependenciesUpdate":{var st=fn.map(Me);if(st.some(function(ut){return Qe(jt.relatedFields,ut)})){Ue.reRender();return}break}default:if(Vt||(!fn.length||Mn.length||Xt)&&ke(Xt,At,On,_e,at,jt)){Ue.reRender();return}break}Xt===!0&&Ue.reRender()},Ue.validateRules=function(At){var Ot=Ue.getNamePath(),jt=Ue.getValue(),Gt=At||{},Xt=Gt.triggerName,zn=Gt.validateOnly,fn=zn===void 0?!1:zn,Bn=Promise.resolve().then(function(){if(!Ue.mounted)return[];var On=Ue.props,Mn=On.validateFirst,_e=Mn===void 0?!1:Mn,at=On.messageVariables,Vt=Ue.getRules();Xt&&(Vt=Vt.filter(function(st){return st}).filter(function(st){var ut=st.validateTrigger;if(!ut)return!0;var $t=A(ut);return $t.includes(Xt)}));var rn=k(Ot,jt,Vt,At,_e,at);return rn.catch(function(st){return st}).then(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Nt;if(Ue.validatePromise===Bn){var ut;Ue.validatePromise=null;var $t=[],nt=[];(ut=st.forEach)===null||ut===void 0||ut.call(st,function(gt){var Dt=gt.rule.warningOnly,xn=gt.errors,tn=xn===void 0?Nt:xn;Dt?nt.push.apply(nt,(0,c.Z)(tn)):$t.push.apply($t,(0,c.Z)(tn))}),Ue.errors=$t,Ue.warnings=nt,Ue.triggerMetaEvent(),Ue.reRender()}}),rn});return fn||(Ue.validatePromise=Bn,Ue.dirty=!0,Ue.errors=Nt,Ue.warnings=Nt,Ue.triggerMetaEvent(),Ue.reRender()),Bn},Ue.isFieldValidating=function(){return!!Ue.validatePromise},Ue.isFieldTouched=function(){return Ue.touched},Ue.isFieldDirty=function(){if(Ue.dirty||Ue.props.initialValue!==void 0)return!0;var At=Ue.props.fieldContext,Ot=At.getInternalHooks(y),jt=Ot.getInitialValue;return jt(Ue.getNamePath())!==void 0},Ue.getErrors=function(){return Ue.errors},Ue.getWarnings=function(){return Ue.warnings},Ue.isListField=function(){return Ue.props.isListField},Ue.isList=function(){return Ue.props.isList},Ue.isPreserve=function(){return Ue.props.preserve},Ue.getMeta=function(){Ue.prevValidating=Ue.isFieldValidating();var At={touched:Ue.isFieldTouched(),validating:Ue.prevValidating,errors:Ue.errors,warnings:Ue.warnings,name:Ue.getNamePath(),validated:Ue.validatePromise===null};return At},Ue.getOnlyChild=function(At){if(typeof At=="function"){var Ot=Ue.getMeta();return(0,n.Z)((0,n.Z)({},Ue.getOnlyChild(At(Ue.getControlled(),Ot,Ue.props.fieldContext))),{},{isFunction:!0})}var jt=(0,p.Z)(At);return jt.length!==1||!i.isValidElement(jt[0])?{child:jt,isFunction:!1}:{child:jt[0],isFunction:!1}},Ue.getValue=function(At){var Ot=Ue.props.fieldContext.getFieldsValue,jt=Ue.getNamePath();return(0,ge.Z)(At||Ot(!0),jt)},Ue.getControlled=function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ot=Ue.props,jt=Ot.trigger,Gt=Ot.validateTrigger,Xt=Ot.getValueFromEvent,zn=Ot.normalize,fn=Ot.valuePropName,Bn=Ot.getValueProps,On=Ot.fieldContext,Mn=Gt!==void 0?Gt:On.validateTrigger,_e=Ue.getNamePath(),at=On.getInternalHooks,Vt=On.getFieldsValue,rn=at(y),st=rn.dispatch,ut=Ue.getValue(),$t=Bn||function(xn){return(0,s.Z)({},fn,xn)},nt=At[jt],gt=(0,n.Z)((0,n.Z)({},At),$t(ut));gt[jt]=function(){Ue.touched=!0,Ue.dirty=!0,Ue.triggerMetaEvent();for(var xn,tn=arguments.length,Hn=new Array(tn),Nn=0;Nn=0&><=Dt.length?(jt.keys=[].concat((0,c.Z)(jt.keys.slice(0,gt)),[jt.id],(0,c.Z)(jt.keys.slice(gt))),at([].concat((0,c.Z)(Dt.slice(0,gt)),[nt],(0,c.Z)(Dt.slice(gt))))):(jt.keys=[].concat((0,c.Z)(jt.keys),[jt.id]),at([].concat((0,c.Z)(Dt),[nt]))),jt.id+=1},remove:function(nt){var gt=rn(),Dt=new Set(Array.isArray(nt)?nt:[nt]);Dt.size<=0||(jt.keys=jt.keys.filter(function(xn,tn){return!Dt.has(tn)}),at(gt.filter(function(xn,tn){return!Dt.has(tn)})))},move:function(nt,gt){if(nt!==gt){var Dt=rn();nt<0||nt>=Dt.length||gt<0||gt>=Dt.length||(jt.keys=wt(jt.keys,nt,gt),at(wt(Dt,nt,gt)))}}},ut=_e||[];return Array.isArray(ut)||(ut=[]),Ye(ut.map(function($t,nt){var gt=jt.keys[nt];return gt===void 0&&(jt.keys[nt]=jt.id,gt=jt.keys[nt],jt.id+=1),{name:nt,key:gt,isListField:!0}}),st,On)})))}var V=ue,U=e(28314);function N(Pe){var we=!1,Le=Pe.length,Ye=[];return Pe.length?new Promise(function(Ue,dt){Pe.forEach(function(bt,ft){bt.catch(function(At){return we=!0,At}).then(function(At){Le-=1,Ye[ft]=At,!(Le>0)&&(we&&dt(Ye),Ue(Ye))})})}):Promise.resolve([])}var D="__@field_split__";function ee(Pe){return Pe.map(function(we){return"".concat((0,Ce.Z)(we),":").concat(we)}).join(D)}var se=function(){function Pe(){(0,l.Z)(this,Pe),this.kvs=new Map}return(0,v.Z)(Pe,[{key:"set",value:function(Le,Ye){this.kvs.set(ee(Le),Ye)}},{key:"get",value:function(Le){return this.kvs.get(ee(Le))}},{key:"update",value:function(Le,Ye){var Ue=this.get(Le),dt=Ye(Ue);dt?this.set(Le,dt):this.delete(Le)}},{key:"delete",value:function(Le){this.kvs.delete(ee(Le))}},{key:"map",value:function(Le){return(0,c.Z)(this.kvs.entries()).map(function(Ye){var Ue=(0,U.Z)(Ye,2),dt=Ue[0],bt=Ue[1],ft=dt.split(D);return Le({key:ft.map(function(At){var Ot=At.match(/^([^:]*):(.*)$/),jt=(0,U.Z)(Ot,3),Gt=jt[1],Xt=jt[2];return Gt==="number"?Number(Xt):Xt}),value:bt})})}},{key:"toJSON",value:function(){var Le={};return this.map(function(Ye){var Ue=Ye.key,dt=Ye.value;return Le[Ue.join(".")]=dt,null}),Le}}]),Pe}(),X=se,re=["name"],Ie=(0,v.Z)(function Pe(we){var Le=this;(0,l.Z)(this,Pe),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:Le.getFieldValue,getFieldsValue:Le.getFieldsValue,getFieldError:Le.getFieldError,getFieldWarning:Le.getFieldWarning,getFieldsError:Le.getFieldsError,isFieldsTouched:Le.isFieldsTouched,isFieldTouched:Le.isFieldTouched,isFieldValidating:Le.isFieldValidating,isFieldsValidating:Le.isFieldsValidating,resetFields:Le.resetFields,setFields:Le.setFields,setFieldValue:Le.setFieldValue,setFieldsValue:Le.setFieldsValue,validateFields:Le.validateFields,submit:Le.submit,_init:!0,getInternalHooks:Le.getInternalHooks}},this.getInternalHooks=function(Ye){return Ye===y?(Le.formHooked=!0,{dispatch:Le.dispatch,initEntityValue:Le.initEntityValue,registerField:Le.registerField,useSubscribe:Le.useSubscribe,setInitialValues:Le.setInitialValues,destroyForm:Le.destroyForm,setCallbacks:Le.setCallbacks,setValidateMessages:Le.setValidateMessages,getFields:Le.getFields,setPreserve:Le.setPreserve,getInitialValue:Le.getInitialValue,registerWatch:Le.registerWatch}):((0,S.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(Ye){Le.subscribable=Ye},this.prevWithoutPreserves=null,this.setInitialValues=function(Ye,Ue){if(Le.initialValues=Ye||{},Ue){var dt,bt=(0,ie.T)(Ye,Le.store);(dt=Le.prevWithoutPreserves)===null||dt===void 0||dt.map(function(ft){var At=ft.key;bt=(0,ie.Z)(bt,At,(0,ge.Z)(Ye,At))}),Le.prevWithoutPreserves=null,Le.updateStore(bt)}},this.destroyForm=function(){var Ye=new X;Le.getFieldEntities(!0).forEach(function(Ue){Le.isMergedPreserve(Ue.isPreserve())||Ye.set(Ue.getNamePath(),!0)}),Le.prevWithoutPreserves=Ye},this.getInitialValue=function(Ye){var Ue=(0,ge.Z)(Le.initialValues,Ye);return Ye.length?(0,ie.T)(Ue):Ue},this.setCallbacks=function(Ye){Le.callbacks=Ye},this.setValidateMessages=function(Ye){Le.validateMessages=Ye},this.setPreserve=function(Ye){Le.preserve=Ye},this.watchList=[],this.registerWatch=function(Ye){return Le.watchList.push(Ye),function(){Le.watchList=Le.watchList.filter(function(Ue){return Ue!==Ye})}},this.notifyWatch=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(Le.watchList.length){var Ue=Le.getFieldsValue(),dt=Le.getFieldsValue(!0);Le.watchList.forEach(function(bt){bt(Ue,dt,Ye)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(Ye){Le.store=Ye},this.getFieldEntities=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Ye?Le.fieldEntities.filter(function(Ue){return Ue.getNamePath().length}):Le.fieldEntities},this.getFieldsMap=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=new X;return Le.getFieldEntities(Ye).forEach(function(dt){var bt=dt.getNamePath();Ue.set(bt,dt)}),Ue},this.getFieldEntitiesForNamePathList=function(Ye){if(!Ye)return Le.getFieldEntities(!0);var Ue=Le.getFieldsMap(!0);return Ye.map(function(dt){var bt=Me(dt);return Ue.get(bt)||{INVALIDATE_NAME_PATH:Me(dt)}})},this.getFieldsValue=function(Ye,Ue){Le.warningUnhooked();var dt,bt,ft;if(Ye===!0||Array.isArray(Ye)?(dt=Ye,bt=Ue):Ye&&(0,Ce.Z)(Ye)==="object"&&(ft=Ye.strict,bt=Ye.filter),dt===!0&&!bt)return Le.store;var At=Le.getFieldEntitiesForNamePathList(Array.isArray(dt)?dt:null),Ot=[];return At.forEach(function(jt){var Gt,Xt="INVALIDATE_NAME_PATH"in jt?jt.INVALIDATE_NAME_PATH:jt.getNamePath();if(ft){var zn;if(!((zn=jt.isList)===null||zn===void 0)&&zn.call(jt))return}else if(!dt&&(!((Gt=jt.isListField)===null||Gt===void 0)&&Gt.call(jt)))return;if(!bt)Ot.push(Xt);else{var fn="getMeta"in jt?jt.getMeta():null;bt(fn)&&Ot.push(Xt)}}),Re(Le.store,Ot.map(Me))},this.getFieldValue=function(Ye){Le.warningUnhooked();var Ue=Me(Ye);return(0,ge.Z)(Le.store,Ue)},this.getFieldsError=function(Ye){Le.warningUnhooked();var Ue=Le.getFieldEntitiesForNamePathList(Ye);return Ue.map(function(dt,bt){return dt&&!("INVALIDATE_NAME_PATH"in dt)?{name:dt.getNamePath(),errors:dt.getErrors(),warnings:dt.getWarnings()}:{name:Me(Ye[bt]),errors:[],warnings:[]}})},this.getFieldError=function(Ye){Le.warningUnhooked();var Ue=Me(Ye),dt=Le.getFieldsError([Ue])[0];return dt.errors},this.getFieldWarning=function(Ye){Le.warningUnhooked();var Ue=Me(Ye),dt=Le.getFieldsError([Ue])[0];return dt.warnings},this.isFieldsTouched=function(){Le.warningUnhooked();for(var Ye=arguments.length,Ue=new Array(Ye),dt=0;dt0&&arguments[0]!==void 0?arguments[0]:{},Ue=new X,dt=Le.getFieldEntities(!0);dt.forEach(function(At){var Ot=At.props.initialValue,jt=At.getNamePath();if(Ot!==void 0){var Gt=Ue.get(jt)||new Set;Gt.add({entity:At,value:Ot}),Ue.set(jt,Gt)}});var bt=function(Ot){Ot.forEach(function(jt){var Gt=jt.props.initialValue;if(Gt!==void 0){var Xt=jt.getNamePath(),zn=Le.getInitialValue(Xt);if(zn!==void 0)(0,S.ZP)(!1,"Form already set 'initialValues' with path '".concat(Xt.join("."),"'. Field can not overwrite it."));else{var fn=Ue.get(Xt);if(fn&&fn.size>1)(0,S.ZP)(!1,"Multiple Field with path '".concat(Xt.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(fn){var Bn=Le.getFieldValue(Xt);(!Ye.skipExist||Bn===void 0)&&Le.updateStore((0,ie.Z)(Le.store,Xt,(0,c.Z)(fn)[0].value))}}}})},ft;Ye.entities?ft=Ye.entities:Ye.namePathList?(ft=[],Ye.namePathList.forEach(function(At){var Ot=Ue.get(At);if(Ot){var jt;(jt=ft).push.apply(jt,(0,c.Z)((0,c.Z)(Ot).map(function(Gt){return Gt.entity})))}})):ft=dt,bt(ft)},this.resetFields=function(Ye){Le.warningUnhooked();var Ue=Le.store;if(!Ye){Le.updateStore((0,ie.T)(Le.initialValues)),Le.resetWithFieldInitialValue(),Le.notifyObservers(Ue,null,{type:"reset"}),Le.notifyWatch();return}var dt=Ye.map(Me);dt.forEach(function(bt){var ft=Le.getInitialValue(bt);Le.updateStore((0,ie.Z)(Le.store,bt,ft))}),Le.resetWithFieldInitialValue({namePathList:dt}),Le.notifyObservers(Ue,dt,{type:"reset"}),Le.notifyWatch(dt)},this.setFields=function(Ye){Le.warningUnhooked();var Ue=Le.store,dt=[];Ye.forEach(function(bt){var ft=bt.name,At=(0,o.Z)(bt,re),Ot=Me(ft);dt.push(Ot),"value"in At&&Le.updateStore((0,ie.Z)(Le.store,Ot,At.value)),Le.notifyObservers(Ue,[Ot],{type:"setField",data:bt})}),Le.notifyWatch(dt)},this.getFields=function(){var Ye=Le.getFieldEntities(!0),Ue=Ye.map(function(dt){var bt=dt.getNamePath(),ft=dt.getMeta(),At=(0,n.Z)((0,n.Z)({},ft),{},{name:bt,value:Le.getFieldValue(bt)});return Object.defineProperty(At,"originRCField",{value:!0}),At});return Ue},this.initEntityValue=function(Ye){var Ue=Ye.props.initialValue;if(Ue!==void 0){var dt=Ye.getNamePath(),bt=(0,ge.Z)(Le.store,dt);bt===void 0&&Le.updateStore((0,ie.Z)(Le.store,dt,Ue))}},this.isMergedPreserve=function(Ye){var Ue=Ye!==void 0?Ye:Le.preserve;return Ue!=null?Ue:!0},this.registerField=function(Ye){Le.fieldEntities.push(Ye);var Ue=Ye.getNamePath();if(Le.notifyWatch([Ue]),Ye.props.initialValue!==void 0){var dt=Le.store;Le.resetWithFieldInitialValue({entities:[Ye],skipExist:!0}),Le.notifyObservers(dt,[Ye.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(bt,ft){var At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(Le.fieldEntities=Le.fieldEntities.filter(function(Gt){return Gt!==Ye}),!Le.isMergedPreserve(ft)&&(!bt||At.length>1)){var Ot=bt?void 0:Le.getInitialValue(Ue);if(Ue.length&&Le.getFieldValue(Ue)!==Ot&&Le.fieldEntities.every(function(Gt){return!Ve(Gt.getNamePath(),Ue)})){var jt=Le.store;Le.updateStore((0,ie.Z)(jt,Ue,Ot,!0)),Le.notifyObservers(jt,[Ue],{type:"remove"}),Le.triggerDependenciesUpdate(jt,Ue)}}Le.notifyWatch([Ue])}},this.dispatch=function(Ye){switch(Ye.type){case"updateValue":{var Ue=Ye.namePath,dt=Ye.value;Le.updateValue(Ue,dt);break}case"validateField":{var bt=Ye.namePath,ft=Ye.triggerName;Le.validateFields([bt],{triggerName:ft});break}default:}},this.notifyObservers=function(Ye,Ue,dt){if(Le.subscribable){var bt=(0,n.Z)((0,n.Z)({},dt),{},{store:Le.getFieldsValue(!0)});Le.getFieldEntities().forEach(function(ft){var At=ft.onStoreChange;At(Ye,Ue,bt)})}else Le.forceRootUpdate()},this.triggerDependenciesUpdate=function(Ye,Ue){var dt=Le.getDependencyChildrenFields(Ue);return dt.length&&Le.validateFields(dt),Le.notifyObservers(Ye,dt,{type:"dependenciesUpdate",relatedFields:[Ue].concat((0,c.Z)(dt))}),dt},this.updateValue=function(Ye,Ue){var dt=Me(Ye),bt=Le.store;Le.updateStore((0,ie.Z)(Le.store,dt,Ue)),Le.notifyObservers(bt,[dt],{type:"valueUpdate",source:"internal"}),Le.notifyWatch([dt]);var ft=Le.triggerDependenciesUpdate(bt,dt),At=Le.callbacks.onValuesChange;if(At){var Ot=Re(Le.store,[dt]);At(Ot,Le.getFieldsValue())}Le.triggerOnFieldsChange([dt].concat((0,c.Z)(ft)))},this.setFieldsValue=function(Ye){Le.warningUnhooked();var Ue=Le.store;if(Ye){var dt=(0,ie.T)(Le.store,Ye);Le.updateStore(dt)}Le.notifyObservers(Ue,null,{type:"valueUpdate",source:"external"}),Le.notifyWatch()},this.setFieldValue=function(Ye,Ue){Le.setFields([{name:Ye,value:Ue}])},this.getDependencyChildrenFields=function(Ye){var Ue=new Set,dt=[],bt=new X;Le.getFieldEntities().forEach(function(At){var Ot=At.props.dependencies;(Ot||[]).forEach(function(jt){var Gt=Me(jt);bt.update(Gt,function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Xt.add(At),Xt})})});var ft=function At(Ot){var jt=bt.get(Ot)||new Set;jt.forEach(function(Gt){if(!Ue.has(Gt)){Ue.add(Gt);var Xt=Gt.getNamePath();Gt.isFieldDirty()&&Xt.length&&(dt.push(Xt),At(Xt))}})};return ft(Ye),dt},this.triggerOnFieldsChange=function(Ye,Ue){var dt=Le.callbacks.onFieldsChange;if(dt){var bt=Le.getFields();if(Ue){var ft=new X;Ue.forEach(function(Ot){var jt=Ot.name,Gt=Ot.errors;ft.set(jt,Gt)}),bt.forEach(function(Ot){Ot.errors=ft.get(Ot.name)||Ot.errors})}var At=bt.filter(function(Ot){var jt=Ot.name;return Qe(Ye,jt)});At.length&&dt(At,bt)}},this.validateFields=function(Ye,Ue){Le.warningUnhooked();var dt,bt;Array.isArray(Ye)||typeof Ye=="string"||typeof Ue=="string"?(dt=Ye,bt=Ue):bt=Ye;var ft=!!dt,At=ft?dt.map(Me):[],Ot=[],jt=String(Date.now()),Gt=new Set;Le.getFieldEntities(!0).forEach(function(Bn){var On;if(ft||At.push(Bn.getNamePath()),!((On=bt)===null||On===void 0)&&On.recursive&&ft){var Mn=Bn.getNamePath();Mn.every(function(Vt,rn){return dt[rn]===Vt||dt[rn]===void 0})&&At.push(Mn)}if(!(!Bn.props.rules||!Bn.props.rules.length)){var _e=Bn.getNamePath();if(Gt.add(_e.join(jt)),!ft||Qe(At,_e)){var at=Bn.validateRules((0,n.Z)({validateMessages:(0,n.Z)((0,n.Z)({},H),Le.validateMessages)},bt));Ot.push(at.then(function(){return{name:_e,errors:[],warnings:[]}}).catch(function(Vt){var rn,st=[],ut=[];return(rn=Vt.forEach)===null||rn===void 0||rn.call(Vt,function($t){var nt=$t.rule.warningOnly,gt=$t.errors;nt?ut.push.apply(ut,(0,c.Z)(gt)):st.push.apply(st,(0,c.Z)(gt))}),st.length?Promise.reject({name:_e,errors:st,warnings:ut}):{name:_e,errors:st,warnings:ut}}))}}});var Xt=N(Ot);Le.lastValidatePromise=Xt,Xt.catch(function(Bn){return Bn}).then(function(Bn){var On=Bn.map(function(Mn){var _e=Mn.name;return _e});Le.notifyObservers(Le.store,On,{type:"validateFinish"}),Le.triggerOnFieldsChange(On,Bn)});var zn=Xt.then(function(){return Le.lastValidatePromise===Xt?Promise.resolve(Le.getFieldsValue(At)):Promise.reject([])}).catch(function(Bn){var On=Bn.filter(function(Mn){return Mn&&Mn.errors.length});return Promise.reject({values:Le.getFieldsValue(At),errorFields:On,outOfDate:Le.lastValidatePromise!==Xt})});zn.catch(function(Bn){return Bn});var fn=At.filter(function(Bn){return Gt.has(Bn.join(jt))});return Le.triggerOnFieldsChange(fn),zn},this.submit=function(){Le.warningUnhooked(),Le.validateFields().then(function(Ye){var Ue=Le.callbacks.onFinish;if(Ue)try{Ue(Ye)}catch(dt){console.error(dt)}}).catch(function(Ye){var Ue=Le.callbacks.onFinishFailed;Ue&&Ue(Ye)})},this.forceRootUpdate=we});function Se(Pe){var we=i.useRef(),Le=i.useState({}),Ye=(0,U.Z)(Le,2),Ue=Ye[1];if(!we.current)if(Pe)we.current=Pe;else{var dt=function(){Ue({})},bt=new Ie(dt);we.current=bt.getForm()}return[we.current]}var he=Se,We=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),de=function(we){var Le=we.validateMessages,Ye=we.onFormChange,Ue=we.onFormFinish,dt=we.children,bt=i.useContext(We),ft=i.useRef({});return i.createElement(We.Provider,{value:(0,n.Z)((0,n.Z)({},bt),{},{validateMessages:(0,n.Z)((0,n.Z)({},bt.validateMessages),Le),triggerFormChange:function(Ot,jt){Ye&&Ye(Ot,{changedFields:jt,forms:ft.current}),bt.triggerFormChange(Ot,jt)},triggerFormFinish:function(Ot,jt){Ue&&Ue(Ot,{values:jt,forms:ft.current}),bt.triggerFormFinish(Ot,jt)},registerForm:function(Ot,jt){Ot&&(ft.current=(0,n.Z)((0,n.Z)({},ft.current),{},(0,s.Z)({},Ot,jt))),bt.registerForm(Ot,jt)},unregisterForm:function(Ot){var jt=(0,n.Z)({},ft.current);delete jt[Ot],ft.current=jt,bt.unregisterForm(Ot)}})},dt)},le=We,ve=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],xe=function(we,Le){var Ye=we.name,Ue=we.initialValues,dt=we.fields,bt=we.form,ft=we.preserve,At=we.children,Ot=we.component,jt=Ot===void 0?"form":Ot,Gt=we.validateMessages,Xt=we.validateTrigger,zn=Xt===void 0?"onChange":Xt,fn=we.onValuesChange,Bn=we.onFieldsChange,On=we.onFinish,Mn=we.onFinishFailed,_e=(0,o.Z)(we,ve),at=i.useContext(le),Vt=he(bt),rn=(0,U.Z)(Vt,1),st=rn[0],ut=st.getInternalHooks(y),$t=ut.useSubscribe,nt=ut.setInitialValues,gt=ut.setCallbacks,Dt=ut.setValidateMessages,xn=ut.setPreserve,tn=ut.destroyForm;i.useImperativeHandle(Le,function(){return st}),i.useEffect(function(){return at.registerForm(Ye,st),function(){at.unregisterForm(Ye)}},[at,st,Ye]),Dt((0,n.Z)((0,n.Z)({},at.validateMessages),Gt)),gt({onValuesChange:fn,onFieldsChange:function(Lr){if(at.triggerFormChange(Ye,Lr),Bn){for(var Kn=arguments.length,zt=new Array(Kn>1?Kn-1:0),Ft=1;Ft0;if(k||Y){var X=(0,v.D7)(Ve),re=(0,C.Z)(X).length,Ie=(0,s.Z)(Y)==="object"?Y.formatter({value:X,count:re,maxLength:O}):"".concat(re).concat(se?" / ".concat(O):"");return l.createElement(l.Fragment,null,!!Y&&l.createElement("span",{className:c()("".concat(ce,"-show-count-suffix"),(0,o.Z)({},"".concat(ce,"-show-count-has-suffix"),!!k),Ce==null?void 0:Ce.count),style:(0,t.Z)({},ge==null?void 0:ge.count)},Ie),k)}return null};return l.createElement(m,(0,i.Z)({},Me,{prefixCls:ce,className:G,inputElement:N(),handleReset:U,value:(0,v.D7)(Ve),focused:mt,triggerFocus:He,suffix:D(),disabled:te,classes:fe,classNames:Ce,styles:ge}))}),R=F,T=R},33615:function(M,b,e){"use strict";e.d(b,{D7:function(){return n},He:function(){return i},X3:function(){return t},nH:function(){return s},rJ:function(){return o}});function i(c){return!!(c.addonBefore||c.addonAfter)}function t(c){return!!(c.prefix||c.suffix||c.allowClear)}function o(c,l,v,h){if(v){var m=l;if(l.type==="click"){var C=c.cloneNode(!0);m=Object.create(l,{target:{value:C},currentTarget:{value:C}}),C.value="",v(m);return}if(h!==void 0){m=Object.create(l,{target:{value:c},currentTarget:{value:c}}),c.value=h,v(m);return}v(m)}}function s(c,l){if(c){c.focus(l);var v=l||{},h=v.cursor;if(h){var m=c.value.length;switch(h){case"start":c.setSelectionRange(0,0);break;case"end":c.setSelectionRange(m,m);break;default:c.setSelectionRange(0,m)}}}}function n(c){return typeof c=="undefined"||c===null?"":String(c)}},87854:function(M,b,e){"use strict";e.d(b,{iz:function(){return Hn},ck:function(){return Ue},BW:function(){return tn},sN:function(){return Ue},Wd:function(){return $t},ZP:function(){return Kn},Xl:function(){return H}});var i=e(60698),t=e(37734),o=e(57370),s=e(29140),n=e(28314),c=e(47075),l=e(87608),v=e.n(l),h=e(9257),m=e(60409),C=e(75556),p=e(58757),S=e(26736),w=e(7637),y=p.createContext(null);function Z(zt,Ft){return zt===void 0?null:"".concat(zt,"-").concat(Ft)}function F(zt){var Ft=p.useContext(y);return Z(Ft,zt)}var R=e(27903),T=["children","locked"],z=p.createContext(null);function A(zt,Ft){var on=(0,o.Z)({},zt);return Object.keys(Ft).forEach(function(nn){var kt=Ft[nn];kt!==void 0&&(on[nn]=kt)}),on}function L(zt){var Ft=zt.children,on=zt.locked,nn=(0,c.Z)(zt,T),kt=p.useContext(z),hn=(0,R.Z)(function(){return A(kt,nn)},[kt,nn],function(dn,$n){return!on&&(dn[0]!==$n[0]||!(0,w.Z)(dn[1],$n[1],!0))});return p.createElement(z.Provider,{value:hn},Ft)}var I=[],$=p.createContext(null);function B(){return p.useContext($)}var K=p.createContext(I);function H(zt){var Ft=p.useContext(K);return p.useMemo(function(){return zt!==void 0?[].concat((0,s.Z)(Ft),[zt]):Ft},[Ft,zt])}var ie=p.createContext(null),ce=p.createContext({}),te=ce,W=e(29639),G=e(61834),O=e(46499);function k(zt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,O.Z)(zt)){var on=zt.nodeName.toLowerCase(),nn=["input","select","textarea","button"].includes(on)||zt.isContentEditable||on==="a"&&!!zt.getAttribute("href"),kt=zt.getAttribute("tabindex"),hn=Number(kt),dn=null;return kt&&!Number.isNaN(hn)?dn=hn:nn&&dn===null&&(dn=0),nn&&zt.disabled&&(dn=null),dn!==null&&(dn>=0||Ft&&dn<0)}return!1}function Y(zt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=(0,s.Z)(zt.querySelectorAll("*")).filter(function(nn){return k(nn,Ft)});return k(zt,Ft)&&on.unshift(zt),on}var P=null;function Q(){P=document.activeElement}function fe(){P=null}function Ce(){if(P)try{P.focus()}catch(zt){}}function ge(zt,Ft){if(Ft.keyCode===9){var on=Y(zt),nn=on[Ft.shiftKey?0:on.length-1],kt=nn===document.activeElement||zt===document.activeElement;if(kt){var hn=on[Ft.shiftKey?on.length-1:0];hn.focus(),Ft.preventDefault()}}}var Me=W.Z.LEFT,Re=W.Z.RIGHT,Qe=W.Z.UP,Ve=W.Z.DOWN,qe=W.Z.ENTER,Mt=W.Z.ESC,wt=W.Z.HOME,mt=W.Z.END,Nt=[Qe,Ve,Me,Re];function ke(zt,Ft,on,nn){var kt,hn,dn,$n,qn="prev",ct="next",lt="children",xt="parent";if(zt==="inline"&&nn===qe)return{inlineTrigger:!0};var St=(kt={},(0,t.Z)(kt,Qe,qn),(0,t.Z)(kt,Ve,ct),kt),Lt=(hn={},(0,t.Z)(hn,Me,on?ct:qn),(0,t.Z)(hn,Re,on?qn:ct),(0,t.Z)(hn,Ve,lt),(0,t.Z)(hn,qe,lt),hn),_t=(dn={},(0,t.Z)(dn,Qe,qn),(0,t.Z)(dn,Ve,ct),(0,t.Z)(dn,qe,lt),(0,t.Z)(dn,Mt,xt),(0,t.Z)(dn,Me,on?lt:xt),(0,t.Z)(dn,Re,on?xt:lt),dn),Wt={inline:St,horizontal:Lt,vertical:_t,inlineSub:St,horizontalSub:_t,verticalSub:_t},yn=($n=Wt["".concat(zt).concat(Ft?"":"Sub")])===null||$n===void 0?void 0:$n[nn];switch(yn){case qn:return{offset:-1,sibling:!0};case ct:return{offset:1,sibling:!0};case xt:return{offset:-1,sibling:!1};case lt:return{offset:1,sibling:!1};default:return null}}function He(zt){for(var Ft=zt;Ft;){if(Ft.getAttribute("data-menu-list"))return Ft;Ft=Ft.parentElement}return null}function et(zt,Ft){for(var on=zt||document.activeElement;on;){if(Ft.has(on))return on;on=on.parentElement}return null}function Fe(zt,Ft){var on=Y(zt,!0);return on.filter(function(nn){return Ft.has(nn)})}function ue(zt,Ft,on){var nn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!zt)return null;var kt=Fe(zt,Ft),hn=kt.length,dn=kt.findIndex(function($n){return on===$n});return nn<0?dn===-1?dn=hn-1:dn-=1:nn>0&&(dn+=1),dn=(dn+hn)%hn,kt[dn]}function V(zt,Ft,on,nn,kt,hn,dn,$n,qn,ct){var lt=p.useRef(),xt=p.useRef();xt.current=Ft;var St=function(){G.Z.cancel(lt.current)};return p.useEffect(function(){return function(){St()}},[]),function(Lt){var _t=Lt.which;if([].concat(Nt,[qe,Mt,wt,mt]).includes(_t)){var Wt,yn,kn,hr=function(){Wt=new Set,yn=new Map,kn=new Map;var Kr=hn();return Kr.forEach(function(aa){var Jr=document.querySelector("[data-menu-id='".concat(Z(nn,aa),"']"));Jr&&(Wt.add(Jr),kn.set(Jr,aa),yn.set(aa,Jr))}),Wt};hr();var cr=yn.get(Ft),Dn=et(cr,Wt),Rr=kn.get(Dn),or=ke(zt,dn(Rr,!0).length===1,on,_t);if(!or&&_t!==wt&&_t!==mt)return;(Nt.includes(_t)||[wt,mt].includes(_t))&&Lt.preventDefault();var Gr=function(Kr){if(Kr){var aa=Kr,Jr=Kr.querySelector("a");Jr!=null&&Jr.getAttribute("href")&&(aa=Jr);var Zr=kn.get(Kr);$n(Zr),St(),lt.current=(0,G.Z)(function(){xt.current===Zr&&aa.focus()})}};if([wt,mt].includes(_t)||or.sibling||!Dn){var Ir;!Dn||zt==="inline"?Ir=kt.current:Ir=He(Dn);var jn,vn=Fe(Ir,Wt);_t===wt?jn=vn[0]:_t===mt?jn=vn[vn.length-1]:jn=ue(Ir,Wt,Dn,or.offset),Gr(jn)}else if(or.inlineTrigger)qn(Rr);else if(or.offset>0)qn(Rr,!0),St(),lt.current=(0,G.Z)(function(){hr();var Fr=Dn.getAttribute("aria-controls"),Kr=document.getElementById(Fr),aa=ue(Kr,Wt);Gr(aa)},5);else if(or.offset<0){var Ln=dn(Rr,!0),Zn=Ln[Ln.length-2],yr=yn.get(Zn);qn(Zn,!1),Gr(yr)}}ct==null||ct(Lt)}}function U(zt){Promise.resolve().then(zt)}var N="__RC_UTIL_PATH_SPLIT__",D=function(Ft){return Ft.join(N)},ee=function(Ft){return Ft.split(N)},se="rc-menu-more";function X(){var zt=p.useState({}),Ft=(0,n.Z)(zt,2),on=Ft[1],nn=(0,p.useRef)(new Map),kt=(0,p.useRef)(new Map),hn=p.useState([]),dn=(0,n.Z)(hn,2),$n=dn[0],qn=dn[1],ct=(0,p.useRef)(0),lt=(0,p.useRef)(!1),xt=function(){lt.current||on({})},St=(0,p.useCallback)(function(cr,Dn){var Rr=D(Dn);kt.current.set(Rr,cr),nn.current.set(cr,Rr),ct.current+=1;var or=ct.current;U(function(){or===ct.current&&xt()})},[]),Lt=(0,p.useCallback)(function(cr,Dn){var Rr=D(Dn);kt.current.delete(Rr),nn.current.delete(cr)},[]),_t=(0,p.useCallback)(function(cr){qn(cr)},[]),Wt=(0,p.useCallback)(function(cr,Dn){var Rr=nn.current.get(cr)||"",or=ee(Rr);return Dn&&$n.includes(or[0])&&or.unshift(se),or},[$n]),yn=(0,p.useCallback)(function(cr,Dn){return cr.some(function(Rr){var or=Wt(Rr,!0);return or.includes(Dn)})},[Wt]),kn=function(){var Dn=(0,s.Z)(nn.current.keys());return $n.length&&Dn.push(se),Dn},hr=(0,p.useCallback)(function(cr){var Dn="".concat(nn.current.get(cr)).concat(N),Rr=new Set;return(0,s.Z)(kt.current.keys()).forEach(function(or){or.startsWith(Dn)&&Rr.add(kt.current.get(or))}),Rr},[]);return p.useEffect(function(){return function(){lt.current=!0}},[]),{registerPath:St,unregisterPath:Lt,refreshOverflowKeys:_t,isSubPathKey:yn,getKeyPath:Wt,getKeys:kn,getSubPathKeys:hr}}function re(zt){var Ft=p.useRef(zt);Ft.current=zt;var on=p.useCallback(function(){for(var nn,kt=arguments.length,hn=new Array(kt),dn=0;dn1&&(hr.motionAppear=!1);var cr=hr.onVisibleChanged;return hr.onVisibleChanged=function(Dn){return!St.current&&!Dn&&yn(!0),cr==null?void 0:cr(Dn)},Wt?null:p.createElement(L,{mode:hn,locked:!St.current},p.createElement(at.ZP,(0,i.Z)({visible:kn},hr,{forceRender:qn,removeOnLeave:!1,leavedClassName:"".concat($n,"-hidden")}),function(Dn){var Rr=Dn.className,or=Dn.style;return p.createElement(At,{id:Ft,className:Rr,style:or},kt)}))}var rn=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],st=["active"],ut=function(Ft){var on,nn=Ft.style,kt=Ft.className,hn=Ft.title,dn=Ft.eventKey,$n=Ft.warnKey,qn=Ft.disabled,ct=Ft.internalPopupClose,lt=Ft.children,xt=Ft.itemIcon,St=Ft.expandIcon,Lt=Ft.popupClassName,_t=Ft.popupOffset,Wt=Ft.onClick,yn=Ft.onMouseEnter,kn=Ft.onMouseLeave,hr=Ft.onTitleClick,cr=Ft.onTitleMouseEnter,Dn=Ft.onTitleMouseLeave,Rr=(0,c.Z)(Ft,rn),or=F(dn),Gr=p.useContext(z),Ir=Gr.prefixCls,jn=Gr.mode,vn=Gr.openKeys,Ln=Gr.disabled,Zn=Gr.overflowDisabled,yr=Gr.activeKey,Fr=Gr.selectedKeys,Kr=Gr.itemIcon,aa=Gr.expandIcon,Jr=Gr.onItemClick,Zr=Gr.onOpenChange,Ca=Gr.onActive,la=p.useContext(te),Tn=la._internalRenderSubMenuItem,In=p.useContext(ie),Yn=In.isSubPathKey,Nr=H(),zr="".concat(Ir,"-submenu"),Br=Ln||qn,Ma=p.useRef(),uo=p.useRef(),to=xt||Kr,Io=St||aa,ja=vn.includes(dn),Ua=!Zn&&ja,qa=Yn(Fr,dn),Fo=pe(dn,Br,cr,Dn),Lo=Fo.active,Bo=(0,c.Z)(Fo,st),ot=p.useState(!1),yt=(0,n.Z)(ot,2),be=yt[0],Bt=yt[1],Jt=function(Tt){Br||Bt(Tt)},Xn=function(Tt){Jt(!0),yn==null||yn({key:dn,domEvent:Tt})},Gn=function(Tt){Jt(!1),kn==null||kn({key:dn,domEvent:Tt})},br=p.useMemo(function(){return Lo||(jn!=="inline"?be||Yn([yr],dn):!1)},[jn,Lo,yr,be,dn,Yn]),ta=Je(Nr.length),ka=function(Tt){Br||(hr==null||hr({key:dn,domEvent:Tt}),jn==="inline"&&Zr(dn,!ja))},kr=re(function(Qa){Wt==null||Wt(ye(Qa)),Jr(Qa)}),Dr=function(Tt){jn!=="inline"&&Zr(dn,Tt)},wr=function(){Ca(dn)},sr=or&&"".concat(or,"-popup"),dr=p.createElement("div",(0,i.Z)({role:"menuitem",style:ta,className:"".concat(zr,"-title"),tabIndex:Br?null:-1,ref:Ma,title:typeof hn=="string"?hn:null,"data-menu-id":Zn&&or?null:or,"aria-expanded":Ua,"aria-haspopup":!0,"aria-controls":sr,"aria-disabled":Br,onClick:ka,onFocus:wr},Bo),hn,p.createElement(Ae,{icon:jn!=="horizontal"?Io:null,props:(0,o.Z)((0,o.Z)({},Ft),{},{isOpen:Ua,isSubMenu:!0})},p.createElement("i",{className:"".concat(zr,"-arrow")}))),jr=p.useRef(jn);if(jn!=="inline"&&Nr.length>1?jr.current="vertical":jr.current=jn,!Zn){var va=jr.current;dr=p.createElement(_e,{mode:va,prefixCls:zr,visible:!ct&&Ua&&jn!=="inline",popupClassName:Lt,popupOffset:_t,popup:p.createElement(L,{mode:va==="horizontal"?"vertical":va},p.createElement(At,{id:sr,ref:uo},lt)),disabled:Br,onVisibleChange:Dr},dr)}var co=p.createElement(h.Z.Item,(0,i.Z)({role:"none"},Rr,{component:"li",style:nn,className:v()(zr,"".concat(zr,"-").concat(jn),kt,(on={},(0,t.Z)(on,"".concat(zr,"-open"),Ua),(0,t.Z)(on,"".concat(zr,"-active"),br),(0,t.Z)(on,"".concat(zr,"-selected"),qa),(0,t.Z)(on,"".concat(zr,"-disabled"),Br),on)),onMouseEnter:Xn,onMouseLeave:Gn}),dr,!Zn&&p.createElement(Vt,{id:sr,open:Ua,keyPath:Nr},lt));return Tn&&(co=Tn(co,Ft,{selected:qa,active:br,open:Ua,disabled:Br})),p.createElement(L,{onItemClick:kr,mode:jn==="horizontal"?"vertical":jn,itemIcon:to,expandIcon:Io},co)};function $t(zt){var Ft=zt.eventKey,on=zt.children,nn=H(Ft),kt=jt(on,nn),hn=B();p.useEffect(function(){if(hn)return hn.registerPath(Ft,nn),function(){hn.unregisterPath(Ft,nn)}},[nn]);var dn;return hn?dn=kt:dn=p.createElement(ut,zt,kt),p.createElement(K.Provider,{value:nn},dn)}var nt=e(38790),gt=["className","title","eventKey","children"],Dt=["children"],xn=function(Ft){var on=Ft.className,nn=Ft.title,kt=Ft.eventKey,hn=Ft.children,dn=(0,c.Z)(Ft,gt),$n=p.useContext(z),qn=$n.prefixCls,ct="".concat(qn,"-item-group");return p.createElement("li",(0,i.Z)({role:"presentation"},dn,{onClick:function(xt){return xt.stopPropagation()},className:v()(ct,on)}),p.createElement("div",{role:"presentation",className:"".concat(ct,"-title"),title:typeof nn=="string"?nn:void 0},nn),p.createElement("ul",{role:"group",className:"".concat(ct,"-list")},hn))};function tn(zt){var Ft=zt.children,on=(0,c.Z)(zt,Dt),nn=H(on.eventKey),kt=jt(Ft,nn),hn=B();return hn?kt:p.createElement(xn,(0,xe.Z)(on,["warnKey"]),kt)}function Hn(zt){var Ft=zt.className,on=zt.style,nn=p.useContext(z),kt=nn.prefixCls,hn=B();return hn?null:p.createElement("li",{className:v()("".concat(kt,"-item-divider"),Ft),style:on})}var Nn=["label","children","key","type"];function pr(zt){return(zt||[]).map(function(Ft,on){if(Ft&&(0,nt.Z)(Ft)==="object"){var nn=Ft,kt=nn.label,hn=nn.children,dn=nn.key,$n=nn.type,qn=(0,c.Z)(nn,Nn),ct=dn!=null?dn:"tmp-".concat(on);return hn||$n==="group"?$n==="group"?p.createElement(tn,(0,i.Z)({key:ct},qn,{title:kt}),pr(hn)):p.createElement($t,(0,i.Z)({key:ct},qn,{title:kt}),pr(hn)):$n==="divider"?p.createElement(Hn,(0,i.Z)({key:ct},qn)):p.createElement(Ue,(0,i.Z)({key:ct},qn),kt)}return null}).filter(function(Ft){return Ft})}function gr(zt,Ft,on){var nn=zt;return Ft&&(nn=pr(Ft)),jt(nn,on)}var Or=["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"],ar=[],mr=p.forwardRef(function(zt,Ft){var on,nn,kt=zt,hn=kt.prefixCls,dn=hn===void 0?"rc-menu":hn,$n=kt.rootClassName,qn=kt.style,ct=kt.className,lt=kt.tabIndex,xt=lt===void 0?0:lt,St=kt.items,Lt=kt.children,_t=kt.direction,Wt=kt.id,yn=kt.mode,kn=yn===void 0?"vertical":yn,hr=kt.inlineCollapsed,cr=kt.disabled,Dn=kt.disabledOverflow,Rr=kt.subMenuOpenDelay,or=Rr===void 0?.1:Rr,Gr=kt.subMenuCloseDelay,Ir=Gr===void 0?.1:Gr,jn=kt.forceSubMenuRender,vn=kt.defaultOpenKeys,Ln=kt.openKeys,Zn=kt.activeKey,yr=kt.defaultActiveFirst,Fr=kt.selectable,Kr=Fr===void 0?!0:Fr,aa=kt.multiple,Jr=aa===void 0?!1:aa,Zr=kt.defaultSelectedKeys,Ca=kt.selectedKeys,la=kt.onSelect,Tn=kt.onDeselect,In=kt.inlineIndent,Yn=In===void 0?24:In,Nr=kt.motion,zr=kt.defaultMotions,Br=kt.triggerSubMenuAction,Ma=Br===void 0?"hover":Br,uo=kt.builtinPlacements,to=kt.itemIcon,Io=kt.expandIcon,ja=kt.overflowedIndicator,Ua=ja===void 0?"...":ja,qa=kt.overflowedIndicatorPopupClassName,Fo=kt.getPopupContainer,Lo=kt.onClick,Bo=kt.onOpenChange,ot=kt.onKeyDown,yt=kt.openAnimation,be=kt.openTransitionName,Bt=kt._internalRenderMenuItem,Jt=kt._internalRenderSubMenuItem,Xn=(0,c.Z)(kt,Or),Gn=p.useMemo(function(){return gr(Lt,St,ar)},[Lt,St]),br=p.useState(!1),ta=(0,n.Z)(br,2),ka=ta[0],kr=ta[1],Dr=p.useRef(),wr=he(Wt),sr=_t==="rtl",dr=(0,m.Z)(vn,{value:Ln,postState:function(ha){return ha||ar}}),jr=(0,n.Z)(dr,2),va=jr[0],co=jr[1],Qa=function(ha){var da=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function _o(){co(ha),Bo==null||Bo(ha)}da?(0,S.flushSync)(_o):_o()},Tt=p.useState(va),Kt=(0,n.Z)(Tt,2),sn=Kt[0],An=Kt[1],_n=p.useRef(!1),fr=p.useMemo(function(){return(kn==="inline"||kn==="vertical")&&hr?["vertical",hr]:[kn,!1]},[kn,hr]),Er=(0,n.Z)(fr,2),wn=Er[0],vr=Er[1],Ar=wn==="inline",ia=p.useState(wn),na=(0,n.Z)(ia,2),Wa=na[0],Eo=na[1],Ro=p.useState(vr),Ka=(0,n.Z)(Ro,2),To=Ka[0],vo=Ka[1];p.useEffect(function(){Eo(wn),vo(vr),_n.current&&(Ar?co(sn):Qa(ar))},[wn,vr]);var qr=p.useState(0),Na=(0,n.Z)(qr,2),Oo=Na[0],oi=Na[1],di=Oo>=Gn.length-1||Wa!=="horizontal"||Dn;p.useEffect(function(){Ar&&An(va)},[va]),p.useEffect(function(){return _n.current=!0,function(){_n.current=!1}},[]);var go=X(),Oi=go.registerPath,Li=go.unregisterPath,ii=go.refreshOverflowKeys,Di=go.isSubPathKey,$i=go.getKeyPath,wi=go.getKeys,Ti=go.getSubPathKeys,ns=p.useMemo(function(){return{registerPath:Oi,unregisterPath:Li}},[Oi,Li]),Fi=p.useMemo(function(){return{isSubPathKey:Di}},[Di]);p.useEffect(function(){ii(di?ar:Gn.slice(Oo+1).map(function(ca){return ca.key}))},[Oo,di]);var ro=(0,m.Z)(Zn||yr&&((on=Gn[0])===null||on===void 0?void 0:on.key),{value:Zn}),Va=(0,n.Z)(ro,2),gi=Va[0],si=Va[1],Zo=re(function(ca){si(ca)}),Yo=re(function(){si(void 0)});(0,p.useImperativeHandle)(Ft,function(){return{list:Dr.current,focus:function(ha){var da,_o=gi!=null?gi:(da=Gn.find(function(bs){return!bs.props.disabled}))===null||da===void 0?void 0:da.key;if(_o){var li,Xo,_i;(li=Dr.current)===null||li===void 0||(Xo=li.querySelector("li[data-menu-id='".concat(Z(wr,_o),"']")))===null||Xo===void 0||(_i=Xo.focus)===null||_i===void 0||_i.call(Xo,ha)}}}});var Ni=(0,m.Z)(Zr||[],{value:Ca,postState:function(ha){return Array.isArray(ha)?ha:ha==null?ar:[ha]}}),Xi=(0,n.Z)(Ni,2),Gi=Xi[0],Is=Xi[1],hs=function(ha){if(Kr){var da=ha.key,_o=Gi.includes(da),li;Jr?_o?li=Gi.filter(function(_i){return _i!==da}):li=[].concat((0,s.Z)(Gi),[da]):li=[da],Is(li);var Xo=(0,o.Z)((0,o.Z)({},ha),{},{selectedKeys:li});_o?Tn==null||Tn(Xo):la==null||la(Xo)}!Jr&&va.length&&Wa!=="inline"&&Qa(ar)},Ns=re(function(ca){Lo==null||Lo(ye(ca)),hs(ca)}),bl=re(function(ca,ha){var da=va.filter(function(li){return li!==ca});if(ha)da.push(ca);else if(Wa!=="inline"){var _o=Ti(ca);da=da.filter(function(li){return!_o.has(li)})}(0,w.Z)(va,da,!0)||Qa(da,!0)}),bn=function(ha,da){var _o=da!=null?da:!va.includes(ha);bl(ha,_o)},Mr=V(Wa,gi,sr,wr,Dr,wi,$i,si,bn,ot);p.useEffect(function(){kr(!0)},[]);var er=p.useMemo(function(){return{_internalRenderMenuItem:Bt,_internalRenderSubMenuItem:Jt}},[Bt,Jt]),ur=Wa!=="horizontal"||Dn?Gn:Gn.map(function(ca,ha){return p.createElement(L,{key:ca.key,overflowDisabled:ha>Oo},ca)}),Cr=p.createElement(h.Z,(0,i.Z)({id:Wt,ref:Dr,prefixCls:"".concat(dn,"-overflow"),component:"ul",itemComponent:Ue,className:v()(dn,"".concat(dn,"-root"),"".concat(dn,"-").concat(Wa),ct,(nn={},(0,t.Z)(nn,"".concat(dn,"-inline-collapsed"),To),(0,t.Z)(nn,"".concat(dn,"-rtl"),sr),nn),$n),dir:_t,style:qn,role:"menu",tabIndex:xt,data:ur,renderRawItem:function(ha){return ha},renderRawRest:function(ha){var da=ha.length,_o=da?Gn.slice(-da):null;return p.createElement($t,{eventKey:se,title:Ua,disabled:di,internalPopupClose:da===0,popupClassName:qa},_o)},maxCount:Wa!=="horizontal"||Dn?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ha){oi(ha)},onKeyDown:Mr},Xn));return p.createElement(te.Provider,{value:er},p.createElement(y.Provider,{value:wr},p.createElement(L,{prefixCls:dn,rootClassName:$n,mode:Wa,openKeys:va,rtl:sr,disabled:cr,motion:ka?Nr:null,defaultMotions:ka?zr:null,activeKey:gi,onActive:Zo,onInactive:Yo,selectedKeys:Gi,inlineIndent:Yn,subMenuOpenDelay:or,subMenuCloseDelay:Ir,forceSubMenuRender:jn,builtinPlacements:uo,triggerSubMenuAction:Ma,getPopupContainer:Fo,itemIcon:to,expandIcon:Io,onItemClick:Ns,onOpenChange:bl},p.createElement(ie.Provider,{value:Fi},Cr),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement($.Provider,{value:ns},Gn)))))}),ea=mr,Lr=ea;Lr.Item=Ue,Lr.SubMenu=$t,Lr.ItemGroup=tn,Lr.Divider=Hn;var Kn=Lr},17598:function(M,b,e){"use strict";e.d(b,{V4:function(){return pe},zt:function(){return S},ZP:function(){return Je}});var i=e(37734),t=e(57370),o=e(28314),s=e(38790),n=e(87608),c=e.n(n),l=e(69188),v=e(21319),h=e(58757),m=e(47075),C=["children"],p=h.createContext({});function S(Ae){var oe=Ae.children,ye=(0,m.Z)(Ae,C);return h.createElement(p.Provider,{value:ye},oe)}var w=e(60412),y=e(14346),Z=e(87498),F=e(73726),R=function(Ae){(0,Z.Z)(ye,Ae);var oe=(0,F.Z)(ye);function ye(){return(0,w.Z)(this,ye),oe.apply(this,arguments)}return(0,y.Z)(ye,[{key:"render",value:function(){return this.props.children}}]),ye}(h.Component),T=R,z=e(13989),A="none",L="appear",I="enter",$="leave",B="none",K="prepare",H="start",ie="active",ce="end",te="prepared",W=e(19075);function G(Ae,oe){var ye={};return ye[Ae.toLowerCase()]=oe.toLowerCase(),ye["Webkit".concat(Ae)]="webkit".concat(oe),ye["Moz".concat(Ae)]="moz".concat(oe),ye["ms".concat(Ae)]="MS".concat(oe),ye["O".concat(Ae)]="o".concat(oe.toLowerCase()),ye}function O(Ae,oe){var ye={animationend:G("Animation","AnimationEnd"),transitionend:G("Transition","TransitionEnd")};return Ae&&("AnimationEvent"in oe||delete ye.animationend.animation,"TransitionEvent"in oe||delete ye.transitionend.transition),ye}var k=O((0,W.Z)(),typeof window!="undefined"?window:{}),Y={};if((0,W.Z)()){var P=document.createElement("div");Y=P.style}var Q={};function fe(Ae){if(Q[Ae])return Q[Ae];var oe=k[Ae];if(oe)for(var ye=Object.keys(oe),Be=ye.length,De=0;De1&&arguments[1]!==void 0?arguments[1]:2;oe();var Pe=(0,mt.Z)(function(){De<=1?Be({isCanceled:function(){return Pe!==Ae.current}}):ye(Be,De-1)});Ae.current=Pe}return h.useEffect(function(){return function(){oe()}},[]),[ye,oe]},ke=[K,H,ie,ce],He=[K,te],et=!1,Fe=!0;function ue(Ae){return Ae===ie||Ae===ce}var V=function(Ae,oe,ye){var Be=(0,z.Z)(B),De=(0,o.Z)(Be,2),Pe=De[0],we=De[1],Le=Nt(),Ye=(0,o.Z)(Le,2),Ue=Ye[0],dt=Ye[1];function bt(){we(K,!0)}var ft=oe?He:ke;return wt(function(){if(Pe!==B&&Pe!==ce){var At=ft.indexOf(Pe),Ot=ft[At+1],jt=ye(Pe);jt===et?we(Ot,!0):Ot&&Ue(function(Gt){function Xt(){Gt.isCanceled()||we(Ot,!0)}jt===!0?Xt():Promise.resolve(jt).then(Xt)})}},[Ae,Pe]),h.useEffect(function(){return function(){dt()}},[]),[bt,Pe]};function U(Ae,oe,ye,Be){var De=Be.motionEnter,Pe=De===void 0?!0:De,we=Be.motionAppear,Le=we===void 0?!0:we,Ye=Be.motionLeave,Ue=Ye===void 0?!0:Ye,dt=Be.motionDeadline,bt=Be.motionLeaveImmediately,ft=Be.onAppearPrepare,At=Be.onEnterPrepare,Ot=Be.onLeavePrepare,jt=Be.onAppearStart,Gt=Be.onEnterStart,Xt=Be.onLeaveStart,zn=Be.onAppearActive,fn=Be.onEnterActive,Bn=Be.onLeaveActive,On=Be.onAppearEnd,Mn=Be.onEnterEnd,_e=Be.onLeaveEnd,at=Be.onVisibleChanged,Vt=(0,z.Z)(),rn=(0,o.Z)(Vt,2),st=rn[0],ut=rn[1],$t=(0,z.Z)(A),nt=(0,o.Z)($t,2),gt=nt[0],Dt=nt[1],xn=(0,z.Z)(null),tn=(0,o.Z)(xn,2),Hn=tn[0],Nn=tn[1],pr=(0,h.useRef)(!1),gr=(0,h.useRef)(null);function Or(){return ye()}var ar=(0,h.useRef)(!1);function mr(){Dt(A,!0),Nn(null,!0)}function ea(lt){var xt=Or();if(!(lt&&!lt.deadline&<.target!==xt)){var St=ar.current,Lt;gt===L&&St?Lt=On==null?void 0:On(xt,lt):gt===I&&St?Lt=Mn==null?void 0:Mn(xt,lt):gt===$&&St&&(Lt=_e==null?void 0:_e(xt,lt)),gt!==A&&St&&Lt!==!1&&mr()}}var Lr=qe(ea),Kn=(0,o.Z)(Lr,1),zt=Kn[0],Ft=function(xt){var St,Lt,_t;switch(xt){case L:return St={},(0,i.Z)(St,K,ft),(0,i.Z)(St,H,jt),(0,i.Z)(St,ie,zn),St;case I:return Lt={},(0,i.Z)(Lt,K,At),(0,i.Z)(Lt,H,Gt),(0,i.Z)(Lt,ie,fn),Lt;case $:return _t={},(0,i.Z)(_t,K,Ot),(0,i.Z)(_t,H,Xt),(0,i.Z)(_t,ie,Bn),_t;default:return{}}},on=h.useMemo(function(){return Ft(gt)},[gt]),nn=V(gt,!Ae,function(lt){if(lt===K){var xt=on[K];return xt?xt(Or()):et}if(dn in on){var St;Nn(((St=on[dn])===null||St===void 0?void 0:St.call(on,Or(),null))||null)}return dn===ie&&(zt(Or()),dt>0&&(clearTimeout(gr.current),gr.current=setTimeout(function(){ea({deadline:!0})},dt))),dn===te&&mr(),Fe}),kt=(0,o.Z)(nn,2),hn=kt[0],dn=kt[1],$n=ue(dn);ar.current=$n,wt(function(){ut(oe);var lt=pr.current;pr.current=!0;var xt;!lt&&oe&&Le&&(xt=L),lt&&oe&&Pe&&(xt=I),(lt&&!oe&&Ue||!lt&&bt&&!oe&&Ue)&&(xt=$);var St=Ft(xt);xt&&(Ae||St[K])?(Dt(xt),hn()):Dt(A)},[oe]),(0,h.useEffect)(function(){(gt===L&&!Le||gt===I&&!Pe||gt===$&&!Ue)&&Dt(A)},[Le,Pe,Ue]),(0,h.useEffect)(function(){return function(){pr.current=!1,clearTimeout(gr.current)}},[]);var qn=h.useRef(!1);(0,h.useEffect)(function(){st&&(qn.current=!0),st!==void 0&>===A&&((qn.current||st)&&(at==null||at(st)),qn.current=!0)},[st,gt]);var ct=Hn;return on[K]&&dn===H&&(ct=(0,t.Z)({transition:"none"},ct)),[gt,dn,ct,st!=null?st:oe]}function N(Ae){var oe=Ae;(0,s.Z)(Ae)==="object"&&(oe=Ae.transitionSupport);function ye(De,Pe){return!!(De.motionName&&oe&&Pe!==!1)}var Be=h.forwardRef(function(De,Pe){var we=De.visible,Le=we===void 0?!0:we,Ye=De.removeOnLeave,Ue=Ye===void 0?!0:Ye,dt=De.forceRender,bt=De.children,ft=De.motionName,At=De.leavedClassName,Ot=De.eventProps,jt=h.useContext(p),Gt=jt.motion,Xt=ye(De,Gt),zn=(0,h.useRef)(),fn=(0,h.useRef)();function Bn(){try{return zn.current instanceof HTMLElement?zn.current:(0,l.Z)(fn.current)}catch(Nn){return null}}var On=U(Xt,Le,Bn,De),Mn=(0,o.Z)(On,4),_e=Mn[0],at=Mn[1],Vt=Mn[2],rn=Mn[3],st=h.useRef(rn);rn&&(st.current=!0);var ut=h.useCallback(function(Nn){zn.current=Nn,(0,v.mH)(Pe,Nn)},[Pe]),$t,nt=(0,t.Z)((0,t.Z)({},Ot),{},{visible:Le});if(!bt)$t=null;else if(_e===A)rn?$t=bt((0,t.Z)({},nt),ut):!Ue&&st.current&&At?$t=bt((0,t.Z)((0,t.Z)({},nt),{},{className:At}),ut):dt||!Ue&&!At?$t=bt((0,t.Z)((0,t.Z)({},nt),{},{style:{display:"none"}}),ut):$t=null;else{var gt,Dt;at===K?Dt="prepare":ue(at)?Dt="active":at===H&&(Dt="start");var xn=Ve(ft,"".concat(_e,"-").concat(Dt));$t=bt((0,t.Z)((0,t.Z)({},nt),{},{className:c()(Ve(ft,_e),(gt={},(0,i.Z)(gt,xn,xn&&Dt),(0,i.Z)(gt,ft,typeof ft=="string"),gt)),style:Vt}),ut)}if(h.isValidElement($t)&&(0,v.Yr)($t)){var tn=$t,Hn=tn.ref;Hn||($t=h.cloneElement($t,{ref:ut}))}return h.createElement(T,{ref:fn},$t)});return Be.displayName="CSSMotion",Be}var D=N(Me),ee=e(60698),se=e(86717),X="add",re="keep",Ie="remove",Se="removed";function he(Ae){var oe;return Ae&&(0,s.Z)(Ae)==="object"&&"key"in Ae?oe=Ae:oe={key:Ae},(0,t.Z)((0,t.Z)({},oe),{},{key:String(oe.key)})}function We(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ae.map(he)}function de(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ye=[],Be=0,De=oe.length,Pe=We(Ae),we=We(oe);Pe.forEach(function(Ue){for(var dt=!1,bt=Be;bt1});return Ye.forEach(function(Ue){ye=ye.filter(function(dt){var bt=dt.key,ft=dt.status;return bt!==Ue||ft!==Ie}),ye.forEach(function(dt){dt.key===Ue&&(dt.status=re)})}),ye}var le=["component","children","onVisibleChanged","onAllRemoved"],ve=["status"],xe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ze(Ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,ye=function(Be){(0,Z.Z)(Pe,Be);var De=(0,F.Z)(Pe);function Pe(){var we;(0,w.Z)(this,Pe);for(var Le=arguments.length,Ye=new Array(Le),Ue=0;Ue0){var qe=setTimeout(function(){Re()},ie*1e3);return function(){clearTimeout(qe)}}},[ie,ge,Q]);var Ve="".concat($,"-notice");return s.createElement("div",(0,n.Z)({},k,{ref:I,className:m()(Ve,K,(0,C.Z)({},"".concat(Ve,"-closable"),W)),style:B,onMouseEnter:function(){Me(!0)},onMouseLeave:function(){Me(!1)},onClick:Y}),s.createElement("div",{className:"".concat(Ve,"-content")},te),W&&s.createElement("a",{tabIndex:0,className:"".concat(Ve,"-close"),onKeyDown:Qe,onClick:function(Mt){Mt.preventDefault(),Mt.stopPropagation(),Re()}},O))}),w=S,y=s.forwardRef(function(L,I){var $=L.prefixCls,B=$===void 0?"rc-notification":$,K=L.container,H=L.motion,ie=L.maxCount,ce=L.className,te=L.style,W=L.onAllRemoved,G=s.useState([]),O=(0,t.Z)(G,2),k=O[0],Y=O[1],P=function(qe){var Mt,wt=k.find(function(mt){return mt.key===qe});wt==null||(Mt=wt.onClose)===null||Mt===void 0||Mt.call(wt),Y(function(mt){return mt.filter(function(Nt){return Nt.key!==qe})})};s.useImperativeHandle(I,function(){return{open:function(qe){Y(function(Mt){var wt=(0,i.Z)(Mt),mt=wt.findIndex(function(He){return He.key===qe.key}),Nt=(0,c.Z)({},qe);if(mt>=0){var ke;Nt.times=(((ke=Mt[mt])===null||ke===void 0?void 0:ke.times)||0)+1,wt[mt]=Nt}else Nt.times=0,wt.push(Nt);return ie>0&&wt.length>ie&&(wt=wt.slice(-ie)),wt})},close:function(qe){P(qe)},destroy:function(){Y([])}}});var Q=s.useState({}),fe=(0,t.Z)(Q,2),Ce=fe[0],ge=fe[1];s.useEffect(function(){var Ve={};k.forEach(function(qe){var Mt=qe.placement,wt=Mt===void 0?"topRight":Mt;wt&&(Ve[wt]=Ve[wt]||[],Ve[wt].push(qe))}),Object.keys(Ce).forEach(function(qe){Ve[qe]=Ve[qe]||[]}),ge(Ve)},[k]);var Me=function(qe){ge(function(Mt){var wt=(0,c.Z)({},Mt),mt=wt[qe]||[];return mt.length||delete wt[qe],wt})},Re=s.useRef(!1);if(s.useEffect(function(){Object.keys(Ce).length>0?Re.current=!0:Re.current&&(W==null||W(),Re.current=!1)},[Ce]),!K)return null;var Qe=Object.keys(Ce);return(0,l.createPortal)(s.createElement(s.Fragment,null,Qe.map(function(Ve){var qe=Ce[Ve],Mt=qe.map(function(mt){return{config:mt,key:mt.key}}),wt=typeof H=="function"?H(Ve):H;return s.createElement(v.V4,(0,n.Z)({key:Ve,className:m()(B,"".concat(B,"-").concat(Ve),ce==null?void 0:ce(Ve)),style:te==null?void 0:te(Ve),keys:Mt,motionAppear:!0},wt,{onAllRemoved:function(){Me(Ve)}}),function(mt,Nt){var ke=mt.config,He=mt.className,et=mt.style,Fe=ke.key,ue=ke.times,V=ke.className,U=ke.style;return s.createElement(w,(0,n.Z)({},ke,{ref:Nt,prefixCls:B,className:m()(He,V),style:(0,c.Z)((0,c.Z)({},et),U),times:ue,key:Fe,eventKey:Fe,onNoticeClose:P}))})})),K)}),Z=y,F=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],R=function(){return document.body},T=0;function z(){for(var L={},I=arguments.length,$=new Array(I),B=0;B0&&arguments[0]!==void 0?arguments[0]:{},I=L.getContainer,$=I===void 0?R:I,B=L.motion,K=L.prefixCls,H=L.maxCount,ie=L.className,ce=L.style,te=L.onAllRemoved,W=(0,o.Z)(L,F),G=s.useState(),O=(0,t.Z)(G,2),k=O[0],Y=O[1],P=s.useRef(),Q=s.createElement(Z,{container:k,ref:P,prefixCls:K,motion:B,maxCount:H,className:ie,style:ce,onAllRemoved:te}),fe=s.useState([]),Ce=(0,t.Z)(fe,2),ge=Ce[0],Me=Ce[1],Re=s.useMemo(function(){return{open:function(Ve){var qe=z(W,Ve);(qe.key===null||qe.key===void 0)&&(qe.key="rc-notification-".concat(T),T+=1),Me(function(Mt){return[].concat((0,i.Z)(Mt),[{type:"open",config:qe}])})},close:function(Ve){Me(function(qe){return[].concat((0,i.Z)(qe),[{type:"close",key:Ve}])})},destroy:function(){Me(function(Ve){return[].concat((0,i.Z)(Ve),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){Y($())}),s.useEffect(function(){P.current&&ge.length&&(ge.forEach(function(Qe){switch(Qe.type){case"open":P.current.open(Qe.config);break;case"close":P.current.close(Qe.key);break;case"destroy":P.current.destroy();break}}),Me(function(Qe){return Qe.filter(function(Ve){return!ge.includes(Ve)})}))},[ge]),[Re,Q]}},9257:function(M,b,e){"use strict";e.d(b,{Z:function(){return Y}});var i=e(60698),t=e(57370),o=e(28314),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(19425),h=e(81334),m=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],C=void 0;function p(P,Q){var fe=P.prefixCls,Ce=P.invalidate,ge=P.item,Me=P.renderItem,Re=P.responsive,Qe=P.responsiveDisabled,Ve=P.registerSize,qe=P.itemKey,Mt=P.className,wt=P.style,mt=P.children,Nt=P.display,ke=P.order,He=P.component,et=He===void 0?"div":He,Fe=(0,s.Z)(P,m),ue=Re&&!Nt;function V(se){Ve(qe,se)}n.useEffect(function(){return function(){V(null)}},[]);var U=Me&&ge!==C?Me(ge):mt,N;Ce||(N={opacity:ue?0:1,height:ue?0:C,overflowY:ue?"hidden":C,order:Re?ke:C,pointerEvents:ue?"none":C,position:ue?"absolute":C});var D={};ue&&(D["aria-hidden"]=!0);var ee=n.createElement(et,(0,i.Z)({className:l()(!Ce&&fe,Mt),style:(0,t.Z)((0,t.Z)({},N),wt)},D,Fe,{ref:Q}),U);return Re&&(ee=n.createElement(v.Z,{onResize:function(X){var re=X.offsetWidth;V(re)},disabled:Qe},ee)),ee}var S=n.forwardRef(p);S.displayName="Item";var w=S,y=e(51729),Z=e(26736),F=e(61834);function R(P){if(typeof MessageChannel=="undefined")(0,F.Z)(P);else{var Q=new MessageChannel;Q.port1.onmessage=function(){return P()},Q.port2.postMessage(void 0)}}function T(){var P=n.useRef(null),Q=function(Ce){P.current||(P.current=[],R(function(){(0,Z.unstable_batchedUpdates)(function(){P.current.forEach(function(ge){ge()}),P.current=null})})),P.current.push(Ce)};return Q}function z(P,Q){var fe=n.useState(Q),Ce=(0,o.Z)(fe,2),ge=Ce[0],Me=Ce[1],Re=(0,y.Z)(function(Qe){P(function(){Me(Qe)})});return[ge,Re]}var A=n.createContext(null),L=["component"],I=["className"],$=["className"],B=function(Q,fe){var Ce=n.useContext(A);if(!Ce){var ge=Q.component,Me=ge===void 0?"div":ge,Re=(0,s.Z)(Q,L);return n.createElement(Me,(0,i.Z)({},Re,{ref:fe}))}var Qe=Ce.className,Ve=(0,s.Z)(Ce,I),qe=Q.className,Mt=(0,s.Z)(Q,$);return n.createElement(A.Provider,{value:null},n.createElement(w,(0,i.Z)({ref:fe,className:l()(Qe,qe)},Ve,Mt)))},K=n.forwardRef(B);K.displayName="RawItem";var H=K,ie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ce="responsive",te="invalidate";function W(P){return"+ ".concat(P.length," ...")}function G(P,Q){var fe=P.prefixCls,Ce=fe===void 0?"rc-overflow":fe,ge=P.data,Me=ge===void 0?[]:ge,Re=P.renderItem,Qe=P.renderRawItem,Ve=P.itemKey,qe=P.itemWidth,Mt=qe===void 0?10:qe,wt=P.ssr,mt=P.style,Nt=P.className,ke=P.maxCount,He=P.renderRest,et=P.renderRawRest,Fe=P.suffix,ue=P.component,V=ue===void 0?"div":ue,U=P.itemComponent,N=P.onVisibleChange,D=(0,s.Z)(P,ie),ee=wt==="full",se=T(),X=z(se,null),re=(0,o.Z)(X,2),Ie=re[0],Se=re[1],he=Ie||0,We=z(se,new Map),de=(0,o.Z)(We,2),le=de[0],ve=de[1],xe=z(se,0),Ze=(0,o.Z)(xe,2),pe=Ze[0],Je=Ze[1],Ae=z(se,0),oe=(0,o.Z)(Ae,2),ye=oe[0],Be=oe[1],De=z(se,0),Pe=(0,o.Z)(De,2),we=Pe[0],Le=Pe[1],Ye=(0,n.useState)(null),Ue=(0,o.Z)(Ye,2),dt=Ue[0],bt=Ue[1],ft=(0,n.useState)(null),At=(0,o.Z)(ft,2),Ot=At[0],jt=At[1],Gt=n.useMemo(function(){return Ot===null&&ee?Number.MAX_SAFE_INTEGER:Ot||0},[Ot,Ie]),Xt=(0,n.useState)(!1),zn=(0,o.Z)(Xt,2),fn=zn[0],Bn=zn[1],On="".concat(Ce,"-item"),Mn=Math.max(pe,ye),_e=ke===ce,at=Me.length&&_e,Vt=ke===te,rn=at||typeof ke=="number"&&Me.length>ke,st=(0,n.useMemo)(function(){var zt=Me;return at?Ie===null&&ee?zt=Me:zt=Me.slice(0,Math.min(Me.length,he/Mt)):typeof ke=="number"&&(zt=Me.slice(0,ke)),zt},[Me,Mt,Ie,ke,at]),ut=(0,n.useMemo)(function(){return at?Me.slice(Gt+1):Me.slice(st.length)},[Me,st,at,Gt]),$t=(0,n.useCallback)(function(zt,Ft){var on;return typeof Ve=="function"?Ve(zt):(on=Ve&&(zt==null?void 0:zt[Ve]))!==null&&on!==void 0?on:Ft},[Ve]),nt=(0,n.useCallback)(Re||function(zt){return zt},[Re]);function gt(zt,Ft,on){Ot===zt&&(Ft===void 0||Ft===dt)||(jt(zt),on||(Bn(zthe){gt(nn-1,zt-kt-we+ye);break}}Fe&&Nn(0)+we>he&&bt(null)}},[he,le,ye,we,$t,st]);var pr=fn&&!!ut.length,gr={};dt!==null&&at&&(gr={position:"absolute",left:dt,top:0});var Or={prefixCls:On,responsive:at,component:U,invalidate:Vt},ar=Qe?function(zt,Ft){var on=$t(zt,Ft);return n.createElement(A.Provider,{key:on,value:(0,t.Z)((0,t.Z)({},Or),{},{order:Ft,item:zt,itemKey:on,registerSize:xn,display:Ft<=Gt})},Qe(zt,Ft))}:function(zt,Ft){var on=$t(zt,Ft);return n.createElement(w,(0,i.Z)({},Or,{order:Ft,key:on,item:zt,renderItem:nt,itemKey:on,registerSize:xn,display:Ft<=Gt}))},mr,ea={order:pr?Gt:Number.MAX_SAFE_INTEGER,className:"".concat(On,"-rest"),registerSize:tn,display:pr};if(et)et&&(mr=n.createElement(A.Provider,{value:(0,t.Z)((0,t.Z)({},Or),ea)},et(ut)));else{var Lr=He||W;mr=n.createElement(w,(0,i.Z)({},Or,ea),typeof Lr=="function"?Lr(ut):Lr)}var Kn=n.createElement(V,(0,i.Z)({className:l()(!Vt&&Ce,Nt),style:mt,ref:Q},D),st.map(ar),rn?mr:null,Fe&&n.createElement(w,(0,i.Z)({},Or,{responsive:_e,responsiveDisabled:!at,order:Gt,className:"".concat(On,"-suffix"),registerSize:Hn,display:!0,style:gr}),Fe));return _e&&(Kn=n.createElement(v.Z,{onResize:Dt,disabled:!at},Kn)),Kn}var O=n.forwardRef(G);O.displayName="Overflow",O.Item=H,O.RESPONSIVE=ce,O.INVALIDATE=te;var k=O,Y=k},57522:function(M,b){"use strict";b.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"}},23737:function(M,b){"use strict";b.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},19425:function(M,b,e){"use strict";e.d(b,{Z:function(){return ce}});var i=e(60698),t=e(58757),o=e(42156),s=e(75556),n=e(57370),c=e(21319),l=e(69188),v=e(20759),h=new Map;function m(te){te.forEach(function(W){var G,O=W.target;(G=h.get(O))===null||G===void 0||G.forEach(function(k){return k(O)})})}var C=new v.Z(m),p=null,S=null;function w(te,W){h.has(te)||(h.set(te,new Set),C.observe(te)),h.get(te).add(W)}function y(te,W){h.has(te)&&(h.get(te).delete(W),h.get(te).size||(C.unobserve(te),h.delete(te)))}var Z=e(60412),F=e(14346),R=e(87498),T=e(73726),z=function(te){(0,R.Z)(G,te);var W=(0,T.Z)(G);function G(){return(0,Z.Z)(this,G),W.apply(this,arguments)}return(0,F.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(t.Component),A=t.createContext(null);function L(te){var W=te.children,G=te.onBatchResize,O=t.useRef(0),k=t.useRef([]),Y=t.useContext(A),P=t.useCallback(function(Q,fe,Ce){O.current+=1;var ge=O.current;k.current.push({size:Q,element:fe,data:Ce}),Promise.resolve().then(function(){ge===O.current&&(G==null||G(k.current),k.current=[])}),Y==null||Y(Q,fe,Ce)},[G,Y]);return t.createElement(A.Provider,{value:P},W)}function I(te,W){var G=te.children,O=te.disabled,k=t.useRef(null),Y=t.useRef(null),P=t.useContext(A),Q=typeof G=="function",fe=Q?G(k):G,Ce=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ge=!Q&&t.isValidElement(fe)&&(0,c.Yr)(fe),Me=ge?fe.ref:null,Re=t.useMemo(function(){return(0,c.sQ)(Me,k)},[Me,k]),Qe=function(){return(0,l.Z)(k.current)||(0,l.Z)(Y.current)};t.useImperativeHandle(W,function(){return Qe()});var Ve=t.useRef(te);Ve.current=te;var qe=t.useCallback(function(Mt){var wt=Ve.current,mt=wt.onResize,Nt=wt.data,ke=Mt.getBoundingClientRect(),He=ke.width,et=ke.height,Fe=Mt.offsetWidth,ue=Mt.offsetHeight,V=Math.floor(He),U=Math.floor(et);if(Ce.current.width!==V||Ce.current.height!==U||Ce.current.offsetWidth!==Fe||Ce.current.offsetHeight!==ue){var N={width:V,height:U,offsetWidth:Fe,offsetHeight:ue};Ce.current=N;var D=Fe===Math.round(He)?He:Fe,ee=ue===Math.round(et)?et:ue,se=(0,n.Z)((0,n.Z)({},N),{},{offsetWidth:D,offsetHeight:ee});P==null||P(se,Mt,Nt),mt&&Promise.resolve().then(function(){mt(se,Mt)})}},[]);return t.useEffect(function(){var Mt=Qe();return Mt&&!O&&w(Mt,qe),function(){return y(Mt,qe)}},[k.current,O]),t.createElement(z,{ref:Y},ge?t.cloneElement(fe,{ref:Re}):fe)}var $=t.forwardRef(I),B=$,K="rc-observer-key";function H(te,W){var G=te.children,O=typeof G=="function"?[G]:(0,o.Z)(G);return O.map(function(k,Y){var P=(k==null?void 0:k.key)||"".concat(K,"-").concat(Y);return t.createElement(B,(0,i.Z)({},te,{key:P,ref:Y===0?W:void 0}),k)})}var ie=t.forwardRef(H);ie.Collection=L;var ce=ie},25092:function(M,b,e){"use strict";e.d(b,{ZP:function(){return l}});var i=e(28314),t=e(58757),o=e(19075),s=0,n=(0,o.Z)();function c(){var v;return n?(v=s,s+=1):v="TEST_OR_SSR",v}function l(v){var h=t.useState(),m=(0,i.Z)(h,2),C=m[0],p=m[1];return t.useEffect(function(){p("rc_select_".concat(c()))},[]),v||C}},18510:function(M,b,e){"use strict";e.d(b,{Ac:function(){return Se},Xo:function(){return Be},Wx:function(){return Pe},ZP:function(){return rn},lk:function(){return R}});var i=e(60698),t=e(29140),o=e(37734),s=e(57370),n=e(28314),c=e(47075),l=e(38790),v=e(60409),h=e(75556),m=e(58757),C=e(87608),p=e.n(C),S=e(81334),w=e(21618),y=e(29639),Z=e(21319),F=m.createContext(null);function R(){return m.useContext(F)}function T(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ut=m.useState(!1),$t=(0,n.Z)(ut,2),nt=$t[0],gt=$t[1],Dt=m.useRef(null),xn=function(){window.clearTimeout(Dt.current)};m.useEffect(function(){return xn},[]);var tn=function(Nn,pr){xn(),Dt.current=window.setTimeout(function(){gt(Nn),pr&&pr()},st)};return[nt,tn,xn]}function z(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ut=m.useRef(null),$t=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout($t.current)}},[]);function nt(gt){(gt||ut.current===null)&&(ut.current=gt),window.clearTimeout($t.current),$t.current=window.setTimeout(function(){ut.current=null},st)}return[function(){return ut.current},nt]}function A(st,ut,$t,nt){var gt=m.useRef(null);gt.current={open:ut,triggerOpen:$t,customizedTrigger:nt},m.useEffect(function(){function Dt(xn){var tn;if(!((tn=gt.current)!==null&&tn!==void 0&&tn.customizedTrigger)){var Hn=xn.target;Hn.shadowRoot&&xn.composed&&(Hn=xn.composedPath()[0]||Hn),gt.current.open&&st().filter(function(Nn){return Nn}).every(function(Nn){return!Nn.contains(Hn)&&Nn!==Hn})&>.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Dt),function(){return window.removeEventListener("mousedown",Dt)}},[])}var L=e(33926),I=e(9257),$=function(ut){var $t=ut.className,nt=ut.customizeIcon,gt=ut.customizeIconProps,Dt=ut.onMouseDown,xn=ut.onClick,tn=ut.children,Hn;return typeof nt=="function"?Hn=nt(gt):Hn=nt,m.createElement("span",{className:$t,onMouseDown:function(pr){pr.preventDefault(),Dt&&Dt(pr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:xn,"aria-hidden":!0},Hn!==void 0?Hn:m.createElement("span",{className:p()($t.split(/\s+/).map(function(Nn){return"".concat(Nn,"-icon")}))},tn))},B=$,K=function(ut,$t){var nt,gt,Dt=ut.prefixCls,xn=ut.id,tn=ut.inputElement,Hn=ut.disabled,Nn=ut.tabIndex,pr=ut.autoFocus,gr=ut.autoComplete,Or=ut.editable,ar=ut.activeDescendantId,mr=ut.value,ea=ut.maxLength,Lr=ut.onKeyDown,Kn=ut.onMouseDown,zt=ut.onChange,Ft=ut.onPaste,on=ut.onCompositionStart,nn=ut.onCompositionEnd,kt=ut.open,hn=ut.attrs,dn=tn||m.createElement("input",null),$n=dn,qn=$n.ref,ct=$n.props,lt=ct.onKeyDown,xt=ct.onChange,St=ct.onMouseDown,Lt=ct.onCompositionStart,_t=ct.onCompositionEnd,Wt=ct.style;return(0,h.Kp)(!("maxLength"in dn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),dn=m.cloneElement(dn,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},ct),{},{id:xn,ref:(0,Z.sQ)($t,qn),disabled:Hn,tabIndex:Nn,autoComplete:gr||"off",autoFocus:pr,className:p()("".concat(Dt,"-selection-search-input"),(nt=dn)===null||nt===void 0||(gt=nt.props)===null||gt===void 0?void 0:gt.className),role:"combobox","aria-label":"Search","aria-expanded":kt,"aria-haspopup":"listbox","aria-owns":"".concat(xn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(xn,"_list"),"aria-activedescendant":kt?ar:void 0},hn),{},{value:Or?mr:"",maxLength:ea,readOnly:!Or,unselectable:Or?null:"on",style:(0,s.Z)((0,s.Z)({},Wt),{},{opacity:Or?null:0}),onKeyDown:function(kn){Lr(kn),lt&<(kn)},onMouseDown:function(kn){Kn(kn),St&&St(kn)},onChange:function(kn){zt(kn),xt&&xt(kn)},onCompositionStart:function(kn){on(kn),Lt&&Lt(kn)},onCompositionEnd:function(kn){nn(kn),_t&&_t(kn)},onPaste:Ft})),dn},H=m.forwardRef(K);H.displayName="Input";var ie=H;function ce(st){return Array.isArray(st)?st:st!==void 0?[st]:[]}var te=typeof window!="undefined"&&window.document&&window.document.documentElement,W=te;function G(st){return st!=null}function O(st){return!st&&st!==0}function k(st){return["string","number"].includes((0,l.Z)(st))}function Y(st){var ut=void 0;return st&&(k(st.title)?ut=st.title.toString():k(st.label)&&(ut=st.label.toString())),ut}function P(st,ut){W?m.useLayoutEffect(st,ut):m.useEffect(st,ut)}function Q(st){var ut;return(ut=st.key)!==null&&ut!==void 0?ut:st.value}var fe=function(ut){ut.preventDefault(),ut.stopPropagation()},Ce=function(ut){var $t=ut.id,nt=ut.prefixCls,gt=ut.values,Dt=ut.open,xn=ut.searchValue,tn=ut.autoClearSearchValue,Hn=ut.inputRef,Nn=ut.placeholder,pr=ut.disabled,gr=ut.mode,Or=ut.showSearch,ar=ut.autoFocus,mr=ut.autoComplete,ea=ut.activeDescendantId,Lr=ut.tabIndex,Kn=ut.removeIcon,zt=ut.maxTagCount,Ft=ut.maxTagTextLength,on=ut.maxTagPlaceholder,nn=on===void 0?function(Kr){return"+ ".concat(Kr.length," ...")}:on,kt=ut.tagRender,hn=ut.onToggleOpen,dn=ut.onRemove,$n=ut.onInputChange,qn=ut.onInputPaste,ct=ut.onInputKeyDown,lt=ut.onInputMouseDown,xt=ut.onInputCompositionStart,St=ut.onInputCompositionEnd,Lt=m.useRef(null),_t=(0,m.useState)(0),Wt=(0,n.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,m.useState)(!1),cr=(0,n.Z)(hr,2),Dn=cr[0],Rr=cr[1],or="".concat(nt,"-selection"),Gr=Dt||gr==="multiple"&&tn===!1||gr==="tags"?xn:"",Ir=gr==="tags"||gr==="multiple"&&tn===!1||Or&&(Dt||Dn);P(function(){kn(Lt.current.scrollWidth)},[Gr]);function jn(Kr,aa,Jr,Zr,Ca){return m.createElement("span",{className:p()("".concat(or,"-item"),(0,o.Z)({},"".concat(or,"-item-disabled"),Jr)),title:Y(Kr)},m.createElement("span",{className:"".concat(or,"-item-content")},aa),Zr&&m.createElement(B,{className:"".concat(or,"-item-remove"),onMouseDown:fe,onClick:Ca,customizeIcon:Kn},"\xD7"))}function vn(Kr,aa,Jr,Zr,Ca){var la=function(In){fe(In),hn(!Dt)};return m.createElement("span",{onMouseDown:la},kt({label:aa,value:Kr,disabled:Jr,closable:Zr,onClose:Ca}))}function Ln(Kr){var aa=Kr.disabled,Jr=Kr.label,Zr=Kr.value,Ca=!pr&&!aa,la=Jr;if(typeof Ft=="number"&&(typeof Jr=="string"||typeof Jr=="number")){var Tn=String(la);Tn.length>Ft&&(la="".concat(Tn.slice(0,Ft),"..."))}var In=function(Nr){Nr&&Nr.stopPropagation(),dn(Kr)};return typeof kt=="function"?vn(Zr,la,aa,Ca,In):jn(Kr,la,aa,Ca,In)}function Zn(Kr){var aa=typeof nn=="function"?nn(Kr):nn;return jn({title:aa},aa,!1)}var yr=m.createElement("div",{className:"".concat(or,"-search"),style:{width:yn},onFocus:function(){Rr(!0)},onBlur:function(){Rr(!1)}},m.createElement(ie,{ref:Hn,open:Dt,prefixCls:nt,id:$t,inputElement:null,disabled:pr,autoFocus:ar,autoComplete:mr,editable:Ir,activeDescendantId:ea,value:Gr,onKeyDown:ct,onMouseDown:lt,onChange:$n,onPaste:qn,onCompositionStart:xt,onCompositionEnd:St,tabIndex:Lr,attrs:(0,L.Z)(ut,!0)}),m.createElement("span",{ref:Lt,className:"".concat(or,"-search-mirror"),"aria-hidden":!0},Gr,"\xA0")),Fr=m.createElement(I.Z,{prefixCls:"".concat(or,"-overflow"),data:gt,renderItem:Ln,renderRest:Zn,suffix:yr,itemKey:Q,maxCount:zt});return m.createElement(m.Fragment,null,Fr,!gt.length&&!Gr&&m.createElement("span",{className:"".concat(or,"-placeholder")},Nn))},ge=Ce,Me=function(ut){var $t=ut.inputElement,nt=ut.prefixCls,gt=ut.id,Dt=ut.inputRef,xn=ut.disabled,tn=ut.autoFocus,Hn=ut.autoComplete,Nn=ut.activeDescendantId,pr=ut.mode,gr=ut.open,Or=ut.values,ar=ut.placeholder,mr=ut.tabIndex,ea=ut.showSearch,Lr=ut.searchValue,Kn=ut.activeValue,zt=ut.maxLength,Ft=ut.onInputKeyDown,on=ut.onInputMouseDown,nn=ut.onInputChange,kt=ut.onInputPaste,hn=ut.onInputCompositionStart,dn=ut.onInputCompositionEnd,$n=ut.title,qn=m.useState(!1),ct=(0,n.Z)(qn,2),lt=ct[0],xt=ct[1],St=pr==="combobox",Lt=St||ea,_t=Or[0],Wt=Lr||"";St&&Kn&&!lt&&(Wt=Kn),m.useEffect(function(){St&&xt(!1)},[St,Kn]);var yn=pr!=="combobox"&&!gr&&!ea?!1:!!Wt,kn=$n===void 0?Y(_t):$n,hr=function(){if(_t)return null;var Dn=yn?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(nt,"-selection-placeholder"),style:Dn},ar)};return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(nt,"-selection-search")},m.createElement(ie,{ref:Dt,prefixCls:nt,id:gt,open:gr,inputElement:$t,disabled:xn,autoFocus:tn,autoComplete:Hn,editable:Lt,activeDescendantId:Nn,value:Wt,onKeyDown:Ft,onMouseDown:on,onChange:function(Dn){xt(!0),nn(Dn)},onPaste:kt,onCompositionStart:hn,onCompositionEnd:dn,tabIndex:mr,attrs:(0,L.Z)(ut,!0),maxLength:St?zt:void 0})),!St&&_t?m.createElement("span",{className:"".concat(nt,"-selection-item"),title:kn,style:yn?{visibility:"hidden"}:void 0},_t.label):null,hr())},Re=Me;function Qe(st){return![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(st)}var Ve=function(ut,$t){var nt=(0,m.useRef)(null),gt=(0,m.useRef)(!1),Dt=ut.prefixCls,xn=ut.open,tn=ut.mode,Hn=ut.showSearch,Nn=ut.tokenWithEnter,pr=ut.autoClearSearchValue,gr=ut.onSearch,Or=ut.onSearchSubmit,ar=ut.onToggleOpen,mr=ut.onInputKeyDown,ea=ut.domRef;m.useImperativeHandle($t,function(){return{focus:function(){nt.current.focus()},blur:function(){nt.current.blur()}}});var Lr=z(0),Kn=(0,n.Z)(Lr,2),zt=Kn[0],Ft=Kn[1],on=function(Wt){var yn=Wt.which;(yn===y.Z.UP||yn===y.Z.DOWN)&&Wt.preventDefault(),mr&&mr(Wt),yn===y.Z.ENTER&&tn==="tags"&&!gt.current&&!xn&&(Or==null||Or(Wt.target.value)),Qe(yn)&&ar(!0)},nn=function(){Ft(!0)},kt=(0,m.useRef)(null),hn=function(Wt){gr(Wt,!0,gt.current)!==!1&&ar(!0)},dn=function(){gt.current=!0},$n=function(Wt){gt.current=!1,tn!=="combobox"&&hn(Wt.target.value)},qn=function(Wt){var yn=Wt.target.value;if(Nn&&kt.current&&/[\r\n]/.test(kt.current)){var kn=kt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yn=yn.replace(kn,kt.current)}kt.current=null,hn(yn)},ct=function(Wt){var yn=Wt.clipboardData,kn=yn.getData("text");kt.current=kn},lt=function(Wt){var yn=Wt.target;if(yn!==nt.current){var kn=document.body.style.msTouchAction!==void 0;kn?setTimeout(function(){nt.current.focus()}):nt.current.focus()}},xt=function(Wt){var yn=zt();Wt.target!==nt.current&&!yn&&tn!=="combobox"&&Wt.preventDefault(),(tn!=="combobox"&&(!Hn||!yn)||!xn)&&(xn&&pr!==!1&&gr("",!0,!1),ar())},St={inputRef:nt,onInputKeyDown:on,onInputMouseDown:nn,onInputChange:qn,onInputPaste:ct,onInputCompositionStart:dn,onInputCompositionEnd:$n},Lt=tn==="multiple"||tn==="tags"?m.createElement(ge,(0,i.Z)({},ut,St)):m.createElement(Re,(0,i.Z)({},ut,St));return m.createElement("div",{ref:ea,className:"".concat(Dt,"-selector"),onClick:lt,onMouseDown:xt},Lt)},qe=m.forwardRef(Ve);qe.displayName="Selector";var Mt=qe,wt=e(99863),mt=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Nt=function(ut){var $t=ut===!0?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"}}},ke=function(ut,$t){var nt=ut.prefixCls,gt=ut.disabled,Dt=ut.visible,xn=ut.children,tn=ut.popupElement,Hn=ut.containerWidth,Nn=ut.animation,pr=ut.transitionName,gr=ut.dropdownStyle,Or=ut.dropdownClassName,ar=ut.direction,mr=ar===void 0?"ltr":ar,ea=ut.placement,Lr=ut.builtinPlacements,Kn=ut.dropdownMatchSelectWidth,zt=ut.dropdownRender,Ft=ut.dropdownAlign,on=ut.getPopupContainer,nn=ut.empty,kt=ut.getTriggerDOMNode,hn=ut.onPopupVisibleChange,dn=ut.onPopupMouseEnter,$n=(0,c.Z)(ut,mt),qn="".concat(nt,"-dropdown"),ct=tn;zt&&(ct=zt(tn));var lt=m.useMemo(function(){return Lr||Nt(Kn)},[Lr,Kn]),xt=Nn?"".concat(qn,"-").concat(Nn):pr,St=m.useRef(null);m.useImperativeHandle($t,function(){return{getPopupElement:function(){return St.current}}});var Lt=(0,s.Z)({minWidth:Hn},gr);return typeof Kn=="number"?Lt.width=Kn:Kn&&(Lt.width=Hn),m.createElement(wt.Z,(0,i.Z)({},$n,{showAction:hn?["click"]:[],hideAction:hn?["click"]:[],popupPlacement:ea||(mr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:lt,prefixCls:qn,popupTransitionName:xt,popup:m.createElement("div",{ref:St,onMouseEnter:dn},ct),popupAlign:Ft,popupVisible:Dt,getPopupContainer:on,popupClassName:p()(Or,(0,o.Z)({},"".concat(qn,"-empty"),nn)),popupStyle:Lt,getTriggerDOMNode:kt,onPopupVisibleChange:hn}),xn)},He=m.forwardRef(ke);He.displayName="SelectTrigger";var et=He,Fe=e(6747);function ue(st,ut){var $t=st.key,nt;return"value"in st&&(nt=st.value),$t!=null?$t:nt!==void 0?nt:"rc-index-key-".concat(ut)}function V(st,ut){var $t=st||{},nt=$t.label,gt=$t.value,Dt=$t.options,xn=$t.groupLabel,tn=nt||(ut?"children":"label");return{label:tn,value:gt||"value",options:Dt||"options",groupLabel:xn||tn}}function U(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=ut.fieldNames,nt=ut.childrenAsData,gt=[],Dt=V($t,!1),xn=Dt.label,tn=Dt.value,Hn=Dt.options,Nn=Dt.groupLabel;function pr(gr,Or){gr.forEach(function(ar){if(Or||!(Hn in ar)){var mr=ar[tn];gt.push({key:ue(ar,gt.length),groupOption:Or,data:ar,label:ar[xn],value:mr})}else{var ea=ar[Nn];ea===void 0&&nt&&(ea=ar.label),gt.push({key:ue(ar,gt.length),group:!0,data:ar,label:ea}),pr(ar[Hn],!0)}})}return pr(st,!1),gt}function N(st){var ut=(0,s.Z)({},st);return"props"in ut||Object.defineProperty(ut,"props",{get:function(){return(0,h.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ut}}),ut}function D(st,ut){if(!ut||!ut.length)return null;var $t=!1;function nt(Dt,xn){var tn=(0,Fe.Z)(xn),Hn=tn[0],Nn=tn.slice(1);if(!Hn)return[Dt];var pr=Dt.split(Hn);return $t=$t||pr.length>1,pr.reduce(function(gr,Or){return[].concat((0,t.Z)(gr),(0,t.Z)(nt(Or,Nn)))},[]).filter(function(gr){return gr})}var gt=nt(st,ut);return $t?gt:null}function ee(st,ut,$t,nt,gt){var Dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,xn=arguments.length>6?arguments[6]:void 0,tn=arguments.length>7?arguments[7]:void 0,Hn=m.useMemo(function(){if((0,l.Z)(nt)==="object")return nt.clearIcon;if(gt)return gt},[nt,gt]),Nn=m.useMemo(function(){return!!(!Dt&&nt&&($t.length||xn)&&!(tn==="combobox"&&xn===""))},[nt,Dt,$t.length,xn,tn]);return{allowClear:Nn,clearIcon:m.createElement(B,{className:"".concat(st,"-clear"),onMouseDown:ut,customizeIcon:Hn},"\xD7")}}var se=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function re(st){return st==="tags"||st==="multiple"}var Ie=m.forwardRef(function(st,ut){var $t,nt,gt=st.id,Dt=st.prefixCls,xn=st.className,tn=st.showSearch,Hn=st.tagRender,Nn=st.direction,pr=st.omitDomProps,gr=st.displayValues,Or=st.onDisplayValuesChange,ar=st.emptyOptions,mr=st.notFoundContent,ea=mr===void 0?"Not Found":mr,Lr=st.onClear,Kn=st.mode,zt=st.disabled,Ft=st.loading,on=st.getInputElement,nn=st.getRawInputElement,kt=st.open,hn=st.defaultOpen,dn=st.onDropdownVisibleChange,$n=st.activeValue,qn=st.onActiveValueChange,ct=st.activeDescendantId,lt=st.searchValue,xt=st.autoClearSearchValue,St=st.onSearch,Lt=st.onSearchSplit,_t=st.tokenSeparators,Wt=st.allowClear,yn=st.suffixIcon,kn=st.clearIcon,hr=st.OptionList,cr=st.animation,Dn=st.transitionName,Rr=st.dropdownStyle,or=st.dropdownClassName,Gr=st.dropdownMatchSelectWidth,Ir=st.dropdownRender,jn=st.dropdownAlign,vn=st.placement,Ln=st.builtinPlacements,Zn=st.getPopupContainer,yr=st.showAction,Fr=yr===void 0?[]:yr,Kr=st.onFocus,aa=st.onBlur,Jr=st.onKeyUp,Zr=st.onKeyDown,Ca=st.onMouseDown,la=(0,c.Z)(st,se),Tn=re(Kn),In=(tn!==void 0?tn:Tn)||Kn==="combobox",Yn=(0,s.Z)({},la);X.forEach(function(ro){delete Yn[ro]}),pr==null||pr.forEach(function(ro){delete Yn[ro]});var Nr=m.useState(!1),zr=(0,n.Z)(Nr,2),Br=zr[0],Ma=zr[1];m.useEffect(function(){Ma((0,w.Z)())},[]);var uo=m.useRef(null),to=m.useRef(null),Io=m.useRef(null),ja=m.useRef(null),Ua=m.useRef(null),qa=T(),Fo=(0,n.Z)(qa,3),Lo=Fo[0],Bo=Fo[1],ot=Fo[2];m.useImperativeHandle(ut,function(){var ro,Va;return{focus:(ro=ja.current)===null||ro===void 0?void 0:ro.focus,blur:(Va=ja.current)===null||Va===void 0?void 0:Va.blur,scrollTo:function(si){var Zo;return(Zo=Ua.current)===null||Zo===void 0?void 0:Zo.scrollTo(si)}}});var yt=m.useMemo(function(){var ro;if(Kn!=="combobox")return lt;var Va=(ro=gr[0])===null||ro===void 0?void 0:ro.value;return typeof Va=="string"||typeof Va=="number"?String(Va):""},[lt,Kn,gr]),be=Kn==="combobox"&&typeof on=="function"&&on()||null,Bt=typeof nn=="function"&&nn(),Jt=(0,Z.x1)(to,Bt==null||($t=Bt.props)===null||$t===void 0?void 0:$t.ref),Xn=m.useState(!1),Gn=(0,n.Z)(Xn,2),br=Gn[0],ta=Gn[1];(0,S.Z)(function(){ta(!0)},[]);var ka=(0,v.Z)(!1,{defaultValue:hn,value:kt}),kr=(0,n.Z)(ka,2),Dr=kr[0],wr=kr[1],sr=br?Dr:!1,dr=!ea&&ar;(zt||dr&&sr&&Kn==="combobox")&&(sr=!1);var jr=dr?!1:sr,va=m.useCallback(function(ro){var Va=ro!==void 0?ro:!sr;zt||(wr(Va),sr!==Va&&(dn==null||dn(Va)))},[zt,sr,wr,dn]),co=m.useMemo(function(){return(_t||[]).some(function(ro){return[` +}`;var xi=Uf(function(){return ca(Pt,wo+"return "+sa).apply(t,Yt)});if(xi.source=sa,vf(xi))throw xi;return xi}function E0(g){return is(g).toLowerCase()}function C0(g){return is(g).toUpperCase()}function x0(g,E,ne){if(g=is(g),g&&(ne||E===t))return To(g);if(!g||!(E=Hs(E)))return g;var Te=Ko(g),it=Ko(E),Pt=Ao(Te,it),Yt=ai(Te,it)+1;return Nl(Te,Pt,Yt).join("")}function I0(g,E,ne){if(g=is(g),g&&(ne||E===t))return g.slice(0,Ni(g)+1);if(!g||!(E=Hs(E)))return g;var Te=Ko(g),it=ai(Te,Ko(E))+1;return Nl(Te,0,it).join("")}function A0(g,E,ne){if(g=is(g),g&&(ne||E===t))return g.replace(jt,"");if(!g||!(E=Hs(E)))return g;var Te=Ko(g),it=Ao(Te,Ko(E));return Nl(Te,it).join("")}function O0(g,E){var ne=K,Te=H;if(Ls(E)){var it="separator"in E?E.separator:it;ne="length"in E?Si(E.length):ne,Te="omission"in E?Hs(E.omission):Te}g=is(g);var Pt=g.length;if(Di(g)){var Yt=Ko(g);Pt=Yt.length}if(ne>=Pt)return g;var mn=ne-Zo(Te);if(mn<1)return Te;var Ln=Yt?Nl(Yt,0,mn).join(""):g.slice(0,mn);if(it===t)return Ln+Te;if(Yt&&(mn+=Ln.length-mn),gf(it)){if(g.slice(mn).search(it)){var Yr,Vr=Ln;for(it.global||(it=Ho(it.source,is(at.exec(it))+"g")),it.lastIndex=0;Yr=it.exec(Vr);)var sa=Yr.index;Ln=Ln.slice(0,sa===t?mn:sa)}}else if(g.indexOf(Hs(it),mn)!=mn){var no=Ln.lastIndexOf(it);no>-1&&(Ln=Ln.slice(0,no))}return Ln+Te}function D0(g){return g=is(g),g&&Pe.test(g)?g.replace(Be,Ji):g}var w0=me(function(g,E,ne){return g+(ne?" ":"")+E.toUpperCase()}),hf=_("toUpperCase");function Zf(g,E,ne){return g=is(g),E=ne?t:E,E===t?Fi(g)?hs(g):ln(g):g.match(E)||[]}var Uf=Fa(function(g,E){try{return Kn(g,t,E)}catch(ne){return vf(ne)?ne:new Cr(ne)}}),T0=Bi(function(g,E){return ea(E,function(ne){ne=hu(ne),ia(g,ne,Ya(g[ne],g))}),g});function j0(g){var E=g==null?0:g.length,ne=va();return g=E?dr(g,function(Te){if(typeof Te[1]!="function")throw new Jo(c);return[ne(Te[0]),Te[1]]}):[],Fa(function(Te){for(var it=-1;++itk)return[];var ne=Q,Te=ji(g,Q);E=va(E),g-=Q;for(var it=No(Te,E);++ne0||E<0)?new Vo(ne):(g<0?ne=ne.takeRight(-g):g&&(ne=ne.drop(g)),E!==t&&(E=Si(E),ne=E<0?ne.dropRight(-E):ne.take(E-g)),ne)},Vo.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Vo.prototype.toArray=function(){return this.take(Q)},Oa(Vo.prototype,function(g,E){var ne=/^(?:filter|find|map|reject)|While$/.test(E),Te=/^(?:head|last)$/.test(E),it=It[Te?"take"+(E=="last"?"Right":""):E],Pt=Te||/^find/.test(E);it&&(It.prototype[E]=function(){var Yt=this.__wrapped__,mn=Te?[1]:arguments,Ln=Yt instanceof Vo,Yr=mn[0],Vr=Ln||hi(Yt),sa=function($i){var ki=it.apply(It,Tr([$i],mn));return Te&&no?ki[0]:ki};Vr&&ne&&typeof Yr=="function"&&Yr.length!=1&&(Ln=Vr=!1);var no=this.__chain__,wo=!!this.__actions__.length,ti=Pt&&!no,xi=Ln&&!wo;if(!Pt&&Vr){Yt=xi?Yt:new Vo(this);var ni=g.apply(Yt,mn);return ni.__actions__.push({func:yu,args:[sa],thisArg:t}),new qi(ni,no)}return ti&&xi?g.apply(this,mn):(ni=this.thru(sa),ti?Te?ni.value()[0]:ni.value():ni)})}),ea(["pop","push","shift","sort","splice","unshift"],function(g){var E=Wi[g],ne=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",Te=/^(?:pop|shift)$/.test(g);It.prototype[g]=function(){var it=arguments;if(Te&&!this.__chain__){var Pt=this.value();return E.apply(hi(Pt)?Pt:[],it)}return this[ne](function(Yt){return E.apply(hi(Yt)?Yt:[],it)})}}),Oa(Vo.prototype,function(g,E){var ne=It[E];if(ne){var Te=ne.name+"";ri.call(Sl,Te)||(Sl[Te]=[]),Sl[Te].push({name:E,func:ne})}}),Sl[on(t,F).name]=[{name:"wrapper",func:t}],Vo.prototype.clone=yo,Vo.prototype.reverse=eu,Vo.prototype.value=tu,It.prototype.at=nd,It.prototype.chain=fc,It.prototype.commit=rd,It.prototype.next=xd,It.prototype.plant=of,It.prototype.reverse=Ad,It.prototype.toJSON=It.prototype.valueOf=It.prototype.value=sf,It.prototype.first=It.prototype.head,Js&&(It.prototype[Js]=Id),It},bl=Ns();Pa._=bl,i=function(){return bl}.call(b,e,b,M),i!==t&&(M.exports=i)}).call(this)},80231:function(M,b,e){var i=e(83250),t=function(){return i.Date.now()};M.exports=t},84506:function(M){function b(){return[]}M.exports=b},37999:function(M){function b(){return!1}M.exports=b},14633:function(M,b,e){var i=e(77837),t=e(93702),o="Expected a function";function s(n,c,l){var v=!0,h=!0;if(typeof n!="function")throw new TypeError(o);return t(l)&&(v="leading"in l?!!l.leading:v,h="trailing"in l?!!l.trailing:h),i(n,c,{leading:v,maxWait:c,trailing:h})}M.exports=s},29153:function(M,b,e){var i=e(21656),t=e(93702),o=e(52624),s=0/0,n=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,v=parseInt;function h(m){if(typeof m=="number")return m;if(o(m))return s;if(t(m)){var C=typeof m.valueOf=="function"?m.valueOf():m;m=t(C)?C+"":C}if(typeof m!="string")return m===0?m:+m;m=i(m);var p=c.test(m);return p||l.test(m)?v(m.slice(2),p?2:8):n.test(m)?s:+m}M.exports=h},85417:function(M,b,e){(function(i,t){t(e(6901))})(this,function(i){"use strict";var t=i.defineLocale("zh-cn",{months:"\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),weekdaysShort:"\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),weekdaysMin:"\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5E74M\u6708D\u65E5",LLL:"YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",LLLL:"YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5E74M\u6708D\u65E5",lll:"YYYY\u5E74M\u6708D\u65E5 HH:mm",llll:"YYYY\u5E74M\u6708D\u65E5dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(o,s){return o===12&&(o=0),s==="\u51CC\u6668"||s==="\u65E9\u4E0A"||s==="\u4E0A\u5348"?o:s==="\u4E0B\u5348"||s==="\u665A\u4E0A"?o+12:o>=11?o:o+12},meridiem:function(o,s,n){var c=o*100+s;return c<600?"\u51CC\u6668":c<900?"\u65E9\u4E0A":c<1130?"\u4E0A\u5348":c<1230?"\u4E2D\u5348":c<1800?"\u4E0B\u5348":"\u665A\u4E0A"},calendar:{sameDay:"[\u4ECA\u5929]LT",nextDay:"[\u660E\u5929]LT",nextWeek:function(o){return o.week()!==this.week()?"[\u4E0B]dddLT":"[\u672C]dddLT"},lastDay:"[\u6628\u5929]LT",lastWeek:function(o){return this.week()!==o.week()?"[\u4E0A]dddLT":"[\u672C]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(o,s){switch(s){case"d":case"D":case"DDD":return o+"\u65E5";case"M":return o+"\u6708";case"w":case"W":return o+"\u5468";default:return o}},relativeTime:{future:"%s\u540E",past:"%s\u524D",s:"\u51E0\u79D2",ss:"%d \u79D2",m:"1 \u5206\u949F",mm:"%d \u5206\u949F",h:"1 \u5C0F\u65F6",hh:"%d \u5C0F\u65F6",d:"1 \u5929",dd:"%d \u5929",w:"1 \u5468",ww:"%d \u5468",M:"1 \u4E2A\u6708",MM:"%d \u4E2A\u6708",y:"1 \u5E74",yy:"%d \u5E74"},week:{dow:1,doy:4}});return t})},6901:function(M,b,e){M=e.nmd(M);(function(i,t){M.exports=t()})(this,function(){"use strict";var i;function t(){return i.apply(null,arguments)}function o(j){i=j}function s(j){return j instanceof Array||Object.prototype.toString.call(j)==="[object Array]"}function n(j){return j!=null&&Object.prototype.toString.call(j)==="[object Object]"}function c(j,ae){return Object.prototype.hasOwnProperty.call(j,ae)}function l(j){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(j).length===0;var ae;for(ae in j)if(c(j,ae))return!1;return!0}function v(j){return j===void 0}function h(j){return typeof j=="number"||Object.prototype.toString.call(j)==="[object Number]"}function m(j){return j instanceof Date||Object.prototype.toString.call(j)==="[object Date]"}function C(j,ae){var je=[],Ge,ht=j.length;for(Ge=0;Ge>>0,Ge;for(Ge=0;Ge0)for(je=0;je=0;return(qt?je?"+":"":"-")+Math.pow(10,Math.max(0,ht)).toString().substr(1)+Ge}var P=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fe={},Ce={};function ge(j,ae,je,Ge){var ht=Ge;typeof Ge=="string"&&(ht=function(){return this[Ge]()}),j&&(Ce[j]=ht),ae&&(Ce[ae[0]]=function(){return Y(ht.apply(this,arguments),ae[1],ae[2])}),je&&(Ce[je]=function(){return this.localeData().ordinal(ht.apply(this,arguments),j)})}function Me(j){return j.match(/\[[\s\S]/)?j.replace(/^\[|\]$/g,""):j.replace(/\\/g,"")}function Ne(j){var ae=j.match(P),je,Ge;for(je=0,Ge=ae.length;je=0&&Q.test(j);)j=j.replace(Q,Ge),Q.lastIndex=0,je-=1;return j}var qe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Mt(j){var ae=this._longDateFormat[j],je=this._longDateFormat[j.toUpperCase()];return ae||!je?ae:(this._longDateFormat[j]=je.match(P).map(function(Ge){return Ge==="MMMM"||Ge==="MM"||Ge==="DD"||Ge==="dddd"?Ge.slice(1):Ge}).join(""),this._longDateFormat[j])}var wt="Invalid date";function gt(){return this._invalidDate}var Lt="%d",ke=/\d{1,2}/;function He(j){return this._ordinal.replace("%d",j)}var et={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Fe(j,ae,je,Ge){var ht=this._relativeTime[je];return ie(ht)?ht(j,ae,je,Ge):ht.replace(/%d/i,j)}function ue(j,ae){var je=this._relativeTime[j>0?"future":"past"];return ie(je)?je(ae):je.replace(/%s/i,ae)}var V={};function U(j,ae){var je=j.toLowerCase();V[je]=V[je+"s"]=V[ae]=j}function N(j){return typeof j=="string"?V[j]||V[j.toLowerCase()]:void 0}function D(j){var ae={},je,Ge;for(Ge in j)c(j,Ge)&&(je=N(Ge),je&&(ae[je]=j[Ge]));return ae}var ee={};function se(j,ae){ee[j]=ae}function X(j){var ae=[],je;for(je in j)c(j,je)&&ae.push({unit:je,priority:ee[je]});return ae.sort(function(Ge,ht){return Ge.priority-ht.priority}),ae}function re(j){return j%4===0&&j%100!==0||j%400===0}function Ie(j){return j<0?Math.ceil(j)||0:Math.floor(j)}function Se(j){var ae=+j,je=0;return ae!==0&&isFinite(ae)&&(je=Ie(ae)),je}function he(j,ae){return function(je){return je!=null?(de(this,j,je),t.updateOffset(this,ae),this):We(this,j)}}function We(j,ae){return j.isValid()?j._d["get"+(j._isUTC?"UTC":"")+ae]():NaN}function de(j,ae,je){j.isValid()&&!isNaN(je)&&(ae==="FullYear"&&re(j.year())&&j.month()===1&&j.date()===29?(je=Se(je),j._d["set"+(j._isUTC?"UTC":"")+ae](je,j.month(),Cn(je,j.month()))):j._d["set"+(j._isUTC?"UTC":"")+ae](je))}function le(j){return j=N(j),ie(this[j])?this[j]():this}function ve(j,ae){if(typeof j=="object"){j=D(j);var je=X(j),Ge,ht=je.length;for(Ge=0;Ge68?1900:2e3)};var hn=he("FullYear",!0);function dn(){return re(this.year())}function Fn(j,ae,je,Ge,ht,qt,er){var to;return j<100&&j>=0?(to=new Date(j+400,ae,je,Ge,ht,qt,er),isFinite(to.getFullYear())&&to.setFullYear(j)):to=new Date(j,ae,je,Ge,ht,qt,er),to}function tr(j){var ae,je;return j<100&&j>=0?(je=Array.prototype.slice.call(arguments),je[0]=j+400,ae=new Date(Date.UTC.apply(null,je)),isFinite(ae.getUTCFullYear())&&ae.setUTCFullYear(j)):ae=new Date(Date.UTC.apply(null,arguments)),ae}function ct(j,ae,je){var Ge=7+ae-je,ht=(7+tr(j,0,Ge).getUTCDay()-ae)%7;return-ht+Ge-1}function lt(j,ae,je,Ge,ht){var qt=(7+je-Ge)%7,er=ct(j,Ge,ht),to=1+7*(ae-1)+qt+er,zo,Uo;return to<=0?(zo=j-1,Uo=kt(zo)+to):to>kt(j)?(zo=j+1,Uo=to-kt(j)):(zo=j,Uo=to),{year:zo,dayOfYear:Uo}}function xt(j,ae,je){var Ge=ct(j.year(),ae,je),ht=Math.floor((j.dayOfYear()-Ge-1)/7)+1,qt,er;return ht<1?(er=j.year()-1,qt=ht+St(er,ae,je)):ht>St(j.year(),ae,je)?(qt=ht-St(j.year(),ae,je),er=j.year()+1):(er=j.year(),qt=ht),{week:qt,year:er}}function St(j,ae,je){var Ge=ct(j,ae,je),ht=ct(j+1,ae,je);return(kt(j)-Ge+ht)/7}ge("w",["ww",2],"wo","week"),ge("W",["WW",2],"Wo","isoWeek"),U("week","w"),U("isoWeek","W"),se("week",5),se("isoWeek",5),Ot("w",oe),Ot("ww",oe,Ze),Ot("W",oe),Ot("WW",oe,Ze),$n(["w","ww","W","WW"],function(j,ae,je,Ge){ae[Ge.substr(0,1)]=Se(j)});function Nt(j){return xt(j,this._week.dow,this._week.doy).week}var _t={dow:0,doy:6};function Wt(){return this._week.dow}function yn(){return this._week.doy}function kn(j){var ae=this.localeData().week(this);return j==null?ae:this.add((j-ae)*7,"d")}function hr(j){var ae=xt(this,1,4).week;return j==null?ae:this.add((j-ae)*7,"d")}ge("d",0,"do","day"),ge("dd",0,0,function(j){return this.localeData().weekdaysMin(this,j)}),ge("ddd",0,0,function(j){return this.localeData().weekdaysShort(this,j)}),ge("dddd",0,0,function(j){return this.localeData().weekdays(this,j)}),ge("e",0,0,"weekday"),ge("E",0,0,"isoWeekday"),U("day","d"),U("weekday","e"),U("isoWeekday","E"),se("day",11),se("weekday",11),se("isoWeekday",11),Ot("d",oe),Ot("e",oe),Ot("E",oe),Ot("dd",function(j,ae){return ae.weekdaysMinRegex(j)}),Ot("ddd",function(j,ae){return ae.weekdaysShortRegex(j)}),Ot("dddd",function(j,ae){return ae.weekdaysRegex(j)}),$n(["dd","ddd","dddd"],function(j,ae,je,Ge){var ht=je._locale.weekdaysParse(j,Ge,je._strict);ht!=null?ae.d=ht:y(je).invalidWeekday=j}),$n(["d","e","E"],function(j,ae,je,Ge){ae[Ge]=Se(j)});function cr(j,ae){return typeof j!="string"?j:isNaN(j)?(j=ae.weekdaysParse(j),typeof j=="number"?j:null):parseInt(j,10)}function Dn(j,ae){return typeof j=="string"?ae.weekdaysParse(j)%7||7:isNaN(j)?null:j}function Rr(j,ae){return j.slice(ae,7).concat(j.slice(0,ae))}var or="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Gr="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ir="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Pn=ft,vn=ft,Nn=ft;function Zn(j,ae){var je=s(this._weekdays)?this._weekdays:this._weekdays[j&&j!==!0&&this._weekdays.isFormat.test(ae)?"format":"standalone"];return j===!0?Rr(je,this._week.dow):j?je[j.day()]:je}function yr(j){return j===!0?Rr(this._weekdaysShort,this._week.dow):j?this._weekdaysShort[j.day()]:this._weekdaysShort}function $r(j){return j===!0?Rr(this._weekdaysMin,this._week.dow):j?this._weekdaysMin[j.day()]:this._weekdaysMin}function Kr(j,ae,je){var Ge,ht,qt,er=j.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],Ge=0;Ge<7;++Ge)qt=S([2e3,1]).day(Ge),this._minWeekdaysParse[Ge]=this.weekdaysMin(qt,"").toLocaleLowerCase(),this._shortWeekdaysParse[Ge]=this.weekdaysShort(qt,"").toLocaleLowerCase(),this._weekdaysParse[Ge]=this.weekdays(qt,"").toLocaleLowerCase();return je?ae==="dddd"?(ht=Dt.call(this._weekdaysParse,er),ht!==-1?ht:null):ae==="ddd"?(ht=Dt.call(this._shortWeekdaysParse,er),ht!==-1?ht:null):(ht=Dt.call(this._minWeekdaysParse,er),ht!==-1?ht:null):ae==="dddd"?(ht=Dt.call(this._weekdaysParse,er),ht!==-1||(ht=Dt.call(this._shortWeekdaysParse,er),ht!==-1)?ht:(ht=Dt.call(this._minWeekdaysParse,er),ht!==-1?ht:null)):ae==="ddd"?(ht=Dt.call(this._shortWeekdaysParse,er),ht!==-1||(ht=Dt.call(this._weekdaysParse,er),ht!==-1)?ht:(ht=Dt.call(this._minWeekdaysParse,er),ht!==-1?ht:null)):(ht=Dt.call(this._minWeekdaysParse,er),ht!==-1||(ht=Dt.call(this._weekdaysParse,er),ht!==-1)?ht:(ht=Dt.call(this._shortWeekdaysParse,er),ht!==-1?ht:null))}function ra(j,ae,je){var Ge,ht,qt;if(this._weekdaysParseExact)return Kr.call(this,j,ae,je);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),Ge=0;Ge<7;Ge++){if(ht=S([2e3,1]).day(Ge),je&&!this._fullWeekdaysParse[Ge]&&(this._fullWeekdaysParse[Ge]=new RegExp("^"+this.weekdays(ht,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[Ge]=new RegExp("^"+this.weekdaysShort(ht,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[Ge]=new RegExp("^"+this.weekdaysMin(ht,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[Ge]||(qt="^"+this.weekdays(ht,"")+"|^"+this.weekdaysShort(ht,"")+"|^"+this.weekdaysMin(ht,""),this._weekdaysParse[Ge]=new RegExp(qt.replace(".",""),"i")),je&&ae==="dddd"&&this._fullWeekdaysParse[Ge].test(j))return Ge;if(je&&ae==="ddd"&&this._shortWeekdaysParse[Ge].test(j))return Ge;if(je&&ae==="dd"&&this._minWeekdaysParse[Ge].test(j))return Ge;if(!je&&this._weekdaysParse[Ge].test(j))return Ge}}function Xr(j){if(!this.isValid())return j!=null?this:NaN;var ae=this._isUTC?this._d.getUTCDay():this._d.getDay();return j!=null?(j=cr(j,this.localeData()),this.add(j-ae,"d")):ae}function Fr(j){if(!this.isValid())return j!=null?this:NaN;var ae=(this.day()+7-this.localeData()._week.dow)%7;return j==null?ae:this.add(j-ae,"d")}function xa(j){if(!this.isValid())return j!=null?this:NaN;if(j!=null){var ae=Dn(j,this.localeData());return this.day(this.day()%7?ae:ae-7)}else return this.day()||7}function la(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gn.call(this),j?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Pn),this._weekdaysStrictRegex&&j?this._weekdaysStrictRegex:this._weekdaysRegex)}function Tn(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gn.call(this),j?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=vn),this._weekdaysShortStrictRegex&&j?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function xn(j){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Gn.call(this),j?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Nn),this._weekdaysMinStrictRegex&&j?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gn(){function j(Hi,Cs){return Cs.length-Hi.length}var ae=[],je=[],Ge=[],ht=[],qt,er,to,zo,Uo;for(qt=0;qt<7;qt++)er=S([2e3,1]).day(qt),to=Xt(this.weekdaysMin(er,"")),zo=Xt(this.weekdaysShort(er,"")),Uo=Xt(this.weekdays(er,"")),ae.push(to),je.push(zo),Ge.push(Uo),ht.push(to),ht.push(zo),ht.push(Uo);ae.sort(j),je.sort(j),Ge.sort(j),ht.sort(j),this._weekdaysRegex=new RegExp("^("+ht.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+Ge.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+je.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+ae.join("|")+")","i")}function Lr(){return this.hours()%12||12}function zr(){return this.hours()||24}ge("H",["HH",2],0,"hour"),ge("h",["hh",2],0,Lr),ge("k",["kk",2],0,zr),ge("hmm",0,0,function(){return""+Lr.apply(this)+Y(this.minutes(),2)}),ge("hmmss",0,0,function(){return""+Lr.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),ge("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),ge("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)});function Br(j,ae){ge(j,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),ae)})}Br("a",!0),Br("A",!1),U("hour","h"),se("hour",13);function Ma(j,ae){return ae._meridiemParse}Ot("a",Ma),Ot("A",Ma),Ot("H",oe),Ot("h",oe),Ot("k",oe),Ot("HH",oe,Ze),Ot("hh",oe,Ze),Ot("kk",oe,Ze),Ot("hmm",ye),Ot("hmmss",Be),Ot("Hmm",ye),Ot("Hmmss",Be),fn(["H","HH"],Vt),fn(["k","kk"],function(j,ae,je){var Ge=Se(j);ae[Vt]=Ge===24?0:Ge}),fn(["a","A"],function(j,ae,je){je._isPm=je._locale.isPM(j),je._meridiem=j}),fn(["h","hh"],function(j,ae,je){ae[Vt]=Se(j),y(je).bigHour=!0}),fn("hmm",function(j,ae,je){var Ge=j.length-2;ae[Vt]=Se(j.substr(0,Ge)),ae[an]=Se(j.substr(Ge)),y(je).bigHour=!0}),fn("hmmss",function(j,ae,je){var Ge=j.length-4,ht=j.length-2;ae[Vt]=Se(j.substr(0,Ge)),ae[an]=Se(j.substr(Ge,2)),ae[st]=Se(j.substr(ht)),y(je).bigHour=!0}),fn("Hmm",function(j,ae,je){var Ge=j.length-2;ae[Vt]=Se(j.substr(0,Ge)),ae[an]=Se(j.substr(Ge))}),fn("Hmmss",function(j,ae,je){var Ge=j.length-4,ht=j.length-2;ae[Vt]=Se(j.substr(0,Ge)),ae[an]=Se(j.substr(Ge,2)),ae[st]=Se(j.substr(ht))});function co(j){return(j+"").toLowerCase().charAt(0)==="p"}var ro=/[ap]\.?m?\.?/i,xo=he("Hours",!0);function Pa(j,ae,je){return j>11?je?"pm":"PM":je?"am":"AM"}var Ua={calendar:O,longDateFormat:qe,invalidDate:wt,ordinal:Lt,dayOfMonthOrdinalParse:ke,relativeTime:et,months:en,monthsShort:Hn,week:_t,weekdays:or,weekdaysMin:Ir,weekdaysShort:Gr,meridiemParse:ro},eo={},Fo={},jo;function Bo(j,ae){var je,Ge=Math.min(j.length,ae.length);for(je=0;je0;){if(ht=Bt(qt.slice(0,je).join("-")),ht)return ht;if(Ge&&Ge.length>=je&&Bo(qt,Ge)>=je-1)break;je--}ae++}return jo}function be(j){return j.match("^[^/\\\\]*$")!=null}function Bt(j){var ae=null,je;if(eo[j]===void 0&&M&&M.exports&&be(j))try{ae=jo._abbr,je=void 0,Object(function(){var ht=new Error("Cannot find module 'undefined'");throw ht.code="MODULE_NOT_FOUND",ht}()),Jt(ae)}catch(Ge){eo[j]=null}return eo[j]}function Jt(j,ae){var je;return j&&(v(ae)?je=br(j):je=Jn(j,ae),je?jo=je:typeof console!="undefined"&&console.warn&&console.warn("Locale "+j+" not found. Did you forget to load it?")),jo._abbr}function Jn(j,ae){if(ae!==null){var je,Ge=Ua;if(ae.abbr=j,eo[j]!=null)H("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),Ge=eo[j]._config;else if(ae.parentLocale!=null)if(eo[ae.parentLocale]!=null)Ge=eo[ae.parentLocale]._config;else if(je=Bt(ae.parentLocale),je!=null)Ge=je._config;else return Fo[ae.parentLocale]||(Fo[ae.parentLocale]=[]),Fo[ae.parentLocale].push({name:j,config:ae}),null;return eo[j]=new W(te(Ge,ae)),Fo[j]&&Fo[j].forEach(function(ht){Jn(ht.name,ht.config)}),Jt(j),eo[j]}else return delete eo[j],null}function Kn(j,ae){if(ae!=null){var je,Ge,ht=Ua;eo[j]!=null&&eo[j].parentLocale!=null?eo[j].set(te(eo[j]._config,ae)):(Ge=Bt(j),Ge!=null&&(ht=Ge._config),ae=te(ht,ae),Ge==null&&(ae.abbr=j),je=new W(ae),je.parentLocale=eo[j],eo[j]=je),Jt(j)}else eo[j]!=null&&(eo[j].parentLocale!=null?(eo[j]=eo[j].parentLocale,j===Jt()&&Jt(j)):eo[j]!=null&&delete eo[j]);return eo[j]}function br(j){var ae;if(j&&j._locale&&j._locale._abbr&&(j=j._locale._abbr),!j)return jo;if(!s(j)){if(ae=Bt(j),ae)return ae;j=[j]}return yt(j)}function ea(){return G(eo)}function ka(j){var ae,je=j._a;return je&&y(j).overflow===-2&&(ae=je[_e]<0||je[_e]>11?_e:je[at]<1||je[at]>Cn(je[Mn],je[_e])?at:je[Vt]<0||je[Vt]>24||je[Vt]===24&&(je[an]!==0||je[st]!==0||je[ut]!==0)?Vt:je[an]<0||je[an]>59?an:je[st]<0||je[st]>59?st:je[ut]<0||je[ut]>999?ut:-1,y(j)._overflowDayOfYear&&(aeat)&&(ae=at),y(j)._overflowWeeks&&ae===-1&&(ae=$t),y(j)._overflowWeekday&&ae===-1&&(ae=nt),y(j).overflow=ae),j}var kr=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dr=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,wr=/Z|[+-]\d\d(?::?\d\d)?/,sr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dr=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Tr=/^\/?Date\((-?\d+)/i,ga=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Xa(j){var ae,je,Ge=j._i,ht=kr.exec(Ge)||Dr.exec(Ge),qt,er,to,zo,Uo=sr.length,Hi=dr.length;if(ht){for(y(j).iso=!0,ae=0,je=Uo;aekt(er)||j._dayOfYear===0)&&(y(j)._overflowDayOfYear=!0),je=tr(er,0,j._dayOfYear),j._a[_e]=je.getUTCMonth(),j._a[at]=je.getUTCDate()),ae=0;ae<3&&j._a[ae]==null;++ae)j._a[ae]=Ge[ae]=ht[ae];for(;ae<7;ae++)j._a[ae]=Ge[ae]=j._a[ae]==null?ae===2?1:0:j._a[ae];j._a[Vt]===24&&j._a[an]===0&&j._a[st]===0&&j._a[ut]===0&&(j._nextDay=!0,j._a[Vt]=0),j._d=(j._useUTC?tr:Fn).apply(null,Ge),qt=j._useUTC?j._d.getUTCDay():j._d.getDay(),j._tzm!=null&&j._d.setUTCMinutes(j._d.getUTCMinutes()-j._tzm),j._nextDay&&(j._a[Vt]=24),j._w&&typeof j._w.d!="undefined"&&j._w.d!==qt&&(y(j).weekdayMismatch=!0)}}function oa(j){var ae,je,Ge,ht,qt,er,to,zo,Uo;ae=j._w,ae.GG!=null||ae.W!=null||ae.E!=null?(qt=1,er=4,je=wn(ae.GG,j._a[Mn],xt(Ra(),1,4).year),Ge=wn(ae.W,1),ht=wn(ae.E,1),(ht<1||ht>7)&&(zo=!0)):(qt=j._locale._week.dow,er=j._locale._week.doy,Uo=xt(Ra(),qt,er),je=wn(ae.gg,j._a[Mn],Uo.year),Ge=wn(ae.w,Uo.week),ae.d!=null?(ht=ae.d,(ht<0||ht>6)&&(zo=!0)):ae.e!=null?(ht=ae.e+qt,(ae.e<0||ae.e>6)&&(zo=!0)):ht=qt),Ge<1||Ge>St(je,qt,er)?y(j)._overflowWeeks=!0:zo!=null?y(j)._overflowWeekday=!0:(to=lt(je,Ge,ht,qt,er),j._a[Mn]=to.year,j._dayOfYear=to.dayOfYear)}t.ISO_8601=function(){},t.RFC_2822=function(){};function ta(j){if(j._f===t.ISO_8601){Xa(j);return}if(j._f===t.RFC_2822){fr(j);return}j._a=[],y(j).empty=!0;var ae=""+j._i,je,Ge,ht,qt,er,to=ae.length,zo=0,Uo,Hi;for(ht=Ve(j._f,j._locale).match(P)||[],Hi=ht.length,je=0;je0&&y(j).unusedInput.push(er),ae=ae.slice(ae.indexOf(Ge)+Ge.length),zo+=Ge.length),Ce[qt]?(Ge?y(j).empty=!1:y(j).unusedTokens.push(qt),On(qt,Ge,j)):j._strict&&!Ge&&y(j).unusedTokens.push(qt);y(j).charsLeftOver=to-zo,ae.length>0&&y(j).unusedInput.push(ae),j._a[Vt]<=12&&y(j).bigHour===!0&&j._a[Vt]>0&&(y(j).bigHour=void 0),y(j).parsedDateParts=j._a.slice(0),y(j).meridiem=j._meridiem,j._a[Vt]=Wa(j._locale,j._a[Vt],j._meridiem),Uo=y(j).era,Uo!==null&&(j._a[Mn]=j._locale.erasConvertYear(Uo,j._a[Mn])),Ar(j),ka(j)}function Wa(j,ae,je){var Ge;return je==null?ae:j.meridiemHour!=null?j.meridiemHour(ae,je):(j.isPM!=null&&(Ge=j.isPM(je),Ge&&ae<12&&(ae+=12),!Ge&&ae===12&&(ae=0)),ae)}function bo(j){var ae,je,Ge,ht,qt,er,to=!1,zo=j._f.length;if(zo===0){y(j).invalidFormat=!0,j._d=new Date(NaN);return}for(ht=0;htthis?this:j:R()});function fi(j,ae){var je,Ge;if(ae.length===1&&s(ae[0])&&(ae=ae[0]),!ae.length)return Ra();for(je=ae[0],Ge=1;Gethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function bn(){if(!v(this._isDSTShifted))return this._isDSTShifted;var j={},ae;return A(j,this),j=To(j),j._a?(ae=j._isUTC?S(j._a):Ra(j._a),this._isDSTShifted=this.isValid()&&ao(j._a,ae.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Mr(){return this.isValid()?!this._isUTC:!1}function nr(){return this.isValid()?this._isUTC:!1}function ur(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ca=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pa(j,ae){var je=j,Ge=null,ht,qt,er;return ns(j)?je={ms:j._milliseconds,d:j._days,M:j._months}:h(j)||!isNaN(+j)?(je={},ae?je[ae]=+j:je.milliseconds=+j):(Ge=Cr.exec(j))?(ht=Ge[1]==="-"?-1:1,je={y:0,d:Se(Ge[at])*ht,h:Se(Ge[Vt])*ht,m:Se(Ge[an])*ht,s:Se(Ge[st])*ht,ms:Se(Zi(Ge[ut]*1e3))*ht}):(Ge=ca.exec(j))?(ht=Ge[1]==="-"?-1:1,je={y:fa(Ge[2],ht),M:fa(Ge[3],ht),w:fa(Ge[4],ht),d:fa(Ge[5],ht),h:fa(Ge[6],ht),m:fa(Ge[7],ht),s:fa(Ge[8],ht)}):je==null?je={}:typeof je=="object"&&("from"in je||"to"in je)&&(er=si(Ra(je.from),Ra(je.to)),je={},je.ms=er.milliseconds,je.M=er.months),qt=new Ti(je),ns(j)&&c(j,"_locale")&&(qt._locale=j._locale),ns(j)&&c(j,"_isValid")&&(qt._isValid=j._isValid),qt}pa.fn=Ti.prototype,pa.invalid=wi;function fa(j,ae){var je=j&&parseFloat(j.replace(",","."));return(isNaN(je)?0:je)*ae}function Ho(j,ae){var je={};return je.months=ae.month()-j.month()+(ae.year()-j.year())*12,j.clone().add(je.months,"M").isAfter(ae)&&--je.months,je.milliseconds=+ae-+j.clone().add(je.months,"M"),je}function si(j,ae){var je;return j.isValid()&&ae.isValid()?(ae=Zo(ae,j),j.isBefore(ae)?je=Ho(j,ae):(je=Ho(ae,j),je.milliseconds=-je.milliseconds,je.months=-je.months),je):{milliseconds:0,months:0}}function Jo(j,ae){return function(je,Ge){var ht,qt;return Ge!==null&&!isNaN(+Ge)&&(H(ae,"moment()."+ae+"(period, number) is deprecated. Please use moment()."+ae+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),qt=je,je=Ge,Ge=qt),ht=pa(je,Ge),Wi(this,ht,j),this}}function Wi(j,ae,je,Ge){var ht=ae._milliseconds,qt=Zi(ae._days),er=Zi(ae._months);j.isValid()&&(Ge=Ge==null?!0:Ge,er&&Pr(j,We(j,"Month")+er*je),qt&&de(j,"Date",We(j,"Date")+qt*je),ht&&j._d.setTime(j._d.valueOf()+ht*je),Ge&&t.updateOffset(j,qt||er))}var bs=Jo(1,"add"),ss=Jo(-1,"subtract");function As(j){return typeof j=="string"||j instanceof String}function us(j){return I(j)||m(j)||As(j)||h(j)||$l(j)||ri(j)||j===null||j===void 0}function ri(j){var ae=n(j)&&!l(j),je=!1,Ge=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],ht,qt,er=Ge.length;for(ht=0;htje.valueOf():je.valueOf()9999?Qe(je,ae?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ie(Date.prototype.toISOString)?ae?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Qe(je,"Z")):Qe(je,ae?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Js(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var j="moment",ae="",je,Ge,ht,qt;return this.isLocal()||(j=this.utcOffset()===0?"moment.utc":"moment.parseZone",ae="Z"),je="["+j+'("]',Ge=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",ht="-MM-DD[T]HH:mm:ss.SSS",qt=ae+'[")]',this.format(je+Ge+ht+qt)}function cs(j){j||(j=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var ae=Qe(this,j);return this.localeData().postformat(ae)}function Et(j,ae){return this.isValid()&&(I(j)&&j.isValid()||Ra(j).isValid())?pa({to:this,from:j}).locale(this.locale()).humanize(!ae):this.localeData().invalidDate()}function Po(j){return this.from(Ra(),j)}function ls(j,ae){return this.isValid()&&(I(j)&&j.isValid()||Ra(j).isValid())?pa({from:this,to:j}).locale(this.locale()).humanize(!ae):this.localeData().invalidDate()}function Eo(j){return this.to(Ra(),j)}function ll(j){var ae;return j===void 0?this._locale._abbr:(ae=br(j),ae!=null&&(this._locale=ae),this)}var xr=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(j){return j===void 0?this.localeData():this.locale(j)});function qs(){return this._locale}var ul=1e3,ws=60*ul,cl=60*ws,wl=(365*400+97)*24*cl;function Ro(j,ae){return(j%ae+ae)%ae}function ji(j,ae,je){return j<100&&j>=0?new Date(j+400,ae,je)-wl:new Date(j,ae,je).valueOf()}function Eu(j,ae,je){return j<100&&j>=0?Date.UTC(j+400,ae,je)-wl:Date.UTC(j,ae,je)}function Pu(j){var ae,je;if(j=N(j),j===void 0||j==="millisecond"||!this.isValid())return this;switch(je=this._isUTC?Eu:ji,j){case"year":ae=je(this.year(),0,1);break;case"quarter":ae=je(this.year(),this.month()-this.month()%3,1);break;case"month":ae=je(this.year(),this.month(),1);break;case"week":ae=je(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":ae=je(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":ae=je(this.year(),this.month(),this.date());break;case"hour":ae=this._d.valueOf(),ae-=Ro(ae+(this._isUTC?0:this.utcOffset()*ws),cl);break;case"minute":ae=this._d.valueOf(),ae-=Ro(ae,ws);break;case"second":ae=this._d.valueOf(),ae-=Ro(ae,ul);break}return this._d.setTime(ae),t.updateOffset(this,!0),this}function po(j){var ae,je;if(j=N(j),j===void 0||j==="millisecond"||!this.isValid())return this;switch(je=this._isUTC?Eu:ji,j){case"year":ae=je(this.year()+1,0,1)-1;break;case"quarter":ae=je(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":ae=je(this.year(),this.month()+1,1)-1;break;case"week":ae=je(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":ae=je(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":ae=je(this.year(),this.month(),this.date()+1)-1;break;case"hour":ae=this._d.valueOf(),ae+=cl-Ro(ae+(this._isUTC?0:this.utcOffset()*ws),cl)-1;break;case"minute":ae=this._d.valueOf(),ae+=ws-Ro(ae,ws)-1;break;case"second":ae=this._d.valueOf(),ae+=ul-Ro(ae,ul)-1;break}return this._d.setTime(ae),t.updateOffset(this,!0),this}function ds(){return this._d.valueOf()-(this._offset||0)*6e4}function ks(){return Math.floor(this.valueOf()/1e3)}function ba(){return new Date(this.valueOf())}function Tl(){var j=this;return[j.year(),j.month(),j.date(),j.hour(),j.minute(),j.second(),j.millisecond()]}function rs(){var j=this;return{years:j.year(),months:j.month(),date:j.date(),hours:j.hours(),minutes:j.minutes(),seconds:j.seconds(),milliseconds:j.milliseconds()}}function dl(){return this.isValid()?this.toISOString():null}function fl(){return F(this)}function Ul(){return p({},y(this))}function Sl(){return y(this).overflow}function Lu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ge("N",0,0,"eraAbbr"),ge("NN",0,0,"eraAbbr"),ge("NNN",0,0,"eraAbbr"),ge("NNNN",0,0,"eraName"),ge("NNNNN",0,0,"eraNarrow"),ge("y",["y",1],"yo","eraYear"),ge("y",["yy",2],0,"eraYear"),ge("y",["yyy",3],0,"eraYear"),ge("y",["yyyy",4],0,"eraYear"),Ot("N",qi),Ot("NN",qi),Ot("NNN",qi),Ot("NNNN",Vo),Ot("NNNNN",yo),fn(["N","NN","NNN","NNNN","NNNNN"],function(j,ae,je,Ge){var ht=je._locale.erasParse(j,Ge,je._strict);ht?y(je).era=ht:y(je).invalidEra=j}),Ot("y",Le),Ot("yy",Le),Ot("yyy",Le),Ot("yyyy",Le),Ot("yo",eu),fn(["y","yy","yyy","yyyy"],Mn),fn(["yo"],function(j,ae,je,Ge){var ht;je._locale._eraYearOrdinalRegex&&(ht=j.match(je._locale._eraYearOrdinalRegex)),je._locale.eraYearOrdinalParse?ae[Mn]=je._locale.eraYearOrdinalParse(j,ht):ae[Mn]=parseInt(j,10)});function ql(j,ae){var je,Ge,ht,qt=this._eras||br("en")._eras;for(je=0,Ge=qt.length;je=0)return qt[Ge]}function fu(j,ae){var je=j.since<=j.until?1:-1;return ae===void 0?t(j.since).year():t(j.since).year()+(ae-j.offset)*je}function El(){var j,ae,je,Ge=this.localeData().eras();for(j=0,ae=Ge.length;jqt&&(ae=qt),nn.call(this,j,ae,je,Ge,ht))}function nn(j,ae,je,Ge,ht){var qt=lt(j,ae,je,Ge,ht),er=tr(qt.year,0,qt.dayOfYear);return this.year(er.getUTCFullYear()),this.month(er.getUTCMonth()),this.date(er.getUTCDate()),this}ge("Q",0,"Qo","quarter"),U("quarter","Q"),se("quarter",7),Ot("Q",xe),fn("Q",function(j,ae){ae[_e]=(Se(j)-1)*3});function jn(j){return j==null?Math.ceil((this.month()+1)/3):this.month((j-1)*3+this.month()%3)}ge("D",["DD",2],"Do","date"),U("date","D"),se("date",9),Ot("D",oe),Ot("DD",oe,Ze),Ot("Do",function(j,ae){return j?ae._dayOfMonthOrdinalParse||ae._ordinalParse:ae._dayOfMonthOrdinalParseLenient}),fn(["D","DD"],at),fn("Do",function(j,ae){ae[at]=Se(j.match(oe)[0])});var lr=he("Date",!0);ge("DDD",["DDDD",3],"DDDo","dayOfYear"),U("dayOfYear","DDD"),se("dayOfYear",4),Ot("DDD",De),Ot("DDDD",pe),fn(["DDD","DDDD"],function(j,ae,je){je._dayOfYear=Se(j)});function zn(j){var ae=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return j==null?ae:this.add(j-ae,"d")}ge("m",["mm",2],0,"minute"),U("minute","m"),se("minute",14),Ot("m",oe),Ot("mm",oe,Ze),fn(["m","mm"],an);var Yn=he("Minutes",!1);ge("s",["ss",2],0,"second"),U("second","s"),se("second",15),Ot("s",oe),Ot("ss",oe,Ze),fn(["s","ss"],st);var Zr=he("Seconds",!1);ge("S",0,0,function(){return~~(this.millisecond()/100)}),ge(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),ge(0,["SSS",3],0,"millisecond"),ge(0,["SSSS",4],0,function(){return this.millisecond()*10}),ge(0,["SSSSS",5],0,function(){return this.millisecond()*100}),ge(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),ge(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),ge(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),ge(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),U("millisecond","ms"),se("millisecond",16),Ot("S",De,xe),Ot("SS",De,Ze),Ot("SSS",De,pe);var ir,Qn;for(ir="SSSS";ir.length<=9;ir+="S")Ot(ir,Le);function Un(j,ae){ae[ut]=Se(("0."+j)*1e3)}for(ir="S";ir.length<=9;ir+="S")fn(ir,Un);Qn=he("Milliseconds",!1),ge("z",0,0,"zoneAbbr"),ge("zz",0,0,"zoneName");function Ta(){return this._isUTC?"UTC":""}function ha(){return this._isUTC?"Coordinated Universal Time":""}var Qt=L.prototype;Qt.add=bs,Qt.calendar=Fl,Qt.clone=Qs,Qt.diff=Ss,Qt.endOf=po,Qt.format=cs,Qt.from=Et,Qt.fromNow=Po,Qt.to=ls,Qt.toNow=Eo,Qt.get=le,Qt.invalidAt=Sl,Qt.isAfter=Xs,Qt.isBefore=Os,Qt.isBetween=Us,Qt.isSame=sl,Qt.isSameOrAfter=Hl,Qt.isSameOrBefore=vs,Qt.isValid=fl,Qt.lang=xr,Qt.locale=ll,Qt.localeData=qs,Qt.max=ai,Qt.min=Ao,Qt.parsingFlags=Ul,Qt.set=ve,Qt.startOf=Pu,Qt.subtract=ss,Qt.toArray=Tl,Qt.toObject=rs,Qt.toDate=ba,Qt.toISOString=Zl,Qt.inspect=Js,typeof Symbol!="undefined"&&Symbol.for!=null&&(Qt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Qt.toJSON=dl,Qt.toString=Rs,Qt.unix=ks,Qt.valueOf=ds,Qt.creationData=Lu,Qt.eraName=El,Qt.eraNarrow=Es,Qt.eraAbbr=Ws,Qt.eraYear=vl,Qt.year=hn,Qt.isLeapYear=dn,Qt.weekYear=gl,Qt.isoWeekYear=Ii,Qt.quarter=Qt.quarters=jn,Qt.month=Vn,Qt.daysInMonth=zt,Qt.week=Qt.weeks=kn,Qt.isoWeek=Qt.isoWeeks=hr,Qt.weeksInYear=$e,Qt.weeksInWeekYear=Ke,Qt.isoWeeksInYear=Ri,Qt.isoWeeksInISOWeekYear=tt,Qt.date=lr,Qt.day=Qt.days=Xr,Qt.weekday=Fr,Qt.isoWeekday=xa,Qt.dayOfYear=zn,Qt.hour=Qt.hours=xo,Qt.minute=Qt.minutes=Yn,Qt.second=Qt.seconds=Zr,Qt.millisecond=Qt.milliseconds=Qn,Qt.utcOffset=Ni,Qt.utc=Ki,Qt.local=Is,Qt.parseZone=hs,Qt.hasAlignedHourOffset=Ns,Qt.isDST=bl,Qt.isLocal=Mr,Qt.isUtcOffset=nr,Qt.isUtc=ur,Qt.isUTC=ur,Qt.zoneAbbr=Ta,Qt.zoneName=ha,Qt.dates=B("dates accessor is deprecated. Use date instead.",lr),Qt.months=B("months accessor is deprecated. Use month instead",Vn),Qt.years=B("years accessor is deprecated. Use year instead",hn),Qt.zone=B("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ji),Qt.isDSTShifted=B("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",bn);function Re(j){return Ra(j*1e3)}function rt(){return Ra.apply(null,arguments).parseZone()}function Rt(j){return j}var Ut=W.prototype;Ut.calendar=k,Ut.longDateFormat=Mt,Ut.invalidDate=gt,Ut.ordinal=He,Ut.preparse=Rt,Ut.postformat=Rt,Ut.relativeTime=Fe,Ut.pastFuture=ue,Ut.set=ce,Ut.eras=ql,Ut.erasParse=Yo,Ut.erasConvertYear=fu,Ut.erasAbbrRegex=Pi,Ut.erasNameRegex=It,Ut.erasNarrowRegex=jl,Ut.months=Or,Ut.monthsShort=ar,Ut.monthsParse=qr,Ut.monthsRegex=sn,Ut.monthsShortRegex=Ft,Ut.week=Nt,Ut.firstDayOfYear=yn,Ut.firstDayOfWeek=Wt,Ut.weekdays=Zn,Ut.weekdaysMin=$r,Ut.weekdaysShort=yr,Ut.weekdaysParse=ra,Ut.weekdaysRegex=la,Ut.weekdaysShortRegex=Tn,Ut.weekdaysMinRegex=xn,Ut.isPM=co,Ut.meridiem=Pa;function un(j,ae,je,Ge){var ht=br(),qt=S().set(Ge,ae);return ht[je](qt,j)}function In(j,ae,je){if(h(j)&&(ae=j,j=void 0),j=j||"",ae!=null)return un(j,ae,je,"month");var Ge,ht=[];for(Ge=0;Ge<12;Ge++)ht[Ge]=un(j,Ge,je,"month");return ht}function gn(j,ae,je,Ge){typeof j=="boolean"?(h(ae)&&(je=ae,ae=void 0),ae=ae||""):(ae=j,je=ae,j=!1,h(ae)&&(je=ae,ae=void 0),ae=ae||"");var ht=br(),qt=j?ht._week.dow:0,er,to=[];if(je!=null)return un(ae,(je+qt)%7,Ge,"day");for(er=0;er<7;er++)to[er]=un(ae,(er+qt)%7,Ge,"day");return to}function rn(j,ae){return In(j,ae,"months")}function Ur(j,ae){return In(j,ae,"monthsShort")}function aa(j,ae,je){return gn(j,ae,je,"weekdays")}function da(j,ae,je){return gn(j,ae,je,"weekdaysShort")}function ua(j,ae,je){return gn(j,ae,je,"weekdaysMin")}Jt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(j){var ae=j%10,je=Se(j%100/10)===1?"th":ae===1?"st":ae===2?"nd":ae===3?"rd":"th";return j+je}}),t.lang=B("moment.lang is deprecated. Use moment.locale instead.",Jt),t.langData=B("moment.langData is deprecated. Use moment.localeData instead.",br);var Aa=Math.abs;function Oo(){var j=this._data;return this._milliseconds=Aa(this._milliseconds),this._days=Aa(this._days),this._months=Aa(this._months),j.milliseconds=Aa(j.milliseconds),j.seconds=Aa(j.seconds),j.minutes=Aa(j.minutes),j.hours=Aa(j.hours),j.months=Aa(j.months),j.years=Aa(j.years),this}function Co(j,ae,je,Ge){var ht=pa(ae,je);return j._milliseconds+=Ge*ht._milliseconds,j._days+=Ge*ht._days,j._months+=Ge*ht._months,j._bubble()}function Sa(j,ae){return Co(this,j,ae,1)}function Ia(j,ae){return Co(this,j,ae,-1)}function ia(j){return j<0?Math.floor(j):Math.ceil(j)}function oo(){var j=this._milliseconds,ae=this._days,je=this._months,Ge=this._data,ht,qt,er,to,zo;return j>=0&&ae>=0&&je>=0||j<=0&&ae<=0&&je<=0||(j+=ia(Nr(je)+ae)*864e5,ae=0,je=0),Ge.milliseconds=j%1e3,ht=Ie(j/1e3),Ge.seconds=ht%60,qt=Ie(ht/60),Ge.minutes=qt%60,er=Ie(qt/60),Ge.hours=er%24,ae+=Ie(er/24),zo=Ie(Sr(ae)),je+=zo,ae-=ia(Nr(zo)),to=Ie(je/12),je%=12,Ge.days=ae,Ge.months=je,Ge.years=to,this}function Sr(j){return j*4800/146097}function Nr(j){return j*146097/4800}function Da(j){if(!this.isValid())return NaN;var ae,je,Ge=this._milliseconds;if(j=N(j),j==="month"||j==="quarter"||j==="year")switch(ae=this._days+Ge/864e5,je=this._months+Sr(ae),j){case"month":return je;case"quarter":return je/3;case"year":return je/12}else switch(ae=this._days+Math.round(Nr(this._months)),j){case"week":return ae/7+Ge/6048e5;case"day":return ae+Ge/864e5;case"hour":return ae*24+Ge/36e5;case"minute":return ae*1440+Ge/6e4;case"second":return ae*86400+Ge/1e3;case"millisecond":return Math.floor(ae*864e5)+Ge;default:throw new Error("Unknown unit "+j)}}function Wr(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Se(this._months/12)*31536e6:NaN}function Qr(j){return function(){return this.as(j)}}var _a=Qr("ms"),za=Qr("s"),ya=Qr("m"),io=Qr("h"),Ba=Qr("d"),Ea=Qr("w"),qa=Qr("M"),Ha=Qr("Q"),Do=Qr("y");function lo(){return pa(this)}function Oa(j){return j=N(j),this.isValid()?this[j+"s"]():NaN}function $a(j){return function(){return this.isValid()?this._data[j]:NaN}}var li=$a("milliseconds"),Va=$a("seconds"),pi=$a("minutes"),ui=$a("hours"),Ja=$a("days"),ko=$a("months"),Io=$a("years");function Lo(){return Ie(this.days()/7)}var Qa=Math.round,ci={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bi(j,ae,je,Ge,ht){return ht.relativeTime(ae||1,!!je,j,Ge)}function vi(j,ae,je,Ge){var ht=pa(j).abs(),qt=Qa(ht.as("s")),er=Qa(ht.as("m")),to=Qa(ht.as("h")),zo=Qa(ht.as("d")),Uo=Qa(ht.as("M")),Hi=Qa(ht.as("w")),Cs=Qa(ht.as("y")),zs=qt<=je.ss&&["s",qt]||qt0,zs[4]=Ge,bi.apply(null,zs)}function qo(j){return j===void 0?Qa:typeof j=="function"?(Qa=j,!0):!1}function Vi(j,ae){return ci[j]===void 0?!1:ae===void 0?ci[j]:(ci[j]=ae,j==="s"&&(ci.ss=ae-1),!0)}function as(j,ae){if(!this.isValid())return this.localeData().invalidDate();var je=!1,Ge=ci,ht,qt;return typeof j=="object"&&(ae=j,j=!1),typeof j=="boolean"&&(je=j),typeof ae=="object"&&(Ge=Object.assign({},ci,ae),ae.s!=null&&ae.ss==null&&(Ge.ss=ae.s-1)),ht=this.localeData(),qt=vi(this,!je,Ge,ht),je&&(qt=ht.pastFuture(+this,qt)),ht.postformat(qt)}var os=Math.abs;function Qi(j){return(j>0)-(j<0)||+j}function _i(){if(!this.isValid())return this.localeData().invalidDate();var j=os(this._milliseconds)/1e3,ae=os(this._days),je=os(this._months),Ge,ht,qt,er,to=this.asSeconds(),zo,Uo,Hi,Cs;return to?(Ge=Ie(j/60),ht=Ie(Ge/60),j%=60,Ge%=60,qt=Ie(je/12),je%=12,er=j?j.toFixed(3).replace(/\.?0+$/,""):"",zo=to<0?"-":"",Uo=Qi(this._months)!==Qi(to)?"-":"",Hi=Qi(this._days)!==Qi(to)?"-":"",Cs=Qi(this._milliseconds)!==Qi(to)?"-":"",zo+"P"+(qt?Uo+qt+"Y":"")+(je?Uo+je+"M":"")+(ae?Hi+ae+"D":"")+(ht||Ge||j?"T":"")+(ht?Cs+ht+"H":"")+(Ge?Cs+Ge+"M":"")+(j?Cs+er+"S":"")):"P0D"}var Go=Ti.prototype;Go.isValid=Fi,Go.abs=Oo,Go.add=Sa,Go.subtract=Ia,Go.as=Da,Go.asMilliseconds=_a,Go.asSeconds=za,Go.asMinutes=ya,Go.asHours=io,Go.asDays=Ba,Go.asWeeks=Ea,Go.asMonths=qa,Go.asQuarters=Ha,Go.asYears=Do,Go.valueOf=Wr,Go._bubble=oo,Go.clone=lo,Go.get=Oa,Go.milliseconds=li,Go.seconds=Va,Go.minutes=pi,Go.hours=ui,Go.days=Ja,Go.weeks=Lo,Go.months=ko,Go.years=Io,Go.humanize=as,Go.toISOString=_i,Go.toString=_i,Go.toJSON=_i,Go.locale=ll,Go.localeData=qs,Go.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",_i),Go.lang=xr,ge("X",0,0,"unix"),ge("x",0,0,"valueOf"),Ot("x",Ye),Ot("X",bt),fn("X",function(j,ae,je){je._d=new Date(parseFloat(j)*1e3)}),fn("x",function(j,ae,je){je._d=new Date(Se(j))});return t.version="2.29.4",o(Ra),t.fn=Qt,t.min=go,t.max=Oi,t.now=Li,t.utc=S,t.unix=Re,t.months=rn,t.isDate=m,t.locale=Jt,t.invalid=R,t.duration=pa,t.isMoment=I,t.weekdays=aa,t.parseZone=rt,t.localeData=br,t.isDuration=ns,t.monthsShort=Ur,t.weekdaysMin=ua,t.defineLocale=Jn,t.updateLocale=Kn,t.locales=ea,t.weekdaysShort=da,t.normalizeUnits=N,t.relativeTimeRounding=qo,t.relativeTimeThreshold=Vi,t.calendarFormat=il,t.prototype=Qt,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t})},73656:function(M){var b=M.exports={},e,i;function t(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=t}catch(w){e=t}try{typeof clearTimeout=="function"?i=clearTimeout:i=o}catch(w){i=o}})();function s(w){if(e===setTimeout)return setTimeout(w,0);if((e===t||!e)&&setTimeout)return e=setTimeout,setTimeout(w,0);try{return e(w,0)}catch(y){try{return e.call(null,w,0)}catch(Z){return e.call(this,w,0)}}}function n(w){if(i===clearTimeout)return clearTimeout(w);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(w);try{return i(w)}catch(y){try{return i.call(null,w)}catch(Z){return i.call(this,w)}}}var c=[],l=!1,v,h=-1;function m(){!l||!v||(l=!1,v.length?c=v.concat(c):h=-1,c.length&&C())}function C(){if(!l){var w=s(m);l=!0;for(var y=c.length;y;){for(v=c,c=[];++h1)for(var Z=1;Z=Ye||Le<0||Le>=Ye)return Pe;var Ue=Pe[we],dt=we-Le;return dt>0?[].concat((0,c.Z)(Pe.slice(0,Le)),[Ue],(0,c.Z)(Pe.slice(Le,we)),(0,c.Z)(Pe.slice(we+1,Ye))):dt<0?[].concat((0,c.Z)(Pe.slice(0,we)),(0,c.Z)(Pe.slice(we+1,Le+1)),[Ue],(0,c.Z)(Pe.slice(Le+1,Ye))):Pe}var gt=["name"],Lt=[];function ke(Pe,we,Le,Ye,Ue,dt){return typeof Pe=="function"?Pe(we,Le,"source"in dt?{source:dt.source}:{}):Ye!==Ue}var He=function(Pe){(0,m.Z)(Le,Pe);var we=(0,C.Z)(Le);function Le(Ye){var Ue;if((0,l.Z)(this,Le),Ue=we.call(this,Ye),Ue.state={resetCount:0},Ue.cancelRegisterFunc=null,Ue.mounted=!1,Ue.touched=!1,Ue.dirty=!1,Ue.validatePromise=void 0,Ue.prevValidating=void 0,Ue.errors=Lt,Ue.warnings=Lt,Ue.cancelRegister=function(){var At=Ue.props,Ot=At.preserve,jt=At.isListField,Gt=At.name;Ue.cancelRegisterFunc&&Ue.cancelRegisterFunc(jt,Ot,Me(Gt)),Ue.cancelRegisterFunc=null},Ue.getNamePath=function(){var At=Ue.props,Ot=At.name,jt=At.fieldContext,Gt=jt.prefixName,Xt=Gt===void 0?[]:Gt;return Ot!==void 0?[].concat((0,c.Z)(Xt),(0,c.Z)(Ot)):[]},Ue.getRules=function(){var At=Ue.props,Ot=At.rules,jt=Ot===void 0?[]:Ot,Gt=At.fieldContext;return jt.map(function(Xt){return typeof Xt=="function"?Xt(Gt):Xt})},Ue.refresh=function(){Ue.mounted&&Ue.setState(function(At){var Ot=At.resetCount;return{resetCount:Ot+1}})},Ue.metaCache=null,Ue.triggerMetaEvent=function(At){var Ot=Ue.props.onMetaChange;if(Ot){var jt=(0,n.Z)((0,n.Z)({},Ue.getMeta()),{},{destroy:At});(0,w.Z)(Ue.metaCache,jt)||Ot(jt),Ue.metaCache=jt}else Ue.metaCache=null},Ue.onStoreChange=function(At,Ot,jt){var Gt=Ue.props,Xt=Gt.shouldUpdate,Bn=Gt.dependencies,fn=Bn===void 0?[]:Bn,$n=Gt.onReset,On=jt.store,Mn=Ue.getNamePath(),_e=Ue.getValue(At),at=Ue.getValue(On),Vt=Ot&&Qe(Ot,Mn);switch(jt.type==="valueUpdate"&&jt.source==="external"&&_e!==at&&(Ue.touched=!0,Ue.dirty=!0,Ue.validatePromise=null,Ue.errors=Lt,Ue.warnings=Lt,Ue.triggerMetaEvent()),jt.type){case"reset":if(!Ot||Vt){Ue.touched=!1,Ue.dirty=!1,Ue.validatePromise=void 0,Ue.errors=Lt,Ue.warnings=Lt,Ue.triggerMetaEvent(),$n==null||$n(),Ue.refresh();return}break;case"remove":{if(Xt){Ue.reRender();return}break}case"setField":{if(Vt){var an=jt.data;"touched"in an&&(Ue.touched=an.touched),"validating"in an&&!("originRCField"in an)&&(Ue.validatePromise=an.validating?Promise.resolve([]):null),"errors"in an&&(Ue.errors=an.errors||Lt),"warnings"in an&&(Ue.warnings=an.warnings||Lt),Ue.dirty=!0,Ue.triggerMetaEvent(),Ue.reRender();return}if(Xt&&!Mn.length&&ke(Xt,At,On,_e,at,jt)){Ue.reRender();return}break}case"dependenciesUpdate":{var st=fn.map(Me);if(st.some(function(ut){return Qe(jt.relatedFields,ut)})){Ue.reRender();return}break}default:if(Vt||(!fn.length||Mn.length||Xt)&&ke(Xt,At,On,_e,at,jt)){Ue.reRender();return}break}Xt===!0&&Ue.reRender()},Ue.validateRules=function(At){var Ot=Ue.getNamePath(),jt=Ue.getValue(),Gt=At||{},Xt=Gt.triggerName,Bn=Gt.validateOnly,fn=Bn===void 0?!1:Bn,$n=Promise.resolve().then(function(){if(!Ue.mounted)return[];var On=Ue.props,Mn=On.validateFirst,_e=Mn===void 0?!1:Mn,at=On.messageVariables,Vt=Ue.getRules();Xt&&(Vt=Vt.filter(function(st){return st}).filter(function(st){var ut=st.validateTrigger;if(!ut)return!0;var $t=A(ut);return $t.includes(Xt)}));var an=k(Ot,jt,Vt,At,_e,at);return an.catch(function(st){return st}).then(function(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lt;if(Ue.validatePromise===$n){var ut;Ue.validatePromise=null;var $t=[],nt=[];(ut=st.forEach)===null||ut===void 0||ut.call(st,function(mt){var Dt=mt.rule.warningOnly,Cn=mt.errors,en=Cn===void 0?Lt:Cn;Dt?nt.push.apply(nt,(0,c.Z)(en)):$t.push.apply($t,(0,c.Z)(en))}),Ue.errors=$t,Ue.warnings=nt,Ue.triggerMetaEvent(),Ue.reRender()}}),an});return fn||(Ue.validatePromise=$n,Ue.dirty=!0,Ue.errors=Lt,Ue.warnings=Lt,Ue.triggerMetaEvent(),Ue.reRender()),$n},Ue.isFieldValidating=function(){return!!Ue.validatePromise},Ue.isFieldTouched=function(){return Ue.touched},Ue.isFieldDirty=function(){if(Ue.dirty||Ue.props.initialValue!==void 0)return!0;var At=Ue.props.fieldContext,Ot=At.getInternalHooks(y),jt=Ot.getInitialValue;return jt(Ue.getNamePath())!==void 0},Ue.getErrors=function(){return Ue.errors},Ue.getWarnings=function(){return Ue.warnings},Ue.isListField=function(){return Ue.props.isListField},Ue.isList=function(){return Ue.props.isList},Ue.isPreserve=function(){return Ue.props.preserve},Ue.getMeta=function(){Ue.prevValidating=Ue.isFieldValidating();var At={touched:Ue.isFieldTouched(),validating:Ue.prevValidating,errors:Ue.errors,warnings:Ue.warnings,name:Ue.getNamePath(),validated:Ue.validatePromise===null};return At},Ue.getOnlyChild=function(At){if(typeof At=="function"){var Ot=Ue.getMeta();return(0,n.Z)((0,n.Z)({},Ue.getOnlyChild(At(Ue.getControlled(),Ot,Ue.props.fieldContext))),{},{isFunction:!0})}var jt=(0,p.Z)(At);return jt.length!==1||!i.isValidElement(jt[0])?{child:jt,isFunction:!1}:{child:jt[0],isFunction:!1}},Ue.getValue=function(At){var Ot=Ue.props.fieldContext.getFieldsValue,jt=Ue.getNamePath();return(0,ge.Z)(At||Ot(!0),jt)},Ue.getControlled=function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Ot=Ue.props,jt=Ot.trigger,Gt=Ot.validateTrigger,Xt=Ot.getValueFromEvent,Bn=Ot.normalize,fn=Ot.valuePropName,$n=Ot.getValueProps,On=Ot.fieldContext,Mn=Gt!==void 0?Gt:On.validateTrigger,_e=Ue.getNamePath(),at=On.getInternalHooks,Vt=On.getFieldsValue,an=at(y),st=an.dispatch,ut=Ue.getValue(),$t=$n||function(Cn){return(0,s.Z)({},fn,Cn)},nt=At[jt],mt=(0,n.Z)((0,n.Z)({},At),$t(ut));mt[jt]=function(){Ue.touched=!0,Ue.dirty=!0,Ue.triggerMetaEvent();for(var Cn,en=arguments.length,Hn=new Array(en),Rn=0;Rn=0&&mt<=Dt.length?(jt.keys=[].concat((0,c.Z)(jt.keys.slice(0,mt)),[jt.id],(0,c.Z)(jt.keys.slice(mt))),at([].concat((0,c.Z)(Dt.slice(0,mt)),[nt],(0,c.Z)(Dt.slice(mt))))):(jt.keys=[].concat((0,c.Z)(jt.keys),[jt.id]),at([].concat((0,c.Z)(Dt),[nt]))),jt.id+=1},remove:function(nt){var mt=an(),Dt=new Set(Array.isArray(nt)?nt:[nt]);Dt.size<=0||(jt.keys=jt.keys.filter(function(Cn,en){return!Dt.has(en)}),at(mt.filter(function(Cn,en){return!Dt.has(en)})))},move:function(nt,mt){if(nt!==mt){var Dt=an();nt<0||nt>=Dt.length||mt<0||mt>=Dt.length||(jt.keys=wt(jt.keys,nt,mt),at(wt(Dt,nt,mt)))}}},ut=_e||[];return Array.isArray(ut)||(ut=[]),Ye(ut.map(function($t,nt){var mt=jt.keys[nt];return mt===void 0&&(jt.keys[nt]=jt.id,mt=jt.keys[nt],jt.id+=1),{name:nt,key:mt,isListField:!0}}),st,On)})))}var V=ue,U=e(28314);function N(Pe){var we=!1,Le=Pe.length,Ye=[];return Pe.length?new Promise(function(Ue,dt){Pe.forEach(function(bt,ft){bt.catch(function(At){return we=!0,At}).then(function(At){Le-=1,Ye[ft]=At,!(Le>0)&&(we&&dt(Ye),Ue(Ye))})})}):Promise.resolve([])}var D="__@field_split__";function ee(Pe){return Pe.map(function(we){return"".concat((0,Ce.Z)(we),":").concat(we)}).join(D)}var se=function(){function Pe(){(0,l.Z)(this,Pe),this.kvs=new Map}return(0,v.Z)(Pe,[{key:"set",value:function(Le,Ye){this.kvs.set(ee(Le),Ye)}},{key:"get",value:function(Le){return this.kvs.get(ee(Le))}},{key:"update",value:function(Le,Ye){var Ue=this.get(Le),dt=Ye(Ue);dt?this.set(Le,dt):this.delete(Le)}},{key:"delete",value:function(Le){this.kvs.delete(ee(Le))}},{key:"map",value:function(Le){return(0,c.Z)(this.kvs.entries()).map(function(Ye){var Ue=(0,U.Z)(Ye,2),dt=Ue[0],bt=Ue[1],ft=dt.split(D);return Le({key:ft.map(function(At){var Ot=At.match(/^([^:]*):(.*)$/),jt=(0,U.Z)(Ot,3),Gt=jt[1],Xt=jt[2];return Gt==="number"?Number(Xt):Xt}),value:bt})})}},{key:"toJSON",value:function(){var Le={};return this.map(function(Ye){var Ue=Ye.key,dt=Ye.value;return Le[Ue.join(".")]=dt,null}),Le}}]),Pe}(),X=se,re=["name"],Ie=(0,v.Z)(function Pe(we){var Le=this;(0,l.Z)(this,Pe),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:Le.getFieldValue,getFieldsValue:Le.getFieldsValue,getFieldError:Le.getFieldError,getFieldWarning:Le.getFieldWarning,getFieldsError:Le.getFieldsError,isFieldsTouched:Le.isFieldsTouched,isFieldTouched:Le.isFieldTouched,isFieldValidating:Le.isFieldValidating,isFieldsValidating:Le.isFieldsValidating,resetFields:Le.resetFields,setFields:Le.setFields,setFieldValue:Le.setFieldValue,setFieldsValue:Le.setFieldsValue,validateFields:Le.validateFields,submit:Le.submit,_init:!0,getInternalHooks:Le.getInternalHooks}},this.getInternalHooks=function(Ye){return Ye===y?(Le.formHooked=!0,{dispatch:Le.dispatch,initEntityValue:Le.initEntityValue,registerField:Le.registerField,useSubscribe:Le.useSubscribe,setInitialValues:Le.setInitialValues,destroyForm:Le.destroyForm,setCallbacks:Le.setCallbacks,setValidateMessages:Le.setValidateMessages,getFields:Le.getFields,setPreserve:Le.setPreserve,getInitialValue:Le.getInitialValue,registerWatch:Le.registerWatch}):((0,S.ZP)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(Ye){Le.subscribable=Ye},this.prevWithoutPreserves=null,this.setInitialValues=function(Ye,Ue){if(Le.initialValues=Ye||{},Ue){var dt,bt=(0,ie.T)(Ye,Le.store);(dt=Le.prevWithoutPreserves)===null||dt===void 0||dt.map(function(ft){var At=ft.key;bt=(0,ie.Z)(bt,At,(0,ge.Z)(Ye,At))}),Le.prevWithoutPreserves=null,Le.updateStore(bt)}},this.destroyForm=function(){var Ye=new X;Le.getFieldEntities(!0).forEach(function(Ue){Le.isMergedPreserve(Ue.isPreserve())||Ye.set(Ue.getNamePath(),!0)}),Le.prevWithoutPreserves=Ye},this.getInitialValue=function(Ye){var Ue=(0,ge.Z)(Le.initialValues,Ye);return Ye.length?(0,ie.T)(Ue):Ue},this.setCallbacks=function(Ye){Le.callbacks=Ye},this.setValidateMessages=function(Ye){Le.validateMessages=Ye},this.setPreserve=function(Ye){Le.preserve=Ye},this.watchList=[],this.registerWatch=function(Ye){return Le.watchList.push(Ye),function(){Le.watchList=Le.watchList.filter(function(Ue){return Ue!==Ye})}},this.notifyWatch=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(Le.watchList.length){var Ue=Le.getFieldsValue(),dt=Le.getFieldsValue(!0);Le.watchList.forEach(function(bt){bt(Ue,dt,Ye)})}},this.timeoutId=null,this.warningUnhooked=function(){},this.updateStore=function(Ye){Le.store=Ye},this.getFieldEntities=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return Ye?Le.fieldEntities.filter(function(Ue){return Ue.getNamePath().length}):Le.fieldEntities},this.getFieldsMap=function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Ue=new X;return Le.getFieldEntities(Ye).forEach(function(dt){var bt=dt.getNamePath();Ue.set(bt,dt)}),Ue},this.getFieldEntitiesForNamePathList=function(Ye){if(!Ye)return Le.getFieldEntities(!0);var Ue=Le.getFieldsMap(!0);return Ye.map(function(dt){var bt=Me(dt);return Ue.get(bt)||{INVALIDATE_NAME_PATH:Me(dt)}})},this.getFieldsValue=function(Ye,Ue){Le.warningUnhooked();var dt,bt,ft;if(Ye===!0||Array.isArray(Ye)?(dt=Ye,bt=Ue):Ye&&(0,Ce.Z)(Ye)==="object"&&(ft=Ye.strict,bt=Ye.filter),dt===!0&&!bt)return Le.store;var At=Le.getFieldEntitiesForNamePathList(Array.isArray(dt)?dt:null),Ot=[];return At.forEach(function(jt){var Gt,Xt="INVALIDATE_NAME_PATH"in jt?jt.INVALIDATE_NAME_PATH:jt.getNamePath();if(ft){var Bn;if(!((Bn=jt.isList)===null||Bn===void 0)&&Bn.call(jt))return}else if(!dt&&(!((Gt=jt.isListField)===null||Gt===void 0)&&Gt.call(jt)))return;if(!bt)Ot.push(Xt);else{var fn="getMeta"in jt?jt.getMeta():null;bt(fn)&&Ot.push(Xt)}}),Ne(Le.store,Ot.map(Me))},this.getFieldValue=function(Ye){Le.warningUnhooked();var Ue=Me(Ye);return(0,ge.Z)(Le.store,Ue)},this.getFieldsError=function(Ye){Le.warningUnhooked();var Ue=Le.getFieldEntitiesForNamePathList(Ye);return Ue.map(function(dt,bt){return dt&&!("INVALIDATE_NAME_PATH"in dt)?{name:dt.getNamePath(),errors:dt.getErrors(),warnings:dt.getWarnings()}:{name:Me(Ye[bt]),errors:[],warnings:[]}})},this.getFieldError=function(Ye){Le.warningUnhooked();var Ue=Me(Ye),dt=Le.getFieldsError([Ue])[0];return dt.errors},this.getFieldWarning=function(Ye){Le.warningUnhooked();var Ue=Me(Ye),dt=Le.getFieldsError([Ue])[0];return dt.warnings},this.isFieldsTouched=function(){Le.warningUnhooked();for(var Ye=arguments.length,Ue=new Array(Ye),dt=0;dt0&&arguments[0]!==void 0?arguments[0]:{},Ue=new X,dt=Le.getFieldEntities(!0);dt.forEach(function(At){var Ot=At.props.initialValue,jt=At.getNamePath();if(Ot!==void 0){var Gt=Ue.get(jt)||new Set;Gt.add({entity:At,value:Ot}),Ue.set(jt,Gt)}});var bt=function(Ot){Ot.forEach(function(jt){var Gt=jt.props.initialValue;if(Gt!==void 0){var Xt=jt.getNamePath(),Bn=Le.getInitialValue(Xt);if(Bn!==void 0)(0,S.ZP)(!1,"Form already set 'initialValues' with path '".concat(Xt.join("."),"'. Field can not overwrite it."));else{var fn=Ue.get(Xt);if(fn&&fn.size>1)(0,S.ZP)(!1,"Multiple Field with path '".concat(Xt.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(fn){var $n=Le.getFieldValue(Xt);(!Ye.skipExist||$n===void 0)&&Le.updateStore((0,ie.Z)(Le.store,Xt,(0,c.Z)(fn)[0].value))}}}})},ft;Ye.entities?ft=Ye.entities:Ye.namePathList?(ft=[],Ye.namePathList.forEach(function(At){var Ot=Ue.get(At);if(Ot){var jt;(jt=ft).push.apply(jt,(0,c.Z)((0,c.Z)(Ot).map(function(Gt){return Gt.entity})))}})):ft=dt,bt(ft)},this.resetFields=function(Ye){Le.warningUnhooked();var Ue=Le.store;if(!Ye){Le.updateStore((0,ie.T)(Le.initialValues)),Le.resetWithFieldInitialValue(),Le.notifyObservers(Ue,null,{type:"reset"}),Le.notifyWatch();return}var dt=Ye.map(Me);dt.forEach(function(bt){var ft=Le.getInitialValue(bt);Le.updateStore((0,ie.Z)(Le.store,bt,ft))}),Le.resetWithFieldInitialValue({namePathList:dt}),Le.notifyObservers(Ue,dt,{type:"reset"}),Le.notifyWatch(dt)},this.setFields=function(Ye){Le.warningUnhooked();var Ue=Le.store,dt=[];Ye.forEach(function(bt){var ft=bt.name,At=(0,o.Z)(bt,re),Ot=Me(ft);dt.push(Ot),"value"in At&&Le.updateStore((0,ie.Z)(Le.store,Ot,At.value)),Le.notifyObservers(Ue,[Ot],{type:"setField",data:bt})}),Le.notifyWatch(dt)},this.getFields=function(){var Ye=Le.getFieldEntities(!0),Ue=Ye.map(function(dt){var bt=dt.getNamePath(),ft=dt.getMeta(),At=(0,n.Z)((0,n.Z)({},ft),{},{name:bt,value:Le.getFieldValue(bt)});return Object.defineProperty(At,"originRCField",{value:!0}),At});return Ue},this.initEntityValue=function(Ye){var Ue=Ye.props.initialValue;if(Ue!==void 0){var dt=Ye.getNamePath(),bt=(0,ge.Z)(Le.store,dt);bt===void 0&&Le.updateStore((0,ie.Z)(Le.store,dt,Ue))}},this.isMergedPreserve=function(Ye){var Ue=Ye!==void 0?Ye:Le.preserve;return Ue!=null?Ue:!0},this.registerField=function(Ye){Le.fieldEntities.push(Ye);var Ue=Ye.getNamePath();if(Le.notifyWatch([Ue]),Ye.props.initialValue!==void 0){var dt=Le.store;Le.resetWithFieldInitialValue({entities:[Ye],skipExist:!0}),Le.notifyObservers(dt,[Ye.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(bt,ft){var At=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(Le.fieldEntities=Le.fieldEntities.filter(function(Gt){return Gt!==Ye}),!Le.isMergedPreserve(ft)&&(!bt||At.length>1)){var Ot=bt?void 0:Le.getInitialValue(Ue);if(Ue.length&&Le.getFieldValue(Ue)!==Ot&&Le.fieldEntities.every(function(Gt){return!Ve(Gt.getNamePath(),Ue)})){var jt=Le.store;Le.updateStore((0,ie.Z)(jt,Ue,Ot,!0)),Le.notifyObservers(jt,[Ue],{type:"remove"}),Le.triggerDependenciesUpdate(jt,Ue)}}Le.notifyWatch([Ue])}},this.dispatch=function(Ye){switch(Ye.type){case"updateValue":{var Ue=Ye.namePath,dt=Ye.value;Le.updateValue(Ue,dt);break}case"validateField":{var bt=Ye.namePath,ft=Ye.triggerName;Le.validateFields([bt],{triggerName:ft});break}default:}},this.notifyObservers=function(Ye,Ue,dt){if(Le.subscribable){var bt=(0,n.Z)((0,n.Z)({},dt),{},{store:Le.getFieldsValue(!0)});Le.getFieldEntities().forEach(function(ft){var At=ft.onStoreChange;At(Ye,Ue,bt)})}else Le.forceRootUpdate()},this.triggerDependenciesUpdate=function(Ye,Ue){var dt=Le.getDependencyChildrenFields(Ue);return dt.length&&Le.validateFields(dt),Le.notifyObservers(Ye,dt,{type:"dependenciesUpdate",relatedFields:[Ue].concat((0,c.Z)(dt))}),dt},this.updateValue=function(Ye,Ue){var dt=Me(Ye),bt=Le.store;Le.updateStore((0,ie.Z)(Le.store,dt,Ue)),Le.notifyObservers(bt,[dt],{type:"valueUpdate",source:"internal"}),Le.notifyWatch([dt]);var ft=Le.triggerDependenciesUpdate(bt,dt),At=Le.callbacks.onValuesChange;if(At){var Ot=Ne(Le.store,[dt]);At(Ot,Le.getFieldsValue())}Le.triggerOnFieldsChange([dt].concat((0,c.Z)(ft)))},this.setFieldsValue=function(Ye){Le.warningUnhooked();var Ue=Le.store;if(Ye){var dt=(0,ie.T)(Le.store,Ye);Le.updateStore(dt)}Le.notifyObservers(Ue,null,{type:"valueUpdate",source:"external"}),Le.notifyWatch()},this.setFieldValue=function(Ye,Ue){Le.setFields([{name:Ye,value:Ue}])},this.getDependencyChildrenFields=function(Ye){var Ue=new Set,dt=[],bt=new X;Le.getFieldEntities().forEach(function(At){var Ot=At.props.dependencies;(Ot||[]).forEach(function(jt){var Gt=Me(jt);bt.update(Gt,function(){var Xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return Xt.add(At),Xt})})});var ft=function At(Ot){var jt=bt.get(Ot)||new Set;jt.forEach(function(Gt){if(!Ue.has(Gt)){Ue.add(Gt);var Xt=Gt.getNamePath();Gt.isFieldDirty()&&Xt.length&&(dt.push(Xt),At(Xt))}})};return ft(Ye),dt},this.triggerOnFieldsChange=function(Ye,Ue){var dt=Le.callbacks.onFieldsChange;if(dt){var bt=Le.getFields();if(Ue){var ft=new X;Ue.forEach(function(Ot){var jt=Ot.name,Gt=Ot.errors;ft.set(jt,Gt)}),bt.forEach(function(Ot){Ot.errors=ft.get(Ot.name)||Ot.errors})}var At=bt.filter(function(Ot){var jt=Ot.name;return Qe(Ye,jt)});At.length&&dt(At,bt)}},this.validateFields=function(Ye,Ue){Le.warningUnhooked();var dt,bt;Array.isArray(Ye)||typeof Ye=="string"||typeof Ue=="string"?(dt=Ye,bt=Ue):bt=Ye;var ft=!!dt,At=ft?dt.map(Me):[],Ot=[],jt=String(Date.now()),Gt=new Set;Le.getFieldEntities(!0).forEach(function($n){var On;if(ft||At.push($n.getNamePath()),!((On=bt)===null||On===void 0)&&On.recursive&&ft){var Mn=$n.getNamePath();Mn.every(function(Vt,an){return dt[an]===Vt||dt[an]===void 0})&&At.push(Mn)}if(!(!$n.props.rules||!$n.props.rules.length)){var _e=$n.getNamePath();if(Gt.add(_e.join(jt)),!ft||Qe(At,_e)){var at=$n.validateRules((0,n.Z)({validateMessages:(0,n.Z)((0,n.Z)({},H),Le.validateMessages)},bt));Ot.push(at.then(function(){return{name:_e,errors:[],warnings:[]}}).catch(function(Vt){var an,st=[],ut=[];return(an=Vt.forEach)===null||an===void 0||an.call(Vt,function($t){var nt=$t.rule.warningOnly,mt=$t.errors;nt?ut.push.apply(ut,(0,c.Z)(mt)):st.push.apply(st,(0,c.Z)(mt))}),st.length?Promise.reject({name:_e,errors:st,warnings:ut}):{name:_e,errors:st,warnings:ut}}))}}});var Xt=N(Ot);Le.lastValidatePromise=Xt,Xt.catch(function($n){return $n}).then(function($n){var On=$n.map(function(Mn){var _e=Mn.name;return _e});Le.notifyObservers(Le.store,On,{type:"validateFinish"}),Le.triggerOnFieldsChange(On,$n)});var Bn=Xt.then(function(){return Le.lastValidatePromise===Xt?Promise.resolve(Le.getFieldsValue(At)):Promise.reject([])}).catch(function($n){var On=$n.filter(function(Mn){return Mn&&Mn.errors.length});return Promise.reject({values:Le.getFieldsValue(At),errorFields:On,outOfDate:Le.lastValidatePromise!==Xt})});Bn.catch(function($n){return $n});var fn=At.filter(function($n){return Gt.has($n.join(jt))});return Le.triggerOnFieldsChange(fn),Bn},this.submit=function(){Le.warningUnhooked(),Le.validateFields().then(function(Ye){var Ue=Le.callbacks.onFinish;if(Ue)try{Ue(Ye)}catch(dt){console.error(dt)}}).catch(function(Ye){var Ue=Le.callbacks.onFinishFailed;Ue&&Ue(Ye)})},this.forceRootUpdate=we});function Se(Pe){var we=i.useRef(),Le=i.useState({}),Ye=(0,U.Z)(Le,2),Ue=Ye[1];if(!we.current)if(Pe)we.current=Pe;else{var dt=function(){Ue({})},bt=new Ie(dt);we.current=bt.getForm()}return[we.current]}var he=Se,We=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),de=function(we){var Le=we.validateMessages,Ye=we.onFormChange,Ue=we.onFormFinish,dt=we.children,bt=i.useContext(We),ft=i.useRef({});return i.createElement(We.Provider,{value:(0,n.Z)((0,n.Z)({},bt),{},{validateMessages:(0,n.Z)((0,n.Z)({},bt.validateMessages),Le),triggerFormChange:function(Ot,jt){Ye&&Ye(Ot,{changedFields:jt,forms:ft.current}),bt.triggerFormChange(Ot,jt)},triggerFormFinish:function(Ot,jt){Ue&&Ue(Ot,{values:jt,forms:ft.current}),bt.triggerFormFinish(Ot,jt)},registerForm:function(Ot,jt){Ot&&(ft.current=(0,n.Z)((0,n.Z)({},ft.current),{},(0,s.Z)({},Ot,jt))),bt.registerForm(Ot,jt)},unregisterForm:function(Ot){var jt=(0,n.Z)({},ft.current);delete jt[Ot],ft.current=jt,bt.unregisterForm(Ot)}})},dt)},le=We,ve=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],xe=function(we,Le){var Ye=we.name,Ue=we.initialValues,dt=we.fields,bt=we.form,ft=we.preserve,At=we.children,Ot=we.component,jt=Ot===void 0?"form":Ot,Gt=we.validateMessages,Xt=we.validateTrigger,Bn=Xt===void 0?"onChange":Xt,fn=we.onValuesChange,$n=we.onFieldsChange,On=we.onFinish,Mn=we.onFinishFailed,_e=(0,o.Z)(we,ve),at=i.useContext(le),Vt=he(bt),an=(0,U.Z)(Vt,1),st=an[0],ut=st.getInternalHooks(y),$t=ut.useSubscribe,nt=ut.setInitialValues,mt=ut.setCallbacks,Dt=ut.setValidateMessages,Cn=ut.setPreserve,en=ut.destroyForm;i.useImperativeHandle(Le,function(){return st}),i.useEffect(function(){return at.registerForm(Ye,st),function(){at.unregisterForm(Ye)}},[at,st,Ye]),Dt((0,n.Z)((0,n.Z)({},at.validateMessages),Gt)),mt({onValuesChange:fn,onFieldsChange:function(Pr){if(at.triggerFormChange(Ye,Pr),$n){for(var Vn=arguments.length,zt=new Array(Vn>1?Vn-1:0),Ft=1;Ft0;if(k||Y){var X=(0,v.D7)(Ve),re=(0,C.Z)(X).length,Ie=(0,s.Z)(Y)==="object"?Y.formatter({value:X,count:re,maxLength:O}):"".concat(re).concat(se?" / ".concat(O):"");return l.createElement(l.Fragment,null,!!Y&&l.createElement("span",{className:c()("".concat(ce,"-show-count-suffix"),(0,o.Z)({},"".concat(ce,"-show-count-has-suffix"),!!k),Ce==null?void 0:Ce.count),style:(0,t.Z)({},ge==null?void 0:ge.count)},Ie),k)}return null};return l.createElement(m,(0,i.Z)({},Me,{prefixCls:ce,className:G,inputElement:N(),handleReset:U,value:(0,v.D7)(Ve),focused:gt,triggerFocus:He,suffix:D(),disabled:te,classes:fe,classNames:Ce,styles:ge}))}),R=F,T=R},33615:function(M,b,e){"use strict";e.d(b,{D7:function(){return n},He:function(){return i},X3:function(){return t},nH:function(){return s},rJ:function(){return o}});function i(c){return!!(c.addonBefore||c.addonAfter)}function t(c){return!!(c.prefix||c.suffix||c.allowClear)}function o(c,l,v,h){if(v){var m=l;if(l.type==="click"){var C=c.cloneNode(!0);m=Object.create(l,{target:{value:C},currentTarget:{value:C}}),C.value="",v(m);return}if(h!==void 0){m=Object.create(l,{target:{value:c},currentTarget:{value:c}}),c.value=h,v(m);return}v(m)}}function s(c,l){if(c){c.focus(l);var v=l||{},h=v.cursor;if(h){var m=c.value.length;switch(h){case"start":c.setSelectionRange(0,0);break;case"end":c.setSelectionRange(m,m);break;default:c.setSelectionRange(0,m)}}}}function n(c){return typeof c=="undefined"||c===null?"":String(c)}},87854:function(M,b,e){"use strict";e.d(b,{iz:function(){return Hn},ck:function(){return Ue},BW:function(){return en},sN:function(){return Ue},Wd:function(){return $t},ZP:function(){return Vn},Xl:function(){return H}});var i=e(60698),t=e(37734),o=e(57370),s=e(29140),n=e(28314),c=e(47075),l=e(87608),v=e.n(l),h=e(9257),m=e(60409),C=e(75556),p=e(58757),S=e(26736),w=e(7637),y=p.createContext(null);function Z(zt,Ft){return zt===void 0?null:"".concat(zt,"-").concat(Ft)}function F(zt){var Ft=p.useContext(y);return Z(Ft,zt)}var R=e(27903),T=["children","locked"],z=p.createContext(null);function A(zt,Ft){var sn=(0,o.Z)({},zt);return Object.keys(Ft).forEach(function(tn){var kt=Ft[tn];kt!==void 0&&(sn[tn]=kt)}),sn}function L(zt){var Ft=zt.children,sn=zt.locked,tn=(0,c.Z)(zt,T),kt=p.useContext(z),hn=(0,R.Z)(function(){return A(kt,tn)},[kt,tn],function(dn,Fn){return!sn&&(dn[0]!==Fn[0]||!(0,w.Z)(dn[1],Fn[1],!0))});return p.createElement(z.Provider,{value:hn},Ft)}var I=[],$=p.createContext(null);function B(){return p.useContext($)}var K=p.createContext(I);function H(zt){var Ft=p.useContext(K);return p.useMemo(function(){return zt!==void 0?[].concat((0,s.Z)(Ft),[zt]):Ft},[Ft,zt])}var ie=p.createContext(null),ce=p.createContext({}),te=ce,W=e(29639),G=e(61834),O=e(46499);function k(zt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,O.Z)(zt)){var sn=zt.nodeName.toLowerCase(),tn=["input","select","textarea","button"].includes(sn)||zt.isContentEditable||sn==="a"&&!!zt.getAttribute("href"),kt=zt.getAttribute("tabindex"),hn=Number(kt),dn=null;return kt&&!Number.isNaN(hn)?dn=hn:tn&&dn===null&&(dn=0),tn&&zt.disabled&&(dn=null),dn!==null&&(dn>=0||Ft&&dn<0)}return!1}function Y(zt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=(0,s.Z)(zt.querySelectorAll("*")).filter(function(tn){return k(tn,Ft)});return k(zt,Ft)&&sn.unshift(zt),sn}var P=null;function Q(){P=document.activeElement}function fe(){P=null}function Ce(){if(P)try{P.focus()}catch(zt){}}function ge(zt,Ft){if(Ft.keyCode===9){var sn=Y(zt),tn=sn[Ft.shiftKey?0:sn.length-1],kt=tn===document.activeElement||zt===document.activeElement;if(kt){var hn=sn[Ft.shiftKey?sn.length-1:0];hn.focus(),Ft.preventDefault()}}}var Me=W.Z.LEFT,Ne=W.Z.RIGHT,Qe=W.Z.UP,Ve=W.Z.DOWN,qe=W.Z.ENTER,Mt=W.Z.ESC,wt=W.Z.HOME,gt=W.Z.END,Lt=[Qe,Ve,Me,Ne];function ke(zt,Ft,sn,tn){var kt,hn,dn,Fn,tr="prev",ct="next",lt="children",xt="parent";if(zt==="inline"&&tn===qe)return{inlineTrigger:!0};var St=(kt={},(0,t.Z)(kt,Qe,tr),(0,t.Z)(kt,Ve,ct),kt),Nt=(hn={},(0,t.Z)(hn,Me,sn?ct:tr),(0,t.Z)(hn,Ne,sn?tr:ct),(0,t.Z)(hn,Ve,lt),(0,t.Z)(hn,qe,lt),hn),_t=(dn={},(0,t.Z)(dn,Qe,tr),(0,t.Z)(dn,Ve,ct),(0,t.Z)(dn,qe,lt),(0,t.Z)(dn,Mt,xt),(0,t.Z)(dn,Me,sn?lt:xt),(0,t.Z)(dn,Ne,sn?xt:lt),dn),Wt={inline:St,horizontal:Nt,vertical:_t,inlineSub:St,horizontalSub:_t,verticalSub:_t},yn=(Fn=Wt["".concat(zt).concat(Ft?"":"Sub")])===null||Fn===void 0?void 0:Fn[tn];switch(yn){case tr:return{offset:-1,sibling:!0};case ct:return{offset:1,sibling:!0};case xt:return{offset:-1,sibling:!1};case lt:return{offset:1,sibling:!1};default:return null}}function He(zt){for(var Ft=zt;Ft;){if(Ft.getAttribute("data-menu-list"))return Ft;Ft=Ft.parentElement}return null}function et(zt,Ft){for(var sn=zt||document.activeElement;sn;){if(Ft.has(sn))return sn;sn=sn.parentElement}return null}function Fe(zt,Ft){var sn=Y(zt,!0);return sn.filter(function(tn){return Ft.has(tn)})}function ue(zt,Ft,sn){var tn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!zt)return null;var kt=Fe(zt,Ft),hn=kt.length,dn=kt.findIndex(function(Fn){return sn===Fn});return tn<0?dn===-1?dn=hn-1:dn-=1:tn>0&&(dn+=1),dn=(dn+hn)%hn,kt[dn]}function V(zt,Ft,sn,tn,kt,hn,dn,Fn,tr,ct){var lt=p.useRef(),xt=p.useRef();xt.current=Ft;var St=function(){G.Z.cancel(lt.current)};return p.useEffect(function(){return function(){St()}},[]),function(Nt){var _t=Nt.which;if([].concat(Lt,[qe,Mt,wt,gt]).includes(_t)){var Wt,yn,kn,hr=function(){Wt=new Set,yn=new Map,kn=new Map;var Kr=hn();return Kr.forEach(function(ra){var Xr=document.querySelector("[data-menu-id='".concat(Z(tn,ra),"']"));Xr&&(Wt.add(Xr),kn.set(Xr,ra),yn.set(ra,Xr))}),Wt};hr();var cr=yn.get(Ft),Dn=et(cr,Wt),Rr=kn.get(Dn),or=ke(zt,dn(Rr,!0).length===1,sn,_t);if(!or&&_t!==wt&&_t!==gt)return;(Lt.includes(_t)||[wt,gt].includes(_t))&&Nt.preventDefault();var Gr=function(Kr){if(Kr){var ra=Kr,Xr=Kr.querySelector("a");Xr!=null&&Xr.getAttribute("href")&&(ra=Xr);var Fr=kn.get(Kr);Fn(Fr),St(),lt.current=(0,G.Z)(function(){xt.current===Fr&&ra.focus()})}};if([wt,gt].includes(_t)||or.sibling||!Dn){var Ir;!Dn||zt==="inline"?Ir=kt.current:Ir=He(Dn);var Pn,vn=Fe(Ir,Wt);_t===wt?Pn=vn[0]:_t===gt?Pn=vn[vn.length-1]:Pn=ue(Ir,Wt,Dn,or.offset),Gr(Pn)}else if(or.inlineTrigger)tr(Rr);else if(or.offset>0)tr(Rr,!0),St(),lt.current=(0,G.Z)(function(){hr();var $r=Dn.getAttribute("aria-controls"),Kr=document.getElementById($r),ra=ue(Kr,Wt);Gr(ra)},5);else if(or.offset<0){var Nn=dn(Rr,!0),Zn=Nn[Nn.length-2],yr=yn.get(Zn);tr(Zn,!1),Gr(yr)}}ct==null||ct(Nt)}}function U(zt){Promise.resolve().then(zt)}var N="__RC_UTIL_PATH_SPLIT__",D=function(Ft){return Ft.join(N)},ee=function(Ft){return Ft.split(N)},se="rc-menu-more";function X(){var zt=p.useState({}),Ft=(0,n.Z)(zt,2),sn=Ft[1],tn=(0,p.useRef)(new Map),kt=(0,p.useRef)(new Map),hn=p.useState([]),dn=(0,n.Z)(hn,2),Fn=dn[0],tr=dn[1],ct=(0,p.useRef)(0),lt=(0,p.useRef)(!1),xt=function(){lt.current||sn({})},St=(0,p.useCallback)(function(cr,Dn){var Rr=D(Dn);kt.current.set(Rr,cr),tn.current.set(cr,Rr),ct.current+=1;var or=ct.current;U(function(){or===ct.current&&xt()})},[]),Nt=(0,p.useCallback)(function(cr,Dn){var Rr=D(Dn);kt.current.delete(Rr),tn.current.delete(cr)},[]),_t=(0,p.useCallback)(function(cr){tr(cr)},[]),Wt=(0,p.useCallback)(function(cr,Dn){var Rr=tn.current.get(cr)||"",or=ee(Rr);return Dn&&Fn.includes(or[0])&&or.unshift(se),or},[Fn]),yn=(0,p.useCallback)(function(cr,Dn){return cr.some(function(Rr){var or=Wt(Rr,!0);return or.includes(Dn)})},[Wt]),kn=function(){var Dn=(0,s.Z)(tn.current.keys());return Fn.length&&Dn.push(se),Dn},hr=(0,p.useCallback)(function(cr){var Dn="".concat(tn.current.get(cr)).concat(N),Rr=new Set;return(0,s.Z)(kt.current.keys()).forEach(function(or){or.startsWith(Dn)&&Rr.add(kt.current.get(or))}),Rr},[]);return p.useEffect(function(){return function(){lt.current=!0}},[]),{registerPath:St,unregisterPath:Nt,refreshOverflowKeys:_t,isSubPathKey:yn,getKeyPath:Wt,getKeys:kn,getSubPathKeys:hr}}function re(zt){var Ft=p.useRef(zt);Ft.current=zt;var sn=p.useCallback(function(){for(var tn,kt=arguments.length,hn=new Array(kt),dn=0;dn1&&(hr.motionAppear=!1);var cr=hr.onVisibleChanged;return hr.onVisibleChanged=function(Dn){return!St.current&&!Dn&&yn(!0),cr==null?void 0:cr(Dn)},Wt?null:p.createElement(L,{mode:hn,locked:!St.current},p.createElement(at.ZP,(0,i.Z)({visible:kn},hr,{forceRender:tr,removeOnLeave:!1,leavedClassName:"".concat(Fn,"-hidden")}),function(Dn){var Rr=Dn.className,or=Dn.style;return p.createElement(At,{id:Ft,className:Rr,style:or},kt)}))}var an=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],st=["active"],ut=function(Ft){var sn,tn=Ft.style,kt=Ft.className,hn=Ft.title,dn=Ft.eventKey,Fn=Ft.warnKey,tr=Ft.disabled,ct=Ft.internalPopupClose,lt=Ft.children,xt=Ft.itemIcon,St=Ft.expandIcon,Nt=Ft.popupClassName,_t=Ft.popupOffset,Wt=Ft.onClick,yn=Ft.onMouseEnter,kn=Ft.onMouseLeave,hr=Ft.onTitleClick,cr=Ft.onTitleMouseEnter,Dn=Ft.onTitleMouseLeave,Rr=(0,c.Z)(Ft,an),or=F(dn),Gr=p.useContext(z),Ir=Gr.prefixCls,Pn=Gr.mode,vn=Gr.openKeys,Nn=Gr.disabled,Zn=Gr.overflowDisabled,yr=Gr.activeKey,$r=Gr.selectedKeys,Kr=Gr.itemIcon,ra=Gr.expandIcon,Xr=Gr.onItemClick,Fr=Gr.onOpenChange,xa=Gr.onActive,la=p.useContext(te),Tn=la._internalRenderSubMenuItem,xn=p.useContext(ie),Gn=xn.isSubPathKey,Lr=H(),zr="".concat(Ir,"-submenu"),Br=Nn||tr,Ma=p.useRef(),co=p.useRef(),ro=xt||Kr,xo=St||ra,Pa=vn.includes(dn),Ua=!Zn&&Pa,eo=Gn($r,dn),Fo=pe(dn,Br,cr,Dn),jo=Fo.active,Bo=(0,c.Z)(Fo,st),ot=p.useState(!1),yt=(0,n.Z)(ot,2),be=yt[0],Bt=yt[1],Jt=function(Tt){Br||Bt(Tt)},Jn=function(Tt){Jt(!0),yn==null||yn({key:dn,domEvent:Tt})},Kn=function(Tt){Jt(!1),kn==null||kn({key:dn,domEvent:Tt})},br=p.useMemo(function(){return jo||(Pn!=="inline"?be||Gn([yr],dn):!1)},[Pn,jo,yr,be,dn,Gn]),ea=Je(Lr.length),ka=function(Tt){Br||(hr==null||hr({key:dn,domEvent:Tt}),Pn==="inline"&&Fr(dn,!Pa))},kr=re(function(Xa){Wt==null||Wt(ye(Xa)),Xr(Xa)}),Dr=function(Tt){Pn!=="inline"&&Fr(dn,Tt)},wr=function(){xa(dn)},sr=or&&"".concat(or,"-popup"),dr=p.createElement("div",(0,i.Z)({role:"menuitem",style:ea,className:"".concat(zr,"-title"),tabIndex:Br?null:-1,ref:Ma,title:typeof hn=="string"?hn:null,"data-menu-id":Zn&&or?null:or,"aria-expanded":Ua,"aria-haspopup":!0,"aria-controls":sr,"aria-disabled":Br,onClick:ka,onFocus:wr},Bo),hn,p.createElement(Ae,{icon:Pn!=="horizontal"?xo:null,props:(0,o.Z)((0,o.Z)({},Ft),{},{isOpen:Ua,isSubMenu:!0})},p.createElement("i",{className:"".concat(zr,"-arrow")}))),Tr=p.useRef(Pn);if(Pn!=="inline"&&Lr.length>1?Tr.current="vertical":Tr.current=Pn,!Zn){var ga=Tr.current;dr=p.createElement(_e,{mode:ga,prefixCls:zr,visible:!ct&&Ua&&Pn!=="inline",popupClassName:Nt,popupOffset:_t,popup:p.createElement(L,{mode:ga==="horizontal"?"vertical":ga},p.createElement(At,{id:sr,ref:co},lt)),disabled:Br,onVisibleChange:Dr},dr)}var fo=p.createElement(h.Z.Item,(0,i.Z)({role:"none"},Rr,{component:"li",style:tn,className:v()(zr,"".concat(zr,"-").concat(Pn),kt,(sn={},(0,t.Z)(sn,"".concat(zr,"-open"),Ua),(0,t.Z)(sn,"".concat(zr,"-active"),br),(0,t.Z)(sn,"".concat(zr,"-selected"),eo),(0,t.Z)(sn,"".concat(zr,"-disabled"),Br),sn)),onMouseEnter:Jn,onMouseLeave:Kn}),dr,!Zn&&p.createElement(Vt,{id:sr,open:Ua,keyPath:Lr},lt));return Tn&&(fo=Tn(fo,Ft,{selected:eo,active:br,open:Ua,disabled:Br})),p.createElement(L,{onItemClick:kr,mode:Pn==="horizontal"?"vertical":Pn,itemIcon:ro,expandIcon:xo},fo)};function $t(zt){var Ft=zt.eventKey,sn=zt.children,tn=H(Ft),kt=jt(sn,tn),hn=B();p.useEffect(function(){if(hn)return hn.registerPath(Ft,tn),function(){hn.unregisterPath(Ft,tn)}},[tn]);var dn;return hn?dn=kt:dn=p.createElement(ut,zt,kt),p.createElement(K.Provider,{value:tn},dn)}var nt=e(38790),mt=["className","title","eventKey","children"],Dt=["children"],Cn=function(Ft){var sn=Ft.className,tn=Ft.title,kt=Ft.eventKey,hn=Ft.children,dn=(0,c.Z)(Ft,mt),Fn=p.useContext(z),tr=Fn.prefixCls,ct="".concat(tr,"-item-group");return p.createElement("li",(0,i.Z)({role:"presentation"},dn,{onClick:function(xt){return xt.stopPropagation()},className:v()(ct,sn)}),p.createElement("div",{role:"presentation",className:"".concat(ct,"-title"),title:typeof tn=="string"?tn:void 0},tn),p.createElement("ul",{role:"group",className:"".concat(ct,"-list")},hn))};function en(zt){var Ft=zt.children,sn=(0,c.Z)(zt,Dt),tn=H(sn.eventKey),kt=jt(Ft,tn),hn=B();return hn?kt:p.createElement(Cn,(0,xe.Z)(sn,["warnKey"]),kt)}function Hn(zt){var Ft=zt.className,sn=zt.style,tn=p.useContext(z),kt=tn.prefixCls,hn=B();return hn?null:p.createElement("li",{className:v()("".concat(kt,"-item-divider"),Ft),style:sn})}var Rn=["label","children","key","type"];function pr(zt){return(zt||[]).map(function(Ft,sn){if(Ft&&(0,nt.Z)(Ft)==="object"){var tn=Ft,kt=tn.label,hn=tn.children,dn=tn.key,Fn=tn.type,tr=(0,c.Z)(tn,Rn),ct=dn!=null?dn:"tmp-".concat(sn);return hn||Fn==="group"?Fn==="group"?p.createElement(en,(0,i.Z)({key:ct},tr,{title:kt}),pr(hn)):p.createElement($t,(0,i.Z)({key:ct},tr,{title:kt}),pr(hn)):Fn==="divider"?p.createElement(Hn,(0,i.Z)({key:ct},tr)):p.createElement(Ue,(0,i.Z)({key:ct},tr),kt)}return null}).filter(function(Ft){return Ft})}function gr(zt,Ft,sn){var tn=zt;return Ft&&(tn=pr(Ft)),jt(tn,sn)}var Or=["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"],ar=[],mr=p.forwardRef(function(zt,Ft){var sn,tn,kt=zt,hn=kt.prefixCls,dn=hn===void 0?"rc-menu":hn,Fn=kt.rootClassName,tr=kt.style,ct=kt.className,lt=kt.tabIndex,xt=lt===void 0?0:lt,St=kt.items,Nt=kt.children,_t=kt.direction,Wt=kt.id,yn=kt.mode,kn=yn===void 0?"vertical":yn,hr=kt.inlineCollapsed,cr=kt.disabled,Dn=kt.disabledOverflow,Rr=kt.subMenuOpenDelay,or=Rr===void 0?.1:Rr,Gr=kt.subMenuCloseDelay,Ir=Gr===void 0?.1:Gr,Pn=kt.forceSubMenuRender,vn=kt.defaultOpenKeys,Nn=kt.openKeys,Zn=kt.activeKey,yr=kt.defaultActiveFirst,$r=kt.selectable,Kr=$r===void 0?!0:$r,ra=kt.multiple,Xr=ra===void 0?!1:ra,Fr=kt.defaultSelectedKeys,xa=kt.selectedKeys,la=kt.onSelect,Tn=kt.onDeselect,xn=kt.inlineIndent,Gn=xn===void 0?24:xn,Lr=kt.motion,zr=kt.defaultMotions,Br=kt.triggerSubMenuAction,Ma=Br===void 0?"hover":Br,co=kt.builtinPlacements,ro=kt.itemIcon,xo=kt.expandIcon,Pa=kt.overflowedIndicator,Ua=Pa===void 0?"...":Pa,eo=kt.overflowedIndicatorPopupClassName,Fo=kt.getPopupContainer,jo=kt.onClick,Bo=kt.onOpenChange,ot=kt.onKeyDown,yt=kt.openAnimation,be=kt.openTransitionName,Bt=kt._internalRenderMenuItem,Jt=kt._internalRenderSubMenuItem,Jn=(0,c.Z)(kt,Or),Kn=p.useMemo(function(){return gr(Nt,St,ar)},[Nt,St]),br=p.useState(!1),ea=(0,n.Z)(br,2),ka=ea[0],kr=ea[1],Dr=p.useRef(),wr=he(Wt),sr=_t==="rtl",dr=(0,m.Z)(vn,{value:Nn,postState:function(pa){return pa||ar}}),Tr=(0,n.Z)(dr,2),ga=Tr[0],fo=Tr[1],Xa=function(pa){var fa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ho(){fo(pa),Bo==null||Bo(pa)}fa?(0,S.flushSync)(Ho):Ho()},Tt=p.useState(ga),Kt=(0,n.Z)(Tt,2),ln=Kt[0],An=Kt[1],_n=p.useRef(!1),fr=p.useMemo(function(){return(kn==="inline"||kn==="vertical")&&hr?["vertical",hr]:[kn,!1]},[kn,hr]),Er=(0,n.Z)(fr,2),wn=Er[0],vr=Er[1],Ar=wn==="inline",oa=p.useState(wn),ta=(0,n.Z)(oa,2),Wa=ta[0],bo=ta[1],No=p.useState(vr),Ga=(0,n.Z)(No,2),To=Ga[0],vo=Ga[1];p.useEffect(function(){bo(wn),vo(vr),_n.current&&(Ar?fo(ln):Xa(ar))},[wn,vr]);var Jr=p.useState(0),Ra=(0,n.Z)(Jr,2),Ao=Ra[0],ai=Ra[1],fi=Ao>=Kn.length-1||Wa!=="horizontal"||Dn;p.useEffect(function(){Ar&&An(ga)},[ga]),p.useEffect(function(){return _n.current=!0,function(){_n.current=!1}},[]);var go=X(),Oi=go.registerPath,Li=go.unregisterPath,oi=go.refreshOverflowKeys,Di=go.isSubPathKey,Fi=go.getKeyPath,wi=go.getKeys,Ti=go.getSubPathKeys,ns=p.useMemo(function(){return{registerPath:Oi,unregisterPath:Li}},[Oi,Li]),Zi=p.useMemo(function(){return{isSubPathKey:Di}},[Di]);p.useEffect(function(){oi(fi?ar:Kn.slice(Ao+1).map(function(ca){return ca.key}))},[Ao,fi]);var ao=(0,m.Z)(Zn||yr&&((sn=Kn[0])===null||sn===void 0?void 0:sn.key),{value:Zn}),Ka=(0,n.Z)(ao,2),mi=Ka[0],ii=Ka[1],Zo=re(function(ca){ii(ca)}),Ko=re(function(){ii(void 0)});(0,p.useImperativeHandle)(Ft,function(){return{list:Dr.current,focus:function(pa){var fa,Ho=mi!=null?mi:(fa=Kn.find(function(bs){return!bs.props.disabled}))===null||fa===void 0?void 0:fa.key;if(Ho){var si,Jo,Wi;(si=Dr.current)===null||si===void 0||(Jo=si.querySelector("li[data-menu-id='".concat(Z(wr,Ho),"']")))===null||Jo===void 0||(Wi=Jo.focus)===null||Wi===void 0||Wi.call(Jo,pa)}}}});var Ni=(0,m.Z)(Fr||[],{value:xa,postState:function(pa){return Array.isArray(pa)?pa:pa==null?ar:[pa]}}),Ji=(0,n.Z)(Ni,2),Ki=Ji[0],Is=Ji[1],hs=function(pa){if(Kr){var fa=pa.key,Ho=Ki.includes(fa),si;Xr?Ho?si=Ki.filter(function(Wi){return Wi!==fa}):si=[].concat((0,s.Z)(Ki),[fa]):si=[fa],Is(si);var Jo=(0,o.Z)((0,o.Z)({},pa),{},{selectedKeys:si});Ho?Tn==null||Tn(Jo):la==null||la(Jo)}!Xr&&ga.length&&Wa!=="inline"&&Xa(ar)},Ns=re(function(ca){jo==null||jo(ye(ca)),hs(ca)}),bl=re(function(ca,pa){var fa=ga.filter(function(si){return si!==ca});if(pa)fa.push(ca);else if(Wa!=="inline"){var Ho=Ti(ca);fa=fa.filter(function(si){return!Ho.has(si)})}(0,w.Z)(ga,fa,!0)||Xa(fa,!0)}),bn=function(pa,fa){var Ho=fa!=null?fa:!ga.includes(pa);bl(pa,Ho)},Mr=V(Wa,mi,sr,wr,Dr,wi,Fi,ii,bn,ot);p.useEffect(function(){kr(!0)},[]);var nr=p.useMemo(function(){return{_internalRenderMenuItem:Bt,_internalRenderSubMenuItem:Jt}},[Bt,Jt]),ur=Wa!=="horizontal"||Dn?Kn:Kn.map(function(ca,pa){return p.createElement(L,{key:ca.key,overflowDisabled:pa>Ao},ca)}),Cr=p.createElement(h.Z,(0,i.Z)({id:Wt,ref:Dr,prefixCls:"".concat(dn,"-overflow"),component:"ul",itemComponent:Ue,className:v()(dn,"".concat(dn,"-root"),"".concat(dn,"-").concat(Wa),ct,(tn={},(0,t.Z)(tn,"".concat(dn,"-inline-collapsed"),To),(0,t.Z)(tn,"".concat(dn,"-rtl"),sr),tn),Fn),dir:_t,style:tr,role:"menu",tabIndex:xt,data:ur,renderRawItem:function(pa){return pa},renderRawRest:function(pa){var fa=pa.length,Ho=fa?Kn.slice(-fa):null;return p.createElement($t,{eventKey:se,title:Ua,disabled:fi,internalPopupClose:fa===0,popupClassName:eo},Ho)},maxCount:Wa!=="horizontal"||Dn?h.Z.INVALIDATE:h.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(pa){ai(pa)},onKeyDown:Mr},Jn));return p.createElement(te.Provider,{value:nr},p.createElement(y.Provider,{value:wr},p.createElement(L,{prefixCls:dn,rootClassName:Fn,mode:Wa,openKeys:ga,rtl:sr,disabled:cr,motion:ka?Lr:null,defaultMotions:ka?zr:null,activeKey:mi,onActive:Zo,onInactive:Ko,selectedKeys:Ki,inlineIndent:Gn,subMenuOpenDelay:or,subMenuCloseDelay:Ir,forceSubMenuRender:Pn,builtinPlacements:co,triggerSubMenuAction:Ma,getPopupContainer:Fo,itemIcon:ro,expandIcon:xo,onItemClick:Ns,onOpenChange:bl},p.createElement(ie.Provider,{value:Zi},Cr),p.createElement("div",{style:{display:"none"},"aria-hidden":!0},p.createElement($.Provider,{value:ns},Kn)))))}),qr=mr,Pr=qr;Pr.Item=Ue,Pr.SubMenu=$t,Pr.ItemGroup=en,Pr.Divider=Hn;var Vn=Pr},17598:function(M,b,e){"use strict";e.d(b,{V4:function(){return pe},zt:function(){return S},ZP:function(){return Je}});var i=e(37734),t=e(57370),o=e(28314),s=e(38790),n=e(87608),c=e.n(n),l=e(69188),v=e(21319),h=e(58757),m=e(47075),C=["children"],p=h.createContext({});function S(Ae){var oe=Ae.children,ye=(0,m.Z)(Ae,C);return h.createElement(p.Provider,{value:ye},oe)}var w=e(60412),y=e(14346),Z=e(87498),F=e(73726),R=function(Ae){(0,Z.Z)(ye,Ae);var oe=(0,F.Z)(ye);function ye(){return(0,w.Z)(this,ye),oe.apply(this,arguments)}return(0,y.Z)(ye,[{key:"render",value:function(){return this.props.children}}]),ye}(h.Component),T=R,z=e(13989),A="none",L="appear",I="enter",$="leave",B="none",K="prepare",H="start",ie="active",ce="end",te="prepared",W=e(19075);function G(Ae,oe){var ye={};return ye[Ae.toLowerCase()]=oe.toLowerCase(),ye["Webkit".concat(Ae)]="webkit".concat(oe),ye["Moz".concat(Ae)]="moz".concat(oe),ye["ms".concat(Ae)]="MS".concat(oe),ye["O".concat(Ae)]="o".concat(oe.toLowerCase()),ye}function O(Ae,oe){var ye={animationend:G("Animation","AnimationEnd"),transitionend:G("Transition","TransitionEnd")};return Ae&&("AnimationEvent"in oe||delete ye.animationend.animation,"TransitionEvent"in oe||delete ye.transitionend.transition),ye}var k=O((0,W.Z)(),typeof window!="undefined"?window:{}),Y={};if((0,W.Z)()){var P=document.createElement("div");Y=P.style}var Q={};function fe(Ae){if(Q[Ae])return Q[Ae];var oe=k[Ae];if(oe)for(var ye=Object.keys(oe),Be=ye.length,De=0;De1&&arguments[1]!==void 0?arguments[1]:2;oe();var Pe=(0,gt.Z)(function(){De<=1?Be({isCanceled:function(){return Pe!==Ae.current}}):ye(Be,De-1)});Ae.current=Pe}return h.useEffect(function(){return function(){oe()}},[]),[ye,oe]},ke=[K,H,ie,ce],He=[K,te],et=!1,Fe=!0;function ue(Ae){return Ae===ie||Ae===ce}var V=function(Ae,oe,ye){var Be=(0,z.Z)(B),De=(0,o.Z)(Be,2),Pe=De[0],we=De[1],Le=Lt(),Ye=(0,o.Z)(Le,2),Ue=Ye[0],dt=Ye[1];function bt(){we(K,!0)}var ft=oe?He:ke;return wt(function(){if(Pe!==B&&Pe!==ce){var At=ft.indexOf(Pe),Ot=ft[At+1],jt=ye(Pe);jt===et?we(Ot,!0):Ot&&Ue(function(Gt){function Xt(){Gt.isCanceled()||we(Ot,!0)}jt===!0?Xt():Promise.resolve(jt).then(Xt)})}},[Ae,Pe]),h.useEffect(function(){return function(){dt()}},[]),[bt,Pe]};function U(Ae,oe,ye,Be){var De=Be.motionEnter,Pe=De===void 0?!0:De,we=Be.motionAppear,Le=we===void 0?!0:we,Ye=Be.motionLeave,Ue=Ye===void 0?!0:Ye,dt=Be.motionDeadline,bt=Be.motionLeaveImmediately,ft=Be.onAppearPrepare,At=Be.onEnterPrepare,Ot=Be.onLeavePrepare,jt=Be.onAppearStart,Gt=Be.onEnterStart,Xt=Be.onLeaveStart,Bn=Be.onAppearActive,fn=Be.onEnterActive,$n=Be.onLeaveActive,On=Be.onAppearEnd,Mn=Be.onEnterEnd,_e=Be.onLeaveEnd,at=Be.onVisibleChanged,Vt=(0,z.Z)(),an=(0,o.Z)(Vt,2),st=an[0],ut=an[1],$t=(0,z.Z)(A),nt=(0,o.Z)($t,2),mt=nt[0],Dt=nt[1],Cn=(0,z.Z)(null),en=(0,o.Z)(Cn,2),Hn=en[0],Rn=en[1],pr=(0,h.useRef)(!1),gr=(0,h.useRef)(null);function Or(){return ye()}var ar=(0,h.useRef)(!1);function mr(){Dt(A,!0),Rn(null,!0)}function qr(lt){var xt=Or();if(!(lt&&!lt.deadline&<.target!==xt)){var St=ar.current,Nt;mt===L&&St?Nt=On==null?void 0:On(xt,lt):mt===I&&St?Nt=Mn==null?void 0:Mn(xt,lt):mt===$&&St&&(Nt=_e==null?void 0:_e(xt,lt)),mt!==A&&St&&Nt!==!1&&mr()}}var Pr=qe(qr),Vn=(0,o.Z)(Pr,1),zt=Vn[0],Ft=function(xt){var St,Nt,_t;switch(xt){case L:return St={},(0,i.Z)(St,K,ft),(0,i.Z)(St,H,jt),(0,i.Z)(St,ie,Bn),St;case I:return Nt={},(0,i.Z)(Nt,K,At),(0,i.Z)(Nt,H,Gt),(0,i.Z)(Nt,ie,fn),Nt;case $:return _t={},(0,i.Z)(_t,K,Ot),(0,i.Z)(_t,H,Xt),(0,i.Z)(_t,ie,$n),_t;default:return{}}},sn=h.useMemo(function(){return Ft(mt)},[mt]),tn=V(mt,!Ae,function(lt){if(lt===K){var xt=sn[K];return xt?xt(Or()):et}if(dn in sn){var St;Rn(((St=sn[dn])===null||St===void 0?void 0:St.call(sn,Or(),null))||null)}return dn===ie&&(zt(Or()),dt>0&&(clearTimeout(gr.current),gr.current=setTimeout(function(){qr({deadline:!0})},dt))),dn===te&&mr(),Fe}),kt=(0,o.Z)(tn,2),hn=kt[0],dn=kt[1],Fn=ue(dn);ar.current=Fn,wt(function(){ut(oe);var lt=pr.current;pr.current=!0;var xt;!lt&&oe&&Le&&(xt=L),lt&&oe&&Pe&&(xt=I),(lt&&!oe&&Ue||!lt&&bt&&!oe&&Ue)&&(xt=$);var St=Ft(xt);xt&&(Ae||St[K])?(Dt(xt),hn()):Dt(A)},[oe]),(0,h.useEffect)(function(){(mt===L&&!Le||mt===I&&!Pe||mt===$&&!Ue)&&Dt(A)},[Le,Pe,Ue]),(0,h.useEffect)(function(){return function(){pr.current=!1,clearTimeout(gr.current)}},[]);var tr=h.useRef(!1);(0,h.useEffect)(function(){st&&(tr.current=!0),st!==void 0&&mt===A&&((tr.current||st)&&(at==null||at(st)),tr.current=!0)},[st,mt]);var ct=Hn;return sn[K]&&dn===H&&(ct=(0,t.Z)({transition:"none"},ct)),[mt,dn,ct,st!=null?st:oe]}function N(Ae){var oe=Ae;(0,s.Z)(Ae)==="object"&&(oe=Ae.transitionSupport);function ye(De,Pe){return!!(De.motionName&&oe&&Pe!==!1)}var Be=h.forwardRef(function(De,Pe){var we=De.visible,Le=we===void 0?!0:we,Ye=De.removeOnLeave,Ue=Ye===void 0?!0:Ye,dt=De.forceRender,bt=De.children,ft=De.motionName,At=De.leavedClassName,Ot=De.eventProps,jt=h.useContext(p),Gt=jt.motion,Xt=ye(De,Gt),Bn=(0,h.useRef)(),fn=(0,h.useRef)();function $n(){try{return Bn.current instanceof HTMLElement?Bn.current:(0,l.Z)(fn.current)}catch(Rn){return null}}var On=U(Xt,Le,$n,De),Mn=(0,o.Z)(On,4),_e=Mn[0],at=Mn[1],Vt=Mn[2],an=Mn[3],st=h.useRef(an);an&&(st.current=!0);var ut=h.useCallback(function(Rn){Bn.current=Rn,(0,v.mH)(Pe,Rn)},[Pe]),$t,nt=(0,t.Z)((0,t.Z)({},Ot),{},{visible:Le});if(!bt)$t=null;else if(_e===A)an?$t=bt((0,t.Z)({},nt),ut):!Ue&&st.current&&At?$t=bt((0,t.Z)((0,t.Z)({},nt),{},{className:At}),ut):dt||!Ue&&!At?$t=bt((0,t.Z)((0,t.Z)({},nt),{},{style:{display:"none"}}),ut):$t=null;else{var mt,Dt;at===K?Dt="prepare":ue(at)?Dt="active":at===H&&(Dt="start");var Cn=Ve(ft,"".concat(_e,"-").concat(Dt));$t=bt((0,t.Z)((0,t.Z)({},nt),{},{className:c()(Ve(ft,_e),(mt={},(0,i.Z)(mt,Cn,Cn&&Dt),(0,i.Z)(mt,ft,typeof ft=="string"),mt)),style:Vt}),ut)}if(h.isValidElement($t)&&(0,v.Yr)($t)){var en=$t,Hn=en.ref;Hn||($t=h.cloneElement($t,{ref:ut}))}return h.createElement(T,{ref:fn},$t)});return Be.displayName="CSSMotion",Be}var D=N(Me),ee=e(60698),se=e(86717),X="add",re="keep",Ie="remove",Se="removed";function he(Ae){var oe;return Ae&&(0,s.Z)(Ae)==="object"&&"key"in Ae?oe=Ae:oe={key:Ae},(0,t.Z)((0,t.Z)({},oe),{},{key:String(oe.key)})}function We(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Ae.map(he)}function de(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ye=[],Be=0,De=oe.length,Pe=We(Ae),we=We(oe);Pe.forEach(function(Ue){for(var dt=!1,bt=Be;bt1});return Ye.forEach(function(Ue){ye=ye.filter(function(dt){var bt=dt.key,ft=dt.status;return bt!==Ue||ft!==Ie}),ye.forEach(function(dt){dt.key===Ue&&(dt.status=re)})}),ye}var le=["component","children","onVisibleChanged","onAllRemoved"],ve=["status"],xe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Ze(Ae){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,ye=function(Be){(0,Z.Z)(Pe,Be);var De=(0,F.Z)(Pe);function Pe(){var we;(0,w.Z)(this,Pe);for(var Le=arguments.length,Ye=new Array(Le),Ue=0;Ue0){var qe=setTimeout(function(){Ne()},ie*1e3);return function(){clearTimeout(qe)}}},[ie,ge,Q]);var Ve="".concat($,"-notice");return s.createElement("div",(0,n.Z)({},k,{ref:I,className:m()(Ve,K,(0,C.Z)({},"".concat(Ve,"-closable"),W)),style:B,onMouseEnter:function(){Me(!0)},onMouseLeave:function(){Me(!1)},onClick:Y}),s.createElement("div",{className:"".concat(Ve,"-content")},te),W&&s.createElement("a",{tabIndex:0,className:"".concat(Ve,"-close"),onKeyDown:Qe,onClick:function(Mt){Mt.preventDefault(),Mt.stopPropagation(),Ne()}},O))}),w=S,y=s.forwardRef(function(L,I){var $=L.prefixCls,B=$===void 0?"rc-notification":$,K=L.container,H=L.motion,ie=L.maxCount,ce=L.className,te=L.style,W=L.onAllRemoved,G=s.useState([]),O=(0,t.Z)(G,2),k=O[0],Y=O[1],P=function(qe){var Mt,wt=k.find(function(gt){return gt.key===qe});wt==null||(Mt=wt.onClose)===null||Mt===void 0||Mt.call(wt),Y(function(gt){return gt.filter(function(Lt){return Lt.key!==qe})})};s.useImperativeHandle(I,function(){return{open:function(qe){Y(function(Mt){var wt=(0,i.Z)(Mt),gt=wt.findIndex(function(He){return He.key===qe.key}),Lt=(0,c.Z)({},qe);if(gt>=0){var ke;Lt.times=(((ke=Mt[gt])===null||ke===void 0?void 0:ke.times)||0)+1,wt[gt]=Lt}else Lt.times=0,wt.push(Lt);return ie>0&&wt.length>ie&&(wt=wt.slice(-ie)),wt})},close:function(qe){P(qe)},destroy:function(){Y([])}}});var Q=s.useState({}),fe=(0,t.Z)(Q,2),Ce=fe[0],ge=fe[1];s.useEffect(function(){var Ve={};k.forEach(function(qe){var Mt=qe.placement,wt=Mt===void 0?"topRight":Mt;wt&&(Ve[wt]=Ve[wt]||[],Ve[wt].push(qe))}),Object.keys(Ce).forEach(function(qe){Ve[qe]=Ve[qe]||[]}),ge(Ve)},[k]);var Me=function(qe){ge(function(Mt){var wt=(0,c.Z)({},Mt),gt=wt[qe]||[];return gt.length||delete wt[qe],wt})},Ne=s.useRef(!1);if(s.useEffect(function(){Object.keys(Ce).length>0?Ne.current=!0:Ne.current&&(W==null||W(),Ne.current=!1)},[Ce]),!K)return null;var Qe=Object.keys(Ce);return(0,l.createPortal)(s.createElement(s.Fragment,null,Qe.map(function(Ve){var qe=Ce[Ve],Mt=qe.map(function(gt){return{config:gt,key:gt.key}}),wt=typeof H=="function"?H(Ve):H;return s.createElement(v.V4,(0,n.Z)({key:Ve,className:m()(B,"".concat(B,"-").concat(Ve),ce==null?void 0:ce(Ve)),style:te==null?void 0:te(Ve),keys:Mt,motionAppear:!0},wt,{onAllRemoved:function(){Me(Ve)}}),function(gt,Lt){var ke=gt.config,He=gt.className,et=gt.style,Fe=ke.key,ue=ke.times,V=ke.className,U=ke.style;return s.createElement(w,(0,n.Z)({},ke,{ref:Lt,prefixCls:B,className:m()(He,V),style:(0,c.Z)((0,c.Z)({},et),U),times:ue,key:Fe,eventKey:Fe,onNoticeClose:P}))})})),K)}),Z=y,F=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved"],R=function(){return document.body},T=0;function z(){for(var L={},I=arguments.length,$=new Array(I),B=0;B0&&arguments[0]!==void 0?arguments[0]:{},I=L.getContainer,$=I===void 0?R:I,B=L.motion,K=L.prefixCls,H=L.maxCount,ie=L.className,ce=L.style,te=L.onAllRemoved,W=(0,o.Z)(L,F),G=s.useState(),O=(0,t.Z)(G,2),k=O[0],Y=O[1],P=s.useRef(),Q=s.createElement(Z,{container:k,ref:P,prefixCls:K,motion:B,maxCount:H,className:ie,style:ce,onAllRemoved:te}),fe=s.useState([]),Ce=(0,t.Z)(fe,2),ge=Ce[0],Me=Ce[1],Ne=s.useMemo(function(){return{open:function(Ve){var qe=z(W,Ve);(qe.key===null||qe.key===void 0)&&(qe.key="rc-notification-".concat(T),T+=1),Me(function(Mt){return[].concat((0,i.Z)(Mt),[{type:"open",config:qe}])})},close:function(Ve){Me(function(qe){return[].concat((0,i.Z)(qe),[{type:"close",key:Ve}])})},destroy:function(){Me(function(Ve){return[].concat((0,i.Z)(Ve),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){Y($())}),s.useEffect(function(){P.current&&ge.length&&(ge.forEach(function(Qe){switch(Qe.type){case"open":P.current.open(Qe.config);break;case"close":P.current.close(Qe.key);break;case"destroy":P.current.destroy();break}}),Me(function(Qe){return Qe.filter(function(Ve){return!ge.includes(Ve)})}))},[ge]),[Ne,Q]}},9257:function(M,b,e){"use strict";e.d(b,{Z:function(){return Y}});var i=e(60698),t=e(57370),o=e(28314),s=e(47075),n=e(58757),c=e(87608),l=e.n(c),v=e(19425),h=e(81334),m=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],C=void 0;function p(P,Q){var fe=P.prefixCls,Ce=P.invalidate,ge=P.item,Me=P.renderItem,Ne=P.responsive,Qe=P.responsiveDisabled,Ve=P.registerSize,qe=P.itemKey,Mt=P.className,wt=P.style,gt=P.children,Lt=P.display,ke=P.order,He=P.component,et=He===void 0?"div":He,Fe=(0,s.Z)(P,m),ue=Ne&&!Lt;function V(se){Ve(qe,se)}n.useEffect(function(){return function(){V(null)}},[]);var U=Me&&ge!==C?Me(ge):gt,N;Ce||(N={opacity:ue?0:1,height:ue?0:C,overflowY:ue?"hidden":C,order:Ne?ke:C,pointerEvents:ue?"none":C,position:ue?"absolute":C});var D={};ue&&(D["aria-hidden"]=!0);var ee=n.createElement(et,(0,i.Z)({className:l()(!Ce&&fe,Mt),style:(0,t.Z)((0,t.Z)({},N),wt)},D,Fe,{ref:Q}),U);return Ne&&(ee=n.createElement(v.Z,{onResize:function(X){var re=X.offsetWidth;V(re)},disabled:Qe},ee)),ee}var S=n.forwardRef(p);S.displayName="Item";var w=S,y=e(51729),Z=e(26736),F=e(61834);function R(P){if(typeof MessageChannel=="undefined")(0,F.Z)(P);else{var Q=new MessageChannel;Q.port1.onmessage=function(){return P()},Q.port2.postMessage(void 0)}}function T(){var P=n.useRef(null),Q=function(Ce){P.current||(P.current=[],R(function(){(0,Z.unstable_batchedUpdates)(function(){P.current.forEach(function(ge){ge()}),P.current=null})})),P.current.push(Ce)};return Q}function z(P,Q){var fe=n.useState(Q),Ce=(0,o.Z)(fe,2),ge=Ce[0],Me=Ce[1],Ne=(0,y.Z)(function(Qe){P(function(){Me(Qe)})});return[ge,Ne]}var A=n.createContext(null),L=["component"],I=["className"],$=["className"],B=function(Q,fe){var Ce=n.useContext(A);if(!Ce){var ge=Q.component,Me=ge===void 0?"div":ge,Ne=(0,s.Z)(Q,L);return n.createElement(Me,(0,i.Z)({},Ne,{ref:fe}))}var Qe=Ce.className,Ve=(0,s.Z)(Ce,I),qe=Q.className,Mt=(0,s.Z)(Q,$);return n.createElement(A.Provider,{value:null},n.createElement(w,(0,i.Z)({ref:fe,className:l()(Qe,qe)},Ve,Mt)))},K=n.forwardRef(B);K.displayName="RawItem";var H=K,ie=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],ce="responsive",te="invalidate";function W(P){return"+ ".concat(P.length," ...")}function G(P,Q){var fe=P.prefixCls,Ce=fe===void 0?"rc-overflow":fe,ge=P.data,Me=ge===void 0?[]:ge,Ne=P.renderItem,Qe=P.renderRawItem,Ve=P.itemKey,qe=P.itemWidth,Mt=qe===void 0?10:qe,wt=P.ssr,gt=P.style,Lt=P.className,ke=P.maxCount,He=P.renderRest,et=P.renderRawRest,Fe=P.suffix,ue=P.component,V=ue===void 0?"div":ue,U=P.itemComponent,N=P.onVisibleChange,D=(0,s.Z)(P,ie),ee=wt==="full",se=T(),X=z(se,null),re=(0,o.Z)(X,2),Ie=re[0],Se=re[1],he=Ie||0,We=z(se,new Map),de=(0,o.Z)(We,2),le=de[0],ve=de[1],xe=z(se,0),Ze=(0,o.Z)(xe,2),pe=Ze[0],Je=Ze[1],Ae=z(se,0),oe=(0,o.Z)(Ae,2),ye=oe[0],Be=oe[1],De=z(se,0),Pe=(0,o.Z)(De,2),we=Pe[0],Le=Pe[1],Ye=(0,n.useState)(null),Ue=(0,o.Z)(Ye,2),dt=Ue[0],bt=Ue[1],ft=(0,n.useState)(null),At=(0,o.Z)(ft,2),Ot=At[0],jt=At[1],Gt=n.useMemo(function(){return Ot===null&&ee?Number.MAX_SAFE_INTEGER:Ot||0},[Ot,Ie]),Xt=(0,n.useState)(!1),Bn=(0,o.Z)(Xt,2),fn=Bn[0],$n=Bn[1],On="".concat(Ce,"-item"),Mn=Math.max(pe,ye),_e=ke===ce,at=Me.length&&_e,Vt=ke===te,an=at||typeof ke=="number"&&Me.length>ke,st=(0,n.useMemo)(function(){var zt=Me;return at?Ie===null&&ee?zt=Me:zt=Me.slice(0,Math.min(Me.length,he/Mt)):typeof ke=="number"&&(zt=Me.slice(0,ke)),zt},[Me,Mt,Ie,ke,at]),ut=(0,n.useMemo)(function(){return at?Me.slice(Gt+1):Me.slice(st.length)},[Me,st,at,Gt]),$t=(0,n.useCallback)(function(zt,Ft){var sn;return typeof Ve=="function"?Ve(zt):(sn=Ve&&(zt==null?void 0:zt[Ve]))!==null&&sn!==void 0?sn:Ft},[Ve]),nt=(0,n.useCallback)(Ne||function(zt){return zt},[Ne]);function mt(zt,Ft,sn){Ot===zt&&(Ft===void 0||Ft===dt)||(jt(zt),sn||($n(zthe){mt(tn-1,zt-kt-we+ye);break}}Fe&&Rn(0)+we>he&&bt(null)}},[he,le,ye,we,$t,st]);var pr=fn&&!!ut.length,gr={};dt!==null&&at&&(gr={position:"absolute",left:dt,top:0});var Or={prefixCls:On,responsive:at,component:U,invalidate:Vt},ar=Qe?function(zt,Ft){var sn=$t(zt,Ft);return n.createElement(A.Provider,{key:sn,value:(0,t.Z)((0,t.Z)({},Or),{},{order:Ft,item:zt,itemKey:sn,registerSize:Cn,display:Ft<=Gt})},Qe(zt,Ft))}:function(zt,Ft){var sn=$t(zt,Ft);return n.createElement(w,(0,i.Z)({},Or,{order:Ft,key:sn,item:zt,renderItem:nt,itemKey:sn,registerSize:Cn,display:Ft<=Gt}))},mr,qr={order:pr?Gt:Number.MAX_SAFE_INTEGER,className:"".concat(On,"-rest"),registerSize:en,display:pr};if(et)et&&(mr=n.createElement(A.Provider,{value:(0,t.Z)((0,t.Z)({},Or),qr)},et(ut)));else{var Pr=He||W;mr=n.createElement(w,(0,i.Z)({},Or,qr),typeof Pr=="function"?Pr(ut):Pr)}var Vn=n.createElement(V,(0,i.Z)({className:l()(!Vt&&Ce,Lt),style:gt,ref:Q},D),st.map(ar),an?mr:null,Fe&&n.createElement(w,(0,i.Z)({},Or,{responsive:_e,responsiveDisabled:!at,order:Gt,className:"".concat(On,"-suffix"),registerSize:Hn,display:!0,style:gr}),Fe));return _e&&(Vn=n.createElement(v.Z,{onResize:Dt,disabled:!at},Vn)),Vn}var O=n.forwardRef(G);O.displayName="Overflow",O.Item=H,O.RESPONSIVE=ce,O.INVALIDATE=te;var k=O,Y=k},57522:function(M,b){"use strict";b.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"}},23737:function(M,b){"use strict";b.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},19425:function(M,b,e){"use strict";e.d(b,{Z:function(){return ce}});var i=e(60698),t=e(58757),o=e(42156),s=e(75556),n=e(57370),c=e(21319),l=e(69188),v=e(20759),h=new Map;function m(te){te.forEach(function(W){var G,O=W.target;(G=h.get(O))===null||G===void 0||G.forEach(function(k){return k(O)})})}var C=new v.Z(m),p=null,S=null;function w(te,W){h.has(te)||(h.set(te,new Set),C.observe(te)),h.get(te).add(W)}function y(te,W){h.has(te)&&(h.get(te).delete(W),h.get(te).size||(C.unobserve(te),h.delete(te)))}var Z=e(60412),F=e(14346),R=e(87498),T=e(73726),z=function(te){(0,R.Z)(G,te);var W=(0,T.Z)(G);function G(){return(0,Z.Z)(this,G),W.apply(this,arguments)}return(0,F.Z)(G,[{key:"render",value:function(){return this.props.children}}]),G}(t.Component),A=t.createContext(null);function L(te){var W=te.children,G=te.onBatchResize,O=t.useRef(0),k=t.useRef([]),Y=t.useContext(A),P=t.useCallback(function(Q,fe,Ce){O.current+=1;var ge=O.current;k.current.push({size:Q,element:fe,data:Ce}),Promise.resolve().then(function(){ge===O.current&&(G==null||G(k.current),k.current=[])}),Y==null||Y(Q,fe,Ce)},[G,Y]);return t.createElement(A.Provider,{value:P},W)}function I(te,W){var G=te.children,O=te.disabled,k=t.useRef(null),Y=t.useRef(null),P=t.useContext(A),Q=typeof G=="function",fe=Q?G(k):G,Ce=t.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),ge=!Q&&t.isValidElement(fe)&&(0,c.Yr)(fe),Me=ge?fe.ref:null,Ne=t.useMemo(function(){return(0,c.sQ)(Me,k)},[Me,k]),Qe=function(){return(0,l.Z)(k.current)||(0,l.Z)(Y.current)};t.useImperativeHandle(W,function(){return Qe()});var Ve=t.useRef(te);Ve.current=te;var qe=t.useCallback(function(Mt){var wt=Ve.current,gt=wt.onResize,Lt=wt.data,ke=Mt.getBoundingClientRect(),He=ke.width,et=ke.height,Fe=Mt.offsetWidth,ue=Mt.offsetHeight,V=Math.floor(He),U=Math.floor(et);if(Ce.current.width!==V||Ce.current.height!==U||Ce.current.offsetWidth!==Fe||Ce.current.offsetHeight!==ue){var N={width:V,height:U,offsetWidth:Fe,offsetHeight:ue};Ce.current=N;var D=Fe===Math.round(He)?He:Fe,ee=ue===Math.round(et)?et:ue,se=(0,n.Z)((0,n.Z)({},N),{},{offsetWidth:D,offsetHeight:ee});P==null||P(se,Mt,Lt),gt&&Promise.resolve().then(function(){gt(se,Mt)})}},[]);return t.useEffect(function(){var Mt=Qe();return Mt&&!O&&w(Mt,qe),function(){return y(Mt,qe)}},[k.current,O]),t.createElement(z,{ref:Y},ge?t.cloneElement(fe,{ref:Ne}):fe)}var $=t.forwardRef(I),B=$,K="rc-observer-key";function H(te,W){var G=te.children,O=typeof G=="function"?[G]:(0,o.Z)(G);return O.map(function(k,Y){var P=(k==null?void 0:k.key)||"".concat(K,"-").concat(Y);return t.createElement(B,(0,i.Z)({},te,{key:P,ref:Y===0?W:void 0}),k)})}var ie=t.forwardRef(H);ie.Collection=L;var ce=ie},25092:function(M,b,e){"use strict";e.d(b,{ZP:function(){return l}});var i=e(28314),t=e(58757),o=e(19075),s=0,n=(0,o.Z)();function c(){var v;return n?(v=s,s+=1):v="TEST_OR_SSR",v}function l(v){var h=t.useState(),m=(0,i.Z)(h,2),C=m[0],p=m[1];return t.useEffect(function(){p("rc_select_".concat(c()))},[]),v||C}},18510:function(M,b,e){"use strict";e.d(b,{Ac:function(){return Se},Xo:function(){return Be},Wx:function(){return Pe},ZP:function(){return an},lk:function(){return R}});var i=e(60698),t=e(29140),o=e(37734),s=e(57370),n=e(28314),c=e(47075),l=e(38790),v=e(60409),h=e(75556),m=e(58757),C=e(87608),p=e.n(C),S=e(81334),w=e(21618),y=e(29639),Z=e(21319),F=m.createContext(null);function R(){return m.useContext(F)}function T(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ut=m.useState(!1),$t=(0,n.Z)(ut,2),nt=$t[0],mt=$t[1],Dt=m.useRef(null),Cn=function(){window.clearTimeout(Dt.current)};m.useEffect(function(){return Cn},[]);var en=function(Rn,pr){Cn(),Dt.current=window.setTimeout(function(){mt(Rn),pr&&pr()},st)};return[nt,en,Cn]}function z(){var st=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ut=m.useRef(null),$t=m.useRef(null);m.useEffect(function(){return function(){window.clearTimeout($t.current)}},[]);function nt(mt){(mt||ut.current===null)&&(ut.current=mt),window.clearTimeout($t.current),$t.current=window.setTimeout(function(){ut.current=null},st)}return[function(){return ut.current},nt]}function A(st,ut,$t,nt){var mt=m.useRef(null);mt.current={open:ut,triggerOpen:$t,customizedTrigger:nt},m.useEffect(function(){function Dt(Cn){var en;if(!((en=mt.current)!==null&&en!==void 0&&en.customizedTrigger)){var Hn=Cn.target;Hn.shadowRoot&&Cn.composed&&(Hn=Cn.composedPath()[0]||Hn),mt.current.open&&st().filter(function(Rn){return Rn}).every(function(Rn){return!Rn.contains(Hn)&&Rn!==Hn})&&mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Dt),function(){return window.removeEventListener("mousedown",Dt)}},[])}var L=e(33926),I=e(9257),$=function(ut){var $t=ut.className,nt=ut.customizeIcon,mt=ut.customizeIconProps,Dt=ut.onMouseDown,Cn=ut.onClick,en=ut.children,Hn;return typeof nt=="function"?Hn=nt(mt):Hn=nt,m.createElement("span",{className:$t,onMouseDown:function(pr){pr.preventDefault(),Dt&&Dt(pr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Cn,"aria-hidden":!0},Hn!==void 0?Hn:m.createElement("span",{className:p()($t.split(/\s+/).map(function(Rn){return"".concat(Rn,"-icon")}))},en))},B=$,K=function(ut,$t){var nt,mt,Dt=ut.prefixCls,Cn=ut.id,en=ut.inputElement,Hn=ut.disabled,Rn=ut.tabIndex,pr=ut.autoFocus,gr=ut.autoComplete,Or=ut.editable,ar=ut.activeDescendantId,mr=ut.value,qr=ut.maxLength,Pr=ut.onKeyDown,Vn=ut.onMouseDown,zt=ut.onChange,Ft=ut.onPaste,sn=ut.onCompositionStart,tn=ut.onCompositionEnd,kt=ut.open,hn=ut.attrs,dn=en||m.createElement("input",null),Fn=dn,tr=Fn.ref,ct=Fn.props,lt=ct.onKeyDown,xt=ct.onChange,St=ct.onMouseDown,Nt=ct.onCompositionStart,_t=ct.onCompositionEnd,Wt=ct.style;return(0,h.Kp)(!("maxLength"in dn.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),dn=m.cloneElement(dn,(0,s.Z)((0,s.Z)((0,s.Z)({type:"search"},ct),{},{id:Cn,ref:(0,Z.sQ)($t,tr),disabled:Hn,tabIndex:Rn,autoComplete:gr||"off",autoFocus:pr,className:p()("".concat(Dt,"-selection-search-input"),(nt=dn)===null||nt===void 0||(mt=nt.props)===null||mt===void 0?void 0:mt.className),role:"combobox","aria-label":"Search","aria-expanded":kt,"aria-haspopup":"listbox","aria-owns":"".concat(Cn,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Cn,"_list"),"aria-activedescendant":kt?ar:void 0},hn),{},{value:Or?mr:"",maxLength:qr,readOnly:!Or,unselectable:Or?null:"on",style:(0,s.Z)((0,s.Z)({},Wt),{},{opacity:Or?null:0}),onKeyDown:function(kn){Pr(kn),lt&<(kn)},onMouseDown:function(kn){Vn(kn),St&&St(kn)},onChange:function(kn){zt(kn),xt&&xt(kn)},onCompositionStart:function(kn){sn(kn),Nt&&Nt(kn)},onCompositionEnd:function(kn){tn(kn),_t&&_t(kn)},onPaste:Ft})),dn},H=m.forwardRef(K);H.displayName="Input";var ie=H;function ce(st){return Array.isArray(st)?st:st!==void 0?[st]:[]}var te=typeof window!="undefined"&&window.document&&window.document.documentElement,W=te;function G(st){return st!=null}function O(st){return!st&&st!==0}function k(st){return["string","number"].includes((0,l.Z)(st))}function Y(st){var ut=void 0;return st&&(k(st.title)?ut=st.title.toString():k(st.label)&&(ut=st.label.toString())),ut}function P(st,ut){W?m.useLayoutEffect(st,ut):m.useEffect(st,ut)}function Q(st){var ut;return(ut=st.key)!==null&&ut!==void 0?ut:st.value}var fe=function(ut){ut.preventDefault(),ut.stopPropagation()},Ce=function(ut){var $t=ut.id,nt=ut.prefixCls,mt=ut.values,Dt=ut.open,Cn=ut.searchValue,en=ut.autoClearSearchValue,Hn=ut.inputRef,Rn=ut.placeholder,pr=ut.disabled,gr=ut.mode,Or=ut.showSearch,ar=ut.autoFocus,mr=ut.autoComplete,qr=ut.activeDescendantId,Pr=ut.tabIndex,Vn=ut.removeIcon,zt=ut.maxTagCount,Ft=ut.maxTagTextLength,sn=ut.maxTagPlaceholder,tn=sn===void 0?function(Kr){return"+ ".concat(Kr.length," ...")}:sn,kt=ut.tagRender,hn=ut.onToggleOpen,dn=ut.onRemove,Fn=ut.onInputChange,tr=ut.onInputPaste,ct=ut.onInputKeyDown,lt=ut.onInputMouseDown,xt=ut.onInputCompositionStart,St=ut.onInputCompositionEnd,Nt=m.useRef(null),_t=(0,m.useState)(0),Wt=(0,n.Z)(_t,2),yn=Wt[0],kn=Wt[1],hr=(0,m.useState)(!1),cr=(0,n.Z)(hr,2),Dn=cr[0],Rr=cr[1],or="".concat(nt,"-selection"),Gr=Dt||gr==="multiple"&&en===!1||gr==="tags"?Cn:"",Ir=gr==="tags"||gr==="multiple"&&en===!1||Or&&(Dt||Dn);P(function(){kn(Nt.current.scrollWidth)},[Gr]);function Pn(Kr,ra,Xr,Fr,xa){return m.createElement("span",{className:p()("".concat(or,"-item"),(0,o.Z)({},"".concat(or,"-item-disabled"),Xr)),title:Y(Kr)},m.createElement("span",{className:"".concat(or,"-item-content")},ra),Fr&&m.createElement(B,{className:"".concat(or,"-item-remove"),onMouseDown:fe,onClick:xa,customizeIcon:Vn},"\xD7"))}function vn(Kr,ra,Xr,Fr,xa){var la=function(xn){fe(xn),hn(!Dt)};return m.createElement("span",{onMouseDown:la},kt({label:ra,value:Kr,disabled:Xr,closable:Fr,onClose:xa}))}function Nn(Kr){var ra=Kr.disabled,Xr=Kr.label,Fr=Kr.value,xa=!pr&&!ra,la=Xr;if(typeof Ft=="number"&&(typeof Xr=="string"||typeof Xr=="number")){var Tn=String(la);Tn.length>Ft&&(la="".concat(Tn.slice(0,Ft),"..."))}var xn=function(Lr){Lr&&Lr.stopPropagation(),dn(Kr)};return typeof kt=="function"?vn(Fr,la,ra,xa,xn):Pn(Kr,la,ra,xa,xn)}function Zn(Kr){var ra=typeof tn=="function"?tn(Kr):tn;return Pn({title:ra},ra,!1)}var yr=m.createElement("div",{className:"".concat(or,"-search"),style:{width:yn},onFocus:function(){Rr(!0)},onBlur:function(){Rr(!1)}},m.createElement(ie,{ref:Hn,open:Dt,prefixCls:nt,id:$t,inputElement:null,disabled:pr,autoFocus:ar,autoComplete:mr,editable:Ir,activeDescendantId:qr,value:Gr,onKeyDown:ct,onMouseDown:lt,onChange:Fn,onPaste:tr,onCompositionStart:xt,onCompositionEnd:St,tabIndex:Pr,attrs:(0,L.Z)(ut,!0)}),m.createElement("span",{ref:Nt,className:"".concat(or,"-search-mirror"),"aria-hidden":!0},Gr,"\xA0")),$r=m.createElement(I.Z,{prefixCls:"".concat(or,"-overflow"),data:mt,renderItem:Nn,renderRest:Zn,suffix:yr,itemKey:Q,maxCount:zt});return m.createElement(m.Fragment,null,$r,!mt.length&&!Gr&&m.createElement("span",{className:"".concat(or,"-placeholder")},Rn))},ge=Ce,Me=function(ut){var $t=ut.inputElement,nt=ut.prefixCls,mt=ut.id,Dt=ut.inputRef,Cn=ut.disabled,en=ut.autoFocus,Hn=ut.autoComplete,Rn=ut.activeDescendantId,pr=ut.mode,gr=ut.open,Or=ut.values,ar=ut.placeholder,mr=ut.tabIndex,qr=ut.showSearch,Pr=ut.searchValue,Vn=ut.activeValue,zt=ut.maxLength,Ft=ut.onInputKeyDown,sn=ut.onInputMouseDown,tn=ut.onInputChange,kt=ut.onInputPaste,hn=ut.onInputCompositionStart,dn=ut.onInputCompositionEnd,Fn=ut.title,tr=m.useState(!1),ct=(0,n.Z)(tr,2),lt=ct[0],xt=ct[1],St=pr==="combobox",Nt=St||qr,_t=Or[0],Wt=Pr||"";St&&Vn&&!lt&&(Wt=Vn),m.useEffect(function(){St&&xt(!1)},[St,Vn]);var yn=pr!=="combobox"&&!gr&&!qr?!1:!!Wt,kn=Fn===void 0?Y(_t):Fn,hr=function(){if(_t)return null;var Dn=yn?{visibility:"hidden"}:void 0;return m.createElement("span",{className:"".concat(nt,"-selection-placeholder"),style:Dn},ar)};return m.createElement(m.Fragment,null,m.createElement("span",{className:"".concat(nt,"-selection-search")},m.createElement(ie,{ref:Dt,prefixCls:nt,id:mt,open:gr,inputElement:$t,disabled:Cn,autoFocus:en,autoComplete:Hn,editable:Nt,activeDescendantId:Rn,value:Wt,onKeyDown:Ft,onMouseDown:sn,onChange:function(Dn){xt(!0),tn(Dn)},onPaste:kt,onCompositionStart:hn,onCompositionEnd:dn,tabIndex:mr,attrs:(0,L.Z)(ut,!0),maxLength:St?zt:void 0})),!St&&_t?m.createElement("span",{className:"".concat(nt,"-selection-item"),title:kn,style:yn?{visibility:"hidden"}:void 0},_t.label):null,hr())},Ne=Me;function Qe(st){return![y.Z.ESC,y.Z.SHIFT,y.Z.BACKSPACE,y.Z.TAB,y.Z.WIN_KEY,y.Z.ALT,y.Z.META,y.Z.WIN_KEY_RIGHT,y.Z.CTRL,y.Z.SEMICOLON,y.Z.EQUALS,y.Z.CAPS_LOCK,y.Z.CONTEXT_MENU,y.Z.F1,y.Z.F2,y.Z.F3,y.Z.F4,y.Z.F5,y.Z.F6,y.Z.F7,y.Z.F8,y.Z.F9,y.Z.F10,y.Z.F11,y.Z.F12].includes(st)}var Ve=function(ut,$t){var nt=(0,m.useRef)(null),mt=(0,m.useRef)(!1),Dt=ut.prefixCls,Cn=ut.open,en=ut.mode,Hn=ut.showSearch,Rn=ut.tokenWithEnter,pr=ut.autoClearSearchValue,gr=ut.onSearch,Or=ut.onSearchSubmit,ar=ut.onToggleOpen,mr=ut.onInputKeyDown,qr=ut.domRef;m.useImperativeHandle($t,function(){return{focus:function(){nt.current.focus()},blur:function(){nt.current.blur()}}});var Pr=z(0),Vn=(0,n.Z)(Pr,2),zt=Vn[0],Ft=Vn[1],sn=function(Wt){var yn=Wt.which;(yn===y.Z.UP||yn===y.Z.DOWN)&&Wt.preventDefault(),mr&&mr(Wt),yn===y.Z.ENTER&&en==="tags"&&!mt.current&&!Cn&&(Or==null||Or(Wt.target.value)),Qe(yn)&&ar(!0)},tn=function(){Ft(!0)},kt=(0,m.useRef)(null),hn=function(Wt){gr(Wt,!0,mt.current)!==!1&&ar(!0)},dn=function(){mt.current=!0},Fn=function(Wt){mt.current=!1,en!=="combobox"&&hn(Wt.target.value)},tr=function(Wt){var yn=Wt.target.value;if(Rn&&kt.current&&/[\r\n]/.test(kt.current)){var kn=kt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yn=yn.replace(kn,kt.current)}kt.current=null,hn(yn)},ct=function(Wt){var yn=Wt.clipboardData,kn=yn.getData("text");kt.current=kn},lt=function(Wt){var yn=Wt.target;if(yn!==nt.current){var kn=document.body.style.msTouchAction!==void 0;kn?setTimeout(function(){nt.current.focus()}):nt.current.focus()}},xt=function(Wt){var yn=zt();Wt.target!==nt.current&&!yn&&en!=="combobox"&&Wt.preventDefault(),(en!=="combobox"&&(!Hn||!yn)||!Cn)&&(Cn&&pr!==!1&&gr("",!0,!1),ar())},St={inputRef:nt,onInputKeyDown:sn,onInputMouseDown:tn,onInputChange:tr,onInputPaste:ct,onInputCompositionStart:dn,onInputCompositionEnd:Fn},Nt=en==="multiple"||en==="tags"?m.createElement(ge,(0,i.Z)({},ut,St)):m.createElement(Ne,(0,i.Z)({},ut,St));return m.createElement("div",{ref:qr,className:"".concat(Dt,"-selector"),onClick:lt,onMouseDown:xt},Nt)},qe=m.forwardRef(Ve);qe.displayName="Selector";var Mt=qe,wt=e(99863),gt=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Lt=function(ut){var $t=ut===!0?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"}}},ke=function(ut,$t){var nt=ut.prefixCls,mt=ut.disabled,Dt=ut.visible,Cn=ut.children,en=ut.popupElement,Hn=ut.containerWidth,Rn=ut.animation,pr=ut.transitionName,gr=ut.dropdownStyle,Or=ut.dropdownClassName,ar=ut.direction,mr=ar===void 0?"ltr":ar,qr=ut.placement,Pr=ut.builtinPlacements,Vn=ut.dropdownMatchSelectWidth,zt=ut.dropdownRender,Ft=ut.dropdownAlign,sn=ut.getPopupContainer,tn=ut.empty,kt=ut.getTriggerDOMNode,hn=ut.onPopupVisibleChange,dn=ut.onPopupMouseEnter,Fn=(0,c.Z)(ut,gt),tr="".concat(nt,"-dropdown"),ct=en;zt&&(ct=zt(en));var lt=m.useMemo(function(){return Pr||Lt(Vn)},[Pr,Vn]),xt=Rn?"".concat(tr,"-").concat(Rn):pr,St=m.useRef(null);m.useImperativeHandle($t,function(){return{getPopupElement:function(){return St.current}}});var Nt=(0,s.Z)({minWidth:Hn},gr);return typeof Vn=="number"?Nt.width=Vn:Vn&&(Nt.width=Hn),m.createElement(wt.Z,(0,i.Z)({},Fn,{showAction:hn?["click"]:[],hideAction:hn?["click"]:[],popupPlacement:qr||(mr==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:lt,prefixCls:tr,popupTransitionName:xt,popup:m.createElement("div",{ref:St,onMouseEnter:dn},ct),popupAlign:Ft,popupVisible:Dt,getPopupContainer:sn,popupClassName:p()(Or,(0,o.Z)({},"".concat(tr,"-empty"),tn)),popupStyle:Nt,getTriggerDOMNode:kt,onPopupVisibleChange:hn}),Cn)},He=m.forwardRef(ke);He.displayName="SelectTrigger";var et=He,Fe=e(6747);function ue(st,ut){var $t=st.key,nt;return"value"in st&&(nt=st.value),$t!=null?$t:nt!==void 0?nt:"rc-index-key-".concat(ut)}function V(st,ut){var $t=st||{},nt=$t.label,mt=$t.value,Dt=$t.options,Cn=$t.groupLabel,en=nt||(ut?"children":"label");return{label:en,value:mt||"value",options:Dt||"options",groupLabel:Cn||en}}function U(st){var ut=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$t=ut.fieldNames,nt=ut.childrenAsData,mt=[],Dt=V($t,!1),Cn=Dt.label,en=Dt.value,Hn=Dt.options,Rn=Dt.groupLabel;function pr(gr,Or){gr.forEach(function(ar){if(Or||!(Hn in ar)){var mr=ar[en];mt.push({key:ue(ar,mt.length),groupOption:Or,data:ar,label:ar[Cn],value:mr})}else{var qr=ar[Rn];qr===void 0&&nt&&(qr=ar.label),mt.push({key:ue(ar,mt.length),group:!0,data:ar,label:qr}),pr(ar[Hn],!0)}})}return pr(st,!1),mt}function N(st){var ut=(0,s.Z)({},st);return"props"in ut||Object.defineProperty(ut,"props",{get:function(){return(0,h.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ut}}),ut}function D(st,ut){if(!ut||!ut.length)return null;var $t=!1;function nt(Dt,Cn){var en=(0,Fe.Z)(Cn),Hn=en[0],Rn=en.slice(1);if(!Hn)return[Dt];var pr=Dt.split(Hn);return $t=$t||pr.length>1,pr.reduce(function(gr,Or){return[].concat((0,t.Z)(gr),(0,t.Z)(nt(Or,Rn)))},[]).filter(function(gr){return gr})}var mt=nt(st,ut);return $t?mt:null}function ee(st,ut,$t,nt,mt){var Dt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Cn=arguments.length>6?arguments[6]:void 0,en=arguments.length>7?arguments[7]:void 0,Hn=m.useMemo(function(){if((0,l.Z)(nt)==="object")return nt.clearIcon;if(mt)return mt},[nt,mt]),Rn=m.useMemo(function(){return!!(!Dt&&nt&&($t.length||Cn)&&!(en==="combobox"&&Cn===""))},[nt,Dt,$t.length,Cn,en]);return{allowClear:Rn,clearIcon:m.createElement(B,{className:"".concat(st,"-clear"),onMouseDown:ut,customizeIcon:Hn},"\xD7")}}var se=["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","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function re(st){return st==="tags"||st==="multiple"}var Ie=m.forwardRef(function(st,ut){var $t,nt,mt=st.id,Dt=st.prefixCls,Cn=st.className,en=st.showSearch,Hn=st.tagRender,Rn=st.direction,pr=st.omitDomProps,gr=st.displayValues,Or=st.onDisplayValuesChange,ar=st.emptyOptions,mr=st.notFoundContent,qr=mr===void 0?"Not Found":mr,Pr=st.onClear,Vn=st.mode,zt=st.disabled,Ft=st.loading,sn=st.getInputElement,tn=st.getRawInputElement,kt=st.open,hn=st.defaultOpen,dn=st.onDropdownVisibleChange,Fn=st.activeValue,tr=st.onActiveValueChange,ct=st.activeDescendantId,lt=st.searchValue,xt=st.autoClearSearchValue,St=st.onSearch,Nt=st.onSearchSplit,_t=st.tokenSeparators,Wt=st.allowClear,yn=st.suffixIcon,kn=st.clearIcon,hr=st.OptionList,cr=st.animation,Dn=st.transitionName,Rr=st.dropdownStyle,or=st.dropdownClassName,Gr=st.dropdownMatchSelectWidth,Ir=st.dropdownRender,Pn=st.dropdownAlign,vn=st.placement,Nn=st.builtinPlacements,Zn=st.getPopupContainer,yr=st.showAction,$r=yr===void 0?[]:yr,Kr=st.onFocus,ra=st.onBlur,Xr=st.onKeyUp,Fr=st.onKeyDown,xa=st.onMouseDown,la=(0,c.Z)(st,se),Tn=re(Vn),xn=(en!==void 0?en:Tn)||Vn==="combobox",Gn=(0,s.Z)({},la);X.forEach(function(ao){delete Gn[ao]}),pr==null||pr.forEach(function(ao){delete Gn[ao]});var Lr=m.useState(!1),zr=(0,n.Z)(Lr,2),Br=zr[0],Ma=zr[1];m.useEffect(function(){Ma((0,w.Z)())},[]);var co=m.useRef(null),ro=m.useRef(null),xo=m.useRef(null),Pa=m.useRef(null),Ua=m.useRef(null),eo=T(),Fo=(0,n.Z)(eo,3),jo=Fo[0],Bo=Fo[1],ot=Fo[2];m.useImperativeHandle(ut,function(){var ao,Ka;return{focus:(ao=Pa.current)===null||ao===void 0?void 0:ao.focus,blur:(Ka=Pa.current)===null||Ka===void 0?void 0:Ka.blur,scrollTo:function(ii){var Zo;return(Zo=Ua.current)===null||Zo===void 0?void 0:Zo.scrollTo(ii)}}});var yt=m.useMemo(function(){var ao;if(Vn!=="combobox")return lt;var Ka=(ao=gr[0])===null||ao===void 0?void 0:ao.value;return typeof Ka=="string"||typeof Ka=="number"?String(Ka):""},[lt,Vn,gr]),be=Vn==="combobox"&&typeof sn=="function"&&sn()||null,Bt=typeof tn=="function"&&tn(),Jt=(0,Z.x1)(ro,Bt==null||($t=Bt.props)===null||$t===void 0?void 0:$t.ref),Jn=m.useState(!1),Kn=(0,n.Z)(Jn,2),br=Kn[0],ea=Kn[1];(0,S.Z)(function(){ea(!0)},[]);var ka=(0,v.Z)(!1,{defaultValue:hn,value:kt}),kr=(0,n.Z)(ka,2),Dr=kr[0],wr=kr[1],sr=br?Dr:!1,dr=!qr&&ar;(zt||dr&&sr&&Vn==="combobox")&&(sr=!1);var Tr=dr?!1:sr,ga=m.useCallback(function(ao){var Ka=ao!==void 0?ao:!sr;zt||(wr(Ka),sr!==Ka&&(dn==null||dn(Ka)))},[zt,sr,wr,dn]),fo=m.useMemo(function(){return(_t||[]).some(function(ao){return[` `,`\r -`].includes(ro)})},[_t]),Qa=function(Va,gi,si){var Zo=!0,Yo=Va;qn==null||qn(null);var Ni=si?null:D(Va,_t);return Kn!=="combobox"&&Ni&&(Yo="",Lt==null||Lt(Ni),va(!1),Zo=!1),St&&yt!==Yo&&St(Yo,{source:gi?"typing":"effect"}),Zo},Tt=function(Va){!Va||!Va.trim()||St(Va,{source:"submit"})};m.useEffect(function(){!sr&&!Tn&&Kn!=="combobox"&&Qa("",!1,!1)},[sr]),m.useEffect(function(){Dr&&zt&&wr(!1),zt&&Bo(!1)},[zt]);var Kt=z(),sn=(0,n.Z)(Kt,2),An=sn[0],_n=sn[1],fr=function(Va){var gi=An(),si=Va.which;if(si===y.Z.ENTER&&(Kn!=="combobox"&&Va.preventDefault(),sr||va(!0)),_n(!!yt),si===y.Z.BACKSPACE&&!gi&&Tn&&!yt&&gr.length){for(var Zo=(0,t.Z)(gr),Yo=null,Ni=Zo.length-1;Ni>=0;Ni-=1){var Xi=Zo[Ni];if(!Xi.disabled){Zo.splice(Ni,1),Yo=Xi;break}}Yo&&Or(Zo,{type:"remove",values:[Yo]})}for(var Gi=arguments.length,Is=new Array(Gi>1?Gi-1:0),hs=1;hs1?gi-1:0),Zo=1;Zo1?Ni-1:0),Gi=1;Gi1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ve.Z)(st).map(function($t,nt){if(!m.isValidElement($t)||!$t.type)return null;var gt=$t,Dt=gt.type.isSelectOptGroup,xn=gt.key,tn=gt.props,Hn=tn.children,Nn=(0,c.Z)(tn,Ze);return ut||!Dt?pe($t):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(xn===null?nt:xn,"__"),label:xn},Nn),{},{options:Je(Hn)})}).filter(function($t){return $t})}function Ae(st,ut,$t,nt,gt){return m.useMemo(function(){var Dt=st,xn=!st;xn&&(Dt=Je(ut));var tn=new Map,Hn=new Map,Nn=function(Or,ar,mr){mr&&typeof mr=="string"&&Or.set(ar[mr],ar)};function pr(gr){for(var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ar=0;ar1&&arguments[1]!==void 0?arguments[1]:1,Zn=qn.length,yr=0;yr1&&arguments[1]!==void 0?arguments[1]:!1;yn(vn);var Zn={source:Ln?"keyboard":"mouse"},yr=qn[vn];if(!yr){ea(null,-1,Zn);return}ea(yr.value,vn,Zn)};(0,m.useEffect)(function(){kn(Lr!==!1?St(0):-1)},[qn.length,Nn]);var hr=m.useCallback(function(jn){return Ft.has(jn)&&Hn!=="combobox"},[Hn,(0,t.Z)(Ft).toString(),Ft.size]);(0,m.useEffect)(function(){var jn=setTimeout(function(){if(!tn&&xn&&Ft.size===1){var Ln=Array.from(Ft)[0],Zn=qn.findIndex(function(yr){var Fr=yr.data;return Fr.value===Ln});Zn!==-1&&(kn(Zn),xt(Zn))}});if(xn){var vn;(vn=ct.current)===null||vn===void 0||vn.scrollTo(void 0)}return function(){return clearTimeout(jn)}},[xn,Nn,mr.length]);var cr=function(vn){vn!==void 0&&Kn(vn,{selected:!Ft.has(vn)}),tn||pr(!1)};if(m.useImperativeHandle($t,function(){return{onKeyDown:function(vn){var Ln=vn.which,Zn=vn.ctrlKey;switch(Ln){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:{var yr=0;if(Ln===y.Z.UP?yr=-1:Ln===y.Z.DOWN?yr=1:bt()&&Zn&&(Ln===y.Z.N?yr=1:Ln===y.Z.P&&(yr=-1)),yr!==0){var Fr=St(Wt+yr,yr);xt(Fr),kn(Fr,!0)}break}case y.Z.ENTER:{var Kr=qn[Wt];Kr&&!Kr.data.disabled?cr(Kr.value):cr(void 0),xn&&vn.preventDefault();break}case y.Z.ESC:pr(!1),xn&&vn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vn){xt(vn)}}}),qn.length===0)return m.createElement("div",{role:"listbox",id:"".concat(Dt,"_list"),className:"".concat($n,"-empty"),onMouseDown:lt},gr);var Dn=Object.keys(on).map(function(jn){return on[jn]}),Rr=function(vn){return vn.label};function or(jn,vn){var Ln=jn.group;return{role:Ln?"presentation":"option",id:"".concat(Dt,"_list_").concat(vn)}}var Gr=function(vn){var Ln=qn[vn];if(!Ln)return null;var Zn=Ln.data||{},yr=Zn.value,Fr=Ln.group,Kr=(0,L.Z)(Zn,!0),aa=Rr(Ln);return Ln?m.createElement("div",(0,i.Z)({"aria-label":typeof aa=="string"&&!Fr?aa:null},Kr,{key:vn},or(Ln,vn),{"aria-selected":hr(yr)}),yr):null},Ir={role:"listbox",id:"".concat(Dt,"_list")};return m.createElement(m.Fragment,null,nn&&m.createElement("div",(0,i.Z)({},Ir,{style:{height:0,width:0,overflow:"hidden"}}),Gr(Wt-1),Gr(Wt),Gr(Wt+1)),m.createElement(Ye.Z,{itemKey:"key",ref:ct,data:qn,height:hn,itemHeight:dn,fullHeight:!1,onMouseDown:lt,onScroll:Or,virtual:nn,direction:kt,innerProps:nn?null:Ir},function(jn,vn){var Ln,Zn=jn.group,yr=jn.groupOption,Fr=jn.data,Kr=jn.label,aa=jn.value,Jr=Fr.key;if(Zn){var Zr,Ca=(Zr=Fr.title)!==null&&Zr!==void 0?Zr:At(Kr)?Kr.toString():void 0;return m.createElement("div",{className:p()($n,"".concat($n,"-group")),title:Ca},Kr!==void 0?Kr:Jr)}var la=Fr.disabled,Tn=Fr.title,In=Fr.children,Yn=Fr.style,Nr=Fr.className,zr=(0,c.Z)(Fr,ft),Br=(0,Le.Z)(zr,Dn),Ma=hr(aa),uo="".concat($n,"-option"),to=p()($n,uo,Nr,(Ln={},(0,o.Z)(Ln,"".concat(uo,"-grouped"),yr),(0,o.Z)(Ln,"".concat(uo,"-active"),Wt===vn&&!la),(0,o.Z)(Ln,"".concat(uo,"-disabled"),la),(0,o.Z)(Ln,"".concat(uo,"-selected"),Ma),Ln)),Io=Rr(jn),ja=!zt||typeof zt=="function"||Ma,Ua=typeof Io=="number"?Io:Io||aa,qa=At(Ua)?Ua.toString():void 0;return Tn!==void 0&&(qa=Tn),m.createElement("div",(0,i.Z)({},(0,L.Z)(Br),nn?{}:or(jn,vn),{"aria-selected":Ma,className:to,title:qa,onMouseMove:function(){Wt===vn||la||kn(vn)},onClick:function(){la||cr(aa)},style:Yn}),m.createElement("div",{className:"".concat(uo,"-content")},Ua),m.isValidElement(zt)||Ma,ja&&m.createElement(B,{className:"".concat($n,"-option-state"),customizeIcon:zt,customizeIconProps:{isSelected:Ma}},Ma?"\u2713":null))}))},jt=m.forwardRef(Ot);jt.displayName="OptionList";var Gt=jt;function Xt(st){var ut=st.mode,$t=st.options,nt=st.children,gt=st.backfill,Dt=st.allowClear,xn=st.placeholder,tn=st.getInputElement,Hn=st.showSearch,Nn=st.onSearch,pr=st.defaultOpen,gr=st.autoFocus,Or=st.labelInValue,ar=st.value,mr=st.inputValue,ea=st.optionLabelProp,Lr=isMultiple(ut),Kn=Hn!==void 0?Hn:Lr||ut==="combobox",zt=$t||convertChildrenToData(nt);if(warning(ut!=="tags"||zt.every(function(kt){return!kt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ut==="tags"||ut==="combobox"){var Ft=zt.some(function(kt){return kt.options?kt.options.some(function(hn){return typeof("value"in hn?hn.value:hn.key)=="number"}):typeof("value"in kt?kt.value:kt.key)=="number"});warning(!Ft,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ut!=="combobox"||!ea,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ut==="combobox"||!gt,"`backfill` only works with `combobox` mode."),warning(ut==="combobox"||!tn,"`getInputElement` only work with `combobox` mode."),noteOnce(ut!=="combobox"||!tn||!Dt||!xn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Nn&&!Kn&&ut!=="combobox"&&ut!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pr||gr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ar!=null){var on=toArray(ar);warning(!Or||on.every(function(kt){return _typeof(kt)==="object"&&("key"in kt||"value"in kt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Lr||Array.isArray(ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(nt){var nn=null;toNodeArray(nt).some(function(kt){if(!React.isValidElement(kt)||!kt.type)return!1;var hn=kt,dn=hn.type;if(dn.isSelectOption)return!1;if(dn.isSelectOptGroup){var $n=toNodeArray(kt.props.children).every(function(qn){return!React.isValidElement(qn)||!kt.type||qn.type.isSelectOption?!0:(nn=qn.type,!1)});return!$n}return nn=dn,!0}),nn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(nn.displayName||nn.name||nn,"`.")),warning(mr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function zn(st,ut){if(st){var $t=function nt(gt){for(var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xn=0;xn2&&arguments[2]!==void 0?arguments[2]:{},va=jr.source,co=va===void 0?"keyboard":va;Jt(dr),xn&&nt==="combobox"&&sr!==null&&co==="keyboard"&&ot(String(sr))},[xn,nt]),br=function(dr,jr,va){var co=function(){var vr,Ar=Nr(dr);return[Wt?{label:Ar==null?void 0:Ar[or.label],value:dr,key:(vr=Ar==null?void 0:Ar.key)!==null&&vr!==void 0?vr:dr}:dr,N(Ar)]};if(jr&&ar){var Qa=co(),Tt=(0,n.Z)(Qa,2),Kt=Tt[0],sn=Tt[1];ar(Kt,sn)}else if(!jr&&mr&&va!=="clear"){var An=co(),_n=(0,n.Z)(An,2),fr=_n[0],Er=_n[1];mr(fr,Er)}},ta=oe(function(sr,dr){var jr,va=cr?dr.selected:!0;va?jr=cr?[].concat((0,t.Z)(Yn),[sr]):[sr]:jr=Yn.filter(function(co){return co.value!==sr}),qa(jr),br(sr,va),nt==="combobox"?ot(""):(!re||Or)&&(vn(""),ot(""))}),ka=function(dr,jr){qa(dr);var va=jr.type,co=jr.values;(va==="remove"||va==="clear")&&co.forEach(function(Qa){br(Qa.value,!1,va)})},kr=function(dr,jr){if(vn(dr),ot(null),jr.source==="submit"){var va=(dr||"").trim();if(va){var co=Array.from(new Set([].concat((0,t.Z)(Br),[va])));qa(co),br(va,!0),vn("")}return}jr.source!=="blur"&&(nt==="combobox"&&qa(dr),pr==null||pr(dr))},Dr=function(dr){var jr=dr;nt!=="tags"&&(jr=dr.map(function(co){var Qa=yr.get(co);return Qa==null?void 0:Qa.value}).filter(function(co){return co!==void 0}));var va=Array.from(new Set([].concat((0,t.Z)(Br),(0,t.Z)(jr))));qa(va),va.forEach(function(co){br(co,!0)})},wr=m.useMemo(function(){var sr=$n!==!1&&Lr!==!1;return(0,s.Z)((0,s.Z)({},Ln),{},{flattenOptions:Ua,onActiveValue:Gn,defaultActiveFirstOption:Xn,onSelect:ta,menuItemSelectedIcon:dn,rawValues:Br,fieldNames:or,virtual:sr,direction:qn,listHeight:lt,listItemHeight:St,childrenAsData:Dn})},[Ln,Ua,Gn,Xn,ta,dn,Br,or,$n,Lr,lt,St,Dn]);return m.createElement(dt.Provider,{value:wr},m.createElement(Se,(0,i.Z)({},kn,{id:hr,prefixCls:Dt,ref:ut,omitDomProps:On,mode:nt,displayValues:zr,onDisplayValuesChange:ka,direction:qn,searchValue:jn,onSearch:kr,autoClearSearchValue:Or,onSearchSplit:Dr,dropdownMatchSelectWidth:Lr,OptionList:Gt,emptyOptions:!Ua.length,activeValue:Bo,activeDescendantId:"".concat(hr,"_list_").concat(Bt)})))}),at=_e;at.Option=Pe,at.OptGroup=Be;var Vt=at,rn=Vt},2071:function(M,b,e){"use strict";e.d(b,{Z:function(){return k}});var i=e(60698),t=e(57370),o=e(37734),s=e(38790),n=e(28314),c=e(47075),l=e(29140),v=e(87608),h=e.n(v),m=e(19570),C=e(33615),p=e(60409),S=e(58757),w=e(19425),y=e(81334),Z=e(61834),F=` +`].includes(ao)})},[_t]),Xa=function(Ka,mi,ii){var Zo=!0,Ko=Ka;tr==null||tr(null);var Ni=ii?null:D(Ka,_t);return Vn!=="combobox"&&Ni&&(Ko="",Nt==null||Nt(Ni),ga(!1),Zo=!1),St&&yt!==Ko&&St(Ko,{source:mi?"typing":"effect"}),Zo},Tt=function(Ka){!Ka||!Ka.trim()||St(Ka,{source:"submit"})};m.useEffect(function(){!sr&&!Tn&&Vn!=="combobox"&&Xa("",!1,!1)},[sr]),m.useEffect(function(){Dr&&zt&&wr(!1),zt&&Bo(!1)},[zt]);var Kt=z(),ln=(0,n.Z)(Kt,2),An=ln[0],_n=ln[1],fr=function(Ka){var mi=An(),ii=Ka.which;if(ii===y.Z.ENTER&&(Vn!=="combobox"&&Ka.preventDefault(),sr||ga(!0)),_n(!!yt),ii===y.Z.BACKSPACE&&!mi&&Tn&&!yt&&gr.length){for(var Zo=(0,t.Z)(gr),Ko=null,Ni=Zo.length-1;Ni>=0;Ni-=1){var Ji=Zo[Ni];if(!Ji.disabled){Zo.splice(Ni,1),Ko=Ji;break}}Ko&&Or(Zo,{type:"remove",values:[Ko]})}for(var Ki=arguments.length,Is=new Array(Ki>1?Ki-1:0),hs=1;hs1?mi-1:0),Zo=1;Zo1?Ni-1:0),Ki=1;Ki1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ve.Z)(st).map(function($t,nt){if(!m.isValidElement($t)||!$t.type)return null;var mt=$t,Dt=mt.type.isSelectOptGroup,Cn=mt.key,en=mt.props,Hn=en.children,Rn=(0,c.Z)(en,Ze);return ut||!Dt?pe($t):(0,s.Z)((0,s.Z)({key:"__RC_SELECT_GRP__".concat(Cn===null?nt:Cn,"__"),label:Cn},Rn),{},{options:Je(Hn)})}).filter(function($t){return $t})}function Ae(st,ut,$t,nt,mt){return m.useMemo(function(){var Dt=st,Cn=!st;Cn&&(Dt=Je(ut));var en=new Map,Hn=new Map,Rn=function(Or,ar,mr){mr&&typeof mr=="string"&&Or.set(ar[mr],ar)};function pr(gr){for(var Or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ar=0;ar1&&arguments[1]!==void 0?arguments[1]:1,Zn=tr.length,yr=0;yr1&&arguments[1]!==void 0?arguments[1]:!1;yn(vn);var Zn={source:Nn?"keyboard":"mouse"},yr=tr[vn];if(!yr){qr(null,-1,Zn);return}qr(yr.value,vn,Zn)};(0,m.useEffect)(function(){kn(Pr!==!1?St(0):-1)},[tr.length,Rn]);var hr=m.useCallback(function(Pn){return Ft.has(Pn)&&Hn!=="combobox"},[Hn,(0,t.Z)(Ft).toString(),Ft.size]);(0,m.useEffect)(function(){var Pn=setTimeout(function(){if(!en&&Cn&&Ft.size===1){var Nn=Array.from(Ft)[0],Zn=tr.findIndex(function(yr){var $r=yr.data;return $r.value===Nn});Zn!==-1&&(kn(Zn),xt(Zn))}});if(Cn){var vn;(vn=ct.current)===null||vn===void 0||vn.scrollTo(void 0)}return function(){return clearTimeout(Pn)}},[Cn,Rn,mr.length]);var cr=function(vn){vn!==void 0&&Vn(vn,{selected:!Ft.has(vn)}),en||pr(!1)};if(m.useImperativeHandle($t,function(){return{onKeyDown:function(vn){var Nn=vn.which,Zn=vn.ctrlKey;switch(Nn){case y.Z.N:case y.Z.P:case y.Z.UP:case y.Z.DOWN:{var yr=0;if(Nn===y.Z.UP?yr=-1:Nn===y.Z.DOWN?yr=1:bt()&&Zn&&(Nn===y.Z.N?yr=1:Nn===y.Z.P&&(yr=-1)),yr!==0){var $r=St(Wt+yr,yr);xt($r),kn($r,!0)}break}case y.Z.ENTER:{var Kr=tr[Wt];Kr&&!Kr.data.disabled?cr(Kr.value):cr(void 0),Cn&&vn.preventDefault();break}case y.Z.ESC:pr(!1),Cn&&vn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vn){xt(vn)}}}),tr.length===0)return m.createElement("div",{role:"listbox",id:"".concat(Dt,"_list"),className:"".concat(Fn,"-empty"),onMouseDown:lt},gr);var Dn=Object.keys(sn).map(function(Pn){return sn[Pn]}),Rr=function(vn){return vn.label};function or(Pn,vn){var Nn=Pn.group;return{role:Nn?"presentation":"option",id:"".concat(Dt,"_list_").concat(vn)}}var Gr=function(vn){var Nn=tr[vn];if(!Nn)return null;var Zn=Nn.data||{},yr=Zn.value,$r=Nn.group,Kr=(0,L.Z)(Zn,!0),ra=Rr(Nn);return Nn?m.createElement("div",(0,i.Z)({"aria-label":typeof ra=="string"&&!$r?ra:null},Kr,{key:vn},or(Nn,vn),{"aria-selected":hr(yr)}),yr):null},Ir={role:"listbox",id:"".concat(Dt,"_list")};return m.createElement(m.Fragment,null,tn&&m.createElement("div",(0,i.Z)({},Ir,{style:{height:0,width:0,overflow:"hidden"}}),Gr(Wt-1),Gr(Wt),Gr(Wt+1)),m.createElement(Ye.Z,{itemKey:"key",ref:ct,data:tr,height:hn,itemHeight:dn,fullHeight:!1,onMouseDown:lt,onScroll:Or,virtual:tn,direction:kt,innerProps:tn?null:Ir},function(Pn,vn){var Nn,Zn=Pn.group,yr=Pn.groupOption,$r=Pn.data,Kr=Pn.label,ra=Pn.value,Xr=$r.key;if(Zn){var Fr,xa=(Fr=$r.title)!==null&&Fr!==void 0?Fr:At(Kr)?Kr.toString():void 0;return m.createElement("div",{className:p()(Fn,"".concat(Fn,"-group")),title:xa},Kr!==void 0?Kr:Xr)}var la=$r.disabled,Tn=$r.title,xn=$r.children,Gn=$r.style,Lr=$r.className,zr=(0,c.Z)($r,ft),Br=(0,Le.Z)(zr,Dn),Ma=hr(ra),co="".concat(Fn,"-option"),ro=p()(Fn,co,Lr,(Nn={},(0,o.Z)(Nn,"".concat(co,"-grouped"),yr),(0,o.Z)(Nn,"".concat(co,"-active"),Wt===vn&&!la),(0,o.Z)(Nn,"".concat(co,"-disabled"),la),(0,o.Z)(Nn,"".concat(co,"-selected"),Ma),Nn)),xo=Rr(Pn),Pa=!zt||typeof zt=="function"||Ma,Ua=typeof xo=="number"?xo:xo||ra,eo=At(Ua)?Ua.toString():void 0;return Tn!==void 0&&(eo=Tn),m.createElement("div",(0,i.Z)({},(0,L.Z)(Br),tn?{}:or(Pn,vn),{"aria-selected":Ma,className:ro,title:eo,onMouseMove:function(){Wt===vn||la||kn(vn)},onClick:function(){la||cr(ra)},style:Gn}),m.createElement("div",{className:"".concat(co,"-content")},Ua),m.isValidElement(zt)||Ma,Pa&&m.createElement(B,{className:"".concat(Fn,"-option-state"),customizeIcon:zt,customizeIconProps:{isSelected:Ma}},Ma?"\u2713":null))}))},jt=m.forwardRef(Ot);jt.displayName="OptionList";var Gt=jt;function Xt(st){var ut=st.mode,$t=st.options,nt=st.children,mt=st.backfill,Dt=st.allowClear,Cn=st.placeholder,en=st.getInputElement,Hn=st.showSearch,Rn=st.onSearch,pr=st.defaultOpen,gr=st.autoFocus,Or=st.labelInValue,ar=st.value,mr=st.inputValue,qr=st.optionLabelProp,Pr=isMultiple(ut),Vn=Hn!==void 0?Hn:Pr||ut==="combobox",zt=$t||convertChildrenToData(nt);if(warning(ut!=="tags"||zt.every(function(kt){return!kt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ut==="tags"||ut==="combobox"){var Ft=zt.some(function(kt){return kt.options?kt.options.some(function(hn){return typeof("value"in hn?hn.value:hn.key)=="number"}):typeof("value"in kt?kt.value:kt.key)=="number"});warning(!Ft,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ut!=="combobox"||!qr,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ut==="combobox"||!mt,"`backfill` only works with `combobox` mode."),warning(ut==="combobox"||!en,"`getInputElement` only work with `combobox` mode."),noteOnce(ut!=="combobox"||!en||!Dt||!Cn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Rn&&!Vn&&ut!=="combobox"&&ut!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!pr||gr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),ar!=null){var sn=toArray(ar);warning(!Or||sn.every(function(kt){return _typeof(kt)==="object"&&("key"in kt||"value"in kt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Pr||Array.isArray(ar),"`value` should be array when `mode` is `multiple` or `tags`")}if(nt){var tn=null;toNodeArray(nt).some(function(kt){if(!React.isValidElement(kt)||!kt.type)return!1;var hn=kt,dn=hn.type;if(dn.isSelectOption)return!1;if(dn.isSelectOptGroup){var Fn=toNodeArray(kt.props.children).every(function(tr){return!React.isValidElement(tr)||!kt.type||tr.type.isSelectOption?!0:(tn=tr.type,!1)});return!Fn}return tn=dn,!0}),tn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(tn.displayName||tn.name||tn,"`.")),warning(mr===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Bn(st,ut){if(st){var $t=function nt(mt){for(var Dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Cn=0;Cn2&&arguments[2]!==void 0?arguments[2]:{},ga=Tr.source,fo=ga===void 0?"keyboard":ga;Jt(dr),Cn&&nt==="combobox"&&sr!==null&&fo==="keyboard"&&ot(String(sr))},[Cn,nt]),br=function(dr,Tr,ga){var fo=function(){var vr,Ar=Lr(dr);return[Wt?{label:Ar==null?void 0:Ar[or.label],value:dr,key:(vr=Ar==null?void 0:Ar.key)!==null&&vr!==void 0?vr:dr}:dr,N(Ar)]};if(Tr&&ar){var Xa=fo(),Tt=(0,n.Z)(Xa,2),Kt=Tt[0],ln=Tt[1];ar(Kt,ln)}else if(!Tr&&mr&&ga!=="clear"){var An=fo(),_n=(0,n.Z)(An,2),fr=_n[0],Er=_n[1];mr(fr,Er)}},ea=oe(function(sr,dr){var Tr,ga=cr?dr.selected:!0;ga?Tr=cr?[].concat((0,t.Z)(Gn),[sr]):[sr]:Tr=Gn.filter(function(fo){return fo.value!==sr}),eo(Tr),br(sr,ga),nt==="combobox"?ot(""):(!re||Or)&&(vn(""),ot(""))}),ka=function(dr,Tr){eo(dr);var ga=Tr.type,fo=Tr.values;(ga==="remove"||ga==="clear")&&fo.forEach(function(Xa){br(Xa.value,!1,ga)})},kr=function(dr,Tr){if(vn(dr),ot(null),Tr.source==="submit"){var ga=(dr||"").trim();if(ga){var fo=Array.from(new Set([].concat((0,t.Z)(Br),[ga])));eo(fo),br(ga,!0),vn("")}return}Tr.source!=="blur"&&(nt==="combobox"&&eo(dr),pr==null||pr(dr))},Dr=function(dr){var Tr=dr;nt!=="tags"&&(Tr=dr.map(function(fo){var Xa=yr.get(fo);return Xa==null?void 0:Xa.value}).filter(function(fo){return fo!==void 0}));var ga=Array.from(new Set([].concat((0,t.Z)(Br),(0,t.Z)(Tr))));eo(ga),ga.forEach(function(fo){br(fo,!0)})},wr=m.useMemo(function(){var sr=Fn!==!1&&Pr!==!1;return(0,s.Z)((0,s.Z)({},Nn),{},{flattenOptions:Ua,onActiveValue:Kn,defaultActiveFirstOption:Jn,onSelect:ea,menuItemSelectedIcon:dn,rawValues:Br,fieldNames:or,virtual:sr,direction:tr,listHeight:lt,listItemHeight:St,childrenAsData:Dn})},[Nn,Ua,Kn,Jn,ea,dn,Br,or,Fn,Pr,lt,St,Dn]);return m.createElement(dt.Provider,{value:wr},m.createElement(Se,(0,i.Z)({},kn,{id:hr,prefixCls:Dt,ref:ut,omitDomProps:On,mode:nt,displayValues:zr,onDisplayValuesChange:ka,direction:tr,searchValue:Pn,onSearch:kr,autoClearSearchValue:Or,onSearchSplit:Dr,dropdownMatchSelectWidth:Pr,OptionList:Gt,emptyOptions:!Ua.length,activeValue:Bo,activeDescendantId:"".concat(hr,"_list_").concat(Bt)})))}),at=_e;at.Option=Pe,at.OptGroup=Be;var Vt=at,an=Vt},2071:function(M,b,e){"use strict";e.d(b,{Z:function(){return k}});var i=e(60698),t=e(57370),o=e(37734),s=e(38790),n=e(28314),c=e(47075),l=e(29140),v=e(87608),h=e.n(v),m=e(19570),C=e(33615),p=e(60409),S=e(58757),w=e(19425),y=e(81334),Z=e(61834),F=` min-height:0 !important; max-height:none !important; height:0 !important; @@ -443,7 +443,7 @@ Arguments: `+Array.prototype.slice.call(Ke).join("")+` top:0 !important; right:0 !important; pointer-events: none !important; -`,R=["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"],T={},z;function A(Y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=Y.getAttribute("id")||Y.getAttribute("data-reactid")||Y.getAttribute("name");if(P&&T[Q])return T[Q];var fe=window.getComputedStyle(Y),Ce=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),ge=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),Me=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),Re=R.map(function(Ve){return"".concat(Ve,":").concat(fe.getPropertyValue(Ve))}).join(";"),Qe={sizingStyle:Re,paddingSize:ge,borderSize:Me,boxSizing:Ce};return P&&Q&&(T[Q]=Qe),Qe}function L(Y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;z||(z=document.createElement("textarea"),z.setAttribute("tab-index","-1"),z.setAttribute("aria-hidden","true"),document.body.appendChild(z)),Y.getAttribute("wrap")?z.setAttribute("wrap",Y.getAttribute("wrap")):z.removeAttribute("wrap");var Ce=A(Y,P),ge=Ce.paddingSize,Me=Ce.borderSize,Re=Ce.boxSizing,Qe=Ce.sizingStyle;z.setAttribute("style","".concat(Qe,";").concat(F)),z.value=Y.value||Y.placeholder||"";var Ve=void 0,qe=void 0,Mt,wt=z.scrollHeight;if(Re==="border-box"?wt+=Me:Re==="content-box"&&(wt-=ge),Q!==null||fe!==null){z.value=" ";var mt=z.scrollHeight-ge;Q!==null&&(Ve=mt*Q,Re==="border-box"&&(Ve=Ve+ge+Me),wt=Math.max(Ve,wt)),fe!==null&&(qe=mt*fe,Re==="border-box"&&(qe=qe+ge+Me),Mt=wt>qe?"":"hidden",wt=Math.min(qe,wt))}var Nt={height:wt,overflowY:Mt,resize:"none"};return Ve&&(Nt.minHeight=Ve),qe&&(Nt.maxHeight=qe),Nt}var I=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$=0,B=1,K=2,H=S.forwardRef(function(Y,P){var Q=Y,fe=Q.prefixCls,Ce=Q.onPressEnter,ge=Q.defaultValue,Me=Q.value,Re=Q.autoSize,Qe=Q.onResize,Ve=Q.className,qe=Q.style,Mt=Q.disabled,wt=Q.onChange,mt=Q.onInternalAutoSize,Nt=(0,c.Z)(Q,I),ke=(0,p.Z)(ge,{value:Me,postState:function(Be){return Be!=null?Be:""}}),He=(0,n.Z)(ke,2),et=He[0],Fe=He[1],ue=function(Be){Fe(Be.target.value),wt==null||wt(Be)},V=S.useRef();S.useImperativeHandle(P,function(){return{textArea:V.current}});var U=S.useMemo(function(){return Re&&(0,s.Z)(Re)==="object"?[Re.minRows,Re.maxRows]:[]},[Re]),N=(0,n.Z)(U,2),D=N[0],ee=N[1],se=!!Re,X=function(){try{if(document.activeElement===V.current){var Be=V.current,De=Be.selectionStart,Pe=Be.selectionEnd,we=Be.scrollTop;V.current.setSelectionRange(De,Pe),V.current.scrollTop=we}}catch(Le){}},re=S.useState(K),Ie=(0,n.Z)(re,2),Se=Ie[0],he=Ie[1],We=S.useState(),de=(0,n.Z)(We,2),le=de[0],ve=de[1],xe=function(){he($)};(0,y.Z)(function(){se&&xe()},[Me,D,ee,se]),(0,y.Z)(function(){if(Se===$)he(B);else if(Se===B){var ye=L(V.current,!1,D,ee);he(K),ve(ye)}else X()},[Se]);var Ze=S.useRef(),pe=function(){Z.Z.cancel(Ze.current)},Je=function(Be){Se===K&&(Qe==null||Qe(Be),Re&&(pe(),Ze.current=(0,Z.Z)(function(){xe()})))};S.useEffect(function(){return pe},[]);var Ae=se?le:null,oe=(0,t.Z)((0,t.Z)({},qe),Ae);return(Se===$||Se===B)&&(oe.overflowY="hidden",oe.overflowX="hidden"),S.createElement(w.Z,{onResize:Je,disabled:!(Re||Qe)},S.createElement("textarea",(0,i.Z)({},Nt,{ref:V,style:oe,className:h()(fe,Ve,(0,o.Z)({},"".concat(fe,"-disabled"),Mt)),disabled:Mt,value:et,onChange:ue})))}),ie=H,ce=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function te(Y,P){return(0,l.Z)(Y||"").slice(0,P).join("")}function W(Y,P,Q,fe){var Ce=Q;return Y?Ce=te(Q,fe):(0,l.Z)(P||"").lengthfe&&(Ce=P),Ce}var G=S.forwardRef(function(Y,P){var Q,fe=Y.defaultValue,Ce=Y.value,ge=Y.onFocus,Me=Y.onBlur,Re=Y.onChange,Qe=Y.allowClear,Ve=Y.maxLength,qe=Y.onCompositionStart,Mt=Y.onCompositionEnd,wt=Y.suffix,mt=Y.prefixCls,Nt=mt===void 0?"rc-textarea":mt,ke=Y.classes,He=Y.showCount,et=Y.className,Fe=Y.style,ue=Y.disabled,V=Y.hidden,U=Y.classNames,N=Y.styles,D=Y.onResize,ee=(0,c.Z)(Y,ce),se=(0,p.Z)(fe,{value:Ce,defaultValue:fe}),X=(0,n.Z)(se,2),re=X[0],Ie=X[1],Se=(0,S.useRef)(null),he=S.useState(!1),We=(0,n.Z)(he,2),de=We[0],le=We[1],ve=S.useState(!1),xe=(0,n.Z)(ve,2),Ze=xe[0],pe=xe[1],Je=S.useRef(),Ae=S.useRef(0),oe=S.useState(null),ye=(0,n.Z)(oe,2),Be=ye[0],De=ye[1],Pe=function(){var Mn;(Mn=Se.current)===null||Mn===void 0||Mn.textArea.focus()};(0,S.useImperativeHandle)(P,function(){return{resizableTextArea:Se.current,focus:Pe,blur:function(){var Mn;(Mn=Se.current)===null||Mn===void 0||Mn.textArea.blur()}}}),(0,S.useEffect)(function(){le(function(On){return!ue&&On})},[ue]);var we=Number(Ve)>0,Le=function(Mn){pe(!0),Je.current=re,Ae.current=Mn.currentTarget.selectionStart,qe==null||qe(Mn)},Ye=function(Mn){pe(!1);var _e=Mn.currentTarget.value;if(we){var at,Vt=Ae.current>=Ve+1||Ae.current===((at=Je.current)===null||at===void 0?void 0:at.length);_e=W(Vt,Je.current,_e,Ve)}_e!==re&&(Ie(_e),(0,C.rJ)(Mn.currentTarget,Mn,Re,_e)),Mt==null||Mt(Mn)},Ue=function(Mn){var _e=Mn.target.value;if(!Ze&&we){var at=Mn.target.selectionStart>=Ve+1||Mn.target.selectionStart===_e.length||!Mn.target.selectionStart;_e=W(at,re,_e,Ve)}Ie(_e),(0,C.rJ)(Mn.currentTarget,Mn,Re,_e)},dt=function(Mn){var _e=ee.onPressEnter,at=ee.onKeyDown;Mn.key==="Enter"&&_e&&_e(Mn),at==null||at(Mn)},bt=function(Mn){le(!0),ge==null||ge(Mn)},ft=function(Mn){le(!1),Me==null||Me(Mn)},At=function(Mn){var _e;Ie(""),Pe(),(0,C.rJ)((_e=Se.current)===null||_e===void 0?void 0:_e.textArea,Mn,Re)},Ot=(0,C.D7)(re);!Ze&&we&&Ce==null&&(Ot=te(Ot,Ve));var jt=wt,Gt;if(He){var Xt=(0,l.Z)(Ot).length;(0,s.Z)(He)==="object"?Gt=He.formatter({value:Ot,count:Xt,maxLength:Ve}):Gt="".concat(Xt).concat(we?" / ".concat(Ve):""),jt=S.createElement(S.Fragment,null,jt,S.createElement("span",{className:h()("".concat(Nt,"-data-count"),U==null?void 0:U.count),style:N==null?void 0:N.count},Gt))}var zn=function(Mn){var _e;D==null||D(Mn),(_e=Se.current)!==null&&_e!==void 0&&_e.textArea.style.height&&De(!0)},fn=!ee.autoSize&&!He&&!Qe,Bn=S.createElement(m.Q,{value:Ot,allowClear:Qe,handleReset:At,suffix:jt,prefixCls:Nt,classes:{affixWrapper:h()(ke==null?void 0:ke.affixWrapper,(Q={},(0,o.Z)(Q,"".concat(Nt,"-show-count"),He),(0,o.Z)(Q,"".concat(Nt,"-textarea-allow-clear"),Qe),Q))},disabled:ue,focused:de,className:et,style:(0,t.Z)((0,t.Z)({},Fe),Be&&!fn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gt=="string"?Gt:void 0}},hidden:V,inputElement:S.createElement(ie,(0,i.Z)({},ee,{onKeyDown:dt,onChange:Ue,onFocus:bt,onBlur:ft,onCompositionStart:Le,onCompositionEnd:Ye,className:U==null?void 0:U.textarea,style:(0,t.Z)((0,t.Z)({},N==null?void 0:N.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:ue,prefixCls:Nt,onResize:zn,ref:Se}))});return Bn}),O=G,k=O},33664:function(M,b,e){"use strict";e.d(b,{G:function(){return S},Z:function(){return F}});var i=e(60698),t=e(57370),o=e(47075),s=e(99863),n=e(58757),c={shiftX:64,adjustY:1},l={adjustX:1,shiftY:!0},v=[0,0],h={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:v},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:v},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:v},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:v},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:v},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:v},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:v},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:v},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:v},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:v},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:v},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:v}},m=null,C=e(87608),p=e.n(C);function S(R){var T=R.children,z=R.prefixCls,A=R.id,L=R.overlayInnerStyle,I=R.className,$=R.style;return n.createElement("div",{className:p()("".concat(z,"-content"),I),style:$},n.createElement("div",{className:"".concat(z,"-inner"),id:A,role:"tooltip",style:L},typeof T=="function"?T():T))}var w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y=function(T,z){var A=T.overlayClassName,L=T.trigger,I=L===void 0?["hover"]:L,$=T.mouseEnterDelay,B=$===void 0?0:$,K=T.mouseLeaveDelay,H=K===void 0?.1:K,ie=T.overlayStyle,ce=T.prefixCls,te=ce===void 0?"rc-tooltip":ce,W=T.children,G=T.onVisibleChange,O=T.afterVisibleChange,k=T.transitionName,Y=T.animation,P=T.motion,Q=T.placement,fe=Q===void 0?"right":Q,Ce=T.align,ge=Ce===void 0?{}:Ce,Me=T.destroyTooltipOnHide,Re=Me===void 0?!1:Me,Qe=T.defaultVisible,Ve=T.getTooltipContainer,qe=T.overlayInnerStyle,Mt=T.arrowContent,wt=T.overlay,mt=T.id,Nt=T.showArrow,ke=Nt===void 0?!0:Nt,He=(0,o.Z)(T,w),et=(0,n.useRef)(null);(0,n.useImperativeHandle)(z,function(){return et.current});var Fe=(0,t.Z)({},He);"visible"in T&&(Fe.popupVisible=T.visible);var ue=function(){return n.createElement(S,{key:"content",prefixCls:te,id:mt,overlayInnerStyle:qe},wt)};return n.createElement(s.Z,(0,i.Z)({popupClassName:A,prefixCls:te,popup:ue,action:I,builtinPlacements:h,popupPlacement:fe,ref:et,popupAlign:ge,getPopupContainer:Ve,onPopupVisibleChange:G,afterPopupVisibleChange:O,popupTransitionName:k,popupAnimation:Y,popupMotion:P,defaultPopupVisible:Qe,autoDestroy:Re,mouseLeaveDelay:H,popupStyle:ie,mouseEnterDelay:B,arrow:ke},Fe),W)},Z=(0,n.forwardRef)(y),F=Z},42156:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});var i=e(58757),t=e(99415);function o(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[];return i.Children.forEach(s,function(l){l==null&&!n.keepEmpty||(Array.isArray(l)?c=c.concat(o(l)):(0,t.isFragment)(l)&&l.props?c=c.concat(o(l.props.children,n)):c.push(l))}),c}},19075:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},70700:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t,o){if(!t)return!1;if(t.contains)return t.contains(o);for(var s=o;s;){if(s===t)return!0;s=s.parentNode}return!1}},39678:function(M,b,e){"use strict";e.d(b,{hq:function(){return Z},jL:function(){return S}});var i=e(19075),t=e(70700),o="data-rc-order",s="data-rc-priority",n="rc-util-key",c=new Map;function l(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=F.mark;return R?R.startsWith("data-")?R:"data-".concat(R):n}function v(F){if(F.attachTo)return F.attachTo;var R=document.querySelector("head");return R||document.body}function h(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function m(F){return Array.from((c.get(F)||F).children).filter(function(R){return R.tagName==="STYLE"})}function C(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,i.Z)())return null;var T=R.csp,z=R.prepend,A=R.priority,L=A===void 0?0:A,I=h(z),$=I==="prependQueue",B=document.createElement("style");B.setAttribute(o,I),$&&L&&B.setAttribute(s,"".concat(L)),T!=null&&T.nonce&&(B.nonce=T==null?void 0:T.nonce),B.innerHTML=F;var K=v(R),H=K.firstChild;if(z){if($){var ie=m(K).filter(function(ce){if(!["prepend","prependQueue"].includes(ce.getAttribute(o)))return!1;var te=Number(ce.getAttribute(s)||0);return L>=te});if(ie.length)return K.insertBefore(B,ie[ie.length-1].nextSibling),B}K.insertBefore(B,H)}else K.appendChild(B);return B}function p(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=v(R);return m(T).find(function(z){return z.getAttribute(l(R))===F})}function S(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=p(F,R);if(T){var z=v(R);z.removeChild(T)}}function w(F,R){var T=c.get(F);if(!T||!(0,t.Z)(document,T)){var z=C("",R),A=z.parentNode;c.set(F,A),F.removeChild(z)}}function y(){c.clear()}function Z(F,R){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=v(T);w(z,T);var A=p(R,T);if(A){var L,I;if((L=T.csp)!==null&&L!==void 0&&L.nonce&&A.nonce!==((I=T.csp)===null||I===void 0?void 0:I.nonce)){var $;A.nonce=($=T.csp)===null||$===void 0?void 0:$.nonce}return A.innerHTML!==F&&(A.innerHTML=F),A}var B=C(F,T);return B.setAttribute(l(T),R),B}},69188:function(M,b,e){"use strict";e.d(b,{S:function(){return o},Z:function(){return s}});var i=e(58757),t=e(26736);function o(n){return n instanceof HTMLElement||n instanceof SVGElement}function s(n){return o(n)?n:n instanceof i.Component?t.findDOMNode(n):null}},46499:function(M,b){"use strict";b.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var i=e.getBBox(),t=i.width,o=i.height;if(t||o)return!0}if(e.getBoundingClientRect){var s=e.getBoundingClientRect(),n=s.width,c=s.height;if(n||c)return!0}}return!1}},4171:function(M,b,e){"use strict";e.d(b,{A:function(){return o}});function i(s){var n;return s==null||(n=s.getRootNode)===null||n===void 0?void 0:n.call(s)}function t(s){return i(s)instanceof ShadowRoot}function o(s){return t(s)?i(s):null}},29639:function(M,b){"use strict";var e={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(t){var o=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||o>=e.F1&&o<=e.F12)return!1;switch(o){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=e.ZERO&&t<=e.NINE||t>=e.NUM_ZERO&&t<=e.NUM_MULTIPLY||t>=e.A&&t<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};b.Z=e},52323:function(M,b,e){"use strict";var i;e.d(b,{s:function(){return R},v:function(){return I}});var t=e(74632),o=e(79290),s=e(38790),n=e(57370),c=e(26736),l=(0,n.Z)({},i||(i=e.t(c,2))),v=l.version,h=l.render,m=l.unmountComponentAtNode,C;try{var p=Number((v||"").split(".")[0]);p>=18&&(C=l.createRoot)}catch(B){}function S(B){var K=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;K&&(0,s.Z)(K)==="object"&&(K.usingClientEntryPoint=B)}var w="__rc_react_root__";function y(B,K){S(!0);var H=K[w]||C(K);S(!1),H.render(B),K[w]=H}function Z(B,K){h(B,K)}function F(B,K){}function R(B,K){if(C){y(B,K);return}Z(B,K)}function T(B){return z.apply(this,arguments)}function z(){return z=(0,o.Z)((0,t.Z)().mark(function B(K){return(0,t.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Promise.resolve().then(function(){var ce;(ce=K[w])===null||ce===void 0||ce.unmount(),delete K[w]}));case 1:case"end":return ie.stop()}},B)})),z.apply(this,arguments)}function A(B){m(B)}function L(B){}function I(B){return $.apply(this,arguments)}function $(){return $=(0,o.Z)((0,t.Z)().mark(function B(K){return(0,t.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(C===void 0){ie.next=2;break}return ie.abrupt("return",T(K));case 2:A(K);case 3:case"end":return ie.stop()}},B)})),$.apply(this,arguments)}},17502:function(M,b,e){"use strict";e.d(b,{Z:function(){return t},o:function(){return s}});var i;function t(n){if(typeof document=="undefined")return 0;if(n||i===void 0){var c=document.createElement("div");c.style.width="100%",c.style.height="200px";var l=document.createElement("div"),v=l.style;v.position="absolute",v.top="0",v.left="0",v.pointerEvents="none",v.visibility="hidden",v.width="200px",v.height="150px",v.overflow="hidden",l.appendChild(c),document.body.appendChild(l);var h=c.offsetWidth;l.style.overflow="scroll";var m=c.offsetWidth;h===m&&(m=l.clientWidth),document.body.removeChild(l),i=h-m}return i}function o(n){var c=n.match(/^(.*)px$/),l=Number(c==null?void 0:c[1]);return Number.isNaN(l)?t():l}function s(n){if(typeof document=="undefined"||!n||!(n instanceof Element))return{width:0,height:0};var c=getComputedStyle(n,"::-webkit-scrollbar"),l=c.width,v=c.height;return{width:o(l),height:o(v)}}},51729:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(o){var s=i.useRef();s.current=o;var n=i.useCallback(function(){for(var c,l=arguments.length,v=new Array(l),h=0;h2&&arguments[2]!==void 0?arguments[2]:!1,l=new Set;function v(h,m){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,p=l.has(h);if((0,t.ZP)(!p,"Warning: There may be circular references"),p)return!1;if(h===m)return!0;if(c&&C>1)return!1;l.add(h);var S=C+1;if(Array.isArray(h)){if(!Array.isArray(m)||h.length!==m.length)return!1;for(var w=0;w1&&arguments[1]!==void 0?arguments[1]:!1,Q=Y.getAttribute("id")||Y.getAttribute("data-reactid")||Y.getAttribute("name");if(P&&T[Q])return T[Q];var fe=window.getComputedStyle(Y),Ce=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),ge=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),Me=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),Ne=R.map(function(Ve){return"".concat(Ve,":").concat(fe.getPropertyValue(Ve))}).join(";"),Qe={sizingStyle:Ne,paddingSize:ge,borderSize:Me,boxSizing:Ce};return P&&Q&&(T[Q]=Qe),Qe}function L(Y){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;z||(z=document.createElement("textarea"),z.setAttribute("tab-index","-1"),z.setAttribute("aria-hidden","true"),document.body.appendChild(z)),Y.getAttribute("wrap")?z.setAttribute("wrap",Y.getAttribute("wrap")):z.removeAttribute("wrap");var Ce=A(Y,P),ge=Ce.paddingSize,Me=Ce.borderSize,Ne=Ce.boxSizing,Qe=Ce.sizingStyle;z.setAttribute("style","".concat(Qe,";").concat(F)),z.value=Y.value||Y.placeholder||"";var Ve=void 0,qe=void 0,Mt,wt=z.scrollHeight;if(Ne==="border-box"?wt+=Me:Ne==="content-box"&&(wt-=ge),Q!==null||fe!==null){z.value=" ";var gt=z.scrollHeight-ge;Q!==null&&(Ve=gt*Q,Ne==="border-box"&&(Ve=Ve+ge+Me),wt=Math.max(Ve,wt)),fe!==null&&(qe=gt*fe,Ne==="border-box"&&(qe=qe+ge+Me),Mt=wt>qe?"":"hidden",wt=Math.min(qe,wt))}var Lt={height:wt,overflowY:Mt,resize:"none"};return Ve&&(Lt.minHeight=Ve),qe&&(Lt.maxHeight=qe),Lt}var I=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],$=0,B=1,K=2,H=S.forwardRef(function(Y,P){var Q=Y,fe=Q.prefixCls,Ce=Q.onPressEnter,ge=Q.defaultValue,Me=Q.value,Ne=Q.autoSize,Qe=Q.onResize,Ve=Q.className,qe=Q.style,Mt=Q.disabled,wt=Q.onChange,gt=Q.onInternalAutoSize,Lt=(0,c.Z)(Q,I),ke=(0,p.Z)(ge,{value:Me,postState:function(Be){return Be!=null?Be:""}}),He=(0,n.Z)(ke,2),et=He[0],Fe=He[1],ue=function(Be){Fe(Be.target.value),wt==null||wt(Be)},V=S.useRef();S.useImperativeHandle(P,function(){return{textArea:V.current}});var U=S.useMemo(function(){return Ne&&(0,s.Z)(Ne)==="object"?[Ne.minRows,Ne.maxRows]:[]},[Ne]),N=(0,n.Z)(U,2),D=N[0],ee=N[1],se=!!Ne,X=function(){try{if(document.activeElement===V.current){var Be=V.current,De=Be.selectionStart,Pe=Be.selectionEnd,we=Be.scrollTop;V.current.setSelectionRange(De,Pe),V.current.scrollTop=we}}catch(Le){}},re=S.useState(K),Ie=(0,n.Z)(re,2),Se=Ie[0],he=Ie[1],We=S.useState(),de=(0,n.Z)(We,2),le=de[0],ve=de[1],xe=function(){he($)};(0,y.Z)(function(){se&&xe()},[Me,D,ee,se]),(0,y.Z)(function(){if(Se===$)he(B);else if(Se===B){var ye=L(V.current,!1,D,ee);he(K),ve(ye)}else X()},[Se]);var Ze=S.useRef(),pe=function(){Z.Z.cancel(Ze.current)},Je=function(Be){Se===K&&(Qe==null||Qe(Be),Ne&&(pe(),Ze.current=(0,Z.Z)(function(){xe()})))};S.useEffect(function(){return pe},[]);var Ae=se?le:null,oe=(0,t.Z)((0,t.Z)({},qe),Ae);return(Se===$||Se===B)&&(oe.overflowY="hidden",oe.overflowX="hidden"),S.createElement(w.Z,{onResize:Je,disabled:!(Ne||Qe)},S.createElement("textarea",(0,i.Z)({},Lt,{ref:V,style:oe,className:h()(fe,Ve,(0,o.Z)({},"".concat(fe,"-disabled"),Mt)),disabled:Mt,value:et,onChange:ue})))}),ie=H,ce=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function te(Y,P){return(0,l.Z)(Y||"").slice(0,P).join("")}function W(Y,P,Q,fe){var Ce=Q;return Y?Ce=te(Q,fe):(0,l.Z)(P||"").lengthfe&&(Ce=P),Ce}var G=S.forwardRef(function(Y,P){var Q,fe=Y.defaultValue,Ce=Y.value,ge=Y.onFocus,Me=Y.onBlur,Ne=Y.onChange,Qe=Y.allowClear,Ve=Y.maxLength,qe=Y.onCompositionStart,Mt=Y.onCompositionEnd,wt=Y.suffix,gt=Y.prefixCls,Lt=gt===void 0?"rc-textarea":gt,ke=Y.classes,He=Y.showCount,et=Y.className,Fe=Y.style,ue=Y.disabled,V=Y.hidden,U=Y.classNames,N=Y.styles,D=Y.onResize,ee=(0,c.Z)(Y,ce),se=(0,p.Z)(fe,{value:Ce,defaultValue:fe}),X=(0,n.Z)(se,2),re=X[0],Ie=X[1],Se=(0,S.useRef)(null),he=S.useState(!1),We=(0,n.Z)(he,2),de=We[0],le=We[1],ve=S.useState(!1),xe=(0,n.Z)(ve,2),Ze=xe[0],pe=xe[1],Je=S.useRef(),Ae=S.useRef(0),oe=S.useState(null),ye=(0,n.Z)(oe,2),Be=ye[0],De=ye[1],Pe=function(){var Mn;(Mn=Se.current)===null||Mn===void 0||Mn.textArea.focus()};(0,S.useImperativeHandle)(P,function(){return{resizableTextArea:Se.current,focus:Pe,blur:function(){var Mn;(Mn=Se.current)===null||Mn===void 0||Mn.textArea.blur()}}}),(0,S.useEffect)(function(){le(function(On){return!ue&&On})},[ue]);var we=Number(Ve)>0,Le=function(Mn){pe(!0),Je.current=re,Ae.current=Mn.currentTarget.selectionStart,qe==null||qe(Mn)},Ye=function(Mn){pe(!1);var _e=Mn.currentTarget.value;if(we){var at,Vt=Ae.current>=Ve+1||Ae.current===((at=Je.current)===null||at===void 0?void 0:at.length);_e=W(Vt,Je.current,_e,Ve)}_e!==re&&(Ie(_e),(0,C.rJ)(Mn.currentTarget,Mn,Ne,_e)),Mt==null||Mt(Mn)},Ue=function(Mn){var _e=Mn.target.value;if(!Ze&&we){var at=Mn.target.selectionStart>=Ve+1||Mn.target.selectionStart===_e.length||!Mn.target.selectionStart;_e=W(at,re,_e,Ve)}Ie(_e),(0,C.rJ)(Mn.currentTarget,Mn,Ne,_e)},dt=function(Mn){var _e=ee.onPressEnter,at=ee.onKeyDown;Mn.key==="Enter"&&_e&&_e(Mn),at==null||at(Mn)},bt=function(Mn){le(!0),ge==null||ge(Mn)},ft=function(Mn){le(!1),Me==null||Me(Mn)},At=function(Mn){var _e;Ie(""),Pe(),(0,C.rJ)((_e=Se.current)===null||_e===void 0?void 0:_e.textArea,Mn,Ne)},Ot=(0,C.D7)(re);!Ze&&we&&Ce==null&&(Ot=te(Ot,Ve));var jt=wt,Gt;if(He){var Xt=(0,l.Z)(Ot).length;(0,s.Z)(He)==="object"?Gt=He.formatter({value:Ot,count:Xt,maxLength:Ve}):Gt="".concat(Xt).concat(we?" / ".concat(Ve):""),jt=S.createElement(S.Fragment,null,jt,S.createElement("span",{className:h()("".concat(Lt,"-data-count"),U==null?void 0:U.count),style:N==null?void 0:N.count},Gt))}var Bn=function(Mn){var _e;D==null||D(Mn),(_e=Se.current)!==null&&_e!==void 0&&_e.textArea.style.height&&De(!0)},fn=!ee.autoSize&&!He&&!Qe,$n=S.createElement(m.Q,{value:Ot,allowClear:Qe,handleReset:At,suffix:jt,prefixCls:Lt,classes:{affixWrapper:h()(ke==null?void 0:ke.affixWrapper,(Q={},(0,o.Z)(Q,"".concat(Lt,"-show-count"),He),(0,o.Z)(Q,"".concat(Lt,"-textarea-allow-clear"),Qe),Q))},disabled:ue,focused:de,className:et,style:(0,t.Z)((0,t.Z)({},Fe),Be&&!fn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Gt=="string"?Gt:void 0}},hidden:V,inputElement:S.createElement(ie,(0,i.Z)({},ee,{onKeyDown:dt,onChange:Ue,onFocus:bt,onBlur:ft,onCompositionStart:Le,onCompositionEnd:Ye,className:U==null?void 0:U.textarea,style:(0,t.Z)((0,t.Z)({},N==null?void 0:N.textarea),{},{resize:Fe==null?void 0:Fe.resize}),disabled:ue,prefixCls:Lt,onResize:Bn,ref:Se}))});return $n}),O=G,k=O},33664:function(M,b,e){"use strict";e.d(b,{G:function(){return S},Z:function(){return F}});var i=e(60698),t=e(57370),o=e(47075),s=e(99863),n=e(58757),c={shiftX:64,adjustY:1},l={adjustX:1,shiftY:!0},v=[0,0],h={left:{points:["cr","cl"],overflow:l,offset:[-4,0],targetOffset:v},right:{points:["cl","cr"],overflow:l,offset:[4,0],targetOffset:v},top:{points:["bc","tc"],overflow:c,offset:[0,-4],targetOffset:v},bottom:{points:["tc","bc"],overflow:c,offset:[0,4],targetOffset:v},topLeft:{points:["bl","tl"],overflow:c,offset:[0,-4],targetOffset:v},leftTop:{points:["tr","tl"],overflow:l,offset:[-4,0],targetOffset:v},topRight:{points:["br","tr"],overflow:c,offset:[0,-4],targetOffset:v},rightTop:{points:["tl","tr"],overflow:l,offset:[4,0],targetOffset:v},bottomRight:{points:["tr","br"],overflow:c,offset:[0,4],targetOffset:v},rightBottom:{points:["bl","br"],overflow:l,offset:[4,0],targetOffset:v},bottomLeft:{points:["tl","bl"],overflow:c,offset:[0,4],targetOffset:v},leftBottom:{points:["br","bl"],overflow:l,offset:[-4,0],targetOffset:v}},m=null,C=e(87608),p=e.n(C);function S(R){var T=R.children,z=R.prefixCls,A=R.id,L=R.overlayInnerStyle,I=R.className,$=R.style;return n.createElement("div",{className:p()("".concat(z,"-content"),I),style:$},n.createElement("div",{className:"".concat(z,"-inner"),id:A,role:"tooltip",style:L},typeof T=="function"?T():T))}var w=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],y=function(T,z){var A=T.overlayClassName,L=T.trigger,I=L===void 0?["hover"]:L,$=T.mouseEnterDelay,B=$===void 0?0:$,K=T.mouseLeaveDelay,H=K===void 0?.1:K,ie=T.overlayStyle,ce=T.prefixCls,te=ce===void 0?"rc-tooltip":ce,W=T.children,G=T.onVisibleChange,O=T.afterVisibleChange,k=T.transitionName,Y=T.animation,P=T.motion,Q=T.placement,fe=Q===void 0?"right":Q,Ce=T.align,ge=Ce===void 0?{}:Ce,Me=T.destroyTooltipOnHide,Ne=Me===void 0?!1:Me,Qe=T.defaultVisible,Ve=T.getTooltipContainer,qe=T.overlayInnerStyle,Mt=T.arrowContent,wt=T.overlay,gt=T.id,Lt=T.showArrow,ke=Lt===void 0?!0:Lt,He=(0,o.Z)(T,w),et=(0,n.useRef)(null);(0,n.useImperativeHandle)(z,function(){return et.current});var Fe=(0,t.Z)({},He);"visible"in T&&(Fe.popupVisible=T.visible);var ue=function(){return n.createElement(S,{key:"content",prefixCls:te,id:gt,overlayInnerStyle:qe},wt)};return n.createElement(s.Z,(0,i.Z)({popupClassName:A,prefixCls:te,popup:ue,action:I,builtinPlacements:h,popupPlacement:fe,ref:et,popupAlign:ge,getPopupContainer:Ve,onPopupVisibleChange:G,afterPopupVisibleChange:O,popupTransitionName:k,popupAnimation:Y,popupMotion:P,defaultPopupVisible:Qe,autoDestroy:Ne,mouseLeaveDelay:H,popupStyle:ie,mouseEnterDelay:B,arrow:ke},Fe),W)},Z=(0,n.forwardRef)(y),F=Z},42156:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});var i=e(58757),t=e(99415);function o(s){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=[];return i.Children.forEach(s,function(l){l==null&&!n.keepEmpty||(Array.isArray(l)?c=c.concat(o(l)):(0,t.isFragment)(l)&&l.props?c=c.concat(o(l.props.children,n)):c.push(l))}),c}},19075:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}},70700:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t,o){if(!t)return!1;if(t.contains)return t.contains(o);for(var s=o;s;){if(s===t)return!0;s=s.parentNode}return!1}},39678:function(M,b,e){"use strict";e.d(b,{hq:function(){return Z},jL:function(){return S}});var i=e(19075),t=e(70700),o="data-rc-order",s="data-rc-priority",n="rc-util-key",c=new Map;function l(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=F.mark;return R?R.startsWith("data-")?R:"data-".concat(R):n}function v(F){if(F.attachTo)return F.attachTo;var R=document.querySelector("head");return R||document.body}function h(F){return F==="queue"?"prependQueue":F?"prepend":"append"}function m(F){return Array.from((c.get(F)||F).children).filter(function(R){return R.tagName==="STYLE"})}function C(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,i.Z)())return null;var T=R.csp,z=R.prepend,A=R.priority,L=A===void 0?0:A,I=h(z),$=I==="prependQueue",B=document.createElement("style");B.setAttribute(o,I),$&&L&&B.setAttribute(s,"".concat(L)),T!=null&&T.nonce&&(B.nonce=T==null?void 0:T.nonce),B.innerHTML=F;var K=v(R),H=K.firstChild;if(z){if($){var ie=m(K).filter(function(ce){if(!["prepend","prependQueue"].includes(ce.getAttribute(o)))return!1;var te=Number(ce.getAttribute(s)||0);return L>=te});if(ie.length)return K.insertBefore(B,ie[ie.length-1].nextSibling),B}K.insertBefore(B,H)}else K.appendChild(B);return B}function p(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=v(R);return m(T).find(function(z){return z.getAttribute(l(R))===F})}function S(F){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=p(F,R);if(T){var z=v(R);z.removeChild(T)}}function w(F,R){var T=c.get(F);if(!T||!(0,t.Z)(document,T)){var z=C("",R),A=z.parentNode;c.set(F,A),F.removeChild(z)}}function y(){c.clear()}function Z(F,R){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},z=v(T);w(z,T);var A=p(R,T);if(A){var L,I;if((L=T.csp)!==null&&L!==void 0&&L.nonce&&A.nonce!==((I=T.csp)===null||I===void 0?void 0:I.nonce)){var $;A.nonce=($=T.csp)===null||$===void 0?void 0:$.nonce}return A.innerHTML!==F&&(A.innerHTML=F),A}var B=C(F,T);return B.setAttribute(l(T),R),B}},69188:function(M,b,e){"use strict";e.d(b,{S:function(){return o},Z:function(){return s}});var i=e(58757),t=e(26736);function o(n){return n instanceof HTMLElement||n instanceof SVGElement}function s(n){return o(n)?n:n instanceof i.Component?t.findDOMNode(n):null}},46499:function(M,b){"use strict";b.Z=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var i=e.getBBox(),t=i.width,o=i.height;if(t||o)return!0}if(e.getBoundingClientRect){var s=e.getBoundingClientRect(),n=s.width,c=s.height;if(n||c)return!0}}return!1}},4171:function(M,b,e){"use strict";e.d(b,{A:function(){return o}});function i(s){var n;return s==null||(n=s.getRootNode)===null||n===void 0?void 0:n.call(s)}function t(s){return i(s)instanceof ShadowRoot}function o(s){return t(s)?i(s):null}},29639:function(M,b){"use strict";var e={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(t){var o=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||o>=e.F1&&o<=e.F12)return!1;switch(o){case e.ALT:case e.CAPS_LOCK:case e.CONTEXT_MENU:case e.CTRL:case e.DOWN:case e.END:case e.ESC:case e.HOME:case e.INSERT:case e.LEFT:case e.MAC_FF_META:case e.META:case e.NUMLOCK:case e.NUM_CENTER:case e.PAGE_DOWN:case e.PAGE_UP:case e.PAUSE:case e.PRINT_SCREEN:case e.RIGHT:case e.SHIFT:case e.UP:case e.WIN_KEY:case e.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=e.ZERO&&t<=e.NINE||t>=e.NUM_ZERO&&t<=e.NUM_MULTIPLY||t>=e.A&&t<=e.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case e.SPACE:case e.QUESTION_MARK:case e.NUM_PLUS:case e.NUM_MINUS:case e.NUM_PERIOD:case e.NUM_DIVISION:case e.SEMICOLON:case e.DASH:case e.EQUALS:case e.COMMA:case e.PERIOD:case e.SLASH:case e.APOSTROPHE:case e.SINGLE_QUOTE:case e.OPEN_SQUARE_BRACKET:case e.BACKSLASH:case e.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};b.Z=e},52323:function(M,b,e){"use strict";var i;e.d(b,{s:function(){return R},v:function(){return I}});var t=e(74632),o=e(79290),s=e(38790),n=e(57370),c=e(26736),l=(0,n.Z)({},i||(i=e.t(c,2))),v=l.version,h=l.render,m=l.unmountComponentAtNode,C;try{var p=Number((v||"").split(".")[0]);p>=18&&(C=l.createRoot)}catch(B){}function S(B){var K=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;K&&(0,s.Z)(K)==="object"&&(K.usingClientEntryPoint=B)}var w="__rc_react_root__";function y(B,K){S(!0);var H=K[w]||C(K);S(!1),H.render(B),K[w]=H}function Z(B,K){h(B,K)}function F(B,K){}function R(B,K){if(C){y(B,K);return}Z(B,K)}function T(B){return z.apply(this,arguments)}function z(){return z=(0,o.Z)((0,t.Z)().mark(function B(K){return(0,t.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.abrupt("return",Promise.resolve().then(function(){var ce;(ce=K[w])===null||ce===void 0||ce.unmount(),delete K[w]}));case 1:case"end":return ie.stop()}},B)})),z.apply(this,arguments)}function A(B){m(B)}function L(B){}function I(B){return $.apply(this,arguments)}function $(){return $=(0,o.Z)((0,t.Z)().mark(function B(K){return(0,t.Z)().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:if(C===void 0){ie.next=2;break}return ie.abrupt("return",T(K));case 2:A(K);case 3:case"end":return ie.stop()}},B)})),$.apply(this,arguments)}},17502:function(M,b,e){"use strict";e.d(b,{Z:function(){return t},o:function(){return s}});var i;function t(n){if(typeof document=="undefined")return 0;if(n||i===void 0){var c=document.createElement("div");c.style.width="100%",c.style.height="200px";var l=document.createElement("div"),v=l.style;v.position="absolute",v.top="0",v.left="0",v.pointerEvents="none",v.visibility="hidden",v.width="200px",v.height="150px",v.overflow="hidden",l.appendChild(c),document.body.appendChild(l);var h=c.offsetWidth;l.style.overflow="scroll";var m=c.offsetWidth;h===m&&(m=l.clientWidth),document.body.removeChild(l),i=h-m}return i}function o(n){var c=n.match(/^(.*)px$/),l=Number(c==null?void 0:c[1]);return Number.isNaN(l)?t():l}function s(n){if(typeof document=="undefined"||!n||!(n instanceof Element))return{width:0,height:0};var c=getComputedStyle(n,"::-webkit-scrollbar"),l=c.width,v=c.height;return{width:o(l),height:o(v)}}},51729:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(58757);function t(o){var s=i.useRef();s.current=o;var n=i.useCallback(function(){for(var c,l=arguments.length,v=new Array(l),h=0;h2&&arguments[2]!==void 0?arguments[2]:!1,l=new Set;function v(h,m){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,p=l.has(h);if((0,t.ZP)(!p,"Warning: There may be circular references"),p)return!1;if(h===m)return!0;if(c&&C>1)return!1;l.add(h);var S=C+1;if(Array.isArray(h)){if(!Array.isArray(m)||h.length!==m.length)return!1;for(var w=0;w1&&arguments[1]!==void 0?arguments[1]:!1,C;m===!1?C={aria:!0,data:!0,attr:!0}:m===!0?C={aria:!0}:C=(0,i.Z)({},m);var p={};return Object.keys(h).forEach(function(S){(C.aria&&(S==="role"||l(S,n))||C.data&&l(S,c)||C.attr&&s.includes(S))&&(p[S]=h[S])}),p}},61834:function(M,b){"use strict";var e=function(l){return+setTimeout(l,16)},i=function(l){return clearTimeout(l)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(e=function(l){return window.requestAnimationFrame(l)},i=function(l){return window.cancelAnimationFrame(l)});var t=0,o=new Map;function s(c){o.delete(c)}var n=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;t+=1;var h=t;function m(C){if(C===0)s(h),l();else{var p=e(function(){m(C-1)});o.set(h,p)}}return m(v),h};n.cancel=function(c){var l=o.get(c);return s(l),i(l)},b.Z=n},21319:function(M,b,e){"use strict";e.d(b,{Yr:function(){return v},mH:function(){return n},sQ:function(){return c},t4:function(){return h},x1:function(){return l}});var i=e(38790),t=e(58757),o=e(99415),s=e(27903);function n(m,C){typeof m=="function"?m(C):(0,i.Z)(m)==="object"&&m&&"current"in m&&(m.current=C)}function c(){for(var m=arguments.length,C=new Array(m),p=0;p3&&arguments[3]!==void 0?arguments[3]:!1;return S.length&&y&&w===void 0&&!(0,n.Z)(p,S.slice(0,-1))?p:c(p,S,w,y)}function v(p){return(0,i.Z)(p)==="object"&&p!==null&&Object.getPrototypeOf(p)===Object.prototype}function h(p){return Array.isArray(p)?[]:{}}var m=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function C(){for(var p=arguments.length,S=new Array(p),w=0;w0&&arguments[0]!==void 0?arguments[0]:{},T=R.mark;return T?T.startsWith("data-")?T:"data-".concat(T):c}function h(R){if(R.attachTo)return R.attachTo;var T=document.querySelector("head");return T||document.body}function m(R){return R==="queue"?"prependQueue":R?"prepend":"append"}function C(R){return Array.from((l.get(R)||R).children).filter(function(T){return T.tagName==="STYLE"})}function p(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,t.default)())return null;var z=T.csp,A=T.prepend,L=T.priority,I=L===void 0?0:L,$=m(A),B=$==="prependQueue",K=document.createElement("style");K.setAttribute(s,$),B&&I&&K.setAttribute(n,"".concat(I)),z!=null&&z.nonce&&(K.nonce=z==null?void 0:z.nonce),K.innerHTML=R;var H=h(T),ie=H.firstChild;if(A){if(B){var ce=C(H).filter(function(te){if(!["prepend","prependQueue"].includes(te.getAttribute(s)))return!1;var W=Number(te.getAttribute(n)||0);return I>=W});if(ce.length)return H.insertBefore(K,ce[ce.length-1].nextSibling),K}H.insertBefore(K,ie)}else H.appendChild(K);return K}function S(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=h(T);return C(z).find(function(A){return A.getAttribute(v(T))===R})}function w(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=S(R,T);if(z){var A=h(T);A.removeChild(z)}}function y(R,T){var z=l.get(R);if(!z||!(0,o.default)(document,z)){var A=p("",T),L=A.parentNode;l.set(R,L),R.removeChild(A)}}function Z(){l.clear()}function F(R,T){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=h(z);y(A,z);var L=S(T,z);if(L){var I,$;if((I=z.csp)!==null&&I!==void 0&&I.nonce&&L.nonce!==(($=z.csp)===null||$===void 0?void 0:$.nonce)){var B;L.nonce=(B=z.csp)===null||B===void 0?void 0:B.nonce}return L.innerHTML!==R&&(L.innerHTML=R),L}var K=p(R,z);return K.setAttribute(v(z),T),K}},13393:function(M,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getShadowRoot=t,b.inShadow=i;function e(o){var s;return o==null||(s=o.getRootNode)===null||s===void 0?void 0:s.call(o)}function i(o){return e(o)instanceof ShadowRoot}function t(o){return i(o)?e(o):null}},6717:function(M,b,e){"use strict";var i=e(55082).default;Object.defineProperty(b,"__esModule",{value:!0}),b.default=o;var t=i(e(58757));function o(s,n,c){var l=t.useRef({});return(!("value"in l.current)||c(l.current.condition,n))&&(l.current.value=s(),l.current.condition=n),l.current.value}},25697:function(M,b,e){"use strict";var i=e(92199).default;Object.defineProperty(b,"__esModule",{value:!0}),b.composeRef=l,b.fillRef=c,b.supportNodeRef=m,b.supportRef=h,b.useComposeRef=v;var t=i(e(98316)),o=e(58757),s=e(99415),n=i(e(6717));function c(C,p){typeof C=="function"?C(p):(0,t.default)(C)==="object"&&C&&"current"in C&&(C.current=p)}function l(){for(var C=arguments.length,p=new Array(C),S=0;S0,bt=l.useMemo(function(){if(Fe===0||Ye===0)return 0;var Bn=Fe/Ye;return Bn*Ue},[Fe,Ye,Ue]),ft=function(On){On.stopPropagation(),On.preventDefault()},At=l.useRef({top:bt,dragging:Ie,pageY:de,startTop:Ze});At.current={top:bt,dragging:Ie,pageY:de,startTop:Ze};var Ot=function(On){Se(!0),le(y(On,D)),pe(At.current.top),V(),On.stopPropagation(),On.preventDefault()};l.useEffect(function(){var Bn=function(at){at.preventDefault()},On=Ae.current,Mn=oe.current;return On.addEventListener("touchstart",Bn),Mn.addEventListener("touchstart",Ot),function(){On.removeEventListener("touchstart",Bn),Mn.removeEventListener("touchstart",Ot)}},[]);var jt=l.useRef();jt.current=Ye;var Gt=l.useRef();Gt.current=Ue,l.useEffect(function(){if(Ie){var Bn,On=function(at){var Vt=At.current,rn=Vt.dragging,st=Vt.pageY,ut=Vt.startTop;if(w.Z.cancel(Bn),rn){var $t=y(at,D)-st,nt=ut;!Je&&D?nt-=$t:nt+=$t;var gt=jt.current,Dt=Gt.current,xn=Dt?nt/Dt:0,tn=Math.ceil(xn*gt);tn=Math.max(tn,0),tn=Math.min(tn,gt),Bn=(0,w.Z)(function(){N(tn,D)})}},Mn=function(){Se(!1),U()};return window.addEventListener("mousemove",On),window.addEventListener("touchmove",On),window.addEventListener("mouseup",Mn),window.addEventListener("touchend",Mn),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",Mn),window.removeEventListener("touchend",Mn),w.Z.cancel(Bn)}}},[Ie]),l.useEffect(function(){Le()},[Fe]),l.useImperativeHandle(Nt,function(){return{delayHidden:Le}});var Xt="".concat(He,"-scrollbar"),zn={position:"absolute",visibility:De&&dt?null:"hidden"},fn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return D?(zn.height=8,zn.left=0,zn.right=0,zn.bottom=0,fn.height="100%",fn.width=ee,Je?fn.left=bt:fn.right=bt):(zn.width=8,zn.top=0,zn.bottom=0,Je?zn.right=0:zn.left=0,fn.width="100%",fn.height=ee,fn.top=bt),l.createElement("div",{ref:Ae,className:m()(Xt,(ke={},(0,n.Z)(ke,"".concat(Xt,"-horizontal"),D),(0,n.Z)(ke,"".concat(Xt,"-vertical"),!D),(0,n.Z)(ke,"".concat(Xt,"-visible"),De),ke)),style:zn,onMouseDown:ft,onMouseMove:Le},l.createElement("div",{ref:oe,className:m()("".concat(Xt,"-thumb"),(0,n.Z)({},"".concat(Xt,"-thumb-moving"),Ie)),style:fn,onMouseDown:Ot}))}),F=Z;function R(mt){var Nt=mt.children,ke=mt.setRef,He=l.useCallback(function(et){ke(et)},[]);return l.cloneElement(Nt,{ref:He})}function T(mt,Nt,ke,He,et,Fe,ue){var V=ue.getKey;return mt.slice(Nt,ke+1).map(function(U,N){var D=Nt+N,ee=Fe(U,D,{style:{width:He}}),se=V(U);return l.createElement(R,{key:se,setRef:function(re){return et(U,re)}},ee)})}var z=e(69188),A=e(60412),L=e(14346),I=function(){function mt(){(0,A.Z)(this,mt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,L.Z)(mt,[{key:"set",value:function(ke,He){this.maps[ke]=He,this.id+=1}},{key:"get",value:function(ke){return this.maps[ke]}}]),mt}(),$=I;function B(mt,Nt,ke){var He=l.useState(0),et=(0,s.Z)(He,2),Fe=et[0],ue=et[1],V=(0,l.useRef)(new Map),U=(0,l.useRef)(new $),N=(0,l.useRef)();function D(){w.Z.cancel(N.current)}function ee(){D(),N.current=(0,w.Z)(function(){V.current.forEach(function(X,re){if(X&&X.offsetParent){var Ie=(0,z.Z)(X),Se=Ie.offsetHeight;U.current.get(re)!==Se&&U.current.set(re,Ie.offsetHeight)}}),ue(function(X){return X+1})})}function se(X,re){var Ie=mt(X),Se=V.current.get(Ie);re?(V.current.set(Ie,re),ee()):V.current.delete(Ie),!Se!=!re&&(re?Nt==null||Nt(X):ke==null||ke(X))}return(0,l.useEffect)(function(){return D},[]),[se,ee,U.current,Fe]}function K(mt,Nt,ke,He,et,Fe,ue,V){var U=l.useRef();return function(N){if(N==null){V();return}if(w.Z.cancel(U.current),typeof N=="number")ue(N);else if(N&&(0,o.Z)(N)==="object"){var D,ee=N.align;"index"in N?D=N.index:D=Nt.findIndex(function(Ie){return et(Ie)===N.key});var se=N.offset,X=se===void 0?0:se,re=function Ie(Se,he){if(!(Se<0||!mt.current)){var We=mt.current.clientHeight,de=!1,le=he;if(We){for(var ve=he||ee,xe=0,Ze=0,pe=0,Je=Math.min(Nt.length,D),Ae=0;Ae<=Je;Ae+=1){var oe=et(Nt[Ae]);Ze=xe;var ye=ke.get(oe);pe=Ze+(ye===void 0?He:ye),xe=pe,Ae===D&&ye===void 0&&(de=!0)}var Be=null;switch(ve){case"top":Be=Ze-X;break;case"bottom":Be=pe-We+X;break;default:{var De=mt.current.scrollTop,Pe=De+We;ZePe&&(le="bottom")}}Be!==null&&Be!==mt.current.scrollTop&&ue(Be)}U.current=(0,w.Z)(function(){de&&Fe(),Ie(Se-1,le)},2)}};re(3)}}}function H(mt,Nt,ke,He){var et=ke-mt,Fe=Nt-ke,ue=Math.min(et,Fe)*2;if(He<=ue){var V=Math.floor(He/2);return He%2?ke+V+1:ke-V}return et>Fe?ke-(He-Fe):ke+(He-et)}function ie(mt,Nt,ke){var He=mt.length,et=Nt.length,Fe,ue;if(He===0&&et===0)return null;He1&&arguments[1]!==void 0?arguments[1]:!1,U=ue<0&&Fe.current.top||ue>0&&Fe.current.bottom;return V&&U?(clearTimeout(He.current),ke.current=!1):(!U||ke.current)&&et(),!ke.current&&U}};function O(mt,Nt,ke,He,et){var Fe=(0,l.useRef)(0),ue=(0,l.useRef)(null),V=(0,l.useRef)(null),U=(0,l.useRef)(!1),N=G(Nt,ke);function D(Se){w.Z.cancel(ue.current);var he=Se.deltaY;Fe.current+=he,V.current=he,!N(he)&&(W||Se.preventDefault(),ue.current=(0,w.Z)(function(){var We=U.current?10:1;et(Fe.current*We),Fe.current=0}))}function ee(Se){var he=Se.deltaX;et(he,!0),W||Se.preventDefault()}var se=(0,l.useRef)(null),X=(0,l.useRef)(null);function re(Se){if(mt){w.Z.cancel(X.current),X.current=(0,w.Z)(function(){se.current=null},2);var he=Se.deltaX,We=Se.deltaY,de=Math.abs(he),le=Math.abs(We);se.current===null&&(se.current=He&&de>le?"x":"y"),se.current==="x"?ee(Se):D(Se)}}function Ie(Se){mt&&(U.current=Se.detail===V.current)}return[re,Ie]}var k=e(81334),Y=14/15;function P(mt,Nt,ke){var He=(0,l.useRef)(!1),et=(0,l.useRef)(0),Fe=(0,l.useRef)(null),ue=(0,l.useRef)(null),V,U=function(se){if(He.current){var X=Math.ceil(se.touches[0].pageY),re=et.current-X;et.current=X,ke(re)&&se.preventDefault(),clearInterval(ue.current),ue.current=setInterval(function(){re*=Y,(!ke(re,!0)||Math.abs(re)<=.1)&&clearInterval(ue.current)},16)}},N=function(){He.current=!1,V()},D=function(se){V(),se.touches.length===1&&!He.current&&(He.current=!0,et.current=Math.ceil(se.touches[0].pageY),Fe.current=se.target,Fe.current.addEventListener("touchmove",U),Fe.current.addEventListener("touchend",N))};V=function(){Fe.current&&(Fe.current.removeEventListener("touchmove",U),Fe.current.removeEventListener("touchend",N))},(0,k.Z)(function(){return mt&&Nt.current.addEventListener("touchstart",D),function(){var ee;(ee=Nt.current)===null||ee===void 0||ee.removeEventListener("touchstart",D),V(),clearInterval(ue.current)}},[mt])}var Q=20;function fe(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=mt/Nt*100;return isNaN(ke)&&(ke=0),ke=Math.max(ke,Q),ke=Math.min(ke,mt/2),Math.floor(ke)}var Ce=e(71219);function ge(mt,Nt,ke,He){var et=l.useMemo(function(){return[new Map,[]]},[mt,ke.id,He]),Fe=(0,s.Z)(et,2),ue=Fe[0],V=Fe[1],U=function(D){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,se=ue.get(D),X=ue.get(ee);if(se===void 0||X===void 0)for(var re=mt.length,Ie=V.length;IeFe,Ae=re==="rtl",oe=m()(He,(0,n.Z)({},"".concat(He,"-rtl"),Ae),et),ye=D||Re,Be=(0,l.useRef)(),De=(0,l.useRef)(),Pe=(0,l.useState)(0),we=(0,s.Z)(Pe,2),Le=we[0],Ye=we[1],Ue=(0,l.useState)(0),dt=(0,s.Z)(Ue,2),bt=dt[0],ft=dt[1],At=(0,l.useState)(!1),Ot=(0,s.Z)(At,2),jt=Ot[0],Gt=Ot[1],Xt=function(){Gt(!0)},zn=function(){Gt(!1)},fn=l.useCallback(function(vn){return typeof se=="function"?se(vn):vn==null?void 0:vn[se]},[se]),Bn={getKey:fn};function On(vn){Ye(function(Ln){var Zn;typeof vn=="function"?Zn=vn(Ln):Zn=vn;var yr=kt(Zn);return Be.current.scrollTop=yr,yr})}var Mn=(0,l.useRef)({start:0,end:ye.length}),_e=(0,l.useRef)(),at=ce(ye,fn),Vt=(0,s.Z)(at,1),rn=Vt[0];_e.current=rn;var st=B(fn,null,null),ut=(0,s.Z)(st,4),$t=ut[0],nt=ut[1],gt=ut[2],Dt=ut[3],xn=l.useMemo(function(){if(!pe)return{scrollHeight:void 0,start:0,end:ye.length-1,offset:void 0};if(!Je){var vn;return{scrollHeight:((vn=De.current)===null||vn===void 0?void 0:vn.offsetHeight)||0,start:0,end:ye.length-1,offset:void 0}}for(var Ln=0,Zn,yr,Fr,Kr=ye.length,aa=0;aa=Le&&Zn===void 0&&(Zn=aa,yr=Ln),la>Le+Fe&&Fr===void 0&&(Fr=aa),Ln=la}return Zn===void 0&&(Zn=0,yr=0,Fr=Math.ceil(Fe/ue)),Fr===void 0&&(Fr=ye.length-1),Fr=Math.min(Fr+1,ye.length-1),{scrollHeight:Ln,start:Zn,end:Fr,offset:yr}},[Je,pe,Le,ye,Dt,Fe]),tn=xn.scrollHeight,Hn=xn.start,Nn=xn.end,pr=xn.offset;Mn.current.start=Hn,Mn.current.end=Nn;var gr=l.useState({width:0,height:Fe}),Or=(0,s.Z)(gr,2),ar=Or[0],mr=Or[1],ea=function(Ln){mr(Ln)},Lr=(0,l.useRef)(),Kn=(0,l.useRef)(),zt=l.useMemo(function(){return fe(ar.width,Ie)},[ar.width,Ie]),Ft=l.useMemo(function(){return fe(ar.height,tn)},[ar.height,tn]),on=tn-Fe,nn=(0,l.useRef)(on);nn.current=on;function kt(vn){var Ln=vn;return Number.isNaN(nn.current)||(Ln=Math.min(Ln,nn.current)),Ln=Math.max(Ln,0),Ln}var hn=Le<=0,dn=Le>=on,$n=G(hn,dn),qn=function(){return{x:Ae?-bt:bt,y:Le}},ct=(0,l.useRef)(qn()),lt=(0,Ce.zX)(function(){if(de){var vn=qn();(ct.current.x!==vn.x||ct.current.y!==vn.y)&&(de(vn),ct.current=vn)}});function xt(vn,Ln){var Zn=vn;Ln?((0,v.flushSync)(function(){ft(Zn)}),lt()):On(Zn)}function St(vn){var Ln=vn.currentTarget.scrollTop;Ln!==Le&&On(Ln),We==null||We(vn),lt()}var Lt=function(Ln){var Zn=Ln,yr=Ie-ar.width;return Zn=Math.max(Zn,0),Zn=Math.min(Zn,yr),Zn},_t=(0,Ce.zX)(function(vn,Ln){Ln?((0,v.flushSync)(function(){ft(function(Zn){var yr=Zn+(Ae?-vn:vn);return Lt(yr)})}),lt()):On(function(Zn){var yr=Zn+vn;return yr})}),Wt=O(pe,hn,dn,!!Ie,_t),yn=(0,s.Z)(Wt,2),kn=yn[0],hr=yn[1];P(pe,Be,function(vn,Ln){return $n(vn,Ln)?!1:(kn({preventDefault:function(){},deltaY:vn}),!0)}),(0,k.Z)(function(){function vn(Zn){pe&&Zn.preventDefault()}var Ln=Be.current;return Ln.addEventListener("wheel",kn),Ln.addEventListener("DOMMouseScroll",hr),Ln.addEventListener("MozMousePixelScroll",vn),function(){Ln.removeEventListener("wheel",kn),Ln.removeEventListener("DOMMouseScroll",hr),Ln.removeEventListener("MozMousePixelScroll",vn)}},[pe]);var cr=function(){var Ln,Zn;(Ln=Lr.current)===null||Ln===void 0||Ln.delayHidden(),(Zn=Kn.current)===null||Zn===void 0||Zn.delayHidden()},Dn=K(Be,ye,gt,ue,fn,nt,On,cr);l.useImperativeHandle(Nt,function(){return{getScrollInfo:qn,scrollTo:function(Ln){function Zn(yr){return yr&&(0,o.Z)(yr)==="object"&&("left"in yr||"top"in yr)}Zn(Ln)?(Ln.left!==void 0&&ft(Lt(Ln.left)),Dn(Ln.top)):Dn(Ln)}}}),(0,k.Z)(function(){if(le){var vn=ye.slice(Hn,Nn+1);le(vn,ye)}},[Hn,Nn,ye]);var Rr=ge(ye,fn,gt,ue),or=xe==null?void 0:xe({start:Hn,end:Nn,virtual:Je,offsetX:bt,offsetY:pr,rtl:Ae,getSize:Rr}),Gr=T(ye,Hn,Nn,Ie,$t,ee,Bn),Ir=null;Fe&&(Ir=(0,t.Z)((0,n.Z)({},U?"height":"maxHeight",Fe),Qe),pe&&(Ir.overflowY="hidden",Ie&&(Ir.overflowX="hidden"),jt&&(Ir.pointerEvents="none")));var jn={};return Ae&&(jn.dir="rtl"),l.createElement("div",(0,i.Z)({style:(0,t.Z)((0,t.Z)({},N),{},{position:"relative"}),className:oe},jn,Ze),l.createElement(C.Z,{onResize:ea},l.createElement(he,{className:"".concat(He,"-holder"),style:Ir,ref:Be,onScroll:St,onMouseEnter:cr},l.createElement(S,{prefixCls:He,height:tn,offsetX:bt,offsetY:pr,scrollWidth:Ie,onInnerResize:nt,ref:De,innerProps:ve,rtl:Ae,extra:or},Gr))),Je&&tn>Fe&&l.createElement(F,{ref:Lr,prefixCls:He,scrollOffset:Le,scrollRange:tn,rtl:Ae,onScroll:xt,onStartMove:Xt,onStopMove:zn,spinSize:Ft,containerSize:ar.height}),Je&&Ie&&l.createElement(F,{ref:Kn,prefixCls:He,scrollOffset:bt,scrollRange:Ie,rtl:Ae,onScroll:xt,onStartMove:Xt,onStopMove:zn,spinSize:zt,containerSize:ar.width,horizontal:!0}))}var qe=l.forwardRef(Ve);qe.displayName="List";var Mt=qe,wt=Mt},13881:function(M,b,e){"use strict";var i=e(58757),t=e(52090);function o(a){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+a,x=1;xd}return!1}function Z(a,d,x,J,Ee,ze,Ct){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=J,this.attributeNamespace=Ee,this.mustUseProperty=x,this.propertyName=a,this.type=d,this.sanitizeURL=ze,this.removeEmptyString=Ct}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){F[a]=new Z(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var d=a[0];F[d]=new Z(d,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){F[a]=new Z(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){F[a]=new Z(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){F[a]=new Z(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){F[a]=new Z(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){F[a]=new Z(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){F[a]=new Z(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){F[a]=new Z(a,5,!1,a.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function T(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){F[a]=new Z(a,1,!1,a.toLowerCase(),null,!1,!1)}),F.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){F[a]=new Z(a,1,!1,a.toLowerCase(),null,!0,!0)});function z(a,d,x,J){var Ee=F.hasOwnProperty(d)?F[d]:null;(Ee!==null?Ee.type!==0:J||!(21&&arguments[1]!==void 0?arguments[1]:!1,C;m===!1?C={aria:!0,data:!0,attr:!0}:m===!0?C={aria:!0}:C=(0,i.Z)({},m);var p={};return Object.keys(h).forEach(function(S){(C.aria&&(S==="role"||l(S,n))||C.data&&l(S,c)||C.attr&&s.includes(S))&&(p[S]=h[S])}),p}},61834:function(M,b){"use strict";var e=function(l){return+setTimeout(l,16)},i=function(l){return clearTimeout(l)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(e=function(l){return window.requestAnimationFrame(l)},i=function(l){return window.cancelAnimationFrame(l)});var t=0,o=new Map;function s(c){o.delete(c)}var n=function(l){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;t+=1;var h=t;function m(C){if(C===0)s(h),l();else{var p=e(function(){m(C-1)});o.set(h,p)}}return m(v),h};n.cancel=function(c){var l=o.get(c);return s(l),i(l)},b.Z=n},21319:function(M,b,e){"use strict";e.d(b,{Yr:function(){return v},mH:function(){return n},sQ:function(){return c},t4:function(){return h},x1:function(){return l}});var i=e(38790),t=e(58757),o=e(99415),s=e(27903);function n(m,C){typeof m=="function"?m(C):(0,i.Z)(m)==="object"&&m&&"current"in m&&(m.current=C)}function c(){for(var m=arguments.length,C=new Array(m),p=0;p3&&arguments[3]!==void 0?arguments[3]:!1;return S.length&&y&&w===void 0&&!(0,n.Z)(p,S.slice(0,-1))?p:c(p,S,w,y)}function v(p){return(0,i.Z)(p)==="object"&&p!==null&&Object.getPrototypeOf(p)===Object.prototype}function h(p){return Array.isArray(p)?[]:{}}var m=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function C(){for(var p=arguments.length,S=new Array(p),w=0;w0&&arguments[0]!==void 0?arguments[0]:{},T=R.mark;return T?T.startsWith("data-")?T:"data-".concat(T):c}function h(R){if(R.attachTo)return R.attachTo;var T=document.querySelector("head");return T||document.body}function m(R){return R==="queue"?"prependQueue":R?"prepend":"append"}function C(R){return Array.from((l.get(R)||R).children).filter(function(T){return T.tagName==="STYLE"})}function p(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,t.default)())return null;var z=T.csp,A=T.prepend,L=T.priority,I=L===void 0?0:L,$=m(A),B=$==="prependQueue",K=document.createElement("style");K.setAttribute(s,$),B&&I&&K.setAttribute(n,"".concat(I)),z!=null&&z.nonce&&(K.nonce=z==null?void 0:z.nonce),K.innerHTML=R;var H=h(T),ie=H.firstChild;if(A){if(B){var ce=C(H).filter(function(te){if(!["prepend","prependQueue"].includes(te.getAttribute(s)))return!1;var W=Number(te.getAttribute(n)||0);return I>=W});if(ce.length)return H.insertBefore(K,ce[ce.length-1].nextSibling),K}H.insertBefore(K,ie)}else H.appendChild(K);return K}function S(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=h(T);return C(z).find(function(A){return A.getAttribute(v(T))===R})}function w(R){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},z=S(R,T);if(z){var A=h(T);A.removeChild(z)}}function y(R,T){var z=l.get(R);if(!z||!(0,o.default)(document,z)){var A=p("",T),L=A.parentNode;l.set(R,L),R.removeChild(A)}}function Z(){l.clear()}function F(R,T){var z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},A=h(z);y(A,z);var L=S(T,z);if(L){var I,$;if((I=z.csp)!==null&&I!==void 0&&I.nonce&&L.nonce!==(($=z.csp)===null||$===void 0?void 0:$.nonce)){var B;L.nonce=(B=z.csp)===null||B===void 0?void 0:B.nonce}return L.innerHTML!==R&&(L.innerHTML=R),L}var K=p(R,z);return K.setAttribute(v(z),T),K}},13393:function(M,b){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.getShadowRoot=t,b.inShadow=i;function e(o){var s;return o==null||(s=o.getRootNode)===null||s===void 0?void 0:s.call(o)}function i(o){return e(o)instanceof ShadowRoot}function t(o){return i(o)?e(o):null}},6717:function(M,b,e){"use strict";var i=e(55082).default;Object.defineProperty(b,"__esModule",{value:!0}),b.default=o;var t=i(e(58757));function o(s,n,c){var l=t.useRef({});return(!("value"in l.current)||c(l.current.condition,n))&&(l.current.value=s(),l.current.condition=n),l.current.value}},25697:function(M,b,e){"use strict";var i=e(92199).default;Object.defineProperty(b,"__esModule",{value:!0}),b.composeRef=l,b.fillRef=c,b.supportNodeRef=m,b.supportRef=h,b.useComposeRef=v;var t=i(e(98316)),o=e(58757),s=e(99415),n=i(e(6717));function c(C,p){typeof C=="function"?C(p):(0,t.default)(C)==="object"&&C&&"current"in C&&(C.current=p)}function l(){for(var C=arguments.length,p=new Array(C),S=0;S0,bt=l.useMemo(function(){if(Fe===0||Ye===0)return 0;var $n=Fe/Ye;return $n*Ue},[Fe,Ye,Ue]),ft=function(On){On.stopPropagation(),On.preventDefault()},At=l.useRef({top:bt,dragging:Ie,pageY:de,startTop:Ze});At.current={top:bt,dragging:Ie,pageY:de,startTop:Ze};var Ot=function(On){Se(!0),le(y(On,D)),pe(At.current.top),V(),On.stopPropagation(),On.preventDefault()};l.useEffect(function(){var $n=function(at){at.preventDefault()},On=Ae.current,Mn=oe.current;return On.addEventListener("touchstart",$n),Mn.addEventListener("touchstart",Ot),function(){On.removeEventListener("touchstart",$n),Mn.removeEventListener("touchstart",Ot)}},[]);var jt=l.useRef();jt.current=Ye;var Gt=l.useRef();Gt.current=Ue,l.useEffect(function(){if(Ie){var $n,On=function(at){var Vt=At.current,an=Vt.dragging,st=Vt.pageY,ut=Vt.startTop;if(w.Z.cancel($n),an){var $t=y(at,D)-st,nt=ut;!Je&&D?nt-=$t:nt+=$t;var mt=jt.current,Dt=Gt.current,Cn=Dt?nt/Dt:0,en=Math.ceil(Cn*mt);en=Math.max(en,0),en=Math.min(en,mt),$n=(0,w.Z)(function(){N(en,D)})}},Mn=function(){Se(!1),U()};return window.addEventListener("mousemove",On),window.addEventListener("touchmove",On),window.addEventListener("mouseup",Mn),window.addEventListener("touchend",Mn),function(){window.removeEventListener("mousemove",On),window.removeEventListener("touchmove",On),window.removeEventListener("mouseup",Mn),window.removeEventListener("touchend",Mn),w.Z.cancel($n)}}},[Ie]),l.useEffect(function(){Le()},[Fe]),l.useImperativeHandle(Lt,function(){return{delayHidden:Le}});var Xt="".concat(He,"-scrollbar"),Bn={position:"absolute",visibility:De&&dt?null:"hidden"},fn={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return D?(Bn.height=8,Bn.left=0,Bn.right=0,Bn.bottom=0,fn.height="100%",fn.width=ee,Je?fn.left=bt:fn.right=bt):(Bn.width=8,Bn.top=0,Bn.bottom=0,Je?Bn.right=0:Bn.left=0,fn.width="100%",fn.height=ee,fn.top=bt),l.createElement("div",{ref:Ae,className:m()(Xt,(ke={},(0,n.Z)(ke,"".concat(Xt,"-horizontal"),D),(0,n.Z)(ke,"".concat(Xt,"-vertical"),!D),(0,n.Z)(ke,"".concat(Xt,"-visible"),De),ke)),style:Bn,onMouseDown:ft,onMouseMove:Le},l.createElement("div",{ref:oe,className:m()("".concat(Xt,"-thumb"),(0,n.Z)({},"".concat(Xt,"-thumb-moving"),Ie)),style:fn,onMouseDown:Ot}))}),F=Z;function R(gt){var Lt=gt.children,ke=gt.setRef,He=l.useCallback(function(et){ke(et)},[]);return l.cloneElement(Lt,{ref:He})}function T(gt,Lt,ke,He,et,Fe,ue){var V=ue.getKey;return gt.slice(Lt,ke+1).map(function(U,N){var D=Lt+N,ee=Fe(U,D,{style:{width:He}}),se=V(U);return l.createElement(R,{key:se,setRef:function(re){return et(U,re)}},ee)})}var z=e(69188),A=e(60412),L=e(14346),I=function(){function gt(){(0,A.Z)(this,gt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return(0,L.Z)(gt,[{key:"set",value:function(ke,He){this.maps[ke]=He,this.id+=1}},{key:"get",value:function(ke){return this.maps[ke]}}]),gt}(),$=I;function B(gt,Lt,ke){var He=l.useState(0),et=(0,s.Z)(He,2),Fe=et[0],ue=et[1],V=(0,l.useRef)(new Map),U=(0,l.useRef)(new $),N=(0,l.useRef)();function D(){w.Z.cancel(N.current)}function ee(){D(),N.current=(0,w.Z)(function(){V.current.forEach(function(X,re){if(X&&X.offsetParent){var Ie=(0,z.Z)(X),Se=Ie.offsetHeight;U.current.get(re)!==Se&&U.current.set(re,Ie.offsetHeight)}}),ue(function(X){return X+1})})}function se(X,re){var Ie=gt(X),Se=V.current.get(Ie);re?(V.current.set(Ie,re),ee()):V.current.delete(Ie),!Se!=!re&&(re?Lt==null||Lt(X):ke==null||ke(X))}return(0,l.useEffect)(function(){return D},[]),[se,ee,U.current,Fe]}function K(gt,Lt,ke,He,et,Fe,ue,V){var U=l.useRef();return function(N){if(N==null){V();return}if(w.Z.cancel(U.current),typeof N=="number")ue(N);else if(N&&(0,o.Z)(N)==="object"){var D,ee=N.align;"index"in N?D=N.index:D=Lt.findIndex(function(Ie){return et(Ie)===N.key});var se=N.offset,X=se===void 0?0:se,re=function Ie(Se,he){if(!(Se<0||!gt.current)){var We=gt.current.clientHeight,de=!1,le=he;if(We){for(var ve=he||ee,xe=0,Ze=0,pe=0,Je=Math.min(Lt.length,D),Ae=0;Ae<=Je;Ae+=1){var oe=et(Lt[Ae]);Ze=xe;var ye=ke.get(oe);pe=Ze+(ye===void 0?He:ye),xe=pe,Ae===D&&ye===void 0&&(de=!0)}var Be=null;switch(ve){case"top":Be=Ze-X;break;case"bottom":Be=pe-We+X;break;default:{var De=gt.current.scrollTop,Pe=De+We;ZePe&&(le="bottom")}}Be!==null&&Be!==gt.current.scrollTop&&ue(Be)}U.current=(0,w.Z)(function(){de&&Fe(),Ie(Se-1,le)},2)}};re(3)}}}function H(gt,Lt,ke,He){var et=ke-gt,Fe=Lt-ke,ue=Math.min(et,Fe)*2;if(He<=ue){var V=Math.floor(He/2);return He%2?ke+V+1:ke-V}return et>Fe?ke-(He-Fe):ke+(He-et)}function ie(gt,Lt,ke){var He=gt.length,et=Lt.length,Fe,ue;if(He===0&&et===0)return null;He1&&arguments[1]!==void 0?arguments[1]:!1,U=ue<0&&Fe.current.top||ue>0&&Fe.current.bottom;return V&&U?(clearTimeout(He.current),ke.current=!1):(!U||ke.current)&&et(),!ke.current&&U}};function O(gt,Lt,ke,He,et){var Fe=(0,l.useRef)(0),ue=(0,l.useRef)(null),V=(0,l.useRef)(null),U=(0,l.useRef)(!1),N=G(Lt,ke);function D(Se){w.Z.cancel(ue.current);var he=Se.deltaY;Fe.current+=he,V.current=he,!N(he)&&(W||Se.preventDefault(),ue.current=(0,w.Z)(function(){var We=U.current?10:1;et(Fe.current*We),Fe.current=0}))}function ee(Se){var he=Se.deltaX;et(he,!0),W||Se.preventDefault()}var se=(0,l.useRef)(null),X=(0,l.useRef)(null);function re(Se){if(gt){w.Z.cancel(X.current),X.current=(0,w.Z)(function(){se.current=null},2);var he=Se.deltaX,We=Se.deltaY,de=Math.abs(he),le=Math.abs(We);se.current===null&&(se.current=He&&de>le?"x":"y"),se.current==="x"?ee(Se):D(Se)}}function Ie(Se){gt&&(U.current=Se.detail===V.current)}return[re,Ie]}var k=e(81334),Y=14/15;function P(gt,Lt,ke){var He=(0,l.useRef)(!1),et=(0,l.useRef)(0),Fe=(0,l.useRef)(null),ue=(0,l.useRef)(null),V,U=function(se){if(He.current){var X=Math.ceil(se.touches[0].pageY),re=et.current-X;et.current=X,ke(re)&&se.preventDefault(),clearInterval(ue.current),ue.current=setInterval(function(){re*=Y,(!ke(re,!0)||Math.abs(re)<=.1)&&clearInterval(ue.current)},16)}},N=function(){He.current=!1,V()},D=function(se){V(),se.touches.length===1&&!He.current&&(He.current=!0,et.current=Math.ceil(se.touches[0].pageY),Fe.current=se.target,Fe.current.addEventListener("touchmove",U),Fe.current.addEventListener("touchend",N))};V=function(){Fe.current&&(Fe.current.removeEventListener("touchmove",U),Fe.current.removeEventListener("touchend",N))},(0,k.Z)(function(){return gt&&Lt.current.addEventListener("touchstart",D),function(){var ee;(ee=Lt.current)===null||ee===void 0||ee.removeEventListener("touchstart",D),V(),clearInterval(ue.current)}},[gt])}var Q=20;function fe(){var gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Lt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ke=gt/Lt*100;return isNaN(ke)&&(ke=0),ke=Math.max(ke,Q),ke=Math.min(ke,gt/2),Math.floor(ke)}var Ce=e(71219);function ge(gt,Lt,ke,He){var et=l.useMemo(function(){return[new Map,[]]},[gt,ke.id,He]),Fe=(0,s.Z)(et,2),ue=Fe[0],V=Fe[1],U=function(D){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:D,se=ue.get(D),X=ue.get(ee);if(se===void 0||X===void 0)for(var re=gt.length,Ie=V.length;IeFe,Ae=re==="rtl",oe=m()(He,(0,n.Z)({},"".concat(He,"-rtl"),Ae),et),ye=D||Ne,Be=(0,l.useRef)(),De=(0,l.useRef)(),Pe=(0,l.useState)(0),we=(0,s.Z)(Pe,2),Le=we[0],Ye=we[1],Ue=(0,l.useState)(0),dt=(0,s.Z)(Ue,2),bt=dt[0],ft=dt[1],At=(0,l.useState)(!1),Ot=(0,s.Z)(At,2),jt=Ot[0],Gt=Ot[1],Xt=function(){Gt(!0)},Bn=function(){Gt(!1)},fn=l.useCallback(function(vn){return typeof se=="function"?se(vn):vn==null?void 0:vn[se]},[se]),$n={getKey:fn};function On(vn){Ye(function(Nn){var Zn;typeof vn=="function"?Zn=vn(Nn):Zn=vn;var yr=kt(Zn);return Be.current.scrollTop=yr,yr})}var Mn=(0,l.useRef)({start:0,end:ye.length}),_e=(0,l.useRef)(),at=ce(ye,fn),Vt=(0,s.Z)(at,1),an=Vt[0];_e.current=an;var st=B(fn,null,null),ut=(0,s.Z)(st,4),$t=ut[0],nt=ut[1],mt=ut[2],Dt=ut[3],Cn=l.useMemo(function(){if(!pe)return{scrollHeight:void 0,start:0,end:ye.length-1,offset:void 0};if(!Je){var vn;return{scrollHeight:((vn=De.current)===null||vn===void 0?void 0:vn.offsetHeight)||0,start:0,end:ye.length-1,offset:void 0}}for(var Nn=0,Zn,yr,$r,Kr=ye.length,ra=0;ra=Le&&Zn===void 0&&(Zn=ra,yr=Nn),la>Le+Fe&&$r===void 0&&($r=ra),Nn=la}return Zn===void 0&&(Zn=0,yr=0,$r=Math.ceil(Fe/ue)),$r===void 0&&($r=ye.length-1),$r=Math.min($r+1,ye.length-1),{scrollHeight:Nn,start:Zn,end:$r,offset:yr}},[Je,pe,Le,ye,Dt,Fe]),en=Cn.scrollHeight,Hn=Cn.start,Rn=Cn.end,pr=Cn.offset;Mn.current.start=Hn,Mn.current.end=Rn;var gr=l.useState({width:0,height:Fe}),Or=(0,s.Z)(gr,2),ar=Or[0],mr=Or[1],qr=function(Nn){mr(Nn)},Pr=(0,l.useRef)(),Vn=(0,l.useRef)(),zt=l.useMemo(function(){return fe(ar.width,Ie)},[ar.width,Ie]),Ft=l.useMemo(function(){return fe(ar.height,en)},[ar.height,en]),sn=en-Fe,tn=(0,l.useRef)(sn);tn.current=sn;function kt(vn){var Nn=vn;return Number.isNaN(tn.current)||(Nn=Math.min(Nn,tn.current)),Nn=Math.max(Nn,0),Nn}var hn=Le<=0,dn=Le>=sn,Fn=G(hn,dn),tr=function(){return{x:Ae?-bt:bt,y:Le}},ct=(0,l.useRef)(tr()),lt=(0,Ce.zX)(function(){if(de){var vn=tr();(ct.current.x!==vn.x||ct.current.y!==vn.y)&&(de(vn),ct.current=vn)}});function xt(vn,Nn){var Zn=vn;Nn?((0,v.flushSync)(function(){ft(Zn)}),lt()):On(Zn)}function St(vn){var Nn=vn.currentTarget.scrollTop;Nn!==Le&&On(Nn),We==null||We(vn),lt()}var Nt=function(Nn){var Zn=Nn,yr=Ie-ar.width;return Zn=Math.max(Zn,0),Zn=Math.min(Zn,yr),Zn},_t=(0,Ce.zX)(function(vn,Nn){Nn?((0,v.flushSync)(function(){ft(function(Zn){var yr=Zn+(Ae?-vn:vn);return Nt(yr)})}),lt()):On(function(Zn){var yr=Zn+vn;return yr})}),Wt=O(pe,hn,dn,!!Ie,_t),yn=(0,s.Z)(Wt,2),kn=yn[0],hr=yn[1];P(pe,Be,function(vn,Nn){return Fn(vn,Nn)?!1:(kn({preventDefault:function(){},deltaY:vn}),!0)}),(0,k.Z)(function(){function vn(Zn){pe&&Zn.preventDefault()}var Nn=Be.current;return Nn.addEventListener("wheel",kn),Nn.addEventListener("DOMMouseScroll",hr),Nn.addEventListener("MozMousePixelScroll",vn),function(){Nn.removeEventListener("wheel",kn),Nn.removeEventListener("DOMMouseScroll",hr),Nn.removeEventListener("MozMousePixelScroll",vn)}},[pe]);var cr=function(){var Nn,Zn;(Nn=Pr.current)===null||Nn===void 0||Nn.delayHidden(),(Zn=Vn.current)===null||Zn===void 0||Zn.delayHidden()},Dn=K(Be,ye,mt,ue,fn,nt,On,cr);l.useImperativeHandle(Lt,function(){return{getScrollInfo:tr,scrollTo:function(Nn){function Zn(yr){return yr&&(0,o.Z)(yr)==="object"&&("left"in yr||"top"in yr)}Zn(Nn)?(Nn.left!==void 0&&ft(Nt(Nn.left)),Dn(Nn.top)):Dn(Nn)}}}),(0,k.Z)(function(){if(le){var vn=ye.slice(Hn,Rn+1);le(vn,ye)}},[Hn,Rn,ye]);var Rr=ge(ye,fn,mt,ue),or=xe==null?void 0:xe({start:Hn,end:Rn,virtual:Je,offsetX:bt,offsetY:pr,rtl:Ae,getSize:Rr}),Gr=T(ye,Hn,Rn,Ie,$t,ee,$n),Ir=null;Fe&&(Ir=(0,t.Z)((0,n.Z)({},U?"height":"maxHeight",Fe),Qe),pe&&(Ir.overflowY="hidden",Ie&&(Ir.overflowX="hidden"),jt&&(Ir.pointerEvents="none")));var Pn={};return Ae&&(Pn.dir="rtl"),l.createElement("div",(0,i.Z)({style:(0,t.Z)((0,t.Z)({},N),{},{position:"relative"}),className:oe},Pn,Ze),l.createElement(C.Z,{onResize:qr},l.createElement(he,{className:"".concat(He,"-holder"),style:Ir,ref:Be,onScroll:St,onMouseEnter:cr},l.createElement(S,{prefixCls:He,height:en,offsetX:bt,offsetY:pr,scrollWidth:Ie,onInnerResize:nt,ref:De,innerProps:ve,rtl:Ae,extra:or},Gr))),Je&&en>Fe&&l.createElement(F,{ref:Pr,prefixCls:He,scrollOffset:Le,scrollRange:en,rtl:Ae,onScroll:xt,onStartMove:Xt,onStopMove:Bn,spinSize:Ft,containerSize:ar.height}),Je&&Ie&&l.createElement(F,{ref:Vn,prefixCls:He,scrollOffset:bt,scrollRange:Ie,rtl:Ae,onScroll:xt,onStartMove:Xt,onStopMove:Bn,spinSize:zt,containerSize:ar.width,horizontal:!0}))}var qe=l.forwardRef(Ve);qe.displayName="List";var Mt=qe,wt=Mt},13881:function(M,b,e){"use strict";var i=e(58757),t=e(52090);function o(a){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+a,x=1;xd}return!1}function Z(a,d,x,J,Ee,ze,Ct){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=J,this.attributeNamespace=Ee,this.mustUseProperty=x,this.propertyName=a,this.type=d,this.sanitizeURL=ze,this.removeEmptyString=Ct}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){F[a]=new Z(a,0,!1,a,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var d=a[0];F[d]=new Z(d,1,!1,a[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(a){F[a]=new Z(a,2,!1,a.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){F[a]=new Z(a,2,!1,a,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){F[a]=new Z(a,3,!1,a.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(a){F[a]=new Z(a,3,!0,a,null,!1,!1)}),["capture","download"].forEach(function(a){F[a]=new Z(a,4,!1,a,null,!1,!1)}),["cols","rows","size","span"].forEach(function(a){F[a]=new Z(a,6,!1,a,null,!1,!1)}),["rowSpan","start"].forEach(function(a){F[a]=new Z(a,5,!1,a.toLowerCase(),null,!1,!1)});var R=/[\-:]([a-z])/g;function T(a){return a[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(a){var d=a.replace(R,T);F[d]=new Z(d,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(a){F[a]=new Z(a,1,!1,a.toLowerCase(),null,!1,!1)}),F.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(a){F[a]=new Z(a,1,!1,a.toLowerCase(),null,!0,!0)});function z(a,d,x,J){var Ee=F.hasOwnProperty(d)?F[d]:null;(Ee!==null?Ee.type!==0:J||!(2Zt||Ee[Ct]!==ze[Zt]){var pn=` -`+Ee[Ct].replace(" at new "," at ");return a.displayName&&pn.includes("")&&(pn=pn.replace("",a.displayName)),pn}while(1<=Ct&&0<=Zt);break}}}finally{ge=!1,Error.prepareStackTrace=x}return(a=a?a.displayName||a.name:"")?Ce(a):""}function Re(a){switch(a.tag){case 5:return Ce(a.type);case 16:return Ce("Lazy");case 13:return Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 2:case 15:return a=Me(a.type,!1),a;case 11:return a=Me(a.type.render,!1),a;case 1:return a=Me(a.type,!0),a;default:return""}}function Qe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case $:return"Fragment";case I:return"Portal";case K:return"Profiler";case B:return"StrictMode";case te:return"Suspense";case W:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ie:return(a.displayName||"Context")+".Consumer";case H:return(a._context.displayName||"Context")+".Provider";case ce:var d=a.render;return a=a.displayName,a||(a=d.displayName||d.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case G:return d=a.displayName||null,d!==null?d:Qe(a.type)||"Memo";case O:d=a._payload,a=a._init;try{return Qe(a(d))}catch(x){}}return null}function Ve(a){var d=a.type;switch(a.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=d.render,a=a.displayName||a.name||"",d.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qe(d);case 8:return d===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function qe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Mt(a){var d=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function wt(a){var d=Mt(a)?"checked":"value",x=Object.getOwnPropertyDescriptor(a.constructor.prototype,d),J=""+a[d];if(!a.hasOwnProperty(d)&&typeof x!="undefined"&&typeof x.get=="function"&&typeof x.set=="function"){var Ee=x.get,ze=x.set;return Object.defineProperty(a,d,{configurable:!0,get:function(){return Ee.call(this)},set:function(Ct){J=""+Ct,ze.call(this,Ct)}}),Object.defineProperty(a,d,{enumerable:x.enumerable}),{getValue:function(){return J},setValue:function(Ct){J=""+Ct},stopTracking:function(){a._valueTracker=null,delete a[d]}}}}function mt(a){a._valueTracker||(a._valueTracker=wt(a))}function Nt(a){if(!a)return!1;var d=a._valueTracker;if(!d)return!0;var x=d.getValue(),J="";return a&&(J=Mt(a)?a.checked?"true":"false":a.value),a=J,a!==x?(d.setValue(a),!0):!1}function ke(a){if(a=a||(typeof document!="undefined"?document:void 0),typeof a=="undefined")return null;try{return a.activeElement||a.body}catch(d){return a.body}}function He(a,d){var x=d.checked;return Q({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x!=null?x:a._wrapperState.initialChecked})}function et(a,d){var x=d.defaultValue==null?"":d.defaultValue,J=d.checked!=null?d.checked:d.defaultChecked;x=qe(d.value!=null?d.value:x),a._wrapperState={initialChecked:J,initialValue:x,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function Fe(a,d){d=d.checked,d!=null&&z(a,"checked",d,!1)}function ue(a,d){Fe(a,d);var x=qe(d.value),J=d.type;if(x!=null)J==="number"?(x===0&&a.value===""||a.value!=x)&&(a.value=""+x):a.value!==""+x&&(a.value=""+x);else if(J==="submit"||J==="reset"){a.removeAttribute("value");return}d.hasOwnProperty("value")?U(a,d.type,x):d.hasOwnProperty("defaultValue")&&U(a,d.type,qe(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(a.defaultChecked=!!d.defaultChecked)}function V(a,d,x){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var J=d.type;if(!(J!=="submit"&&J!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+a._wrapperState.initialValue,x||d===a.value||(a.value=d),a.defaultValue=d}x=a.name,x!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,x!==""&&(a.name=x)}function U(a,d,x){(d!=="number"||ke(a.ownerDocument)!==a)&&(x==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+x&&(a.defaultValue=""+x))}var N=Array.isArray;function D(a,d,x,J){if(a=a.options,d){d={};for(var Ee=0;Ee"+d.valueOf().toString()+"",d=he.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;d.firstChild;)a.appendChild(d.firstChild)}});function de(a,d){if(d){var x=a.firstChild;if(x&&x===a.lastChild&&x.nodeType===3){x.nodeValue=d;return}}a.textContent=d}var le={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];Object.keys(le).forEach(function(a){ve.forEach(function(d){d=d+a.charAt(0).toUpperCase()+a.substring(1),le[d]=le[a]})});function xe(a,d,x){return d==null||typeof d=="boolean"||d===""?"":x||typeof d!="number"||d===0||le.hasOwnProperty(a)&&le[a]?(""+d).trim():d+"px"}function Ze(a,d){a=a.style;for(var x in d)if(d.hasOwnProperty(x)){var J=x.indexOf("--")===0,Ee=xe(x,d[x],J);x==="float"&&(x="cssFloat"),J?a.setProperty(x,Ee):a[x]=Ee}}var pe=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Je(a,d){if(d){if(pe[a]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(o(137,a));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(o(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(o(61))}if(d.style!=null&&typeof d.style!="object")throw Error(o(62))}}function Ae(a,d){if(a.indexOf("-")===-1)return typeof d.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oe=null;function ye(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Be=null,De=null,Pe=null;function we(a){if(a=Go(a)){if(typeof Be!="function")throw Error(o(280));var d=a.stateNode;d&&(d=eu(d),Be(a.stateNode,a.type,d))}}function Le(a){De?Pe?Pe.push(a):Pe=[a]:De=a}function Ye(){if(De){var a=De,d=Pe;if(Pe=De=null,we(a),d)for(a=0;a>>=0,a===0?32:31-(zt(a)/Ft|0)|0}var nn=64,kt=4194304;function hn(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function dn(a,d){var x=a.pendingLanes;if(x===0)return 0;var J=0,Ee=a.suspendedLanes,ze=a.pingedLanes,Ct=x&268435455;if(Ct!==0){var Zt=Ct&~Ee;Zt!==0?J=hn(Zt):(ze&=Ct,ze!==0&&(J=hn(ze)))}else Ct=x&~Ee,Ct!==0?J=hn(Ct):ze!==0&&(J=hn(ze));if(J===0)return 0;if(d!==0&&d!==J&&!(d&Ee)&&(Ee=J&-J,ze=d&-d,Ee>=ze||Ee===16&&(ze&4194240)!==0))return d;if(J&4&&(J|=x&16),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=J;0x;x++)d.push(a);return d}function St(a,d,x){a.pendingLanes|=d,d!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,d=31-Kn(d),a[d]=x}function Lt(a,d){var x=a.pendingLanes&~d;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=d,a.mutableReadLanes&=d,a.entangledLanes&=d,d=a.entanglements;var J=a.eventTimes;for(a=a.expirationTimes;0=Oo),go=String.fromCharCode(32),Oi=!1;function Li(a,d){switch(a){case"keyup":return qr.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ii(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Di=!1;function $i(a,d){switch(a){case"compositionend":return ii(d);case"keypress":return d.which!==32?null:(Oi=!0,go);case"textInput":return a=d.data,a===go&&Oi?null:a;default:return null}}function wi(a,d){if(Di)return a==="compositionend"||!Na&&Li(a,d)?(a=Lo(),Fo=qa=Ua=null,Di=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:x,offset:d-a};a=J}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=ca(x)}}function da(a,d){return a&&d?a===d?!0:a&&a.nodeType===3?!1:d&&d.nodeType===3?da(a,d.parentNode):"contains"in a?a.contains(d):a.compareDocumentPosition?!!(a.compareDocumentPosition(d)&16):!1:!1}function _o(){for(var a=window,d=ke();d instanceof a.HTMLIFrameElement;){try{var x=typeof d.contentWindow.location.href=="string"}catch(J){x=!1}if(x)a=d.contentWindow;else break;d=ke(a.document)}return d}function li(a){var d=a&&a.nodeName&&a.nodeName.toLowerCase();return d&&(d==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||d==="textarea"||a.contentEditable==="true")}function Xo(a){var d=_o(),x=a.focusedElem,J=a.selectionRange;if(d!==x&&x&&x.ownerDocument&&da(x.ownerDocument.documentElement,x)){if(J!==null&&li(x)){if(d=J.start,a=J.end,a===void 0&&(a=d),"selectionStart"in x)x.selectionStart=d,x.selectionEnd=Math.min(a,x.value.length);else if(a=(d=x.ownerDocument||document)&&d.defaultView||window,a.getSelection){a=a.getSelection();var Ee=x.textContent.length,ze=Math.min(J.start,Ee);J=J.end===void 0?ze:Math.min(J.end,Ee),!a.extend&&ze>J&&(Ee=J,J=ze,ze=Ee),Ee=ha(x,ze);var Ct=ha(x,J);Ee&&Ct&&(a.rangeCount!==1||a.anchorNode!==Ee.node||a.anchorOffset!==Ee.offset||a.focusNode!==Ct.node||a.focusOffset!==Ct.offset)&&(d=d.createRange(),d.setStart(Ee.node,Ee.offset),a.removeAllRanges(),ze>J?(a.addRange(d),a.extend(Ct.node,Ct.offset)):(d.setEnd(Ct.node,Ct.offset),a.addRange(d)))}}for(d=[],a=x;a=a.parentNode;)a.nodeType===1&&d.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,bs=null,ss=null,As=null,us=!1;function ri(a,d,x){var J=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;us||bs==null||bs!==ke(J)||(J=bs,"selectionStart"in J&&li(J)?J={start:J.selectionStart,end:J.selectionEnd}:(J=(J.ownerDocument&&J.ownerDocument.defaultView||window).getSelection(),J={anchorNode:J.anchorNode,anchorOffset:J.anchorOffset,focusNode:J.focusNode,focusOffset:J.focusOffset}),As&&Cr(As,J)||(As=J,J=wl(ss,"onSelect"),0ys||(a.current=tu[ys],tu[ys]=null,ys--)}function Ri(a,d){ys++,tu[ys]=a.current,a.current=d}var tt={},$e=gl(tt),Ge=gl(!1),cn=tt;function qt(a,d){var x=a.type.contextTypes;if(!x)return tt;var J=a.stateNode;if(J&&J.__reactInternalMemoizedUnmaskedChildContext===d)return J.__reactInternalMemoizedMaskedChildContext;var Ee={},ze;for(ze in x)Ee[ze]=d[ze];return J&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=Ee),Ee}function Fn(a){return a=a.childContextTypes,a!=null}function tr(){Ii(Ge),Ii($e)}function Rn(a,d,x){if($e.current!==tt)throw Error(o(168));Ri($e,d),Ri(Ge,x)}function nr(a,d,x){var J=a.stateNode;if(d=d.childContextTypes,typeof J.getChildContext!="function")return x;J=J.getChildContext();for(var Ee in J)if(!(Ee in d))throw Error(o(108,Ve(a)||"Unknown",Ee));return Q({},x,J)}function Ur(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||tt,cn=$e.current,Ri($e,a),Ri(Ge,Ge.current),!0}function lr(a,d,x){var J=a.stateNode;if(!J)throw Error(o(169));x?(a=nr(a,d,cn),J.__reactInternalMemoizedMergedChildContext=a,Ii(Ge),Ii($e),Ri($e,a)):Ii(Ge),Ri(Ge,x)}var Vn=null,Un=!1,wa=!1;function ya(a){Vn===null?Vn=[a]:Vn.push(a)}function Qt(a){Un=!0,ya(a)}function Ne(){if(!wa&&Vn!==null){wa=!0;var a=0,d=Wt;try{var x=Vn;for(Wt=1;a>=Ct,Ee-=Ct,ui=1<<32-Kn(d)+Ee|x<ei?(al=$o,$o=null):al=$o.sibling;var Yi=Pr(Wn,$o,Jn[ei],Ea);if(Yi===null){$o===null&&($o=al);break}a&&$o&&Yi.alternate===null&&d(Wn,$o),Cn=ze(Yi,Cn,ei),Wo===null?So=Yi:Wo.sibling=Yi,Wo=Yi,$o=al}if(ei===Jn.length)return x(Wn,$o),Xa&&hi(Wn,ei),So;if($o===null){for(;eiei?(al=$o,$o=null):al=$o.sibling;var Xu=Pr(Wn,$o,Yi.value,Ea);if(Xu===null){$o===null&&($o=al);break}a&&$o&&Xu.alternate===null&&d(Wn,$o),Cn=ze(Xu,Cn,ei),Wo===null?So=Xu:Wo.sibling=Xu,Wo=Xu,$o=al}if(Yi.done)return x(Wn,$o),Xa&&hi(Wn,ei),So;if($o===null){for(;!Yi.done;ei++,Yi=Jn.next())Yi=Ga(Wn,Yi.value,Ea),Yi!==null&&(Cn=ze(Yi,Cn,ei),Wo===null?So=Yi:Wo.sibling=Yi,Wo=Yi);return Xa&&hi(Wn,ei),So}for($o=J(Wn,$o);!Yi.done;ei++,Yi=Jn.next())Yi=lo($o,Wn,ei,Yi.value,Ea),Yi!==null&&(a&&Yi.alternate!==null&&$o.delete(Yi.key===null?ei:Yi.key),Cn=ze(Yi,Cn,ei),Wo===null?So=Yi:Wo.sibling=Yi,Wo=Yi);return a&&$o.forEach(function(ff){return d(Wn,ff)}),Xa&&hi(Wn,ei),So}function Ps(Wn,Cn,Jn,Ea){if(typeof Jn=="object"&&Jn!==null&&Jn.type===$&&Jn.key===null&&(Jn=Jn.props.children),typeof Jn=="object"&&Jn!==null){switch(Jn.$$typeof){case L:e:{for(var So=Jn.key,Wo=Cn;Wo!==null;){if(Wo.key===So){if(So=Jn.type,So===$){if(Wo.tag===7){x(Wn,Wo.sibling),Cn=Ee(Wo,Jn.props.children),Cn.return=Wn,Wn=Cn;break e}}else if(Wo.elementType===So||typeof So=="object"&&So!==null&&So.$$typeof===O&&ae(So)===Wo.type){x(Wn,Wo.sibling),Cn=Ee(Wo,Jn.props),Cn.ref=Ko(Wn,Wo,Jn),Cn.return=Wn,Wn=Cn;break e}x(Wn,Wo);break}else d(Wn,Wo);Wo=Wo.sibling}Jn.type===$?(Cn=fc(Jn.props.children,Wn.mode,Ea,Jn.key),Cn.return=Wn,Wn=Cn):(Ea=nd(Jn.type,Jn.key,Jn.props,null,Wn.mode,Ea),Ea.ref=Ko(Wn,Cn,Jn),Ea.return=Wn,Wn=Ea)}return Ct(Wn);case I:e:{for(Wo=Jn.key;Cn!==null;){if(Cn.key===Wo)if(Cn.tag===4&&Cn.stateNode.containerInfo===Jn.containerInfo&&Cn.stateNode.implementation===Jn.implementation){x(Wn,Cn.sibling),Cn=Ee(Cn,Jn.children||[]),Cn.return=Wn,Wn=Cn;break e}else{x(Wn,Cn);break}else d(Wn,Cn);Cn=Cn.sibling}Cn=Id(Jn,Wn.mode,Ea),Cn.return=Wn,Wn=Cn}return Ct(Wn);case O:return Wo=Jn._init,Ps(Wn,Cn,Wo(Jn._payload),Ea)}if(N(Jn))return Za(Wn,Cn,Jn,Ea);if(P(Jn))return vi(Wn,Cn,Jn,Ea);j(Wn,Jn)}return typeof Jn=="string"&&Jn!==""||typeof Jn=="number"?(Jn=""+Jn,Cn!==null&&Cn.tag===6?(x(Wn,Cn.sibling),Cn=Ee(Cn,Jn),Cn.return=Wn,Wn=Cn):(x(Wn,Cn),Cn=xd(Jn,Wn.mode,Ea),Cn.return=Wn,Wn=Cn),Ct(Wn)):x(Wn,Cn)}return Ps}var Ke=je(!0),ht=je(!1),en={},ir=gl(en),ao=gl(en),po=gl(en);function fi(a){if(a===en)throw Error(o(174));return a}function Vi(a,d){switch(Ri(po,d),Ri(ao,a),Ri(ir,en),a=d.nodeType,a){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:Se(null,"");break;default:a=a===8?d.parentNode:d,d=a.namespaceURI||null,a=a.tagName,d=Se(d,a)}Ii(ir),Ri(ir,d)}function Cs(){Ii(ir),Ii(ao),Ii(po)}function zs(a){fi(po.current);var d=fi(ir.current),x=Se(d,a.type);d!==x&&(Ri(ao,a),Ri(ir,x))}function Pl(a){ao.current===a&&(Ii(ir),Ii(ao))}var Ui=gl(0);function Yl(a){for(var d=a;d!==null;){if(d.tag===13){var x=d.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if(d.flags&128)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var Cu=[];function vu(){for(var a=0;ax?x:4,a(!0);var J=Iu.transition;Iu.transition={};try{a(!1),d()}finally{Wt=x,Iu.transition=J}}function Ts(){return nl().memoizedState}function xl(a,d,x){var J=$u(a);x={lane:J,action:x,hasEagerState:!1,eagerState:null,next:null},ml(a)?Rl(d,x):(Il(a,d,x),x=Bl(),a=su(a,J,x),a!==null&&Tc(a,d,J))}function xs(a,d,x){var J=$u(a),Ee={lane:J,action:x,hasEagerState:!1,eagerState:null,next:null};if(ml(a))Rl(d,Ee);else{Il(a,d,Ee);var ze=a.alternate;if(a.lanes===0&&(ze===null||ze.lanes===0)&&(ze=d.lastRenderedReducer,ze!==null))try{var Ct=d.lastRenderedState,Zt=ze(Ct,x);if(Ee.hasEagerState=!0,Ee.eagerState=Zt,ur(Zt,Ct))return}catch(pn){}finally{}x=Bl(),a=su(a,J,x),a!==null&&Tc(a,d,J)}}function ml(a){var d=a.alternate;return a===es||d!==null&&d===es}function Rl(a,d){Gl=Nu=!0;var x=a.pending;x===null?d.next=d:(d.next=x.next,x.next=d),a.pending=d}function Il(a,d,x){Ld(a)?(a=d.interleaved,a===null?(x.next=x,Ia===null?Ia=[d]:Ia.push(d)):(x.next=a.next,a.next=x),d.interleaved=x):(a=d.pending,a===null?x.next=x:(x.next=a.next,a.next=x),d.pending=x)}function Tc(a,d,x){if(x&4194240){var J=d.lanes;J&=a.pendingLanes,x|=J,d.lanes=x,_t(a,x)}}var Gu={readContext:ua,useCallback:Bs,useContext:Bs,useEffect:Bs,useImperativeHandle:Bs,useInsertionEffect:Bs,useLayoutEffect:Bs,useMemo:Bs,useReducer:Bs,useRef:Bs,useState:Bs,useDebugValue:Bs,useDeferredValue:Bs,useTransition:Bs,useMutableSource:Bs,useSyncExternalStore:Bs,useId:Bs,unstable_isNewReconciler:!1},q={readContext:ua,useCallback:function(a,d){return tl().memoizedState=[a,d===void 0?null:d],a},useContext:ua,useEffect:tc,useImperativeHandle:function(a,d,x){return x=x!=null?x.concat([a]):null,kl(4194308,4,yc.bind(null,d,a),x)},useLayoutEffect:function(a,d){return kl(4194308,4,a,d)},useInsertionEffect:function(a,d){return kl(4,2,a,d)},useMemo:function(a,d){var x=tl();return d=d===void 0?null:d,a=a(),x.memoizedState=[a,d],a},useReducer:function(a,d,x){var J=tl();return d=x!==void 0?x(d):d,J.memoizedState=J.baseState=d,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:d},J.queue=a,a=a.dispatch=xl.bind(null,es,a),[J.memoizedState,a]},useRef:function(a){var d=tl();return a={current:a},d.memoizedState=a},useState:_u,useDebugValue:Yu,useDeferredValue:function(a){return tl().memoizedState=a},useTransition:function(){var a=_u(!1),d=a[0];return a=wu.bind(null,a[1]),tl().memoizedState=a,[d,a]},useMutableSource:function(){},useSyncExternalStore:function(a,d,x){var J=es,Ee=tl();if(Xa){if(x===void 0)throw Error(o(407));x=x()}else{if(x=d(),Ys===null)throw Error(o(349));el&30||Ru(J,d,x)}Ee.memoizedState=x;var ze={value:x,getSnapshot:d};return Ee.queue=ze,tc(ku.bind(null,J,ze,a),[a]),J.flags|=2048,gu(9,ec.bind(null,J,ze,x,d),void 0,null),x},useId:function(){var a=tl(),d=Ys.identifierPrefix;if(Xa){var x=Ya,J=ui;x=(J&~(1<<32-Kn(J)-1)).toString(32)+x,d=":"+d+"R"+x,x=Au++,0")&&(pn=pn.replace("",a.displayName)),pn}while(1<=Ct&&0<=Zt);break}}}finally{ge=!1,Error.prepareStackTrace=x}return(a=a?a.displayName||a.name:"")?Ce(a):""}function Ne(a){switch(a.tag){case 5:return Ce(a.type);case 16:return Ce("Lazy");case 13:return Ce("Suspense");case 19:return Ce("SuspenseList");case 0:case 2:case 15:return a=Me(a.type,!1),a;case 11:return a=Me(a.type.render,!1),a;case 1:return a=Me(a.type,!0),a;default:return""}}function Qe(a){if(a==null)return null;if(typeof a=="function")return a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case $:return"Fragment";case I:return"Portal";case K:return"Profiler";case B:return"StrictMode";case te:return"Suspense";case W:return"SuspenseList"}if(typeof a=="object")switch(a.$$typeof){case ie:return(a.displayName||"Context")+".Consumer";case H:return(a._context.displayName||"Context")+".Provider";case ce:var d=a.render;return a=a.displayName,a||(a=d.displayName||d.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case G:return d=a.displayName||null,d!==null?d:Qe(a.type)||"Memo";case O:d=a._payload,a=a._init;try{return Qe(a(d))}catch(x){}}return null}function Ve(a){var d=a.type;switch(a.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return a=d.render,a=a.displayName||a.name||"",d.displayName||(a!==""?"ForwardRef("+a+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qe(d);case 8:return d===B?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function qe(a){switch(typeof a){case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Mt(a){var d=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function wt(a){var d=Mt(a)?"checked":"value",x=Object.getOwnPropertyDescriptor(a.constructor.prototype,d),J=""+a[d];if(!a.hasOwnProperty(d)&&typeof x!="undefined"&&typeof x.get=="function"&&typeof x.set=="function"){var Ee=x.get,ze=x.set;return Object.defineProperty(a,d,{configurable:!0,get:function(){return Ee.call(this)},set:function(Ct){J=""+Ct,ze.call(this,Ct)}}),Object.defineProperty(a,d,{enumerable:x.enumerable}),{getValue:function(){return J},setValue:function(Ct){J=""+Ct},stopTracking:function(){a._valueTracker=null,delete a[d]}}}}function gt(a){a._valueTracker||(a._valueTracker=wt(a))}function Lt(a){if(!a)return!1;var d=a._valueTracker;if(!d)return!0;var x=d.getValue(),J="";return a&&(J=Mt(a)?a.checked?"true":"false":a.value),a=J,a!==x?(d.setValue(a),!0):!1}function ke(a){if(a=a||(typeof document!="undefined"?document:void 0),typeof a=="undefined")return null;try{return a.activeElement||a.body}catch(d){return a.body}}function He(a,d){var x=d.checked;return Q({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:x!=null?x:a._wrapperState.initialChecked})}function et(a,d){var x=d.defaultValue==null?"":d.defaultValue,J=d.checked!=null?d.checked:d.defaultChecked;x=qe(d.value!=null?d.value:x),a._wrapperState={initialChecked:J,initialValue:x,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function Fe(a,d){d=d.checked,d!=null&&z(a,"checked",d,!1)}function ue(a,d){Fe(a,d);var x=qe(d.value),J=d.type;if(x!=null)J==="number"?(x===0&&a.value===""||a.value!=x)&&(a.value=""+x):a.value!==""+x&&(a.value=""+x);else if(J==="submit"||J==="reset"){a.removeAttribute("value");return}d.hasOwnProperty("value")?U(a,d.type,x):d.hasOwnProperty("defaultValue")&&U(a,d.type,qe(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(a.defaultChecked=!!d.defaultChecked)}function V(a,d,x){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var J=d.type;if(!(J!=="submit"&&J!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+a._wrapperState.initialValue,x||d===a.value||(a.value=d),a.defaultValue=d}x=a.name,x!==""&&(a.name=""),a.defaultChecked=!!a._wrapperState.initialChecked,x!==""&&(a.name=x)}function U(a,d,x){(d!=="number"||ke(a.ownerDocument)!==a)&&(x==null?a.defaultValue=""+a._wrapperState.initialValue:a.defaultValue!==""+x&&(a.defaultValue=""+x))}var N=Array.isArray;function D(a,d,x,J){if(a=a.options,d){d={};for(var Ee=0;Ee"+d.valueOf().toString()+"",d=he.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;d.firstChild;)a.appendChild(d.firstChild)}});function de(a,d){if(d){var x=a.firstChild;if(x&&x===a.lastChild&&x.nodeType===3){x.nodeValue=d;return}}a.textContent=d}var le={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];Object.keys(le).forEach(function(a){ve.forEach(function(d){d=d+a.charAt(0).toUpperCase()+a.substring(1),le[d]=le[a]})});function xe(a,d,x){return d==null||typeof d=="boolean"||d===""?"":x||typeof d!="number"||d===0||le.hasOwnProperty(a)&&le[a]?(""+d).trim():d+"px"}function Ze(a,d){a=a.style;for(var x in d)if(d.hasOwnProperty(x)){var J=x.indexOf("--")===0,Ee=xe(x,d[x],J);x==="float"&&(x="cssFloat"),J?a.setProperty(x,Ee):a[x]=Ee}}var pe=Q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Je(a,d){if(d){if(pe[a]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(o(137,a));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(o(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(o(61))}if(d.style!=null&&typeof d.style!="object")throw Error(o(62))}}function Ae(a,d){if(a.indexOf("-")===-1)return typeof d.is=="string";switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var oe=null;function ye(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Be=null,De=null,Pe=null;function we(a){if(a=Vo(a)){if(typeof Be!="function")throw Error(o(280));var d=a.stateNode;d&&(d=eu(d),Be(a.stateNode,a.type,d))}}function Le(a){De?Pe?Pe.push(a):Pe=[a]:De=a}function Ye(){if(De){var a=De,d=Pe;if(Pe=De=null,we(a),d)for(a=0;a>>=0,a===0?32:31-(zt(a)/Ft|0)|0}var tn=64,kt=4194304;function hn(a){switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return a&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return a}}function dn(a,d){var x=a.pendingLanes;if(x===0)return 0;var J=0,Ee=a.suspendedLanes,ze=a.pingedLanes,Ct=x&268435455;if(Ct!==0){var Zt=Ct&~Ee;Zt!==0?J=hn(Zt):(ze&=Ct,ze!==0&&(J=hn(ze)))}else Ct=x&~Ee,Ct!==0?J=hn(Ct):ze!==0&&(J=hn(ze));if(J===0)return 0;if(d!==0&&d!==J&&!(d&Ee)&&(Ee=J&-J,ze=d&-d,Ee>=ze||Ee===16&&(ze&4194240)!==0))return d;if(J&4&&(J|=x&16),d=a.entangledLanes,d!==0)for(a=a.entanglements,d&=J;0x;x++)d.push(a);return d}function St(a,d,x){a.pendingLanes|=d,d!==536870912&&(a.suspendedLanes=0,a.pingedLanes=0),a=a.eventTimes,d=31-Vn(d),a[d]=x}function Nt(a,d){var x=a.pendingLanes&~d;a.pendingLanes=d,a.suspendedLanes=0,a.pingedLanes=0,a.expiredLanes&=d,a.mutableReadLanes&=d,a.entangledLanes&=d,d=a.entanglements;var J=a.eventTimes;for(a=a.expirationTimes;0=Ao),go=String.fromCharCode(32),Oi=!1;function Li(a,d){switch(a){case"keyup":return Jr.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function oi(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Di=!1;function Fi(a,d){switch(a){case"compositionend":return oi(d);case"keypress":return d.which!==32?null:(Oi=!0,go);case"textInput":return a=d.data,a===go&&Oi?null:a;default:return null}}function wi(a,d){if(Di)return a==="compositionend"||!Ra&&Li(a,d)?(a=jo(),Fo=eo=Ua=null,Di=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:x,offset:d-a};a=J}e:{for(;x;){if(x.nextSibling){x=x.nextSibling;break e}x=x.parentNode}x=void 0}x=ca(x)}}function fa(a,d){return a&&d?a===d?!0:a&&a.nodeType===3?!1:d&&d.nodeType===3?fa(a,d.parentNode):"contains"in a?a.contains(d):a.compareDocumentPosition?!!(a.compareDocumentPosition(d)&16):!1:!1}function Ho(){for(var a=window,d=ke();d instanceof a.HTMLIFrameElement;){try{var x=typeof d.contentWindow.location.href=="string"}catch(J){x=!1}if(x)a=d.contentWindow;else break;d=ke(a.document)}return d}function si(a){var d=a&&a.nodeName&&a.nodeName.toLowerCase();return d&&(d==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||d==="textarea"||a.contentEditable==="true")}function Jo(a){var d=Ho(),x=a.focusedElem,J=a.selectionRange;if(d!==x&&x&&x.ownerDocument&&fa(x.ownerDocument.documentElement,x)){if(J!==null&&si(x)){if(d=J.start,a=J.end,a===void 0&&(a=d),"selectionStart"in x)x.selectionStart=d,x.selectionEnd=Math.min(a,x.value.length);else if(a=(d=x.ownerDocument||document)&&d.defaultView||window,a.getSelection){a=a.getSelection();var Ee=x.textContent.length,ze=Math.min(J.start,Ee);J=J.end===void 0?ze:Math.min(J.end,Ee),!a.extend&&ze>J&&(Ee=J,J=ze,ze=Ee),Ee=pa(x,ze);var Ct=pa(x,J);Ee&&Ct&&(a.rangeCount!==1||a.anchorNode!==Ee.node||a.anchorOffset!==Ee.offset||a.focusNode!==Ct.node||a.focusOffset!==Ct.offset)&&(d=d.createRange(),d.setStart(Ee.node,Ee.offset),a.removeAllRanges(),ze>J?(a.addRange(d),a.extend(Ct.node,Ct.offset)):(d.setEnd(Ct.node,Ct.offset),a.addRange(d)))}}for(d=[],a=x;a=a.parentNode;)a.nodeType===1&&d.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x=document.documentMode,bs=null,ss=null,As=null,us=!1;function ri(a,d,x){var J=x.window===x?x.document:x.nodeType===9?x:x.ownerDocument;us||bs==null||bs!==ke(J)||(J=bs,"selectionStart"in J&&si(J)?J={start:J.selectionStart,end:J.selectionEnd}:(J=(J.ownerDocument&&J.ownerDocument.defaultView||window).getSelection(),J={anchorNode:J.anchorNode,anchorOffset:J.anchorOffset,focusNode:J.focusNode,focusOffset:J.focusOffset}),As&&Cr(As,J)||(As=J,J=wl(ss,"onSelect"),0ys||(a.current=tu[ys],tu[ys]=null,ys--)}function Ri(a,d){ys++,tu[ys]=a.current,a.current=d}var tt={},$e=gl(tt),Ke=gl(!1),cn=tt;function nn(a,d){var x=a.type.contextTypes;if(!x)return tt;var J=a.stateNode;if(J&&J.__reactInternalMemoizedUnmaskedChildContext===d)return J.__reactInternalMemoizedMaskedChildContext;var Ee={},ze;for(ze in x)Ee[ze]=d[ze];return J&&(a=a.stateNode,a.__reactInternalMemoizedUnmaskedChildContext=d,a.__reactInternalMemoizedMaskedChildContext=Ee),Ee}function jn(a){return a=a.childContextTypes,a!=null}function lr(){Ii(Ke),Ii($e)}function zn(a,d,x){if($e.current!==tt)throw Error(o(168));Ri($e,d),Ri(Ke,x)}function Yn(a,d,x){var J=a.stateNode;if(d=d.childContextTypes,typeof J.getChildContext!="function")return x;J=J.getChildContext();for(var Ee in J)if(!(Ee in d))throw Error(o(108,Ve(a)||"Unknown",Ee));return Q({},x,J)}function Zr(a){return a=(a=a.stateNode)&&a.__reactInternalMemoizedMergedChildContext||tt,cn=$e.current,Ri($e,a),Ri(Ke,Ke.current),!0}function ir(a,d,x){var J=a.stateNode;if(!J)throw Error(o(169));x?(a=Yn(a,d,cn),J.__reactInternalMemoizedMergedChildContext=a,Ii(Ke),Ii($e),Ri($e,a)):Ii(Ke),Ri(Ke,x)}var Qn=null,Un=!1,Ta=!1;function ha(a){Qn===null?Qn=[a]:Qn.push(a)}function Qt(a){Un=!0,ha(a)}function Re(){if(!Ta&&Qn!==null){Ta=!0;var a=0,d=Wt;try{var x=Qn;for(Wt=1;a>=Ct,Ee-=Ct,li=1<<32-Vn(d)+Ee|x<ei?(al=$o,$o=null):al=$o.sibling;var Gi=jr(Wn,$o,qn[ei],Ca);if(Gi===null){$o===null&&($o=al);break}a&&$o&&Gi.alternate===null&&d(Wn,$o),En=ze(Gi,En,ei),_o===null?Mo=Gi:_o.sibling=Gi,_o=Gi,$o=al}if(ei===qn.length)return x(Wn,$o),Qa&&pi(Wn,ei),Mo;if($o===null){for(;eiei?(al=$o,$o=null):al=$o.sibling;var Xu=jr(Wn,$o,Gi.value,Ca);if(Xu===null){$o===null&&($o=al);break}a&&$o&&Xu.alternate===null&&d(Wn,$o),En=ze(Xu,En,ei),_o===null?Mo=Xu:_o.sibling=Xu,_o=Xu,$o=al}if(Gi.done)return x(Wn,$o),Qa&&pi(Wn,ei),Mo;if($o===null){for(;!Gi.done;ei++,Gi=qn.next())Gi=Ya(Wn,Gi.value,Ca),Gi!==null&&(En=ze(Gi,En,ei),_o===null?Mo=Gi:_o.sibling=Gi,_o=Gi);return Qa&&pi(Wn,ei),Mo}for($o=J(Wn,$o);!Gi.done;ei++,Gi=qn.next())Gi=uo($o,Wn,ei,Gi.value,Ca),Gi!==null&&(a&&Gi.alternate!==null&&$o.delete(Gi.key===null?ei:Gi.key),En=ze(Gi,En,ei),_o===null?Mo=Gi:_o.sibling=Gi,_o=Gi);return a&&$o.forEach(function(ff){return d(Wn,ff)}),Qa&&pi(Wn,ei),Mo}function Ps(Wn,En,qn,Ca){if(typeof qn=="object"&&qn!==null&&qn.type===$&&qn.key===null&&(qn=qn.props.children),typeof qn=="object"&&qn!==null){switch(qn.$$typeof){case L:e:{for(var Mo=qn.key,_o=En;_o!==null;){if(_o.key===Mo){if(Mo=qn.type,Mo===$){if(_o.tag===7){x(Wn,_o.sibling),En=Ee(_o,qn.props.children),En.return=Wn,Wn=En;break e}}else if(_o.elementType===Mo||typeof Mo=="object"&&Mo!==null&&Mo.$$typeof===O&&ae(Mo)===_o.type){x(Wn,_o.sibling),En=Ee(_o,qn.props),En.ref=Go(Wn,_o,qn),En.return=Wn,Wn=En;break e}x(Wn,_o);break}else d(Wn,_o);_o=_o.sibling}qn.type===$?(En=fc(qn.props.children,Wn.mode,Ca,qn.key),En.return=Wn,Wn=En):(Ca=nd(qn.type,qn.key,qn.props,null,Wn.mode,Ca),Ca.ref=Go(Wn,En,qn),Ca.return=Wn,Wn=Ca)}return Ct(Wn);case I:e:{for(_o=qn.key;En!==null;){if(En.key===_o)if(En.tag===4&&En.stateNode.containerInfo===qn.containerInfo&&En.stateNode.implementation===qn.implementation){x(Wn,En.sibling),En=Ee(En,qn.children||[]),En.return=Wn,Wn=En;break e}else{x(Wn,En);break}else d(Wn,En);En=En.sibling}En=Id(qn,Wn.mode,Ca),En.return=Wn,Wn=En}return Ct(Wn);case O:return _o=qn._init,Ps(Wn,En,_o(qn._payload),Ca)}if(N(qn))return Za(Wn,En,qn,Ca);if(P(qn))return gi(Wn,En,qn,Ca);j(Wn,qn)}return typeof qn=="string"&&qn!==""||typeof qn=="number"?(qn=""+qn,En!==null&&En.tag===6?(x(Wn,En.sibling),En=Ee(En,qn),En.return=Wn,Wn=En):(x(Wn,En),En=xd(qn,Wn.mode,Ca),En.return=Wn,Wn=En),Ct(Wn)):x(Wn,En)}return Ps}var Ge=je(!0),ht=je(!1),qt={},er=gl(qt),to=gl(qt),zo=gl(qt);function Uo(a){if(a===qt)throw Error(o(174));return a}function Hi(a,d){switch(Ri(zo,d),Ri(to,a),Ri(er,qt),a=d.nodeType,a){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:Se(null,"");break;default:a=a===8?d.parentNode:d,d=a.namespaceURI||null,a=a.tagName,d=Se(d,a)}Ii(er),Ri(er,d)}function Cs(){Ii(er),Ii(to),Ii(zo)}function zs(a){Uo(zo.current);var d=Uo(er.current),x=Se(d,a.type);d!==x&&(Ri(to,a),Ri(er,x))}function Yl(a){to.current===a&&(Ii(er),Ii(to))}var zi=gl(0);function Pl(a){for(var d=a;d!==null;){if(d.tag===13){var x=d.memoizedState;if(x!==null&&(x=x.dehydrated,x===null||x.data==="$?"||x.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if(d.flags&128)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break;for(;d.sibling===null;){if(d.return===null||d.return===a)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var Cu=[];function vu(){for(var a=0;ax?x:4,a(!0);var J=Iu.transition;Iu.transition={};try{a(!1),d()}finally{Wt=x,Iu.transition=J}}function Ts(){return nl().memoizedState}function xl(a,d,x){var J=$u(a);x={lane:J,action:x,hasEagerState:!1,eagerState:null,next:null},ml(a)?Rl(d,x):(Il(a,d,x),x=Bl(),a=su(a,J,x),a!==null&&Tc(a,d,J))}function xs(a,d,x){var J=$u(a),Ee={lane:J,action:x,hasEagerState:!1,eagerState:null,next:null};if(ml(a))Rl(d,Ee);else{Il(a,d,Ee);var ze=a.alternate;if(a.lanes===0&&(ze===null||ze.lanes===0)&&(ze=d.lastRenderedReducer,ze!==null))try{var Ct=d.lastRenderedState,Zt=ze(Ct,x);if(Ee.hasEagerState=!0,Ee.eagerState=Zt,ur(Zt,Ct))return}catch(pn){}finally{}x=Bl(),a=su(a,J,x),a!==null&&Tc(a,d,J)}}function ml(a){var d=a.alternate;return a===es||d!==null&&d===es}function Rl(a,d){Gl=Nu=!0;var x=a.pending;x===null?d.next=d:(d.next=x.next,x.next=d),a.pending=d}function Il(a,d,x){Ld(a)?(a=d.interleaved,a===null?(x.next=x,Aa===null?Aa=[d]:Aa.push(d)):(x.next=a.next,a.next=x),d.interleaved=x):(a=d.pending,a===null?x.next=x:(x.next=a.next,a.next=x),d.pending=x)}function Tc(a,d,x){if(x&4194240){var J=d.lanes;J&=a.pendingLanes,x|=J,d.lanes=x,_t(a,x)}}var Gu={readContext:ua,useCallback:Bs,useContext:Bs,useEffect:Bs,useImperativeHandle:Bs,useInsertionEffect:Bs,useLayoutEffect:Bs,useMemo:Bs,useReducer:Bs,useRef:Bs,useState:Bs,useDebugValue:Bs,useDeferredValue:Bs,useTransition:Bs,useMutableSource:Bs,useSyncExternalStore:Bs,useId:Bs,unstable_isNewReconciler:!1},q={readContext:ua,useCallback:function(a,d){return tl().memoizedState=[a,d===void 0?null:d],a},useContext:ua,useEffect:tc,useImperativeHandle:function(a,d,x){return x=x!=null?x.concat([a]):null,kl(4194308,4,yc.bind(null,d,a),x)},useLayoutEffect:function(a,d){return kl(4194308,4,a,d)},useInsertionEffect:function(a,d){return kl(4,2,a,d)},useMemo:function(a,d){var x=tl();return d=d===void 0?null:d,a=a(),x.memoizedState=[a,d],a},useReducer:function(a,d,x){var J=tl();return d=x!==void 0?x(d):d,J.memoizedState=J.baseState=d,a={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:d},J.queue=a,a=a.dispatch=xl.bind(null,es,a),[J.memoizedState,a]},useRef:function(a){var d=tl();return a={current:a},d.memoizedState=a},useState:_u,useDebugValue:Yu,useDeferredValue:function(a){return tl().memoizedState=a},useTransition:function(){var a=_u(!1),d=a[0];return a=wu.bind(null,a[1]),tl().memoizedState=a,[d,a]},useMutableSource:function(){},useSyncExternalStore:function(a,d,x){var J=es,Ee=tl();if(Qa){if(x===void 0)throw Error(o(407));x=x()}else{if(x=d(),Ys===null)throw Error(o(349));el&30||Ru(J,d,x)}Ee.memoizedState=x;var ze={value:x,getSnapshot:d};return Ee.queue=ze,tc(ku.bind(null,J,ze,a),[a]),J.flags|=2048,gu(9,ec.bind(null,J,ze,x,d),void 0,null),x},useId:function(){var a=tl(),d=Ys.identifierPrefix;if(Qa){var x=Va,J=li;x=(J&~(1<<32-Vn(J)-1)).toString(32)+x,d=":"+d+"R"+x,x=Au++,0<\/script>",a=a.removeChild(a.firstChild)):typeof J.is=="string"?a=Ct.createElement(x,{is:J.is}):(a=Ct.createElement(x),x==="select"&&(Ct=a,J.multiple?Ct.multiple=!0:J.size&&(Ct.size=J.size))):a=Ct.createElementNS(a,x),a[Es]=d,a[Ws]=J,Hr(a,d,!1,!1),d.stateNode=a;e:{switch(Ct=Ae(x,J),x){case"dialog":xo("cancel",a),xo("close",a),Ee=J;break;case"iframe":case"object":case"embed":xo("load",a),Ee=J;break;case"video":case"audio":for(Ee=0;EeOc&&(d.flags|=128,J=!0,io(ze,!1),d.lanes=4194304)}else{if(!J)if(a=Yl(Ct),a!==null){if(d.flags|=128,J=!0,x=a.updateQueue,x!==null&&(d.updateQueue=x,d.flags|=4),io(ze,!0),ze.tail===null&&ze.tailMode==="hidden"&&!Ct.alternate&&!Xa)return ho(d),null}else 2*tn()-ze.renderingStartTime>Oc&&x!==1073741824&&(d.flags|=128,J=!0,io(ze,!1),d.lanes=4194304);ze.isBackwards?(Ct.sibling=d.child,d.child=Ct):(x=ze.last,x!==null?x.sibling=Ct:d.child=Ct,ze.last=Ct)}return ze.tail!==null?(d=ze.tail,ze.rendering=d,ze.tail=d.sibling,ze.renderingStartTime=tn(),d.sibling=null,x=Ui.current,Ri(Ui,J?x&1|2:x&1),d):(ho(d),null);case 22:case 23:return Ed(),J=d.memoizedState!==null,a!==null&&a.memoizedState!==null!==J&&(d.flags|=8192),J&&d.mode&1?Ql&1073741824&&(ho(d),d.subtreeFlags&6&&(d.flags|=8192)):ho(d),null;case 24:return null;case 25:return null}throw Error(o(156,d.tag))}var yi=A.ReactCurrentOwner,Vo=!1;function Mi(a,d,x,J){d.child=a===null?ht(d,null,x,J):Ke(d,a.child,x,J)}function fs(a,d,x,J,Ee){x=x.render;var ze=d.ref;return Sa(d,Ee),J=Ju(a,d,x,J,ze,Ee),x=Ou(),a!==null&&!Vo?(d.updateQueue=a.updateQueue,d.flags&=-2053,a.lanes&=~Ee,rl(a,d,Ee)):(Xa&&x&&Ja(d),d.flags|=1,Mi(a,d,J,Ee),d.child)}function Hi(a,d,x,J,Ee){if(a===null){var ze=x.type;return typeof ze=="function"&&!td(ze)&&ze.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(d.tag=15,d.type=ze,Co(a,d,ze,J,Ee)):(a=nd(x.type,null,J,d,d.mode,Ee),a.ref=d.ref,a.return=d,d.child=a)}if(ze=a.child,!(a.lanes&Ee)){var Ct=ze.memoizedProps;if(x=x.compare,x=x!==null?x:Cr,x(Ct,J)&&a.ref===d.ref)return rl(a,d,Ee)}return d.flags|=1,a=yu(ze,J),a.ref=d.ref,a.return=d,d.child=a}function Co(a,d,x,J,Ee){if(a!==null){var ze=a.memoizedProps;if(Cr(ze,J)&&a.ref===d.ref)if(Vo=!1,d.pendingProps=J=ze,(a.lanes&Ee)!==0)a.flags&131072&&(Vo=!0);else return d.lanes=a.lanes,rl(a,d,Ee)}return zi(a,d,x,J,Ee)}function ci(a,d,x){var J=d.pendingProps,Ee=J.children,ze=a!==null?a.memoizedState:null;if(J.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Ic,Ql),Ql|=x;else if(x&1073741824)d.memoizedState={baseLanes:0,cachePool:null,transitions:null},J=ze!==null?ze.baseLanes:x,Ri(Ic,Ql),Ql|=J;else return a=ze!==null?ze.baseLanes|x:x,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:a,cachePool:null,transitions:null},d.updateQueue=null,Ri(Ic,Ql),Ql|=a,null;else ze!==null?(J=ze.baseLanes|x,d.memoizedState=null):J=x,Ri(Ic,Ql),Ql|=J;return Mi(a,d,Ee,x),d.child}function Ei(a,d){var x=d.ref;(a===null&&x!==null||a!==null&&a.ref!==x)&&(d.flags|=512,d.flags|=2097152)}function zi(a,d,x,J,Ee){var ze=Fn(x)?cn:$e.current;return ze=qt(d,ze),Sa(d,Ee),x=Ju(a,d,x,J,ze,Ee),J=Ou(),a!==null&&!Vo?(d.updateQueue=a.updateQueue,d.flags&=-2053,a.lanes&=~Ee,rl(a,d,Ee)):(Xa&&J&&Ja(d),d.flags|=1,Mi(a,d,x,Ee),d.child)}function Qi(a,d,x,J,Ee){if(Fn(x)){var ze=!0;Ur(d)}else ze=!1;if(Sa(d,Ee),d.stateNode===null)a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),ma(d,x,J),Ba(d,x,J,Ee),J=!0;else if(a===null){var Ct=d.stateNode,Zt=d.memoizedProps;Ct.props=Zt;var pn=Ct.context,rr=x.contextType;typeof rr=="object"&&rr!==null?rr=ua(rr):(rr=Fn(x)?cn:$e.current,rr=qt(d,rr));var ra=x.getDerivedStateFromProps,Ga=typeof ra=="function"||typeof Ct.getSnapshotBeforeUpdate=="function";Ga||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Zt!==J||pn!==rr)&&so(d,Ct,J,rr),jo=!1;var Pr=d.memoizedState;Ct.state=Pr,Tr(d,J,Ct,Ee),pn=d.memoizedState,Zt!==J||Pr!==pn||Ge.current||jo?(typeof ra=="function"&&(Xr(d,x,ra,J),pn=d.memoizedState),(Zt=jo||za(d,x,Zt,J,Pr,pn,rr))?(Ga||typeof Ct.UNSAFE_componentWillMount!="function"&&typeof Ct.componentWillMount!="function"||(typeof Ct.componentWillMount=="function"&&Ct.componentWillMount(),typeof Ct.UNSAFE_componentWillMount=="function"&&Ct.UNSAFE_componentWillMount()),typeof Ct.componentDidMount=="function"&&(d.flags|=4194308)):(typeof Ct.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=J,d.memoizedState=pn),Ct.props=J,Ct.state=pn,Ct.context=rr,J=Zt):(typeof Ct.componentDidMount=="function"&&(d.flags|=4194308),J=!1)}else{Ct=d.stateNode,Aa(a,d),Zt=d.memoizedProps,rr=d.type===d.elementType?Zt:Rt(d.type,Zt),Ct.props=rr,Ga=d.pendingProps,Pr=Ct.context,pn=x.contextType,typeof pn=="object"&&pn!==null?pn=ua(pn):(pn=Fn(x)?cn:$e.current,pn=qt(d,pn));var lo=x.getDerivedStateFromProps;(ra=typeof lo=="function"||typeof Ct.getSnapshotBeforeUpdate=="function")||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Zt!==Ga||Pr!==pn)&&so(d,Ct,J,pn),jo=!1,Pr=d.memoizedState,Ct.state=Pr,Tr(d,J,Ct,Ee);var Za=d.memoizedState;Zt!==Ga||Pr!==Za||Ge.current||jo?(typeof lo=="function"&&(Xr(d,x,lo,J),Za=d.memoizedState),(rr=jo||za(d,x,rr,J,Pr,Za,pn)||!1)?(ra||typeof Ct.UNSAFE_componentWillUpdate!="function"&&typeof Ct.componentWillUpdate!="function"||(typeof Ct.componentWillUpdate=="function"&&Ct.componentWillUpdate(J,Za,pn),typeof Ct.UNSAFE_componentWillUpdate=="function"&&Ct.UNSAFE_componentWillUpdate(J,Za,pn)),typeof Ct.componentDidUpdate=="function"&&(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof Ct.componentDidUpdate!="function"||Zt===a.memoizedProps&&Pr===a.memoizedState||(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Zt===a.memoizedProps&&Pr===a.memoizedState||(d.flags|=1024),d.memoizedProps=J,d.memoizedState=Za),Ct.props=J,Ct.state=Za,Ct.context=pn,J=rr):(typeof Ct.componentDidUpdate!="function"||Zt===a.memoizedProps&&Pr===a.memoizedState||(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Zt===a.memoizedProps&&Pr===a.memoizedState||(d.flags|=1024),J=!1)}return ts(a,d,x,J,ze,Ee)}function ts(a,d,x,J,Ee,ze){Ei(a,d);var Ct=(d.flags&128)!==0;if(!J&&!Ct)return Ee&&lr(d,x,!1),rl(a,d,ze);J=d.stateNode,yi.current=d;var Zt=Ct&&typeof x.getDerivedStateFromError!="function"?null:J.render();return d.flags|=1,a!==null&&Ct?(d.child=Ke(d,a.child,null,ze),d.child=Ke(d,null,Zt,ze)):Mi(a,d,Zt,ze),d.memoizedState=J.state,Ee&&lr(d,x,!0),d.child}function Kl(a){var d=a.stateNode;d.pendingContext?Rn(a,d.pendingContext,d.pendingContext!==d.context):d.context&&Rn(a,d.context,!1),Vi(a,d.containerInfo)}function Qo(a,d,x,J,Ee){return qi(),Zi(Ee),d.flags|=256,Mi(a,d,x,J),d.child}var ko={dehydrated:null,treeContext:null,retryLane:0};function fa(a){return{baseLanes:a,cachePool:null,transitions:null}}function ms(a,d){return{baseLanes:a.baseLanes|d,cachePool:null,transitions:a.transitions}}function Al(a,d,x){var J=d.pendingProps,Ee=Ui.current,ze=!1,Ct=(d.flags&128)!==0,Zt;if((Zt=Ct)||(Zt=a!==null&&a.memoizedState===null?!1:(Ee&2)!==0),Zt?(ze=!0,d.flags&=-129):(a===null||a.memoizedState!==null)&&(Ee|=1),Ri(Ui,Ee&1),a===null)return Ki(d),a=d.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(d.mode&1?a.data==="$!"?d.lanes=8:d.lanes=1073741824:d.lanes=1,null):(Ee=J.children,a=J.fallback,ze?(J=d.mode,ze=d.child,Ee={mode:"hidden",children:Ee},!(J&1)&&ze!==null?(ze.childLanes=0,ze.pendingProps=Ee):ze=rd(Ee,J,0,null),a=fc(a,J,x,null),ze.return=d,a.return=d,ze.sibling=a,d.child=ze,d.child.memoizedState=fa(x),d.memoizedState=ko,a):Ci(d,Ee));if(Ee=a.memoizedState,Ee!==null){if(Zt=Ee.dehydrated,Zt!==null){if(Ct)return d.flags&256?(d.flags&=-257,Vl(a,d,x,Error(o(422)))):d.memoizedState!==null?(d.child=a.child,d.flags|=128,null):(ze=J.fallback,Ee=d.mode,J=rd({mode:"visible",children:J.children},Ee,0,null),ze=fc(ze,Ee,x,null),ze.flags|=2,J.return=d,ze.return=d,J.sibling=ze,d.child=J,d.mode&1&&Ke(d,a.child,null,x),d.child.memoizedState=fa(x),d.memoizedState=ko,ze);if(!(d.mode&1))d=Vl(a,d,x,null);else if(Zt.data==="$!")d=Vl(a,d,x,Error(o(419)));else if(J=(x&a.childLanes)!==0,Vo||J){if(J=Ys,J!==null){switch(x&-x){case 4:ze=2;break;case 16:ze=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:ze=32;break;case 536870912:ze=268435456;break;default:ze=0}J=ze&(J.suspendedLanes|x)?0:ze,J!==0&&J!==Ee.retryLane&&(Ee.retryLane=J,su(a,J,-1))}Cd(),d=Vl(a,d,x,Error(o(421)))}else Zt.data==="$?"?(d.flags|=128,d.child=a.child,d=tf.bind(null,a),Zt._reactRetry=d,d=null):(x=Ee.treeContext,Po=Ho(Zt.nextSibling),Do=d,Xa=!0,Jo=null,x!==null&&(oo[Oa++]=ui,oo[Oa++]=Ya,oo[Oa++]=$a,ui=x.id,Ya=x.overflow,$a=d),d=Ci(d,d.pendingProps.children),d.flags|=4096);return d}return ze?(J=pl(a,d,J.children,J.fallback,x),ze=d.child,Ee=a.child.memoizedState,ze.memoizedState=Ee===null?fa(x):ms(Ee,x),ze.childLanes=a.childLanes&~x,d.memoizedState=ko,J):(x=mu(a,d,J.children,x),d.memoizedState=null,x)}return ze?(J=pl(a,d,J.children,J.fallback,x),ze=d.child,Ee=a.child.memoizedState,ze.memoizedState=Ee===null?fa(x):ms(Ee,x),ze.childLanes=a.childLanes&~x,d.memoizedState=ko,J):(x=mu(a,d,J.children,x),d.memoizedState=null,x)}function Ci(a,d){return d=rd({mode:"visible",children:d},a.mode,0,null),d.return=a,a.child=d}function mu(a,d,x,J){var Ee=a.child;return a=Ee.sibling,x=yu(Ee,{mode:"visible",children:x}),!(d.mode&1)&&(x.lanes=J),x.return=d,x.sibling=null,a!==null&&(J=d.deletions,J===null?(d.deletions=[a],d.flags|=16):J.push(a)),d.child=x}function pl(a,d,x,J,Ee){var ze=d.mode;a=a.child;var Ct=a.sibling,Zt={mode:"hidden",children:x};return!(ze&1)&&d.child!==a?(x=d.child,x.childLanes=0,x.pendingProps=Zt,d.deletions=null):(x=yu(a,Zt),x.subtreeFlags=a.subtreeFlags&14680064),Ct!==null?J=yu(Ct,J):(J=fc(J,ze,Ee,null),J.flags|=2),J.return=d,x.return=d,x.sibling=J,d.child=x,J}function Vl(a,d,x,J){return J!==null&&Zi(J),Ke(d,a.child,null,x),a=Ci(d,d.pendingProps.children),a.flags|=2,d.memoizedState=null,a}function Ai(a,d,x){a.lanes|=d;var J=a.alternate;J!==null&&(J.lanes|=d),Qr(a.return,d,x)}function Tu(a,d,x,J,Ee){var ze=a.memoizedState;ze===null?a.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:J,tail:x,tailMode:Ee}:(ze.isBackwards=d,ze.rendering=null,ze.renderingStartTime=0,ze.last=J,ze.tail=x,ze.tailMode=Ee)}function Sc(a,d,x){var J=d.pendingProps,Ee=J.revealOrder,ze=J.tail;if(Mi(a,d,J.children,x),J=Ui.current,J&2)J=J&1|2,d.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=d.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ai(a,x,d);else if(a.tag===19)Ai(a,x,d);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===d)break e;for(;a.sibling===null;){if(a.return===null||a.return===d)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}J&=1}if(Ri(Ui,J),!(d.mode&1))d.memoizedState=null;else switch(Ee){case"forwards":for(x=d.child,Ee=null;x!==null;)a=x.alternate,a!==null&&Yl(a)===null&&(Ee=x),x=x.sibling;x=Ee,x===null?(Ee=d.child,d.child=null):(Ee=x.sibling,x.sibling=null),Tu(d,!1,Ee,x,ze);break;case"backwards":for(x=null,Ee=d.child,d.child=null;Ee!==null;){if(a=Ee.alternate,a!==null&&Yl(a)===null){d.child=Ee;break}a=Ee.sibling,Ee.sibling=x,x=Ee,Ee=a}Tu(d,!0,x,null,ze);break;case"together":Tu(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function rl(a,d,x){if(a!==null&&(d.dependencies=a.dependencies),lc|=d.lanes,!(x&d.childLanes))return null;if(a!==null&&d.child!==a.child)throw Error(o(153));if(d.child!==null){for(a=d.child,x=yu(a,a.pendingProps),d.child=x,x.return=d;a.sibling!==null;)a=a.sibling,x=x.sibling=yu(a,a.pendingProps),x.return=d;x.sibling=null}return d.child}function jc(a,d,x){switch(d.tag){case 3:Kl(d),qi();break;case 5:zs(d);break;case 1:Fn(d.type)&&Ur(d);break;case 4:Vi(d,d.stateNode.containerInfo);break;case 10:var J=d.type._context,Ee=d.memoizedProps.value;Ri(Ut,J._currentValue),J._currentValue=Ee;break;case 13:if(J=d.memoizedState,J!==null)return J.dehydrated!==null?(Ri(Ui,Ui.current&1),d.flags|=128,null):x&d.child.childLanes?Al(a,d,x):(Ri(Ui,Ui.current&1),a=rl(a,d,x),a!==null?a.sibling:null);Ri(Ui,Ui.current&1);break;case 19:if(J=(x&d.childLanes)!==0,a.flags&128){if(J)return Sc(a,d,x);d.flags|=128}if(Ee=d.memoizedState,Ee!==null&&(Ee.rendering=null,Ee.tail=null,Ee.lastEffect=null),Ri(Ui,Ui.current),J)break;return null;case 22:case 23:return d.lanes=0,ci(a,d,x)}return rl(a,d,x)}function Ec(a,d){switch(Uo(d),d.tag){case 1:return Fn(d.type)&&tr(),a=d.flags,a&65536?(d.flags=a&-65537|128,d):null;case 3:return Cs(),Ii(Ge),Ii($e),vu(),a=d.flags,a&65536&&!(a&128)?(d.flags=a&-65537|128,d):null;case 5:return Pl(d),null;case 13:if(Ii(Ui),a=d.memoizedState,a!==null&&a.dehydrated!==null){if(d.alternate===null)throw Error(o(340));qi()}return a=d.flags,a&65536?(d.flags=a&-65537|128,d):null;case 19:return Ii(Ui),null;case 4:return Cs(),null;case 10:return $r(d.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var hl=!1,js=!1,Zc=typeof WeakSet=="function"?WeakSet:Set,Pa=null;function ps(a,d){var x=a.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(J){Ms(a,d,J)}else x.current=null}function pu(a,d,x){try{x()}catch(J){Ms(a,d,J)}}var Cc=!1;function Pc(a,d){if(ba=zr,a=_o(),li(a)){if("selectionStart"in a)var x={start:a.selectionStart,end:a.selectionEnd};else e:{x=(x=a.ownerDocument)&&x.defaultView||window;var J=x.getSelection&&x.getSelection();if(J&&J.rangeCount!==0){x=J.anchorNode;var Ee=J.anchorOffset,ze=J.focusNode;J=J.focusOffset;try{x.nodeType,ze.nodeType}catch(So){x=null;break e}var Ct=0,Zt=-1,pn=-1,rr=0,ra=0,Ga=a,Pr=null;t:for(;;){for(var lo;Ga!==x||Ee!==0&&Ga.nodeType!==3||(Zt=Ct+Ee),Ga!==ze||J!==0&&Ga.nodeType!==3||(pn=Ct+J),Ga.nodeType===3&&(Ct+=Ga.nodeValue.length),(lo=Ga.firstChild)!==null;)Pr=Ga,Ga=lo;for(;;){if(Ga===a)break t;if(Pr===x&&++rr===Ee&&(Zt=Ct),Pr===ze&&++ra===J&&(pn=Ct),(lo=Ga.nextSibling)!==null)break;Ga=Pr,Pr=Ga.parentNode}Ga=lo}x=Zt===-1||pn===-1?null:{start:Zt,end:pn}}else x=null}x=x||{start:0,end:0}}else x=null;for(Tl={focusedElem:a,selectionRange:x},zr=!1,Pa=d;Pa!==null;)if(d=Pa,a=d.child,(d.subtreeFlags&1028)!==0&&a!==null)a.return=d,Pa=a;else for(;Pa!==null;){d=Pa;try{var Za=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(Za!==null){var vi=Za.memoizedProps,Ps=Za.memoizedState,Wn=d.stateNode,Cn=Wn.getSnapshotBeforeUpdate(d.elementType===d.type?vi:Rt(d.type,vi),Ps);Wn.__reactInternalSnapshotBeforeUpdate=Cn}break;case 3:var Jn=d.stateNode.containerInfo;if(Jn.nodeType===1)Jn.textContent="";else if(Jn.nodeType===9){var Ea=Jn.body;Ea!=null&&(Ea.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(So){Ms(d,d.return,So)}if(a=d.sibling,a!==null){a.return=d.return,Pa=a;break}Pa=d.return}return Za=Cc,Cc=!1,Za}function oc(a,d,x){var J=d.updateQueue;if(J=J!==null?J.lastEffect:null,J!==null){var Ee=J=J.next;do{if((Ee.tag&a)===a){var ze=Ee.destroy;Ee.destroy=void 0,ze!==void 0&&pu(d,x,ze)}Ee=Ee.next}while(Ee!==J)}}function Uc(a,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var x=d=d.next;do{if((x.tag&a)===a){var J=x.create;x.destroy=J()}x=x.next}while(x!==d)}}function ic(a){var d=a.ref;if(d!==null){var x=a.stateNode;switch(a.tag){case 5:a=x;break;default:a=x}typeof d=="function"?d(a):d.current=a}}function dd(a){var d=a.alternate;d!==null&&(a.alternate=null,dd(d)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(d=a.stateNode,d!==null&&(delete d[Es],delete d[Ws],delete d[It],delete d[Pi],delete d[jl])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function fd(a){return a.tag===5||a.tag===3||a.tag===4}function Td(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||fd(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function vd(a,d,x){var J=a.tag;if(J===5||J===6)a=a.stateNode,d?x.nodeType===8?x.parentNode.insertBefore(a,d):x.insertBefore(a,d):(x.nodeType===8?(d=x.parentNode,d.insertBefore(a,x)):(d=x,d.appendChild(a)),x=x._reactRootContainer,x!=null||d.onclick!==null||(d.onclick=ks));else if(J!==4&&(a=a.child,a!==null))for(vd(a,d,x),a=a.sibling;a!==null;)vd(a,d,x),a=a.sibling}function gd(a,d,x){var J=a.tag;if(J===5||J===6)a=a.stateNode,d?x.insertBefore(a,d):x.appendChild(a);else if(J!==4&&(a=a.child,a!==null))for(gd(a,d,x),a=a.sibling;a!==null;)gd(a,d,x),a=a.sibling}var yl=null,ru=!1;function zu(a,d,x){for(x=x.child;x!==null;)jd(a,d,x),x=x.sibling}function jd(a,d,x){if(ea&&typeof ea.onCommitFiberUnmount=="function")try{ea.onCommitFiberUnmount(mr,x)}catch(Zt){}switch(x.tag){case 5:js||ps(x,d);case 6:var J=yl,Ee=ru;yl=null,zu(a,d,x),yl=J,ru=Ee,yl!==null&&(ru?(a=yl,x=x.stateNode,a.nodeType===8?a.parentNode.removeChild(x):a.removeChild(x)):yl.removeChild(x.stateNode));break;case 18:yl!==null&&(ru?(a=yl,x=x.stateNode,a.nodeType===8?ql(a.parentNode,x):a.nodeType===1&&ql(a,x),Yn(a)):ql(yl,x.stateNode));break;case 4:J=yl,Ee=ru,yl=x.stateNode.containerInfo,ru=!0,zu(a,d,x),yl=J,ru=Ee;break;case 0:case 11:case 14:case 15:if(!js&&(J=x.updateQueue,J!==null&&(J=J.lastEffect,J!==null))){Ee=J=J.next;do{var ze=Ee,Ct=ze.destroy;ze=ze.tag,Ct!==void 0&&(ze&2||ze&4)&&pu(x,d,Ct),Ee=Ee.next}while(Ee!==J)}zu(a,d,x);break;case 1:if(!js&&(ps(x,d),J=x.stateNode,typeof J.componentWillUnmount=="function"))try{J.props=x.memoizedProps,J.state=x.memoizedState,J.componentWillUnmount()}catch(Zt){Ms(x,d,Zt)}zu(a,d,x);break;case 21:zu(a,d,x);break;case 22:x.mode&1?(js=(J=js)||x.memoizedState!==null,zu(a,d,x),js=J):zu(a,d,x);break;default:zu(a,d,x)}}function kc(a){var d=a.updateQueue;if(d!==null){a.updateQueue=null;var x=a.stateNode;x===null&&(x=a.stateNode=new Zc),d.forEach(function(J){var Ee=nf.bind(null,a,J);x.has(J)||(x.add(J),J.then(Ee,Ee))})}}function au(a,d){var x=d.deletions;if(x!==null)for(var J=0;JEe&&(Ee=Ct),J&=~ze}if(J=Ee,J=tn()-J,J=(120>J?120:480>J?480:1080>J?1080:1920>J?1920:3e3>J?3e3:4320>J?4320:1960*sc(J/1960))-J,10a?16:a,Vu===null)var J=!1;else{if(a=Vu,Vu=null,Kc=0,ki&6)throw Error(o(331));var Ee=ki;for(ki|=4,Pa=a.current;Pa!==null;){var ze=Pa,Ct=ze.child;if(Pa.flags&16){var Zt=ze.deletions;if(Zt!==null){for(var pn=0;pntn()-hd?cc(a,0):Yc|=x),_l(a,d)}function Fd(a,d){d===0&&(a.mode&1?(d=kt,kt<<=1,!(kt&130023424)&&(kt=4194304)):d=1);var x=Bl();a=Xc(a,d),a!==null&&(St(a,d,x),_l(a,x))}function tf(a){var d=a.memoizedState,x=0;d!==null&&(x=d.retryLane),Fd(a,x)}function nf(a,d){var x=0;switch(a.tag){case 13:var J=a.stateNode,Ee=a.memoizedState;Ee!==null&&(x=Ee.retryLane);break;case 19:J=a.stateNode;break;default:throw Error(o(314))}J!==null&&J.delete(d),Fd(a,x)}var Zd;Zd=function(a,d,x){if(a!==null)if(a.memoizedProps!==d.pendingProps||Ge.current)Vo=!0;else{if(!(a.lanes&x)&&!(d.flags&128))return Vo=!1,jc(a,d,x);Vo=!!(a.flags&131072)}else Vo=!1,Xa&&d.flags&1048576&&ai(d,Ao,d.index);switch(d.lanes=0,d.tag){case 2:var J=d.type;a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),a=d.pendingProps;var Ee=qt(d,$e.current);Sa(d,x),Ee=Ju(null,d,J,a,Ee,x);var ze=Ou();return d.flags|=1,typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,Fn(J)?(ze=!0,Ur(d)):ze=!1,d.memoizedState=Ee.state!==null&&Ee.state!==void 0?Ee.state:null,fo(d),Ee.updater=_a,d.stateNode=Ee,Ee._reactInternals=d,Ba(d,J,a,x),d=ts(null,d,J,!0,ze,x)):(d.tag=0,Xa&&ze&&Ja(d),Mi(null,d,Ee,x),d=d.child),d;case 16:J=d.elementType;e:{switch(a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),a=d.pendingProps,Ee=J._init,J=Ee(J._payload),d.type=J,Ee=d.tag=af(J),a=Rt(J,a),Ee){case 0:d=zi(null,d,J,a,x);break e;case 1:d=Qi(null,d,J,a,x);break e;case 11:d=fs(null,d,J,a,x);break e;case 14:d=Hi(null,d,J,Rt(J.type,a),x);break e}throw Error(o(306,J,""))}return d;case 0:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),zi(a,d,J,Ee,x);case 1:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),Qi(a,d,J,Ee,x);case 3:e:{if(Kl(d),a===null)throw Error(o(387));J=d.pendingProps,ze=d.memoizedState,Ee=ze.element,Aa(a,d),Tr(d,J,null,x);var Ct=d.memoizedState;if(J=Ct.element,ze.isDehydrated)if(ze={element:J,isDehydrated:!1,cache:Ct.cache,pendingSuspenseBoundaries:Ct.pendingSuspenseBoundaries,transitions:Ct.transitions},d.updateQueue.baseState=ze,d.memoizedState=ze,d.flags&256){Ee=Error(o(423)),d=Qo(a,d,J,x,Ee);break e}else if(J!==Ee){Ee=Error(o(424)),d=Qo(a,d,J,x,Ee);break e}else for(Po=Ho(d.stateNode.containerInfo.firstChild),Do=d,Xa=!0,Jo=null,x=ht(d,null,J,x),d.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(qi(),J===Ee){d=rl(a,d,x);break e}Mi(a,d,J,x)}d=d.child}return d;case 5:return zs(d),a===null&&Ki(d),J=d.type,Ee=d.pendingProps,ze=a!==null?a.memoizedProps:null,Ct=Ee.children,rs(J,Ee)?Ct=null:ze!==null&&rs(J,ze)&&(d.flags|=32),Ei(a,d),Mi(a,d,Ct,x),d.child;case 6:return a===null&&Ki(d),null;case 13:return Al(a,d,x);case 4:return Vi(d,d.stateNode.containerInfo),J=d.pendingProps,a===null?d.child=Ke(d,null,J,x):Mi(a,d,J,x),d.child;case 11:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),fs(a,d,J,Ee,x);case 7:return Mi(a,d,d.pendingProps,x),d.child;case 8:return Mi(a,d,d.pendingProps.children,x),d.child;case 12:return Mi(a,d,d.pendingProps.children,x),d.child;case 10:e:{if(J=d.type._context,Ee=d.pendingProps,ze=d.memoizedProps,Ct=Ee.value,Ri(Ut,J._currentValue),J._currentValue=Ct,ze!==null)if(ur(ze.value,Ct)){if(ze.children===Ee.children&&!Ge.current){d=rl(a,d,x);break e}}else for(ze=d.child,ze!==null&&(ze.return=d);ze!==null;){var Zt=ze.dependencies;if(Zt!==null){Ct=ze.child;for(var pn=Zt.firstContext;pn!==null;){if(pn.context===J){if(ze.tag===1){pn=xa(-1,x&-x),pn.tag=2;var rr=ze.updateQueue;if(rr!==null){rr=rr.shared;var ra=rr.pending;ra===null?pn.next=pn:(pn.next=ra.next,ra.next=pn),rr.pending=pn}}ze.lanes|=x,pn=ze.alternate,pn!==null&&(pn.lanes|=x),Qr(ze.return,x,d),Zt.lanes|=x;break}pn=pn.next}}else if(ze.tag===10)Ct=ze.type===d.type?null:ze.child;else if(ze.tag===18){if(Ct=ze.return,Ct===null)throw Error(o(341));Ct.lanes|=x,Zt=Ct.alternate,Zt!==null&&(Zt.lanes|=x),Qr(Ct,x,d),Ct=ze.sibling}else Ct=ze.child;if(Ct!==null)Ct.return=ze;else for(Ct=ze;Ct!==null;){if(Ct===d){Ct=null;break}if(ze=Ct.sibling,ze!==null){ze.return=Ct.return,Ct=ze;break}Ct=Ct.return}ze=Ct}Mi(a,d,Ee.children,x),d=d.child}return d;case 9:return Ee=d.type,J=d.pendingProps.children,Sa(d,x),Ee=ua(Ee),J=J(Ee),d.flags|=1,Mi(a,d,J,x),d.child;case 14:return J=d.type,Ee=Rt(J,d.pendingProps),Ee=Rt(J.type,Ee),Hi(a,d,J,Ee,x);case 15:return Co(a,d,d.type,d.pendingProps,x);case 17:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),d.tag=1,Fn(J)?(a=!0,Ur(d)):a=!1,Sa(d,x),ma(d,J,Ee),Ba(d,J,Ee,x),ts(null,d,J,!0,a,x);case 19:return Sc(a,d,x);case 22:return ci(a,d,x)}throw Error(o(156,d.tag))};function Ud(a,d){return nt(a,d)}function rf(a,d,x,J){this.tag=a,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=J,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lu(a,d,x,J){return new rf(a,d,x,J)}function td(a){return a=a.prototype,!(!a||!a.isReactComponent)}function af(a){if(typeof a=="function")return td(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ce)return 11;if(a===G)return 14}return 2}function yu(a,d){var x=a.alternate;return x===null?(x=lu(a.tag,d,a.key,a.mode),x.elementType=a.elementType,x.type=a.type,x.stateNode=a.stateNode,x.alternate=a,a.alternate=x):(x.pendingProps=d,x.type=a.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=a.flags&14680064,x.childLanes=a.childLanes,x.lanes=a.lanes,x.child=a.child,x.memoizedProps=a.memoizedProps,x.memoizedState=a.memoizedState,x.updateQueue=a.updateQueue,d=a.dependencies,x.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},x.sibling=a.sibling,x.index=a.index,x.ref=a.ref,x}function nd(a,d,x,J,Ee,ze){var Ct=2;if(J=a,typeof a=="function")td(a)&&(Ct=1);else if(typeof a=="string")Ct=5;else e:switch(a){case $:return fc(x.children,Ee,ze,d);case B:Ct=8,Ee|=8;break;case K:return a=lu(12,x,d,Ee|2),a.elementType=K,a.lanes=ze,a;case te:return a=lu(13,x,d,Ee),a.elementType=te,a.lanes=ze,a;case W:return a=lu(19,x,d,Ee),a.elementType=W,a.lanes=ze,a;case k:return rd(x,Ee,ze,d);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case H:Ct=10;break e;case ie:Ct=9;break e;case ce:Ct=11;break e;case G:Ct=14;break e;case O:Ct=16,J=null;break e}throw Error(o(130,a==null?a:typeof a,""))}return d=lu(Ct,x,d,Ee),d.elementType=a,d.type=J,d.lanes=ze,d}function fc(a,d,x,J){return a=lu(7,a,J,d),a.lanes=x,a}function rd(a,d,x,J){return a=lu(22,a,J,d),a.elementType=k,a.lanes=x,a.stateNode={},a}function xd(a,d,x){return a=lu(6,a,null,d),a.lanes=x,a}function Id(a,d,x){return d=lu(4,a.children!==null?a.children:[],a.key,d),d.lanes=x,d.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},d}function of(a,d,x,J,Ee){this.tag=d,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xt(0),this.expirationTimes=xt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.identifierPrefix=J,this.onRecoverableError=Ee,this.mutableSourceEagerHydrationData=null}function Ad(a,d,x,J,Ee,ze,Ct,Zt,pn){return a=new of(a,d,x,Zt,pn),d===1?(d=1,ze===!0&&(d|=8)):d=0,ze=lu(3,null,null,d),a.current=ze,ze.stateNode=a,ze.memoizedState={element:J,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},fo(ze),a}function sf(a,d,x){var J=30&&v+l.length!==h.length&&l.search(e)>-1&&h.charAt(v-2)!==":"&&(h.charAt(v+l.length)!=="-"||h.charAt(v-1)==="-")&&h.charAt(v-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function t(c){return typeof c=="string"&&c.indexOf("@")!==-1}var o="REDACTED (Potential Email Address)";function s(c){return t(c)?(console.warn("This arg looks like an email address, redacting."),o):c}function n(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,h=c||"";return l&&(h=i(c)),v&&(h=s(h)),h}},80234:function(M,b,e){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.GA4=void 0;var i=c(e(51542)),t=c(e(23661)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],s=["title","location"],n=["page","hitType"];function c(te){return te&&te.__esModule?te:{default:te}}function l(te,W){if(te==null)return{};var G=v(te,W),O,k;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(te);for(k=0;k=0)&&Object.prototype.propertyIsEnumerable.call(te,O)&&(G[O]=te[O])}return G}function v(te,W){if(te==null)return{};var G={},O=Object.keys(te),k,Y;for(Y=0;Y=0)&&(G[k]=te[k]);return G}function h(te){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},h(te)}function m(te){return S(te)||p(te)||R(te)||C()}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +`+ze.stack}return{value:a,source:d,stack:Ee}}function Xe(a,d){try{console.error(d.value)}catch(x){setTimeout(function(){throw x})}}var pt=typeof WeakMap=="function"?WeakMap:Map;function Ht(a,d,x){x=Ia(-1,x),x.tag=3,x.payload={element:null};var J=d.value;return x.callback=function(){Rc||(Rc=!0,yd=J),Xe(a,d)},x}function on(a,d,x){x=Ia(-1,x),x.tag=3;var J=a.type.getDerivedStateFromError;if(typeof J=="function"){var Ee=d.value;x.payload=function(){return J(Ee)},x.callback=function(){Xe(a,d)}}var ze=a.stateNode;return ze!==null&&typeof ze.componentDidCatch=="function"&&(x.callback=function(){Xe(a,d),typeof J!="function"&&(Ku===null?Ku=new Set([this]):Ku.add(this));var Ct=d.stack;this.componentDidCatch(d.value,{componentStack:Ct!==null?Ct:""})}),x}function Sn(a,d,x){var J=a.pingCache;if(J===null){J=a.pingCache=new pt;var Ee=new Set;J.set(d,Ee)}else Ee=J.get(d),Ee===void 0&&(Ee=new Set,J.set(d,Ee));Ee.has(x)||(Ee.add(x),a=ef.bind(null,a,d,x),d.then(a,a))}function Xn(a){do{var d;if((d=a.tag===13)&&(d=a.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return a;a=a.return}while(a!==null);return null}function _r(a,d,x,J,Ee){return a.mode&1?(a.flags|=65536,a.lanes=Ee,a):(a===d?a.flags|=65536:(a.flags|=128,x.flags|=131072,x.flags&=-52805,x.tag===1&&(x.alternate===null?x.tag=17:(d=Ia(-1,1),d.tag=2,ia(x,d))),x.lanes|=1),a)}var Hr,ma,ja,wa;Hr=function(a,d){for(var x=d.child;x!==null;){if(x.tag===5||x.tag===6)a.appendChild(x.stateNode);else if(x.tag!==4&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===d)break;for(;x.sibling===null;){if(x.return===null||x.return===d)return;x=x.return}x.sibling.return=x.return,x=x.sibling}},ma=function(){},ja=function(a,d,x,J){var Ee=a.memoizedProps;if(Ee!==J){a=d.stateNode,Uo(er.current);var ze=null;switch(x){case"input":Ee=He(a,Ee),J=He(a,J),ze=[];break;case"select":Ee=Q({},Ee,{value:void 0}),J=Q({},J,{value:void 0}),ze=[];break;case"textarea":Ee=ee(a,Ee),J=ee(a,J),ze=[];break;default:typeof Ee.onClick!="function"&&typeof J.onClick=="function"&&(a.onclick=ks)}Je(x,J);var Ct;x=null;for(rr in Ee)if(!J.hasOwnProperty(rr)&&Ee.hasOwnProperty(rr)&&Ee[rr]!=null)if(rr==="style"){var Zt=Ee[rr];for(Ct in Zt)Zt.hasOwnProperty(Ct)&&(x||(x={}),x[Ct]="")}else rr!=="dangerouslySetInnerHTML"&&rr!=="children"&&rr!=="suppressContentEditableWarning"&&rr!=="suppressHydrationWarning"&&rr!=="autoFocus"&&(n.hasOwnProperty(rr)?ze||(ze=[]):(ze=ze||[]).push(rr,null));for(rr in J){var pn=J[rr];if(Zt=Ee!=null?Ee[rr]:void 0,J.hasOwnProperty(rr)&&pn!==Zt&&(pn!=null||Zt!=null))if(rr==="style")if(Zt){for(Ct in Zt)!Zt.hasOwnProperty(Ct)||pn&&pn.hasOwnProperty(Ct)||(x||(x={}),x[Ct]="");for(Ct in pn)pn.hasOwnProperty(Ct)&&Zt[Ct]!==pn[Ct]&&(x||(x={}),x[Ct]=pn[Ct])}else x||(ze||(ze=[]),ze.push(rr,x)),x=pn;else rr==="dangerouslySetInnerHTML"?(pn=pn?pn.__html:void 0,Zt=Zt?Zt.__html:void 0,pn!=null&&Zt!==pn&&(ze=ze||[]).push(rr,pn)):rr==="children"?typeof pn!="string"&&typeof pn!="number"||(ze=ze||[]).push(rr,""+pn):rr!=="suppressContentEditableWarning"&&rr!=="suppressHydrationWarning"&&(n.hasOwnProperty(rr)?(pn!=null&&rr==="onScroll"&&Eo("scroll",a),ze||Zt===pn||(ze=[])):(ze=ze||[]).push(rr,pn))}x&&(ze=ze||[]).push("style",x);var rr=ze;(d.updateQueue=rr)&&(d.flags|=4)}},wa=function(a,d,x,J){x!==J&&(d.flags|=4)};function so(a,d){if(!Qa)switch(a.tailMode){case"hidden":d=a.tail;for(var x=null;d!==null;)d.alternate!==null&&(x=d),d=d.sibling;x===null?a.tail=null:x.sibling=null;break;case"collapsed":x=a.tail;for(var J=null;x!==null;)x.alternate!==null&&(J=x),x=x.sibling;J===null?d||a.tail===null?a.tail=null:a.tail.sibling=null:J.sibling=null}}function mo(a){var d=a.alternate!==null&&a.alternate.child===a.child,x=0,J=0;if(d)for(var Ee=a.child;Ee!==null;)x|=Ee.lanes|Ee.childLanes,J|=Ee.subtreeFlags&14680064,J|=Ee.flags&14680064,Ee.return=a,Ee=Ee.sibling;else for(Ee=a.child;Ee!==null;)x|=Ee.lanes|Ee.childLanes,J|=Ee.subtreeFlags,J|=Ee.flags,Ee.return=a,Ee=Ee.sibling;return a.subtreeFlags|=J,a.childLanes=x,d}function ho(a,d,x){var J=d.pendingProps;switch(ko(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mo(d),null;case 1:return jn(d.type)&&lr(),mo(d),null;case 3:return J=d.stateNode,Cs(),Ii(Ke),Ii($e),vu(),J.pendingContext&&(J.context=J.pendingContext,J.pendingContext=null),(a===null||a.child===null)&&(os(d)?d.flags|=4:a===null||a.memoizedState.isDehydrated&&!(d.flags&256)||(d.flags|=1024,ci!==null&&(bd(ci),ci=null))),ma(a,d),mo(d),null;case 5:Yl(d);var Ee=Uo(zo.current);if(x=d.type,a!==null&&d.stateNode!=null)ja(a,d,x,J,Ee),a.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!J){if(d.stateNode===null)throw Error(o(166));return mo(d),null}if(a=Uo(er.current),os(d)){J=d.stateNode,x=d.type;var ze=d.memoizedProps;switch(J[Es]=d,J[Ws]=ze,a=(d.mode&1)!==0,x){case"dialog":Eo("cancel",J),Eo("close",J);break;case"iframe":case"object":case"embed":Eo("load",J);break;case"video":case"audio":for(Ee=0;Ee<\/script>",a=a.removeChild(a.firstChild)):typeof J.is=="string"?a=Ct.createElement(x,{is:J.is}):(a=Ct.createElement(x),x==="select"&&(Ct=a,J.multiple?Ct.multiple=!0:J.size&&(Ct.size=J.size))):a=Ct.createElementNS(a,x),a[Es]=d,a[Ws]=J,Hr(a,d,!1,!1),d.stateNode=a;e:{switch(Ct=Ae(x,J),x){case"dialog":Eo("cancel",a),Eo("close",a),Ee=J;break;case"iframe":case"object":case"embed":Eo("load",a),Ee=J;break;case"video":case"audio":for(Ee=0;EeOc&&(d.flags|=128,J=!0,so(ze,!1),d.lanes=4194304)}else{if(!J)if(a=Pl(Ct),a!==null){if(d.flags|=128,J=!0,x=a.updateQueue,x!==null&&(d.updateQueue=x,d.flags|=4),so(ze,!0),ze.tail===null&&ze.tailMode==="hidden"&&!Ct.alternate&&!Qa)return mo(d),null}else 2*en()-ze.renderingStartTime>Oc&&x!==1073741824&&(d.flags|=128,J=!0,so(ze,!1),d.lanes=4194304);ze.isBackwards?(Ct.sibling=d.child,d.child=Ct):(x=ze.last,x!==null?x.sibling=Ct:d.child=Ct,ze.last=Ct)}return ze.tail!==null?(d=ze.tail,ze.rendering=d,ze.tail=d.sibling,ze.renderingStartTime=en(),d.sibling=null,x=zi.current,Ri(zi,J?x&1|2:x&1),d):(mo(d),null);case 22:case 23:return Ed(),J=d.memoizedState!==null,a!==null&&a.memoizedState!==null!==J&&(d.flags|=8192),J&&d.mode&1?Ql&1073741824&&(mo(d),d.subtreeFlags&6&&(d.flags|=8192)):mo(d),null;case 24:return null;case 25:return null}throw Error(o(156,d.tag))}var yi=A.ReactCurrentOwner,Qo=!1;function Mi(a,d,x,J){d.child=a===null?ht(d,null,x,J):Ge(d,a.child,x,J)}function fs(a,d,x,J,Ee){x=x.render;var ze=d.ref;return da(d,Ee),J=Ju(a,d,x,J,ze,Ee),x=Ou(),a!==null&&!Qo?(d.updateQueue=a.updateQueue,d.flags&=-2053,a.lanes&=~Ee,rl(a,d,Ee)):(Qa&&x&&Ja(d),d.flags|=1,Mi(a,d,J,Ee),d.child)}function Yi(a,d,x,J,Ee){if(a===null){var ze=x.type;return typeof ze=="function"&&!td(ze)&&ze.defaultProps===void 0&&x.compare===null&&x.defaultProps===void 0?(d.tag=15,d.type=ze,So(a,d,ze,J,Ee)):(a=nd(x.type,null,J,d,d.mode,Ee),a.ref=d.ref,a.return=d,d.child=a)}if(ze=a.child,!(a.lanes&Ee)){var Ct=ze.memoizedProps;if(x=x.compare,x=x!==null?x:Cr,x(Ct,J)&&a.ref===d.ref)return rl(a,d,Ee)}return d.flags|=1,a=yu(ze,J),a.ref=d.ref,a.return=d,d.child=a}function So(a,d,x,J,Ee){if(a!==null){var ze=a.memoizedProps;if(Cr(ze,J)&&a.ref===d.ref)if(Qo=!1,d.pendingProps=J=ze,(a.lanes&Ee)!==0)a.flags&131072&&(Qo=!0);else return d.lanes=a.lanes,rl(a,d,Ee)}return Bi(a,d,x,J,Ee)}function di(a,d,x){var J=d.pendingProps,Ee=J.children,ze=a!==null?a.memoizedState:null;if(J.mode==="hidden")if(!(d.mode&1))d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ri(Ic,Ql),Ql|=x;else if(x&1073741824)d.memoizedState={baseLanes:0,cachePool:null,transitions:null},J=ze!==null?ze.baseLanes:x,Ri(Ic,Ql),Ql|=J;else return a=ze!==null?ze.baseLanes|x:x,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:a,cachePool:null,transitions:null},d.updateQueue=null,Ri(Ic,Ql),Ql|=a,null;else ze!==null?(J=ze.baseLanes|x,d.memoizedState=null):J=x,Ri(Ic,Ql),Ql|=J;return Mi(a,d,Ee,x),d.child}function Ei(a,d){var x=d.ref;(a===null&&x!==null||a!==null&&a.ref!==x)&&(d.flags|=512,d.flags|=2097152)}function Bi(a,d,x,J,Ee){var ze=jn(x)?cn:$e.current;return ze=nn(d,ze),da(d,Ee),x=Ju(a,d,x,J,ze,Ee),J=Ou(),a!==null&&!Qo?(d.updateQueue=a.updateQueue,d.flags&=-2053,a.lanes&=~Ee,rl(a,d,Ee)):(Qa&&J&&Ja(d),d.flags|=1,Mi(a,d,x,Ee),d.child)}function Xi(a,d,x,J,Ee){if(jn(x)){var ze=!0;Zr(d)}else ze=!1;if(da(d,Ee),d.stateNode===null)a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),ya(d,x,J),Ba(d,x,J,Ee),J=!0;else if(a===null){var Ct=d.stateNode,Zt=d.memoizedProps;Ct.props=Zt;var pn=Ct.context,rr=x.contextType;typeof rr=="object"&&rr!==null?rr=ua(rr):(rr=jn(x)?cn:$e.current,rr=nn(d,rr));var na=x.getDerivedStateFromProps,Ya=typeof na=="function"||typeof Ct.getSnapshotBeforeUpdate=="function";Ya||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Zt!==J||pn!==rr)&&io(d,Ct,J,rr),Oo=!1;var jr=d.memoizedState;Ct.state=jr,Nr(d,J,Ct,Ee),pn=d.memoizedState,Zt!==J||jr!==pn||Ke.current||Oo?(typeof na=="function"&&(Qr(d,x,na,J),pn=d.memoizedState),(Zt=Oo||za(d,x,Zt,J,jr,pn,rr))?(Ya||typeof Ct.UNSAFE_componentWillMount!="function"&&typeof Ct.componentWillMount!="function"||(typeof Ct.componentWillMount=="function"&&Ct.componentWillMount(),typeof Ct.UNSAFE_componentWillMount=="function"&&Ct.UNSAFE_componentWillMount()),typeof Ct.componentDidMount=="function"&&(d.flags|=4194308)):(typeof Ct.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=J,d.memoizedState=pn),Ct.props=J,Ct.state=pn,Ct.context=rr,J=Zt):(typeof Ct.componentDidMount=="function"&&(d.flags|=4194308),J=!1)}else{Ct=d.stateNode,Sa(a,d),Zt=d.memoizedProps,rr=d.type===d.elementType?Zt:Rt(d.type,Zt),Ct.props=rr,Ya=d.pendingProps,jr=Ct.context,pn=x.contextType,typeof pn=="object"&&pn!==null?pn=ua(pn):(pn=jn(x)?cn:$e.current,pn=nn(d,pn));var uo=x.getDerivedStateFromProps;(na=typeof uo=="function"||typeof Ct.getSnapshotBeforeUpdate=="function")||typeof Ct.UNSAFE_componentWillReceiveProps!="function"&&typeof Ct.componentWillReceiveProps!="function"||(Zt!==Ya||jr!==pn)&&io(d,Ct,J,pn),Oo=!1,jr=d.memoizedState,Ct.state=jr,Nr(d,J,Ct,Ee);var Za=d.memoizedState;Zt!==Ya||jr!==Za||Ke.current||Oo?(typeof uo=="function"&&(Qr(d,x,uo,J),Za=d.memoizedState),(rr=Oo||za(d,x,rr,J,jr,Za,pn)||!1)?(na||typeof Ct.UNSAFE_componentWillUpdate!="function"&&typeof Ct.componentWillUpdate!="function"||(typeof Ct.componentWillUpdate=="function"&&Ct.componentWillUpdate(J,Za,pn),typeof Ct.UNSAFE_componentWillUpdate=="function"&&Ct.UNSAFE_componentWillUpdate(J,Za,pn)),typeof Ct.componentDidUpdate=="function"&&(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof Ct.componentDidUpdate!="function"||Zt===a.memoizedProps&&jr===a.memoizedState||(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Zt===a.memoizedProps&&jr===a.memoizedState||(d.flags|=1024),d.memoizedProps=J,d.memoizedState=Za),Ct.props=J,Ct.state=Za,Ct.context=pn,J=rr):(typeof Ct.componentDidUpdate!="function"||Zt===a.memoizedProps&&jr===a.memoizedState||(d.flags|=4),typeof Ct.getSnapshotBeforeUpdate!="function"||Zt===a.memoizedProps&&jr===a.memoizedState||(d.flags|=1024),J=!1)}return ts(a,d,x,J,ze,Ee)}function ts(a,d,x,J,Ee,ze){Ei(a,d);var Ct=(d.flags&128)!==0;if(!J&&!Ct)return Ee&&ir(d,x,!1),rl(a,d,ze);J=d.stateNode,yi.current=d;var Zt=Ct&&typeof x.getDerivedStateFromError!="function"?null:J.render();return d.flags|=1,a!==null&&Ct?(d.child=Ge(d,a.child,null,ze),d.child=Ge(d,null,Zt,ze)):Mi(a,d,Zt,ze),d.memoizedState=J.state,Ee&&ir(d,x,!0),d.child}function Kl(a){var d=a.stateNode;d.pendingContext?zn(a,d.pendingContext,d.pendingContext!==d.context):d.context&&zn(a,d.context,!1),Hi(a,d.containerInfo)}function Xo(a,d,x,J,Ee){return Qi(),_i(Ee),d.flags|=256,Mi(a,d,x,J),d.child}var Wo={dehydrated:null,treeContext:null,retryLane:0};function va(a){return{baseLanes:a,cachePool:null,transitions:null}}function ms(a,d){return{baseLanes:a.baseLanes|d,cachePool:null,transitions:a.transitions}}function Al(a,d,x){var J=d.pendingProps,Ee=zi.current,ze=!1,Ct=(d.flags&128)!==0,Zt;if((Zt=Ct)||(Zt=a!==null&&a.memoizedState===null?!1:(Ee&2)!==0),Zt?(ze=!0,d.flags&=-129):(a===null||a.memoizedState!==null)&&(Ee|=1),Ri(zi,Ee&1),a===null)return Vi(d),a=d.memoizedState,a!==null&&(a=a.dehydrated,a!==null)?(d.mode&1?a.data==="$!"?d.lanes=8:d.lanes=1073741824:d.lanes=1,null):(Ee=J.children,a=J.fallback,ze?(J=d.mode,ze=d.child,Ee={mode:"hidden",children:Ee},!(J&1)&&ze!==null?(ze.childLanes=0,ze.pendingProps=Ee):ze=rd(Ee,J,0,null),a=fc(a,J,x,null),ze.return=d,a.return=d,ze.sibling=a,d.child=ze,d.child.memoizedState=va(x),d.memoizedState=Wo,a):Ci(d,Ee));if(Ee=a.memoizedState,Ee!==null){if(Zt=Ee.dehydrated,Zt!==null){if(Ct)return d.flags&256?(d.flags&=-257,Vl(a,d,x,Error(o(422)))):d.memoizedState!==null?(d.child=a.child,d.flags|=128,null):(ze=J.fallback,Ee=d.mode,J=rd({mode:"visible",children:J.children},Ee,0,null),ze=fc(ze,Ee,x,null),ze.flags|=2,J.return=d,ze.return=d,J.sibling=ze,d.child=J,d.mode&1&&Ge(d,a.child,null,x),d.child.memoizedState=va(x),d.memoizedState=Wo,ze);if(!(d.mode&1))d=Vl(a,d,x,null);else if(Zt.data==="$!")d=Vl(a,d,x,Error(o(419)));else if(J=(x&a.childLanes)!==0,Qo||J){if(J=Ys,J!==null){switch(x&-x){case 4:ze=2;break;case 16:ze=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:ze=32;break;case 536870912:ze=268435456;break;default:ze=0}J=ze&(J.suspendedLanes|x)?0:ze,J!==0&&J!==Ee.retryLane&&(Ee.retryLane=J,su(a,J,-1))}Cd(),d=Vl(a,d,x,Error(o(421)))}else Zt.data==="$?"?(d.flags|=128,d.child=a.child,d=tf.bind(null,a),Zt._reactRetry=d,d=null):(x=Ee.treeContext,Lo=Yo(Zt.nextSibling),Io=d,Qa=!0,ci=null,x!==null&&(lo[Oa++]=li,lo[Oa++]=Va,lo[Oa++]=$a,li=x.id,Va=x.overflow,$a=d),d=Ci(d,d.pendingProps.children),d.flags|=4096);return d}return ze?(J=pl(a,d,J.children,J.fallback,x),ze=d.child,Ee=a.child.memoizedState,ze.memoizedState=Ee===null?va(x):ms(Ee,x),ze.childLanes=a.childLanes&~x,d.memoizedState=Wo,J):(x=mu(a,d,J.children,x),d.memoizedState=null,x)}return ze?(J=pl(a,d,J.children,J.fallback,x),ze=d.child,Ee=a.child.memoizedState,ze.memoizedState=Ee===null?va(x):ms(Ee,x),ze.childLanes=a.childLanes&~x,d.memoizedState=Wo,J):(x=mu(a,d,J.children,x),d.memoizedState=null,x)}function Ci(a,d){return d=rd({mode:"visible",children:d},a.mode,0,null),d.return=a,a.child=d}function mu(a,d,x,J){var Ee=a.child;return a=Ee.sibling,x=yu(Ee,{mode:"visible",children:x}),!(d.mode&1)&&(x.lanes=J),x.return=d,x.sibling=null,a!==null&&(J=d.deletions,J===null?(d.deletions=[a],d.flags|=16):J.push(a)),d.child=x}function pl(a,d,x,J,Ee){var ze=d.mode;a=a.child;var Ct=a.sibling,Zt={mode:"hidden",children:x};return!(ze&1)&&d.child!==a?(x=d.child,x.childLanes=0,x.pendingProps=Zt,d.deletions=null):(x=yu(a,Zt),x.subtreeFlags=a.subtreeFlags&14680064),Ct!==null?J=yu(Ct,J):(J=fc(J,ze,Ee,null),J.flags|=2),J.return=d,x.return=d,x.sibling=J,d.child=x,J}function Vl(a,d,x,J){return J!==null&&_i(J),Ge(d,a.child,null,x),a=Ci(d,d.pendingProps.children),a.flags|=2,d.memoizedState=null,a}function Ai(a,d,x){a.lanes|=d;var J=a.alternate;J!==null&&(J.lanes|=d),aa(a.return,d,x)}function Tu(a,d,x,J,Ee){var ze=a.memoizedState;ze===null?a.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:J,tail:x,tailMode:Ee}:(ze.isBackwards=d,ze.rendering=null,ze.renderingStartTime=0,ze.last=J,ze.tail=x,ze.tailMode=Ee)}function Sc(a,d,x){var J=d.pendingProps,Ee=J.revealOrder,ze=J.tail;if(Mi(a,d,J.children,x),J=zi.current,J&2)J=J&1|2,d.flags|=128;else{if(a!==null&&a.flags&128)e:for(a=d.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&Ai(a,x,d);else if(a.tag===19)Ai(a,x,d);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===d)break e;for(;a.sibling===null;){if(a.return===null||a.return===d)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}J&=1}if(Ri(zi,J),!(d.mode&1))d.memoizedState=null;else switch(Ee){case"forwards":for(x=d.child,Ee=null;x!==null;)a=x.alternate,a!==null&&Pl(a)===null&&(Ee=x),x=x.sibling;x=Ee,x===null?(Ee=d.child,d.child=null):(Ee=x.sibling,x.sibling=null),Tu(d,!1,Ee,x,ze);break;case"backwards":for(x=null,Ee=d.child,d.child=null;Ee!==null;){if(a=Ee.alternate,a!==null&&Pl(a)===null){d.child=Ee;break}a=Ee.sibling,Ee.sibling=x,x=Ee,Ee=a}Tu(d,!0,x,null,ze);break;case"together":Tu(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function rl(a,d,x){if(a!==null&&(d.dependencies=a.dependencies),lc|=d.lanes,!(x&d.childLanes))return null;if(a!==null&&d.child!==a.child)throw Error(o(153));if(d.child!==null){for(a=d.child,x=yu(a,a.pendingProps),d.child=x,x.return=d;a.sibling!==null;)a=a.sibling,x=x.sibling=yu(a,a.pendingProps),x.return=d;x.sibling=null}return d.child}function jc(a,d,x){switch(d.tag){case 3:Kl(d),Qi();break;case 5:zs(d);break;case 1:jn(d.type)&&Zr(d);break;case 4:Hi(d,d.stateNode.containerInfo);break;case 10:var J=d.type._context,Ee=d.memoizedProps.value;Ri(Ut,J._currentValue),J._currentValue=Ee;break;case 13:if(J=d.memoizedState,J!==null)return J.dehydrated!==null?(Ri(zi,zi.current&1),d.flags|=128,null):x&d.child.childLanes?Al(a,d,x):(Ri(zi,zi.current&1),a=rl(a,d,x),a!==null?a.sibling:null);Ri(zi,zi.current&1);break;case 19:if(J=(x&d.childLanes)!==0,a.flags&128){if(J)return Sc(a,d,x);d.flags|=128}if(Ee=d.memoizedState,Ee!==null&&(Ee.rendering=null,Ee.tail=null,Ee.lastEffect=null),Ri(zi,zi.current),J)break;return null;case 22:case 23:return d.lanes=0,di(a,d,x)}return rl(a,d,x)}function Ec(a,d){switch(ko(d),d.tag){case 1:return jn(d.type)&&lr(),a=d.flags,a&65536?(d.flags=a&-65537|128,d):null;case 3:return Cs(),Ii(Ke),Ii($e),vu(),a=d.flags,a&65536&&!(a&128)?(d.flags=a&-65537|128,d):null;case 5:return Yl(d),null;case 13:if(Ii(zi),a=d.memoizedState,a!==null&&a.dehydrated!==null){if(d.alternate===null)throw Error(o(340));Qi()}return a=d.flags,a&65536?(d.flags=a&-65537|128,d):null;case 19:return Ii(zi),null;case 4:return Cs(),null;case 10:return Ur(d.type._context),null;case 22:case 23:return Ed(),null;case 24:return null;default:return null}}var hl=!1,js=!1,Zc=typeof WeakSet=="function"?WeakSet:Set,La=null;function ps(a,d){var x=a.ref;if(x!==null)if(typeof x=="function")try{x(null)}catch(J){Ms(a,d,J)}else x.current=null}function pu(a,d,x){try{x()}catch(J){Ms(a,d,J)}}var Cc=!1;function Pc(a,d){if(ba=zr,a=Ho(),si(a)){if("selectionStart"in a)var x={start:a.selectionStart,end:a.selectionEnd};else e:{x=(x=a.ownerDocument)&&x.defaultView||window;var J=x.getSelection&&x.getSelection();if(J&&J.rangeCount!==0){x=J.anchorNode;var Ee=J.anchorOffset,ze=J.focusNode;J=J.focusOffset;try{x.nodeType,ze.nodeType}catch(Mo){x=null;break e}var Ct=0,Zt=-1,pn=-1,rr=0,na=0,Ya=a,jr=null;t:for(;;){for(var uo;Ya!==x||Ee!==0&&Ya.nodeType!==3||(Zt=Ct+Ee),Ya!==ze||J!==0&&Ya.nodeType!==3||(pn=Ct+J),Ya.nodeType===3&&(Ct+=Ya.nodeValue.length),(uo=Ya.firstChild)!==null;)jr=Ya,Ya=uo;for(;;){if(Ya===a)break t;if(jr===x&&++rr===Ee&&(Zt=Ct),jr===ze&&++na===J&&(pn=Ct),(uo=Ya.nextSibling)!==null)break;Ya=jr,jr=Ya.parentNode}Ya=uo}x=Zt===-1||pn===-1?null:{start:Zt,end:pn}}else x=null}x=x||{start:0,end:0}}else x=null;for(Tl={focusedElem:a,selectionRange:x},zr=!1,La=d;La!==null;)if(d=La,a=d.child,(d.subtreeFlags&1028)!==0&&a!==null)a.return=d,La=a;else for(;La!==null;){d=La;try{var Za=d.alternate;if(d.flags&1024)switch(d.tag){case 0:case 11:case 15:break;case 1:if(Za!==null){var gi=Za.memoizedProps,Ps=Za.memoizedState,Wn=d.stateNode,En=Wn.getSnapshotBeforeUpdate(d.elementType===d.type?gi:Rt(d.type,gi),Ps);Wn.__reactInternalSnapshotBeforeUpdate=En}break;case 3:var qn=d.stateNode.containerInfo;if(qn.nodeType===1)qn.textContent="";else if(qn.nodeType===9){var Ca=qn.body;Ca!=null&&(Ca.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(Mo){Ms(d,d.return,Mo)}if(a=d.sibling,a!==null){a.return=d.return,La=a;break}La=d.return}return Za=Cc,Cc=!1,Za}function oc(a,d,x){var J=d.updateQueue;if(J=J!==null?J.lastEffect:null,J!==null){var Ee=J=J.next;do{if((Ee.tag&a)===a){var ze=Ee.destroy;Ee.destroy=void 0,ze!==void 0&&pu(d,x,ze)}Ee=Ee.next}while(Ee!==J)}}function Uc(a,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var x=d=d.next;do{if((x.tag&a)===a){var J=x.create;x.destroy=J()}x=x.next}while(x!==d)}}function ic(a){var d=a.ref;if(d!==null){var x=a.stateNode;switch(a.tag){case 5:a=x;break;default:a=x}typeof d=="function"?d(a):d.current=a}}function dd(a){var d=a.alternate;d!==null&&(a.alternate=null,dd(d)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(d=a.stateNode,d!==null&&(delete d[Es],delete d[Ws],delete d[It],delete d[Pi],delete d[jl])),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}function fd(a){return a.tag===5||a.tag===3||a.tag===4}function Td(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||fd(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function vd(a,d,x){var J=a.tag;if(J===5||J===6)a=a.stateNode,d?x.nodeType===8?x.parentNode.insertBefore(a,d):x.insertBefore(a,d):(x.nodeType===8?(d=x.parentNode,d.insertBefore(a,x)):(d=x,d.appendChild(a)),x=x._reactRootContainer,x!=null||d.onclick!==null||(d.onclick=ks));else if(J!==4&&(a=a.child,a!==null))for(vd(a,d,x),a=a.sibling;a!==null;)vd(a,d,x),a=a.sibling}function gd(a,d,x){var J=a.tag;if(J===5||J===6)a=a.stateNode,d?x.insertBefore(a,d):x.appendChild(a);else if(J!==4&&(a=a.child,a!==null))for(gd(a,d,x),a=a.sibling;a!==null;)gd(a,d,x),a=a.sibling}var yl=null,ru=!1;function zu(a,d,x){for(x=x.child;x!==null;)jd(a,d,x),x=x.sibling}function jd(a,d,x){if(qr&&typeof qr.onCommitFiberUnmount=="function")try{qr.onCommitFiberUnmount(mr,x)}catch(Zt){}switch(x.tag){case 5:js||ps(x,d);case 6:var J=yl,Ee=ru;yl=null,zu(a,d,x),yl=J,ru=Ee,yl!==null&&(ru?(a=yl,x=x.stateNode,a.nodeType===8?a.parentNode.removeChild(x):a.removeChild(x)):yl.removeChild(x.stateNode));break;case 18:yl!==null&&(ru?(a=yl,x=x.stateNode,a.nodeType===8?ql(a.parentNode,x):a.nodeType===1&&ql(a,x),Gn(a)):ql(yl,x.stateNode));break;case 4:J=yl,Ee=ru,yl=x.stateNode.containerInfo,ru=!0,zu(a,d,x),yl=J,ru=Ee;break;case 0:case 11:case 14:case 15:if(!js&&(J=x.updateQueue,J!==null&&(J=J.lastEffect,J!==null))){Ee=J=J.next;do{var ze=Ee,Ct=ze.destroy;ze=ze.tag,Ct!==void 0&&(ze&2||ze&4)&&pu(x,d,Ct),Ee=Ee.next}while(Ee!==J)}zu(a,d,x);break;case 1:if(!js&&(ps(x,d),J=x.stateNode,typeof J.componentWillUnmount=="function"))try{J.props=x.memoizedProps,J.state=x.memoizedState,J.componentWillUnmount()}catch(Zt){Ms(x,d,Zt)}zu(a,d,x);break;case 21:zu(a,d,x);break;case 22:x.mode&1?(js=(J=js)||x.memoizedState!==null,zu(a,d,x),js=J):zu(a,d,x);break;default:zu(a,d,x)}}function kc(a){var d=a.updateQueue;if(d!==null){a.updateQueue=null;var x=a.stateNode;x===null&&(x=a.stateNode=new Zc),d.forEach(function(J){var Ee=nf.bind(null,a,J);x.has(J)||(x.add(J),J.then(Ee,Ee))})}}function au(a,d){var x=d.deletions;if(x!==null)for(var J=0;JEe&&(Ee=Ct),J&=~ze}if(J=Ee,J=en()-J,J=(120>J?120:480>J?480:1080>J?1080:1920>J?1920:3e3>J?3e3:4320>J?4320:1960*sc(J/1960))-J,10a?16:a,Vu===null)var J=!1;else{if(a=Vu,Vu=null,Kc=0,Ui&6)throw Error(o(331));var Ee=Ui;for(Ui|=4,La=a.current;La!==null;){var ze=La,Ct=ze.child;if(La.flags&16){var Zt=ze.deletions;if(Zt!==null){for(var pn=0;pnen()-hd?cc(a,0):Yc|=x),_l(a,d)}function Fd(a,d){d===0&&(a.mode&1?(d=kt,kt<<=1,!(kt&130023424)&&(kt=4194304)):d=1);var x=Bl();a=Xc(a,d),a!==null&&(St(a,d,x),_l(a,x))}function tf(a){var d=a.memoizedState,x=0;d!==null&&(x=d.retryLane),Fd(a,x)}function nf(a,d){var x=0;switch(a.tag){case 13:var J=a.stateNode,Ee=a.memoizedState;Ee!==null&&(x=Ee.retryLane);break;case 19:J=a.stateNode;break;default:throw Error(o(314))}J!==null&&J.delete(d),Fd(a,x)}var Zd;Zd=function(a,d,x){if(a!==null)if(a.memoizedProps!==d.pendingProps||Ke.current)Qo=!0;else{if(!(a.lanes&x)&&!(d.flags&128))return Qo=!1,jc(a,d,x);Qo=!!(a.flags&131072)}else Qo=!1,Qa&&d.flags&1048576&&ui(d,Do,d.index);switch(d.lanes=0,d.tag){case 2:var J=d.type;a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),a=d.pendingProps;var Ee=nn(d,$e.current);da(d,x),Ee=Ju(null,d,J,a,Ee,x);var ze=Ou();return d.flags|=1,typeof Ee=="object"&&Ee!==null&&typeof Ee.render=="function"&&Ee.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,jn(J)?(ze=!0,Zr(d)):ze=!1,d.memoizedState=Ee.state!==null&&Ee.state!==void 0?Ee.state:null,Co(d),Ee.updater=_a,d.stateNode=Ee,Ee._reactInternals=d,Ba(d,J,a,x),d=ts(null,d,J,!0,ze,x)):(d.tag=0,Qa&&ze&&Ja(d),Mi(null,d,Ee,x),d=d.child),d;case 16:J=d.elementType;e:{switch(a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),a=d.pendingProps,Ee=J._init,J=Ee(J._payload),d.type=J,Ee=d.tag=af(J),a=Rt(J,a),Ee){case 0:d=Bi(null,d,J,a,x);break e;case 1:d=Xi(null,d,J,a,x);break e;case 11:d=fs(null,d,J,a,x);break e;case 14:d=Yi(null,d,J,Rt(J.type,a),x);break e}throw Error(o(306,J,""))}return d;case 0:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),Bi(a,d,J,Ee,x);case 1:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),Xi(a,d,J,Ee,x);case 3:e:{if(Kl(d),a===null)throw Error(o(387));J=d.pendingProps,ze=d.memoizedState,Ee=ze.element,Sa(a,d),Nr(d,J,null,x);var Ct=d.memoizedState;if(J=Ct.element,ze.isDehydrated)if(ze={element:J,isDehydrated:!1,cache:Ct.cache,pendingSuspenseBoundaries:Ct.pendingSuspenseBoundaries,transitions:Ct.transitions},d.updateQueue.baseState=ze,d.memoizedState=ze,d.flags&256){Ee=Error(o(423)),d=Xo(a,d,J,x,Ee);break e}else if(J!==Ee){Ee=Error(o(424)),d=Xo(a,d,J,x,Ee);break e}else for(Lo=Yo(d.stateNode.containerInfo.firstChild),Io=d,Qa=!0,ci=null,x=ht(d,null,J,x),d.child=x;x;)x.flags=x.flags&-3|4096,x=x.sibling;else{if(Qi(),J===Ee){d=rl(a,d,x);break e}Mi(a,d,J,x)}d=d.child}return d;case 5:return zs(d),a===null&&Vi(d),J=d.type,Ee=d.pendingProps,ze=a!==null?a.memoizedProps:null,Ct=Ee.children,rs(J,Ee)?Ct=null:ze!==null&&rs(J,ze)&&(d.flags|=32),Ei(a,d),Mi(a,d,Ct,x),d.child;case 6:return a===null&&Vi(d),null;case 13:return Al(a,d,x);case 4:return Hi(d,d.stateNode.containerInfo),J=d.pendingProps,a===null?d.child=Ge(d,null,J,x):Mi(a,d,J,x),d.child;case 11:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),fs(a,d,J,Ee,x);case 7:return Mi(a,d,d.pendingProps,x),d.child;case 8:return Mi(a,d,d.pendingProps.children,x),d.child;case 12:return Mi(a,d,d.pendingProps.children,x),d.child;case 10:e:{if(J=d.type._context,Ee=d.pendingProps,ze=d.memoizedProps,Ct=Ee.value,Ri(Ut,J._currentValue),J._currentValue=Ct,ze!==null)if(ur(ze.value,Ct)){if(ze.children===Ee.children&&!Ke.current){d=rl(a,d,x);break e}}else for(ze=d.child,ze!==null&&(ze.return=d);ze!==null;){var Zt=ze.dependencies;if(Zt!==null){Ct=ze.child;for(var pn=Zt.firstContext;pn!==null;){if(pn.context===J){if(ze.tag===1){pn=Ia(-1,x&-x),pn.tag=2;var rr=ze.updateQueue;if(rr!==null){rr=rr.shared;var na=rr.pending;na===null?pn.next=pn:(pn.next=na.next,na.next=pn),rr.pending=pn}}ze.lanes|=x,pn=ze.alternate,pn!==null&&(pn.lanes|=x),aa(ze.return,x,d),Zt.lanes|=x;break}pn=pn.next}}else if(ze.tag===10)Ct=ze.type===d.type?null:ze.child;else if(ze.tag===18){if(Ct=ze.return,Ct===null)throw Error(o(341));Ct.lanes|=x,Zt=Ct.alternate,Zt!==null&&(Zt.lanes|=x),aa(Ct,x,d),Ct=ze.sibling}else Ct=ze.child;if(Ct!==null)Ct.return=ze;else for(Ct=ze;Ct!==null;){if(Ct===d){Ct=null;break}if(ze=Ct.sibling,ze!==null){ze.return=Ct.return,Ct=ze;break}Ct=Ct.return}ze=Ct}Mi(a,d,Ee.children,x),d=d.child}return d;case 9:return Ee=d.type,J=d.pendingProps.children,da(d,x),Ee=ua(Ee),J=J(Ee),d.flags|=1,Mi(a,d,J,x),d.child;case 14:return J=d.type,Ee=Rt(J,d.pendingProps),Ee=Rt(J.type,Ee),Yi(a,d,J,Ee,x);case 15:return So(a,d,d.type,d.pendingProps,x);case 17:return J=d.type,Ee=d.pendingProps,Ee=d.elementType===J?Ee:Rt(J,Ee),a!==null&&(a.alternate=null,d.alternate=null,d.flags|=2),d.tag=1,jn(J)?(a=!0,Zr(d)):a=!1,da(d,x),ya(d,J,Ee),Ba(d,J,Ee,x),ts(null,d,J,!0,a,x);case 19:return Sc(a,d,x);case 22:return di(a,d,x)}throw Error(o(156,d.tag))};function Ud(a,d){return nt(a,d)}function rf(a,d,x,J){this.tag=a,this.key=x,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=J,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lu(a,d,x,J){return new rf(a,d,x,J)}function td(a){return a=a.prototype,!(!a||!a.isReactComponent)}function af(a){if(typeof a=="function")return td(a)?1:0;if(a!=null){if(a=a.$$typeof,a===ce)return 11;if(a===G)return 14}return 2}function yu(a,d){var x=a.alternate;return x===null?(x=lu(a.tag,d,a.key,a.mode),x.elementType=a.elementType,x.type=a.type,x.stateNode=a.stateNode,x.alternate=a,a.alternate=x):(x.pendingProps=d,x.type=a.type,x.flags=0,x.subtreeFlags=0,x.deletions=null),x.flags=a.flags&14680064,x.childLanes=a.childLanes,x.lanes=a.lanes,x.child=a.child,x.memoizedProps=a.memoizedProps,x.memoizedState=a.memoizedState,x.updateQueue=a.updateQueue,d=a.dependencies,x.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},x.sibling=a.sibling,x.index=a.index,x.ref=a.ref,x}function nd(a,d,x,J,Ee,ze){var Ct=2;if(J=a,typeof a=="function")td(a)&&(Ct=1);else if(typeof a=="string")Ct=5;else e:switch(a){case $:return fc(x.children,Ee,ze,d);case B:Ct=8,Ee|=8;break;case K:return a=lu(12,x,d,Ee|2),a.elementType=K,a.lanes=ze,a;case te:return a=lu(13,x,d,Ee),a.elementType=te,a.lanes=ze,a;case W:return a=lu(19,x,d,Ee),a.elementType=W,a.lanes=ze,a;case k:return rd(x,Ee,ze,d);default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case H:Ct=10;break e;case ie:Ct=9;break e;case ce:Ct=11;break e;case G:Ct=14;break e;case O:Ct=16,J=null;break e}throw Error(o(130,a==null?a:typeof a,""))}return d=lu(Ct,x,d,Ee),d.elementType=a,d.type=J,d.lanes=ze,d}function fc(a,d,x,J){return a=lu(7,a,J,d),a.lanes=x,a}function rd(a,d,x,J){return a=lu(22,a,J,d),a.elementType=k,a.lanes=x,a.stateNode={},a}function xd(a,d,x){return a=lu(6,a,null,d),a.lanes=x,a}function Id(a,d,x){return d=lu(4,a.children!==null?a.children:[],a.key,d),d.lanes=x,d.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},d}function of(a,d,x,J,Ee){this.tag=d,this.containerInfo=a,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xt(0),this.expirationTimes=xt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.identifierPrefix=J,this.onRecoverableError=Ee,this.mutableSourceEagerHydrationData=null}function Ad(a,d,x,J,Ee,ze,Ct,Zt,pn){return a=new of(a,d,x,Zt,pn),d===1?(d=1,ze===!0&&(d|=8)):d=0,ze=lu(3,null,null,d),a.current=ze,ze.stateNode=a,ze.memoizedState={element:J,isDehydrated:x,cache:null,transitions:null,pendingSuspenseBoundaries:null},Co(ze),a}function sf(a,d,x){var J=30&&v+l.length!==h.length&&l.search(e)>-1&&h.charAt(v-2)!==":"&&(h.charAt(v+l.length)!=="-"||h.charAt(v-1)==="-")&&h.charAt(v-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function t(c){return typeof c=="string"&&c.indexOf("@")!==-1}var o="REDACTED (Potential Email Address)";function s(c){return t(c)?(console.warn("This arg looks like an email address, redacting."),o):c}function n(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,h=c||"";return l&&(h=i(c)),v&&(h=s(h)),h}},80234:function(M,b,e){"use strict";Object.defineProperty(b,"__esModule",{value:!0}),b.default=b.GA4=void 0;var i=c(e(51542)),t=c(e(23661)),o=["eventCategory","eventAction","eventLabel","eventValue","hitType"],s=["title","location"],n=["page","hitType"];function c(te){return te&&te.__esModule?te:{default:te}}function l(te,W){if(te==null)return{};var G=v(te,W),O,k;if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(te);for(k=0;k=0)&&Object.prototype.propertyIsEnumerable.call(te,O)&&(G[O]=te[O])}return G}function v(te,W){if(te==null)return{};var G={},O=Object.keys(te),k,Y;for(Y=0;Y=0)&&(G[k]=te[k]);return G}function h(te){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},h(te)}function m(te){return S(te)||p(te)||R(te)||C()}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(te){if(typeof Symbol!="undefined"&&te[Symbol.iterator]!=null||te["@@iterator"]!=null)return Array.from(te)}function S(te){if(Array.isArray(te))return T(te)}function w(te,W){var G=Object.keys(te);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(te);W&&(O=O.filter(function(k){return Object.getOwnPropertyDescriptor(te,k).enumerable})),G.push.apply(G,O)}return G}function y(te){for(var W=1;Wte.length)&&(W=te.length);for(var G=0,O=new Array(W);G2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window=="undefined"||typeof document=="undefined")&&!W._hasLoadedGA){var Y=document.createElement("script");Y.async=!0,Y.src="".concat(k,"?id=").concat(G),O&&Y.setAttribute("nonce",O),document.body.appendChild(Y),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},W._hasLoadedGA=!0}}),B(this,"_toGtagOptions",function(G){if(G){var O={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},k=Object.entries(G).reduce(function(Y,P){var Q=Z(P,2),fe=Q[0],Ce=Q[1];return O[fe]?Y[O[fe]]=Ce:Y[fe]=Ce,Y},{});return k}}),B(this,"initialize",function(G){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!G)throw new Error("Require GA_MEASUREMENT_ID");var k=typeof G=="string"?[{trackingId:G}]:G;W._currentMeasurementId=k[0].trackingId;var Y=O.gaOptions,P=O.gtagOptions,Q=O.nonce,fe=O.testMode,Ce=fe===void 0?!1:fe,ge=O.gtagUrl;if(W._testMode=Ce,Ce||W._loadGA(W._currentMeasurementId,Q,ge),W.isInitialized||(W._gtag("js",new Date),k.forEach(function(Qe){var Ve=y(y(y({},W._toGtagOptions(y(y({},Y),Qe.gaOptions))),P),Qe.gtagOptions);Object.keys(Ve).length?W._gtag("config",Qe.trackingId,Ve):W._gtag("config",Qe.trackingId)})),W.isInitialized=!0,!Ce){var Me=m(W._queueGtag);for(W._queueGtag=[],W._isQueuing=!1;Me.length;){var Re=Me.shift();W._gtag.apply(W,m(Re)),Re[0]==="get"&&(W._isQueuing=!0)}}}),B(this,"set",function(G){if(!G){console.warn("`fieldsObject` is required in .set()");return}if(h(G)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(G).length===0&&console.warn("empty `fieldsObject` given to .set()"),W._gaCommand("set",G)}),B(this,"_gaCommandSendEvent",function(G,O,k,Y,P){W._gtag("event",O,y(y({event_category:G,event_label:k,value:Y},P&&{non_interaction:P.nonInteraction}),W._toGtagOptions(P)))}),B(this,"_gaCommandSendEventParameters",function(){for(var G=arguments.length,O=new Array(G),k=0;k1?O-1:0),Y=1;Y(D[se]==null&&c(!1),D[se])).replace(/\/*\*$/,ee=>D["*"]==null?"":D["*"].replace(/^\/*/,"/"))}function C(N,D,ee){ee===void 0&&(ee="/");let se=typeof D=="string"?(0,i.cP)(D):D,X=W(se.pathname||"/",ee);if(X==null)return null;let re=p(N);S(re);let Ie=null;for(let Se=0;Ie==null&&Se{let Ie={relativePath:X.path||"",caseSensitive:X.caseSensitive===!0,childrenIndex:re,route:X};Ie.relativePath.startsWith("/")&&(Ie.relativePath.startsWith(se)||c(!1),Ie.relativePath=Ie.relativePath.slice(se.length));let Se=G([se,Ie.relativePath]),he=ee.concat(Ie);X.children&&X.children.length>0&&(X.index===!0&&c(!1),p(X.children,D,he,Se)),!(X.path==null&&!X.index)&&D.push({path:Se,score:A(Se,X.index),routesMeta:he})}),D}function S(N){N.sort((D,ee)=>D.score!==ee.score?ee.score-D.score:L(D.routesMeta.map(se=>se.childrenIndex),ee.routesMeta.map(se=>se.childrenIndex)))}const w=/^:\w+$/,y=3,Z=2,F=1,R=10,T=-2,z=N=>N==="*";function A(N,D){let ee=N.split("/"),se=ee.length;return ee.some(z)&&(se+=T),D&&(se+=Z),ee.filter(X=>!z(X)).reduce((X,re)=>X+(w.test(re)?y:re===""?F:R),se)}function L(N,D){return N.length===D.length&&N.slice(0,-1).every((se,X)=>se===D[X])?N[N.length-1]-D[D.length-1]:0}function I(N,D){let{routesMeta:ee}=N,se={},X="/",re=[];for(let Ie=0;Ie{if(de==="*"){let ve=Se[le]||"";Ie=re.slice(0,re.length-ve.length).replace(/(.)\/+$/,"$1")}return We[de]=K(Se[le]||"",de),We},{}),pathname:re,pathnameBase:Ie,pattern:N}}function B(N,D,ee){D===void 0&&(D=!1),ee===void 0&&(ee=!0);let se=[],X="^"+N.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(Ie,Se)=>(se.push(Se),"([^\\/]+)"));return N.endsWith("*")?(se.push("*"),X+=N==="*"||N==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):X+=ee?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(X,D?void 0:"i"),se]}function K(N,D){try{return decodeURIComponent(N)}catch(ee){return N}}function H(N,D){D===void 0&&(D="/");let{pathname:ee,search:se="",hash:X=""}=typeof N=="string"?(0,i.cP)(N):N;return{pathname:ee?ee.startsWith("/")?ee:ie(ee,D):D,search:k(se),hash:Y(X)}}function ie(N,D){let ee=D.replace(/\/+$/,"").split("/");return N.split("/").forEach(X=>{X===".."?ee.length>1&&ee.pop():X!=="."&&ee.push(X)}),ee.length>1?ee.join("/"):"/"}function ce(N,D,ee){let se=typeof N=="string"?(0,i.cP)(N):N,X=N===""||se.pathname===""?"/":se.pathname,re;if(X==null)re=ee;else{let Se=D.length-1;if(X.startsWith("..")){let he=X.split("/");for(;he[0]==="..";)he.shift(),Se-=1;se.pathname=he.join("/")}re=Se>=0?D[Se]:"/"}let Ie=H(se,re);return X&&X!=="/"&&X.endsWith("/")&&!Ie.pathname.endsWith("/")&&(Ie.pathname+="/"),Ie}function te(N){return N===""||N.pathname===""?"/":typeof N=="string"?(0,i.cP)(N).pathname:N.pathname}function W(N,D){if(D==="/")return N;if(!N.toLowerCase().startsWith(D.toLowerCase()))return null;let ee=N.charAt(D.length);return ee&&ee!=="/"?null:N.slice(D.length)||"/"}const G=N=>N.join("/").replace(/\/\/+/g,"/"),O=N=>N.replace(/\/+$/,"").replace(/^\/*/,"/"),k=N=>!N||N==="?"?"":N.startsWith("?")?N:"?"+N,Y=N=>!N||N==="#"?"":N.startsWith("#")?N:"#"+N;function P(N){Q()||c(!1);let{basename:D,navigator:ee}=(0,t.useContext)(o),{hash:se,pathname:X,search:re}=Mt(N),Ie=X;if(D!=="/"){let Se=te(N),he=Se!=null&&Se.endsWith("/");Ie=X==="/"?D+(he?"/":""):G([D,X])}return ee.createHref({pathname:Ie,search:re,hash:se})}function Q(){return(0,t.useContext)(s)!=null}function fe(){return Q()||c(!1),(0,t.useContext)(s).location}function Ce(){return(0,t.useContext)(s).navigationType}function ge(N){Q()||c(!1);let{pathname:D}=fe();return(0,t.useMemo)(()=>$(N,D),[D,N])}function Me(){Q()||c(!1);let{basename:N,navigator:D}=(0,t.useContext)(o),{matches:ee}=(0,t.useContext)(n),{pathname:se}=fe(),X=JSON.stringify(ee.map(Se=>Se.pathnameBase)),re=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{re.current=!0}),(0,t.useCallback)(function(Se,he){if(he===void 0&&(he={}),!re.current)return;if(typeof Se=="number"){D.go(Se);return}let We=ce(Se,JSON.parse(X),se);N!=="/"&&(We.pathname=G([N,We.pathname])),(he.replace?D.replace:D.push)(We,he.state)},[N,D,X,se])}const Re=(0,t.createContext)(null);function Qe(){return(0,t.useContext)(Re)}function Ve(N){let D=(0,t.useContext)(n).outlet;return D&&(0,t.createElement)(Re.Provider,{value:N},D)}function qe(){let{matches:N}=(0,t.useContext)(n),D=N[N.length-1];return D?D.params:{}}function Mt(N){let{matches:D}=(0,t.useContext)(n),{pathname:ee}=fe(),se=JSON.stringify(D.map(X=>X.pathnameBase));return(0,t.useMemo)(()=>ce(N,JSON.parse(se),ee),[N,se,ee])}function wt(N,D){Q()||c(!1);let{matches:ee}=(0,t.useContext)(n),se=ee[ee.length-1],X=se?se.params:{},re=se?se.pathname:"/",Ie=se?se.pathnameBase:"/",Se=se&&se.route,he=fe(),We;if(D){var de;let Ze=typeof D=="string"?(0,i.cP)(D):D;Ie==="/"||(de=Ze.pathname)!=null&&de.startsWith(Ie)||c(!1),We=Ze}else We=he;let le=We.pathname||"/",ve=Ie==="/"?le:le.slice(Ie.length)||"/",xe=C(N,{pathname:ve});return mt(xe&&xe.map(Ze=>Object.assign({},Ze,{params:Object.assign({},X,Ze.params),pathname:G([Ie,Ze.pathname]),pathnameBase:Ze.pathnameBase==="/"?Ie:G([Ie,Ze.pathnameBase])})),ee)}function mt(N,D){return D===void 0&&(D=[]),N==null?null:N.reduceRight((ee,se,X)=>(0,t.createElement)(n.Provider,{children:se.route.element!==void 0?se.route.element:ee,value:{outlet:ee,matches:D.concat(N.slice(0,X+1))}}),null)}function Nt(N){let{basename:D,children:ee,initialEntries:se,initialIndex:X}=N,re=(0,t.useRef)();re.current==null&&(re.current=(0,i.PP)({initialEntries:se,initialIndex:X}));let Ie=re.current,[Se,he]=(0,t.useState)({action:Ie.action,location:Ie.location});return(0,t.useLayoutEffect)(()=>Ie.listen(he),[Ie]),(0,t.createElement)(Fe,{basename:D,children:ee,location:Se.location,navigationType:Se.action,navigator:Ie})}function ke(N){let{to:D,replace:ee,state:se}=N;Q()||c(!1);let X=Me();return(0,t.useEffect)(()=>{X(D,{replace:ee,state:se})}),null}function He(N){return Ve(N.context)}function et(N){c(!1)}function Fe(N){let{basename:D="/",children:ee=null,location:se,navigationType:X=i.aU.Pop,navigator:re,static:Ie=!1}=N;Q()&&c(!1);let Se=O(D),he=(0,t.useMemo)(()=>({basename:Se,navigator:re,static:Ie}),[Se,re,Ie]);typeof se=="string"&&(se=(0,i.cP)(se));let{pathname:We="/",search:de="",hash:le="",state:ve=null,key:xe="default"}=se,Ze=(0,t.useMemo)(()=>{let pe=W(We,Se);return pe==null?null:{pathname:pe,search:de,hash:le,state:ve,key:xe}},[Se,We,de,le,ve,xe]);return Ze==null?null:(0,t.createElement)(o.Provider,{value:he},(0,t.createElement)(s.Provider,{children:ee,value:{location:Ze,navigationType:X}}))}function ue(N){let{children:D,location:ee}=N;return wt(V(D),ee)}function V(N){let D=[];return t.Children.forEach(N,ee=>{if(!(0,t.isValidElement)(ee))return;if(ee.type===t.Fragment){D.push.apply(D,V(ee.props.children));return}ee.type!==et&&c(!1);let se={caseSensitive:ee.props.caseSensitive,element:ee.props.element,index:ee.props.index,path:ee.props.path};ee.props.children&&(se.children=V(ee.props.children)),D.push(se)}),D}function U(N){return mt(N)}},88299:function(M,b,e){"use strict";var i=e(58757),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(v,h,m){var C,p={},S=null,w=null;m!==void 0&&(S=""+m),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(w=h.ref);for(C in h)s.call(h,C)&&!c.hasOwnProperty(C)&&(p[C]=h[C]);if(v&&v.defaultProps)for(C in h=v.defaultProps,h)p[C]===void 0&&(p[C]=h[C]);return{$$typeof:t,type:v,key:S,ref:w,props:p,_owner:n.current}}b.Fragment=o,b.jsx=l,b.jsxs=l},34028:function(M,b){"use strict";var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),C=Symbol.iterator;function p(P){return P===null||typeof P!="object"?null:(P=C&&P[C]||P["@@iterator"],typeof P=="function"?P:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,y={};function Z(P,Q,fe){this.props=P,this.context=Q,this.refs=y,this.updater=fe||S}Z.prototype.isReactComponent={},Z.prototype.setState=function(P,Q){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,Q,"setState")},Z.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function F(){}F.prototype=Z.prototype;function R(P,Q,fe){this.props=P,this.context=Q,this.refs=y,this.updater=fe||S}var T=R.prototype=new F;T.constructor=R,w(T,Z.prototype),T.isPureReactComponent=!0;var z=Array.isArray,A=Object.prototype.hasOwnProperty,L={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function $(P,Q,fe){var Ce,ge={},Me=null,Re=null;if(Q!=null)for(Ce in Q.ref!==void 0&&(Re=Q.ref),Q.key!==void 0&&(Me=""+Q.key),Q)A.call(Q,Ce)&&!I.hasOwnProperty(Ce)&&(ge[Ce]=Q[Ce]);var Qe=arguments.length-2;if(Qe===1)ge.children=fe;else if(1=0;--P){var Q=this.tryEntries[P],fe=Q.completion;if(Q.tryLoc==="root")return Y("end");if(Q.tryLoc<=this.prev){var Ce=t.call(Q,"catchLoc"),ge=t.call(Q,"finallyLoc");if(Ce&&ge){if(this.prev=0;--Y){var P=this.tryEntries[Y];if(P.tryLoc<=this.prev&&t.call(P,"finallyLoc")&&this.prev=0;--k){var Y=this.tryEntries[k];if(Y.finallyLoc===O)return this.complete(Y.completion,Y.afterLoc),ce(Y),Z}},catch:function(O){for(var k=this.tryEntries.length-1;k>=0;--k){var Y=this.tryEntries[k];if(Y.tryLoc===O){var P=Y.completion;if(P.type==="throw"){var Q=P.arg;ce(Y)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function(O,k,Y){return this.delegate={iterator:W(O),resultName:k,nextLoc:Y},this.method==="next"&&(this.arg=s),Z}},e}(M.exports);try{regeneratorRuntime=b}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},20759:function(M,b,e){"use strict";var i=function(){if(typeof Map!="undefined")return Map;function te(W,G){var O=-1;return W.some(function(k,Y){return k[0]===G?(O=Y,!0):!1}),O}return function(){function W(){this.__entries__=[]}return Object.defineProperty(W.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),W.prototype.get=function(G){var O=te(this.__entries__,G),k=this.__entries__[O];return k&&k[1]},W.prototype.set=function(G,O){var k=te(this.__entries__,G);~k?this.__entries__[k][1]=O:this.__entries__.push([G,O])},W.prototype.delete=function(G){var O=this.__entries__,k=te(O,G);~k&&O.splice(k,1)},W.prototype.has=function(G){return!!~te(this.__entries__,G)},W.prototype.clear=function(){this.__entries__.splice(0)},W.prototype.forEach=function(G,O){O===void 0&&(O=null);for(var k=0,Y=this.__entries__;k0},te.prototype.connect_=function(){!t||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(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)},te.prototype.disconnect_=function(){!t||!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)},te.prototype.onTransitionEnd_=function(W){var G=W.propertyName,O=G===void 0?"":G,k=v.some(function(Y){return!!~O.indexOf(Y)});k&&this.refresh()},te.getInstance=function(){return this.instance_||(this.instance_=new te),this.instance_},te.instance_=null,te}(),C=function(te,W){for(var G=0,O=Object.keys(W);G0},te}(),H=typeof WeakMap!="undefined"?new WeakMap:new i,ie=function(){function te(W){if(!(this instanceof te))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var G=m.getInstance(),O=new K(W,G,this);H.set(this,O)}return te}();["observe","unobserve","disconnect"].forEach(function(te){ie.prototype[te]=function(){var W;return(W=H.get(this))[te].apply(W,arguments)}});var ce=function(){return typeof o.ResizeObserver!="undefined"?o.ResizeObserver:ie}();b.Z=ce},68945:function(M,b){"use strict";function e(O,k){var Y=O.length;O.push(k);e:for(;0>>1,Q=O[P];if(0>>1;Po(ge,Y))Meo(Re,ge)?(O[P]=Re,O[Me]=Y,P=Me):(O[P]=ge,O[Ce]=Y,P=Ce);else if(Meo(Re,Y))O[P]=Re,O[Me]=Y,P=Me;else break e}}return k}function o(O,k){var Y=O.sortIndex-k.sortIndex;return Y!==0?Y:O.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;b.unstable_now=function(){return s.now()}}else{var n=Date,c=n.now();b.unstable_now=function(){return n.now()-c}}var l=[],v=[],h=1,m=null,C=3,p=!1,S=!1,w=!1,y=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(O){for(var k=i(v);k!==null;){if(k.callback===null)t(v);else if(k.startTime<=O)t(v),k.sortIndex=k.expirationTime,e(l,k);else break;k=i(v)}}function T(O){if(w=!1,R(O),!S)if(i(l)!==null)S=!0,W(z);else{var k=i(v);k!==null&&G(T,k.startTime-O)}}function z(O,k){S=!1,w&&(w=!1,Z(I),I=-1),p=!0;var Y=C;try{for(R(k),m=i(l);m!==null&&(!(m.expirationTime>k)||O&&!K());){var P=m.callback;if(typeof P=="function"){m.callback=null,C=m.priorityLevel;var Q=P(m.expirationTime<=k);k=b.unstable_now(),typeof Q=="function"?m.callback=Q:m===i(l)&&t(l),R(k)}else t(l);m=i(l)}if(m!==null)var fe=!0;else{var Ce=i(v);Ce!==null&&G(T,Ce.startTime-k),fe=!1}return fe}finally{m=null,C=Y,p=!1}}var A=!1,L=null,I=-1,$=5,B=-1;function K(){return!(b.unstable_now()-B<$)}function H(){if(L!==null){var O=b.unstable_now();B=O;var k=!0;try{k=L(!0,O)}finally{k?ie():(A=!1,L=null)}}else A=!1}var ie;if(typeof F=="function")ie=function(){F(H)};else if(typeof MessageChannel!="undefined"){var ce=new MessageChannel,te=ce.port2;ce.port1.onmessage=H,ie=function(){te.postMessage(null)}}else ie=function(){y(H,0)};function W(O){L=O,A||(A=!0,ie())}function G(O,k){I=y(function(){O(b.unstable_now())},k)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(O){O.callback=null},b.unstable_continueExecution=function(){S||p||(S=!0,W(z))},b.unstable_forceFrameRate=function(O){0>O||125P?(O.sortIndex=Y,e(v,O),i(l)===null&&O===i(v)&&(w?(Z(I),I=-1):w=!0,G(T,Y-P))):(O.sortIndex=Q,e(l,O),S||p||(S=!0,W(z))),O},b.unstable_shouldYield=K,b.unstable_wrapCallback=function(O){var k=C;return function(){var Y=C;C=k;try{return O.apply(this,arguments)}finally{C=Y}}}},52090:function(M,b,e){"use strict";M.exports=e(68945)},57761:function(M){"use strict";function b(e,i){if(e===i)return!0;if(!e||!i)return!1;var t=Object.keys(e),o=Object.keys(i),s=t.length;if(o.length!==s)return!1;for(var n=0;n{le(ve,xe,de)}):de.forEach((ve,xe)=>le(xe,ve,de))}function S(de){const le=de[o];return le?le.type_:Array.isArray(de)?1:R(de)?2:T(de)?3:0}function w(de,le){return S(de)===2?de.has(le):Object.prototype.hasOwnProperty.call(de,le)}function y(de,le){return S(de)===2?de.get(le):de[le]}function Z(de,le,ve){const xe=S(de);xe===2?de.set(le,ve):xe===3?de.add(ve):de[le]=ve}function F(de,le){return de===le?de!==0||1/de===1/le:de!==de&&le!==le}function R(de){return de instanceof Map}function T(de){return de instanceof Set}function z(de){return de.copy_||de.base_}function A(de,le){if(R(de))return new Map(de);if(T(de))return new Set(de);if(Array.isArray(de))return Array.prototype.slice.call(de);if(!le&&m(de))return c(de)?La({},de):Object.assign(Object.create(null),de);const ve=Object.getOwnPropertyDescriptors(de);delete ve[o];let xe=Reflect.ownKeys(ve);for(let Ze=0;Ze1&&(de.set=de.add=de.clear=de.delete=I),Object.freeze(de),le&&p(de,(ve,xe)=>L(xe,!0),!0)),de}function I(){n(2)}function $(de){return Object.isFrozen(de)}var B={};function K(de){const le=B[de];return le||n(0,de),le}function H(de,le){B[de]||(B[de]=le)}var ie;function ce(){return ie}function te(de,le){return{drafts_:[],parent_:de,immer_:le,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function W(de,le){le&&(K("Patches"),de.patches_=[],de.inversePatches_=[],de.patchListener_=le)}function G(de){O(de),de.drafts_.forEach(Y),de.drafts_=null}function O(de){de===ie&&(ie=de.parent_)}function k(de){return ie=te(ie,de)}function Y(de){const le=de[o];le.type_===0||le.type_===1?le.revoke_():le.revoked_=!0}function P(de,le){le.unfinalizedDrafts_=le.drafts_.length;const ve=le.drafts_[0];return de!==void 0&&de!==ve?(ve[o].modified_&&(G(le),n(4)),v(de)&&(de=Q(le,de),le.parent_||Ce(le,de)),le.patches_&&K("Patches").generateReplacementPatches_(ve[o].base_,de,le.patches_,le.inversePatches_)):de=Q(le,ve,[]),G(le),le.patches_&&le.patchListener_(le.patches_,le.inversePatches_),de!==i?de:void 0}function Q(de,le,ve){if($(le))return le;const xe=le[o];if(!xe)return p(le,(Ze,pe)=>fe(de,xe,le,Ze,pe,ve),!0),le;if(xe.scope_!==de)return le;if(!xe.modified_)return Ce(de,xe.base_,!0),xe.base_;if(!xe.finalized_){xe.finalized_=!0,xe.scope_.unfinalizedDrafts_--;const Ze=xe.copy_;let pe=Ze,Je=!1;xe.type_===3&&(pe=new Set(Ze),Ze.clear(),Je=!0),p(pe,(Ae,oe)=>fe(de,xe,Ze,Ae,oe,ve,Je)),Ce(de,Ze,!1),ve&&de.patches_&&K("Patches").generatePatches_(xe,ve,de.patches_,de.inversePatches_)}return xe.copy_}function fe(de,le,ve,xe,Ze,pe,Je){if(l(Ze)){const Ae=pe&&le&&le.type_!==3&&!w(le.assigned_,xe)?pe.concat(xe):void 0,oe=Q(de,Ze,Ae);if(Z(ve,xe,oe),l(oe))de.canAutoFreeze_=!1;else return}else Je&&ve.add(Ze);if(v(Ze)&&!$(Ze)){if(!de.immer_.autoFreeze_&&de.unfinalizedDrafts_<1)return;Q(de,Ze),(!le||!le.scope_.parent_)&&Ce(de,Ze)}}function Ce(de,le,ve=!1){!de.parent_&&de.immer_.autoFreeze_&&de.canAutoFreeze_&&L(le,ve)}function ge(de,le){const ve=Array.isArray(de),xe={type_:ve?1:0,scope_:le?le.scope_:ce(),modified_:!1,finalized_:!1,assigned_:{},parent_:le,base_:de,draft_:null,copy_:null,revoke_:null,isManual_:!1};let Ze=xe,pe=Me;ve&&(Ze=[xe],pe=Re);const{revoke:Je,proxy:Ae}=Proxy.revocable(Ze,pe);return xe.draft_=Ae,xe.revoke_=Je,Ae}var Me={get(de,le){if(le===o)return de;const ve=z(de);if(!w(ve,le))return Ve(de,ve,le);const xe=ve[le];return de.finalized_||!v(xe)?xe:xe===Qe(de.base_,le)?(wt(de),de.copy_[le]=Nt(xe,de)):xe},has(de,le){return le in z(de)},ownKeys(de){return Reflect.ownKeys(z(de))},set(de,le,ve){const xe=qe(z(de),le);if(xe!=null&&xe.set)return xe.set.call(de.draft_,ve),!0;if(!de.modified_){const Ze=Qe(z(de),le),pe=Ze==null?void 0:Ze[o];if(pe&&pe.base_===ve)return de.copy_[le]=ve,de.assigned_[le]=!1,!0;if(F(ve,Ze)&&(ve!==void 0||w(de.base_,le)))return!0;wt(de),Mt(de)}return de.copy_[le]===ve&&(ve!==void 0||le in de.copy_)||Number.isNaN(ve)&&Number.isNaN(de.copy_[le])||(de.copy_[le]=ve,de.assigned_[le]=!0),!0},deleteProperty(de,le){return Qe(de.base_,le)!==void 0||le in de.base_?(de.assigned_[le]=!1,wt(de),Mt(de)):delete de.assigned_[le],de.copy_&&delete de.copy_[le],!0},getOwnPropertyDescriptor(de,le){const ve=z(de),xe=Reflect.getOwnPropertyDescriptor(ve,le);return xe&&{writable:!0,configurable:de.type_!==1||le!=="length",enumerable:xe.enumerable,value:ve[le]}},defineProperty(){n(11)},getPrototypeOf(de){return c(de.base_)},setPrototypeOf(){n(12)}},Re={};p(Me,(de,le)=>{Re[de]=function(){return arguments[0]=arguments[0][0],le.apply(this,arguments)}}),Re.deleteProperty=function(de,le){return Re.set.call(this,de,le,void 0)},Re.set=function(de,le,ve){return Me.set.call(this,de[0],le,ve,de[0])};function Qe(de,le){const ve=de[o];return(ve?z(ve):de)[le]}function Ve(de,le,ve){var Ze;const xe=qe(le,ve);return xe?"value"in xe?xe.value:(Ze=xe.get)==null?void 0:Ze.call(de.draft_):void 0}function qe(de,le){if(!(le in de))return;let ve=c(de);for(;ve;){const xe=Object.getOwnPropertyDescriptor(ve,le);if(xe)return xe;ve=c(ve)}}function Mt(de){de.modified_||(de.modified_=!0,de.parent_&&Mt(de.parent_))}function wt(de){de.copy_||(de.copy_=A(de.base_,de.scope_.immer_.useStrictShallowCopy_))}var mt=class{constructor(de){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(le,ve,xe)=>{if(typeof le=="function"&&typeof ve!="function"){const pe=ve;ve=le;const Je=this;return function(oe=pe,...ye){return Je.produce(oe,Be=>ve.call(this,Be,...ye))}}typeof ve!="function"&&n(6),xe!==void 0&&typeof xe!="function"&&n(7);let Ze;if(v(le)){const pe=k(this),Je=Nt(le,void 0);let Ae=!0;try{Ze=ve(Je),Ae=!1}finally{Ae?G(pe):O(pe)}return W(pe,xe),P(Ze,pe)}else if(!le||typeof le!="object"){if(Ze=ve(le),Ze===void 0&&(Ze=le),Ze===i&&(Ze=void 0),this.autoFreeze_&&L(Ze,!0),xe){const pe=[],Je=[];K("Patches").generateReplacementPatches_(le,Ze,pe,Je),xe(pe,Je)}return Ze}else n(1,le)},this.produceWithPatches=(le,ve)=>{if(typeof le=="function")return(Je,...Ae)=>this.produceWithPatches(Je,oe=>le(oe,...Ae));let xe,Ze;return[this.produce(le,ve,(Je,Ae)=>{xe=Je,Ze=Ae}),xe,Ze]},typeof(de==null?void 0:de.autoFreeze)=="boolean"&&this.setAutoFreeze(de.autoFreeze),typeof(de==null?void 0:de.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(de.useStrictShallowCopy)}createDraft(de){v(de)||n(8),l(de)&&(de=ke(de));const le=k(this),ve=Nt(de,void 0);return ve[o].isManual_=!0,O(le),ve}finishDraft(de,le){const ve=de&&de[o];(!ve||!ve.isManual_)&&n(9);const{scope_:xe}=ve;return W(xe,le),P(void 0,xe)}setAutoFreeze(de){this.autoFreeze_=de}setUseStrictShallowCopy(de){this.useStrictShallowCopy_=de}applyPatches(de,le){let ve;for(ve=le.length-1;ve>=0;ve--){const Ze=le[ve];if(Ze.path.length===0&&Ze.op==="replace"){de=Ze.value;break}}ve>-1&&(le=le.slice(ve+1));const xe=K("Patches").applyPatches_;return l(de)?xe(de,le):this.produce(de,Ze=>xe(Ze,le))}};function Nt(de,le){const ve=R(de)?K("MapSet").proxyMap_(de,le):T(de)?K("MapSet").proxySet_(de,le):ge(de,le);return(le?le.scope_:ce()).drafts_.push(ve),ve}function ke(de){return l(de)||n(10,de),He(de)}function He(de){if(!v(de)||$(de))return de;const le=de[o];let ve;if(le){if(!le.modified_)return le.base_;le.finalized_=!0,ve=A(de,le.scope_.immer_.useStrictShallowCopy_)}else ve=A(de,!0);return p(ve,(xe,Ze)=>{Z(ve,xe,He(Ze))}),le&&(le.finalized_=!1),ve}function et(){const le="replace",ve="add",xe="remove";function Ze(Pe,we,Le,Ye){switch(Pe.type_){case 0:case 2:return Je(Pe,we,Le,Ye);case 1:return pe(Pe,we,Le,Ye);case 3:return Ae(Pe,we,Le,Ye)}}function pe(Pe,we,Le,Ye){let{base_:Ue,assigned_:dt}=Pe,bt=Pe.copy_;bt.length{const At=y(Ue,bt),Ot=y(dt,bt),jt=ft?w(Ue,bt)?le:ve:xe;if(At===Ot&&jt===le)return;const Gt=we.concat(bt);Le.push(jt===xe?{op:jt,path:Gt}:{op:jt,path:Gt,value:Ot}),Ye.push(jt===ve?{op:xe,path:Gt}:jt===xe?{op:ve,path:Gt,value:De(At)}:{op:le,path:Gt,value:De(At)})})}function Ae(Pe,we,Le,Ye){let{base_:Ue,copy_:dt}=Pe,bt=0;Ue.forEach(ft=>{if(!dt.has(ft)){const At=we.concat([bt]);Le.push({op:xe,path:At,value:ft}),Ye.unshift({op:ve,path:At,value:ft})}bt++}),bt=0,dt.forEach(ft=>{if(!Ue.has(ft)){const At=we.concat([bt]);Le.push({op:ve,path:At,value:ft}),Ye.unshift({op:xe,path:At,value:ft})}bt++})}function oe(Pe,we,Le,Ye){Le.push({op:le,path:[],value:we===i?void 0:we}),Ye.push({op:le,path:[],value:Pe})}function ye(Pe,we){return we.forEach(Le=>{const{path:Ye,op:Ue}=Le;let dt=Pe;for(let Ot=0;Ot[Le,Be(Ye)]));if(T(Pe))return new Set(Array.from(Pe).map(Be));const we=Object.create(c(Pe));for(const Le in Pe)we[Le]=Be(Pe[Le]);return w(Pe,t)&&(we[t]=Pe[t]),we}function De(Pe){return l(Pe)?Be(Pe):Pe}H("Patches",{applyPatches_:ye,generatePatches_:Ze,generateReplacementPatches_:oe})}function Fe(){class de extends Map{constructor(oe,ye){super(),this[o]={type_:2,parent_:ye,scope_:ye?ye.scope_:ce(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:oe,draft_:this,isManual_:!1,revoked_:!1}}get size(){return z(this[o]).size}has(oe){return z(this[o]).has(oe)}set(oe,ye){const Be=this[o];return Je(Be),(!z(Be).has(oe)||z(Be).get(oe)!==ye)&&(ve(Be),Mt(Be),Be.assigned_.set(oe,!0),Be.copy_.set(oe,ye),Be.assigned_.set(oe,!0)),this}delete(oe){if(!this.has(oe))return!1;const ye=this[o];return Je(ye),ve(ye),Mt(ye),ye.base_.has(oe)?ye.assigned_.set(oe,!1):ye.assigned_.delete(oe),ye.copy_.delete(oe),!0}clear(){const oe=this[o];Je(oe),z(oe).size&&(ve(oe),Mt(oe),oe.assigned_=new Map,p(oe.base_,ye=>{oe.assigned_.set(ye,!1)}),oe.copy_.clear())}forEach(oe,ye){const Be=this[o];z(Be).forEach((De,Pe,we)=>{oe.call(ye,this.get(Pe),Pe,this)})}get(oe){const ye=this[o];Je(ye);const Be=z(ye).get(oe);if(ye.finalized_||!v(Be)||Be!==ye.base_.get(oe))return Be;const De=Nt(Be,ye);return ve(ye),ye.copy_.set(oe,De),De}keys(){return z(this[o]).keys()}values(){const oe=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const ye=oe.next();return ye.done?ye:{done:!1,value:this.get(ye.value)}}}}entries(){const oe=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const ye=oe.next();if(ye.done)return ye;const Be=this.get(ye.value);return{done:!1,value:[ye.value,Be]}}}}[Symbol.iterator](){return this.entries()}}function le(Ae,oe){return new de(Ae,oe)}function ve(Ae){Ae.copy_||(Ae.assigned_=new Map,Ae.copy_=new Map(Ae.base_))}class xe extends Set{constructor(oe,ye){super(),this[o]={type_:3,parent_:ye,scope_:ye?ye.scope_:ce(),modified_:!1,finalized_:!1,copy_:void 0,base_:oe,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return z(this[o]).size}has(oe){const ye=this[o];return Je(ye),ye.copy_?!!(ye.copy_.has(oe)||ye.drafts_.has(oe)&&ye.copy_.has(ye.drafts_.get(oe))):ye.base_.has(oe)}add(oe){const ye=this[o];return Je(ye),this.has(oe)||(pe(ye),Mt(ye),ye.copy_.add(oe)),this}delete(oe){if(!this.has(oe))return!1;const ye=this[o];return Je(ye),pe(ye),Mt(ye),ye.copy_.delete(oe)||(ye.drafts_.has(oe)?ye.copy_.delete(ye.drafts_.get(oe)):!1)}clear(){const oe=this[o];Je(oe),z(oe).size&&(pe(oe),Mt(oe),oe.copy_.clear())}values(){const oe=this[o];return Je(oe),pe(oe),oe.copy_.values()}entries(){const oe=this[o];return Je(oe),pe(oe),oe.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(oe,ye){const Be=this.values();let De=Be.next();for(;!De.done;)oe.call(ye,De.value,De.value,this),De=Be.next()}}function Ze(Ae,oe){return new xe(Ae,oe)}function pe(Ae){Ae.copy_||(Ae.copy_=new Set,Ae.base_.forEach(oe=>{if(v(oe)){const ye=Nt(oe,Ae);Ae.drafts_.set(oe,ye),Ae.copy_.add(ye)}else Ae.copy_.add(oe)}))}function Je(Ae){Ae.revoked_&&n(3,JSON.stringify(z(Ae)))}H("MapSet",{proxyMap_:le,proxySet_:Ze})}var ue=new mt,V=ue.produce,U=ue.produceWithPatches.bind(ue),N=ue.setAutoFreeze.bind(ue),D=ue.setUseStrictShallowCopy.bind(ue),ee=ue.applyPatches.bind(ue),se=ue.createDraft.bind(ue),X=ue.finishDraft.bind(ue);function re(de){return de}function Ie(de){return de}var Se=e(58757);function he(de){var le=(0,Se.useState)(function(){return L(typeof de=="function"?de():de,!0)}),ve=le[1];return[le[0],(0,Se.useCallback)(function(xe){ve(typeof xe=="function"?V(xe):L(xe))},[])]}function We(de,le,ve){var xe=f(function(){return r(de)},[de]);return u(xe,le,ve)}},62118:function(M){"use strict";var b=!1,e=function(){};if(b){var i=function(o,s){var n=arguments.length;s=new Array(n>1?n-1:0);for(var c=1;c2?n-2:0);for(var c=2;ce.length)&&(i=e.length);for(var t=0,o=new Array(i);t=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(p){throw p},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function R(te,W){if(te){if(typeof te=="string")return T(te,W);var G=Object.prototype.toString.call(te).slice(8,-1);if(G==="Object"&&te.constructor&&(G=te.constructor.name),G==="Map"||G==="Set")return Array.from(te);if(G==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(G))return T(te,W)}}function T(te,W){(W==null||W>te.length)&&(W=te.length);for(var G=0,O=new Array(W);G2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window=="undefined"||typeof document=="undefined")&&!W._hasLoadedGA){var Y=document.createElement("script");Y.async=!0,Y.src="".concat(k,"?id=").concat(G),O&&Y.setAttribute("nonce",O),document.body.appendChild(Y),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},W._hasLoadedGA=!0}}),B(this,"_toGtagOptions",function(G){if(G){var O={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},k=Object.entries(G).reduce(function(Y,P){var Q=Z(P,2),fe=Q[0],Ce=Q[1];return O[fe]?Y[O[fe]]=Ce:Y[fe]=Ce,Y},{});return k}}),B(this,"initialize",function(G){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!G)throw new Error("Require GA_MEASUREMENT_ID");var k=typeof G=="string"?[{trackingId:G}]:G;W._currentMeasurementId=k[0].trackingId;var Y=O.gaOptions,P=O.gtagOptions,Q=O.nonce,fe=O.testMode,Ce=fe===void 0?!1:fe,ge=O.gtagUrl;if(W._testMode=Ce,Ce||W._loadGA(W._currentMeasurementId,Q,ge),W.isInitialized||(W._gtag("js",new Date),k.forEach(function(Qe){var Ve=y(y(y({},W._toGtagOptions(y(y({},Y),Qe.gaOptions))),P),Qe.gtagOptions);Object.keys(Ve).length?W._gtag("config",Qe.trackingId,Ve):W._gtag("config",Qe.trackingId)})),W.isInitialized=!0,!Ce){var Me=m(W._queueGtag);for(W._queueGtag=[],W._isQueuing=!1;Me.length;){var Ne=Me.shift();W._gtag.apply(W,m(Ne)),Ne[0]==="get"&&(W._isQueuing=!0)}}}),B(this,"set",function(G){if(!G){console.warn("`fieldsObject` is required in .set()");return}if(h(G)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(G).length===0&&console.warn("empty `fieldsObject` given to .set()"),W._gaCommand("set",G)}),B(this,"_gaCommandSendEvent",function(G,O,k,Y,P){W._gtag("event",O,y(y({event_category:G,event_label:k,value:Y},P&&{non_interaction:P.nonInteraction}),W._toGtagOptions(P)))}),B(this,"_gaCommandSendEventParameters",function(){for(var G=arguments.length,O=new Array(G),k=0;k1?O-1:0),Y=1;Y(D[se]==null&&c(!1),D[se])).replace(/\/*\*$/,ee=>D["*"]==null?"":D["*"].replace(/^\/*/,"/"))}function C(N,D,ee){ee===void 0&&(ee="/");let se=typeof D=="string"?(0,i.cP)(D):D,X=W(se.pathname||"/",ee);if(X==null)return null;let re=p(N);S(re);let Ie=null;for(let Se=0;Ie==null&&Se{let Ie={relativePath:X.path||"",caseSensitive:X.caseSensitive===!0,childrenIndex:re,route:X};Ie.relativePath.startsWith("/")&&(Ie.relativePath.startsWith(se)||c(!1),Ie.relativePath=Ie.relativePath.slice(se.length));let Se=G([se,Ie.relativePath]),he=ee.concat(Ie);X.children&&X.children.length>0&&(X.index===!0&&c(!1),p(X.children,D,he,Se)),!(X.path==null&&!X.index)&&D.push({path:Se,score:A(Se,X.index),routesMeta:he})}),D}function S(N){N.sort((D,ee)=>D.score!==ee.score?ee.score-D.score:L(D.routesMeta.map(se=>se.childrenIndex),ee.routesMeta.map(se=>se.childrenIndex)))}const w=/^:\w+$/,y=3,Z=2,F=1,R=10,T=-2,z=N=>N==="*";function A(N,D){let ee=N.split("/"),se=ee.length;return ee.some(z)&&(se+=T),D&&(se+=Z),ee.filter(X=>!z(X)).reduce((X,re)=>X+(w.test(re)?y:re===""?F:R),se)}function L(N,D){return N.length===D.length&&N.slice(0,-1).every((se,X)=>se===D[X])?N[N.length-1]-D[D.length-1]:0}function I(N,D){let{routesMeta:ee}=N,se={},X="/",re=[];for(let Ie=0;Ie{if(de==="*"){let ve=Se[le]||"";Ie=re.slice(0,re.length-ve.length).replace(/(.)\/+$/,"$1")}return We[de]=K(Se[le]||"",de),We},{}),pathname:re,pathnameBase:Ie,pattern:N}}function B(N,D,ee){D===void 0&&(D=!1),ee===void 0&&(ee=!0);let se=[],X="^"+N.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(Ie,Se)=>(se.push(Se),"([^\\/]+)"));return N.endsWith("*")?(se.push("*"),X+=N==="*"||N==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):X+=ee?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)",[new RegExp(X,D?void 0:"i"),se]}function K(N,D){try{return decodeURIComponent(N)}catch(ee){return N}}function H(N,D){D===void 0&&(D="/");let{pathname:ee,search:se="",hash:X=""}=typeof N=="string"?(0,i.cP)(N):N;return{pathname:ee?ee.startsWith("/")?ee:ie(ee,D):D,search:k(se),hash:Y(X)}}function ie(N,D){let ee=D.replace(/\/+$/,"").split("/");return N.split("/").forEach(X=>{X===".."?ee.length>1&&ee.pop():X!=="."&&ee.push(X)}),ee.length>1?ee.join("/"):"/"}function ce(N,D,ee){let se=typeof N=="string"?(0,i.cP)(N):N,X=N===""||se.pathname===""?"/":se.pathname,re;if(X==null)re=ee;else{let Se=D.length-1;if(X.startsWith("..")){let he=X.split("/");for(;he[0]==="..";)he.shift(),Se-=1;se.pathname=he.join("/")}re=Se>=0?D[Se]:"/"}let Ie=H(se,re);return X&&X!=="/"&&X.endsWith("/")&&!Ie.pathname.endsWith("/")&&(Ie.pathname+="/"),Ie}function te(N){return N===""||N.pathname===""?"/":typeof N=="string"?(0,i.cP)(N).pathname:N.pathname}function W(N,D){if(D==="/")return N;if(!N.toLowerCase().startsWith(D.toLowerCase()))return null;let ee=N.charAt(D.length);return ee&&ee!=="/"?null:N.slice(D.length)||"/"}const G=N=>N.join("/").replace(/\/\/+/g,"/"),O=N=>N.replace(/\/+$/,"").replace(/^\/*/,"/"),k=N=>!N||N==="?"?"":N.startsWith("?")?N:"?"+N,Y=N=>!N||N==="#"?"":N.startsWith("#")?N:"#"+N;function P(N){Q()||c(!1);let{basename:D,navigator:ee}=(0,t.useContext)(o),{hash:se,pathname:X,search:re}=Mt(N),Ie=X;if(D!=="/"){let Se=te(N),he=Se!=null&&Se.endsWith("/");Ie=X==="/"?D+(he?"/":""):G([D,X])}return ee.createHref({pathname:Ie,search:re,hash:se})}function Q(){return(0,t.useContext)(s)!=null}function fe(){return Q()||c(!1),(0,t.useContext)(s).location}function Ce(){return(0,t.useContext)(s).navigationType}function ge(N){Q()||c(!1);let{pathname:D}=fe();return(0,t.useMemo)(()=>$(N,D),[D,N])}function Me(){Q()||c(!1);let{basename:N,navigator:D}=(0,t.useContext)(o),{matches:ee}=(0,t.useContext)(n),{pathname:se}=fe(),X=JSON.stringify(ee.map(Se=>Se.pathnameBase)),re=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{re.current=!0}),(0,t.useCallback)(function(Se,he){if(he===void 0&&(he={}),!re.current)return;if(typeof Se=="number"){D.go(Se);return}let We=ce(Se,JSON.parse(X),se);N!=="/"&&(We.pathname=G([N,We.pathname])),(he.replace?D.replace:D.push)(We,he.state)},[N,D,X,se])}const Ne=(0,t.createContext)(null);function Qe(){return(0,t.useContext)(Ne)}function Ve(N){let D=(0,t.useContext)(n).outlet;return D&&(0,t.createElement)(Ne.Provider,{value:N},D)}function qe(){let{matches:N}=(0,t.useContext)(n),D=N[N.length-1];return D?D.params:{}}function Mt(N){let{matches:D}=(0,t.useContext)(n),{pathname:ee}=fe(),se=JSON.stringify(D.map(X=>X.pathnameBase));return(0,t.useMemo)(()=>ce(N,JSON.parse(se),ee),[N,se,ee])}function wt(N,D){Q()||c(!1);let{matches:ee}=(0,t.useContext)(n),se=ee[ee.length-1],X=se?se.params:{},re=se?se.pathname:"/",Ie=se?se.pathnameBase:"/",Se=se&&se.route,he=fe(),We;if(D){var de;let Ze=typeof D=="string"?(0,i.cP)(D):D;Ie==="/"||(de=Ze.pathname)!=null&&de.startsWith(Ie)||c(!1),We=Ze}else We=he;let le=We.pathname||"/",ve=Ie==="/"?le:le.slice(Ie.length)||"/",xe=C(N,{pathname:ve});return gt(xe&&xe.map(Ze=>Object.assign({},Ze,{params:Object.assign({},X,Ze.params),pathname:G([Ie,Ze.pathname]),pathnameBase:Ze.pathnameBase==="/"?Ie:G([Ie,Ze.pathnameBase])})),ee)}function gt(N,D){return D===void 0&&(D=[]),N==null?null:N.reduceRight((ee,se,X)=>(0,t.createElement)(n.Provider,{children:se.route.element!==void 0?se.route.element:ee,value:{outlet:ee,matches:D.concat(N.slice(0,X+1))}}),null)}function Lt(N){let{basename:D,children:ee,initialEntries:se,initialIndex:X}=N,re=(0,t.useRef)();re.current==null&&(re.current=(0,i.PP)({initialEntries:se,initialIndex:X}));let Ie=re.current,[Se,he]=(0,t.useState)({action:Ie.action,location:Ie.location});return(0,t.useLayoutEffect)(()=>Ie.listen(he),[Ie]),(0,t.createElement)(Fe,{basename:D,children:ee,location:Se.location,navigationType:Se.action,navigator:Ie})}function ke(N){let{to:D,replace:ee,state:se}=N;Q()||c(!1);let X=Me();return(0,t.useEffect)(()=>{X(D,{replace:ee,state:se})}),null}function He(N){return Ve(N.context)}function et(N){c(!1)}function Fe(N){let{basename:D="/",children:ee=null,location:se,navigationType:X=i.aU.Pop,navigator:re,static:Ie=!1}=N;Q()&&c(!1);let Se=O(D),he=(0,t.useMemo)(()=>({basename:Se,navigator:re,static:Ie}),[Se,re,Ie]);typeof se=="string"&&(se=(0,i.cP)(se));let{pathname:We="/",search:de="",hash:le="",state:ve=null,key:xe="default"}=se,Ze=(0,t.useMemo)(()=>{let pe=W(We,Se);return pe==null?null:{pathname:pe,search:de,hash:le,state:ve,key:xe}},[Se,We,de,le,ve,xe]);return Ze==null?null:(0,t.createElement)(o.Provider,{value:he},(0,t.createElement)(s.Provider,{children:ee,value:{location:Ze,navigationType:X}}))}function ue(N){let{children:D,location:ee}=N;return wt(V(D),ee)}function V(N){let D=[];return t.Children.forEach(N,ee=>{if(!(0,t.isValidElement)(ee))return;if(ee.type===t.Fragment){D.push.apply(D,V(ee.props.children));return}ee.type!==et&&c(!1);let se={caseSensitive:ee.props.caseSensitive,element:ee.props.element,index:ee.props.index,path:ee.props.path};ee.props.children&&(se.children=V(ee.props.children)),D.push(se)}),D}function U(N){return gt(N)}},88299:function(M,b,e){"use strict";var i=e(58757),t=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,n=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function l(v,h,m){var C,p={},S=null,w=null;m!==void 0&&(S=""+m),h.key!==void 0&&(S=""+h.key),h.ref!==void 0&&(w=h.ref);for(C in h)s.call(h,C)&&!c.hasOwnProperty(C)&&(p[C]=h[C]);if(v&&v.defaultProps)for(C in h=v.defaultProps,h)p[C]===void 0&&(p[C]=h[C]);return{$$typeof:t,type:v,key:S,ref:w,props:p,_owner:n.current}}b.Fragment=o,b.jsx=l,b.jsxs=l},34028:function(M,b){"use strict";var e=Symbol.for("react.element"),i=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),C=Symbol.iterator;function p(P){return P===null||typeof P!="object"?null:(P=C&&P[C]||P["@@iterator"],typeof P=="function"?P:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,y={};function Z(P,Q,fe){this.props=P,this.context=Q,this.refs=y,this.updater=fe||S}Z.prototype.isReactComponent={},Z.prototype.setState=function(P,Q){if(typeof P!="object"&&typeof P!="function"&&P!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,P,Q,"setState")},Z.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function F(){}F.prototype=Z.prototype;function R(P,Q,fe){this.props=P,this.context=Q,this.refs=y,this.updater=fe||S}var T=R.prototype=new F;T.constructor=R,w(T,Z.prototype),T.isPureReactComponent=!0;var z=Array.isArray,A=Object.prototype.hasOwnProperty,L={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function $(P,Q,fe){var Ce,ge={},Me=null,Ne=null;if(Q!=null)for(Ce in Q.ref!==void 0&&(Ne=Q.ref),Q.key!==void 0&&(Me=""+Q.key),Q)A.call(Q,Ce)&&!I.hasOwnProperty(Ce)&&(ge[Ce]=Q[Ce]);var Qe=arguments.length-2;if(Qe===1)ge.children=fe;else if(1=0;--P){var Q=this.tryEntries[P],fe=Q.completion;if(Q.tryLoc==="root")return Y("end");if(Q.tryLoc<=this.prev){var Ce=t.call(Q,"catchLoc"),ge=t.call(Q,"finallyLoc");if(Ce&&ge){if(this.prev=0;--Y){var P=this.tryEntries[Y];if(P.tryLoc<=this.prev&&t.call(P,"finallyLoc")&&this.prev=0;--k){var Y=this.tryEntries[k];if(Y.finallyLoc===O)return this.complete(Y.completion,Y.afterLoc),ce(Y),Z}},catch:function(O){for(var k=this.tryEntries.length-1;k>=0;--k){var Y=this.tryEntries[k];if(Y.tryLoc===O){var P=Y.completion;if(P.type==="throw"){var Q=P.arg;ce(Y)}return Q}}throw new Error("illegal catch attempt")},delegateYield:function(O,k,Y){return this.delegate={iterator:W(O),resultName:k,nextLoc:Y},this.method==="next"&&(this.arg=s),Z}},e}(M.exports);try{regeneratorRuntime=b}catch(e){typeof globalThis=="object"?globalThis.regeneratorRuntime=b:Function("r","regeneratorRuntime = r")(b)}},20759:function(M,b,e){"use strict";var i=function(){if(typeof Map!="undefined")return Map;function te(W,G){var O=-1;return W.some(function(k,Y){return k[0]===G?(O=Y,!0):!1}),O}return function(){function W(){this.__entries__=[]}return Object.defineProperty(W.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),W.prototype.get=function(G){var O=te(this.__entries__,G),k=this.__entries__[O];return k&&k[1]},W.prototype.set=function(G,O){var k=te(this.__entries__,G);~k?this.__entries__[k][1]=O:this.__entries__.push([G,O])},W.prototype.delete=function(G){var O=this.__entries__,k=te(O,G);~k&&O.splice(k,1)},W.prototype.has=function(G){return!!~te(this.__entries__,G)},W.prototype.clear=function(){this.__entries__.splice(0)},W.prototype.forEach=function(G,O){O===void 0&&(O=null);for(var k=0,Y=this.__entries__;k0},te.prototype.connect_=function(){!t||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),h?(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)},te.prototype.disconnect_=function(){!t||!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)},te.prototype.onTransitionEnd_=function(W){var G=W.propertyName,O=G===void 0?"":G,k=v.some(function(Y){return!!~O.indexOf(Y)});k&&this.refresh()},te.getInstance=function(){return this.instance_||(this.instance_=new te),this.instance_},te.instance_=null,te}(),C=function(te,W){for(var G=0,O=Object.keys(W);G0},te}(),H=typeof WeakMap!="undefined"?new WeakMap:new i,ie=function(){function te(W){if(!(this instanceof te))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var G=m.getInstance(),O=new K(W,G,this);H.set(this,O)}return te}();["observe","unobserve","disconnect"].forEach(function(te){ie.prototype[te]=function(){var W;return(W=H.get(this))[te].apply(W,arguments)}});var ce=function(){return typeof o.ResizeObserver!="undefined"?o.ResizeObserver:ie}();b.Z=ce},68945:function(M,b){"use strict";function e(O,k){var Y=O.length;O.push(k);e:for(;0>>1,Q=O[P];if(0>>1;Po(ge,Y))Meo(Ne,ge)?(O[P]=Ne,O[Me]=Y,P=Me):(O[P]=ge,O[Ce]=Y,P=Ce);else if(Meo(Ne,Y))O[P]=Ne,O[Me]=Y,P=Me;else break e}}return k}function o(O,k){var Y=O.sortIndex-k.sortIndex;return Y!==0?Y:O.id-k.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;b.unstable_now=function(){return s.now()}}else{var n=Date,c=n.now();b.unstable_now=function(){return n.now()-c}}var l=[],v=[],h=1,m=null,C=3,p=!1,S=!1,w=!1,y=typeof setTimeout=="function"?setTimeout:null,Z=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function R(O){for(var k=i(v);k!==null;){if(k.callback===null)t(v);else if(k.startTime<=O)t(v),k.sortIndex=k.expirationTime,e(l,k);else break;k=i(v)}}function T(O){if(w=!1,R(O),!S)if(i(l)!==null)S=!0,W(z);else{var k=i(v);k!==null&&G(T,k.startTime-O)}}function z(O,k){S=!1,w&&(w=!1,Z(I),I=-1),p=!0;var Y=C;try{for(R(k),m=i(l);m!==null&&(!(m.expirationTime>k)||O&&!K());){var P=m.callback;if(typeof P=="function"){m.callback=null,C=m.priorityLevel;var Q=P(m.expirationTime<=k);k=b.unstable_now(),typeof Q=="function"?m.callback=Q:m===i(l)&&t(l),R(k)}else t(l);m=i(l)}if(m!==null)var fe=!0;else{var Ce=i(v);Ce!==null&&G(T,Ce.startTime-k),fe=!1}return fe}finally{m=null,C=Y,p=!1}}var A=!1,L=null,I=-1,$=5,B=-1;function K(){return!(b.unstable_now()-B<$)}function H(){if(L!==null){var O=b.unstable_now();B=O;var k=!0;try{k=L(!0,O)}finally{k?ie():(A=!1,L=null)}}else A=!1}var ie;if(typeof F=="function")ie=function(){F(H)};else if(typeof MessageChannel!="undefined"){var ce=new MessageChannel,te=ce.port2;ce.port1.onmessage=H,ie=function(){te.postMessage(null)}}else ie=function(){y(H,0)};function W(O){L=O,A||(A=!0,ie())}function G(O,k){I=y(function(){O(b.unstable_now())},k)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(O){O.callback=null},b.unstable_continueExecution=function(){S||p||(S=!0,W(z))},b.unstable_forceFrameRate=function(O){0>O||125P?(O.sortIndex=Y,e(v,O),i(l)===null&&O===i(v)&&(w?(Z(I),I=-1):w=!0,G(T,Y-P))):(O.sortIndex=Q,e(l,O),S||p||(S=!0,W(z))),O},b.unstable_shouldYield=K,b.unstable_wrapCallback=function(O){var k=C;return function(){var Y=C;C=k;try{return O.apply(this,arguments)}finally{C=Y}}}},52090:function(M,b,e){"use strict";M.exports=e(68945)},57761:function(M){"use strict";function b(e,i){if(e===i)return!0;if(!e||!i)return!1;var t=Object.keys(e),o=Object.keys(i),s=t.length;if(o.length!==s)return!1;for(var n=0;n{le(ve,xe,de)}):de.forEach((ve,xe)=>le(xe,ve,de))}function S(de){const le=de[o];return le?le.type_:Array.isArray(de)?1:R(de)?2:T(de)?3:0}function w(de,le){return S(de)===2?de.has(le):Object.prototype.hasOwnProperty.call(de,le)}function y(de,le){return S(de)===2?de.get(le):de[le]}function Z(de,le,ve){const xe=S(de);xe===2?de.set(le,ve):xe===3?de.add(ve):de[le]=ve}function F(de,le){return de===le?de!==0||1/de===1/le:de!==de&&le!==le}function R(de){return de instanceof Map}function T(de){return de instanceof Set}function z(de){return de.copy_||de.base_}function A(de,le){if(R(de))return new Map(de);if(T(de))return new Set(de);if(Array.isArray(de))return Array.prototype.slice.call(de);if(!le&&m(de))return c(de)?Na({},de):Object.assign(Object.create(null),de);const ve=Object.getOwnPropertyDescriptors(de);delete ve[o];let xe=Reflect.ownKeys(ve);for(let Ze=0;Ze1&&(de.set=de.add=de.clear=de.delete=I),Object.freeze(de),le&&p(de,(ve,xe)=>L(xe,!0),!0)),de}function I(){n(2)}function $(de){return Object.isFrozen(de)}var B={};function K(de){const le=B[de];return le||n(0,de),le}function H(de,le){B[de]||(B[de]=le)}var ie;function ce(){return ie}function te(de,le){return{drafts_:[],parent_:de,immer_:le,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function W(de,le){le&&(K("Patches"),de.patches_=[],de.inversePatches_=[],de.patchListener_=le)}function G(de){O(de),de.drafts_.forEach(Y),de.drafts_=null}function O(de){de===ie&&(ie=de.parent_)}function k(de){return ie=te(ie,de)}function Y(de){const le=de[o];le.type_===0||le.type_===1?le.revoke_():le.revoked_=!0}function P(de,le){le.unfinalizedDrafts_=le.drafts_.length;const ve=le.drafts_[0];return de!==void 0&&de!==ve?(ve[o].modified_&&(G(le),n(4)),v(de)&&(de=Q(le,de),le.parent_||Ce(le,de)),le.patches_&&K("Patches").generateReplacementPatches_(ve[o].base_,de,le.patches_,le.inversePatches_)):de=Q(le,ve,[]),G(le),le.patches_&&le.patchListener_(le.patches_,le.inversePatches_),de!==i?de:void 0}function Q(de,le,ve){if($(le))return le;const xe=le[o];if(!xe)return p(le,(Ze,pe)=>fe(de,xe,le,Ze,pe,ve),!0),le;if(xe.scope_!==de)return le;if(!xe.modified_)return Ce(de,xe.base_,!0),xe.base_;if(!xe.finalized_){xe.finalized_=!0,xe.scope_.unfinalizedDrafts_--;const Ze=xe.copy_;let pe=Ze,Je=!1;xe.type_===3&&(pe=new Set(Ze),Ze.clear(),Je=!0),p(pe,(Ae,oe)=>fe(de,xe,Ze,Ae,oe,ve,Je)),Ce(de,Ze,!1),ve&&de.patches_&&K("Patches").generatePatches_(xe,ve,de.patches_,de.inversePatches_)}return xe.copy_}function fe(de,le,ve,xe,Ze,pe,Je){if(l(Ze)){const Ae=pe&&le&&le.type_!==3&&!w(le.assigned_,xe)?pe.concat(xe):void 0,oe=Q(de,Ze,Ae);if(Z(ve,xe,oe),l(oe))de.canAutoFreeze_=!1;else return}else Je&&ve.add(Ze);if(v(Ze)&&!$(Ze)){if(!de.immer_.autoFreeze_&&de.unfinalizedDrafts_<1)return;Q(de,Ze),(!le||!le.scope_.parent_)&&Ce(de,Ze)}}function Ce(de,le,ve=!1){!de.parent_&&de.immer_.autoFreeze_&&de.canAutoFreeze_&&L(le,ve)}function ge(de,le){const ve=Array.isArray(de),xe={type_:ve?1:0,scope_:le?le.scope_:ce(),modified_:!1,finalized_:!1,assigned_:{},parent_:le,base_:de,draft_:null,copy_:null,revoke_:null,isManual_:!1};let Ze=xe,pe=Me;ve&&(Ze=[xe],pe=Ne);const{revoke:Je,proxy:Ae}=Proxy.revocable(Ze,pe);return xe.draft_=Ae,xe.revoke_=Je,Ae}var Me={get(de,le){if(le===o)return de;const ve=z(de);if(!w(ve,le))return Ve(de,ve,le);const xe=ve[le];return de.finalized_||!v(xe)?xe:xe===Qe(de.base_,le)?(wt(de),de.copy_[le]=Lt(xe,de)):xe},has(de,le){return le in z(de)},ownKeys(de){return Reflect.ownKeys(z(de))},set(de,le,ve){const xe=qe(z(de),le);if(xe!=null&&xe.set)return xe.set.call(de.draft_,ve),!0;if(!de.modified_){const Ze=Qe(z(de),le),pe=Ze==null?void 0:Ze[o];if(pe&&pe.base_===ve)return de.copy_[le]=ve,de.assigned_[le]=!1,!0;if(F(ve,Ze)&&(ve!==void 0||w(de.base_,le)))return!0;wt(de),Mt(de)}return de.copy_[le]===ve&&(ve!==void 0||le in de.copy_)||Number.isNaN(ve)&&Number.isNaN(de.copy_[le])||(de.copy_[le]=ve,de.assigned_[le]=!0),!0},deleteProperty(de,le){return Qe(de.base_,le)!==void 0||le in de.base_?(de.assigned_[le]=!1,wt(de),Mt(de)):delete de.assigned_[le],de.copy_&&delete de.copy_[le],!0},getOwnPropertyDescriptor(de,le){const ve=z(de),xe=Reflect.getOwnPropertyDescriptor(ve,le);return xe&&{writable:!0,configurable:de.type_!==1||le!=="length",enumerable:xe.enumerable,value:ve[le]}},defineProperty(){n(11)},getPrototypeOf(de){return c(de.base_)},setPrototypeOf(){n(12)}},Ne={};p(Me,(de,le)=>{Ne[de]=function(){return arguments[0]=arguments[0][0],le.apply(this,arguments)}}),Ne.deleteProperty=function(de,le){return Ne.set.call(this,de,le,void 0)},Ne.set=function(de,le,ve){return Me.set.call(this,de[0],le,ve,de[0])};function Qe(de,le){const ve=de[o];return(ve?z(ve):de)[le]}function Ve(de,le,ve){var Ze;const xe=qe(le,ve);return xe?"value"in xe?xe.value:(Ze=xe.get)==null?void 0:Ze.call(de.draft_):void 0}function qe(de,le){if(!(le in de))return;let ve=c(de);for(;ve;){const xe=Object.getOwnPropertyDescriptor(ve,le);if(xe)return xe;ve=c(ve)}}function Mt(de){de.modified_||(de.modified_=!0,de.parent_&&Mt(de.parent_))}function wt(de){de.copy_||(de.copy_=A(de.base_,de.scope_.immer_.useStrictShallowCopy_))}var gt=class{constructor(de){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(le,ve,xe)=>{if(typeof le=="function"&&typeof ve!="function"){const pe=ve;ve=le;const Je=this;return function(oe=pe,...ye){return Je.produce(oe,Be=>ve.call(this,Be,...ye))}}typeof ve!="function"&&n(6),xe!==void 0&&typeof xe!="function"&&n(7);let Ze;if(v(le)){const pe=k(this),Je=Lt(le,void 0);let Ae=!0;try{Ze=ve(Je),Ae=!1}finally{Ae?G(pe):O(pe)}return W(pe,xe),P(Ze,pe)}else if(!le||typeof le!="object"){if(Ze=ve(le),Ze===void 0&&(Ze=le),Ze===i&&(Ze=void 0),this.autoFreeze_&&L(Ze,!0),xe){const pe=[],Je=[];K("Patches").generateReplacementPatches_(le,Ze,pe,Je),xe(pe,Je)}return Ze}else n(1,le)},this.produceWithPatches=(le,ve)=>{if(typeof le=="function")return(Je,...Ae)=>this.produceWithPatches(Je,oe=>le(oe,...Ae));let xe,Ze;return[this.produce(le,ve,(Je,Ae)=>{xe=Je,Ze=Ae}),xe,Ze]},typeof(de==null?void 0:de.autoFreeze)=="boolean"&&this.setAutoFreeze(de.autoFreeze),typeof(de==null?void 0:de.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(de.useStrictShallowCopy)}createDraft(de){v(de)||n(8),l(de)&&(de=ke(de));const le=k(this),ve=Lt(de,void 0);return ve[o].isManual_=!0,O(le),ve}finishDraft(de,le){const ve=de&&de[o];(!ve||!ve.isManual_)&&n(9);const{scope_:xe}=ve;return W(xe,le),P(void 0,xe)}setAutoFreeze(de){this.autoFreeze_=de}setUseStrictShallowCopy(de){this.useStrictShallowCopy_=de}applyPatches(de,le){let ve;for(ve=le.length-1;ve>=0;ve--){const Ze=le[ve];if(Ze.path.length===0&&Ze.op==="replace"){de=Ze.value;break}}ve>-1&&(le=le.slice(ve+1));const xe=K("Patches").applyPatches_;return l(de)?xe(de,le):this.produce(de,Ze=>xe(Ze,le))}};function Lt(de,le){const ve=R(de)?K("MapSet").proxyMap_(de,le):T(de)?K("MapSet").proxySet_(de,le):ge(de,le);return(le?le.scope_:ce()).drafts_.push(ve),ve}function ke(de){return l(de)||n(10,de),He(de)}function He(de){if(!v(de)||$(de))return de;const le=de[o];let ve;if(le){if(!le.modified_)return le.base_;le.finalized_=!0,ve=A(de,le.scope_.immer_.useStrictShallowCopy_)}else ve=A(de,!0);return p(ve,(xe,Ze)=>{Z(ve,xe,He(Ze))}),le&&(le.finalized_=!1),ve}function et(){const le="replace",ve="add",xe="remove";function Ze(Pe,we,Le,Ye){switch(Pe.type_){case 0:case 2:return Je(Pe,we,Le,Ye);case 1:return pe(Pe,we,Le,Ye);case 3:return Ae(Pe,we,Le,Ye)}}function pe(Pe,we,Le,Ye){let{base_:Ue,assigned_:dt}=Pe,bt=Pe.copy_;bt.length{const At=y(Ue,bt),Ot=y(dt,bt),jt=ft?w(Ue,bt)?le:ve:xe;if(At===Ot&&jt===le)return;const Gt=we.concat(bt);Le.push(jt===xe?{op:jt,path:Gt}:{op:jt,path:Gt,value:Ot}),Ye.push(jt===ve?{op:xe,path:Gt}:jt===xe?{op:ve,path:Gt,value:De(At)}:{op:le,path:Gt,value:De(At)})})}function Ae(Pe,we,Le,Ye){let{base_:Ue,copy_:dt}=Pe,bt=0;Ue.forEach(ft=>{if(!dt.has(ft)){const At=we.concat([bt]);Le.push({op:xe,path:At,value:ft}),Ye.unshift({op:ve,path:At,value:ft})}bt++}),bt=0,dt.forEach(ft=>{if(!Ue.has(ft)){const At=we.concat([bt]);Le.push({op:ve,path:At,value:ft}),Ye.unshift({op:xe,path:At,value:ft})}bt++})}function oe(Pe,we,Le,Ye){Le.push({op:le,path:[],value:we===i?void 0:we}),Ye.push({op:le,path:[],value:Pe})}function ye(Pe,we){return we.forEach(Le=>{const{path:Ye,op:Ue}=Le;let dt=Pe;for(let Ot=0;Ot[Le,Be(Ye)]));if(T(Pe))return new Set(Array.from(Pe).map(Be));const we=Object.create(c(Pe));for(const Le in Pe)we[Le]=Be(Pe[Le]);return w(Pe,t)&&(we[t]=Pe[t]),we}function De(Pe){return l(Pe)?Be(Pe):Pe}H("Patches",{applyPatches_:ye,generatePatches_:Ze,generateReplacementPatches_:oe})}function Fe(){class de extends Map{constructor(oe,ye){super(),this[o]={type_:2,parent_:ye,scope_:ye?ye.scope_:ce(),modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:oe,draft_:this,isManual_:!1,revoked_:!1}}get size(){return z(this[o]).size}has(oe){return z(this[o]).has(oe)}set(oe,ye){const Be=this[o];return Je(Be),(!z(Be).has(oe)||z(Be).get(oe)!==ye)&&(ve(Be),Mt(Be),Be.assigned_.set(oe,!0),Be.copy_.set(oe,ye),Be.assigned_.set(oe,!0)),this}delete(oe){if(!this.has(oe))return!1;const ye=this[o];return Je(ye),ve(ye),Mt(ye),ye.base_.has(oe)?ye.assigned_.set(oe,!1):ye.assigned_.delete(oe),ye.copy_.delete(oe),!0}clear(){const oe=this[o];Je(oe),z(oe).size&&(ve(oe),Mt(oe),oe.assigned_=new Map,p(oe.base_,ye=>{oe.assigned_.set(ye,!1)}),oe.copy_.clear())}forEach(oe,ye){const Be=this[o];z(Be).forEach((De,Pe,we)=>{oe.call(ye,this.get(Pe),Pe,this)})}get(oe){const ye=this[o];Je(ye);const Be=z(ye).get(oe);if(ye.finalized_||!v(Be)||Be!==ye.base_.get(oe))return Be;const De=Lt(Be,ye);return ve(ye),ye.copy_.set(oe,De),De}keys(){return z(this[o]).keys()}values(){const oe=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{const ye=oe.next();return ye.done?ye:{done:!1,value:this.get(ye.value)}}}}entries(){const oe=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{const ye=oe.next();if(ye.done)return ye;const Be=this.get(ye.value);return{done:!1,value:[ye.value,Be]}}}}[Symbol.iterator](){return this.entries()}}function le(Ae,oe){return new de(Ae,oe)}function ve(Ae){Ae.copy_||(Ae.assigned_=new Map,Ae.copy_=new Map(Ae.base_))}class xe extends Set{constructor(oe,ye){super(),this[o]={type_:3,parent_:ye,scope_:ye?ye.scope_:ce(),modified_:!1,finalized_:!1,copy_:void 0,base_:oe,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return z(this[o]).size}has(oe){const ye=this[o];return Je(ye),ye.copy_?!!(ye.copy_.has(oe)||ye.drafts_.has(oe)&&ye.copy_.has(ye.drafts_.get(oe))):ye.base_.has(oe)}add(oe){const ye=this[o];return Je(ye),this.has(oe)||(pe(ye),Mt(ye),ye.copy_.add(oe)),this}delete(oe){if(!this.has(oe))return!1;const ye=this[o];return Je(ye),pe(ye),Mt(ye),ye.copy_.delete(oe)||(ye.drafts_.has(oe)?ye.copy_.delete(ye.drafts_.get(oe)):!1)}clear(){const oe=this[o];Je(oe),z(oe).size&&(pe(oe),Mt(oe),oe.copy_.clear())}values(){const oe=this[o];return Je(oe),pe(oe),oe.copy_.values()}entries(){const oe=this[o];return Je(oe),pe(oe),oe.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(oe,ye){const Be=this.values();let De=Be.next();for(;!De.done;)oe.call(ye,De.value,De.value,this),De=Be.next()}}function Ze(Ae,oe){return new xe(Ae,oe)}function pe(Ae){Ae.copy_||(Ae.copy_=new Set,Ae.base_.forEach(oe=>{if(v(oe)){const ye=Lt(oe,Ae);Ae.drafts_.set(oe,ye),Ae.copy_.add(ye)}else Ae.copy_.add(oe)}))}function Je(Ae){Ae.revoked_&&n(3,JSON.stringify(z(Ae)))}H("MapSet",{proxyMap_:le,proxySet_:Ze})}var ue=new gt,V=ue.produce,U=ue.produceWithPatches.bind(ue),N=ue.setAutoFreeze.bind(ue),D=ue.setUseStrictShallowCopy.bind(ue),ee=ue.applyPatches.bind(ue),se=ue.createDraft.bind(ue),X=ue.finishDraft.bind(ue);function re(de){return de}function Ie(de){return de}var Se=e(58757);function he(de){var le=(0,Se.useState)(function(){return L(typeof de=="function"?de():de,!0)}),ve=le[1];return[le[0],(0,Se.useCallback)(function(xe){ve(typeof xe=="function"?V(xe):L(xe))},[])]}function We(de,le,ve){var xe=f(function(){return r(de)},[de]);return u(xe,le,ve)}},62118:function(M){"use strict";var b=!1,e=function(){};if(b){var i=function(o,s){var n=arguments.length;s=new Array(n>1?n-1:0);for(var c=1;c2?n-2:0);for(var c=2;ce.length)&&(i=e.length);for(var t=0,o=new Array(i);t=o.length?{done:!0}:{done:!1,value:o[c++]}},e:function(p){throw p},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var v=!0,h=!1,m;return{s:function(){n=n.call(o)},n:function(){var p=n.next();return v=p.done,p},e:function(p){h=!0,m=p},f:function(){try{!v&&n.return!=null&&n.return()}finally{if(h)throw m}}}}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},19881:function(M,b,e){var i=e(29137),t=e(41326),o=e(1745);function s(n){var c=t();return function(){var v=i(n),h;if(c){var m=i(this).constructor;h=Reflect.construct(v,arguments,m)}else h=v.apply(this,arguments);return o(this,h)}}M.exports=s,M.exports.__esModule=!0,M.exports.default=M.exports},2657:function(M,b,e){var i=e(27490);function t(o,s,n){return s=i(s),s in o?Object.defineProperty(o,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[s]=n,o}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},29137:function(M){function b(e){return M.exports=b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},M.exports.__esModule=!0,M.exports.default=M.exports,b(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},1769:function(M,b,e){var i=e(21547);function t(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(s&&s.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),s&&i(o,s)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},41326:function(M){function b(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},32596:function(M){function b(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},79121:function(M){function b(e,i){var t=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var o,s,n,c,l=[],v=!0,h=!1;try{if(n=(t=t.call(e)).next,i===0){if(Object(t)!==t)return;v=!1}else for(;!(v=(o=n.call(t)).done)&&(l.push(o.value),l.length!==i);v=!0);}catch(m){h=!0,s=m}finally{try{if(!v&&t.return!=null&&(c=t.return(),Object(c)!==c))return}finally{if(h)throw s}}return l}}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},74335:function(M){function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},74387:function(M){function b(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},63900:function(M,b,e){var i=e(2657);function t(s,n){var c=Object.keys(s);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(s);n&&(l=l.filter(function(v){return Object.getOwnPropertyDescriptor(s,v).enumerable})),c.push.apply(c,l)}return c}function o(s){for(var n=1;n=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(n[c]=o[c])}return n}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},14385:function(M){function b(e,i){if(e==null)return{};var t={},o=Object.keys(e),s,n;for(n=0;n=0)&&(t[s]=e[s]);return t}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},1745:function(M,b,e){var i=e(16962).default,t=e(55044);function o(s,n){if(n&&(i(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(s)}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},24454:function(M,b,e){var i=e(16962).default;function t(){"use strict";M.exports=t=function(){return o},M.exports.__esModule=!0,M.exports.default=M.exports;var o={},s=Object.prototype,n=s.hasOwnProperty,c=Object.defineProperty||function(W,G,O){W[G]=O.value},l=typeof Symbol=="function"?Symbol:{},v=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",m=l.toStringTag||"@@toStringTag";function C(W,G,O){return Object.defineProperty(W,G,{value:O,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{C({},"")}catch(W){C=function(O,k,Y){return O[k]=Y}}function p(W,G,O,k){var Y=G&&G.prototype instanceof y?G:y,P=Object.create(Y.prototype),Q=new ie(k||[]);return c(P,"_invoke",{value:$(W,O,Q)}),P}function S(W,G,O){try{return{type:"normal",arg:W.call(G,O)}}catch(k){return{type:"throw",arg:k}}}o.wrap=p;var w={};function y(){}function Z(){}function F(){}var R={};C(R,v,function(){return this});var T=Object.getPrototypeOf,z=T&&T(T(ce([])));z&&z!==s&&n.call(z,v)&&(R=z);var A=F.prototype=y.prototype=Object.create(R);function L(W){["next","throw","return"].forEach(function(G){C(W,G,function(O){return this._invoke(G,O)})})}function I(W,G){function O(Y,P,Q,fe){var Ce=S(W[Y],W,P);if(Ce.type!=="throw"){var ge=Ce.arg,Me=ge.value;return Me&&i(Me)=="object"&&n.call(Me,"__await")?G.resolve(Me.__await).then(function(Re){O("next",Re,Q,fe)},function(Re){O("throw",Re,Q,fe)}):G.resolve(Me).then(function(Re){ge.value=Re,Q(ge)},function(Re){return O("throw",Re,Q,fe)})}fe(Ce.arg)}var k;c(this,"_invoke",{value:function(P,Q){function fe(){return new G(function(Ce,ge){O(P,Q,Ce,ge)})}return k=k?k.then(fe,fe):fe()}})}function $(W,G,O){var k="suspendedStart";return function(Y,P){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(Y==="throw")throw P;return te()}for(O.method=Y,O.arg=P;;){var Q=O.delegate;if(Q){var fe=B(Q,O);if(fe){if(fe===w)continue;return fe}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(k==="suspendedStart")throw k="completed",O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);k="executing";var Ce=S(W,G,O);if(Ce.type==="normal"){if(k=O.done?"completed":"suspendedYield",Ce.arg===w)continue;return{value:Ce.arg,done:O.done}}Ce.type==="throw"&&(k="completed",O.method="throw",O.arg=Ce.arg)}}}function B(W,G){var O=G.method,k=W.iterator[O];if(k===void 0)return G.delegate=null,O==="throw"&&W.iterator.return&&(G.method="return",G.arg=void 0,B(W,G),G.method==="throw")||O!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+O+"' method")),w;var Y=S(k,W.iterator,G.arg);if(Y.type==="throw")return G.method="throw",G.arg=Y.arg,G.delegate=null,w;var P=Y.arg;return P?P.done?(G[W.resultName]=P.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=void 0),G.delegate=null,w):P:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,w)}function K(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function H(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function ie(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(K,this),this.reset(!0)}function ce(W){if(W){var G=W[v];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var O=-1,k=function Y(){for(;++O=0;--Y){var P=this.tryEntries[Y],Q=P.completion;if(P.tryLoc==="root")return k("end");if(P.tryLoc<=this.prev){var fe=n.call(P,"catchLoc"),Ce=n.call(P,"finallyLoc");if(fe&&Ce){if(this.prev=0;--k){var Y=this.tryEntries[k];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev=0;--O){var k=this.tryEntries[O];if(k.finallyLoc===G)return this.complete(k.completion,k.afterLoc),H(k),w}},catch:function(G){for(var O=this.tryEntries.length-1;O>=0;--O){var k=this.tryEntries[O];if(k.tryLoc===G){var Y=k.completion;if(Y.type==="throw"){var P=Y.arg;H(k)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(G,O,k){return this.delegate={iterator:ce(G),resultName:O,nextLoc:k},this.method==="next"&&(this.arg=void 0),w}},o}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},21547:function(M){function b(e,i){return M.exports=b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},M.exports.__esModule=!0,M.exports.default=M.exports,b(e,i)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},88205:function(M,b,e){var i=e(47296),t=e(79121),o=e(52157),s=e(74335);function n(c,l){return i(c)||t(c,l)||o(c,l)||s()}M.exports=n,M.exports.__esModule=!0,M.exports.default=M.exports},34485:function(M,b,e){var i=e(64212),t=e(32596),o=e(52157),s=e(74387);function n(c){return i(c)||t(c)||o(c)||s()}M.exports=n,M.exports.__esModule=!0,M.exports.default=M.exports},67536:function(M,b,e){var i=e(16962).default;function t(o,s){if(i(o)!=="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var c=n.call(o,s||"default");if(i(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},27490:function(M,b,e){var i=e(16962).default,t=e(67536);function o(s){var n=t(s,"string");return i(n)==="symbol"?n:String(n)}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},16962:function(M){function b(e){"@babel/helpers - typeof";return M.exports=b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M.exports.__esModule=!0,M.exports.default=M.exports,b(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},52157:function(M,b,e){var i=e(18724);function t(o,s){if(o){if(typeof o=="string")return i(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(o,s)}}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},92199:function(M){function b(e){return e&&e.__esModule?e:{default:e}}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},55082:function(M,b,e){var i=e(98316).default;function t(s){if(typeof WeakMap!="function")return null;var n=new WeakMap,c=new WeakMap;return(t=function(v){return v?c:n})(s)}function o(s,n){if(!n&&s&&s.__esModule)return s;if(s===null||i(s)!=="object"&&typeof s!="function")return{default:s};var c=t(n);if(c&&c.has(s))return c.get(s);var l={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&Object.prototype.hasOwnProperty.call(s,h)){var m=v?Object.getOwnPropertyDescriptor(s,h):null;m&&(m.get||m.set)?Object.defineProperty(l,h,m):l[h]=s[h]}return l.default=s,c&&c.set(s,l),l}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},98316:function(M){function b(e){"@babel/helpers - typeof";return M.exports=b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M.exports.__esModule=!0,M.exports.default=M.exports,b(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},40642:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t){if(Array.isArray(t))return t}},93585:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(4566);function t(o,s,n){return s=(0,i.Z)(s),s in o?Object.defineProperty(o,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[s]=n,o}},97364:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(){return i=Object.assign?Object.assign.bind():function(t){for(var o=1;o=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(n[c]=o[c])}return n}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},14385:function(M){function b(e,i){if(e==null)return{};var t={},o=Object.keys(e),s,n;for(n=0;n=0)&&(t[s]=e[s]);return t}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},1745:function(M,b,e){var i=e(16962).default,t=e(55044);function o(s,n){if(n&&(i(n)==="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return t(s)}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},24454:function(M,b,e){var i=e(16962).default;function t(){"use strict";M.exports=t=function(){return o},M.exports.__esModule=!0,M.exports.default=M.exports;var o={},s=Object.prototype,n=s.hasOwnProperty,c=Object.defineProperty||function(W,G,O){W[G]=O.value},l=typeof Symbol=="function"?Symbol:{},v=l.iterator||"@@iterator",h=l.asyncIterator||"@@asyncIterator",m=l.toStringTag||"@@toStringTag";function C(W,G,O){return Object.defineProperty(W,G,{value:O,enumerable:!0,configurable:!0,writable:!0}),W[G]}try{C({},"")}catch(W){C=function(O,k,Y){return O[k]=Y}}function p(W,G,O,k){var Y=G&&G.prototype instanceof y?G:y,P=Object.create(Y.prototype),Q=new ie(k||[]);return c(P,"_invoke",{value:$(W,O,Q)}),P}function S(W,G,O){try{return{type:"normal",arg:W.call(G,O)}}catch(k){return{type:"throw",arg:k}}}o.wrap=p;var w={};function y(){}function Z(){}function F(){}var R={};C(R,v,function(){return this});var T=Object.getPrototypeOf,z=T&&T(T(ce([])));z&&z!==s&&n.call(z,v)&&(R=z);var A=F.prototype=y.prototype=Object.create(R);function L(W){["next","throw","return"].forEach(function(G){C(W,G,function(O){return this._invoke(G,O)})})}function I(W,G){function O(Y,P,Q,fe){var Ce=S(W[Y],W,P);if(Ce.type!=="throw"){var ge=Ce.arg,Me=ge.value;return Me&&i(Me)=="object"&&n.call(Me,"__await")?G.resolve(Me.__await).then(function(Ne){O("next",Ne,Q,fe)},function(Ne){O("throw",Ne,Q,fe)}):G.resolve(Me).then(function(Ne){ge.value=Ne,Q(ge)},function(Ne){return O("throw",Ne,Q,fe)})}fe(Ce.arg)}var k;c(this,"_invoke",{value:function(P,Q){function fe(){return new G(function(Ce,ge){O(P,Q,Ce,ge)})}return k=k?k.then(fe,fe):fe()}})}function $(W,G,O){var k="suspendedStart";return function(Y,P){if(k==="executing")throw new Error("Generator is already running");if(k==="completed"){if(Y==="throw")throw P;return te()}for(O.method=Y,O.arg=P;;){var Q=O.delegate;if(Q){var fe=B(Q,O);if(fe){if(fe===w)continue;return fe}}if(O.method==="next")O.sent=O._sent=O.arg;else if(O.method==="throw"){if(k==="suspendedStart")throw k="completed",O.arg;O.dispatchException(O.arg)}else O.method==="return"&&O.abrupt("return",O.arg);k="executing";var Ce=S(W,G,O);if(Ce.type==="normal"){if(k=O.done?"completed":"suspendedYield",Ce.arg===w)continue;return{value:Ce.arg,done:O.done}}Ce.type==="throw"&&(k="completed",O.method="throw",O.arg=Ce.arg)}}}function B(W,G){var O=G.method,k=W.iterator[O];if(k===void 0)return G.delegate=null,O==="throw"&&W.iterator.return&&(G.method="return",G.arg=void 0,B(W,G),G.method==="throw")||O!=="return"&&(G.method="throw",G.arg=new TypeError("The iterator does not provide a '"+O+"' method")),w;var Y=S(k,W.iterator,G.arg);if(Y.type==="throw")return G.method="throw",G.arg=Y.arg,G.delegate=null,w;var P=Y.arg;return P?P.done?(G[W.resultName]=P.value,G.next=W.nextLoc,G.method!=="return"&&(G.method="next",G.arg=void 0),G.delegate=null,w):P:(G.method="throw",G.arg=new TypeError("iterator result is not an object"),G.delegate=null,w)}function K(W){var G={tryLoc:W[0]};1 in W&&(G.catchLoc=W[1]),2 in W&&(G.finallyLoc=W[2],G.afterLoc=W[3]),this.tryEntries.push(G)}function H(W){var G=W.completion||{};G.type="normal",delete G.arg,W.completion=G}function ie(W){this.tryEntries=[{tryLoc:"root"}],W.forEach(K,this),this.reset(!0)}function ce(W){if(W){var G=W[v];if(G)return G.call(W);if(typeof W.next=="function")return W;if(!isNaN(W.length)){var O=-1,k=function Y(){for(;++O=0;--Y){var P=this.tryEntries[Y],Q=P.completion;if(P.tryLoc==="root")return k("end");if(P.tryLoc<=this.prev){var fe=n.call(P,"catchLoc"),Ce=n.call(P,"finallyLoc");if(fe&&Ce){if(this.prev=0;--k){var Y=this.tryEntries[k];if(Y.tryLoc<=this.prev&&n.call(Y,"finallyLoc")&&this.prev=0;--O){var k=this.tryEntries[O];if(k.finallyLoc===G)return this.complete(k.completion,k.afterLoc),H(k),w}},catch:function(G){for(var O=this.tryEntries.length-1;O>=0;--O){var k=this.tryEntries[O];if(k.tryLoc===G){var Y=k.completion;if(Y.type==="throw"){var P=Y.arg;H(k)}return P}}throw new Error("illegal catch attempt")},delegateYield:function(G,O,k){return this.delegate={iterator:ce(G),resultName:O,nextLoc:k},this.method==="next"&&(this.arg=void 0),w}},o}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},21547:function(M){function b(e,i){return M.exports=b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},M.exports.__esModule=!0,M.exports.default=M.exports,b(e,i)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},88205:function(M,b,e){var i=e(47296),t=e(79121),o=e(52157),s=e(74335);function n(c,l){return i(c)||t(c,l)||o(c,l)||s()}M.exports=n,M.exports.__esModule=!0,M.exports.default=M.exports},34485:function(M,b,e){var i=e(64212),t=e(32596),o=e(52157),s=e(74387);function n(c){return i(c)||t(c)||o(c)||s()}M.exports=n,M.exports.__esModule=!0,M.exports.default=M.exports},67536:function(M,b,e){var i=e(16962).default;function t(o,s){if(i(o)!=="object"||o===null)return o;var n=o[Symbol.toPrimitive];if(n!==void 0){var c=n.call(o,s||"default");if(i(c)!=="object")return c;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(o)}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},27490:function(M,b,e){var i=e(16962).default,t=e(67536);function o(s){var n=t(s,"string");return i(n)==="symbol"?n:String(n)}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},16962:function(M){function b(e){"@babel/helpers - typeof";return M.exports=b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M.exports.__esModule=!0,M.exports.default=M.exports,b(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},52157:function(M,b,e){var i=e(18724);function t(o,s){if(o){if(typeof o=="string")return i(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(o,s)}}M.exports=t,M.exports.__esModule=!0,M.exports.default=M.exports},92199:function(M){function b(e){return e&&e.__esModule?e:{default:e}}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},55082:function(M,b,e){var i=e(98316).default;function t(s){if(typeof WeakMap!="function")return null;var n=new WeakMap,c=new WeakMap;return(t=function(v){return v?c:n})(s)}function o(s,n){if(!n&&s&&s.__esModule)return s;if(s===null||i(s)!=="object"&&typeof s!="function")return{default:s};var c=t(n);if(c&&c.has(s))return c.get(s);var l={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in s)if(h!=="default"&&Object.prototype.hasOwnProperty.call(s,h)){var m=v?Object.getOwnPropertyDescriptor(s,h):null;m&&(m.get||m.set)?Object.defineProperty(l,h,m):l[h]=s[h]}return l.default=s,c&&c.set(s,l),l}M.exports=o,M.exports.__esModule=!0,M.exports.default=M.exports},98316:function(M){function b(e){"@babel/helpers - typeof";return M.exports=b=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},M.exports.__esModule=!0,M.exports.default=M.exports,b(e)}M.exports=b,M.exports.__esModule=!0,M.exports.default=M.exports},40642:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t){if(Array.isArray(t))return t}},93585:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(4566);function t(o,s,n){return s=(0,i.Z)(s),s in o?Object.defineProperty(o,s,{value:n,enumerable:!0,configurable:!0,writable:!0}):o[s]=n,o}},97364:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(){return i=Object.assign?Object.assign.bind():function(t){for(var o=1;o=0)&&(n[l]=o[l]);return n}function t(o,s){if(o==null)return{};var n=i(o,s),c,l;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(n[c]=o[c])}return n}},4566:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});var i=e(83753);function t(s,n){if((0,i.Z)(s)!=="object"||s===null)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,n||"default");if((0,i.Z)(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function o(s){var n=t(s,"string");return(0,i.Z)(n)==="symbol"?n:String(n)}},83753:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(t)}},50648:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});function i(o,s){(s==null||s>o.length)&&(s=o.length);for(var n=0,c=new Array(s);nt.length)&&(o=t.length);for(var s=0,n=new Array(o);s=0)&&(n[l]=o[l]);return n}function t(o,s){if(o==null)return{};var n=i(o,s),c,l;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(n[c]=o[c])}return n}},74632:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(38790);function t(){"use strict";t=function(){return s};var o,s={},n=Object.prototype,c=n.hasOwnProperty,l=Object.defineProperty||function(Y,P,Q){Y[P]=Q.value},v=typeof Symbol=="function"?Symbol:{},h=v.iterator||"@@iterator",m=v.asyncIterator||"@@asyncIterator",C=v.toStringTag||"@@toStringTag";function p(Y,P,Q){return Object.defineProperty(Y,P,{value:Q,enumerable:!0,configurable:!0,writable:!0}),Y[P]}try{p({},"")}catch(Y){p=function(Q,fe,Ce){return Q[fe]=Ce}}function S(Y,P,Q,fe){var Ce=P&&P.prototype instanceof z?P:z,ge=Object.create(Ce.prototype),Me=new O(fe||[]);return l(ge,"_invoke",{value:ce(Y,Q,Me)}),ge}function w(Y,P,Q){try{return{type:"normal",arg:Y.call(P,Q)}}catch(fe){return{type:"throw",arg:fe}}}s.wrap=S;var y="suspendedStart",Z="suspendedYield",F="executing",R="completed",T={};function z(){}function A(){}function L(){}var I={};p(I,h,function(){return this});var $=Object.getPrototypeOf,B=$&&$($(k([])));B&&B!==n&&c.call(B,h)&&(I=B);var K=L.prototype=z.prototype=Object.create(I);function H(Y){["next","throw","return"].forEach(function(P){p(Y,P,function(Q){return this._invoke(P,Q)})})}function ie(Y,P){function Q(Ce,ge,Me,Re){var Qe=w(Y[Ce],Y,ge);if(Qe.type!=="throw"){var Ve=Qe.arg,qe=Ve.value;return qe&&(0,i.Z)(qe)=="object"&&c.call(qe,"__await")?P.resolve(qe.__await).then(function(Mt){Q("next",Mt,Me,Re)},function(Mt){Q("throw",Mt,Me,Re)}):P.resolve(qe).then(function(Mt){Ve.value=Mt,Me(Ve)},function(Mt){return Q("throw",Mt,Me,Re)})}Re(Qe.arg)}var fe;l(this,"_invoke",{value:function(ge,Me){function Re(){return new P(function(Qe,Ve){Q(ge,Me,Qe,Ve)})}return fe=fe?fe.then(Re,Re):Re()}})}function ce(Y,P,Q){var fe=y;return function(Ce,ge){if(fe===F)throw new Error("Generator is already running");if(fe===R){if(Ce==="throw")throw ge;return{value:o,done:!0}}for(Q.method=Ce,Q.arg=ge;;){var Me=Q.delegate;if(Me){var Re=te(Me,Q);if(Re){if(Re===T)continue;return Re}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(fe===y)throw fe=R,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);fe=F;var Qe=w(Y,P,Q);if(Qe.type==="normal"){if(fe=Q.done?R:Z,Qe.arg===T)continue;return{value:Qe.arg,done:Q.done}}Qe.type==="throw"&&(fe=R,Q.method="throw",Q.arg=Qe.arg)}}}function te(Y,P){var Q=P.method,fe=Y.iterator[Q];if(fe===o)return P.delegate=null,Q==="throw"&&Y.iterator.return&&(P.method="return",P.arg=o,te(Y,P),P.method==="throw")||Q!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),T;var Ce=w(fe,Y.iterator,P.arg);if(Ce.type==="throw")return P.method="throw",P.arg=Ce.arg,P.delegate=null,T;var ge=Ce.arg;return ge?ge.done?(P[Y.resultName]=ge.value,P.next=Y.nextLoc,P.method!=="return"&&(P.method="next",P.arg=o),P.delegate=null,T):ge:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,T)}function W(Y){var P={tryLoc:Y[0]};1 in Y&&(P.catchLoc=Y[1]),2 in Y&&(P.finallyLoc=Y[2],P.afterLoc=Y[3]),this.tryEntries.push(P)}function G(Y){var P=Y.completion||{};P.type="normal",delete P.arg,Y.completion=P}function O(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(W,this),this.reset(!0)}function k(Y){if(Y||Y===""){var P=Y[h];if(P)return P.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var Q=-1,fe=function Ce(){for(;++Q=0;--Ce){var ge=this.tryEntries[Ce],Me=ge.completion;if(ge.tryLoc==="root")return fe("end");if(ge.tryLoc<=this.prev){var Re=c.call(ge,"catchLoc"),Qe=c.call(ge,"finallyLoc");if(Re&&Qe){if(this.prev=0;--fe){var Ce=this.tryEntries[fe];if(Ce.tryLoc<=this.prev&&c.call(Ce,"finallyLoc")&&this.prev=0;--Q){var fe=this.tryEntries[Q];if(fe.finallyLoc===P)return this.complete(fe.completion,fe.afterLoc),G(fe),T}},catch:function(P){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var fe=this.tryEntries[Q];if(fe.tryLoc===P){var Ce=fe.completion;if(Ce.type==="throw"){var ge=Ce.arg;G(fe)}return ge}}throw new Error("illegal catch attempt")},delegateYield:function(P,Q,fe){return this.delegate={iterator:k(P),resultName:Q,nextLoc:fe},this.method==="next"&&(this.arg=o),T}},s}},28314:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(5563);function t(c,l){var v=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(v!=null){var h,m,C,p,S=[],w=!0,y=!1;try{if(C=(v=v.call(c)).next,l===0){if(Object(v)!==v)return;w=!1}else for(;!(w=(h=C.call(v)).done)&&(S.push(h.value),S.length!==l);w=!0);}catch(Z){y=!0,m=Z}finally{try{if(!w&&v.return!=null&&(p=v.return(),Object(p)!==p))return}finally{if(y)throw m}}return S}}var o=e(25516),s=e(53373);function n(c,l){return(0,i.Z)(c)||t(c,l)||(0,o.Z)(c,l)||(0,s.Z)()}},6747:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(5563),t=e(10443),o=e(25516),s=e(53373);function n(c){return(0,i.Z)(c)||(0,t.Z)(c)||(0,o.Z)(c)||(0,s.Z)()}},29140:function(M,b,e){"use strict";e.d(b,{Z:function(){return c}});var i=e(41437);function t(l){if(Array.isArray(l))return(0,i.Z)(l)}var o=e(10443),s=e(25516);function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(l){return t(l)||(0,o.Z)(l)||(0,s.Z)(l)||n()}},70794:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});var i=e(38790);function t(s,n){if((0,i.Z)(s)!=="object"||s===null)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,n||"default");if((0,i.Z)(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function o(s){var n=t(s,"string");return(0,i.Z)(n)==="symbol"?n:String(n)}},38790:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(t)}},25516:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(41437);function t(o,s){if(o){if(typeof o=="string")return(0,i.Z)(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,i.Z)(o,s)}}},70989:function(M,b,e){"use strict";e.d(b,{D:function(){return t}});function i(o,s,n){var c=n||{},l=c.noTrailing,v=l===void 0?!1:l,h=c.noLeading,m=h===void 0?!1:h,C=c.debounceMode,p=C===void 0?void 0:C,S,w=!1,y=0;function Z(){S&&clearTimeout(S)}function F(T){var z=T||{},A=z.upcomingOnly,L=A===void 0?!1:A;Z(),w=!L}function R(){for(var T=arguments.length,z=new Array(T),A=0;Ao?m?(y=Date.now(),v||(S=setTimeout(p?B:$,o))):$():v!==!0&&(S=setTimeout(p?B:$,p===void 0?o-I:o))}return R.cancel=F,R}function t(o,s,n){var c=n||{},l=c.atBegin,v=l===void 0?!1:l;return i(o,s,{debounceMode:v!==!1})}},43112:function(M,b,e){"use strict";e.d(b,{CR:function(){return F},Jh:function(){return S},XA:function(){return Z},_T:function(){return s},ev:function(){return z},mG:function(){return p},pi:function(){return o}});var i=function(P,Q){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ce){fe.__proto__=Ce}||function(fe,Ce){for(var ge in Ce)Object.prototype.hasOwnProperty.call(Ce,ge)&&(fe[ge]=Ce[ge])},i(P,Q)};function t(P,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");i(P,Q);function fe(){this.constructor=P}P.prototype=Q===null?Object.create(Q):(fe.prototype=Q.prototype,new fe)}var o=function(){return o=Object.assign||function(Q){for(var fe,Ce=1,ge=arguments.length;Ce=0;Qe--)(Re=P[Qe])&&(Me=(ge<3?Re(Me):ge>3?Re(Q,fe,Me):Re(Q,fe))||Me);return ge>3&&Me&&Object.defineProperty(Q,fe,Me),Me}function c(P,Q){return function(fe,Ce){Q(fe,Ce,P)}}function l(P,Q,fe,Ce,ge,Me){function Re(Fe){if(Fe!==void 0&&typeof Fe!="function")throw new TypeError("Function expected");return Fe}for(var Qe=Ce.kind,Ve=Qe==="getter"?"get":Qe==="setter"?"set":"value",qe=!Q&&P?Ce.static?P:P.prototype:null,Mt=Q||(qe?Object.getOwnPropertyDescriptor(qe,Ce.name):{}),wt,mt=!1,Nt=fe.length-1;Nt>=0;Nt--){var ke={};for(var He in Ce)ke[He]=He==="access"?{}:Ce[He];for(var He in Ce.access)ke.access[He]=Ce.access[He];ke.addInitializer=function(Fe){if(mt)throw new TypeError("Cannot add initializers after decoration has completed");Me.push(Re(Fe||null))};var et=(0,fe[Nt])(Qe==="accessor"?{get:Mt.get,set:Mt.set}:Mt[Ve],ke);if(Qe==="accessor"){if(et===void 0)continue;if(et===null||typeof et!="object")throw new TypeError("Object expected");(wt=Re(et.get))&&(Mt.get=wt),(wt=Re(et.set))&&(Mt.set=wt),(wt=Re(et.init))&&ge.unshift(wt)}else(wt=Re(et))&&(Qe==="field"?ge.unshift(wt):Mt[Ve]=wt)}qe&&Object.defineProperty(qe,Ce.name,Mt),mt=!0}function v(P,Q,fe){for(var Ce=arguments.length>2,ge=0;ge0&&Me[Me.length-1])&&(qe[0]===6||qe[0]===2)){fe=0;continue}if(qe[0]===3&&(!Me||qe[1]>Me[0]&&qe[1]=P.length&&(P=void 0),{value:P&&P[Ce++],done:!P}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(P,Q){var fe=typeof Symbol=="function"&&P[Symbol.iterator];if(!fe)return P;var Ce=fe.call(P),ge,Me=[],Re;try{for(;(Q===void 0||Q-- >0)&&!(ge=Ce.next()).done;)Me.push(ge.value)}catch(Qe){Re={error:Qe}}finally{try{ge&&!ge.done&&(fe=Ce.return)&&fe.call(Ce)}finally{if(Re)throw Re.error}}return Me}function R(){for(var P=[],Q=0;Q1||Qe(mt,Nt)})})}function Qe(mt,Nt){try{Ve(Ce[mt](Nt))}catch(ke){wt(Me[0][3],ke)}}function Ve(mt){mt.value instanceof A?Promise.resolve(mt.value.v).then(qe,Mt):wt(Me[0][2],mt)}function qe(mt){Qe("next",mt)}function Mt(mt){Qe("throw",mt)}function wt(mt,Nt){mt(Nt),Me.shift(),Me.length&&Qe(Me[0][0],Me[0][1])}}function I(P){var Q,fe;return Q={},Ce("next"),Ce("throw",function(ge){throw ge}),Ce("return"),Q[Symbol.iterator]=function(){return this},Q;function Ce(ge,Me){Q[ge]=P[ge]?function(Re){return(fe=!fe)?{value:A(P[ge](Re)),done:!1}:Me?Me(Re):Re}:Me}}function $(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Q=P[Symbol.asyncIterator],fe;return Q?Q.call(P):(P=typeof Z=="function"?Z(P):P[Symbol.iterator](),fe={},Ce("next"),Ce("throw"),Ce("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function Ce(Me){fe[Me]=P[Me]&&function(Re){return new Promise(function(Qe,Ve){Re=P[Me](Re),ge(Qe,Ve,Re.done,Re.value)})}}function ge(Me,Re,Qe,Ve){Promise.resolve(Ve).then(function(qe){Me({value:qe,done:Qe})},Re)}}function B(P,Q){return Object.defineProperty?Object.defineProperty(P,"raw",{value:Q}):P.raw=Q,P}var K=Object.create?function(P,Q){Object.defineProperty(P,"default",{enumerable:!0,value:Q})}:function(P,Q){P.default=Q};function H(P){if(P&&P.__esModule)return P;var Q={};if(P!=null)for(var fe in P)fe!=="default"&&Object.prototype.hasOwnProperty.call(P,fe)&&w(Q,P,fe);return K(Q,P),Q}function ie(P){return P&&P.__esModule?P:{default:P}}function ce(P,Q,fe,Ce){if(fe==="a"&&!Ce)throw new TypeError("Private accessor was defined without a getter");if(typeof Q=="function"?P!==Q||!Ce:!Q.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?Ce:fe==="a"?Ce.call(P):Ce?Ce.value:Q.get(P)}function te(P,Q,fe,Ce,ge){if(Ce==="m")throw new TypeError("Private method is not writable");if(Ce==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof Q=="function"?P!==Q||!ge:!Q.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ce==="a"?ge.call(P,fe):ge?ge.value=fe:Q.set(P,fe),fe}function W(P,Q){if(Q===null||typeof Q!="object"&&typeof Q!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof P=="function"?Q===P:P.has(Q)}function G(P,Q,fe){if(Q!=null){if(typeof Q!="object"&&typeof Q!="function")throw new TypeError("Object expected.");var Ce;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ce=Q[Symbol.asyncDispose]}if(Ce===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ce=Q[Symbol.dispose]}if(typeof Ce!="function")throw new TypeError("Object not disposable.");P.stack.push({value:Q,dispose:Ce,async:fe})}else fe&&P.stack.push({async:!0});return Q}var O=typeof SuppressedError=="function"?SuppressedError:function(P,Q,fe){var Ce=new Error(fe);return Ce.name="SuppressedError",Ce.error=P,Ce.suppressed=Q,Ce};function k(P){function Q(Ce){P.error=P.hasError?new O(Ce,P.error,"An error was suppressed during disposal."):Ce,P.hasError=!0}function fe(){for(;P.stack.length;){var Ce=P.stack.pop();try{var ge=Ce.dispose&&Ce.dispose.call(Ce.value);if(Ce.async)return Promise.resolve(ge).then(fe,function(Me){return Q(Me),fe()})}catch(Me){Q(Me)}}if(P.hasError)throw P.error}return fe()}var Y={__extends:t,__assign:o,__rest:s,__decorate:n,__param:c,__metadata:C,__awaiter:p,__generator:S,__createBinding:w,__exportStar:y,__values:Z,__read:F,__spread:R,__spreadArrays:T,__spreadArray:z,__await:A,__asyncGenerator:L,__asyncDelegator:I,__asyncValues:$,__makeTemplateObject:B,__importStar:H,__importDefault:ie,__classPrivateFieldGet:ce,__classPrivateFieldSet:te,__classPrivateFieldIn:W,__addDisposableResource:G,__disposeResources:k}}},Dl={};function vt(M){var b=Dl[M];if(b!==void 0)return b.exports;var e=Dl[M]={id:M,loaded:!1,exports:{}};return Jl[M].call(e.exports,e,e.exports,vt),e.loaded=!0,e.exports}vt.m=Jl,function(){vt.n=function(M){var b=M&&M.__esModule?function(){return M.default}:function(){return M};return vt.d(b,{a:b}),b}}(),function(){var M=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b;vt.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var t=Object.create(null);vt.r(t);var o={};b=b||[null,M({}),M([]),M(M)];for(var s=i&2&&e;typeof s=="object"&&!~b.indexOf(s);s=M(s))Object.getOwnPropertyNames(s).forEach(function(n){o[n]=function(){return e[n]}});return o.default=function(){return e},vt.d(t,o),t}}(),function(){vt.d=function(M,b){for(var e in b)vt.o(b,e)&&!vt.o(M,e)&&Object.defineProperty(M,e,{enumerable:!0,get:b[e]})}}(),function(){vt.f={},vt.e=function(M){return Promise.all(Object.keys(vt.f).reduce(function(b,e){return vt.f[e](M,b),b},[]))}}(),function(){vt.u=function(M){return""+({33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",571:"p__404",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",899:"wrappers__auth",914:"p__Project__Workspace__index"}[M]||M)+"."+{7:"e4c5d564",9:"9f27f1a0",20:"4f772983",33:"020ca2a8",69:"19ec0491",109:"d9c59d4e",124:"69a3d116",222:"a6c6168c",233:"9b953a00",301:"2ad2010d",358:"5de6b129",397:"036a40dd",422:"e1c904d6",482:"76b40e08",571:"0f1cb5ec",605:"a09f73b7",717:"3feee7db",721:"ddebad1b",734:"71047163",739:"572dbaae",742:"95758e3b",818:"9ff3ddb4",845:"7d656ce9",851:"131421c9",899:"d0b0c30b",914:"1f56588b"}[M]+".async.js"}}(),function(){vt.miniCssF=function(M){return""+{33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",914:"p__Project__Workspace__index"}[M]+"."+{33:"e261a835",69:"85029923",109:"0f643c55",301:"383e10cb",358:"133bb551",397:"be3332fd",605:"2c17e085",717:"18db7c0b",721:"0a5e0e7e",734:"a6aa2d70",739:"e3ef503c",914:"17ab0171"}[M]+".chunk.css"}}(),function(){vt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(M){if(typeof window=="object")return window}}()}(),function(){vt.hmd=function(M){return M=Object.create(M),M.children||(M.children=[]),Object.defineProperty(M,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+M.id)}}),M}}(),function(){vt.o=function(M,b){return Object.prototype.hasOwnProperty.call(M,b)}}(),function(){var M={},b="app:";vt.l=function(e,i,t,o){if(M[e]){M[e].push(i);return}var s,n;if(t!==void 0)for(var c=document.getElementsByTagName("script"),l=0;l=0)&&(n[l]=o[l]);return n}function t(o,s){if(o==null)return{};var n=i(o,s),c,l;if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(o);for(l=0;l=0)&&Object.prototype.propertyIsEnumerable.call(o,c)&&(n[c]=o[c])}return n}},74632:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(38790);function t(){"use strict";t=function(){return s};var o,s={},n=Object.prototype,c=n.hasOwnProperty,l=Object.defineProperty||function(Y,P,Q){Y[P]=Q.value},v=typeof Symbol=="function"?Symbol:{},h=v.iterator||"@@iterator",m=v.asyncIterator||"@@asyncIterator",C=v.toStringTag||"@@toStringTag";function p(Y,P,Q){return Object.defineProperty(Y,P,{value:Q,enumerable:!0,configurable:!0,writable:!0}),Y[P]}try{p({},"")}catch(Y){p=function(Q,fe,Ce){return Q[fe]=Ce}}function S(Y,P,Q,fe){var Ce=P&&P.prototype instanceof z?P:z,ge=Object.create(Ce.prototype),Me=new O(fe||[]);return l(ge,"_invoke",{value:ce(Y,Q,Me)}),ge}function w(Y,P,Q){try{return{type:"normal",arg:Y.call(P,Q)}}catch(fe){return{type:"throw",arg:fe}}}s.wrap=S;var y="suspendedStart",Z="suspendedYield",F="executing",R="completed",T={};function z(){}function A(){}function L(){}var I={};p(I,h,function(){return this});var $=Object.getPrototypeOf,B=$&&$($(k([])));B&&B!==n&&c.call(B,h)&&(I=B);var K=L.prototype=z.prototype=Object.create(I);function H(Y){["next","throw","return"].forEach(function(P){p(Y,P,function(Q){return this._invoke(P,Q)})})}function ie(Y,P){function Q(Ce,ge,Me,Ne){var Qe=w(Y[Ce],Y,ge);if(Qe.type!=="throw"){var Ve=Qe.arg,qe=Ve.value;return qe&&(0,i.Z)(qe)=="object"&&c.call(qe,"__await")?P.resolve(qe.__await).then(function(Mt){Q("next",Mt,Me,Ne)},function(Mt){Q("throw",Mt,Me,Ne)}):P.resolve(qe).then(function(Mt){Ve.value=Mt,Me(Ve)},function(Mt){return Q("throw",Mt,Me,Ne)})}Ne(Qe.arg)}var fe;l(this,"_invoke",{value:function(ge,Me){function Ne(){return new P(function(Qe,Ve){Q(ge,Me,Qe,Ve)})}return fe=fe?fe.then(Ne,Ne):Ne()}})}function ce(Y,P,Q){var fe=y;return function(Ce,ge){if(fe===F)throw new Error("Generator is already running");if(fe===R){if(Ce==="throw")throw ge;return{value:o,done:!0}}for(Q.method=Ce,Q.arg=ge;;){var Me=Q.delegate;if(Me){var Ne=te(Me,Q);if(Ne){if(Ne===T)continue;return Ne}}if(Q.method==="next")Q.sent=Q._sent=Q.arg;else if(Q.method==="throw"){if(fe===y)throw fe=R,Q.arg;Q.dispatchException(Q.arg)}else Q.method==="return"&&Q.abrupt("return",Q.arg);fe=F;var Qe=w(Y,P,Q);if(Qe.type==="normal"){if(fe=Q.done?R:Z,Qe.arg===T)continue;return{value:Qe.arg,done:Q.done}}Qe.type==="throw"&&(fe=R,Q.method="throw",Q.arg=Qe.arg)}}}function te(Y,P){var Q=P.method,fe=Y.iterator[Q];if(fe===o)return P.delegate=null,Q==="throw"&&Y.iterator.return&&(P.method="return",P.arg=o,te(Y,P),P.method==="throw")||Q!=="return"&&(P.method="throw",P.arg=new TypeError("The iterator does not provide a '"+Q+"' method")),T;var Ce=w(fe,Y.iterator,P.arg);if(Ce.type==="throw")return P.method="throw",P.arg=Ce.arg,P.delegate=null,T;var ge=Ce.arg;return ge?ge.done?(P[Y.resultName]=ge.value,P.next=Y.nextLoc,P.method!=="return"&&(P.method="next",P.arg=o),P.delegate=null,T):ge:(P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,T)}function W(Y){var P={tryLoc:Y[0]};1 in Y&&(P.catchLoc=Y[1]),2 in Y&&(P.finallyLoc=Y[2],P.afterLoc=Y[3]),this.tryEntries.push(P)}function G(Y){var P=Y.completion||{};P.type="normal",delete P.arg,Y.completion=P}function O(Y){this.tryEntries=[{tryLoc:"root"}],Y.forEach(W,this),this.reset(!0)}function k(Y){if(Y||Y===""){var P=Y[h];if(P)return P.call(Y);if(typeof Y.next=="function")return Y;if(!isNaN(Y.length)){var Q=-1,fe=function Ce(){for(;++Q=0;--Ce){var ge=this.tryEntries[Ce],Me=ge.completion;if(ge.tryLoc==="root")return fe("end");if(ge.tryLoc<=this.prev){var Ne=c.call(ge,"catchLoc"),Qe=c.call(ge,"finallyLoc");if(Ne&&Qe){if(this.prev=0;--fe){var Ce=this.tryEntries[fe];if(Ce.tryLoc<=this.prev&&c.call(Ce,"finallyLoc")&&this.prev=0;--Q){var fe=this.tryEntries[Q];if(fe.finallyLoc===P)return this.complete(fe.completion,fe.afterLoc),G(fe),T}},catch:function(P){for(var Q=this.tryEntries.length-1;Q>=0;--Q){var fe=this.tryEntries[Q];if(fe.tryLoc===P){var Ce=fe.completion;if(Ce.type==="throw"){var ge=Ce.arg;G(fe)}return ge}}throw new Error("illegal catch attempt")},delegateYield:function(P,Q,fe){return this.delegate={iterator:k(P),resultName:Q,nextLoc:fe},this.method==="next"&&(this.arg=o),T}},s}},28314:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(5563);function t(c,l){var v=c==null?null:typeof Symbol!="undefined"&&c[Symbol.iterator]||c["@@iterator"];if(v!=null){var h,m,C,p,S=[],w=!0,y=!1;try{if(C=(v=v.call(c)).next,l===0){if(Object(v)!==v)return;w=!1}else for(;!(w=(h=C.call(v)).done)&&(S.push(h.value),S.length!==l);w=!0);}catch(Z){y=!0,m=Z}finally{try{if(!w&&v.return!=null&&(p=v.return(),Object(p)!==p))return}finally{if(y)throw m}}return S}}var o=e(25516),s=e(53373);function n(c,l){return(0,i.Z)(c)||t(c,l)||(0,o.Z)(c,l)||(0,s.Z)()}},6747:function(M,b,e){"use strict";e.d(b,{Z:function(){return n}});var i=e(5563),t=e(10443),o=e(25516),s=e(53373);function n(c){return(0,i.Z)(c)||(0,t.Z)(c)||(0,o.Z)(c)||(0,s.Z)()}},29140:function(M,b,e){"use strict";e.d(b,{Z:function(){return c}});var i=e(41437);function t(l){if(Array.isArray(l))return(0,i.Z)(l)}var o=e(10443),s=e(25516);function n(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(l){return t(l)||(0,o.Z)(l)||(0,s.Z)(l)||n()}},70794:function(M,b,e){"use strict";e.d(b,{Z:function(){return o}});var i=e(38790);function t(s,n){if((0,i.Z)(s)!=="object"||s===null)return s;var c=s[Symbol.toPrimitive];if(c!==void 0){var l=c.call(s,n||"default");if((0,i.Z)(l)!=="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(s)}function o(s){var n=t(s,"string");return(0,i.Z)(n)==="symbol"?n:String(n)}},38790:function(M,b,e){"use strict";e.d(b,{Z:function(){return i}});function i(t){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i(t)}},25516:function(M,b,e){"use strict";e.d(b,{Z:function(){return t}});var i=e(41437);function t(o,s){if(o){if(typeof o=="string")return(0,i.Z)(o,s);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor&&(n=o.constructor.name),n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return(0,i.Z)(o,s)}}},70989:function(M,b,e){"use strict";e.d(b,{D:function(){return t}});function i(o,s,n){var c=n||{},l=c.noTrailing,v=l===void 0?!1:l,h=c.noLeading,m=h===void 0?!1:h,C=c.debounceMode,p=C===void 0?void 0:C,S,w=!1,y=0;function Z(){S&&clearTimeout(S)}function F(T){var z=T||{},A=z.upcomingOnly,L=A===void 0?!1:A;Z(),w=!L}function R(){for(var T=arguments.length,z=new Array(T),A=0;Ao?m?(y=Date.now(),v||(S=setTimeout(p?B:$,o))):$():v!==!0&&(S=setTimeout(p?B:$,p===void 0?o-I:o))}return R.cancel=F,R}function t(o,s,n){var c=n||{},l=c.atBegin,v=l===void 0?!1:l;return i(o,s,{debounceMode:v!==!1})}},43112:function(M,b,e){"use strict";e.d(b,{CR:function(){return F},Jh:function(){return S},XA:function(){return Z},_T:function(){return s},ev:function(){return z},mG:function(){return p},pi:function(){return o}});var i=function(P,Q){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,Ce){fe.__proto__=Ce}||function(fe,Ce){for(var ge in Ce)Object.prototype.hasOwnProperty.call(Ce,ge)&&(fe[ge]=Ce[ge])},i(P,Q)};function t(P,Q){if(typeof Q!="function"&&Q!==null)throw new TypeError("Class extends value "+String(Q)+" is not a constructor or null");i(P,Q);function fe(){this.constructor=P}P.prototype=Q===null?Object.create(Q):(fe.prototype=Q.prototype,new fe)}var o=function(){return o=Object.assign||function(Q){for(var fe,Ce=1,ge=arguments.length;Ce=0;Qe--)(Ne=P[Qe])&&(Me=(ge<3?Ne(Me):ge>3?Ne(Q,fe,Me):Ne(Q,fe))||Me);return ge>3&&Me&&Object.defineProperty(Q,fe,Me),Me}function c(P,Q){return function(fe,Ce){Q(fe,Ce,P)}}function l(P,Q,fe,Ce,ge,Me){function Ne(Fe){if(Fe!==void 0&&typeof Fe!="function")throw new TypeError("Function expected");return Fe}for(var Qe=Ce.kind,Ve=Qe==="getter"?"get":Qe==="setter"?"set":"value",qe=!Q&&P?Ce.static?P:P.prototype:null,Mt=Q||(qe?Object.getOwnPropertyDescriptor(qe,Ce.name):{}),wt,gt=!1,Lt=fe.length-1;Lt>=0;Lt--){var ke={};for(var He in Ce)ke[He]=He==="access"?{}:Ce[He];for(var He in Ce.access)ke.access[He]=Ce.access[He];ke.addInitializer=function(Fe){if(gt)throw new TypeError("Cannot add initializers after decoration has completed");Me.push(Ne(Fe||null))};var et=(0,fe[Lt])(Qe==="accessor"?{get:Mt.get,set:Mt.set}:Mt[Ve],ke);if(Qe==="accessor"){if(et===void 0)continue;if(et===null||typeof et!="object")throw new TypeError("Object expected");(wt=Ne(et.get))&&(Mt.get=wt),(wt=Ne(et.set))&&(Mt.set=wt),(wt=Ne(et.init))&&ge.unshift(wt)}else(wt=Ne(et))&&(Qe==="field"?ge.unshift(wt):Mt[Ve]=wt)}qe&&Object.defineProperty(qe,Ce.name,Mt),gt=!0}function v(P,Q,fe){for(var Ce=arguments.length>2,ge=0;ge0&&Me[Me.length-1])&&(qe[0]===6||qe[0]===2)){fe=0;continue}if(qe[0]===3&&(!Me||qe[1]>Me[0]&&qe[1]=P.length&&(P=void 0),{value:P&&P[Ce++],done:!P}}};throw new TypeError(Q?"Object is not iterable.":"Symbol.iterator is not defined.")}function F(P,Q){var fe=typeof Symbol=="function"&&P[Symbol.iterator];if(!fe)return P;var Ce=fe.call(P),ge,Me=[],Ne;try{for(;(Q===void 0||Q-- >0)&&!(ge=Ce.next()).done;)Me.push(ge.value)}catch(Qe){Ne={error:Qe}}finally{try{ge&&!ge.done&&(fe=Ce.return)&&fe.call(Ce)}finally{if(Ne)throw Ne.error}}return Me}function R(){for(var P=[],Q=0;Q1||Qe(gt,Lt)})})}function Qe(gt,Lt){try{Ve(Ce[gt](Lt))}catch(ke){wt(Me[0][3],ke)}}function Ve(gt){gt.value instanceof A?Promise.resolve(gt.value.v).then(qe,Mt):wt(Me[0][2],gt)}function qe(gt){Qe("next",gt)}function Mt(gt){Qe("throw",gt)}function wt(gt,Lt){gt(Lt),Me.shift(),Me.length&&Qe(Me[0][0],Me[0][1])}}function I(P){var Q,fe;return Q={},Ce("next"),Ce("throw",function(ge){throw ge}),Ce("return"),Q[Symbol.iterator]=function(){return this},Q;function Ce(ge,Me){Q[ge]=P[ge]?function(Ne){return(fe=!fe)?{value:A(P[ge](Ne)),done:!1}:Me?Me(Ne):Ne}:Me}}function $(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Q=P[Symbol.asyncIterator],fe;return Q?Q.call(P):(P=typeof Z=="function"?Z(P):P[Symbol.iterator](),fe={},Ce("next"),Ce("throw"),Ce("return"),fe[Symbol.asyncIterator]=function(){return this},fe);function Ce(Me){fe[Me]=P[Me]&&function(Ne){return new Promise(function(Qe,Ve){Ne=P[Me](Ne),ge(Qe,Ve,Ne.done,Ne.value)})}}function ge(Me,Ne,Qe,Ve){Promise.resolve(Ve).then(function(qe){Me({value:qe,done:Qe})},Ne)}}function B(P,Q){return Object.defineProperty?Object.defineProperty(P,"raw",{value:Q}):P.raw=Q,P}var K=Object.create?function(P,Q){Object.defineProperty(P,"default",{enumerable:!0,value:Q})}:function(P,Q){P.default=Q};function H(P){if(P&&P.__esModule)return P;var Q={};if(P!=null)for(var fe in P)fe!=="default"&&Object.prototype.hasOwnProperty.call(P,fe)&&w(Q,P,fe);return K(Q,P),Q}function ie(P){return P&&P.__esModule?P:{default:P}}function ce(P,Q,fe,Ce){if(fe==="a"&&!Ce)throw new TypeError("Private accessor was defined without a getter");if(typeof Q=="function"?P!==Q||!Ce:!Q.has(P))throw new TypeError("Cannot read private member from an object whose class did not declare it");return fe==="m"?Ce:fe==="a"?Ce.call(P):Ce?Ce.value:Q.get(P)}function te(P,Q,fe,Ce,ge){if(Ce==="m")throw new TypeError("Private method is not writable");if(Ce==="a"&&!ge)throw new TypeError("Private accessor was defined without a setter");if(typeof Q=="function"?P!==Q||!ge:!Q.has(P))throw new TypeError("Cannot write private member to an object whose class did not declare it");return Ce==="a"?ge.call(P,fe):ge?ge.value=fe:Q.set(P,fe),fe}function W(P,Q){if(Q===null||typeof Q!="object"&&typeof Q!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof P=="function"?Q===P:P.has(Q)}function G(P,Q,fe){if(Q!=null){if(typeof Q!="object"&&typeof Q!="function")throw new TypeError("Object expected.");var Ce;if(fe){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");Ce=Q[Symbol.asyncDispose]}if(Ce===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");Ce=Q[Symbol.dispose]}if(typeof Ce!="function")throw new TypeError("Object not disposable.");P.stack.push({value:Q,dispose:Ce,async:fe})}else fe&&P.stack.push({async:!0});return Q}var O=typeof SuppressedError=="function"?SuppressedError:function(P,Q,fe){var Ce=new Error(fe);return Ce.name="SuppressedError",Ce.error=P,Ce.suppressed=Q,Ce};function k(P){function Q(Ce){P.error=P.hasError?new O(Ce,P.error,"An error was suppressed during disposal."):Ce,P.hasError=!0}function fe(){for(;P.stack.length;){var Ce=P.stack.pop();try{var ge=Ce.dispose&&Ce.dispose.call(Ce.value);if(Ce.async)return Promise.resolve(ge).then(fe,function(Me){return Q(Me),fe()})}catch(Me){Q(Me)}}if(P.hasError)throw P.error}return fe()}var Y={__extends:t,__assign:o,__rest:s,__decorate:n,__param:c,__metadata:C,__awaiter:p,__generator:S,__createBinding:w,__exportStar:y,__values:Z,__read:F,__spread:R,__spreadArrays:T,__spreadArray:z,__await:A,__asyncGenerator:L,__asyncDelegator:I,__asyncValues:$,__makeTemplateObject:B,__importStar:H,__importDefault:ie,__classPrivateFieldGet:ce,__classPrivateFieldSet:te,__classPrivateFieldIn:W,__addDisposableResource:G,__disposeResources:k}}},Dl={};function vt(M){var b=Dl[M];if(b!==void 0)return b.exports;var e=Dl[M]={id:M,loaded:!1,exports:{}};return Jl[M].call(e.exports,e,e.exports,vt),e.loaded=!0,e.exports}vt.m=Jl,function(){vt.n=function(M){var b=M&&M.__esModule?function(){return M.default}:function(){return M};return vt.d(b,{a:b}),b}}(),function(){var M=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__},b;vt.t=function(e,i){if(i&1&&(e=this(e)),i&8||typeof e=="object"&&e&&(i&4&&e.__esModule||i&16&&typeof e.then=="function"))return e;var t=Object.create(null);vt.r(t);var o={};b=b||[null,M({}),M([]),M(M)];for(var s=i&2&&e;typeof s=="object"&&!~b.indexOf(s);s=M(s))Object.getOwnPropertyNames(s).forEach(function(n){o[n]=function(){return e[n]}});return o.default=function(){return e},vt.d(t,o),t}}(),function(){vt.d=function(M,b){for(var e in b)vt.o(b,e)&&!vt.o(M,e)&&Object.defineProperty(M,e,{enumerable:!0,get:b[e]})}}(),function(){vt.f={},vt.e=function(M){return Promise.all(Object.keys(vt.f).reduce(function(b,e){return vt.f[e](M,b),b},[]))}}(),function(){vt.u=function(M){return""+({33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",571:"p__404",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",899:"wrappers__auth",914:"p__Project__Workspace__index"}[M]||M)+"."+{7:"e4c5d564",9:"9f27f1a0",20:"4f772983",33:"3ddc5261",69:"19ec0491",109:"d9c59d4e",124:"69a3d116",222:"a6c6168c",233:"9b953a00",301:"2ad2010d",358:"5de6b129",397:"8182d4fa",422:"e1c904d6",482:"76b40e08",571:"0f1cb5ec",605:"a09f73b7",717:"3feee7db",721:"ddebad1b",734:"71047163",739:"572dbaae",742:"95758e3b",818:"9ff3ddb4",845:"7d656ce9",851:"131421c9",899:"d0b0c30b",914:"1f56588b"}[M]+".async.js"}}(),function(){vt.miniCssF=function(M){return""+{33:"p__Dataset__index",69:"p__Project__Detail__index",109:"p__DatasetList__index",301:"t__plugin-layout__Layout",358:"p__Lab__index",397:"p__Lab__FlagTool__index",605:"p__Lab__Datasets__index",717:"layouts__index",721:"p__Project__index",734:"p__Annotator__index",739:"p__Login__index",914:"p__Project__Workspace__index"}[M]+"."+{33:"e261a835",69:"85029923",109:"0f643c55",301:"383e10cb",358:"133bb551",397:"be3332fd",605:"2c17e085",717:"18db7c0b",721:"0a5e0e7e",734:"a6aa2d70",739:"e3ef503c",914:"17ab0171"}[M]+".chunk.css"}}(),function(){vt.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(M){if(typeof window=="object")return window}}()}(),function(){vt.hmd=function(M){return M=Object.create(M),M.children||(M.children=[]),Object.defineProperty(M,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+M.id)}}),M}}(),function(){vt.o=function(M,b){return Object.prototype.hasOwnProperty.call(M,b)}}(),function(){var M={},b="app:";vt.l=function(e,i,t,o){if(M[e]){M[e].push(i);return}var s,n;if(t!==void 0)for(var c=document.getElementsByTagName("script"),l=0;l0})),li=Di({routesById:Cr,routeComponents:ha,parentId:_o.id,loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat});return li.length>0&&(_o.children=li,_o.routes=li),_o})}function $i(ur){var Cr=(0,Oo.useParams)(),ca=(0,Wa.Z)((0,Wa.Z)({},ur),{},{to:(0,Oo.generatePath)(ur.to,Cr)});return qr.createElement(Oo.Navigate,(0,go.Z)({replace:!0},ca))}function wi(ur){var Cr=ur.route,ca=Cr.redirect,ha=(0,di.Z)(Cr,ii),da=ur.reactRouter5Compat?ns:Fi;return(0,Wa.Z)({element:ca?qr.createElement($i,{to:ca}):qr.createElement(Oi.Provider,{value:{route:ur.route}},qr.createElement(da,{loader:qr.memo(ur.routeComponent),loadingComponent:ur.loadingComponent||Ti,hasChildren:ur.hasChildren}))},ha)}function Ti(){return qr.createElement("div",null)}function ns(ur){var Cr=Li(),ca=Cr.route,ha=(0,oi.Ov)(),da=ha.history,_o=ha.clientRoutes,li=(0,Oo.useParams)(),Xo={params:li,isExact:!0,path:ca.path,url:da.location.pathname},_i=ur.loader;return qr.createElement(qr.Suspense,{fallback:qr.createElement(ur.loadingComponent,null)},qr.createElement(_i,{location:da.location,match:Xo,history:da,params:li,route:ca,routes:_o},ur.hasChildren&&qr.createElement(Oo.Outlet,null)))}function Fi(ur){var Cr=ur.loader;return qr.createElement(qr.Suspense,{fallback:qr.createElement(ur.loadingComponent,null)},qr.createElement(Cr,null))}var ro=null;function Va(){return ro}function gi(ur){var Cr=ur.history,ca=qr.useState({action:Cr.action,location:Cr.location}),ha=vo(ca,2),da=ha[0],_o=ha[1];return(0,qr.useLayoutEffect)(function(){return Cr.listen(_o)},[Cr]),(0,qr.useLayoutEffect)(function(){function li(Xo){ur.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:ur.routes,clientRoutes:ur.clientRoutes,location:Xo.location,action:Xo.action,basename:ur.basename,isFirst:!!Xo.isFirst}})}Cr.listen(li),li({location:da.location,action:da.action,isFirst:!0})},[Cr,ur.routes,ur.clientRoutes]),qr.createElement(Oo.Router,{navigator:Cr,location:da.location,basename:ur.basename},ur.children)}function si(){var ur=(0,oi.Ov)(),Cr=ur.clientRoutes;return(0,Oo.useRoutes)(Cr)}var Zo=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Yo=function(Cr,ca){var ha=Cr.basename||"/",da=Di({routesById:Cr.routes,routeComponents:Cr.routeComponents,loadingComponent:Cr.loadingComponent,reactRouter5Compat:Cr.reactRouter5Compat});Cr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:da}});for(var _o=qr.createElement(gi,{basename:ha,pluginManager:Cr.pluginManager,routes:Cr.routes,clientRoutes:da,history:Cr.history},ca),li=0,Xo=Zo;li0})),si=Di({routesById:Cr,routeComponents:pa,parentId:Ho.id,loadingComponent:ur.loadingComponent,reactRouter5Compat:ur.reactRouter5Compat});return si.length>0&&(Ho.children=si,Ho.routes=si),Ho})}function Fi(ur){var Cr=(0,Ao.useParams)(),ca=(0,Wa.Z)((0,Wa.Z)({},ur),{},{to:(0,Ao.generatePath)(ur.to,Cr)});return Jr.createElement(Ao.Navigate,(0,go.Z)({replace:!0},ca))}function wi(ur){var Cr=ur.route,ca=Cr.redirect,pa=(0,fi.Z)(Cr,oi),fa=ur.reactRouter5Compat?ns:Zi;return(0,Wa.Z)({element:ca?Jr.createElement(Fi,{to:ca}):Jr.createElement(Oi.Provider,{value:{route:ur.route}},Jr.createElement(fa,{loader:Jr.memo(ur.routeComponent),loadingComponent:ur.loadingComponent||Ti,hasChildren:ur.hasChildren}))},pa)}function Ti(){return Jr.createElement("div",null)}function ns(ur){var Cr=Li(),ca=Cr.route,pa=(0,ai.Ov)(),fa=pa.history,Ho=pa.clientRoutes,si=(0,Ao.useParams)(),Jo={params:si,isExact:!0,path:ca.path,url:fa.location.pathname},Wi=ur.loader;return Jr.createElement(Jr.Suspense,{fallback:Jr.createElement(ur.loadingComponent,null)},Jr.createElement(Wi,{location:fa.location,match:Jo,history:fa,params:si,route:ca,routes:Ho},ur.hasChildren&&Jr.createElement(Ao.Outlet,null)))}function Zi(ur){var Cr=ur.loader;return Jr.createElement(Jr.Suspense,{fallback:Jr.createElement(ur.loadingComponent,null)},Jr.createElement(Cr,null))}var ao=null;function Ka(){return ao}function mi(ur){var Cr=ur.history,ca=Jr.useState({action:Cr.action,location:Cr.location}),pa=vo(ca,2),fa=pa[0],Ho=pa[1];return(0,Jr.useLayoutEffect)(function(){return Cr.listen(Ho)},[Cr]),(0,Jr.useLayoutEffect)(function(){function si(Jo){ur.pluginManager.applyPlugins({key:"onRouteChange",type:"event",args:{routes:ur.routes,clientRoutes:ur.clientRoutes,location:Jo.location,action:Jo.action,basename:ur.basename,isFirst:!!Jo.isFirst}})}Cr.listen(si),si({location:fa.location,action:fa.action,isFirst:!0})},[Cr,ur.routes,ur.clientRoutes]),Jr.createElement(Ao.Router,{navigator:Cr,location:fa.location,basename:ur.basename},ur.children)}function ii(){var ur=(0,ai.Ov)(),Cr=ur.clientRoutes;return(0,Ao.useRoutes)(Cr)}var Zo=["innerProvider","i18nProvider","accessProvider","dataflowProvider","outerProvider","rootContainer"],Ko=function(Cr,ca){var pa=Cr.basename||"/",fa=Di({routesById:Cr.routes,routeComponents:Cr.routeComponents,loadingComponent:Cr.loadingComponent,reactRouter5Compat:Cr.reactRouter5Compat});Cr.pluginManager.applyPlugins({key:"patchClientRoutes",type:"event",args:{routes:fa}});for(var Ho=Jr.createElement(mi,{basename:pa,pluginManager:Cr.pluginManager,routes:Cr.routes,clientRoutes:fa,history:Cr.history},ca),si=0,Jo=Zo;si= 60 && Math.round(hsv.h) <= 240) {\n hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;\n } else {\n hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;\n }\n\n if (hue < 0) {\n hue += 360;\n } else if (hue >= 360) {\n hue -= 360;\n }\n\n return hue;\n}\n\nfunction getSaturation(hsv, i, light) {\n // grey color don't change saturation\n if (hsv.h === 0 && hsv.s === 0) {\n return hsv.s;\n }\n\n var saturation;\n\n if (light) {\n saturation = hsv.s - saturationStep * i;\n } else if (i === darkColorCount) {\n saturation = hsv.s + saturationStep;\n } else {\n saturation = hsv.s + saturationStep2 * i;\n } // 边界值修正\n\n\n if (saturation > 1) {\n saturation = 1;\n } // 第一格的 s 限制在 0.06-0.1 之间\n\n\n if (light && i === lightColorCount && saturation > 0.1) {\n saturation = 0.1;\n }\n\n if (saturation < 0.06) {\n saturation = 0.06;\n }\n\n return Number(saturation.toFixed(2));\n}\n\nfunction getValue(hsv, i, light) {\n var value;\n\n if (light) {\n value = hsv.v + brightnessStep1 * i;\n } else {\n value = hsv.v - brightnessStep2 * i;\n }\n\n if (value > 1) {\n value = 1;\n }\n\n return Number(value.toFixed(2));\n}\n\nexport default function generate(color) {\n var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var patterns = [];\n var pColor = inputToRGB(color);\n\n for (var i = lightColorCount; i > 0; i -= 1) {\n var hsv = toHsv(pColor);\n var colorString = toHex(inputToRGB({\n h: getHue(hsv, i, true),\n s: getSaturation(hsv, i, true),\n v: getValue(hsv, i, true)\n }));\n patterns.push(colorString);\n }\n\n patterns.push(toHex(pColor));\n\n for (var _i = 1; _i <= darkColorCount; _i += 1) {\n var _hsv = toHsv(pColor);\n\n var _colorString = toHex(inputToRGB({\n h: getHue(_hsv, _i),\n s: getSaturation(_hsv, _i),\n v: getValue(_hsv, _i)\n }));\n\n patterns.push(_colorString);\n } // dark theme patterns\n\n\n if (opts.theme === 'dark') {\n return darkColorMap.map(function (_ref3) {\n var index = _ref3.index,\n opacity = _ref3.opacity;\n var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || '#141414'), inputToRGB(patterns[index]), opacity * 100));\n return darkColorString;\n });\n }\n\n return patterns;\n}","import generate from \"./generate\";\nvar presetPrimaryColors = {\n red: '#F5222D',\n volcano: '#FA541C',\n orange: '#FA8C16',\n gold: '#FAAD14',\n yellow: '#FADB14',\n lime: '#A0D911',\n green: '#52C41A',\n cyan: '#13C2C2',\n blue: '#1677FF',\n geekblue: '#2F54EB',\n purple: '#722ED1',\n magenta: '#EB2F96',\n grey: '#666666'\n};\nvar presetPalettes = {};\nvar presetDarkPalettes = {};\nObject.keys(presetPrimaryColors).forEach(function (key) {\n presetPalettes[key] = generate(presetPrimaryColors[key]);\n presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes\n\n presetDarkPalettes[key] = generate(presetPrimaryColors[key], {\n theme: 'dark',\n backgroundColor: '#141414'\n });\n presetDarkPalettes[key].primary = presetDarkPalettes[key][5];\n});\nvar red = presetPalettes.red;\nvar volcano = presetPalettes.volcano;\nvar gold = presetPalettes.gold;\nvar orange = presetPalettes.orange;\nvar yellow = presetPalettes.yellow;\nvar lime = presetPalettes.lime;\nvar green = presetPalettes.green;\nvar cyan = presetPalettes.cyan;\nvar blue = presetPalettes.blue;\nvar geekblue = presetPalettes.geekblue;\nvar purple = presetPalettes.purple;\nvar magenta = presetPalettes.magenta;\nvar grey = presetPalettes.grey;\nvar gray = presetPalettes.grey;\nexport { generate, presetPalettes, presetDarkPalettes, presetPrimaryColors, red, volcano, orange, gold, yellow, lime, green, cyan, blue, geekblue, purple, magenta, grey, gray };","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport default murmur2;\n","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n// [times, realValue]\n\nvar SPLIT = '%';\nvar Entity = /*#__PURE__*/function () {\n function Entity(instanceId) {\n _classCallCheck(this, Entity);\n _defineProperty(this, \"instanceId\", void 0);\n /** @private Internal cache map. Do not access this directly */\n _defineProperty(this, \"cache\", new Map());\n this.instanceId = instanceId;\n }\n _createClass(Entity, [{\n key: \"get\",\n value: function get(keys) {\n return this.cache.get(keys.join(SPLIT)) || null;\n }\n }, {\n key: \"update\",\n value: function update(keys, valueFn) {\n var path = keys.join(SPLIT);\n var prevValue = this.cache.get(path);\n var nextValue = valueFn(prevValue);\n if (nextValue === null) {\n this.cache.delete(path);\n } else {\n this.cache.set(path, nextValue);\n }\n }\n }]);\n return Entity;\n}();\nexport default Entity;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"children\"];\nimport useMemo from \"rc-util/es/hooks/useMemo\";\nimport isEqual from \"rc-util/es/isEqual\";\nimport * as React from 'react';\nimport CacheEntity from \"./Cache\";\nexport var ATTR_TOKEN = 'data-token-hash';\nexport var ATTR_MARK = 'data-css-hash';\nexport var ATTR_CACHE_PATH = 'data-cache-path';\n\n// Mark css-in-js instance in style element\nexport var CSS_IN_JS_INSTANCE = '__cssinjs_instance__';\nexport function createCache() {\n var cssinjsInstanceId = Math.random().toString(12).slice(2);\n\n // Tricky SSR: Move all inline style to the head.\n // PS: We do not recommend tricky mode.\n if (typeof document !== 'undefined' && document.head && document.body) {\n var styles = document.body.querySelectorAll(\"style[\".concat(ATTR_MARK, \"]\")) || [];\n var firstChild = document.head.firstChild;\n Array.from(styles).forEach(function (style) {\n style[CSS_IN_JS_INSTANCE] = style[CSS_IN_JS_INSTANCE] || cssinjsInstanceId;\n\n // Not force move if no head\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n document.head.insertBefore(style, firstChild);\n }\n });\n\n // Deduplicate of moved styles\n var styleHash = {};\n Array.from(document.querySelectorAll(\"style[\".concat(ATTR_MARK, \"]\"))).forEach(function (style) {\n var hash = style.getAttribute(ATTR_MARK);\n if (styleHash[hash]) {\n if (style[CSS_IN_JS_INSTANCE] === cssinjsInstanceId) {\n var _style$parentNode;\n (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);\n }\n } else {\n styleHash[hash] = true;\n }\n });\n }\n return new CacheEntity(cssinjsInstanceId);\n}\nvar StyleContext = /*#__PURE__*/React.createContext({\n hashPriority: 'low',\n cache: createCache(),\n defaultCache: true\n});\nexport var StyleProvider = function StyleProvider(props) {\n var children = props.children,\n restProps = _objectWithoutProperties(props, _excluded);\n var parentContext = React.useContext(StyleContext);\n var context = useMemo(function () {\n var mergedContext = _objectSpread({}, parentContext);\n Object.keys(restProps).forEach(function (key) {\n var value = restProps[key];\n if (restProps[key] !== undefined) {\n mergedContext[key] = value;\n }\n });\n var cache = restProps.cache;\n mergedContext.cache = mergedContext.cache || createCache();\n mergedContext.defaultCache = !cache && parentContext.defaultCache;\n return mergedContext;\n }, [parentContext, restProps], function (prev, next) {\n return !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true);\n });\n return /*#__PURE__*/React.createElement(StyleContext.Provider, {\n value: context\n }, children);\n};\nexport default StyleContext;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n// ================================== Cache ==================================\n\nexport function sameDerivativeOption(left, right) {\n if (left.length !== right.length) {\n return false;\n }\n for (var i = 0; i < left.length; i++) {\n if (left[i] !== right[i]) {\n return false;\n }\n }\n return true;\n}\nvar ThemeCache = /*#__PURE__*/function () {\n function ThemeCache() {\n _classCallCheck(this, ThemeCache);\n _defineProperty(this, \"cache\", void 0);\n _defineProperty(this, \"keys\", void 0);\n _defineProperty(this, \"cacheCallTimes\", void 0);\n this.cache = new Map();\n this.keys = [];\n this.cacheCallTimes = 0;\n }\n _createClass(ThemeCache, [{\n key: \"size\",\n value: function size() {\n return this.keys.length;\n }\n }, {\n key: \"internalGet\",\n value: function internalGet(derivativeOption) {\n var _cache2, _cache3;\n var updateCallTimes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var cache = {\n map: this.cache\n };\n derivativeOption.forEach(function (derivative) {\n if (!cache) {\n cache = undefined;\n } else {\n var _cache, _cache$map;\n cache = (_cache = cache) === null || _cache === void 0 ? void 0 : (_cache$map = _cache.map) === null || _cache$map === void 0 ? void 0 : _cache$map.get(derivative);\n }\n });\n if ((_cache2 = cache) !== null && _cache2 !== void 0 && _cache2.value && updateCallTimes) {\n cache.value[1] = this.cacheCallTimes++;\n }\n return (_cache3 = cache) === null || _cache3 === void 0 ? void 0 : _cache3.value;\n }\n }, {\n key: \"get\",\n value: function get(derivativeOption) {\n var _this$internalGet;\n return (_this$internalGet = this.internalGet(derivativeOption, true)) === null || _this$internalGet === void 0 ? void 0 : _this$internalGet[0];\n }\n }, {\n key: \"has\",\n value: function has(derivativeOption) {\n return !!this.internalGet(derivativeOption);\n }\n }, {\n key: \"set\",\n value: function set(derivativeOption, value) {\n var _this = this;\n // New cache\n if (!this.has(derivativeOption)) {\n if (this.size() + 1 > ThemeCache.MAX_CACHE_SIZE + ThemeCache.MAX_CACHE_OFFSET) {\n var _this$keys$reduce = this.keys.reduce(function (result, key) {\n var _result = _slicedToArray(result, 2),\n callTimes = _result[1];\n if (_this.internalGet(key)[1] < callTimes) {\n return [key, _this.internalGet(key)[1]];\n }\n return result;\n }, [this.keys[0], this.cacheCallTimes]),\n _this$keys$reduce2 = _slicedToArray(_this$keys$reduce, 1),\n targetKey = _this$keys$reduce2[0];\n this.delete(targetKey);\n }\n this.keys.push(derivativeOption);\n }\n var cache = this.cache;\n derivativeOption.forEach(function (derivative, index) {\n if (index === derivativeOption.length - 1) {\n cache.set(derivative, {\n value: [value, _this.cacheCallTimes++]\n });\n } else {\n var cacheValue = cache.get(derivative);\n if (!cacheValue) {\n cache.set(derivative, {\n map: new Map()\n });\n } else if (!cacheValue.map) {\n cacheValue.map = new Map();\n }\n cache = cache.get(derivative).map;\n }\n });\n }\n }, {\n key: \"deleteByPath\",\n value: function deleteByPath(currentCache, derivatives) {\n var cache = currentCache.get(derivatives[0]);\n if (derivatives.length === 1) {\n var _cache$value;\n if (!cache.map) {\n currentCache.delete(derivatives[0]);\n } else {\n currentCache.set(derivatives[0], {\n map: cache.map\n });\n }\n return (_cache$value = cache.value) === null || _cache$value === void 0 ? void 0 : _cache$value[0];\n }\n var result = this.deleteByPath(cache.map, derivatives.slice(1));\n if ((!cache.map || cache.map.size === 0) && !cache.value) {\n currentCache.delete(derivatives[0]);\n }\n return result;\n }\n }, {\n key: \"delete\",\n value: function _delete(derivativeOption) {\n // If cache exists\n if (this.has(derivativeOption)) {\n this.keys = this.keys.filter(function (item) {\n return !sameDerivativeOption(item, derivativeOption);\n });\n return this.deleteByPath(this.cache, derivativeOption);\n }\n return undefined;\n }\n }]);\n return ThemeCache;\n}();\n_defineProperty(ThemeCache, \"MAX_CACHE_SIZE\", 20);\n_defineProperty(ThemeCache, \"MAX_CACHE_OFFSET\", 5);\nexport { ThemeCache as default };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { warning } from \"rc-util/es/warning\";\nvar uuid = 0;\n\n/**\n * Theme with algorithms to derive tokens from design tokens.\n * Use `createTheme` first which will help to manage the theme instance cache.\n */\nvar Theme = /*#__PURE__*/function () {\n function Theme(derivatives) {\n _classCallCheck(this, Theme);\n _defineProperty(this, \"derivatives\", void 0);\n _defineProperty(this, \"id\", void 0);\n this.derivatives = Array.isArray(derivatives) ? derivatives : [derivatives];\n this.id = uuid;\n if (derivatives.length === 0) {\n warning(derivatives.length > 0, '[Ant Design CSS-in-JS] Theme should have at least one derivative function.');\n }\n uuid += 1;\n }\n _createClass(Theme, [{\n key: \"getDerivativeToken\",\n value: function getDerivativeToken(token) {\n return this.derivatives.reduce(function (result, derivative) {\n return derivative(token, result);\n }, undefined);\n }\n }]);\n return Theme;\n}();\nexport { Theme as default };","import ThemeCache from \"./ThemeCache\";\nimport Theme from \"./Theme\";\nvar cacheThemes = new ThemeCache();\n\n/**\n * Same as new Theme, but will always return same one if `derivative` not changed.\n */\nexport default function createTheme(derivatives) {\n var derivativeArr = Array.isArray(derivatives) ? derivatives : [derivatives];\n // Create new theme if not exist\n if (!cacheThemes.has(derivativeArr)) {\n cacheThemes.set(derivativeArr, new Theme(derivativeArr));\n }\n\n // Get theme from cache and return\n return cacheThemes.get(derivativeArr);\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport hash from '@emotion/hash';\nimport canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { removeCSS, updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport { Theme } from \"./theme\";\n\n// Create a cache here to avoid always loop generate\nvar flattenTokenCache = new WeakMap();\nexport function flattenToken(token) {\n var str = flattenTokenCache.get(token) || '';\n if (!str) {\n Object.keys(token).forEach(function (key) {\n var value = token[key];\n str += key;\n if (value instanceof Theme) {\n str += value.id;\n } else if (value && _typeof(value) === 'object') {\n str += flattenToken(value);\n } else {\n str += value;\n }\n });\n\n // Put in cache\n flattenTokenCache.set(token, str);\n }\n return str;\n}\n\n/**\n * Convert derivative token to key string\n */\nexport function token2key(token, salt) {\n return hash(\"\".concat(salt, \"_\").concat(flattenToken(token)));\n}\nvar randomSelectorKey = \"random-\".concat(Date.now(), \"-\").concat(Math.random()).replace(/\\./g, '');\n\n// Magic `content` for detect selector support\nvar checkContent = '_bAmBoO_';\nfunction supportSelector(styleStr, handleElement, supportCheck) {\n if (canUseDom()) {\n var _getComputedStyle$con, _ele$parentNode;\n updateCSS(styleStr, randomSelectorKey);\n var _ele = document.createElement('div');\n _ele.style.position = 'fixed';\n _ele.style.left = '0';\n _ele.style.top = '0';\n handleElement === null || handleElement === void 0 ? void 0 : handleElement(_ele);\n document.body.appendChild(_ele);\n if (process.env.NODE_ENV !== 'production') {\n _ele.innerHTML = 'Test';\n _ele.style.zIndex = '9999999';\n }\n var support = supportCheck ? supportCheck(_ele) : (_getComputedStyle$con = getComputedStyle(_ele).content) === null || _getComputedStyle$con === void 0 ? void 0 : _getComputedStyle$con.includes(checkContent);\n (_ele$parentNode = _ele.parentNode) === null || _ele$parentNode === void 0 ? void 0 : _ele$parentNode.removeChild(_ele);\n removeCSS(randomSelectorKey);\n return support;\n }\n return false;\n}\nvar canLayer = undefined;\nexport function supportLayer() {\n if (canLayer === undefined) {\n canLayer = supportSelector(\"@layer \".concat(randomSelectorKey, \" { .\").concat(randomSelectorKey, \" { content: \\\"\").concat(checkContent, \"\\\"!important; } }\"), function (ele) {\n ele.className = randomSelectorKey;\n });\n }\n return canLayer;\n}\nvar canWhere = undefined;\nexport function supportWhere() {\n if (canWhere === undefined) {\n canWhere = supportSelector(\":where(.\".concat(randomSelectorKey, \") { content: \\\"\").concat(checkContent, \"\\\"!important; }\"), function (ele) {\n ele.className = randomSelectorKey;\n });\n }\n return canWhere;\n}\nvar canLogic = undefined;\nexport function supportLogicProps() {\n if (canLogic === undefined) {\n canLogic = supportSelector(\".\".concat(randomSelectorKey, \" { inset-block: 93px !important; }\"), function (ele) {\n ele.className = randomSelectorKey;\n }, function (ele) {\n return getComputedStyle(ele).bottom === '93px';\n });\n }\n return canLogic;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n// import canUseDom from 'rc-util/lib/Dom/canUseDom';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport * as React from 'react';\n\n// We need fully clone React function here\n// to avoid webpack warning React 17 do not export `useId`\nvar fullClone = _objectSpread({}, React);\nvar useInsertionEffect = fullClone.useInsertionEffect;\n/**\n * Polyfill `useInsertionEffect` for React < 18\n * @param renderEffect will be executed in `useMemo`, and do not have callback\n * @param effect will be executed in `useLayoutEffect`\n * @param deps\n */\nvar useInsertionEffectPolyfill = function useInsertionEffectPolyfill(renderEffect, effect, deps) {\n React.useMemo(renderEffect, deps);\n useLayoutEffect(function () {\n return effect(true);\n }, deps);\n};\n\n/**\n * Compatible `useInsertionEffect`\n * will use `useInsertionEffect` if React version >= 18,\n * otherwise use `useInsertionEffectPolyfill`.\n */\nvar useCompatibleInsertionEffect = useInsertionEffect ? function (renderEffect, effect, deps) {\n return useInsertionEffect(function () {\n renderEffect();\n return effect();\n }, deps);\n} : useInsertionEffectPolyfill;\nexport default useCompatibleInsertionEffect;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport { warning } from \"rc-util/es/warning\";\nimport * as React from 'react';\nvar fullClone = _objectSpread({}, React);\nvar useInsertionEffect = fullClone.useInsertionEffect;\n\n// DO NOT register functions in useEffect cleanup function, or functions that registered will never be called.\nvar useCleanupRegister = function useCleanupRegister(deps) {\n var effectCleanups = [];\n var cleanupFlag = false;\n function register(fn) {\n if (cleanupFlag) {\n if (process.env.NODE_ENV !== 'production') {\n warning(false, '[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.');\n }\n return;\n }\n effectCleanups.push(fn);\n }\n React.useEffect(function () {\n // Compatible with strict mode\n cleanupFlag = false;\n return function () {\n cleanupFlag = true;\n if (effectCleanups.length) {\n effectCleanups.forEach(function (fn) {\n return fn();\n });\n }\n };\n }, deps);\n return register;\n};\nvar useRun = function useRun() {\n return function (fn) {\n fn();\n };\n};\n\n// Only enable register in React 18\nvar useEffectCleanupRegister = typeof useInsertionEffect !== 'undefined' ? useCleanupRegister : useRun;\nexport default useEffectCleanupRegister;","function useProdHMR() {\n return false;\n}\nvar webpackHMR = false;\nfunction useDevHMR() {\n return webpackHMR;\n}\nexport default process.env.NODE_ENV === 'production' ? useProdHMR : useDevHMR;\n\n// Webpack `module.hot.accept` do not support any deps update trigger\n// We have to hack handler to force mark as HRM\nif (process.env.NODE_ENV !== 'production' && typeof module !== 'undefined' && module && module.hot && typeof window !== 'undefined') {\n var win = window;\n if (typeof win.webpackHotUpdate === 'function') {\n var originWebpackHotUpdate = win.webpackHotUpdate;\n win.webpackHotUpdate = function () {\n webpackHMR = true;\n setTimeout(function () {\n webpackHMR = false;\n }, 0);\n return originWebpackHotUpdate.apply(void 0, arguments);\n };\n }\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport StyleContext from \"../StyleContext\";\nimport useCompatibleInsertionEffect from \"./useCompatibleInsertionEffect\";\nimport useEffectCleanupRegister from \"./useEffectCleanupRegister\";\nimport useHMR from \"./useHMR\";\nexport default function useGlobalCache(prefix, keyPath, cacheFn, onCacheRemove,\n// Add additional effect trigger by `useInsertionEffect`\nonCacheEffect) {\n var _React$useContext = React.useContext(StyleContext),\n globalCache = _React$useContext.cache;\n var fullPath = [prefix].concat(_toConsumableArray(keyPath));\n var deps = fullPath.join('_');\n var register = useEffectCleanupRegister([deps]);\n var HMRUpdate = useHMR();\n var buildCache = function buildCache(updater) {\n globalCache.update(fullPath, function (prevCache) {\n var _ref = prevCache || [],\n _ref2 = _slicedToArray(_ref, 2),\n _ref2$ = _ref2[0],\n times = _ref2$ === void 0 ? 0 : _ref2$,\n cache = _ref2[1];\n\n // HMR should always ignore cache since developer may change it\n var tmpCache = cache;\n if (process.env.NODE_ENV !== 'production' && cache && HMRUpdate) {\n onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(tmpCache, HMRUpdate);\n tmpCache = null;\n }\n var mergedCache = tmpCache || cacheFn();\n var data = [times, mergedCache];\n\n // Call updater if need additional logic\n return updater ? updater(data) : data;\n });\n };\n\n // Create cache\n React.useMemo(function () {\n buildCache();\n }, /* eslint-disable react-hooks/exhaustive-deps */\n [deps]\n /* eslint-enable */);\n\n var cacheEntity = globalCache.get(fullPath);\n\n // HMR clean the cache but not trigger `useMemo` again\n // Let's fallback of this\n // ref https://github.com/ant-design/cssinjs/issues/127\n if (process.env.NODE_ENV !== 'production' && !cacheEntity) {\n buildCache();\n cacheEntity = globalCache.get(fullPath);\n }\n var cacheContent = cacheEntity[1];\n\n // Remove if no need anymore\n useCompatibleInsertionEffect(function () {\n onCacheEffect === null || onCacheEffect === void 0 ? void 0 : onCacheEffect(cacheContent);\n }, function (polyfill) {\n // It's bad to call build again in effect.\n // But we have to do this since StrictMode will call effect twice\n // which will clear cache on the first time.\n buildCache(function (_ref3) {\n var _ref4 = _slicedToArray(_ref3, 2),\n times = _ref4[0],\n cache = _ref4[1];\n if (polyfill && times === 0) {\n onCacheEffect === null || onCacheEffect === void 0 ? void 0 : onCacheEffect(cacheContent);\n }\n return [times + 1, cache];\n });\n return function () {\n globalCache.update(fullPath, function (prevCache) {\n var _ref5 = prevCache || [],\n _ref6 = _slicedToArray(_ref5, 2),\n _ref6$ = _ref6[0],\n times = _ref6$ === void 0 ? 0 : _ref6$,\n cache = _ref6[1];\n var nextCount = times - 1;\n if (nextCount === 0) {\n // Always remove styles in useEffect callback\n register(function () {\n return onCacheRemove === null || onCacheRemove === void 0 ? void 0 : onCacheRemove(cache, false);\n });\n return null;\n }\n return [times - 1, cache];\n });\n };\n }, [deps]);\n return cacheContent;\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport hash from '@emotion/hash';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport StyleContext, { ATTR_TOKEN, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { flattenToken, token2key } from \"../util\";\nimport useGlobalCache from \"./useGlobalCache\";\nvar EMPTY_OVERRIDE = {};\n\n// Generate different prefix to make user selector break in production env.\n// This helps developer not to do style override directly on the hash id.\nvar hashPrefix = process.env.NODE_ENV !== 'production' ? 'css-dev-only-do-not-override' : 'css';\nvar tokenKeys = new Map();\nfunction recordCleanToken(tokenKey) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) + 1);\n}\nfunction removeStyleTags(key, instanceId) {\n if (typeof document !== 'undefined') {\n var styles = document.querySelectorAll(\"style[\".concat(ATTR_TOKEN, \"=\\\"\").concat(key, \"\\\"]\"));\n styles.forEach(function (style) {\n if (style[CSS_IN_JS_INSTANCE] === instanceId) {\n var _style$parentNode;\n (_style$parentNode = style.parentNode) === null || _style$parentNode === void 0 ? void 0 : _style$parentNode.removeChild(style);\n }\n });\n }\n}\nvar TOKEN_THRESHOLD = 0;\n\n// Remove will check current keys first\nfunction cleanTokenStyle(tokenKey, instanceId) {\n tokenKeys.set(tokenKey, (tokenKeys.get(tokenKey) || 0) - 1);\n var tokenKeyList = Array.from(tokenKeys.keys());\n var cleanableKeyList = tokenKeyList.filter(function (key) {\n var count = tokenKeys.get(key) || 0;\n return count <= 0;\n });\n\n // Should keep tokens under threshold for not to insert style too often\n if (tokenKeyList.length - cleanableKeyList.length > TOKEN_THRESHOLD) {\n cleanableKeyList.forEach(function (key) {\n removeStyleTags(key, instanceId);\n tokenKeys.delete(key);\n });\n }\n}\nexport var getComputedToken = function getComputedToken(originToken, overrideToken, theme, format) {\n var derivativeToken = theme.getDerivativeToken(originToken);\n\n // Merge with override\n var mergedDerivativeToken = _objectSpread(_objectSpread({}, derivativeToken), overrideToken);\n\n // Format if needed\n if (format) {\n mergedDerivativeToken = format(mergedDerivativeToken);\n }\n return mergedDerivativeToken;\n};\n\n/**\n * Cache theme derivative token as global shared one\n * @param theme Theme entity\n * @param tokens List of tokens, used for cache. Please do not dynamic generate object directly\n * @param option Additional config\n * @returns Call Theme.getDerivativeToken(tokenObject) to get token\n */\nexport default function useCacheToken(theme, tokens) {\n var option = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var _useContext = useContext(StyleContext),\n instanceId = _useContext.cache.instanceId;\n var _option$salt = option.salt,\n salt = _option$salt === void 0 ? '' : _option$salt,\n _option$override = option.override,\n override = _option$override === void 0 ? EMPTY_OVERRIDE : _option$override,\n formatToken = option.formatToken,\n compute = option.getComputedToken;\n\n // Basic - We do basic cache here\n var mergedToken = React.useMemo(function () {\n return Object.assign.apply(Object, [{}].concat(_toConsumableArray(tokens)));\n }, [tokens]);\n var tokenStr = React.useMemo(function () {\n return flattenToken(mergedToken);\n }, [mergedToken]);\n var overrideTokenStr = React.useMemo(function () {\n return flattenToken(override);\n }, [override]);\n var cachedToken = useGlobalCache('token', [salt, theme.id, tokenStr, overrideTokenStr], function () {\n var mergedDerivativeToken = compute ? compute(mergedToken, override, theme) : getComputedToken(mergedToken, override, theme, formatToken);\n\n // Optimize for `useStyleRegister` performance\n var tokenKey = token2key(mergedDerivativeToken, salt);\n mergedDerivativeToken._tokenKey = tokenKey;\n recordCleanToken(tokenKey);\n var hashId = \"\".concat(hashPrefix, \"-\").concat(hash(tokenKey));\n mergedDerivativeToken._hashId = hashId; // Not used\n\n return [mergedDerivativeToken, hashId];\n }, function (cache) {\n // Remove token will remove all related style\n cleanTokenStyle(cache[0]._tokenKey, instanceId);\n });\n return cachedToken;\n}","var unitlessKeys = {\n animationIterationCount: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport default unitlessKeys;\n","export var MS = '-ms-'\nexport var MOZ = '-moz-'\nexport var WEBKIT = '-webkit-'\n\nexport var COMMENT = 'comm'\nexport var RULESET = 'rule'\nexport var DECLARATION = 'decl'\n\nexport var PAGE = '@page'\nexport var MEDIA = '@media'\nexport var IMPORT = '@import'\nexport var CHARSET = '@charset'\nexport var VIEWPORT = '@viewport'\nexport var SUPPORTS = '@supports'\nexport var DOCUMENT = '@document'\nexport var NAMESPACE = '@namespace'\nexport var KEYFRAMES = '@keyframes'\nexport var FONT_FACE = '@font-face'\nexport var COUNTER_STYLE = '@counter-style'\nexport var FONT_FEATURE_VALUES = '@font-feature-values'\nexport var LAYER = '@layer'\n","/**\n * @param {number}\n * @return {number}\n */\nexport var abs = Math.abs\n\n/**\n * @param {number}\n * @return {string}\n */\nexport var from = String.fromCharCode\n\n/**\n * @param {object}\n * @return {object}\n */\nexport var assign = Object.assign\n\n/**\n * @param {string} value\n * @param {number} length\n * @return {number}\n */\nexport function hash (value, length) {\n\treturn charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0\n}\n\n/**\n * @param {string} value\n * @return {string}\n */\nexport function trim (value) {\n\treturn value.trim()\n}\n\n/**\n * @param {string} value\n * @param {RegExp} pattern\n * @return {string?}\n */\nexport function match (value, pattern) {\n\treturn (value = pattern.exec(value)) ? value[0] : value\n}\n\n/**\n * @param {string} value\n * @param {(string|RegExp)} pattern\n * @param {string} replacement\n * @return {string}\n */\nexport function replace (value, pattern, replacement) {\n\treturn value.replace(pattern, replacement)\n}\n\n/**\n * @param {string} value\n * @param {string} search\n * @return {number}\n */\nexport function indexof (value, search) {\n\treturn value.indexOf(search)\n}\n\n/**\n * @param {string} value\n * @param {number} index\n * @return {number}\n */\nexport function charat (value, index) {\n\treturn value.charCodeAt(index) | 0\n}\n\n/**\n * @param {string} value\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function substr (value, begin, end) {\n\treturn value.slice(begin, end)\n}\n\n/**\n * @param {string} value\n * @return {number}\n */\nexport function strlen (value) {\n\treturn value.length\n}\n\n/**\n * @param {any[]} value\n * @return {number}\n */\nexport function sizeof (value) {\n\treturn value.length\n}\n\n/**\n * @param {any} value\n * @param {any[]} array\n * @return {any}\n */\nexport function append (value, array) {\n\treturn array.push(value), value\n}\n\n/**\n * @param {string[]} array\n * @param {function} callback\n * @return {string}\n */\nexport function combine (array, callback) {\n\treturn array.map(callback).join('')\n}\n\n/**\n * @param {string[]} array\n * @param {RegExp} pattern\n * @return {string[]}\n */\nexport function filter (array, pattern) {\n\treturn array.filter(function (value) { return !match(value, pattern) })\n}\n","import {IMPORT, LAYER, COMMENT, RULESET, DECLARATION, KEYFRAMES} from './Enum.js'\nimport {strlen} from './Utility.js'\n\n/**\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function serialize (children, callback) {\n\tvar output = ''\n\n\tfor (var i = 0; i < children.length; i++)\n\t\toutput += callback(children[i], i, children, callback) || ''\n\n\treturn output\n}\n\n/**\n * @param {object} element\n * @param {number} index\n * @param {object[]} children\n * @param {function} callback\n * @return {string}\n */\nexport function stringify (element, index, children, callback) {\n\tswitch (element.type) {\n\t\tcase LAYER: if (element.children.length) break\n\t\tcase IMPORT: case DECLARATION: return element.return = element.return || element.value\n\t\tcase COMMENT: return ''\n\t\tcase KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'\n\t\tcase RULESET: if (!strlen(element.value = element.props.join(','))) return ''\n\t}\n\n\treturn strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''\n}\n","import {from, trim, charat, strlen, substr, append, assign} from './Utility.js'\n\nexport var line = 1\nexport var column = 1\nexport var length = 0\nexport var position = 0\nexport var character = 0\nexport var characters = ''\n\n/**\n * @param {string} value\n * @param {object | null} root\n * @param {object | null} parent\n * @param {string} type\n * @param {string[] | string} props\n * @param {object[] | string} children\n * @param {object[]} siblings\n * @param {number} length\n */\nexport function node (value, root, parent, type, props, children, length, siblings) {\n\treturn {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}\n}\n\n/**\n * @param {object} root\n * @param {object} props\n * @return {object}\n */\nexport function copy (root, props) {\n\treturn assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)\n}\n\n/**\n * @param {object} root\n */\nexport function lift (root) {\n\twhile (root.root)\n\t\troot = copy(root.root, {children: [root]})\n\n\tappend(root, root.siblings)\n}\n\n/**\n * @return {number}\n */\nexport function char () {\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function prev () {\n\tcharacter = position > 0 ? charat(characters, --position) : 0\n\n\tif (column--, character === 10)\n\t\tcolumn = 1, line--\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function next () {\n\tcharacter = position < length ? charat(characters, position++) : 0\n\n\tif (column++, character === 10)\n\t\tcolumn = 1, line++\n\n\treturn character\n}\n\n/**\n * @return {number}\n */\nexport function peek () {\n\treturn charat(characters, position)\n}\n\n/**\n * @return {number}\n */\nexport function caret () {\n\treturn position\n}\n\n/**\n * @param {number} begin\n * @param {number} end\n * @return {string}\n */\nexport function slice (begin, end) {\n\treturn substr(characters, begin, end)\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function token (type) {\n\tswitch (type) {\n\t\t// \\0 \\t \\n \\r \\s whitespace token\n\t\tcase 0: case 9: case 10: case 13: case 32:\n\t\t\treturn 5\n\t\t// ! + , / > @ ~ isolate token\n\t\tcase 33: case 43: case 44: case 47: case 62: case 64: case 126:\n\t\t// ; { } breakpoint token\n\t\tcase 59: case 123: case 125:\n\t\t\treturn 4\n\t\t// : accompanied token\n\t\tcase 58:\n\t\t\treturn 3\n\t\t// \" ' ( [ opening delimit token\n\t\tcase 34: case 39: case 40: case 91:\n\t\t\treturn 2\n\t\t// ) ] closing delimit token\n\t\tcase 41: case 93:\n\t\t\treturn 1\n\t}\n\n\treturn 0\n}\n\n/**\n * @param {string} value\n * @return {any[]}\n */\nexport function alloc (value) {\n\treturn line = column = 1, length = strlen(characters = value), position = 0, []\n}\n\n/**\n * @param {any} value\n * @return {any}\n */\nexport function dealloc (value) {\n\treturn characters = '', value\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function delimit (type) {\n\treturn trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))\n}\n\n/**\n * @param {string} value\n * @return {string[]}\n */\nexport function tokenize (value) {\n\treturn dealloc(tokenizer(alloc(value)))\n}\n\n/**\n * @param {number} type\n * @return {string}\n */\nexport function whitespace (type) {\n\twhile (character = peek())\n\t\tif (character < 33)\n\t\t\tnext()\n\t\telse\n\t\t\tbreak\n\n\treturn token(type) > 2 || token(character) > 3 ? '' : ' '\n}\n\n/**\n * @param {string[]} children\n * @return {string[]}\n */\nexport function tokenizer (children) {\n\twhile (next())\n\t\tswitch (token(character)) {\n\t\t\tcase 0: append(identifier(position - 1), children)\n\t\t\t\tbreak\n\t\t\tcase 2: append(delimit(character), children)\n\t\t\t\tbreak\n\t\t\tdefault: append(from(character), children)\n\t\t}\n\n\treturn children\n}\n\n/**\n * @param {number} index\n * @param {number} count\n * @return {string}\n */\nexport function escaping (index, count) {\n\twhile (--count && next())\n\t\t// not 0-9 A-F a-f\n\t\tif (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))\n\t\t\tbreak\n\n\treturn slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))\n}\n\n/**\n * @param {number} type\n * @return {number}\n */\nexport function delimiter (type) {\n\twhile (next())\n\t\tswitch (character) {\n\t\t\t// ] ) \" '\n\t\t\tcase type:\n\t\t\t\treturn position\n\t\t\t// \" '\n\t\t\tcase 34: case 39:\n\t\t\t\tif (type !== 34 && type !== 39)\n\t\t\t\t\tdelimiter(character)\n\t\t\t\tbreak\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (type === 41)\n\t\t\t\t\tdelimiter(type)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tnext()\n\t\t\t\tbreak\n\t\t}\n\n\treturn position\n}\n\n/**\n * @param {number} type\n * @param {number} index\n * @return {number}\n */\nexport function commenter (type, index) {\n\twhile (next())\n\t\t// //\n\t\tif (type + character === 47 + 10)\n\t\t\tbreak\n\t\t// /*\n\t\telse if (type + character === 42 + 42 && peek() === 47)\n\t\t\tbreak\n\n\treturn '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())\n}\n\n/**\n * @param {number} index\n * @return {string}\n */\nexport function identifier (index) {\n\twhile (!token(peek()))\n\t\tnext()\n\n\treturn slice(index, position)\n}\n","import {COMMENT, RULESET, DECLARATION} from './Enum.js'\nimport {abs, charat, trim, from, sizeof, strlen, substr, append, replace, indexof} from './Utility.js'\nimport {node, char, prev, next, peek, caret, alloc, dealloc, delimit, whitespace, escaping, identifier, commenter} from './Tokenizer.js'\n\n/**\n * @param {string} value\n * @return {object[]}\n */\nexport function compile (value) {\n\treturn dealloc(parse('', null, null, null, [''], value = alloc(value), 0, [0], value))\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {string[]} rule\n * @param {string[]} rules\n * @param {string[]} rulesets\n * @param {number[]} pseudo\n * @param {number[]} points\n * @param {string[]} declarations\n * @return {object}\n */\nexport function parse (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {\n\tvar index = 0\n\tvar offset = 0\n\tvar length = pseudo\n\tvar atrule = 0\n\tvar property = 0\n\tvar previous = 0\n\tvar variable = 1\n\tvar scanning = 1\n\tvar ampersand = 1\n\tvar character = 0\n\tvar type = ''\n\tvar props = rules\n\tvar children = rulesets\n\tvar reference = rule\n\tvar characters = type\n\n\twhile (scanning)\n\t\tswitch (previous = character, character = next()) {\n\t\t\t// (\n\t\t\tcase 40:\n\t\t\t\tif (previous != 108 && charat(characters, length - 1) == 58) {\n\t\t\t\t\tif (indexof(characters += replace(delimit(character), '&', '&\\f'), '&\\f') != -1)\n\t\t\t\t\t\tampersand = -1\n\t\t\t\t\tbreak\n\t\t\t\t}\n\t\t\t// \" ' [\n\t\t\tcase 34: case 39: case 91:\n\t\t\t\tcharacters += delimit(character)\n\t\t\t\tbreak\n\t\t\t// \\t \\n \\r \\s\n\t\t\tcase 9: case 10: case 13: case 32:\n\t\t\t\tcharacters += whitespace(previous)\n\t\t\t\tbreak\n\t\t\t// \\\n\t\t\tcase 92:\n\t\t\t\tcharacters += escaping(caret() - 1, 7)\n\t\t\t\tcontinue\n\t\t\t// /\n\t\t\tcase 47:\n\t\t\t\tswitch (peek()) {\n\t\t\t\t\tcase 42: case 47:\n\t\t\t\t\t\tappend(comment(commenter(next(), caret()), root, parent, declarations), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tcharacters += '/'\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\t// {\n\t\t\tcase 123 * variable:\n\t\t\t\tpoints[index++] = strlen(characters) * ampersand\n\t\t\t// } ; \\0\n\t\t\tcase 125 * variable: case 59: case 0:\n\t\t\t\tswitch (character) {\n\t\t\t\t\t// \\0 }\n\t\t\t\t\tcase 0: case 125: scanning = 0\n\t\t\t\t\t// ;\n\t\t\t\t\tcase 59 + offset: if (ampersand == -1) characters = replace(characters, /\\f/g, '')\n\t\t\t\t\t\tif (property > 0 && (strlen(characters) - length))\n\t\t\t\t\t\t\tappend(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @ ;\n\t\t\t\t\tcase 59: characters += ';'\n\t\t\t\t\t// { rule/at-rule\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tappend(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets)\n\n\t\t\t\t\t\tif (character === 123)\n\t\t\t\t\t\t\tif (offset === 0)\n\t\t\t\t\t\t\t\tparse(characters, root, reference, reference, props, rulesets, length, points, children)\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tswitch (atrule === 99 && charat(characters, 3) === 110 ? 100 : atrule) {\n\t\t\t\t\t\t\t\t\t// d l m s\n\t\t\t\t\t\t\t\t\tcase 100: case 108: case 109: case 115:\n\t\t\t\t\t\t\t\t\t\tparse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children)\n\t\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tparse(characters, reference, reference, reference, [''], children, 0, points, children)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tindex = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo\n\t\t\t\tbreak\n\t\t\t// :\n\t\t\tcase 58:\n\t\t\t\tlength = 1 + strlen(characters), property = previous\n\t\t\tdefault:\n\t\t\t\tif (variable < 1)\n\t\t\t\t\tif (character == 123)\n\t\t\t\t\t\t--variable\n\t\t\t\t\telse if (character == 125 && variable++ == 0 && prev() == 125)\n\t\t\t\t\t\tcontinue\n\n\t\t\t\tswitch (characters += from(character), character * variable) {\n\t\t\t\t\t// &\n\t\t\t\t\tcase 38:\n\t\t\t\t\t\tampersand = offset > 0 ? 1 : (characters += '\\f', -1)\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// ,\n\t\t\t\t\tcase 44:\n\t\t\t\t\t\tpoints[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// @\n\t\t\t\t\tcase 64:\n\t\t\t\t\t\t// -\n\t\t\t\t\t\tif (peek() === 45)\n\t\t\t\t\t\t\tcharacters += delimit(next())\n\n\t\t\t\t\t\tatrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++\n\t\t\t\t\t\tbreak\n\t\t\t\t\t// -\n\t\t\t\t\tcase 45:\n\t\t\t\t\t\tif (previous === 45 && strlen(characters) == 2)\n\t\t\t\t\t\t\tvariable = 0\n\t\t\t\t}\n\t\t}\n\n\treturn rulesets\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} index\n * @param {number} offset\n * @param {string[]} rules\n * @param {number[]} points\n * @param {string} type\n * @param {string[]} props\n * @param {string[]} children\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {\n\tvar post = offset - 1\n\tvar rule = offset === 0 ? rules : ['']\n\tvar size = sizeof(rule)\n\n\tfor (var i = 0, j = 0, k = 0; i < index; ++i)\n\t\tfor (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)\n\t\t\tif (z = trim(j > 0 ? rule[x] + ' ' + y : replace(y, /&\\f/g, rule[x])))\n\t\t\t\tprops[k++] = z\n\n\treturn node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)\n}\n\n/**\n * @param {number} value\n * @param {object} root\n * @param {object?} parent\n * @param {object[]} siblings\n * @return {object}\n */\nexport function comment (value, root, parent, siblings) {\n\treturn node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)\n}\n\n/**\n * @param {string} value\n * @param {object} root\n * @param {object?} parent\n * @param {number} length\n * @param {object[]} siblings\n * @return {object}\n */\nexport function declaration (value, root, parent, length, siblings) {\n\treturn node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)\n}\n","import devWarning from \"rc-util/es/warning\";\nexport function lintWarning(message, info) {\n var path = info.path,\n parentSelectors = info.parentSelectors;\n devWarning(false, \"[Ant Design CSS-in-JS] \".concat(path ? \"Error in \".concat(path, \": \") : '').concat(message).concat(parentSelectors.length ? \" Selector: \".concat(parentSelectors.join(' | ')) : ''));\n}","import { lintWarning } from \"./utils\";\nvar linter = function linter(key, value, info) {\n if (key === 'content') {\n // From emotion: https://github.com/emotion-js/emotion/blob/main/packages/serialize/src/index.js#L63\n var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\\(|(no-)?(open|close)-quote/;\n var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];\n if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '\"' && value.charAt(0) !== \"'\")) {\n lintWarning(\"You seem to be using a value for 'content' without quotes, try replacing it with `content: '\\\"\".concat(value, \"\\\"'`.\"), info);\n }\n }\n};\nexport default linter;","import { lintWarning } from \"./utils\";\nvar linter = function linter(key, value, info) {\n if (key === 'animation') {\n if (info.hashId && value !== 'none') {\n lintWarning(\"You seem to be using hashed animation '\".concat(value, \"', in which case 'animationName' with Keyframe as value is recommended.\"), info);\n }\n }\n};\nexport default linter;","import { lintWarning } from \"./utils\";\nfunction isConcatSelector(selector) {\n var _selector$match;\n var notContent = ((_selector$match = selector.match(/:not\\(([^)]*)\\)/)) === null || _selector$match === void 0 ? void 0 : _selector$match[1]) || '';\n\n // split selector. e.g.\n // `h1#a.b` => ['h1', #a', '.b']\n var splitCells = notContent.split(/(\\[[^[]*])|(?=[.#])/).filter(function (str) {\n return str;\n });\n return splitCells.length > 1;\n}\nfunction parsePath(info) {\n return info.parentSelectors.reduce(function (prev, cur) {\n if (!prev) {\n return cur;\n }\n return cur.includes('&') ? cur.replace(/&/g, prev) : \"\".concat(prev, \" \").concat(cur);\n }, '');\n}\nvar linter = function linter(key, value, info) {\n var parentSelectorPath = parsePath(info);\n var notList = parentSelectorPath.match(/:not\\([^)]*\\)/g) || [];\n if (notList.length > 0 && notList.some(isConcatSelector)) {\n lintWarning(\"Concat ':not' selector not support in legacy browsers.\", info);\n }\n};\nexport default linter;","import { lintWarning } from \"./utils\";\nvar linter = function linter(key, value, info) {\n switch (key) {\n case 'marginLeft':\n case 'marginRight':\n case 'paddingLeft':\n case 'paddingRight':\n case 'left':\n case 'right':\n case 'borderLeft':\n case 'borderLeftWidth':\n case 'borderLeftStyle':\n case 'borderLeftColor':\n case 'borderRight':\n case 'borderRightWidth':\n case 'borderRightStyle':\n case 'borderRightColor':\n case 'borderTopLeftRadius':\n case 'borderTopRightRadius':\n case 'borderBottomLeftRadius':\n case 'borderBottomRightRadius':\n lintWarning(\"You seem to be using non-logical property '\".concat(key, \"' which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.\"), info);\n return;\n case 'margin':\n case 'padding':\n case 'borderWidth':\n case 'borderStyle':\n // case 'borderColor':\n if (typeof value === 'string') {\n var valueArr = value.split(' ').map(function (item) {\n return item.trim();\n });\n if (valueArr.length === 4 && valueArr[1] !== valueArr[3]) {\n lintWarning(\"You seem to be using '\".concat(key, \"' property with different left \").concat(key, \" and right \").concat(key, \", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.\"), info);\n }\n }\n return;\n case 'clear':\n case 'textAlign':\n if (value === 'left' || value === 'right') {\n lintWarning(\"You seem to be using non-logical value '\".concat(value, \"' of \").concat(key, \", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.\"), info);\n }\n return;\n case 'borderRadius':\n if (typeof value === 'string') {\n var radiusGroups = value.split('/').map(function (item) {\n return item.trim();\n });\n var invalid = radiusGroups.reduce(function (result, group) {\n if (result) {\n return result;\n }\n var radiusArr = group.split(' ').map(function (item) {\n return item.trim();\n });\n // borderRadius: '2px 4px'\n if (radiusArr.length >= 2 && radiusArr[0] !== radiusArr[1]) {\n return true;\n }\n // borderRadius: '4px 4px 2px'\n if (radiusArr.length === 3 && radiusArr[1] !== radiusArr[2]) {\n return true;\n }\n // borderRadius: '4px 4px 2px 4px'\n if (radiusArr.length === 4 && radiusArr[2] !== radiusArr[3]) {\n return true;\n }\n return result;\n }, false);\n if (invalid) {\n lintWarning(\"You seem to be using non-logical value '\".concat(value, \"' of \").concat(key, \", which is not compatible with RTL mode. Please use logical properties and values instead. For more information: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties.\"), info);\n }\n }\n return;\n default:\n }\n};\nexport default linter;","import { lintWarning } from \"./utils\";\nvar linter = function linter(key, value, info) {\n if (info.parentSelectors.some(function (selector) {\n var selectors = selector.split(',');\n return selectors.some(function (item) {\n return item.split('&').length > 2;\n });\n })) {\n lintWarning('Should not use more than one `&` in a selector.', info);\n }\n};\nexport default linter;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { ATTR_MARK } from \"../../StyleContext\";\nexport var ATTR_CACHE_MAP = 'data-ant-cssinjs-cache-path';\n\n/**\n * This marks style from the css file.\n * Which means not exist in `\");\n }\n\n // ====================== Fill Style ======================\n\n var orderStyles = styleKeys.map(function (key) {\n var cachePath = key.slice(matchPrefix.length).replace(/%/g, '|');\n var _2 = _slicedToArray(cache.cache.get(key)[1], 6),\n styleStr = _2[0],\n tokenKey = _2[1],\n styleId = _2[2],\n effectStyle = _2[3],\n clientOnly = _2[4],\n order = _2[5];\n\n // Skip client only style\n if (clientOnly) {\n return null;\n }\n\n // ====================== Style ======================\n // Used for rc-util\n var sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': \"\".concat(order)\n };\n var keyStyleText = toStyleStr(styleStr, tokenKey, styleId, sharedAttrs);\n\n // Save cache path with hash mapping\n cachePathMap[cachePath] = styleId;\n\n // =============== Create effect style ===============\n if (effectStyle) {\n Object.keys(effectStyle).forEach(function (effectKey) {\n // Effect style can be reused\n if (!effectStyles[effectKey]) {\n effectStyles[effectKey] = true;\n keyStyleText += toStyleStr(normalizeStyle(effectStyle[effectKey]), tokenKey, \"_effect-\".concat(effectKey), sharedAttrs);\n }\n });\n }\n var ret = [order, keyStyleText];\n return ret;\n }).filter(function (o) {\n return o;\n });\n orderStyles.sort(function (o1, o2) {\n return o1[0] - o2[0];\n }).forEach(function (_ref7) {\n var _ref8 = _slicedToArray(_ref7, 2),\n style = _ref8[1];\n styleText += style;\n });\n\n // ==================== Fill Cache Path ====================\n styleText += toStyleStr(\".\".concat(ATTR_CACHE_MAP, \"{content:\\\"\").concat(serializeCacheMap(cachePathMap), \"\\\";}\"), undefined, undefined, _defineProperty({}, ATTR_CACHE_MAP, ATTR_CACHE_MAP));\n return styleText;\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar Keyframe = /*#__PURE__*/function () {\n function Keyframe(name, style) {\n _classCallCheck(this, Keyframe);\n _defineProperty(this, \"name\", void 0);\n _defineProperty(this, \"style\", void 0);\n _defineProperty(this, \"_keyframe\", true);\n this.name = name;\n this.style = style;\n }\n _createClass(Keyframe, [{\n key: \"getName\",\n value: function getName() {\n var hashId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return hashId ? \"\".concat(hashId, \"-\").concat(this.name) : this.name;\n }\n }]);\n return Keyframe;\n}();\nexport default Keyframe;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nfunction splitValues(value) {\n if (typeof value === 'number') {\n return [[value], false];\n }\n var rawStyle = String(value).trim();\n var importantCells = rawStyle.match(/(.*)(!important)/);\n var splitStyle = (importantCells ? importantCells[1] : rawStyle).trim().split(/\\s+/);\n\n // Combine styles split in brackets, like `calc(1px + 2px)`\n var temp = '';\n var brackets = 0;\n return [splitStyle.reduce(function (list, item) {\n if (item.includes('(')) {\n temp += item;\n brackets += item.split('(').length - 1;\n } else if (item.includes(')')) {\n temp += item;\n brackets -= item.split(')').length - 1;\n if (brackets === 0) {\n list.push(temp);\n temp = '';\n }\n } else if (brackets > 0) {\n temp += item;\n } else {\n list.push(item);\n }\n return list;\n }, []), !!importantCells];\n}\nfunction noSplit(list) {\n list.notSplit = true;\n return list;\n}\nvar keyMap = {\n // Inset\n inset: ['top', 'right', 'bottom', 'left'],\n insetBlock: ['top', 'bottom'],\n insetBlockStart: ['top'],\n insetBlockEnd: ['bottom'],\n insetInline: ['left', 'right'],\n insetInlineStart: ['left'],\n insetInlineEnd: ['right'],\n // Margin\n marginBlock: ['marginTop', 'marginBottom'],\n marginBlockStart: ['marginTop'],\n marginBlockEnd: ['marginBottom'],\n marginInline: ['marginLeft', 'marginRight'],\n marginInlineStart: ['marginLeft'],\n marginInlineEnd: ['marginRight'],\n // Padding\n paddingBlock: ['paddingTop', 'paddingBottom'],\n paddingBlockStart: ['paddingTop'],\n paddingBlockEnd: ['paddingBottom'],\n paddingInline: ['paddingLeft', 'paddingRight'],\n paddingInlineStart: ['paddingLeft'],\n paddingInlineEnd: ['paddingRight'],\n // Border\n borderBlock: noSplit(['borderTop', 'borderBottom']),\n borderBlockStart: noSplit(['borderTop']),\n borderBlockEnd: noSplit(['borderBottom']),\n borderInline: noSplit(['borderLeft', 'borderRight']),\n borderInlineStart: noSplit(['borderLeft']),\n borderInlineEnd: noSplit(['borderRight']),\n // Border width\n borderBlockWidth: ['borderTopWidth', 'borderBottomWidth'],\n borderBlockStartWidth: ['borderTopWidth'],\n borderBlockEndWidth: ['borderBottomWidth'],\n borderInlineWidth: ['borderLeftWidth', 'borderRightWidth'],\n borderInlineStartWidth: ['borderLeftWidth'],\n borderInlineEndWidth: ['borderRightWidth'],\n // Border style\n borderBlockStyle: ['borderTopStyle', 'borderBottomStyle'],\n borderBlockStartStyle: ['borderTopStyle'],\n borderBlockEndStyle: ['borderBottomStyle'],\n borderInlineStyle: ['borderLeftStyle', 'borderRightStyle'],\n borderInlineStartStyle: ['borderLeftStyle'],\n borderInlineEndStyle: ['borderRightStyle'],\n // Border color\n borderBlockColor: ['borderTopColor', 'borderBottomColor'],\n borderBlockStartColor: ['borderTopColor'],\n borderBlockEndColor: ['borderBottomColor'],\n borderInlineColor: ['borderLeftColor', 'borderRightColor'],\n borderInlineStartColor: ['borderLeftColor'],\n borderInlineEndColor: ['borderRightColor'],\n // Border radius\n borderStartStartRadius: ['borderTopLeftRadius'],\n borderStartEndRadius: ['borderTopRightRadius'],\n borderEndStartRadius: ['borderBottomLeftRadius'],\n borderEndEndRadius: ['borderBottomRightRadius']\n};\nfunction wrapImportantAndSkipCheck(value, important) {\n var parsedValue = value;\n if (important) {\n parsedValue = \"\".concat(parsedValue, \" !important\");\n }\n return {\n _skip_check_: true,\n value: parsedValue\n };\n}\n\n/**\n * Convert css logical properties to legacy properties.\n * Such as: `margin-block-start` to `margin-top`.\n * Transform list:\n * - inset\n * - margin\n * - padding\n * - border\n */\nvar transform = {\n visit: function visit(cssObj) {\n var clone = {};\n Object.keys(cssObj).forEach(function (key) {\n var value = cssObj[key];\n var matchValue = keyMap[key];\n if (matchValue && (typeof value === 'number' || typeof value === 'string')) {\n var _splitValues = splitValues(value),\n _splitValues2 = _slicedToArray(_splitValues, 2),\n _values = _splitValues2[0],\n _important = _splitValues2[1];\n if (matchValue.length && matchValue.notSplit) {\n // not split means always give same value like border\n matchValue.forEach(function (matchKey) {\n clone[matchKey] = wrapImportantAndSkipCheck(value, _important);\n });\n } else if (matchValue.length === 1) {\n // Handle like `marginBlockStart` => `marginTop`\n clone[matchValue[0]] = wrapImportantAndSkipCheck(value, _important);\n } else if (matchValue.length === 2) {\n // Handle like `marginBlock` => `marginTop` & `marginBottom`\n matchValue.forEach(function (matchKey, index) {\n var _values$index;\n clone[matchKey] = wrapImportantAndSkipCheck((_values$index = _values[index]) !== null && _values$index !== void 0 ? _values$index : _values[0], _important);\n });\n } else if (matchValue.length === 4) {\n // Handle like `inset` => `top` & `right` & `bottom` & `left`\n matchValue.forEach(function (matchKey, index) {\n var _ref, _values$index2;\n clone[matchKey] = wrapImportantAndSkipCheck((_ref = (_values$index2 = _values[index]) !== null && _values$index2 !== void 0 ? _values$index2 : _values[index - 2]) !== null && _ref !== void 0 ? _ref : _values[0], _important);\n });\n } else {\n clone[key] = value;\n }\n } else {\n clone[key] = value;\n }\n });\n return clone;\n }\n};\nexport default transform;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\n/**\n * respect https://github.com/cuth/postcss-pxtorem\n */\nimport unitless from '@emotion/unitless';\nvar pxRegex = /url\\([^)]+\\)|var\\([^)]+\\)|(\\d*\\.?\\d+)px/g;\nfunction toFixed(number, precision) {\n var multiplier = Math.pow(10, precision + 1),\n wholeNumber = Math.floor(number * multiplier);\n return Math.round(wholeNumber / 10) * 10 / multiplier;\n}\nvar transform = function transform() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var _options$rootValue = options.rootValue,\n rootValue = _options$rootValue === void 0 ? 16 : _options$rootValue,\n _options$precision = options.precision,\n precision = _options$precision === void 0 ? 5 : _options$precision,\n _options$mediaQuery = options.mediaQuery,\n mediaQuery = _options$mediaQuery === void 0 ? false : _options$mediaQuery;\n var pxReplace = function pxReplace(m, $1) {\n if (!$1) return m;\n var pixels = parseFloat($1);\n // covenant: pixels <= 1, not transform to rem @zombieJ\n if (pixels <= 1) return m;\n var fixedVal = toFixed(pixels / rootValue, precision);\n return \"\".concat(fixedVal, \"rem\");\n };\n var visit = function visit(cssObj) {\n var clone = _objectSpread({}, cssObj);\n Object.entries(cssObj).forEach(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n value = _ref2[1];\n if (typeof value === 'string' && value.includes('px')) {\n var newValue = value.replace(pxRegex, pxReplace);\n clone[key] = newValue;\n }\n\n // no unit\n if (!unitless[key] && typeof value === 'number' && value !== 0) {\n clone[key] = \"\".concat(value, \"px\").replace(pxRegex, pxReplace);\n }\n\n // Media queries\n var mergedKey = key.trim();\n if (mergedKey.startsWith('@') && mergedKey.includes('px') && mediaQuery) {\n var newKey = key.replace(pxRegex, pxReplace);\n clone[newKey] = clone[key];\n delete clone[key];\n }\n });\n return clone;\n };\n return {\n visit: visit\n };\n};\nexport default transform;","import useCacheToken, { getComputedToken } from \"./hooks/useCacheToken\";\nimport useStyleRegister, { extractStyle } from \"./hooks/useStyleRegister\";\nimport Keyframes from \"./Keyframes\";\nimport { legacyNotSelectorLinter, logicalPropertiesLinter, parentSelectorLinter } from \"./linters\";\nimport { createCache, StyleProvider } from \"./StyleContext\";\nimport { createTheme, Theme } from \"./theme\";\nimport legacyLogicalPropertiesTransformer from \"./transformers/legacyLogicalProperties\";\nimport px2remTransformer from \"./transformers/px2rem\";\nimport { supportLogicProps, supportWhere } from \"./util\";\nexport { Theme, createTheme, useStyleRegister, useCacheToken, createCache, StyleProvider, Keyframes, extractStyle, getComputedToken,\n// Transformer\nlegacyLogicalPropertiesTransformer, px2remTransformer,\n// Linters\nlogicalPropertiesLinter, legacyNotSelectorLinter, parentSelectorLinter };\nexport var _experimental = {\n supportModernCSS: function supportModernCSS() {\n return supportWhere() && supportLogicProps();\n }\n};","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nvar _excluded = [\"icon\", \"className\", \"onClick\", \"style\", \"primaryColor\", \"secondaryColor\"];\nimport * as React from 'react';\nimport { generate, getSecondaryColor, isIconDefinition, warning, useInsertStyles } from \"../utils\";\nvar twoToneColorPalette = {\n primaryColor: '#333',\n secondaryColor: '#E6E6E6',\n calculated: false\n};\nfunction setTwoToneColors(_ref) {\n var primaryColor = _ref.primaryColor,\n secondaryColor = _ref.secondaryColor;\n twoToneColorPalette.primaryColor = primaryColor;\n twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);\n twoToneColorPalette.calculated = !!secondaryColor;\n}\nfunction getTwoToneColors() {\n return _objectSpread({}, twoToneColorPalette);\n}\nvar IconBase = function IconBase(props) {\n var icon = props.icon,\n className = props.className,\n onClick = props.onClick,\n style = props.style,\n primaryColor = props.primaryColor,\n secondaryColor = props.secondaryColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var svgRef = React.useRef();\n var colors = twoToneColorPalette;\n if (primaryColor) {\n colors = {\n primaryColor: primaryColor,\n secondaryColor: secondaryColor || getSecondaryColor(primaryColor)\n };\n }\n useInsertStyles(svgRef);\n warning(isIconDefinition(icon), \"icon should be icon definiton, but got \".concat(icon));\n if (!isIconDefinition(icon)) {\n return null;\n }\n var target = icon;\n if (target && typeof target.icon === 'function') {\n target = _objectSpread(_objectSpread({}, target), {}, {\n icon: target.icon(colors.primaryColor, colors.secondaryColor)\n });\n }\n return generate(target.icon, \"svg-\".concat(target.name), _objectSpread(_objectSpread({\n className: className,\n onClick: onClick,\n style: style,\n 'data-icon': target.name,\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true'\n }, restProps), {}, {\n ref: svgRef\n }));\n};\nIconBase.displayName = 'IconReact';\nIconBase.getTwoToneColors = getTwoToneColors;\nIconBase.setTwoToneColors = setTwoToneColors;\nexport default IconBase;","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport ReactIcon from \"./IconBase\";\nimport { normalizeTwoToneColors } from \"../utils\";\nexport function setTwoToneColor(twoToneColor) {\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return ReactIcon.setTwoToneColors({\n primaryColor: primaryColor,\n secondaryColor: secondaryColor\n });\n}\nexport function getTwoToneColor() {\n var colors = ReactIcon.getTwoToneColors();\n if (!colors.calculated) {\n return colors.primaryColor;\n }\n return [colors.primaryColor, colors.secondaryColor];\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"icon\", \"spin\", \"rotate\", \"tabIndex\", \"onClick\", \"twoToneColor\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { blue } from '@ant-design/colors';\nimport Context from \"./Context\";\nimport ReactIcon from \"./IconBase\";\nimport { getTwoToneColor, setTwoToneColor } from \"./twoTonePrimaryColor\";\nimport { normalizeTwoToneColors } from \"../utils\";\n// Initial setting\n// should move it to antd main repo?\nsetTwoToneColor(blue.primary);\n\n// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/34757#issuecomment-488848720\n\nvar Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _classNames;\n var className = props.className,\n icon = props.icon,\n spin = props.spin,\n rotate = props.rotate,\n tabIndex = props.tabIndex,\n onClick = props.onClick,\n twoToneColor = props.twoToneColor,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(Context),\n _React$useContext$pre = _React$useContext.prefixCls,\n prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,\n rootClassName = _React$useContext.rootClassName;\n var classString = classNames(rootClassName, prefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-\").concat(icon.name), !!icon.name), _defineProperty(_classNames, \"\".concat(prefixCls, \"-spin\"), !!spin || icon.name === 'loading'), _classNames), className);\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),\n _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),\n primaryColor = _normalizeTwoToneColo2[0],\n secondaryColor = _normalizeTwoToneColo2[1];\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n role: \"img\",\n \"aria-label\": icon.name\n }, restProps, {\n ref: ref,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), /*#__PURE__*/React.createElement(ReactIcon, {\n icon: icon,\n primaryColor: primaryColor,\n secondaryColor: secondaryColor,\n style: svgStyle\n }));\n});\nIcon.displayName = 'AntdIcon';\nIcon.getTwoToneColor = getTwoToneColor;\nIcon.setTwoToneColor = setTwoToneColor;\nexport default Icon;","import { createContext } from 'react';\nvar IconContext = /*#__PURE__*/createContext({});\nexport default IconContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"className\", \"component\", \"viewBox\", \"spin\", \"rotate\", \"tabIndex\", \"onClick\", \"children\"];\n// Seems this is used for iconFont\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useComposeRef } from \"rc-util/es/ref\";\nimport Context from \"./Context\";\nimport { svgBaseProps, warning, useInsertStyles } from \"../utils\";\nvar Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var className = props.className,\n Component = props.component,\n viewBox = props.viewBox,\n spin = props.spin,\n rotate = props.rotate,\n tabIndex = props.tabIndex,\n onClick = props.onClick,\n children = props.children,\n restProps = _objectWithoutProperties(props, _excluded);\n var iconRef = React.useRef();\n var mergedRef = useComposeRef(iconRef, ref);\n warning(Boolean(Component || children), 'Should have `component` prop or `children`.');\n useInsertStyles(iconRef);\n var _React$useContext = React.useContext(Context),\n _React$useContext$pre = _React$useContext.prefixCls,\n prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,\n rootClassName = _React$useContext.rootClassName;\n var classString = classNames(rootClassName, prefixCls, className);\n var svgClassString = classNames(_defineProperty({}, \"\".concat(prefixCls, \"-spin\"), !!spin));\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var innerSvgProps = _objectSpread(_objectSpread({}, svgBaseProps), {}, {\n className: svgClassString,\n style: svgStyle,\n viewBox: viewBox\n });\n if (!viewBox) {\n delete innerSvgProps.viewBox;\n }\n\n // component > children\n var renderInnerNode = function renderInnerNode() {\n if (Component) {\n return /*#__PURE__*/React.createElement(Component, innerSvgProps, children);\n }\n if (children) {\n warning(Boolean(viewBox) || React.Children.count(children) === 1 && /*#__PURE__*/React.isValidElement(children) && React.Children.only(children).type === 'use', 'Make sure that you provide correct `viewBox`' + ' prop (default `0 0 1024 1024`) to the icon.');\n return /*#__PURE__*/React.createElement(\"svg\", _extends({}, innerSvgProps, {\n viewBox: viewBox\n }), children);\n }\n return null;\n };\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n return /*#__PURE__*/React.createElement(\"span\", _extends({\n role: \"img\"\n }, restProps, {\n ref: mergedRef,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), renderInnerNode());\n});\nIcon.displayName = 'AntdIcon';\nexport default Icon;","// This icon file is generated automatically.\nvar ArrowLeftOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z\" } }] }, \"name\": \"arrow-left\", \"theme\": \"outlined\" };\nexport default ArrowLeftOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ArrowLeftOutlinedSvg from \"@ant-design/icons-svg/es/asn/ArrowLeftOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ArrowLeftOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ArrowLeftOutlined.displayName = 'ArrowLeftOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(ArrowLeftOutlined);","// This icon file is generated automatically.\nvar CheckCircleFilled = { \"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\" };\nexport default CheckCircleFilled;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport CheckCircleFilledSvg from \"@ant-design/icons-svg/es/asn/CheckCircleFilled\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar CheckCircleFilled = function CheckCircleFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: CheckCircleFilledSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n CheckCircleFilled.displayName = 'CheckCircleFilled';\n}\nexport default /*#__PURE__*/React.forwardRef(CheckCircleFilled);","// This icon file is generated automatically.\nvar CheckOutlined = { \"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\" };\nexport default CheckOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport CheckOutlinedSvg from \"@ant-design/icons-svg/es/asn/CheckOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar CheckOutlined = function CheckOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: CheckOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n CheckOutlined.displayName = 'CheckOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(CheckOutlined);","// This icon file is generated automatically.\nvar CloseCircleFilled = { \"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\" };\nexport default CloseCircleFilled;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport CloseCircleFilledSvg from \"@ant-design/icons-svg/es/asn/CloseCircleFilled\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar CloseCircleFilled = function CloseCircleFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: CloseCircleFilledSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n CloseCircleFilled.displayName = 'CloseCircleFilled';\n}\nexport default /*#__PURE__*/React.forwardRef(CloseCircleFilled);","// This icon file is generated automatically.\nvar CloseOutlined = { \"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\" };\nexport default CloseOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport CloseOutlinedSvg from \"@ant-design/icons-svg/es/asn/CloseOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar CloseOutlined = function CloseOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: CloseOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n CloseOutlined.displayName = 'CloseOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(CloseOutlined);","// This icon file is generated automatically.\nvar DeleteOutlined = { \"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\" };\nexport default DeleteOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DeleteOutlinedSvg from \"@ant-design/icons-svg/es/asn/DeleteOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DeleteOutlined = function DeleteOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DeleteOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n DeleteOutlined.displayName = 'DeleteOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(DeleteOutlined);","// This icon file is generated automatically.\nvar DownOutlined = { \"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\" };\nexport default DownOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DownOutlinedSvg from \"@ant-design/icons-svg/es/asn/DownOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DownOutlined = function DownOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DownOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n DownOutlined.displayName = 'DownOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(DownOutlined);","// This icon file is generated automatically.\nvar EllipsisOutlined = { \"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\" };\nexport default EllipsisOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport EllipsisOutlinedSvg from \"@ant-design/icons-svg/es/asn/EllipsisOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar EllipsisOutlined = function EllipsisOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: EllipsisOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n EllipsisOutlined.displayName = 'EllipsisOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(EllipsisOutlined);","// This icon file is generated automatically.\nvar ExclamationCircleFilled = { \"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\" };\nexport default ExclamationCircleFilled;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ExclamationCircleFilledSvg from \"@ant-design/icons-svg/es/asn/ExclamationCircleFilled\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ExclamationCircleFilled = function ExclamationCircleFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ExclamationCircleFilledSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';\n}\nexport default /*#__PURE__*/React.forwardRef(ExclamationCircleFilled);","// This icon file is generated automatically.\nvar EyeInvisibleOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z\" } }, { \"tag\": \"path\", \"attrs\": { \"d\": \"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z\" } }] }, \"name\": \"eye-invisible\", \"theme\": \"outlined\" };\nexport default EyeInvisibleOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport EyeInvisibleOutlinedSvg from \"@ant-design/icons-svg/es/asn/EyeInvisibleOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar EyeInvisibleOutlined = function EyeInvisibleOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: EyeInvisibleOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n EyeInvisibleOutlined.displayName = 'EyeInvisibleOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(EyeInvisibleOutlined);","// This icon file is generated automatically.\nvar EyeOutlined = { \"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\" };\nexport default EyeOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport EyeOutlinedSvg from \"@ant-design/icons-svg/es/asn/EyeOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar EyeOutlined = function EyeOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: EyeOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n EyeOutlined.displayName = 'EyeOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(EyeOutlined);","// This icon file is generated automatically.\nvar InfoCircleFilled = { \"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\" };\nexport default InfoCircleFilled;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport InfoCircleFilledSvg from \"@ant-design/icons-svg/es/asn/InfoCircleFilled\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar InfoCircleFilled = function InfoCircleFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: InfoCircleFilledSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n InfoCircleFilled.displayName = 'InfoCircleFilled';\n}\nexport default /*#__PURE__*/React.forwardRef(InfoCircleFilled);","// This icon file is generated automatically.\nvar LeftOutlined = { \"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\" };\nexport default LeftOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport LeftOutlinedSvg from \"@ant-design/icons-svg/es/asn/LeftOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar LeftOutlined = function LeftOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: LeftOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n LeftOutlined.displayName = 'LeftOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(LeftOutlined);","// This icon file is generated automatically.\nvar LoadingOutlined = { \"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\" };\nexport default LoadingOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport LoadingOutlinedSvg from \"@ant-design/icons-svg/es/asn/LoadingOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar LoadingOutlined = function LoadingOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: LoadingOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n LoadingOutlined.displayName = 'LoadingOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(LoadingOutlined);","// This icon file is generated automatically.\nvar PlusOutlined = { \"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\" };\nexport default PlusOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport PlusOutlinedSvg from \"@ant-design/icons-svg/es/asn/PlusOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar PlusOutlined = function PlusOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: PlusOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n PlusOutlined.displayName = 'PlusOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(PlusOutlined);","// This icon file is generated automatically.\nvar ReloadOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z\" } }] }, \"name\": \"reload\", \"theme\": \"outlined\" };\nexport default ReloadOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ReloadOutlinedSvg from \"@ant-design/icons-svg/es/asn/ReloadOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ReloadOutlined = function ReloadOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ReloadOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ReloadOutlined.displayName = 'ReloadOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(ReloadOutlined);","// This icon file is generated automatically.\nvar RightOutlined = { \"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\" };\nexport default RightOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport RightOutlinedSvg from \"@ant-design/icons-svg/es/asn/RightOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar RightOutlined = function RightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: RightOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n RightOutlined.displayName = 'RightOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(RightOutlined);","// This icon file is generated automatically.\nvar SearchOutlined = { \"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\" };\nexport default SearchOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport SearchOutlinedSvg from \"@ant-design/icons-svg/es/asn/SearchOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar SearchOutlined = function SearchOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: SearchOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n SearchOutlined.displayName = 'SearchOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(SearchOutlined);","// This icon file is generated automatically.\nvar UpOutlined = { \"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\" };\nexport default UpOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport UpOutlinedSvg from \"@ant-design/icons-svg/es/asn/UpOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar UpOutlined = function UpOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: UpOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n UpOutlined.displayName = 'UpOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(UpOutlined);","// This icon file is generated automatically.\nvar ZoomInOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-in\", \"theme\": \"outlined\" };\nexport default ZoomInOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ZoomInOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomInOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ZoomInOutlined = function ZoomInOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ZoomInOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ZoomInOutlined.displayName = 'ZoomInOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(ZoomInOutlined);","// This icon file is generated automatically.\nvar ZoomOutOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z\" } }] }, \"name\": \"zoom-out\", \"theme\": \"outlined\" };\nexport default ZoomOutOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport ZoomOutOutlinedSvg from \"@ant-design/icons-svg/es/asn/ZoomOutOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar ZoomOutOutlined = function ZoomOutOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: ZoomOutOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ZoomOutOutlined.displayName = 'ZoomOutOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(ZoomOutOutlined);","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { generate as generateColor } from '@ant-design/colors';\nimport camelCase from 'lodash.camelcase';\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport { getShadowRoot } from \"rc-util/es/Dom/shadow\";\nimport warn from \"rc-util/es/warning\";\nimport React, { useContext, useEffect } from 'react';\nimport IconContext from \"./components/Context\";\nexport function warning(valid, message) {\n warn(valid, \"[@ant-design/icons] \".concat(message));\n}\nexport function isIconDefinition(target) {\n return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');\n}\nexport function normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return Object.keys(attrs).reduce(function (acc, key) {\n var val = attrs[key];\n switch (key) {\n case 'class':\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[camelCase(key)] = val;\n }\n return acc;\n }, {});\n}\nexport function generate(node, key, rootProps) {\n if (!rootProps) {\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return /*#__PURE__*/React.createElement(node.tag, _objectSpread(_objectSpread({\n key: key\n }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function (child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nexport function getSecondaryColor(primaryColor) {\n // choose the second color\n return generateColor(primaryColor)[0];\n}\nexport function normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];\n}\n\n// These props make sure that the SVG behaviours like general text.\n// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\nexport var svgBaseProps = {\n width: '1em',\n height: '1em',\n fill: 'currentColor',\n 'aria-hidden': 'true',\n focusable: 'false'\n};\nexport var iconStyles = \"\\n.anticon {\\n display: inline-block;\\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\";\nexport var useInsertStyles = function useInsertStyles(eleRef) {\n var _useContext = useContext(IconContext),\n csp = _useContext.csp,\n prefixCls = _useContext.prefixCls;\n var mergedStyleStr = iconStyles;\n if (prefixCls) {\n mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);\n }\n useEffect(function () {\n var ele = eleRef.current;\n var shadowRoot = getShadowRoot(ele);\n updateCSS(mergedStyleStr, '@ant-design-icons', {\n prepend: true,\n csp: csp,\n attachTo: shadowRoot\n });\n }, []);\n};","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nvar _react = require(\"react\");\nvar IconContext = /*#__PURE__*/ (0, _react.createContext)({});\nvar _default = IconContext;\n","// Seems this is used for iconFont\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nvar _react = /*#__PURE__*/ _interop_require_wildcard(require(\"react\"));\nvar _classnames = /*#__PURE__*/ _interop_require_default(require(\"classnames\"));\nvar _ref = require(\"rc-util/lib/ref\");\nvar _Context = /*#__PURE__*/ _interop_require_default(require(\"./Context\"));\nvar _utils = require(\"../utils\");\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n var cache = _getRequireWildcardCache(nodeInterop);\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for(var key in obj){\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n if (cache) {\n cache.set(obj, newObj);\n }\n return newObj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) {\n symbols = symbols.filter(function(sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n }\n keys.push.apply(keys, symbols);\n }\n return keys;\n}\nfunction _object_spread_props(target, source) {\n source = source != null ? source : {};\n if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function(key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n return target;\n}\nfunction _object_without_properties(source, excluded) {\n if (source == null) return {};\n var target = _object_without_properties_loose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for(i = 0; i < sourceSymbolKeys.length; i++){\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}\nfunction _object_without_properties_loose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\nvar Icon = /*#__PURE__*/ _react.forwardRef(function(props, ref) {\n var // affect outter ...\n className = props.className, // affect inner ...\n Component = props.component, viewBox = props.viewBox, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, // children\n children = props.children, restProps = _object_without_properties(props, [\n \"className\",\n \"component\",\n \"viewBox\",\n \"spin\",\n \"rotate\",\n \"tabIndex\",\n \"onClick\",\n \"children\"\n ]);\n var iconRef = _react.useRef();\n var mergedRef = (0, _ref.useComposeRef)(iconRef, ref);\n (0, _utils.warning)(Boolean(Component || children), \"Should have `component` prop or `children`.\");\n (0, _utils.useInsertStyles)(iconRef);\n var _React_useContext = _react.useContext(_Context.default), _React_useContext_prefixCls = _React_useContext.prefixCls, prefixCls = _React_useContext_prefixCls === void 0 ? \"anticon\" : _React_useContext_prefixCls, rootClassName = _React_useContext.rootClassName;\n var classString = (0, _classnames.default)(rootClassName, prefixCls, className);\n var svgClassString = (0, _classnames.default)(_define_property({}, \"\".concat(prefixCls, \"-spin\"), !!spin));\n var svgStyle = rotate ? {\n msTransform: \"rotate(\".concat(rotate, \"deg)\"),\n transform: \"rotate(\".concat(rotate, \"deg)\")\n } : undefined;\n var innerSvgProps = _object_spread_props(_object_spread({}, _utils.svgBaseProps), {\n className: svgClassString,\n style: svgStyle,\n viewBox: viewBox\n });\n if (!viewBox) {\n delete innerSvgProps.viewBox;\n }\n // component > children\n var renderInnerNode = function() {\n if (Component) {\n return /*#__PURE__*/ _react.createElement(Component, innerSvgProps, children);\n }\n if (children) {\n (0, _utils.warning)(Boolean(viewBox) || _react.Children.count(children) === 1 && /*#__PURE__*/ _react.isValidElement(children) && _react.Children.only(children).type === \"use\", \"Make sure that you provide correct `viewBox`\" + \" prop (default `0 0 1024 1024`) to the icon.\");\n return /*#__PURE__*/ _react.createElement(\"svg\", _object_spread_props(_object_spread({}, innerSvgProps), {\n viewBox: viewBox\n }), children);\n }\n return null;\n };\n var iconTabIndex = tabIndex;\n if (iconTabIndex === undefined && onClick) {\n iconTabIndex = -1;\n }\n return /*#__PURE__*/ _react.createElement(\"span\", _object_spread_props(_object_spread({\n role: \"img\"\n }, restProps), {\n ref: mergedRef,\n tabIndex: iconTabIndex,\n onClick: onClick,\n className: classString\n }), renderInnerNode());\n});\nIcon.displayName = \"AntdIcon\";\nvar _default = Icon;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nfunction _export(target, all) {\n for(var name in all)Object.defineProperty(target, name, {\n enumerable: true,\n get: all[name]\n });\n}\n_export(exports, {\n warning: function() {\n return warning;\n },\n isIconDefinition: function() {\n return isIconDefinition;\n },\n normalizeAttrs: function() {\n return normalizeAttrs;\n },\n generate: function() {\n return generate;\n },\n getSecondaryColor: function() {\n return getSecondaryColor;\n },\n normalizeTwoToneColors: function() {\n return normalizeTwoToneColors;\n },\n svgBaseProps: function() {\n return svgBaseProps;\n },\n iconStyles: function() {\n return iconStyles;\n },\n useInsertStyles: function() {\n return useInsertStyles;\n }\n});\nvar _colors = require(\"@ant-design/colors\");\nvar _lodashcamelcase = /*#__PURE__*/ _interop_require_default(require(\"lodash.camelcase\"));\nvar _dynamicCSS = require(\"rc-util/lib/Dom/dynamicCSS\");\nvar _shadow = require(\"rc-util/lib/Dom/shadow\");\nvar _warning = /*#__PURE__*/ _interop_require_default(require(\"rc-util/lib/warning\"));\nvar _react = /*#__PURE__*/ _interop_require_wildcard(require(\"react\"));\nvar _Context = /*#__PURE__*/ _interop_require_default(require(\"./components/Context\"));\nfunction _define_property(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _getRequireWildcardCache(nodeInterop) {\n if (typeof WeakMap !== \"function\") return null;\n var cacheBabelInterop = new WeakMap();\n var cacheNodeInterop = new WeakMap();\n return (_getRequireWildcardCache = function(nodeInterop) {\n return nodeInterop ? cacheNodeInterop : cacheBabelInterop;\n })(nodeInterop);\n}\nfunction _interop_require_wildcard(obj, nodeInterop) {\n if (!nodeInterop && obj && obj.__esModule) {\n return obj;\n }\n if (obj === null || typeof obj !== \"object\" && typeof obj !== \"function\") {\n return {\n default: obj\n };\n }\n var cache = _getRequireWildcardCache(nodeInterop);\n if (cache && cache.has(obj)) {\n return cache.get(obj);\n }\n var newObj = {};\n var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;\n for(var key in obj){\n if (key !== \"default\" && Object.prototype.hasOwnProperty.call(obj, key)) {\n var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;\n if (desc && (desc.get || desc.set)) {\n Object.defineProperty(newObj, key, desc);\n } else {\n newObj[key] = obj[key];\n }\n }\n }\n newObj.default = obj;\n if (cache) {\n cache.set(obj, newObj);\n }\n return newObj;\n}\nfunction _object_spread(target) {\n for(var i = 1; i < arguments.length; i++){\n var source = arguments[i] != null ? arguments[i] : {};\n var ownKeys = Object.keys(source);\n if (typeof Object.getOwnPropertySymbols === \"function\") {\n ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {\n return Object.getOwnPropertyDescriptor(source, sym).enumerable;\n }));\n }\n ownKeys.forEach(function(key) {\n _define_property(target, key, source[key]);\n });\n }\n return target;\n}\nfunction warning(valid, message) {\n (0, _warning.default)(valid, \"[@ant-design/icons] \".concat(message));\n}\nfunction isIconDefinition(target) {\n return typeof target === \"object\" && typeof target.name === \"string\" && typeof target.theme === \"string\" && (typeof target.icon === \"object\" || typeof target.icon === \"function\");\n}\nfunction normalizeAttrs() {\n var attrs = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};\n return Object.keys(attrs).reduce(function(acc, key) {\n var val = attrs[key];\n switch(key){\n case \"class\":\n acc.className = val;\n delete acc.class;\n break;\n default:\n delete acc[key];\n acc[(0, _lodashcamelcase.default)(key)] = val;\n }\n return acc;\n }, {});\n}\nfunction generate(node, key, rootProps) {\n if (!rootProps) {\n return _react.default.createElement(node.tag, _object_spread({\n key: key\n }, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n }\n return _react.default.createElement(node.tag, _object_spread({\n key: key\n }, normalizeAttrs(node.attrs), rootProps), (node.children || []).map(function(child, index) {\n return generate(child, \"\".concat(key, \"-\").concat(node.tag, \"-\").concat(index));\n }));\n}\nfunction getSecondaryColor(primaryColor) {\n // choose the second color\n return (0, _colors.generate)(primaryColor)[0];\n}\nfunction normalizeTwoToneColors(twoToneColor) {\n if (!twoToneColor) {\n return [];\n }\n return Array.isArray(twoToneColor) ? twoToneColor : [\n twoToneColor\n ];\n}\nvar svgBaseProps = {\n width: \"1em\",\n height: \"1em\",\n fill: \"currentColor\",\n \"aria-hidden\": \"true\",\n focusable: \"false\"\n};\nvar iconStyles = \"\\n.anticon {\\n display: inline-block;\\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\";\nvar useInsertStyles = function(eleRef) {\n var _useContext = (0, _react.useContext)(_Context.default), csp = _useContext.csp, prefixCls = _useContext.prefixCls;\n var mergedStyleStr = iconStyles;\n if (prefixCls) {\n mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls);\n }\n (0, _react.useEffect)(function() {\n var ele = eleRef.current;\n var shadowRoot = (0, _shadow.getShadowRoot)(ele);\n (0, _dynamicCSS.updateCSS)(mergedStyleStr, \"@ant-design-icons\", {\n prepend: true,\n csp: csp,\n attachTo: shadowRoot\n });\n }, []);\n};\n","import { bound01, pad2 } from './util.js';\n// `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:\n// \n/**\n * Handle bounds / percentage checking to conform to CSS color spec\n * \n * *Assumes:* r, g, b in [0, 255] or [0, 1]\n * *Returns:* { r, g, b } in [0, 255]\n */\nexport function rgbToRgb(r, g, b) {\n return {\n r: bound01(r, 255) * 255,\n g: bound01(g, 255) * 255,\n b: bound01(b, 255) * 255,\n };\n}\n/**\n * Converts an RGB color value to HSL.\n * *Assumes:* r, g, and b are contained in [0, 255] or [0, 1]\n * *Returns:* { h, s, l } in [0,1]\n */\nexport function rgbToHsl(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n var max = Math.max(r, g, b);\n var min = Math.min(r, g, b);\n var h = 0;\n var s = 0;\n var l = (max + min) / 2;\n if (max === min) {\n s = 0;\n h = 0; // achromatic\n }\n else {\n var d = max - min;\n s = l > 0.5 ? d / (2 - max - min) : d / (max + min);\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n default:\n break;\n }\n h /= 6;\n }\n return { h: h, s: s, l: l };\n}\nfunction hue2rgb(p, q, t) {\n if (t < 0) {\n t += 1;\n }\n if (t > 1) {\n t -= 1;\n }\n if (t < 1 / 6) {\n return p + (q - p) * (6 * t);\n }\n if (t < 1 / 2) {\n return q;\n }\n if (t < 2 / 3) {\n return p + (q - p) * (2 / 3 - t) * 6;\n }\n return p;\n}\n/**\n * Converts an HSL color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hslToRgb(h, s, l) {\n var r;\n var g;\n var b;\n h = bound01(h, 360);\n s = bound01(s, 100);\n l = bound01(l, 100);\n if (s === 0) {\n // achromatic\n g = l;\n b = l;\n r = l;\n }\n else {\n var q = l < 0.5 ? l * (1 + s) : l + s - l * s;\n var p = 2 * l - q;\n r = hue2rgb(p, q, h + 1 / 3);\n g = hue2rgb(p, q, h);\n b = hue2rgb(p, q, h - 1 / 3);\n }\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color value to HSV\n *\n * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]\n * *Returns:* { h, s, v } in [0,1]\n */\nexport function rgbToHsv(r, g, b) {\n r = bound01(r, 255);\n g = bound01(g, 255);\n b = bound01(b, 255);\n var max = Math.max(r, g, b);\n var min = Math.min(r, g, b);\n var h = 0;\n var v = max;\n var d = max - min;\n var s = max === 0 ? 0 : d / max;\n if (max === min) {\n h = 0; // achromatic\n }\n else {\n switch (max) {\n case r:\n h = (g - b) / d + (g < b ? 6 : 0);\n break;\n case g:\n h = (b - r) / d + 2;\n break;\n case b:\n h = (r - g) / d + 4;\n break;\n default:\n break;\n }\n h /= 6;\n }\n return { h: h, s: s, v: v };\n}\n/**\n * Converts an HSV color value to RGB.\n *\n * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]\n * *Returns:* { r, g, b } in the set [0, 255]\n */\nexport function hsvToRgb(h, s, v) {\n h = bound01(h, 360) * 6;\n s = bound01(s, 100);\n v = bound01(v, 100);\n var i = Math.floor(h);\n var f = h - i;\n var p = v * (1 - s);\n var q = v * (1 - f * s);\n var t = v * (1 - (1 - f) * s);\n var mod = i % 6;\n var r = [v, q, p, p, t, v][mod];\n var g = [t, v, v, q, p, p][mod];\n var b = [p, p, t, v, v, q][mod];\n return { r: r * 255, g: g * 255, b: b * 255 };\n}\n/**\n * Converts an RGB color to hex\n *\n * Assumes r, g, and b are contained in the set [0, 255]\n * Returns a 3 or 6 character hex\n */\nexport function rgbToHex(r, g, b, allow3Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n // Return a 3 character hex if possible\n if (allow3Char &&\n hex[0].startsWith(hex[0].charAt(1)) &&\n hex[1].startsWith(hex[1].charAt(1)) &&\n hex[2].startsWith(hex[2].charAt(1))) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);\n }\n return hex.join('');\n}\n/**\n * Converts an RGBA color plus alpha transparency to hex\n *\n * Assumes r, g, b are contained in the set [0, 255] and\n * a in [0, 1]. Returns a 4 or 8 character rgba hex\n */\n// eslint-disable-next-line max-params\nexport function rgbaToHex(r, g, b, a, allow4Char) {\n var hex = [\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n pad2(convertDecimalToHex(a)),\n ];\n // Return a 4 character hex if possible\n if (allow4Char &&\n hex[0].startsWith(hex[0].charAt(1)) &&\n hex[1].startsWith(hex[1].charAt(1)) &&\n hex[2].startsWith(hex[2].charAt(1)) &&\n hex[3].startsWith(hex[3].charAt(1))) {\n return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);\n }\n return hex.join('');\n}\n/**\n * Converts an RGBA color to an ARGB Hex8 string\n * Rarely used, but required for \"toFilter()\"\n */\nexport function rgbaToArgbHex(r, g, b, a) {\n var hex = [\n pad2(convertDecimalToHex(a)),\n pad2(Math.round(r).toString(16)),\n pad2(Math.round(g).toString(16)),\n pad2(Math.round(b).toString(16)),\n ];\n return hex.join('');\n}\n/** Converts a decimal to a hex value */\nexport function convertDecimalToHex(d) {\n return Math.round(parseFloat(d) * 255).toString(16);\n}\n/** Converts a hex value to a decimal */\nexport function convertHexToDecimal(h) {\n return parseIntFromHex(h) / 255;\n}\n/** Parse a base-16 hex value into a base-10 integer */\nexport function parseIntFromHex(val) {\n return parseInt(val, 16);\n}\nexport function numberInputToObject(color) {\n return {\n r: color >> 16,\n g: (color & 0xff00) >> 8,\n b: color & 0xff,\n };\n}\n","// https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json\n/**\n * @hidden\n */\nexport var names = {\n aliceblue: '#f0f8ff',\n antiquewhite: '#faebd7',\n aqua: '#00ffff',\n aquamarine: '#7fffd4',\n azure: '#f0ffff',\n beige: '#f5f5dc',\n bisque: '#ffe4c4',\n black: '#000000',\n blanchedalmond: '#ffebcd',\n blue: '#0000ff',\n blueviolet: '#8a2be2',\n brown: '#a52a2a',\n burlywood: '#deb887',\n cadetblue: '#5f9ea0',\n chartreuse: '#7fff00',\n chocolate: '#d2691e',\n coral: '#ff7f50',\n cornflowerblue: '#6495ed',\n cornsilk: '#fff8dc',\n crimson: '#dc143c',\n cyan: '#00ffff',\n darkblue: '#00008b',\n darkcyan: '#008b8b',\n darkgoldenrod: '#b8860b',\n darkgray: '#a9a9a9',\n darkgreen: '#006400',\n darkgrey: '#a9a9a9',\n darkkhaki: '#bdb76b',\n darkmagenta: '#8b008b',\n darkolivegreen: '#556b2f',\n darkorange: '#ff8c00',\n darkorchid: '#9932cc',\n darkred: '#8b0000',\n darksalmon: '#e9967a',\n darkseagreen: '#8fbc8f',\n darkslateblue: '#483d8b',\n darkslategray: '#2f4f4f',\n darkslategrey: '#2f4f4f',\n darkturquoise: '#00ced1',\n darkviolet: '#9400d3',\n deeppink: '#ff1493',\n deepskyblue: '#00bfff',\n dimgray: '#696969',\n dimgrey: '#696969',\n dodgerblue: '#1e90ff',\n firebrick: '#b22222',\n floralwhite: '#fffaf0',\n forestgreen: '#228b22',\n fuchsia: '#ff00ff',\n gainsboro: '#dcdcdc',\n ghostwhite: '#f8f8ff',\n goldenrod: '#daa520',\n gold: '#ffd700',\n gray: '#808080',\n green: '#008000',\n greenyellow: '#adff2f',\n grey: '#808080',\n honeydew: '#f0fff0',\n hotpink: '#ff69b4',\n indianred: '#cd5c5c',\n indigo: '#4b0082',\n ivory: '#fffff0',\n khaki: '#f0e68c',\n lavenderblush: '#fff0f5',\n lavender: '#e6e6fa',\n lawngreen: '#7cfc00',\n lemonchiffon: '#fffacd',\n lightblue: '#add8e6',\n lightcoral: '#f08080',\n lightcyan: '#e0ffff',\n lightgoldenrodyellow: '#fafad2',\n lightgray: '#d3d3d3',\n lightgreen: '#90ee90',\n lightgrey: '#d3d3d3',\n lightpink: '#ffb6c1',\n lightsalmon: '#ffa07a',\n lightseagreen: '#20b2aa',\n lightskyblue: '#87cefa',\n lightslategray: '#778899',\n lightslategrey: '#778899',\n lightsteelblue: '#b0c4de',\n lightyellow: '#ffffe0',\n lime: '#00ff00',\n limegreen: '#32cd32',\n linen: '#faf0e6',\n magenta: '#ff00ff',\n maroon: '#800000',\n mediumaquamarine: '#66cdaa',\n mediumblue: '#0000cd',\n mediumorchid: '#ba55d3',\n mediumpurple: '#9370db',\n mediumseagreen: '#3cb371',\n mediumslateblue: '#7b68ee',\n mediumspringgreen: '#00fa9a',\n mediumturquoise: '#48d1cc',\n mediumvioletred: '#c71585',\n midnightblue: '#191970',\n mintcream: '#f5fffa',\n mistyrose: '#ffe4e1',\n moccasin: '#ffe4b5',\n navajowhite: '#ffdead',\n navy: '#000080',\n oldlace: '#fdf5e6',\n olive: '#808000',\n olivedrab: '#6b8e23',\n orange: '#ffa500',\n orangered: '#ff4500',\n orchid: '#da70d6',\n palegoldenrod: '#eee8aa',\n palegreen: '#98fb98',\n paleturquoise: '#afeeee',\n palevioletred: '#db7093',\n papayawhip: '#ffefd5',\n peachpuff: '#ffdab9',\n peru: '#cd853f',\n pink: '#ffc0cb',\n plum: '#dda0dd',\n powderblue: '#b0e0e6',\n purple: '#800080',\n rebeccapurple: '#663399',\n red: '#ff0000',\n rosybrown: '#bc8f8f',\n royalblue: '#4169e1',\n saddlebrown: '#8b4513',\n salmon: '#fa8072',\n sandybrown: '#f4a460',\n seagreen: '#2e8b57',\n seashell: '#fff5ee',\n sienna: '#a0522d',\n silver: '#c0c0c0',\n skyblue: '#87ceeb',\n slateblue: '#6a5acd',\n slategray: '#708090',\n slategrey: '#708090',\n snow: '#fffafa',\n springgreen: '#00ff7f',\n steelblue: '#4682b4',\n tan: '#d2b48c',\n teal: '#008080',\n thistle: '#d8bfd8',\n tomato: '#ff6347',\n turquoise: '#40e0d0',\n violet: '#ee82ee',\n wheat: '#f5deb3',\n white: '#ffffff',\n whitesmoke: '#f5f5f5',\n yellow: '#ffff00',\n yellowgreen: '#9acd32',\n};\n","/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport { convertHexToDecimal, hslToRgb, hsvToRgb, parseIntFromHex, rgbToRgb, } from './conversion.js';\nimport { names } from './css-color-names.js';\nimport { boundAlpha, convertToPercentage } from './util.js';\n/**\n * Given a string or object, convert that input to RGB\n *\n * Possible string inputs:\n * ```\n * \"red\"\n * \"#f00\" or \"f00\"\n * \"#ff0000\" or \"ff0000\"\n * \"#ff000000\" or \"ff000000\"\n * \"rgb 255 0 0\" or \"rgb (255, 0, 0)\"\n * \"rgb 1.0 0 0\" or \"rgb (1, 0, 0)\"\n * \"rgba (255, 0, 0, 1)\" or \"rgba 255, 0, 0, 1\"\n * \"rgba (1.0, 0, 0, 1)\" or \"rgba 1.0, 0, 0, 1\"\n * \"hsl(0, 100%, 50%)\" or \"hsl 0 100% 50%\"\n * \"hsla(0, 100%, 50%, 1)\" or \"hsla 0 100% 50%, 1\"\n * \"hsv(0, 100%, 100%)\" or \"hsv 0 100% 100%\"\n * ```\n */\nexport function inputToRGB(color) {\n var rgb = { r: 0, g: 0, b: 0 };\n var a = 1;\n var s = null;\n var v = null;\n var l = null;\n var ok = false;\n var format = false;\n if (typeof color === 'string') {\n color = stringInputToObject(color);\n }\n if (typeof color === 'object') {\n if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {\n rgb = rgbToRgb(color.r, color.g, color.b);\n ok = true;\n format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {\n s = convertToPercentage(color.s);\n v = convertToPercentage(color.v);\n rgb = hsvToRgb(color.h, s, v);\n ok = true;\n format = 'hsv';\n }\n else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {\n s = convertToPercentage(color.s);\n l = convertToPercentage(color.l);\n rgb = hslToRgb(color.h, s, l);\n ok = true;\n format = 'hsl';\n }\n if (Object.prototype.hasOwnProperty.call(color, 'a')) {\n a = color.a;\n }\n }\n a = boundAlpha(a);\n return {\n ok: ok,\n format: color.format || format,\n r: Math.min(255, Math.max(rgb.r, 0)),\n g: Math.min(255, Math.max(rgb.g, 0)),\n b: Math.min(255, Math.max(rgb.b, 0)),\n a: a,\n };\n}\n// \nvar CSS_INTEGER = '[-\\\\+]?\\\\d+%?';\n// \nvar CSS_NUMBER = '[-\\\\+]?\\\\d*\\\\.\\\\d+%?';\n// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.\nvar CSS_UNIT = \"(?:\".concat(CSS_NUMBER, \")|(?:\").concat(CSS_INTEGER, \")\");\n// Actual matching.\n// Parentheses and commas are optional, but not required.\n// Whitespace can take the place of commas or opening paren\nvar PERMISSIVE_MATCH3 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar PERMISSIVE_MATCH4 = \"[\\\\s|\\\\(]+(\".concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")[,|\\\\s]+(\").concat(CSS_UNIT, \")\\\\s*\\\\)?\");\nvar matchers = {\n CSS_UNIT: new RegExp(CSS_UNIT),\n rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),\n rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),\n hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),\n hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),\n hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),\n hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),\n hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,\n hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,\n};\n/**\n * Permissive string parsing. Take in a number of formats, and output an object\n * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`\n */\nexport function stringInputToObject(color) {\n color = color.trim().toLowerCase();\n if (color.length === 0) {\n return false;\n }\n var named = false;\n if (names[color]) {\n color = names[color];\n named = true;\n }\n else if (color === 'transparent') {\n return { r: 0, g: 0, b: 0, a: 0, format: 'name' };\n }\n // Try to match string input using regular expressions.\n // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]\n // Just return an object and let the conversion functions handle that.\n // This way the result will be the same whether the tinycolor is initialized with string or object.\n var match = matchers.rgb.exec(color);\n if (match) {\n return { r: match[1], g: match[2], b: match[3] };\n }\n match = matchers.rgba.exec(color);\n if (match) {\n return { r: match[1], g: match[2], b: match[3], a: match[4] };\n }\n match = matchers.hsl.exec(color);\n if (match) {\n return { h: match[1], s: match[2], l: match[3] };\n }\n match = matchers.hsla.exec(color);\n if (match) {\n return { h: match[1], s: match[2], l: match[3], a: match[4] };\n }\n match = matchers.hsv.exec(color);\n if (match) {\n return { h: match[1], s: match[2], v: match[3] };\n }\n match = matchers.hsva.exec(color);\n if (match) {\n return { h: match[1], s: match[2], v: match[3], a: match[4] };\n }\n match = matchers.hex8.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n a: convertHexToDecimal(match[4]),\n format: named ? 'name' : 'hex8',\n };\n }\n match = matchers.hex6.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1]),\n g: parseIntFromHex(match[2]),\n b: parseIntFromHex(match[3]),\n format: named ? 'name' : 'hex',\n };\n }\n match = matchers.hex4.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1] + match[1]),\n g: parseIntFromHex(match[2] + match[2]),\n b: parseIntFromHex(match[3] + match[3]),\n a: convertHexToDecimal(match[4] + match[4]),\n format: named ? 'name' : 'hex8',\n };\n }\n match = matchers.hex3.exec(color);\n if (match) {\n return {\n r: parseIntFromHex(match[1] + match[1]),\n g: parseIntFromHex(match[2] + match[2]),\n b: parseIntFromHex(match[3] + match[3]),\n format: named ? 'name' : 'hex',\n };\n }\n return false;\n}\n/**\n * Check to see if it looks like a CSS unit\n * (see `matchers` above for definition).\n */\nexport function isValidCSSUnit(color) {\n return Boolean(matchers.CSS_UNIT.exec(String(color)));\n}\n","import { numberInputToObject, rgbaToHex, rgbToHex, rgbToHsl, rgbToHsv } from './conversion.js';\nimport { names } from './css-color-names.js';\nimport { inputToRGB } from './format-input';\nimport { bound01, boundAlpha, clamp01 } from './util.js';\nvar TinyColor = /** @class */ (function () {\n function TinyColor(color, opts) {\n if (color === void 0) { color = ''; }\n if (opts === void 0) { opts = {}; }\n var _a;\n // If input is already a tinycolor, return itself\n if (color instanceof TinyColor) {\n // eslint-disable-next-line no-constructor-return\n return color;\n }\n if (typeof color === 'number') {\n color = numberInputToObject(color);\n }\n this.originalInput = color;\n var rgb = inputToRGB(color);\n this.originalInput = color;\n this.r = rgb.r;\n this.g = rgb.g;\n this.b = rgb.b;\n this.a = rgb.a;\n this.roundA = Math.round(100 * this.a) / 100;\n this.format = (_a = opts.format) !== null && _a !== void 0 ? _a : rgb.format;\n this.gradientType = opts.gradientType;\n // Don't let the range of [0,255] come back in [0,1].\n // Potentially lose a little bit of precision here, but will fix issues where\n // .5 gets interpreted as half of the total, instead of half of 1\n // If it was supposed to be 128, this was already taken care of by `inputToRgb`\n if (this.r < 1) {\n this.r = Math.round(this.r);\n }\n if (this.g < 1) {\n this.g = Math.round(this.g);\n }\n if (this.b < 1) {\n this.b = Math.round(this.b);\n }\n this.isValid = rgb.ok;\n }\n TinyColor.prototype.isDark = function () {\n return this.getBrightness() < 128;\n };\n TinyColor.prototype.isLight = function () {\n return !this.isDark();\n };\n /**\n * Returns the perceived brightness of the color, from 0-255.\n */\n TinyColor.prototype.getBrightness = function () {\n // http://www.w3.org/TR/AERT#color-contrast\n var rgb = this.toRgb();\n return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1000;\n };\n /**\n * Returns the perceived luminance of a color, from 0-1.\n */\n TinyColor.prototype.getLuminance = function () {\n // http://www.w3.org/TR/2008/REC-WCAG20-20081211/#relativeluminancedef\n var rgb = this.toRgb();\n var R;\n var G;\n var B;\n var RsRGB = rgb.r / 255;\n var GsRGB = rgb.g / 255;\n var BsRGB = rgb.b / 255;\n if (RsRGB <= 0.03928) {\n R = RsRGB / 12.92;\n }\n else {\n // eslint-disable-next-line prefer-exponentiation-operator\n R = Math.pow((RsRGB + 0.055) / 1.055, 2.4);\n }\n if (GsRGB <= 0.03928) {\n G = GsRGB / 12.92;\n }\n else {\n // eslint-disable-next-line prefer-exponentiation-operator\n G = Math.pow((GsRGB + 0.055) / 1.055, 2.4);\n }\n if (BsRGB <= 0.03928) {\n B = BsRGB / 12.92;\n }\n else {\n // eslint-disable-next-line prefer-exponentiation-operator\n B = Math.pow((BsRGB + 0.055) / 1.055, 2.4);\n }\n return 0.2126 * R + 0.7152 * G + 0.0722 * B;\n };\n /**\n * Returns the alpha value of a color, from 0-1.\n */\n TinyColor.prototype.getAlpha = function () {\n return this.a;\n };\n /**\n * Sets the alpha value on the current color.\n *\n * @param alpha - The new alpha value. The accepted range is 0-1.\n */\n TinyColor.prototype.setAlpha = function (alpha) {\n this.a = boundAlpha(alpha);\n this.roundA = Math.round(100 * this.a) / 100;\n return this;\n };\n /**\n * Returns whether the color is monochrome.\n */\n TinyColor.prototype.isMonochrome = function () {\n var s = this.toHsl().s;\n return s === 0;\n };\n /**\n * Returns the object as a HSVA object.\n */\n TinyColor.prototype.toHsv = function () {\n var hsv = rgbToHsv(this.r, this.g, this.b);\n return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this.a };\n };\n /**\n * Returns the hsva values interpolated into a string with the following format:\n * \"hsva(xxx, xxx, xxx, xx)\".\n */\n TinyColor.prototype.toHsvString = function () {\n var hsv = rgbToHsv(this.r, this.g, this.b);\n var h = Math.round(hsv.h * 360);\n var s = Math.round(hsv.s * 100);\n var v = Math.round(hsv.v * 100);\n return this.a === 1 ? \"hsv(\".concat(h, \", \").concat(s, \"%, \").concat(v, \"%)\") : \"hsva(\".concat(h, \", \").concat(s, \"%, \").concat(v, \"%, \").concat(this.roundA, \")\");\n };\n /**\n * Returns the object as a HSLA object.\n */\n TinyColor.prototype.toHsl = function () {\n var hsl = rgbToHsl(this.r, this.g, this.b);\n return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this.a };\n };\n /**\n * Returns the hsla values interpolated into a string with the following format:\n * \"hsla(xxx, xxx, xxx, xx)\".\n */\n TinyColor.prototype.toHslString = function () {\n var hsl = rgbToHsl(this.r, this.g, this.b);\n var h = Math.round(hsl.h * 360);\n var s = Math.round(hsl.s * 100);\n var l = Math.round(hsl.l * 100);\n return this.a === 1 ? \"hsl(\".concat(h, \", \").concat(s, \"%, \").concat(l, \"%)\") : \"hsla(\".concat(h, \", \").concat(s, \"%, \").concat(l, \"%, \").concat(this.roundA, \")\");\n };\n /**\n * Returns the hex value of the color.\n * @param allow3Char will shorten hex value to 3 char if possible\n */\n TinyColor.prototype.toHex = function (allow3Char) {\n if (allow3Char === void 0) { allow3Char = false; }\n return rgbToHex(this.r, this.g, this.b, allow3Char);\n };\n /**\n * Returns the hex value of the color -with a # prefixed.\n * @param allow3Char will shorten hex value to 3 char if possible\n */\n TinyColor.prototype.toHexString = function (allow3Char) {\n if (allow3Char === void 0) { allow3Char = false; }\n return '#' + this.toHex(allow3Char);\n };\n /**\n * Returns the hex 8 value of the color.\n * @param allow4Char will shorten hex value to 4 char if possible\n */\n TinyColor.prototype.toHex8 = function (allow4Char) {\n if (allow4Char === void 0) { allow4Char = false; }\n return rgbaToHex(this.r, this.g, this.b, this.a, allow4Char);\n };\n /**\n * Returns the hex 8 value of the color -with a # prefixed.\n * @param allow4Char will shorten hex value to 4 char if possible\n */\n TinyColor.prototype.toHex8String = function (allow4Char) {\n if (allow4Char === void 0) { allow4Char = false; }\n return '#' + this.toHex8(allow4Char);\n };\n /**\n * Returns the shorter hex value of the color depends on its alpha -with a # prefixed.\n * @param allowShortChar will shorten hex value to 3 or 4 char if possible\n */\n TinyColor.prototype.toHexShortString = function (allowShortChar) {\n if (allowShortChar === void 0) { allowShortChar = false; }\n return this.a === 1 ? this.toHexString(allowShortChar) : this.toHex8String(allowShortChar);\n };\n /**\n * Returns the object as a RGBA object.\n */\n TinyColor.prototype.toRgb = function () {\n return {\n r: Math.round(this.r),\n g: Math.round(this.g),\n b: Math.round(this.b),\n a: this.a,\n };\n };\n /**\n * Returns the RGBA values interpolated into a string with the following format:\n * \"RGBA(xxx, xxx, xxx, xx)\".\n */\n TinyColor.prototype.toRgbString = function () {\n var r = Math.round(this.r);\n var g = Math.round(this.g);\n var b = Math.round(this.b);\n return this.a === 1 ? \"rgb(\".concat(r, \", \").concat(g, \", \").concat(b, \")\") : \"rgba(\".concat(r, \", \").concat(g, \", \").concat(b, \", \").concat(this.roundA, \")\");\n };\n /**\n * Returns the object as a RGBA object.\n */\n TinyColor.prototype.toPercentageRgb = function () {\n var fmt = function (x) { return \"\".concat(Math.round(bound01(x, 255) * 100), \"%\"); };\n return {\n r: fmt(this.r),\n g: fmt(this.g),\n b: fmt(this.b),\n a: this.a,\n };\n };\n /**\n * Returns the RGBA relative values interpolated into a string\n */\n TinyColor.prototype.toPercentageRgbString = function () {\n var rnd = function (x) { return Math.round(bound01(x, 255) * 100); };\n return this.a === 1\n ? \"rgb(\".concat(rnd(this.r), \"%, \").concat(rnd(this.g), \"%, \").concat(rnd(this.b), \"%)\")\n : \"rgba(\".concat(rnd(this.r), \"%, \").concat(rnd(this.g), \"%, \").concat(rnd(this.b), \"%, \").concat(this.roundA, \")\");\n };\n /**\n * The 'real' name of the color -if there is one.\n */\n TinyColor.prototype.toName = function () {\n if (this.a === 0) {\n return 'transparent';\n }\n if (this.a < 1) {\n return false;\n }\n var hex = '#' + rgbToHex(this.r, this.g, this.b, false);\n for (var _i = 0, _a = Object.entries(names); _i < _a.length; _i++) {\n var _b = _a[_i], key = _b[0], value = _b[1];\n if (hex === value) {\n return key;\n }\n }\n return false;\n };\n TinyColor.prototype.toString = function (format) {\n var formatSet = Boolean(format);\n format = format !== null && format !== void 0 ? format : this.format;\n var formattedString = false;\n var hasAlpha = this.a < 1 && this.a >= 0;\n var needsAlphaFormat = !formatSet && hasAlpha && (format.startsWith('hex') || format === 'name');\n if (needsAlphaFormat) {\n // Special case for \"transparent\", all other non-alpha formats\n // will return rgba when there is transparency.\n if (format === 'name' && this.a === 0) {\n return this.toName();\n }\n return this.toRgbString();\n }\n if (format === 'rgb') {\n formattedString = this.toRgbString();\n }\n if (format === 'prgb') {\n formattedString = this.toPercentageRgbString();\n }\n if (format === 'hex' || format === 'hex6') {\n formattedString = this.toHexString();\n }\n if (format === 'hex3') {\n formattedString = this.toHexString(true);\n }\n if (format === 'hex4') {\n formattedString = this.toHex8String(true);\n }\n if (format === 'hex8') {\n formattedString = this.toHex8String();\n }\n if (format === 'name') {\n formattedString = this.toName();\n }\n if (format === 'hsl') {\n formattedString = this.toHslString();\n }\n if (format === 'hsv') {\n formattedString = this.toHsvString();\n }\n return formattedString || this.toHexString();\n };\n TinyColor.prototype.toNumber = function () {\n return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);\n };\n TinyColor.prototype.clone = function () {\n return new TinyColor(this.toString());\n };\n /**\n * Lighten the color a given amount. Providing 100 will always return white.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.lighten = function (amount) {\n if (amount === void 0) { amount = 10; }\n var hsl = this.toHsl();\n hsl.l += amount / 100;\n hsl.l = clamp01(hsl.l);\n return new TinyColor(hsl);\n };\n /**\n * Brighten the color a given amount, from 0 to 100.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.brighten = function (amount) {\n if (amount === void 0) { amount = 10; }\n var rgb = this.toRgb();\n rgb.r = Math.max(0, Math.min(255, rgb.r - Math.round(255 * -(amount / 100))));\n rgb.g = Math.max(0, Math.min(255, rgb.g - Math.round(255 * -(amount / 100))));\n rgb.b = Math.max(0, Math.min(255, rgb.b - Math.round(255 * -(amount / 100))));\n return new TinyColor(rgb);\n };\n /**\n * Darken the color a given amount, from 0 to 100.\n * Providing 100 will always return black.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.darken = function (amount) {\n if (amount === void 0) { amount = 10; }\n var hsl = this.toHsl();\n hsl.l -= amount / 100;\n hsl.l = clamp01(hsl.l);\n return new TinyColor(hsl);\n };\n /**\n * Mix the color with pure white, from 0 to 100.\n * Providing 0 will do nothing, providing 100 will always return white.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.tint = function (amount) {\n if (amount === void 0) { amount = 10; }\n return this.mix('white', amount);\n };\n /**\n * Mix the color with pure black, from 0 to 100.\n * Providing 0 will do nothing, providing 100 will always return black.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.shade = function (amount) {\n if (amount === void 0) { amount = 10; }\n return this.mix('black', amount);\n };\n /**\n * Desaturate the color a given amount, from 0 to 100.\n * Providing 100 will is the same as calling greyscale\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.desaturate = function (amount) {\n if (amount === void 0) { amount = 10; }\n var hsl = this.toHsl();\n hsl.s -= amount / 100;\n hsl.s = clamp01(hsl.s);\n return new TinyColor(hsl);\n };\n /**\n * Saturate the color a given amount, from 0 to 100.\n * @param amount - valid between 1-100\n */\n TinyColor.prototype.saturate = function (amount) {\n if (amount === void 0) { amount = 10; }\n var hsl = this.toHsl();\n hsl.s += amount / 100;\n hsl.s = clamp01(hsl.s);\n return new TinyColor(hsl);\n };\n /**\n * Completely desaturates a color into greyscale.\n * Same as calling `desaturate(100)`\n */\n TinyColor.prototype.greyscale = function () {\n return this.desaturate(100);\n };\n /**\n * Spin takes a positive or negative amount within [-360, 360] indicating the change of hue.\n * Values outside of this range will be wrapped into this range.\n */\n TinyColor.prototype.spin = function (amount) {\n var hsl = this.toHsl();\n var hue = (hsl.h + amount) % 360;\n hsl.h = hue < 0 ? 360 + hue : hue;\n return new TinyColor(hsl);\n };\n /**\n * Mix the current color a given amount with another color, from 0 to 100.\n * 0 means no mixing (return current color).\n */\n TinyColor.prototype.mix = function (color, amount) {\n if (amount === void 0) { amount = 50; }\n var rgb1 = this.toRgb();\n var rgb2 = new TinyColor(color).toRgb();\n var p = amount / 100;\n var rgba = {\n r: (rgb2.r - rgb1.r) * p + rgb1.r,\n g: (rgb2.g - rgb1.g) * p + rgb1.g,\n b: (rgb2.b - rgb1.b) * p + rgb1.b,\n a: (rgb2.a - rgb1.a) * p + rgb1.a,\n };\n return new TinyColor(rgba);\n };\n TinyColor.prototype.analogous = function (results, slices) {\n if (results === void 0) { results = 6; }\n if (slices === void 0) { slices = 30; }\n var hsl = this.toHsl();\n var part = 360 / slices;\n var ret = [this];\n for (hsl.h = (hsl.h - ((part * results) >> 1) + 720) % 360; --results;) {\n hsl.h = (hsl.h + part) % 360;\n ret.push(new TinyColor(hsl));\n }\n return ret;\n };\n /**\n * taken from https://github.com/infusion/jQuery-xcolor/blob/master/jquery.xcolor.js\n */\n TinyColor.prototype.complement = function () {\n var hsl = this.toHsl();\n hsl.h = (hsl.h + 180) % 360;\n return new TinyColor(hsl);\n };\n TinyColor.prototype.monochromatic = function (results) {\n if (results === void 0) { results = 6; }\n var hsv = this.toHsv();\n var h = hsv.h;\n var s = hsv.s;\n var v = hsv.v;\n var res = [];\n var modification = 1 / results;\n while (results--) {\n res.push(new TinyColor({ h: h, s: s, v: v }));\n v = (v + modification) % 1;\n }\n return res;\n };\n TinyColor.prototype.splitcomplement = function () {\n var hsl = this.toHsl();\n var h = hsl.h;\n return [\n this,\n new TinyColor({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),\n new TinyColor({ h: (h + 216) % 360, s: hsl.s, l: hsl.l }),\n ];\n };\n /**\n * Compute how the color would appear on a background\n */\n TinyColor.prototype.onBackground = function (background) {\n var fg = this.toRgb();\n var bg = new TinyColor(background).toRgb();\n var alpha = fg.a + bg.a * (1 - fg.a);\n return new TinyColor({\n r: (fg.r * fg.a + bg.r * bg.a * (1 - fg.a)) / alpha,\n g: (fg.g * fg.a + bg.g * bg.a * (1 - fg.a)) / alpha,\n b: (fg.b * fg.a + bg.b * bg.a * (1 - fg.a)) / alpha,\n a: alpha,\n });\n };\n /**\n * Alias for `polyad(3)`\n */\n TinyColor.prototype.triad = function () {\n return this.polyad(3);\n };\n /**\n * Alias for `polyad(4)`\n */\n TinyColor.prototype.tetrad = function () {\n return this.polyad(4);\n };\n /**\n * Get polyad colors, like (for 1, 2, 3, 4, 5, 6, 7, 8, etc...)\n * monad, dyad, triad, tetrad, pentad, hexad, heptad, octad, etc...\n */\n TinyColor.prototype.polyad = function (n) {\n var hsl = this.toHsl();\n var h = hsl.h;\n var result = [this];\n var increment = 360 / n;\n for (var i = 1; i < n; i++) {\n result.push(new TinyColor({ h: (h + i * increment) % 360, s: hsl.s, l: hsl.l }));\n }\n return result;\n };\n /**\n * compare color vs current color\n */\n TinyColor.prototype.equals = function (color) {\n return this.toRgbString() === new TinyColor(color).toRgbString();\n };\n return TinyColor;\n}());\nexport { TinyColor };\n// kept for backwards compatability with v1\nexport function tinycolor(color, opts) {\n if (color === void 0) { color = ''; }\n if (opts === void 0) { opts = {}; }\n return new TinyColor(color, opts);\n}\n","/**\n * Take input from [0, n] and return it as [0, 1]\n * @hidden\n */\nexport function bound01(n, max) {\n if (isOnePointZero(n)) {\n n = '100%';\n }\n var isPercent = isPercentage(n);\n n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));\n // Automatically convert percentage into number\n if (isPercent) {\n n = parseInt(String(n * max), 10) / 100;\n }\n // Handle floating point rounding errors\n if (Math.abs(n - max) < 0.000001) {\n return 1;\n }\n // Convert into [0, 1] range if it isn't already\n if (max === 360) {\n // If n is a hue given in degrees,\n // wrap around out-of-range values into [0, 360] range\n // then convert into [0, 1].\n n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));\n }\n else {\n // If n not a hue given in degrees\n // Convert into [0, 1] range if it isn't already.\n n = (n % max) / parseFloat(String(max));\n }\n return n;\n}\n/**\n * Force a number between 0 and 1\n * @hidden\n */\nexport function clamp01(val) {\n return Math.min(1, Math.max(0, val));\n}\n/**\n * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1\n * \n * @hidden\n */\nexport function isOnePointZero(n) {\n return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;\n}\n/**\n * Check to see if string passed in is a percentage\n * @hidden\n */\nexport function isPercentage(n) {\n return typeof n === 'string' && n.indexOf('%') !== -1;\n}\n/**\n * Return a valid alpha value [0,1] with all invalid values being set to 1\n * @hidden\n */\nexport function boundAlpha(a) {\n a = parseFloat(a);\n if (isNaN(a) || a < 0 || a > 1) {\n a = 1;\n }\n return a;\n}\n/**\n * Replace a decimal with it's percentage value\n * @hidden\n */\nexport function convertToPercentage(n) {\n if (n <= 1) {\n return \"\".concat(Number(n) * 100, \"%\");\n }\n return n;\n}\n/**\n * Force a hex value to have 2 characters\n * @hidden\n */\nexport function pad2(c) {\n return c.length === 1 ? '0' + c : String(c);\n}\n","import * as React from 'react';\nvar OrderContext = /*#__PURE__*/React.createContext(null);\nexport default OrderContext;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport OrderContext from \"./Context\";\nvar EMPTY_LIST = [];\n\n/**\n * Will add `div` to document. Nest call will keep order\n * @param render Render DOM in document\n */\nexport default function useDom(render, debug) {\n var _React$useState = React.useState(function () {\n if (!canUseDom()) {\n return null;\n }\n var defaultEle = document.createElement('div');\n if (process.env.NODE_ENV !== 'production' && debug) {\n defaultEle.setAttribute('data-debug', debug);\n }\n return defaultEle;\n }),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n ele = _React$useState2[0];\n\n // ========================== Order ==========================\n var appendedRef = React.useRef(false);\n var queueCreate = React.useContext(OrderContext);\n var _React$useState3 = React.useState(EMPTY_LIST),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n queue = _React$useState4[0],\n setQueue = _React$useState4[1];\n var mergedQueueCreate = queueCreate || (appendedRef.current ? undefined : function (appendFn) {\n setQueue(function (origin) {\n var newQueue = [appendFn].concat(_toConsumableArray(origin));\n return newQueue;\n });\n });\n\n // =========================== DOM ===========================\n function append() {\n if (!ele.parentElement) {\n document.body.appendChild(ele);\n }\n appendedRef.current = true;\n }\n function cleanup() {\n var _ele$parentElement;\n (_ele$parentElement = ele.parentElement) === null || _ele$parentElement === void 0 ? void 0 : _ele$parentElement.removeChild(ele);\n appendedRef.current = false;\n }\n useLayoutEffect(function () {\n if (render) {\n if (queueCreate) {\n queueCreate(append);\n } else {\n append();\n }\n } else {\n cleanup();\n }\n return cleanup;\n }, [render]);\n useLayoutEffect(function () {\n if (queue.length) {\n queue.forEach(function (appendFn) {\n return appendFn();\n });\n setQueue(EMPTY_LIST);\n }\n }, [queue]);\n return [ele, mergedQueueCreate];\n}","/**\n * Test usage export. Do not use in your production\n */\nexport function isBodyOverflowing() {\n return document.body.scrollHeight > (window.innerHeight || document.documentElement.clientHeight) && window.innerWidth > document.body.offsetWidth;\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { updateCSS, removeCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport { getTargetScrollBarSize } from \"rc-util/es/getScrollBarSize\";\nimport { isBodyOverflowing } from \"./util\";\nvar UNIQUE_ID = \"rc-util-locker-\".concat(Date.now());\nvar uuid = 0;\nexport default function useScrollLocker(lock) {\n var mergedLock = !!lock;\n var _React$useState = React.useState(function () {\n uuid += 1;\n return \"\".concat(UNIQUE_ID, \"_\").concat(uuid);\n }),\n _React$useState2 = _slicedToArray(_React$useState, 1),\n id = _React$useState2[0];\n useLayoutEffect(function () {\n if (mergedLock) {\n var scrollbarSize = getTargetScrollBarSize(document.body).width;\n var isOverflow = isBodyOverflowing();\n updateCSS(\"\\nhtml body {\\n overflow-y: hidden;\\n \".concat(isOverflow ? \"width: calc(100% - \".concat(scrollbarSize, \"px);\") : '', \"\\n}\"), id);\n } else {\n removeCSS(id);\n }\n return function () {\n removeCSS(id);\n };\n }, [mergedLock, id]);\n}","export var inline = false;\nexport function inlineMock(nextInline) {\n if (typeof nextInline === 'boolean') {\n inline = nextInline;\n }\n return inline;\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { createPortal } from 'react-dom';\nimport canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport warning from \"rc-util/es/warning\";\nimport { supportRef, useComposeRef } from \"rc-util/es/ref\";\nimport OrderContext from \"./Context\";\nimport useDom from \"./useDom\";\nimport useScrollLocker from \"./useScrollLocker\";\nimport { inlineMock } from \"./mock\";\nvar getPortalContainer = function getPortalContainer(getContainer) {\n if (getContainer === false) {\n return false;\n }\n if (!canUseDom() || !getContainer) {\n return null;\n }\n if (typeof getContainer === 'string') {\n return document.querySelector(getContainer);\n }\n if (typeof getContainer === 'function') {\n return getContainer();\n }\n return getContainer;\n};\nvar Portal = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var open = props.open,\n autoLock = props.autoLock,\n getContainer = props.getContainer,\n debug = props.debug,\n _props$autoDestroy = props.autoDestroy,\n autoDestroy = _props$autoDestroy === void 0 ? true : _props$autoDestroy,\n children = props.children;\n var _React$useState = React.useState(open),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n shouldRender = _React$useState2[0],\n setShouldRender = _React$useState2[1];\n var mergedRender = shouldRender || open;\n\n // ========================= Warning =========================\n if (process.env.NODE_ENV !== 'production') {\n warning(canUseDom() || !open, \"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR.\");\n }\n\n // ====================== Should Render ======================\n React.useEffect(function () {\n if (autoDestroy || open) {\n setShouldRender(open);\n }\n }, [open, autoDestroy]);\n\n // ======================== Container ========================\n var _React$useState3 = React.useState(function () {\n return getPortalContainer(getContainer);\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n innerContainer = _React$useState4[0],\n setInnerContainer = _React$useState4[1];\n React.useEffect(function () {\n var customizeContainer = getPortalContainer(getContainer);\n\n // Tell component that we check this in effect which is safe to be `null`\n setInnerContainer(customizeContainer !== null && customizeContainer !== void 0 ? customizeContainer : null);\n });\n var _useDom = useDom(mergedRender && !innerContainer, debug),\n _useDom2 = _slicedToArray(_useDom, 2),\n defaultContainer = _useDom2[0],\n queueCreate = _useDom2[1];\n var mergedContainer = innerContainer !== null && innerContainer !== void 0 ? innerContainer : defaultContainer;\n\n // ========================= Locker ==========================\n useScrollLocker(autoLock && open && canUseDom() && (mergedContainer === defaultContainer || mergedContainer === document.body));\n\n // =========================== Ref ===========================\n var childRef = null;\n if (children && supportRef(children) && ref) {\n var _ref = children;\n childRef = _ref.ref;\n }\n var mergedRef = useComposeRef(childRef, ref);\n\n // ========================= Render ==========================\n // Do not render when nothing need render\n // When innerContainer is `undefined`, it may not ready since user use ref in the same render\n if (!mergedRender || !canUseDom() || innerContainer === undefined) {\n return null;\n }\n\n // Render inline\n var renderInline = mergedContainer === false || inlineMock();\n var reffedChildren = children;\n if (ref) {\n reffedChildren = /*#__PURE__*/React.cloneElement(children, {\n ref: mergedRef\n });\n }\n return /*#__PURE__*/React.createElement(OrderContext.Provider, {\n value: queueCreate\n }, renderInline ? reffedChildren : /*#__PURE__*/createPortal(reffedChildren, mergedContainer));\n});\nif (process.env.NODE_ENV !== 'production') {\n Portal.displayName = 'Portal';\n}\nexport default Portal;","import Portal from \"./Portal\";\nimport { inlineMock } from \"./mock\";\nexport { inlineMock };\nexport default Portal;","import * as React from 'react';\nvar TriggerContext = /*#__PURE__*/React.createContext(null);\nexport default TriggerContext;","import * as React from 'react';\nfunction toArray(val) {\n return val ? Array.isArray(val) ? val : [val] : [];\n}\nexport default function useAction(mobile, action, showAction, hideAction) {\n return React.useMemo(function () {\n var mergedShowAction = toArray(showAction !== null && showAction !== void 0 ? showAction : action);\n var mergedHideAction = toArray(hideAction !== null && hideAction !== void 0 ? hideAction : action);\n var showActionSet = new Set(mergedShowAction);\n var hideActionSet = new Set(mergedHideAction);\n if (mobile) {\n if (showActionSet.has('hover')) {\n showActionSet.delete('hover');\n showActionSet.add('click');\n }\n if (hideActionSet.has('hover')) {\n hideActionSet.delete('hover');\n hideActionSet.add('click');\n }\n }\n return [showActionSet, hideActionSet];\n }, [mobile, action, showAction, hideAction]);\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nfunction isPointsEq() {\n var a1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var a2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var isAlignPoint = arguments.length > 2 ? arguments[2] : undefined;\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\nexport function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n var placements = Object.keys(builtinPlacements);\n for (var i = 0; i < placements.length; i += 1) {\n var _builtinPlacements$pl;\n var placement = placements[i];\n if (isPointsEq((_builtinPlacements$pl = builtinPlacements[placement]) === null || _builtinPlacements$pl === void 0 ? void 0 : _builtinPlacements$pl.points, points, isAlignPoint)) {\n return \"\".concat(prefixCls, \"-placement-\").concat(placement);\n }\n }\n return '';\n}\n\n/** @deprecated We should not use this if we can refactor all deps */\nexport function getMotion(prefixCls, motion, animation, transitionName) {\n if (motion) {\n return motion;\n }\n if (animation) {\n return {\n motionName: \"\".concat(prefixCls, \"-\").concat(animation)\n };\n }\n if (transitionName) {\n return {\n motionName: transitionName\n };\n }\n return null;\n}\nexport function getWin(ele) {\n return ele.ownerDocument.defaultView;\n}\n\n/**\n * Get all the scrollable parent elements of the element\n * @param ele The element to be detected\n * @param areaOnly Only return the parent which will cut visible area\n */\nexport function collectScroller(ele) {\n var scrollerList = [];\n var current = ele === null || ele === void 0 ? void 0 : ele.parentElement;\n var scrollStyle = ['hidden', 'scroll', 'clip', 'auto'];\n while (current) {\n var _getWin$getComputedSt = getWin(current).getComputedStyle(current),\n overflowX = _getWin$getComputedSt.overflowX,\n overflowY = _getWin$getComputedSt.overflowY,\n overflow = _getWin$getComputedSt.overflow;\n if ([overflowX, overflowY, overflow].some(function (o) {\n return scrollStyle.includes(o);\n })) {\n scrollerList.push(current);\n }\n current = current.parentElement;\n }\n return scrollerList;\n}\nexport function toNum(num) {\n var defaultValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;\n return Number.isNaN(num) ? defaultValue : num;\n}\nfunction getPxValue(val) {\n return toNum(parseFloat(val), 0);\n}\n/**\n *\n *\n * **************************************\n * * Border *\n * * ************************** *\n * * * * * *\n * * B * * S * B *\n * * o * * c * o *\n * * r * Content * r * r *\n * * d * * o * d *\n * * e * * l * e *\n * * r ******************** l * r *\n * * * Scroll * *\n * * ************************** *\n * * Border *\n * **************************************\n *\n */\n/**\n * Get visible area of element\n */\nexport function getVisibleArea(initArea, scrollerList) {\n var visibleArea = _objectSpread({}, initArea);\n (scrollerList || []).forEach(function (ele) {\n if (ele instanceof HTMLBodyElement || ele instanceof HTMLHtmlElement) {\n return;\n }\n\n // Skip if static position which will not affect visible area\n var _getWin$getComputedSt2 = getWin(ele).getComputedStyle(ele),\n overflow = _getWin$getComputedSt2.overflow,\n overflowClipMargin = _getWin$getComputedSt2.overflowClipMargin,\n borderTopWidth = _getWin$getComputedSt2.borderTopWidth,\n borderBottomWidth = _getWin$getComputedSt2.borderBottomWidth,\n borderLeftWidth = _getWin$getComputedSt2.borderLeftWidth,\n borderRightWidth = _getWin$getComputedSt2.borderRightWidth;\n var eleRect = ele.getBoundingClientRect();\n var eleOutHeight = ele.offsetHeight,\n eleInnerHeight = ele.clientHeight,\n eleOutWidth = ele.offsetWidth,\n eleInnerWidth = ele.clientWidth;\n var borderTopNum = getPxValue(borderTopWidth);\n var borderBottomNum = getPxValue(borderBottomWidth);\n var borderLeftNum = getPxValue(borderLeftWidth);\n var borderRightNum = getPxValue(borderRightWidth);\n var scaleX = toNum(Math.round(eleRect.width / eleOutWidth * 1000) / 1000);\n var scaleY = toNum(Math.round(eleRect.height / eleOutHeight * 1000) / 1000);\n\n // Original visible area\n var eleScrollWidth = (eleOutWidth - eleInnerWidth - borderLeftNum - borderRightNum) * scaleX;\n var eleScrollHeight = (eleOutHeight - eleInnerHeight - borderTopNum - borderBottomNum) * scaleY;\n\n // Cut border size\n var scaledBorderTopWidth = borderTopNum * scaleY;\n var scaledBorderBottomWidth = borderBottomNum * scaleY;\n var scaledBorderLeftWidth = borderLeftNum * scaleX;\n var scaledBorderRightWidth = borderRightNum * scaleX;\n\n // Clip margin\n var clipMarginWidth = 0;\n var clipMarginHeight = 0;\n if (overflow === 'clip') {\n var clipNum = getPxValue(overflowClipMargin);\n clipMarginWidth = clipNum * scaleX;\n clipMarginHeight = clipNum * scaleY;\n }\n\n // Region\n var eleLeft = eleRect.x + scaledBorderLeftWidth - clipMarginWidth;\n var eleTop = eleRect.y + scaledBorderTopWidth - clipMarginHeight;\n var eleRight = eleLeft + eleRect.width + 2 * clipMarginWidth - scaledBorderLeftWidth - scaledBorderRightWidth - eleScrollWidth;\n var eleBottom = eleTop + eleRect.height + 2 * clipMarginHeight - scaledBorderTopWidth - scaledBorderBottomWidth - eleScrollHeight;\n visibleArea.left = Math.max(visibleArea.left, eleLeft);\n visibleArea.top = Math.max(visibleArea.top, eleTop);\n visibleArea.right = Math.min(visibleArea.right, eleRight);\n visibleArea.bottom = Math.min(visibleArea.bottom, eleBottom);\n });\n return visibleArea;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport isVisible from \"rc-util/es/Dom/isVisible\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport * as React from 'react';\nimport { collectScroller, getVisibleArea, getWin, toNum } from \"../util\";\nfunction getUnitOffset(size) {\n var offset = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var offsetStr = \"\".concat(offset);\n var cells = offsetStr.match(/^(.*)\\%$/);\n if (cells) {\n return size * (parseFloat(cells[1]) / 100);\n }\n return parseFloat(offsetStr);\n}\nfunction getNumberOffset(rect, offset) {\n var _ref = offset || [],\n _ref2 = _slicedToArray(_ref, 2),\n offsetX = _ref2[0],\n offsetY = _ref2[1];\n return [getUnitOffset(rect.width, offsetX), getUnitOffset(rect.height, offsetY)];\n}\nfunction splitPoints() {\n var points = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return [points[0], points[1]];\n}\nfunction getAlignPoint(rect, points) {\n var topBottom = points[0];\n var leftRight = points[1];\n var x;\n var y;\n\n // Top & Bottom\n if (topBottom === 't') {\n y = rect.y;\n } else if (topBottom === 'b') {\n y = rect.y + rect.height;\n } else {\n y = rect.y + rect.height / 2;\n }\n\n // Left & Right\n if (leftRight === 'l') {\n x = rect.x;\n } else if (leftRight === 'r') {\n x = rect.x + rect.width;\n } else {\n x = rect.x + rect.width / 2;\n }\n return {\n x: x,\n y: y\n };\n}\nfunction reversePoints(points, index) {\n var reverseMap = {\n t: 'b',\n b: 't',\n l: 'r',\n r: 'l'\n };\n return points.map(function (point, i) {\n if (i === index) {\n return reverseMap[point] || 'c';\n }\n return point;\n }).join('');\n}\nexport default function useAlign(open, popupEle, target, placement, builtinPlacements, popupAlign, onPopupAlign) {\n var _React$useState = React.useState({\n ready: false,\n offsetX: 0,\n offsetY: 0,\n offsetR: 0,\n offsetB: 0,\n arrowX: 0,\n arrowY: 0,\n scaleX: 1,\n scaleY: 1,\n align: builtinPlacements[placement] || {}\n }),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n offsetInfo = _React$useState2[0],\n setOffsetInfo = _React$useState2[1];\n var alignCountRef = React.useRef(0);\n var scrollerList = React.useMemo(function () {\n if (!popupEle) {\n return [];\n }\n return collectScroller(popupEle);\n }, [popupEle]);\n\n // ========================= Flip ==========================\n // We will memo flip info.\n // If size change to make flip, it will memo the flip info and use it in next align.\n var prevFlipRef = React.useRef({});\n var resetFlipCache = function resetFlipCache() {\n prevFlipRef.current = {};\n };\n if (!open) {\n resetFlipCache();\n }\n\n // ========================= Align =========================\n var onAlign = useEvent(function () {\n if (popupEle && target && open) {\n var _popupElement$parentE, _popupElement$parentE2;\n var popupElement = popupEle;\n var doc = popupElement.ownerDocument;\n var win = getWin(popupElement);\n var _win$getComputedStyle = win.getComputedStyle(popupElement),\n width = _win$getComputedStyle.width,\n height = _win$getComputedStyle.height,\n popupPosition = _win$getComputedStyle.position;\n var originLeft = popupElement.style.left;\n var originTop = popupElement.style.top;\n var originRight = popupElement.style.right;\n var originBottom = popupElement.style.bottom;\n\n // Placement\n var placementInfo = _objectSpread(_objectSpread({}, builtinPlacements[placement]), popupAlign);\n\n // placeholder element\n var placeholderElement = doc.createElement('div');\n (_popupElement$parentE = popupElement.parentElement) === null || _popupElement$parentE === void 0 ? void 0 : _popupElement$parentE.appendChild(placeholderElement);\n placeholderElement.style.left = \"\".concat(popupElement.offsetLeft, \"px\");\n placeholderElement.style.top = \"\".concat(popupElement.offsetTop, \"px\");\n placeholderElement.style.position = popupPosition;\n placeholderElement.style.height = \"\".concat(popupElement.offsetHeight, \"px\");\n placeholderElement.style.width = \"\".concat(popupElement.offsetWidth, \"px\");\n\n // Reset first\n popupElement.style.left = '0';\n popupElement.style.top = '0';\n popupElement.style.right = 'auto';\n popupElement.style.bottom = 'auto';\n\n // Calculate align style, we should consider `transform` case\n var targetRect;\n if (Array.isArray(target)) {\n targetRect = {\n x: target[0],\n y: target[1],\n width: 0,\n height: 0\n };\n } else {\n var rect = target.getBoundingClientRect();\n targetRect = {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n };\n }\n var popupRect = popupElement.getBoundingClientRect();\n var _doc$documentElement = doc.documentElement,\n clientWidth = _doc$documentElement.clientWidth,\n clientHeight = _doc$documentElement.clientHeight,\n scrollWidth = _doc$documentElement.scrollWidth,\n scrollHeight = _doc$documentElement.scrollHeight,\n scrollTop = _doc$documentElement.scrollTop,\n scrollLeft = _doc$documentElement.scrollLeft;\n var popupHeight = popupRect.height;\n var popupWidth = popupRect.width;\n var targetHeight = targetRect.height;\n var targetWidth = targetRect.width;\n\n // Get bounding of visible area\n var visibleRegion = {\n left: 0,\n top: 0,\n right: clientWidth,\n bottom: clientHeight\n };\n var scrollRegion = {\n left: -scrollLeft,\n top: -scrollTop,\n right: scrollWidth - scrollLeft,\n bottom: scrollHeight - scrollTop\n };\n var htmlRegion = placementInfo.htmlRegion;\n var VISIBLE = 'visible';\n var VISIBLE_FIRST = 'visibleFirst';\n if (htmlRegion !== 'scroll' && htmlRegion !== VISIBLE_FIRST) {\n htmlRegion = VISIBLE;\n }\n var isVisibleFirst = htmlRegion === VISIBLE_FIRST;\n var scrollRegionArea = getVisibleArea(scrollRegion, scrollerList);\n var visibleRegionArea = getVisibleArea(visibleRegion, scrollerList);\n var visibleArea = htmlRegion === VISIBLE ? visibleRegionArea : scrollRegionArea;\n\n // When set to `visibleFirst`,\n // the check `adjust` logic will use `visibleRegion` for check first.\n var adjustCheckVisibleArea = isVisibleFirst ? visibleRegionArea : visibleArea;\n\n // Record right & bottom align data\n popupElement.style.left = 'auto';\n popupElement.style.top = 'auto';\n popupElement.style.right = '0';\n popupElement.style.bottom = '0';\n var popupMirrorRect = popupElement.getBoundingClientRect();\n\n // Reset back\n popupElement.style.left = originLeft;\n popupElement.style.top = originTop;\n popupElement.style.right = originRight;\n popupElement.style.bottom = originBottom;\n (_popupElement$parentE2 = popupElement.parentElement) === null || _popupElement$parentE2 === void 0 ? void 0 : _popupElement$parentE2.removeChild(placeholderElement);\n\n // Calculate scale\n var _scaleX = toNum(Math.round(popupWidth / parseFloat(width) * 1000) / 1000);\n var _scaleY = toNum(Math.round(popupHeight / parseFloat(height) * 1000) / 1000);\n\n // No need to align since it's not visible in view\n if (_scaleX === 0 || _scaleY === 0 || isDOM(target) && !isVisible(target)) {\n return;\n }\n\n // Offset\n var offset = placementInfo.offset,\n targetOffset = placementInfo.targetOffset;\n var _getNumberOffset = getNumberOffset(popupRect, offset),\n _getNumberOffset2 = _slicedToArray(_getNumberOffset, 2),\n popupOffsetX = _getNumberOffset2[0],\n popupOffsetY = _getNumberOffset2[1];\n var _getNumberOffset3 = getNumberOffset(targetRect, targetOffset),\n _getNumberOffset4 = _slicedToArray(_getNumberOffset3, 2),\n targetOffsetX = _getNumberOffset4[0],\n targetOffsetY = _getNumberOffset4[1];\n targetRect.x -= targetOffsetX;\n targetRect.y -= targetOffsetY;\n\n // Points\n var _ref3 = placementInfo.points || [],\n _ref4 = _slicedToArray(_ref3, 2),\n popupPoint = _ref4[0],\n targetPoint = _ref4[1];\n var targetPoints = splitPoints(targetPoint);\n var popupPoints = splitPoints(popupPoint);\n var targetAlignPoint = getAlignPoint(targetRect, targetPoints);\n var popupAlignPoint = getAlignPoint(popupRect, popupPoints);\n\n // Real align info may not same as origin one\n var nextAlignInfo = _objectSpread({}, placementInfo);\n\n // Next Offset\n var nextOffsetX = targetAlignPoint.x - popupAlignPoint.x + popupOffsetX;\n var nextOffsetY = targetAlignPoint.y - popupAlignPoint.y + popupOffsetY;\n\n // ============== Intersection ===============\n // Get area by position. Used for check if flip area is better\n function getIntersectionVisibleArea(offsetX, offsetY) {\n var area = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : visibleArea;\n var l = popupRect.x + offsetX;\n var t = popupRect.y + offsetY;\n var r = l + popupWidth;\n var b = t + popupHeight;\n var visibleL = Math.max(l, area.left);\n var visibleT = Math.max(t, area.top);\n var visibleR = Math.min(r, area.right);\n var visibleB = Math.min(b, area.bottom);\n return Math.max(0, (visibleR - visibleL) * (visibleB - visibleT));\n }\n var originIntersectionVisibleArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY);\n\n // As `visibleFirst`, we prepare this for check\n var originIntersectionRecommendArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY, visibleRegionArea);\n\n // ========================== Overflow ===========================\n var targetAlignPointTL = getAlignPoint(targetRect, ['t', 'l']);\n var popupAlignPointTL = getAlignPoint(popupRect, ['t', 'l']);\n var targetAlignPointBR = getAlignPoint(targetRect, ['b', 'r']);\n var popupAlignPointBR = getAlignPoint(popupRect, ['b', 'r']);\n var overflow = placementInfo.overflow || {};\n var adjustX = overflow.adjustX,\n adjustY = overflow.adjustY,\n shiftX = overflow.shiftX,\n shiftY = overflow.shiftY;\n var supportAdjust = function supportAdjust(val) {\n if (typeof val === 'boolean') {\n return val;\n }\n return val >= 0;\n };\n\n // Prepare position\n var nextPopupY;\n var nextPopupBottom;\n var nextPopupX;\n var nextPopupRight;\n function syncNextPopupPosition() {\n nextPopupY = popupRect.y + nextOffsetY;\n nextPopupBottom = nextPopupY + popupHeight;\n nextPopupX = popupRect.x + nextOffsetX;\n nextPopupRight = nextPopupX + popupWidth;\n }\n syncNextPopupPosition();\n\n // >>>>>>>>>> Top & Bottom\n var needAdjustY = supportAdjust(adjustY);\n var sameTB = popupPoints[0] === targetPoints[0];\n\n // Bottom to Top\n if (needAdjustY && popupPoints[0] === 't' && (nextPopupBottom > adjustCheckVisibleArea.bottom || prevFlipRef.current.bt)) {\n var tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n tmpNextOffsetY -= popupHeight - targetHeight;\n } else {\n tmpNextOffsetY = targetAlignPointTL.y - popupAlignPointBR.y - popupOffsetY;\n }\n var newVisibleArea = getIntersectionVisibleArea(nextOffsetX, tmpNextOffsetY);\n var newVisibleRecommendArea = getIntersectionVisibleArea(nextOffsetX, tmpNextOffsetY, visibleRegionArea);\n if (\n // Of course use larger one\n newVisibleArea > originIntersectionVisibleArea || newVisibleArea === originIntersectionVisibleArea && (!isVisibleFirst ||\n // Choose recommend one\n newVisibleRecommendArea >= originIntersectionRecommendArea)) {\n prevFlipRef.current.bt = true;\n nextOffsetY = tmpNextOffsetY;\n popupOffsetY = -popupOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n } else {\n prevFlipRef.current.bt = false;\n }\n }\n\n // Top to Bottom\n if (needAdjustY && popupPoints[0] === 'b' && (nextPopupY < adjustCheckVisibleArea.top || prevFlipRef.current.tb)) {\n var _tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n _tmpNextOffsetY += popupHeight - targetHeight;\n } else {\n _tmpNextOffsetY = targetAlignPointBR.y - popupAlignPointTL.y - popupOffsetY;\n }\n var _newVisibleArea = getIntersectionVisibleArea(nextOffsetX, _tmpNextOffsetY);\n var _newVisibleRecommendArea = getIntersectionVisibleArea(nextOffsetX, _tmpNextOffsetY, visibleRegionArea);\n if (\n // Of course use larger one\n _newVisibleArea > originIntersectionVisibleArea || _newVisibleArea === originIntersectionVisibleArea && (!isVisibleFirst ||\n // Choose recommend one\n _newVisibleRecommendArea >= originIntersectionRecommendArea)) {\n prevFlipRef.current.tb = true;\n nextOffsetY = _tmpNextOffsetY;\n popupOffsetY = -popupOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n } else {\n prevFlipRef.current.tb = false;\n }\n }\n\n // >>>>>>>>>> Left & Right\n var needAdjustX = supportAdjust(adjustX);\n\n // >>>>> Flip\n var sameLR = popupPoints[1] === targetPoints[1];\n\n // Right to Left\n if (needAdjustX && popupPoints[1] === 'l' && (nextPopupRight > adjustCheckVisibleArea.right || prevFlipRef.current.rl)) {\n var tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n tmpNextOffsetX -= popupWidth - targetWidth;\n } else {\n tmpNextOffsetX = targetAlignPointTL.x - popupAlignPointBR.x - popupOffsetX;\n }\n var _newVisibleArea2 = getIntersectionVisibleArea(tmpNextOffsetX, nextOffsetY);\n var _newVisibleRecommendArea2 = getIntersectionVisibleArea(tmpNextOffsetX, nextOffsetY, visibleRegionArea);\n if (\n // Of course use larger one\n _newVisibleArea2 > originIntersectionVisibleArea || _newVisibleArea2 === originIntersectionVisibleArea && (!isVisibleFirst ||\n // Choose recommend one\n _newVisibleRecommendArea2 >= originIntersectionRecommendArea)) {\n prevFlipRef.current.rl = true;\n nextOffsetX = tmpNextOffsetX;\n popupOffsetX = -popupOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n } else {\n prevFlipRef.current.rl = false;\n }\n }\n\n // Left to Right\n if (needAdjustX && popupPoints[1] === 'r' && (nextPopupX < adjustCheckVisibleArea.left || prevFlipRef.current.lr)) {\n var _tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n _tmpNextOffsetX += popupWidth - targetWidth;\n } else {\n _tmpNextOffsetX = targetAlignPointBR.x - popupAlignPointTL.x - popupOffsetX;\n }\n var _newVisibleArea3 = getIntersectionVisibleArea(_tmpNextOffsetX, nextOffsetY);\n var _newVisibleRecommendArea3 = getIntersectionVisibleArea(_tmpNextOffsetX, nextOffsetY, visibleRegionArea);\n if (\n // Of course use larger one\n _newVisibleArea3 > originIntersectionVisibleArea || _newVisibleArea3 === originIntersectionVisibleArea && (!isVisibleFirst ||\n // Choose recommend one\n _newVisibleRecommendArea3 >= originIntersectionRecommendArea)) {\n prevFlipRef.current.lr = true;\n nextOffsetX = _tmpNextOffsetX;\n popupOffsetX = -popupOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n } else {\n prevFlipRef.current.lr = false;\n }\n }\n\n // ============================ Shift ============================\n syncNextPopupPosition();\n var numShiftX = shiftX === true ? 0 : shiftX;\n if (typeof numShiftX === 'number') {\n // Left\n if (nextPopupX < visibleRegionArea.left) {\n nextOffsetX -= nextPopupX - visibleRegionArea.left - popupOffsetX;\n if (targetRect.x + targetWidth < visibleRegionArea.left + numShiftX) {\n nextOffsetX += targetRect.x - visibleRegionArea.left + targetWidth - numShiftX;\n }\n }\n\n // Right\n if (nextPopupRight > visibleRegionArea.right) {\n nextOffsetX -= nextPopupRight - visibleRegionArea.right - popupOffsetX;\n if (targetRect.x > visibleRegionArea.right - numShiftX) {\n nextOffsetX += targetRect.x - visibleRegionArea.right + numShiftX;\n }\n }\n }\n var numShiftY = shiftY === true ? 0 : shiftY;\n if (typeof numShiftY === 'number') {\n // Top\n if (nextPopupY < visibleRegionArea.top) {\n nextOffsetY -= nextPopupY - visibleRegionArea.top - popupOffsetY;\n\n // When target if far away from visible area\n // Stop shift\n if (targetRect.y + targetHeight < visibleRegionArea.top + numShiftY) {\n nextOffsetY += targetRect.y - visibleRegionArea.top + targetHeight - numShiftY;\n }\n }\n\n // Bottom\n if (nextPopupBottom > visibleRegionArea.bottom) {\n nextOffsetY -= nextPopupBottom - visibleRegionArea.bottom - popupOffsetY;\n if (targetRect.y > visibleRegionArea.bottom - numShiftY) {\n nextOffsetY += targetRect.y - visibleRegionArea.bottom + numShiftY;\n }\n }\n }\n\n // ============================ Arrow ============================\n // Arrow center align\n var popupLeft = popupRect.x + nextOffsetX;\n var popupRight = popupLeft + popupWidth;\n var popupTop = popupRect.y + nextOffsetY;\n var popupBottom = popupTop + popupHeight;\n var targetLeft = targetRect.x;\n var targetRight = targetLeft + targetWidth;\n var targetTop = targetRect.y;\n var targetBottom = targetTop + targetHeight;\n var maxLeft = Math.max(popupLeft, targetLeft);\n var minRight = Math.min(popupRight, targetRight);\n var xCenter = (maxLeft + minRight) / 2;\n var nextArrowX = xCenter - popupLeft;\n var maxTop = Math.max(popupTop, targetTop);\n var minBottom = Math.min(popupBottom, targetBottom);\n var yCenter = (maxTop + minBottom) / 2;\n var nextArrowY = yCenter - popupTop;\n onPopupAlign === null || onPopupAlign === void 0 ? void 0 : onPopupAlign(popupEle, nextAlignInfo);\n\n // Additional calculate right & bottom position\n var offsetX4Right = popupMirrorRect.right - popupRect.x - (nextOffsetX + popupRect.width);\n var offsetY4Bottom = popupMirrorRect.bottom - popupRect.y - (nextOffsetY + popupRect.height);\n setOffsetInfo({\n ready: true,\n offsetX: nextOffsetX / _scaleX,\n offsetY: nextOffsetY / _scaleY,\n offsetR: offsetX4Right / _scaleX,\n offsetB: offsetY4Bottom / _scaleY,\n arrowX: nextArrowX / _scaleX,\n arrowY: nextArrowY / _scaleY,\n scaleX: _scaleX,\n scaleY: _scaleY,\n align: nextAlignInfo\n });\n }\n });\n var triggerAlign = function triggerAlign() {\n alignCountRef.current += 1;\n var id = alignCountRef.current;\n\n // Merge all align requirement into one frame\n Promise.resolve().then(function () {\n if (alignCountRef.current === id) {\n onAlign();\n }\n });\n };\n\n // Reset ready status when placement & open changed\n var resetReady = function resetReady() {\n setOffsetInfo(function (ori) {\n return _objectSpread(_objectSpread({}, ori), {}, {\n ready: false\n });\n });\n };\n useLayoutEffect(resetReady, [placement]);\n useLayoutEffect(function () {\n if (!open) {\n resetReady();\n }\n }, [open]);\n return [offsetInfo.ready, offsetInfo.offsetX, offsetInfo.offsetY, offsetInfo.offsetR, offsetInfo.offsetB, offsetInfo.arrowX, offsetInfo.arrowY, offsetInfo.scaleX, offsetInfo.scaleY, offsetInfo.align, triggerAlign];\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport { collectScroller, getWin } from \"../util\";\nexport default function useWatch(open, target, popup, onAlign, onScroll) {\n useLayoutEffect(function () {\n if (open && target && popup) {\n var targetElement = target;\n var popupElement = popup;\n var targetScrollList = collectScroller(targetElement);\n var popupScrollList = collectScroller(popupElement);\n var win = getWin(popupElement);\n var mergedList = new Set([win].concat(_toConsumableArray(targetScrollList), _toConsumableArray(popupScrollList)));\n function notifyScroll() {\n onAlign();\n onScroll();\n }\n mergedList.forEach(function (scroller) {\n scroller.addEventListener('scroll', notifyScroll, {\n passive: true\n });\n });\n win.addEventListener('resize', notifyScroll, {\n passive: true\n });\n\n // First time always do align\n onAlign();\n return function () {\n mergedList.forEach(function (scroller) {\n scroller.removeEventListener('scroll', notifyScroll);\n win.removeEventListener('resize', notifyScroll);\n });\n };\n }\n }, [open, target, popup]);\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { warning } from 'rc-util';\nimport { getShadowRoot } from \"rc-util/es/Dom/shadow\";\nimport raf from \"rc-util/es/raf\";\nimport * as React from 'react';\nimport { getWin } from \"../util\";\nexport default function useWinClick(open, clickToHide, targetEle, popupEle, mask, maskClosable, inPopupOrChild, triggerOpen) {\n var openRef = React.useRef(open);\n\n // Window click to hide should be lock to avoid trigger lock immediately\n var lockRef = React.useRef(false);\n if (openRef.current !== open) {\n lockRef.current = true;\n openRef.current = open;\n }\n React.useEffect(function () {\n var id = raf(function () {\n lockRef.current = false;\n });\n return function () {\n raf.cancel(id);\n };\n }, [open]);\n\n // Click to hide is special action since click popup element should not hide\n React.useEffect(function () {\n if (clickToHide && popupEle && (!mask || maskClosable)) {\n var genClickEvents = function genClickEvents() {\n var clickInside = false;\n\n // User may mouseDown inside and drag out of popup and mouse up\n // Record here to prevent close\n var onWindowMouseDown = function onWindowMouseDown(_ref) {\n var target = _ref.target;\n clickInside = inPopupOrChild(target);\n };\n var onWindowClick = function onWindowClick(_ref2) {\n var target = _ref2.target;\n if (!lockRef.current && openRef.current && !clickInside && !inPopupOrChild(target)) {\n triggerOpen(false);\n }\n };\n return [onWindowMouseDown, onWindowClick];\n };\n\n // Events\n var _genClickEvents = genClickEvents(),\n _genClickEvents2 = _slicedToArray(_genClickEvents, 2),\n onWinMouseDown = _genClickEvents2[0],\n onWinClick = _genClickEvents2[1];\n var _genClickEvents3 = genClickEvents(),\n _genClickEvents4 = _slicedToArray(_genClickEvents3, 2),\n onShadowMouseDown = _genClickEvents4[0],\n onShadowClick = _genClickEvents4[1];\n var win = getWin(popupEle);\n win.addEventListener('mousedown', onWinMouseDown, true);\n win.addEventListener('click', onWinClick, true);\n win.addEventListener('contextmenu', onWinClick, true);\n\n // shadow root\n var targetShadowRoot = getShadowRoot(targetEle);\n if (targetShadowRoot) {\n targetShadowRoot.addEventListener('mousedown', onShadowMouseDown, true);\n targetShadowRoot.addEventListener('click', onShadowClick, true);\n targetShadowRoot.addEventListener('contextmenu', onShadowClick, true);\n }\n\n // Warning if target and popup not in same root\n if (process.env.NODE_ENV !== 'production') {\n var _targetEle$getRootNod, _popupEle$getRootNode;\n var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : (_targetEle$getRootNod = targetEle.getRootNode) === null || _targetEle$getRootNod === void 0 ? void 0 : _targetEle$getRootNod.call(targetEle);\n var popupRoot = (_popupEle$getRootNode = popupEle.getRootNode) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.call(popupEle);\n warning(targetRoot === popupRoot, \"trigger element and popup element should in same shadow root.\");\n }\n return function () {\n win.removeEventListener('mousedown', onWinMouseDown, true);\n win.removeEventListener('click', onWinClick, true);\n win.removeEventListener('contextmenu', onWinClick, true);\n if (targetShadowRoot) {\n targetShadowRoot.removeEventListener('mousedown', onShadowMouseDown, true);\n targetShadowRoot.removeEventListener('click', onShadowClick, true);\n targetShadowRoot.removeEventListener('contextmenu', onShadowClick, true);\n }\n };\n }\n }, [clickToHide, targetEle, popupEle, mask, maskClosable]);\n}","import classNames from 'classnames';\nimport * as React from 'react';\nexport default function Arrow(props) {\n var prefixCls = props.prefixCls,\n align = props.align,\n arrow = props.arrow,\n arrowPos = props.arrowPos;\n var _ref = arrow || {},\n className = _ref.className,\n content = _ref.content;\n var _arrowPos$x = arrowPos.x,\n x = _arrowPos$x === void 0 ? 0 : _arrowPos$x,\n _arrowPos$y = arrowPos.y,\n y = _arrowPos$y === void 0 ? 0 : _arrowPos$y;\n var arrowRef = React.useRef();\n\n // Skip if no align\n if (!align || !align.points) {\n return null;\n }\n var alignStyle = {\n position: 'absolute'\n };\n\n // Skip if no need to align\n if (align.autoArrow !== false) {\n var popupPoints = align.points[0];\n var targetPoints = align.points[1];\n var popupTB = popupPoints[0];\n var popupLR = popupPoints[1];\n var targetTB = targetPoints[0];\n var targetLR = targetPoints[1];\n\n // Top & Bottom\n if (popupTB === targetTB || !['t', 'b'].includes(popupTB)) {\n alignStyle.top = y;\n } else if (popupTB === 't') {\n alignStyle.top = 0;\n } else {\n alignStyle.bottom = 0;\n }\n\n // Left & Right\n if (popupLR === targetLR || !['l', 'r'].includes(popupLR)) {\n alignStyle.left = x;\n } else if (popupLR === 'l') {\n alignStyle.left = 0;\n } else {\n alignStyle.right = 0;\n }\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: arrowRef,\n className: classNames(\"\".concat(prefixCls, \"-arrow\"), className),\n style: alignStyle\n }, content);\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport * as React from 'react';\nexport default function Mask(props) {\n var prefixCls = props.prefixCls,\n open = props.open,\n zIndex = props.zIndex,\n mask = props.mask,\n motion = props.motion;\n if (!mask) {\n return null;\n }\n return /*#__PURE__*/React.createElement(CSSMotion, _extends({}, motion, {\n motionAppear: true,\n visible: open,\n removeOnLeave: true\n }), function (_ref) {\n var className = _ref.className;\n return /*#__PURE__*/React.createElement(\"div\", {\n style: {\n zIndex: zIndex\n },\n className: classNames(\"\".concat(prefixCls, \"-mask\"), className)\n });\n });\n}","import * as React from 'react';\nvar PopupContent = /*#__PURE__*/React.memo(function (_ref) {\n var children = _ref.children;\n return children;\n}, function (_, next) {\n return next.cache;\n});\nif (process.env.NODE_ENV !== 'production') {\n PopupContent.displayName = 'PopupContent';\n}\nexport default PopupContent;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport ResizeObserver from 'rc-resize-observer';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport Arrow from \"./Arrow\";\nimport Mask from \"./Mask\";\nimport PopupContent from \"./PopupContent\";\nvar Popup = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var popup = props.popup,\n className = props.className,\n prefixCls = props.prefixCls,\n style = props.style,\n target = props.target,\n _onVisibleChanged = props.onVisibleChanged,\n open = props.open,\n keepDom = props.keepDom,\n onClick = props.onClick,\n mask = props.mask,\n arrow = props.arrow,\n arrowPos = props.arrowPos,\n align = props.align,\n motion = props.motion,\n maskMotion = props.maskMotion,\n forceRender = props.forceRender,\n getPopupContainer = props.getPopupContainer,\n autoDestroy = props.autoDestroy,\n Portal = props.portal,\n zIndex = props.zIndex,\n onMouseEnter = props.onMouseEnter,\n onMouseLeave = props.onMouseLeave,\n onPointerEnter = props.onPointerEnter,\n ready = props.ready,\n offsetX = props.offsetX,\n offsetY = props.offsetY,\n offsetR = props.offsetR,\n offsetB = props.offsetB,\n onAlign = props.onAlign,\n onPrepare = props.onPrepare,\n stretch = props.stretch,\n targetWidth = props.targetWidth,\n targetHeight = props.targetHeight;\n var childNode = typeof popup === 'function' ? popup() : popup;\n\n // We can not remove holder only when motion finished.\n var isNodeVisible = open || keepDom;\n\n // ======================= Container ========================\n var getPopupContainerNeedParams = (getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer.length) > 0;\n var _React$useState = React.useState(!getPopupContainer || !getPopupContainerNeedParams),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n show = _React$useState2[0],\n setShow = _React$useState2[1];\n\n // Delay to show since `getPopupContainer` need target element\n useLayoutEffect(function () {\n if (!show && getPopupContainerNeedParams && target) {\n setShow(true);\n }\n }, [show, getPopupContainerNeedParams, target]);\n\n // ========================= Render =========================\n if (!show) {\n return null;\n }\n\n // >>>>> Offset\n var AUTO = 'auto';\n var offsetStyle = {\n left: '-1000vw',\n top: '-1000vh',\n right: AUTO,\n bottom: AUTO\n };\n\n // Set align style\n if (ready || !open) {\n var points = align.points,\n _experimental = align._experimental;\n var dynamicInset = _experimental === null || _experimental === void 0 ? void 0 : _experimental.dynamicInset;\n var alignRight = dynamicInset && points[0][1] === 'r';\n var alignBottom = dynamicInset && points[0][0] === 'b';\n if (alignRight) {\n offsetStyle.right = offsetR;\n offsetStyle.left = AUTO;\n } else {\n offsetStyle.left = offsetX;\n offsetStyle.right = AUTO;\n }\n if (alignBottom) {\n offsetStyle.bottom = offsetB;\n offsetStyle.top = AUTO;\n } else {\n offsetStyle.top = offsetY;\n offsetStyle.bottom = AUTO;\n }\n }\n\n // >>>>> Misc\n var miscStyle = {};\n if (stretch) {\n if (stretch.includes('height') && targetHeight) {\n miscStyle.height = targetHeight;\n } else if (stretch.includes('minHeight') && targetHeight) {\n miscStyle.minHeight = targetHeight;\n }\n if (stretch.includes('width') && targetWidth) {\n miscStyle.width = targetWidth;\n } else if (stretch.includes('minWidth') && targetWidth) {\n miscStyle.minWidth = targetWidth;\n }\n }\n if (!open) {\n miscStyle.pointerEvents = 'none';\n }\n return /*#__PURE__*/React.createElement(Portal, {\n open: forceRender || isNodeVisible,\n getContainer: getPopupContainer && function () {\n return getPopupContainer(target);\n },\n autoDestroy: autoDestroy\n }, /*#__PURE__*/React.createElement(Mask, {\n prefixCls: prefixCls,\n open: open,\n zIndex: zIndex,\n mask: mask,\n motion: maskMotion\n }), /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onAlign,\n disabled: !open\n }, function (resizeObserverRef) {\n return /*#__PURE__*/React.createElement(CSSMotion, _extends({\n motionAppear: true,\n motionEnter: true,\n motionLeave: true,\n removeOnLeave: false,\n forceRender: forceRender,\n leavedClassName: \"\".concat(prefixCls, \"-hidden\")\n }, motion, {\n onAppearPrepare: onPrepare,\n onEnterPrepare: onPrepare,\n visible: open,\n onVisibleChanged: function onVisibleChanged(nextVisible) {\n var _motion$onVisibleChan;\n motion === null || motion === void 0 ? void 0 : (_motion$onVisibleChan = motion.onVisibleChanged) === null || _motion$onVisibleChan === void 0 ? void 0 : _motion$onVisibleChan.call(motion, nextVisible);\n _onVisibleChanged(nextVisible);\n }\n }), function (_ref, motionRef) {\n var motionClassName = _ref.className,\n motionStyle = _ref.style;\n var cls = classNames(prefixCls, motionClassName, className);\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: composeRef(resizeObserverRef, ref, motionRef),\n className: cls,\n style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({\n '--arrow-x': \"\".concat(arrowPos.x || 0, \"px\"),\n '--arrow-y': \"\".concat(arrowPos.y || 0, \"px\")\n }, offsetStyle), miscStyle), motionStyle), {}, {\n boxSizing: 'border-box',\n zIndex: zIndex\n }, style),\n onMouseEnter: onMouseEnter,\n onMouseLeave: onMouseLeave,\n onPointerEnter: onPointerEnter,\n onClick: onClick\n }, arrow && /*#__PURE__*/React.createElement(Arrow, {\n prefixCls: prefixCls,\n arrow: arrow,\n arrowPos: arrowPos,\n align: align\n }), /*#__PURE__*/React.createElement(PopupContent, {\n cache: !open\n }, childNode));\n });\n }));\n});\nif (process.env.NODE_ENV !== 'production') {\n Popup.displayName = 'Popup';\n}\nexport default Popup;","import { fillRef, supportRef, useComposeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nvar TriggerWrapper = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n getTriggerDOMNode = props.getTriggerDOMNode;\n var canUseRef = supportRef(children);\n\n // When use `getTriggerDOMNode`, we should do additional work to get the real dom\n var setRef = React.useCallback(function (node) {\n fillRef(ref, getTriggerDOMNode ? getTriggerDOMNode(node) : node);\n }, [getTriggerDOMNode]);\n var mergedRef = useComposeRef(setRef, children.ref);\n return canUseRef ? /*#__PURE__*/React.cloneElement(children, {\n ref: mergedRef\n }) : children;\n});\nif (process.env.NODE_ENV !== 'production') {\n TriggerWrapper.displayName = 'TriggerWrapper';\n}\nexport default TriggerWrapper;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"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\", \"alignPoint\", \"onPopupClick\", \"onPopupAlign\", \"arrow\", \"popupMotion\", \"maskMotion\", \"popupTransitionName\", \"popupAnimation\", \"maskTransitionName\", \"maskAnimation\", \"className\", \"getTriggerDOMNode\"];\nimport Portal from '@rc-component/portal';\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport { getShadowRoot } from \"rc-util/es/Dom/shadow\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useId from \"rc-util/es/hooks/useId\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport isMobile from \"rc-util/es/isMobile\";\nimport * as React from 'react';\nimport { flushSync } from 'react-dom';\nimport TriggerContext from \"./context\";\nimport useAction from \"./hooks/useAction\";\nimport useAlign from \"./hooks/useAlign\";\nimport useWatch from \"./hooks/useWatch\";\nimport useWinClick from \"./hooks/useWinClick\";\nimport Popup from \"./Popup\";\nimport TriggerWrapper from \"./TriggerWrapper\";\nimport { getAlignPopupClassName, getMotion } from \"./util\";\n\n// Removed Props List\n// Seems this can be auto\n// getDocument?: (element?: HTMLElement) => Document;\n// New version will not wrap popup with `rc-trigger-popup-content` when multiple children\nexport function generateTrigger() {\n var PortalComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Portal;\n var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-trigger-popup' : _props$prefixCls,\n children = props.children,\n _props$action = props.action,\n action = _props$action === void 0 ? 'hover' : _props$action,\n showAction = props.showAction,\n hideAction = props.hideAction,\n popupVisible = props.popupVisible,\n defaultPopupVisible = props.defaultPopupVisible,\n onPopupVisibleChange = props.onPopupVisibleChange,\n afterPopupVisibleChange = props.afterPopupVisibleChange,\n mouseEnterDelay = props.mouseEnterDelay,\n _props$mouseLeaveDela = props.mouseLeaveDelay,\n mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,\n focusDelay = props.focusDelay,\n blurDelay = props.blurDelay,\n mask = props.mask,\n _props$maskClosable = props.maskClosable,\n maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,\n getPopupContainer = props.getPopupContainer,\n forceRender = props.forceRender,\n autoDestroy = props.autoDestroy,\n destroyPopupOnHide = props.destroyPopupOnHide,\n popup = props.popup,\n popupClassName = props.popupClassName,\n popupStyle = props.popupStyle,\n popupPlacement = props.popupPlacement,\n _props$builtinPlaceme = props.builtinPlacements,\n builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme,\n popupAlign = props.popupAlign,\n zIndex = props.zIndex,\n stretch = props.stretch,\n getPopupClassNameFromAlign = props.getPopupClassNameFromAlign,\n alignPoint = props.alignPoint,\n onPopupClick = props.onPopupClick,\n onPopupAlign = props.onPopupAlign,\n arrow = props.arrow,\n popupMotion = props.popupMotion,\n maskMotion = props.maskMotion,\n popupTransitionName = props.popupTransitionName,\n popupAnimation = props.popupAnimation,\n maskTransitionName = props.maskTransitionName,\n maskAnimation = props.maskAnimation,\n className = props.className,\n getTriggerDOMNode = props.getTriggerDOMNode,\n restProps = _objectWithoutProperties(props, _excluded);\n var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;\n\n // =========================== Mobile ===========================\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n mobile = _React$useState2[0],\n setMobile = _React$useState2[1];\n useLayoutEffect(function () {\n setMobile(isMobile());\n }, []);\n\n // ========================== Context ===========================\n var subPopupElements = React.useRef({});\n var parentContext = React.useContext(TriggerContext);\n var context = React.useMemo(function () {\n return {\n registerSubPopup: function registerSubPopup(id, subPopupEle) {\n subPopupElements.current[id] = subPopupEle;\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, subPopupEle);\n }\n };\n }, [parentContext]);\n\n // =========================== Popup ============================\n var id = useId();\n var _React$useState3 = React.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n popupEle = _React$useState4[0],\n setPopupEle = _React$useState4[1];\n var setPopupRef = useEvent(function (node) {\n if (isDOM(node) && popupEle !== node) {\n setPopupEle(node);\n }\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, node);\n });\n\n // =========================== Target ===========================\n // Use state to control here since `useRef` update not trigger render\n var _React$useState5 = React.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n targetEle = _React$useState6[0],\n setTargetEle = _React$useState6[1];\n var setTargetRef = useEvent(function (node) {\n if (isDOM(node) && targetEle !== node) {\n setTargetEle(node);\n }\n });\n\n // ========================== Children ==========================\n var child = React.Children.only(children);\n var originChildProps = (child === null || child === void 0 ? void 0 : child.props) || {};\n var cloneProps = {};\n var inPopupOrChild = useEvent(function (ele) {\n var _getShadowRoot, _getShadowRoot2;\n var childDOM = targetEle;\n return (childDOM === null || childDOM === void 0 ? void 0 : childDOM.contains(ele)) || ((_getShadowRoot = getShadowRoot(childDOM)) === null || _getShadowRoot === void 0 ? void 0 : _getShadowRoot.host) === ele || ele === childDOM || (popupEle === null || popupEle === void 0 ? void 0 : popupEle.contains(ele)) || ((_getShadowRoot2 = getShadowRoot(popupEle)) === null || _getShadowRoot2 === void 0 ? void 0 : _getShadowRoot2.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function (subPopupEle) {\n return (subPopupEle === null || subPopupEle === void 0 ? void 0 : subPopupEle.contains(ele)) || ele === subPopupEle;\n });\n });\n\n // =========================== Motion ===========================\n var mergePopupMotion = getMotion(prefixCls, popupMotion, popupAnimation, popupTransitionName);\n var mergeMaskMotion = getMotion(prefixCls, maskMotion, maskAnimation, maskTransitionName);\n\n // ============================ Open ============================\n var _React$useState7 = React.useState(defaultPopupVisible || false),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n internalOpen = _React$useState8[0],\n setInternalOpen = _React$useState8[1];\n\n // Render still use props as first priority\n var mergedOpen = popupVisible !== null && popupVisible !== void 0 ? popupVisible : internalOpen;\n\n // We use effect sync here in case `popupVisible` back to `undefined`\n var setMergedOpen = useEvent(function (nextOpen) {\n if (popupVisible === undefined) {\n setInternalOpen(nextOpen);\n }\n });\n useLayoutEffect(function () {\n setInternalOpen(popupVisible || false);\n }, [popupVisible]);\n var openRef = React.useRef(mergedOpen);\n openRef.current = mergedOpen;\n var internalTriggerOpen = useEvent(function (nextOpen) {\n // Enter or Pointer will both trigger open state change\n // We only need take one to avoid duplicated change event trigger\n flushSync(function () {\n if (mergedOpen !== nextOpen) {\n setMergedOpen(nextOpen);\n onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(nextOpen);\n }\n });\n });\n\n // Trigger for delay\n var delayRef = React.useRef();\n var clearDelay = function clearDelay() {\n clearTimeout(delayRef.current);\n };\n var triggerOpen = function triggerOpen(nextOpen) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n clearDelay();\n if (delay === 0) {\n internalTriggerOpen(nextOpen);\n } else {\n delayRef.current = setTimeout(function () {\n internalTriggerOpen(nextOpen);\n }, delay * 1000);\n }\n };\n React.useEffect(function () {\n return clearDelay;\n }, []);\n\n // ========================== Motion ============================\n var _React$useState9 = React.useState(false),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n inMotion = _React$useState10[0],\n setInMotion = _React$useState10[1];\n useLayoutEffect(function (firstMount) {\n if (!firstMount || mergedOpen) {\n setInMotion(true);\n }\n }, [mergedOpen]);\n var _React$useState11 = React.useState(null),\n _React$useState12 = _slicedToArray(_React$useState11, 2),\n motionPrepareResolve = _React$useState12[0],\n setMotionPrepareResolve = _React$useState12[1];\n\n // =========================== Align ============================\n var _React$useState13 = React.useState([0, 0]),\n _React$useState14 = _slicedToArray(_React$useState13, 2),\n mousePos = _React$useState14[0],\n setMousePos = _React$useState14[1];\n var setMousePosByEvent = function setMousePosByEvent(event) {\n setMousePos([event.clientX, event.clientY]);\n };\n var _useAlign = useAlign(mergedOpen, popupEle, alignPoint ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign),\n _useAlign2 = _slicedToArray(_useAlign, 11),\n ready = _useAlign2[0],\n offsetX = _useAlign2[1],\n offsetY = _useAlign2[2],\n offsetR = _useAlign2[3],\n offsetB = _useAlign2[4],\n arrowX = _useAlign2[5],\n arrowY = _useAlign2[6],\n scaleX = _useAlign2[7],\n scaleY = _useAlign2[8],\n alignInfo = _useAlign2[9],\n onAlign = _useAlign2[10];\n var _useAction = useAction(mobile, action, showAction, hideAction),\n _useAction2 = _slicedToArray(_useAction, 2),\n showActions = _useAction2[0],\n hideActions = _useAction2[1];\n var clickToShow = showActions.has('click');\n var clickToHide = hideActions.has('click') || hideActions.has('contextMenu');\n var triggerAlign = useEvent(function () {\n if (!inMotion) {\n onAlign();\n }\n });\n var onScroll = function onScroll() {\n if (openRef.current && alignPoint && clickToHide) {\n triggerOpen(false);\n }\n };\n useWatch(mergedOpen, targetEle, popupEle, triggerAlign, onScroll);\n useLayoutEffect(function () {\n triggerAlign();\n }, [mousePos, popupPlacement]);\n\n // When no builtinPlacements and popupAlign changed\n useLayoutEffect(function () {\n if (mergedOpen && !(builtinPlacements !== null && builtinPlacements !== void 0 && builtinPlacements[popupPlacement])) {\n triggerAlign();\n }\n }, [JSON.stringify(popupAlign)]);\n var alignedClassName = React.useMemo(function () {\n var baseClassName = getAlignPopupClassName(builtinPlacements, prefixCls, alignInfo, alignPoint);\n return classNames(baseClassName, getPopupClassNameFromAlign === null || getPopupClassNameFromAlign === void 0 ? void 0 : getPopupClassNameFromAlign(alignInfo));\n }, [alignInfo, getPopupClassNameFromAlign, builtinPlacements, prefixCls, alignPoint]);\n React.useImperativeHandle(ref, function () {\n return {\n forceAlign: triggerAlign\n };\n });\n\n // ========================== Stretch ===========================\n var _React$useState15 = React.useState(0),\n _React$useState16 = _slicedToArray(_React$useState15, 2),\n targetWidth = _React$useState16[0],\n setTargetWidth = _React$useState16[1];\n var _React$useState17 = React.useState(0),\n _React$useState18 = _slicedToArray(_React$useState17, 2),\n targetHeight = _React$useState18[0],\n setTargetHeight = _React$useState18[1];\n var syncTargetSize = function syncTargetSize() {\n if (stretch && targetEle) {\n var rect = targetEle.getBoundingClientRect();\n setTargetWidth(rect.width);\n setTargetHeight(rect.height);\n }\n };\n var onTargetResize = function onTargetResize() {\n syncTargetSize();\n triggerAlign();\n };\n\n // ========================== Motion ============================\n var onVisibleChanged = function onVisibleChanged(visible) {\n setInMotion(false);\n onAlign();\n afterPopupVisibleChange === null || afterPopupVisibleChange === void 0 ? void 0 : afterPopupVisibleChange(visible);\n };\n\n // We will trigger align when motion is in prepare\n var onPrepare = function onPrepare() {\n return new Promise(function (resolve) {\n syncTargetSize();\n setMotionPrepareResolve(function () {\n return resolve;\n });\n });\n };\n useLayoutEffect(function () {\n if (motionPrepareResolve) {\n onAlign();\n motionPrepareResolve();\n setMotionPrepareResolve(null);\n }\n }, [motionPrepareResolve]);\n\n // =========================== Action ===========================\n /**\n * Util wrapper for trigger action\n */\n function wrapperAction(eventName, nextOpen, delay, preEvent) {\n cloneProps[eventName] = function (event) {\n var _originChildProps$eve;\n preEvent === null || preEvent === void 0 ? void 0 : preEvent(event);\n triggerOpen(nextOpen, delay);\n\n // Pass to origin\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n (_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 ? void 0 : _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps, event].concat(args));\n };\n }\n\n // ======================= Action: Click ========================\n if (clickToShow || clickToHide) {\n cloneProps.onClick = function (event) {\n var _originChildProps$onC;\n if (openRef.current && clickToHide) {\n triggerOpen(false);\n } else if (!openRef.current && clickToShow) {\n setMousePosByEvent(event);\n triggerOpen(true);\n }\n\n // Pass to origin\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n (_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 ? void 0 : _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps, event].concat(args));\n };\n }\n\n // Click to hide is special action since click popup element should not hide\n useWinClick(mergedOpen, clickToHide, targetEle, popupEle, mask, maskClosable, inPopupOrChild, triggerOpen);\n\n // ======================= Action: Hover ========================\n var hoverToShow = showActions.has('hover');\n var hoverToHide = hideActions.has('hover');\n var onPopupMouseEnter;\n var onPopupMouseLeave;\n if (hoverToShow) {\n // Compatible with old browser which not support pointer event\n wrapperAction('onMouseEnter', true, mouseEnterDelay, function (event) {\n setMousePosByEvent(event);\n });\n wrapperAction('onPointerEnter', true, mouseEnterDelay, function (event) {\n setMousePosByEvent(event);\n });\n onPopupMouseEnter = function onPopupMouseEnter() {\n // Only trigger re-open when popup is visible\n if (mergedOpen || inMotion) {\n triggerOpen(true, mouseEnterDelay);\n }\n };\n\n // Align Point\n if (alignPoint) {\n cloneProps.onMouseMove = function (event) {\n var _originChildProps$onM;\n // setMousePosByEvent(event);\n (_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 ? void 0 : _originChildProps$onM.call(originChildProps, event);\n };\n }\n }\n if (hoverToHide) {\n wrapperAction('onMouseLeave', false, mouseLeaveDelay);\n wrapperAction('onPointerLeave', false, mouseLeaveDelay);\n onPopupMouseLeave = function onPopupMouseLeave() {\n triggerOpen(false, mouseLeaveDelay);\n };\n }\n\n // ======================= Action: Focus ========================\n if (showActions.has('focus')) {\n wrapperAction('onFocus', true, focusDelay);\n }\n if (hideActions.has('focus')) {\n wrapperAction('onBlur', false, blurDelay);\n }\n\n // ==================== Action: ContextMenu =====================\n if (showActions.has('contextMenu')) {\n cloneProps.onContextMenu = function (event) {\n var _originChildProps$onC2;\n if (openRef.current && hideActions.has('contextMenu')) {\n triggerOpen(false);\n } else {\n setMousePosByEvent(event);\n triggerOpen(true);\n }\n event.preventDefault();\n\n // Pass to origin\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n (_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 ? void 0 : _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event].concat(args));\n };\n }\n\n // ========================= ClassName ==========================\n if (className) {\n cloneProps.className = classNames(originChildProps.className, className);\n }\n\n // =========================== Render ===========================\n var mergedChildrenProps = _objectSpread(_objectSpread({}, originChildProps), cloneProps);\n\n // Pass props into cloneProps for nest usage\n var passedProps = {};\n var passedEventList = ['onContextMenu', 'onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];\n passedEventList.forEach(function (eventName) {\n if (restProps[eventName]) {\n passedProps[eventName] = function () {\n var _mergedChildrenProps$;\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n (_mergedChildrenProps$ = mergedChildrenProps[eventName]) === null || _mergedChildrenProps$ === void 0 ? void 0 : _mergedChildrenProps$.call.apply(_mergedChildrenProps$, [mergedChildrenProps].concat(args));\n restProps[eventName].apply(restProps, args);\n };\n }\n });\n\n // Child Node\n var triggerNode = /*#__PURE__*/React.cloneElement(child, _objectSpread(_objectSpread({}, mergedChildrenProps), passedProps));\n var arrowPos = {\n x: arrowX,\n y: arrowY\n };\n var innerArrow = arrow ? _objectSpread({}, arrow !== true ? arrow : {}) : null;\n\n // Render\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizeObserver, {\n disabled: !mergedOpen,\n ref: setTargetRef,\n onResize: onTargetResize\n }, /*#__PURE__*/React.createElement(TriggerWrapper, {\n getTriggerDOMNode: getTriggerDOMNode\n }, triggerNode)), /*#__PURE__*/React.createElement(TriggerContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Popup, {\n portal: PortalComponent,\n ref: setPopupRef,\n prefixCls: prefixCls,\n popup: popup,\n className: classNames(popupClassName, alignedClassName),\n style: popupStyle,\n target: targetEle,\n onMouseEnter: onPopupMouseEnter,\n onMouseLeave: onPopupMouseLeave\n // https://github.com/ant-design/ant-design/issues/43924\n ,\n onPointerEnter: onPopupMouseEnter,\n zIndex: zIndex\n // Open\n ,\n open: mergedOpen,\n keepDom: inMotion\n // Click\n ,\n onClick: onPopupClick\n // Mask\n ,\n mask: mask\n // Motion\n ,\n motion: mergePopupMotion,\n maskMotion: mergeMaskMotion,\n onVisibleChanged: onVisibleChanged,\n onPrepare: onPrepare\n // Portal\n ,\n forceRender: forceRender,\n autoDestroy: mergedAutoDestroy,\n getPopupContainer: getPopupContainer\n // Arrow\n ,\n align: alignInfo,\n arrow: innerArrow,\n arrowPos: arrowPos\n // Align\n ,\n ready: ready,\n offsetX: offsetX,\n offsetY: offsetY,\n offsetR: offsetR,\n offsetB: offsetB,\n onAlign: triggerAlign\n // Stretch\n ,\n stretch: stretch,\n targetWidth: targetWidth / scaleX,\n targetHeight: targetHeight / scaleY\n })));\n });\n if (process.env.NODE_ENV !== 'production') {\n Trigger.displayName = 'Trigger';\n }\n return Trigger;\n}\nexport default generateTrigger(Portal);","/*\n * This module exists for optimizations in the build process through rollup and terser. We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `logger` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These flags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nfunction isBrowserBundle() {\n return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}\n\n/**\n * Get source of SDK.\n */\nfunction getSDKSource() {\n // @ts-ignore \"npm\" is injected by rollup during build process\n return \"npm\";\n}\n\nexport { getSDKSource, isBrowserBundle };\n//# sourceMappingURL=env.js.map\n","import { isBrowserBundle } from './env.js';\n\n/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the logger, or b) put your function elsewhere.\n */\n\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nfunction isNodeEnv() {\n // explicitly check for browser bundles as those can be optimized statically\n // by terser/rollup.\n return (\n !isBrowserBundle() &&\n Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n );\n}\n\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any\nfunction dynamicRequire(mod, request) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @returns possibly required module\n */\nfunction loadModule(moduleName) {\n let mod;\n\n try {\n mod = dynamicRequire(module, moduleName);\n } catch (e) {\n // no-empty\n }\n\n try {\n const { cwd } = dynamicRequire(module, 'process');\n mod = dynamicRequire(module, `${cwd()}/node_modules/${moduleName}`) ;\n } catch (e) {\n // no-empty\n }\n\n return mod;\n}\n\nexport { dynamicRequire, isNodeEnv, loadModule };\n//# sourceMappingURL=node.js.map\n","import { isNodeEnv, dynamicRequire } from './node.js';\nimport { getGlobalObject } from './worldwide.js';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\n/**\n * An object that can return the current timestamp in seconds since the UNIX epoch.\n */\n\n/**\n * A TimestampSource implementation for environments that do not support the Performance Web API natively.\n *\n * Note that this TimestampSource does not use a monotonic clock. A call to `nowSeconds` may return a timestamp earlier\n * than a previously returned value. We do not try to emulate a monotonic behavior in order to facilitate debugging. It\n * is more obvious to explain \"why does my span have negative duration\" than \"why my spans have zero duration\".\n */\nconst dateTimestampSource = {\n nowSeconds: () => Date.now() / 1000,\n};\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high-resolution monotonic clock.\n */\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction getBrowserPerformance() {\n const { performance } = WINDOW;\n if (!performance || !performance.now) {\n return undefined;\n }\n\n // Replace performance.timeOrigin with our own timeOrigin based on Date.now().\n //\n // This is a partial workaround for browsers reporting performance.timeOrigin such that performance.timeOrigin +\n // performance.now() gives a date arbitrarily in the past.\n //\n // Additionally, computing timeOrigin in this way fills the gap for browsers where performance.timeOrigin is\n // undefined.\n //\n // The assumption that performance.timeOrigin + performance.now() ~= Date.now() is flawed, but we depend on it to\n // interact with data coming out of performance entries.\n //\n // Note that despite recommendations against it in the spec, browsers implement the Performance API with a clock that\n // might stop when the computer is asleep (and perhaps under other circumstances). Such behavior causes\n // performance.timeOrigin + performance.now() to have an arbitrary skew over Date.now(). In laptop computers, we have\n // observed skews that can be as long as days, weeks or months.\n //\n // See https://github.com/getsentry/sentry-javascript/issues/2590.\n //\n // BUG: despite our best intentions, this workaround has its limitations. It mostly addresses timings of pageload\n // transactions, but ignores the skew built up over time that can aversely affect timestamps of navigation\n // transactions of long-lived web pages.\n const timeOrigin = Date.now() - performance.now();\n\n return {\n now: () => performance.now(),\n timeOrigin,\n };\n}\n\n/**\n * Returns the native Performance API implementation from Node.js. Returns undefined in old Node.js versions that don't\n * implement the API.\n */\nfunction getNodePerformance() {\n try {\n const perfHooks = dynamicRequire(module, 'perf_hooks') ;\n return perfHooks.performance;\n } catch (_) {\n return undefined;\n }\n}\n\n/**\n * The Performance API implementation for the current platform, if available.\n */\nconst platformPerformance = isNodeEnv() ? getNodePerformance() : getBrowserPerformance();\n\nconst timestampSource =\n platformPerformance === undefined\n ? dateTimestampSource\n : {\n nowSeconds: () => (platformPerformance.timeOrigin + platformPerformance.now()) / 1000,\n };\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nconst dateTimestampInSeconds = dateTimestampSource.nowSeconds.bind(dateTimestampSource);\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * See `usingPerformanceAPI` to test whether the Performance API is used.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nconst timestampInSeconds = timestampSource.nowSeconds.bind(timestampSource);\n\n/**\n * Re-exported with an old name for backwards-compatibility.\n * TODO (v8): Remove this\n *\n * @deprecated Use `timestampInSeconds` instead.\n */\nconst timestampWithMs = timestampInSeconds;\n\n/**\n * A boolean that is true when timestampInSeconds uses the Performance API to produce monotonic timestamps.\n */\nconst usingPerformanceAPI = platformPerformance !== undefined;\n\n/**\n * Internal helper to store what is the source of browserPerformanceTimeOrigin below. For debugging only.\n */\nlet _browserPerformanceTimeOriginMode;\n\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nconst browserPerformanceTimeOrigin = (() => {\n // Unfortunately browsers may report an inaccurate time origin data, through either performance.timeOrigin or\n // performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin\n // data as reliable if they are within a reasonable threshold of the current time.\n\n const { performance } = WINDOW;\n if (!performance || !performance.now) {\n _browserPerformanceTimeOriginMode = 'none';\n return undefined;\n }\n\n const threshold = 3600 * 1000;\n const performanceNow = performance.now();\n const dateNow = Date.now();\n\n // if timeOrigin isn't available set delta to threshold so it isn't used\n const timeOriginDelta = performance.timeOrigin\n ? Math.abs(performance.timeOrigin + performanceNow - dateNow)\n : threshold;\n const timeOriginIsReliable = timeOriginDelta < threshold;\n\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line deprecation/deprecation\n const navigationStart = performance.timing && performance.timing.navigationStart;\n const hasNavigationStart = typeof navigationStart === 'number';\n // if navigationStart isn't available set delta to threshold so it isn't used\n const navigationStartDelta = hasNavigationStart ? Math.abs(navigationStart + performanceNow - dateNow) : threshold;\n const navigationStartIsReliable = navigationStartDelta < threshold;\n\n if (timeOriginIsReliable || navigationStartIsReliable) {\n // Use the more reliable time origin\n if (timeOriginDelta <= navigationStartDelta) {\n _browserPerformanceTimeOriginMode = 'timeOrigin';\n return performance.timeOrigin;\n } else {\n _browserPerformanceTimeOriginMode = 'navigationStart';\n return navigationStart;\n }\n }\n\n // Either both timeOrigin and navigationStart are skewed or neither is available, fallback to Date.\n _browserPerformanceTimeOriginMode = 'dateNow';\n return dateNow;\n})();\n\nexport { _browserPerformanceTimeOriginMode, browserPerformanceTimeOrigin, dateTimestampInSeconds, timestampInSeconds, timestampWithMs, usingPerformanceAPI };\n//# sourceMappingURL=time.js.map\n","/** Internal global with common properties and Sentry extensions */\n\n// The code below for 'isGlobalObj' and 'GLOBAL_OBJ' was copied from core-js before modification\n// https://github.com/zloirock/core-js/blob/1b944df55282cdc99c90db5f49eb0b6eda2cc0a3/packages/core-js/internals/global.js\n// core-js has the following licence:\n//\n// Copyright (c) 2014-2022 Denis Pushkarev\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the \"Software\"), to deal\n// in the Software without restriction, including without limitation the rights\n// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n// copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n// THE SOFTWARE.\n\n/** Returns 'obj' if it's the global object, otherwise returns undefined */\nfunction isGlobalObj(obj) {\n return obj && obj.Math == Math ? obj : undefined;\n}\n\n/** Get's the global object for the current JavaScript runtime */\nconst GLOBAL_OBJ =\n (typeof globalThis == 'object' && isGlobalObj(globalThis)) ||\n // eslint-disable-next-line no-restricted-globals\n (typeof window == 'object' && isGlobalObj(window)) ||\n (typeof self == 'object' && isGlobalObj(self)) ||\n (typeof global == 'object' && isGlobalObj(global)) ||\n (function () {\n return this;\n })() ||\n {};\n\n/**\n * @deprecated Use GLOBAL_OBJ instead or WINDOW from @sentry/browser. This will be removed in v8\n */\nfunction getGlobalObject() {\n return GLOBAL_OBJ ;\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value\n * @returns the singleton\n */\nfunction getGlobalSingleton(name, creator, obj) {\n const gbl = (obj || GLOBAL_OBJ) ;\n const __SENTRY__ = (gbl.__SENTRY__ = gbl.__SENTRY__ || {});\n const singleton = __SENTRY__[name] || (__SENTRY__[name] = creator());\n return singleton;\n}\n\nexport { GLOBAL_OBJ, getGlobalObject, getGlobalSingleton };\n//# sourceMappingURL=worldwide.js.map\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport { createHashHistory, createMemoryHistory, createBrowserHistory } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@umijs+renderer-react@4.0.78_react-dom@18.1.0_react@18.1.0/node_modules/@umijs/renderer-react';\nimport type { UmiHistory } from './historyIntelli';\n\nlet history: UmiHistory;\nlet basename: string = '/';\nexport function createHistory(opts: any) {\n let h;\n if (opts.type === 'hash') {\n h = createHashHistory();\n } else if (opts.type === 'memory') {\n h = createMemoryHistory(opts);\n } else {\n h = createBrowserHistory();\n }\n if (opts.basename) {\n basename = opts.basename;\n }\n\n\n history = {\n ...h,\n push(to, state) {\n h.push(patchTo(to, h), state);\n },\n replace(to, state) {\n h.replace(patchTo(to, h), state);\n },\n get location() {\n return h.location;\n },\n get action() {\n return h.action;\n }\n }\n\n return h;\n}\n\n// Patch `to` to support basename\n// Refs:\n// https://github.com/remix-run/history/blob/3e9dab4/packages/history/index.ts#L484\n// https://github.com/remix-run/history/blob/dev/docs/api-reference.md#to\nfunction patchTo(to: any, h: History) {\n if (typeof to === 'string') {\n return `${stripLastSlash(basename)}${to}`;\n } else if (typeof to === 'object') {\n\n const currentPathname = h.location.pathname;\n\n return {\n ...to,\n pathname: to.pathname? `${stripLastSlash(basename)}${to.pathname}` : currentPathname,\n };\n } else {\n throw new Error(`Unexpected to: ${to}`);\n }\n}\n\nfunction stripLastSlash(path) {\n return path.slice(-1) === '/' ? path.slice(0, -1) : path;\n}\n\nexport { history };\n","import { addNonEnumerableProperty } from './object.js';\nimport { snipLine } from './string.js';\nimport { GLOBAL_OBJ } from './worldwide.js';\n\n/**\n * UUID4 generator\n *\n * @returns string Generated UUID4.\n */\nfunction uuid4() {\n const gbl = GLOBAL_OBJ ;\n const crypto = gbl.crypto || gbl.msCrypto;\n\n if (crypto && crypto.randomUUID) {\n return crypto.randomUUID().replace(/-/g, '');\n }\n\n const getRandomByte =\n crypto && crypto.getRandomValues ? () => crypto.getRandomValues(new Uint8Array(1))[0] : () => Math.random() * 16;\n\n // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n // Concatenating the following numbers as strings results in '10000000100040008000100000000000'\n return (([1e7] ) + 1e3 + 4e3 + 8e3 + 1e11).replace(/[018]/g, c =>\n // eslint-disable-next-line no-bitwise\n ((c ) ^ ((getRandomByte() & 15) >> ((c ) / 4))).toString(16),\n );\n}\n\nfunction getFirstException(event) {\n return event.exception && event.exception.values ? event.exception.values[0] : undefined;\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nfunction getEventDescription(event) {\n const { message, event_id: eventId } = event;\n if (message) {\n return message;\n }\n\n const firstException = getFirstException(event);\n if (firstException) {\n if (firstException.type && firstException.value) {\n return `${firstException.type}: ${firstException.value}`;\n }\n return firstException.type || firstException.value || eventId || '';\n }\n return eventId || '';\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nfunction addExceptionTypeValue(event, value, type) {\n const exception = (event.exception = event.exception || {});\n const values = (exception.values = exception.values || []);\n const firstException = (values[0] = values[0] || {});\n if (!firstException.value) {\n firstException.value = value || '';\n }\n if (!firstException.type) {\n firstException.type = type || 'Error';\n }\n}\n\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nfunction addExceptionMechanism(event, newMechanism) {\n const firstException = getFirstException(event);\n if (!firstException) {\n return;\n }\n\n const defaultMechanism = { type: 'generic', handled: true };\n const currentMechanism = firstException.mechanism;\n firstException.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n if (newMechanism && 'data' in newMechanism) {\n const mergedData = { ...(currentMechanism && currentMechanism.data), ...newMechanism.data };\n firstException.mechanism.data = mergedData;\n }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nfunction parseSemver(input) {\n const match = input.match(SEMVER_REGEXP) || [];\n const major = parseInt(match[1], 10);\n const minor = parseInt(match[2], 10);\n const patch = parseInt(match[3], 10);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nfunction addContextToFrame(lines, frame, linesOfContext = 5) {\n // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n if (frame.lineno === undefined) {\n return;\n }\n\n const maxLines = lines.length;\n const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map((line) => snipLine(line, 0));\n\n frame.context_line = snipLine(lines[Math.min(maxLines - 1, sourceLine)], frame.colno || 0);\n\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map((line) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nfunction checkOrSetAlreadyCaught(exception) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (exception && (exception ).__sentry_captured__) {\n return true;\n }\n\n try {\n // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n // `ExtraErrorData` integration\n addNonEnumerableProperty(exception , '__sentry_captured__', true);\n } catch (err) {\n // `exception` is a primitive, so we can't mark it seen\n }\n\n return false;\n}\n\n/**\n * Checks whether the given input is already an array, and if it isn't, wraps it in one.\n *\n * @param maybeArray Input to turn into an array, if necessary\n * @returns The input, if already an array, or an array with the input as the only element, if not\n */\nfunction arrayify(maybeArray) {\n return Array.isArray(maybeArray) ? maybeArray : [maybeArray];\n}\n\nexport { addContextToFrame, addExceptionMechanism, addExceptionTypeValue, arrayify, checkOrSetAlreadyCaught, getEventDescription, parseSemver, uuid4 };\n//# sourceMappingURL=misc.js.map\n","import { getGlobalSingleton, GLOBAL_OBJ } from './worldwide.js';\n\n/** Prefix for logging strings */\nconst PREFIX = 'Sentry Logger ';\n\nconst CONSOLE_LEVELS = ['debug', 'info', 'warn', 'error', 'log', 'assert', 'trace'] ;\n\n/**\n * Temporarily disable sentry console instrumentations.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nfunction consoleSandbox(callback) {\n if (!('console' in GLOBAL_OBJ)) {\n return callback();\n }\n\n const originalConsole = GLOBAL_OBJ.console ;\n const wrappedLevels = {};\n\n // Restore all wrapped console methods\n CONSOLE_LEVELS.forEach(level => {\n // TODO(v7): Remove this check as it's only needed for Node 6\n const originalWrappedFunc =\n originalConsole[level] && (originalConsole[level] ).__sentry_original__;\n if (level in originalConsole && originalWrappedFunc) {\n wrappedLevels[level] = originalConsole[level] ;\n originalConsole[level] = originalWrappedFunc ;\n }\n });\n\n try {\n return callback();\n } finally {\n // Revert restoration to wrapped state\n Object.keys(wrappedLevels).forEach(level => {\n originalConsole[level] = wrappedLevels[level ];\n });\n }\n}\n\nfunction makeLogger() {\n let enabled = false;\n const logger = {\n enable: () => {\n enabled = true;\n },\n disable: () => {\n enabled = false;\n },\n };\n\n if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n CONSOLE_LEVELS.forEach(name => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n logger[name] = (...args) => {\n if (enabled) {\n consoleSandbox(() => {\n GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`, ...args);\n });\n }\n };\n });\n } else {\n CONSOLE_LEVELS.forEach(name => {\n logger[name] = () => undefined;\n });\n }\n\n return logger ;\n}\n\n// Ensure we only have a single logger instance, even if multiple versions of @sentry/utils are being used\nlet logger;\nif ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n logger = getGlobalSingleton('logger', makeLogger);\n} else {\n logger = makeLogger();\n}\n\nexport { CONSOLE_LEVELS, consoleSandbox, logger };\n//# sourceMappingURL=logger.js.map\n","const DEFAULT_ENVIRONMENT = 'production';\n\nexport { DEFAULT_ENVIRONMENT };\n//# sourceMappingURL=constants.js.map\n","// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isError(wat) {\n switch (objectToString.call(wat)) {\n case '[object Error]':\n case '[object Exception]':\n case '[object DOMException]':\n return true;\n default:\n return isInstanceOf(wat, Error);\n }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat, className) {\n return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isErrorEvent(wat) {\n return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isDOMError(wat) {\n return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isDOMException(wat) {\n return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isString(wat) {\n return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isPrimitive(wat) {\n return wat === null || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isPlainObject(wat) {\n return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isEvent(wat) {\n return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isElement(wat) {\n return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isRegExp(wat) {\n return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nfunction isThenable(wat) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return Boolean(wat && wat.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isSyntheticEvent(wat) {\n return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value is NaN\n * {@link isNaN}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nfunction isNaN(wat) {\n return typeof wat === 'number' && wat !== wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\nfunction isInstanceOf(wat, base) {\n try {\n return wat instanceof base;\n } catch (_e) {\n return false;\n }\n}\n\nexport { isDOMError, isDOMException, isElement, isError, isErrorEvent, isEvent, isInstanceOf, isNaN, isPlainObject, isPrimitive, isRegExp, isString, isSyntheticEvent, isThenable };\n//# sourceMappingURL=is.js.map\n","import { isThenable } from './is.js';\n\n/* eslint-disable @typescript-eslint/explicit-function-return-type */\n\n/** SyncPromise internal states */\nvar States; (function (States) {\n /** Pending */\n const PENDING = 0; States[States[\"PENDING\"] = PENDING] = \"PENDING\";\n /** Resolved / OK */\n const RESOLVED = 1; States[States[\"RESOLVED\"] = RESOLVED] = \"RESOLVED\";\n /** Rejected / Error */\n const REJECTED = 2; States[States[\"REJECTED\"] = REJECTED] = \"REJECTED\";\n})(States || (States = {}));\n\n// Overloads so we can call resolvedSyncPromise without arguments and generic argument\n\n/**\n * Creates a resolved sync promise.\n *\n * @param value the value to resolve the promise with\n * @returns the resolved sync promise\n */\nfunction resolvedSyncPromise(value) {\n return new SyncPromise(resolve => {\n resolve(value);\n });\n}\n\n/**\n * Creates a rejected sync promise.\n *\n * @param value the value to reject the promise with\n * @returns the rejected sync promise\n */\nfunction rejectedSyncPromise(reason) {\n return new SyncPromise((_, reject) => {\n reject(reason);\n });\n}\n\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nclass SyncPromise {\n\n constructor(\n executor,\n ) {SyncPromise.prototype.__init.call(this);SyncPromise.prototype.__init2.call(this);SyncPromise.prototype.__init3.call(this);SyncPromise.prototype.__init4.call(this);\n this._state = States.PENDING;\n this._handlers = [];\n\n try {\n executor(this._resolve, this._reject);\n } catch (e) {\n this._reject(e);\n }\n }\n\n /** JSDoc */\n then(\n onfulfilled,\n onrejected,\n ) {\n return new SyncPromise((resolve, reject) => {\n this._handlers.push([\n false,\n result => {\n if (!onfulfilled) {\n // TODO: ¯\\_(ツ)_/¯\n // TODO: FIXME\n resolve(result );\n } else {\n try {\n resolve(onfulfilled(result));\n } catch (e) {\n reject(e);\n }\n }\n },\n reason => {\n if (!onrejected) {\n reject(reason);\n } else {\n try {\n resolve(onrejected(reason));\n } catch (e) {\n reject(e);\n }\n }\n },\n ]);\n this._executeHandlers();\n });\n }\n\n /** JSDoc */\n catch(\n onrejected,\n ) {\n return this.then(val => val, onrejected);\n }\n\n /** JSDoc */\n finally(onfinally) {\n return new SyncPromise((resolve, reject) => {\n let val;\n let isRejected;\n\n return this.then(\n value => {\n isRejected = false;\n val = value;\n if (onfinally) {\n onfinally();\n }\n },\n reason => {\n isRejected = true;\n val = reason;\n if (onfinally) {\n onfinally();\n }\n },\n ).then(() => {\n if (isRejected) {\n reject(val);\n return;\n }\n\n resolve(val );\n });\n });\n }\n\n /** JSDoc */\n __init() {this._resolve = (value) => {\n this._setResult(States.RESOLVED, value);\n };}\n\n /** JSDoc */\n __init2() {this._reject = (reason) => {\n this._setResult(States.REJECTED, reason);\n };}\n\n /** JSDoc */\n __init3() {this._setResult = (state, value) => {\n if (this._state !== States.PENDING) {\n return;\n }\n\n if (isThenable(value)) {\n void (value ).then(this._resolve, this._reject);\n return;\n }\n\n this._state = state;\n this._value = value;\n\n this._executeHandlers();\n };}\n\n /** JSDoc */\n __init4() {this._executeHandlers = () => {\n if (this._state === States.PENDING) {\n return;\n }\n\n const cachedHandlers = this._handlers.slice();\n this._handlers = [];\n\n cachedHandlers.forEach(handler => {\n if (handler[0]) {\n return;\n }\n\n if (this._state === States.RESOLVED) {\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n handler[1](this._value );\n }\n\n if (this._state === States.REJECTED) {\n handler[2](this._value);\n }\n\n handler[0] = true;\n });\n };}\n}\n\nexport { SyncPromise, rejectedSyncPromise, resolvedSyncPromise };\n//# sourceMappingURL=syncpromise.js.map\n","import { isString } from './is.js';\nimport { getGlobalObject } from './worldwide.js';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\nconst DEFAULT_MAX_STRING_LENGTH = 80;\n\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction htmlTreeAsString(\n elem,\n options = {},\n) {\n\n // try/catch both:\n // - accessing event.target (see getsentry/raven-js#838, #768)\n // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n // - can throw an exception in some circumstances.\n try {\n let currentElem = elem ;\n const MAX_TRAVERSE_HEIGHT = 5;\n const out = [];\n let height = 0;\n let len = 0;\n const separator = ' > ';\n const sepLength = separator.length;\n let nextStr;\n const keyAttrs = Array.isArray(options) ? options : options.keyAttrs;\n const maxStringLength = (!Array.isArray(options) && options.maxStringLength) || DEFAULT_MAX_STRING_LENGTH;\n\n while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n nextStr = _htmlElementAsString(currentElem, keyAttrs);\n // bail out if\n // - nextStr is the 'html' element\n // - the length of the string that would be created exceeds maxStringLength\n // (ignore this limit if we are on the first iteration)\n if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= maxStringLength)) {\n break;\n }\n\n out.push(nextStr);\n\n len += nextStr.length;\n currentElem = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch (_oO) {\n return '';\n }\n}\n\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el, keyAttrs) {\n const elem = el\n\n;\n\n const out = [];\n let className;\n let classes;\n let key;\n let attr;\n let i;\n\n if (!elem || !elem.tagName) {\n return '';\n }\n\n out.push(elem.tagName.toLowerCase());\n\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n const keyAttrPairs =\n keyAttrs && keyAttrs.length\n ? keyAttrs.filter(keyAttr => elem.getAttribute(keyAttr)).map(keyAttr => [keyAttr, elem.getAttribute(keyAttr)])\n : null;\n\n if (keyAttrPairs && keyAttrPairs.length) {\n keyAttrPairs.forEach(keyAttrPair => {\n out.push(`[${keyAttrPair[0]}=\"${keyAttrPair[1]}\"]`);\n });\n } else {\n if (elem.id) {\n out.push(`#${elem.id}`);\n }\n\n // eslint-disable-next-line prefer-const\n className = elem.className;\n if (className && isString(className)) {\n classes = className.split(/\\s+/);\n for (i = 0; i < classes.length; i++) {\n out.push(`.${classes[i]}`);\n }\n }\n }\n const allowedAttrs = ['aria-label', 'type', 'name', 'title', 'alt'];\n for (i = 0; i < allowedAttrs.length; i++) {\n key = allowedAttrs[i];\n attr = elem.getAttribute(key);\n if (attr) {\n out.push(`[${key}=\"${attr}\"]`);\n }\n }\n return out.join('');\n}\n\n/**\n * A safe form of location.href\n */\nfunction getLocationHref() {\n try {\n return WINDOW.document.location.href;\n } catch (oO) {\n return '';\n }\n}\n\n/**\n * Gets a DOM element by using document.querySelector.\n *\n * This wrapper will first check for the existance of the function before\n * actually calling it so that we don't have to take care of this check,\n * every time we want to access the DOM.\n *\n * Reason: DOM/querySelector is not available in all environments.\n *\n * We have to cast to any because utils can be consumed by a variety of environments,\n * and we don't want to break TS users. If you know what element will be selected by\n * `document.querySelector`, specify it as part of the generic call. For example,\n * `const element = getDomElement('selector');`\n *\n * @param selector the selector string passed on to document.querySelector\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction getDomElement(selector) {\n if (WINDOW.document && WINDOW.document.querySelector) {\n return WINDOW.document.querySelector(selector) ;\n }\n return null;\n}\n\nexport { getDomElement, getLocationHref, htmlTreeAsString };\n//# sourceMappingURL=browser.js.map\n","import { isString, isRegExp } from './is.js';\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nfunction truncate(str, max = 0) {\n if (typeof str !== 'string' || max === 0) {\n return str;\n }\n return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nfunction snipLine(line, colno) {\n let newLine = line;\n const lineLength = newLine.length;\n if (lineLength <= 150) {\n return newLine;\n }\n if (colno > lineLength) {\n // eslint-disable-next-line no-param-reassign\n colno = lineLength;\n }\n\n let start = Math.max(colno - 60, 0);\n if (start < 5) {\n start = 0;\n }\n\n let end = Math.min(start + 140, lineLength);\n if (end > lineLength - 5) {\n end = lineLength;\n }\n if (end === lineLength) {\n start = Math.max(end - 140, 0);\n }\n\n newLine = newLine.slice(start, end);\n if (start > 0) {\n newLine = `'{snip} ${newLine}`;\n }\n if (end < lineLength) {\n newLine += ' {snip}';\n }\n\n return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction safeJoin(input, delimiter) {\n if (!Array.isArray(input)) {\n return '';\n }\n\n const output = [];\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < input.length; i++) {\n const value = input[i];\n try {\n output.push(String(value));\n } catch (e) {\n output.push('[value cannot be serialized]');\n }\n }\n\n return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nfunction isMatchingPattern(\n value,\n pattern,\n requireExactStringMatch = false,\n) {\n if (!isString(value)) {\n return false;\n }\n\n if (isRegExp(pattern)) {\n return pattern.test(value);\n }\n if (isString(pattern)) {\n return requireExactStringMatch ? value === pattern : value.includes(pattern);\n }\n\n return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nfunction stringMatchesSomePattern(\n testString,\n patterns = [],\n requireExactStringMatch = false,\n) {\n return patterns.some(pattern => isMatchingPattern(testString, pattern, requireExactStringMatch));\n}\n\nexport { isMatchingPattern, safeJoin, snipLine, stringMatchesSomePattern, truncate };\n//# sourceMappingURL=string.js.map\n","import { htmlTreeAsString } from './browser.js';\nimport { isError, isEvent, isInstanceOf, isElement, isPlainObject, isPrimitive } from './is.js';\nimport { truncate } from './string.js';\n\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, )` or `origMethod.apply(this, [])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\nfunction fill(source, name, replacementFactory) {\n if (!(name in source)) {\n return;\n }\n\n const original = source[name] ;\n const wrapped = replacementFactory(original) ;\n\n // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n if (typeof wrapped === 'function') {\n try {\n markFunctionWrapped(wrapped, original);\n } catch (_Oo) {\n // This can throw if multiple fill happens on a global object like XMLHttpRequest\n // Fixes https://github.com/getsentry/sentry-javascript/issues/2043\n }\n }\n\n source[name] = wrapped;\n}\n\n/**\n * Defines a non-enumerable property on the given object.\n *\n * @param obj The object on which to set the property\n * @param name The name of the property to be set\n * @param value The value to which to set the property\n */\nfunction addNonEnumerableProperty(obj, name, value) {\n Object.defineProperty(obj, name, {\n // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it\n value: value,\n writable: true,\n configurable: true,\n });\n}\n\n/**\n * Remembers the original function on the wrapped function and\n * patches up the prototype.\n *\n * @param wrapped the wrapper function\n * @param original the original function that gets wrapped\n */\nfunction markFunctionWrapped(wrapped, original) {\n const proto = original.prototype || {};\n wrapped.prototype = original.prototype = proto;\n addNonEnumerableProperty(wrapped, '__sentry_original__', original);\n}\n\n/**\n * This extracts the original function if available. See\n * `markFunctionWrapped` for more information.\n *\n * @param func the function to unwrap\n * @returns the unwrapped version of the function if available.\n */\nfunction getOriginalFunction(func) {\n return func.__sentry_original__;\n}\n\n/**\n * Encodes given object into url-friendly format\n *\n * @param object An object that contains serializable values\n * @returns string Encoded\n */\nfunction urlEncode(object) {\n return Object.keys(object)\n .map(key => `${encodeURIComponent(key)}=${encodeURIComponent(object[key])}`)\n .join('&');\n}\n\n/**\n * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their\n * non-enumerable properties attached.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n * @returns An Event or Error turned into an object - or the value argurment itself, when value is neither an Event nor\n * an Error.\n */\nfunction convertToPlainObject(value)\n\n {\n if (isError(value)) {\n return {\n message: value.message,\n name: value.name,\n stack: value.stack,\n ...getOwnProperties(value),\n };\n } else if (isEvent(value)) {\n const newObj\n\n = {\n type: value.type,\n target: serializeEventTarget(value.target),\n currentTarget: serializeEventTarget(value.currentTarget),\n ...getOwnProperties(value),\n };\n\n if (typeof CustomEvent !== 'undefined' && isInstanceOf(value, CustomEvent)) {\n newObj.detail = value.detail;\n }\n\n return newObj;\n } else {\n return value;\n }\n}\n\n/** Creates a string representation of the target of an `Event` object */\nfunction serializeEventTarget(target) {\n try {\n return isElement(target) ? htmlTreeAsString(target) : Object.prototype.toString.call(target);\n } catch (_oO) {\n return '';\n }\n}\n\n/** Filters out all but an object's own properties */\nfunction getOwnProperties(obj) {\n if (typeof obj === 'object' && obj !== null) {\n const extractedProps = {};\n for (const property in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, property)) {\n extractedProps[property] = (obj )[property];\n }\n }\n return extractedProps;\n } else {\n return {};\n }\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\nfunction extractExceptionKeysForMessage(exception, maxLength = 40) {\n const keys = Object.keys(convertToPlainObject(exception));\n keys.sort();\n\n if (!keys.length) {\n return '[object has no keys]';\n }\n\n if (keys[0].length >= maxLength) {\n return truncate(keys[0], maxLength);\n }\n\n for (let includedKeys = keys.length; includedKeys > 0; includedKeys--) {\n const serialized = keys.slice(0, includedKeys).join(', ');\n if (serialized.length > maxLength) {\n continue;\n }\n if (includedKeys === keys.length) {\n return serialized;\n }\n return truncate(serialized, maxLength);\n }\n\n return '';\n}\n\n/**\n * Given any object, return a new object having removed all fields whose value was `undefined`.\n * Works recursively on objects and arrays.\n *\n * Attention: This function keeps circular references in the returned object.\n */\nfunction dropUndefinedKeys(inputValue) {\n // This map keeps track of what already visited nodes map to.\n // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n // references as the input object.\n const memoizationMap = new Map();\n\n // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n return _dropUndefinedKeys(inputValue, memoizationMap);\n}\n\nfunction _dropUndefinedKeys(inputValue, memoizationMap) {\n if (isPlainObject(inputValue)) {\n // If this node has already been visited due to a circular reference, return the object it was mapped to in the new object\n const memoVal = memoizationMap.get(inputValue);\n if (memoVal !== undefined) {\n return memoVal ;\n }\n\n const returnValue = {};\n // Store the mapping of this value in case we visit it again, in case of circular data\n memoizationMap.set(inputValue, returnValue);\n\n for (const key of Object.keys(inputValue)) {\n if (typeof inputValue[key] !== 'undefined') {\n returnValue[key] = _dropUndefinedKeys(inputValue[key], memoizationMap);\n }\n }\n\n return returnValue ;\n }\n\n if (Array.isArray(inputValue)) {\n // If this node has already been visited due to a circular reference, return the array it was mapped to in the new object\n const memoVal = memoizationMap.get(inputValue);\n if (memoVal !== undefined) {\n return memoVal ;\n }\n\n const returnValue = [];\n // Store the mapping of this value in case we visit it again, in case of circular data\n memoizationMap.set(inputValue, returnValue);\n\n inputValue.forEach((item) => {\n returnValue.push(_dropUndefinedKeys(item, memoizationMap));\n });\n\n return returnValue ;\n }\n\n return inputValue;\n}\n\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nfunction objectify(wat) {\n let objectified;\n switch (true) {\n case wat === undefined || wat === null:\n objectified = new String(wat);\n break;\n\n // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n // an object in order to wrap it.\n case typeof wat === 'symbol' || typeof wat === 'bigint':\n objectified = Object(wat);\n break;\n\n // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n case isPrimitive(wat):\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n objectified = new (wat ).constructor(wat);\n break;\n\n // by process of elimination, at this point we know that `wat` must already be an object\n default:\n objectified = wat;\n break;\n }\n return objectified;\n}\n\nexport { addNonEnumerableProperty, convertToPlainObject, dropUndefinedKeys, extractExceptionKeysForMessage, fill, getOriginalFunction, markFunctionWrapped, objectify, urlEncode };\n//# sourceMappingURL=object.js.map\n","import { timestampInSeconds, uuid4, dropUndefinedKeys } from '@sentry/utils';\n\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nfunction makeSession(context) {\n // Both timestamp and started are in seconds since the UNIX epoch.\n const startingTime = timestampInSeconds();\n\n const session = {\n sid: uuid4(),\n init: true,\n timestamp: startingTime,\n started: startingTime,\n duration: 0,\n status: 'ok',\n errors: 0,\n ignoreDuration: false,\n toJSON: () => sessionToJSON(session),\n };\n\n if (context) {\n updateSession(session, context);\n }\n\n return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see BaseClient.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\n// eslint-disable-next-line complexity\nfunction updateSession(session, context = {}) {\n if (context.user) {\n if (!session.ipAddress && context.user.ip_address) {\n session.ipAddress = context.user.ip_address;\n }\n\n if (!session.did && !context.did) {\n session.did = context.user.id || context.user.email || context.user.username;\n }\n }\n\n session.timestamp = context.timestamp || timestampInSeconds();\n\n if (context.ignoreDuration) {\n session.ignoreDuration = context.ignoreDuration;\n }\n if (context.sid) {\n // Good enough uuid validation. — Kamil\n session.sid = context.sid.length === 32 ? context.sid : uuid4();\n }\n if (context.init !== undefined) {\n session.init = context.init;\n }\n if (!session.did && context.did) {\n session.did = `${context.did}`;\n }\n if (typeof context.started === 'number') {\n session.started = context.started;\n }\n if (session.ignoreDuration) {\n session.duration = undefined;\n } else if (typeof context.duration === 'number') {\n session.duration = context.duration;\n } else {\n const duration = session.timestamp - session.started;\n session.duration = duration >= 0 ? duration : 0;\n }\n if (context.release) {\n session.release = context.release;\n }\n if (context.environment) {\n session.environment = context.environment;\n }\n if (!session.ipAddress && context.ipAddress) {\n session.ipAddress = context.ipAddress;\n }\n if (!session.userAgent && context.userAgent) {\n session.userAgent = context.userAgent;\n }\n if (typeof context.errors === 'number') {\n session.errors = context.errors;\n }\n if (context.status) {\n session.status = context.status;\n }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n * this function will keep the previously set status, unless it was `'ok'` in which case\n * it is changed to `'exited'`.\n */\nfunction closeSession(session, status) {\n let context = {};\n if (status) {\n context = { status };\n } else if (session.status === 'ok') {\n context = { status: 'exited' };\n }\n\n updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session) {\n return dropUndefinedKeys({\n sid: `${session.sid}`,\n init: session.init,\n // Make sure that sec is converted to ms for date constructor\n started: new Date(session.started * 1000).toISOString(),\n timestamp: new Date(session.timestamp * 1000).toISOString(),\n status: session.status,\n errors: session.errors,\n did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n duration: session.duration,\n attrs: {\n release: session.release,\n environment: session.environment,\n ip_address: session.ipAddress,\n user_agent: session.userAgent,\n },\n });\n}\n\nexport { closeSession, makeSession, updateSession };\n//# sourceMappingURL=session.js.map\n","import { isPlainObject, dateTimestampInSeconds, SyncPromise, logger, isThenable, arrayify, getGlobalSingleton, uuid4 } from '@sentry/utils';\nimport { updateSession } from './session.js';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * Holds additional event information. {@link Scope.applyToEvent} will be\n * called by the client before an event will be sent.\n */\nclass Scope {\n /** Flag if notifying is happening. */\n\n /** Callback for client to receive scope changes. */\n\n /** Callback list that will be called after {@link applyToEvent}. */\n\n /** Array of breadcrumbs. */\n\n /** User */\n\n /** Tags */\n\n /** Extra */\n\n /** Contexts */\n\n /** Attachments */\n\n /** Propagation Context for distributed tracing */\n\n /**\n * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n * sent to Sentry\n */\n\n /** Fingerprint */\n\n /** Severity */\n // eslint-disable-next-line deprecation/deprecation\n\n /** Transaction Name */\n\n /** Span */\n\n /** Session */\n\n /** Request Mode Session Status */\n\n // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n constructor() {\n this._notifyingListeners = false;\n this._scopeListeners = [];\n this._eventProcessors = [];\n this._breadcrumbs = [];\n this._attachments = [];\n this._user = {};\n this._tags = {};\n this._extra = {};\n this._contexts = {};\n this._sdkProcessingMetadata = {};\n this._propagationContext = generatePropagationContext();\n }\n\n /**\n * Inherit values from the parent scope.\n * @param scope to clone.\n */\n static clone(scope) {\n const newScope = new Scope();\n if (scope) {\n newScope._breadcrumbs = [...scope._breadcrumbs];\n newScope._tags = { ...scope._tags };\n newScope._extra = { ...scope._extra };\n newScope._contexts = { ...scope._contexts };\n newScope._user = scope._user;\n newScope._level = scope._level;\n newScope._span = scope._span;\n newScope._session = scope._session;\n newScope._transactionName = scope._transactionName;\n newScope._fingerprint = scope._fingerprint;\n newScope._eventProcessors = [...scope._eventProcessors];\n newScope._requestSession = scope._requestSession;\n newScope._attachments = [...scope._attachments];\n newScope._sdkProcessingMetadata = { ...scope._sdkProcessingMetadata };\n newScope._propagationContext = { ...scope._propagationContext };\n }\n return newScope;\n }\n\n /**\n * Add internal on change listener. Used for sub SDKs that need to store the scope.\n * @hidden\n */\n addScopeListener(callback) {\n this._scopeListeners.push(callback);\n }\n\n /**\n * @inheritDoc\n */\n addEventProcessor(callback) {\n this._eventProcessors.push(callback);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setUser(user) {\n this._user = user || {};\n if (this._session) {\n updateSession(this._session, { user });\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getUser() {\n return this._user;\n }\n\n /**\n * @inheritDoc\n */\n getRequestSession() {\n return this._requestSession;\n }\n\n /**\n * @inheritDoc\n */\n setRequestSession(requestSession) {\n this._requestSession = requestSession;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTags(tags) {\n this._tags = {\n ...this._tags,\n ...tags,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTag(key, value) {\n this._tags = { ...this._tags, [key]: value };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setExtras(extras) {\n this._extra = {\n ...this._extra,\n ...extras,\n };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setExtra(key, extra) {\n this._extra = { ...this._extra, [key]: extra };\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setFingerprint(fingerprint) {\n this._fingerprint = fingerprint;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setLevel(\n // eslint-disable-next-line deprecation/deprecation\n level,\n ) {\n this._level = level;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setTransactionName(name) {\n this._transactionName = name;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setContext(key, context) {\n if (context === null) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._contexts[key];\n } else {\n this._contexts[key] = context;\n }\n\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setSpan(span) {\n this._span = span;\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getSpan() {\n return this._span;\n }\n\n /**\n * @inheritDoc\n */\n getTransaction() {\n // Often, this span (if it exists at all) will be a transaction, but it's not guaranteed to be. Regardless, it will\n // have a pointer to the currently-active transaction.\n const span = this.getSpan();\n return span && span.transaction;\n }\n\n /**\n * @inheritDoc\n */\n setSession(session) {\n if (!session) {\n delete this._session;\n } else {\n this._session = session;\n }\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getSession() {\n return this._session;\n }\n\n /**\n * @inheritDoc\n */\n update(captureContext) {\n if (!captureContext) {\n return this;\n }\n\n if (typeof captureContext === 'function') {\n const updatedScope = (captureContext )(this);\n return updatedScope instanceof Scope ? updatedScope : this;\n }\n\n if (captureContext instanceof Scope) {\n this._tags = { ...this._tags, ...captureContext._tags };\n this._extra = { ...this._extra, ...captureContext._extra };\n this._contexts = { ...this._contexts, ...captureContext._contexts };\n if (captureContext._user && Object.keys(captureContext._user).length) {\n this._user = captureContext._user;\n }\n if (captureContext._level) {\n this._level = captureContext._level;\n }\n if (captureContext._fingerprint) {\n this._fingerprint = captureContext._fingerprint;\n }\n if (captureContext._requestSession) {\n this._requestSession = captureContext._requestSession;\n }\n if (captureContext._propagationContext) {\n this._propagationContext = captureContext._propagationContext;\n }\n } else if (isPlainObject(captureContext)) {\n // eslint-disable-next-line no-param-reassign\n captureContext = captureContext ;\n this._tags = { ...this._tags, ...captureContext.tags };\n this._extra = { ...this._extra, ...captureContext.extra };\n this._contexts = { ...this._contexts, ...captureContext.contexts };\n if (captureContext.user) {\n this._user = captureContext.user;\n }\n if (captureContext.level) {\n this._level = captureContext.level;\n }\n if (captureContext.fingerprint) {\n this._fingerprint = captureContext.fingerprint;\n }\n if (captureContext.requestSession) {\n this._requestSession = captureContext.requestSession;\n }\n if (captureContext.propagationContext) {\n this._propagationContext = captureContext.propagationContext;\n }\n }\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n clear() {\n this._breadcrumbs = [];\n this._tags = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._requestSession = undefined;\n this._span = undefined;\n this._session = undefined;\n this._notifyScopeListeners();\n this._attachments = [];\n this._propagationContext = generatePropagationContext();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n addBreadcrumb(breadcrumb, maxBreadcrumbs) {\n const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n\n const mergedBreadcrumb = {\n timestamp: dateTimestampInSeconds(),\n ...breadcrumb,\n };\n this._breadcrumbs = [...this._breadcrumbs, mergedBreadcrumb].slice(-maxCrumbs);\n this._notifyScopeListeners();\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getLastBreadcrumb() {\n return this._breadcrumbs[this._breadcrumbs.length - 1];\n }\n\n /**\n * @inheritDoc\n */\n clearBreadcrumbs() {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * @inheritDoc\n */\n addAttachment(attachment) {\n this._attachments.push(attachment);\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getAttachments() {\n return this._attachments;\n }\n\n /**\n * @inheritDoc\n */\n clearAttachments() {\n this._attachments = [];\n return this;\n }\n\n /**\n * Applies data from the scope to the event and runs all event processors on it.\n *\n * @param event Event\n * @param hint Object containing additional information about the original exception, for use by the event processors.\n * @hidden\n */\n applyToEvent(event, hint = {}) {\n if (this._extra && Object.keys(this._extra).length) {\n event.extra = { ...this._extra, ...event.extra };\n }\n if (this._tags && Object.keys(this._tags).length) {\n event.tags = { ...this._tags, ...event.tags };\n }\n if (this._user && Object.keys(this._user).length) {\n event.user = { ...this._user, ...event.user };\n }\n if (this._contexts && Object.keys(this._contexts).length) {\n event.contexts = { ...this._contexts, ...event.contexts };\n }\n if (this._level) {\n event.level = this._level;\n }\n if (this._transactionName) {\n event.transaction = this._transactionName;\n }\n\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (this._span) {\n event.contexts = { trace: this._span.getTraceContext(), ...event.contexts };\n const transaction = this._span.transaction;\n if (transaction) {\n event.sdkProcessingMetadata = {\n dynamicSamplingContext: transaction.getDynamicSamplingContext(),\n ...event.sdkProcessingMetadata,\n };\n const transactionName = transaction.name;\n if (transactionName) {\n event.tags = { transaction: transactionName, ...event.tags };\n }\n }\n }\n\n this._applyFingerprint(event);\n\n event.breadcrumbs = [...(event.breadcrumbs || []), ...this._breadcrumbs];\n event.breadcrumbs = event.breadcrumbs.length > 0 ? event.breadcrumbs : undefined;\n\n event.sdkProcessingMetadata = {\n ...event.sdkProcessingMetadata,\n ...this._sdkProcessingMetadata,\n propagationContext: this._propagationContext,\n };\n\n return this._notifyEventProcessors([...getGlobalEventProcessors(), ...this._eventProcessors], event, hint);\n }\n\n /**\n * Add data which will be accessible during event processing but won't get sent to Sentry\n */\n setSDKProcessingMetadata(newData) {\n this._sdkProcessingMetadata = { ...this._sdkProcessingMetadata, ...newData };\n\n return this;\n }\n\n /**\n * @inheritDoc\n */\n setPropagationContext(context) {\n this._propagationContext = context;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n getPropagationContext() {\n return this._propagationContext;\n }\n\n /**\n * This will be called after {@link applyToEvent} is finished.\n */\n _notifyEventProcessors(\n processors,\n event,\n hint,\n index = 0,\n ) {\n return new SyncPromise((resolve, reject) => {\n const processor = processors[index];\n if (event === null || typeof processor !== 'function') {\n resolve(event);\n } else {\n const result = processor({ ...event }, hint) ;\n\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n processor.id &&\n result === null &&\n logger.log(`Event processor \"${processor.id}\" dropped event`);\n\n if (isThenable(result)) {\n void result\n .then(final => this._notifyEventProcessors(processors, final, hint, index + 1).then(resolve))\n .then(null, reject);\n } else {\n void this._notifyEventProcessors(processors, result, hint, index + 1)\n .then(resolve)\n .then(null, reject);\n }\n }\n });\n }\n\n /**\n * This will be called on every set call.\n */\n _notifyScopeListeners() {\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(callback => {\n callback(this);\n });\n this._notifyingListeners = false;\n }\n }\n\n /**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\n _applyFingerprint(event) {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint ? arrayify(event.fingerprint) : [];\n\n // If we have something on the scope, then merge it with event\n if (this._fingerprint) {\n event.fingerprint = event.fingerprint.concat(this._fingerprint);\n }\n\n // If we have no data at all, remove empty array default\n if (event.fingerprint && !event.fingerprint.length) {\n delete event.fingerprint;\n }\n }\n}\n\n/**\n * Returns the global event processors.\n */\nfunction getGlobalEventProcessors() {\n return getGlobalSingleton('globalEventProcessors', () => []);\n}\n\n/**\n * Add a EventProcessor to be kept globally.\n * @param callback EventProcessor to add\n */\nfunction addGlobalEventProcessor(callback) {\n getGlobalEventProcessors().push(callback);\n}\n\nfunction generatePropagationContext() {\n return {\n traceId: uuid4(),\n spanId: uuid4().substring(16),\n sampled: false,\n };\n}\n\nexport { Scope, addGlobalEventProcessor };\n//# sourceMappingURL=scope.js.map\n","import { uuid4, dateTimestampInSeconds, consoleSandbox, logger, GLOBAL_OBJ, getGlobalSingleton } from '@sentry/utils';\nimport { DEFAULT_ENVIRONMENT } from './constants.js';\nimport { Scope } from './scope.js';\nimport { closeSession, makeSession, updateSession } from './session.js';\n\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nconst API_VERSION = 4;\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nconst DEFAULT_BREADCRUMBS = 100;\n\n/**\n * @inheritDoc\n */\nclass Hub {\n /** Is a {@link Layer}[] containing the client and scope */\n\n /** Contains the last event id of a captured event. */\n\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n */\n constructor(client, scope = new Scope(), _version = API_VERSION) {this._version = _version;\n this._stack = [{ scope }];\n if (client) {\n this.bindClient(client);\n }\n }\n\n /**\n * @inheritDoc\n */\n isOlderThan(version) {\n return this._version < version;\n }\n\n /**\n * @inheritDoc\n */\n bindClient(client) {\n const top = this.getStackTop();\n top.client = client;\n if (client && client.setupIntegrations) {\n client.setupIntegrations();\n }\n }\n\n /**\n * @inheritDoc\n */\n pushScope() {\n // We want to clone the content of prev scope\n const scope = Scope.clone(this.getScope());\n this.getStack().push({\n client: this.getClient(),\n scope,\n });\n return scope;\n }\n\n /**\n * @inheritDoc\n */\n popScope() {\n if (this.getStack().length <= 1) return false;\n return !!this.getStack().pop();\n }\n\n /**\n * @inheritDoc\n */\n withScope(callback) {\n const scope = this.pushScope();\n try {\n callback(scope);\n } finally {\n this.popScope();\n }\n }\n\n /**\n * @inheritDoc\n */\n getClient() {\n return this.getStackTop().client ;\n }\n\n /** Returns the scope of the top stack. */\n getScope() {\n return this.getStackTop().scope;\n }\n\n /** Returns the scope stack for domains or the process. */\n getStack() {\n return this._stack;\n }\n\n /** Returns the topmost scope layer in the order domain > local > process. */\n getStackTop() {\n return this._stack[this._stack.length - 1];\n }\n\n /**\n * @inheritDoc\n */\n captureException(exception, hint) {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error('Sentry syntheticException');\n this._withClient((client, scope) => {\n client.captureException(\n exception,\n {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n scope,\n );\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureMessage(\n message,\n // eslint-disable-next-line deprecation/deprecation\n level,\n hint,\n ) {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error(message);\n this._withClient((client, scope) => {\n client.captureMessage(\n message,\n level,\n {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n scope,\n );\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n captureEvent(event, hint) {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n if (!event.type) {\n this._lastEventId = eventId;\n }\n\n this._withClient((client, scope) => {\n client.captureEvent(event, { ...hint, event_id: eventId }, scope);\n });\n return eventId;\n }\n\n /**\n * @inheritDoc\n */\n lastEventId() {\n return this._lastEventId;\n }\n\n /**\n * @inheritDoc\n */\n addBreadcrumb(breadcrumb, hint) {\n const { scope, client } = this.getStackTop();\n\n if (!client) return;\n\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } =\n (client.getOptions && client.getOptions()) || {};\n\n if (maxBreadcrumbs <= 0) return;\n\n const timestamp = dateTimestampInSeconds();\n const mergedBreadcrumb = { timestamp, ...breadcrumb };\n const finalBreadcrumb = beforeBreadcrumb\n ? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) )\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n if (client.emit) {\n client.emit('beforeAddBreadcrumb', finalBreadcrumb, hint);\n }\n\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n }\n\n /**\n * @inheritDoc\n */\n setUser(user) {\n this.getScope().setUser(user);\n }\n\n /**\n * @inheritDoc\n */\n setTags(tags) {\n this.getScope().setTags(tags);\n }\n\n /**\n * @inheritDoc\n */\n setExtras(extras) {\n this.getScope().setExtras(extras);\n }\n\n /**\n * @inheritDoc\n */\n setTag(key, value) {\n this.getScope().setTag(key, value);\n }\n\n /**\n * @inheritDoc\n */\n setExtra(key, extra) {\n this.getScope().setExtra(key, extra);\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setContext(name, context) {\n this.getScope().setContext(name, context);\n }\n\n /**\n * @inheritDoc\n */\n configureScope(callback) {\n const { scope, client } = this.getStackTop();\n if (client) {\n callback(scope);\n }\n }\n\n /**\n * @inheritDoc\n */\n run(callback) {\n const oldHub = makeMain(this);\n try {\n callback(this);\n } finally {\n makeMain(oldHub);\n }\n }\n\n /**\n * @inheritDoc\n */\n getIntegration(integration) {\n const client = this.getClient();\n if (!client) return null;\n try {\n return client.getIntegration(integration);\n } catch (_oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);\n return null;\n }\n }\n\n /**\n * @inheritDoc\n */\n startTransaction(context, customSamplingContext) {\n const result = this._callExtensionMethod('startTransaction', context, customSamplingContext);\n\n if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && !result) {\n const client = this.getClient();\n if (!client) {\n // eslint-disable-next-line no-console\n console.warn(\n \"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'\",\n );\n } else {\n // eslint-disable-next-line no-console\n console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n`);\n }\n }\n\n return result;\n }\n\n /**\n * @inheritDoc\n */\n traceHeaders() {\n return this._callExtensionMethod('traceHeaders');\n }\n\n /**\n * @inheritDoc\n */\n captureSession(endSession = false) {\n // both send the update and pull the session from the scope\n if (endSession) {\n return this.endSession();\n }\n\n // only send the update\n this._sendSessionUpdate();\n }\n\n /**\n * @inheritDoc\n */\n endSession() {\n const layer = this.getStackTop();\n const scope = layer.scope;\n const session = scope.getSession();\n if (session) {\n closeSession(session);\n }\n this._sendSessionUpdate();\n\n // the session is over; take it off of the scope\n scope.setSession();\n }\n\n /**\n * @inheritDoc\n */\n startSession(context) {\n const { scope, client } = this.getStackTop();\n const { release, environment = DEFAULT_ENVIRONMENT } = (client && client.getOptions()) || {};\n\n // Will fetch userAgent if called from browser sdk\n const { userAgent } = GLOBAL_OBJ.navigator || {};\n\n const session = makeSession({\n release,\n environment,\n user: scope.getUser(),\n ...(userAgent && { userAgent }),\n ...context,\n });\n\n // End existing session if there's one\n const currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n this.endSession();\n\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n\n return session;\n }\n\n /**\n * Returns if default PII should be sent to Sentry and propagated in ourgoing requests\n * when Tracing is used.\n */\n shouldSendDefaultPii() {\n const client = this.getClient();\n const options = client && client.getOptions();\n return Boolean(options && options.sendDefaultPii);\n }\n\n /**\n * Sends the current Session on the scope\n */\n _sendSessionUpdate() {\n const { scope, client } = this.getStackTop();\n\n const session = scope.getSession();\n if (session && client && client.captureSession) {\n client.captureSession(session);\n }\n }\n\n /**\n * Internal helper function to call a method on the top client if it exists.\n *\n * @param method The method to call on the client.\n * @param args Arguments to pass to the client function.\n */\n _withClient(callback) {\n const { scope, client } = this.getStackTop();\n if (client) {\n callback(client, scope);\n }\n }\n\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-ignore Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _callExtensionMethod(method, ...args) {\n const carrier = getMainCarrier();\n const sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);\n }\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nfunction getMainCarrier() {\n GLOBAL_OBJ.__SENTRY__ = GLOBAL_OBJ.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return GLOBAL_OBJ;\n}\n\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n */\nfunction makeMain(hub) {\n const registry = getMainCarrier();\n const oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n */\nfunction getCurrentHub() {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n const hub = registry.__SENTRY__.acs.getCurrentHub();\n\n if (hub) {\n return hub;\n }\n }\n\n // Return hub that lives on a global object\n return getGlobalHub(registry);\n}\n\nfunction getGlobalHub(registry = getMainCarrier()) {\n // If there's no hub, or its an old API, assign a new one\n if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) {\n setHubOnCarrier(registry, new Hub());\n }\n\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * If the carrier does not contain a hub, a new hub is created with the global hub client and scope.\n */\nfunction ensureHubOnCarrier(carrier, parent = getGlobalHub()) {\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (!hasHubOnCarrier(carrier) || getHubFromCarrier(carrier).isOlderThan(API_VERSION)) {\n const globalHubTopStack = parent.getStackTop();\n setHubOnCarrier(carrier, new Hub(globalHubTopStack.client, Scope.clone(globalHubTopStack.scope)));\n }\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nfunction setAsyncContextStrategy(strategy) {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n registry.__SENTRY__ = registry.__SENTRY__ || {};\n registry.__SENTRY__.acs = strategy;\n}\n\n/**\n * Runs the supplied callback in its own async context. Async Context strategies are defined per SDK.\n *\n * @param callback The callback to run in its own async context\n * @param options Options to pass to the async context strategy\n * @returns The result of the callback\n */\nfunction runWithAsyncContext(callback, options = {}) {\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);\n }\n\n // if there was no strategy, fallback to just calling the callback\n return callback();\n}\n\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier) {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\nfunction getHubFromCarrier(carrier) {\n return getGlobalSingleton('hub', () => new Hub(), carrier);\n}\n\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\nfunction setHubOnCarrier(carrier, hub) {\n if (!carrier) return false;\n const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n __SENTRY__.hub = hub;\n return true;\n}\n\nexport { API_VERSION, Hub, ensureHubOnCarrier, getCurrentHub, getHubFromCarrier, getMainCarrier, makeMain, runWithAsyncContext, setAsyncContextStrategy, setHubOnCarrier };\n//# sourceMappingURL=hub.js.map\n","import { logger, getEventDescription, stringMatchesSomePattern } from '@sentry/utils';\n\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nconst DEFAULT_IGNORE_ERRORS = [/^Script error\\.?$/, /^Javascript error: Script error\\.? on line 0$/];\n\nconst DEFAULT_IGNORE_TRANSACTIONS = [\n /^.*healthcheck.*$/,\n /^.*healthy.*$/,\n /^.*live.*$/,\n /^.*ready.*$/,\n /^.*heartbeat.*$/,\n /^.*\\/health$/,\n /^.*\\/healthz$/,\n];\n\n/** Options for the InboundFilters integration */\n\n/** Inbound filters configurable by the user */\nclass InboundFilters {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'InboundFilters';}\n\n /**\n * @inheritDoc\n */\n\n constructor(options = {}) {\n this.name = InboundFilters.id;\n this._options = options;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(addGlobalEventProcessor, getCurrentHub) {\n const eventProcess = (event) => {\n const hub = getCurrentHub();\n if (hub) {\n const self = hub.getIntegration(InboundFilters);\n if (self) {\n const client = hub.getClient();\n const clientOptions = client ? client.getOptions() : {};\n const options = _mergeOptions(self._options, clientOptions);\n return _shouldDropEvent(event, options) ? null : event;\n }\n }\n return event;\n };\n\n eventProcess.id = this.name;\n addGlobalEventProcessor(eventProcess);\n }\n} InboundFilters.__initStatic();\n\n/** JSDoc */\nfunction _mergeOptions(\n internalOptions = {},\n clientOptions = {},\n) {\n return {\n allowUrls: [...(internalOptions.allowUrls || []), ...(clientOptions.allowUrls || [])],\n denyUrls: [...(internalOptions.denyUrls || []), ...(clientOptions.denyUrls || [])],\n ignoreErrors: [\n ...(internalOptions.ignoreErrors || []),\n ...(clientOptions.ignoreErrors || []),\n ...(internalOptions.disableErrorDefaults ? [] : DEFAULT_IGNORE_ERRORS),\n ],\n ignoreTransactions: [\n ...(internalOptions.ignoreTransactions || []),\n ...(clientOptions.ignoreTransactions || []),\n ...(internalOptions.disableTransactionDefaults ? [] : DEFAULT_IGNORE_TRANSACTIONS),\n ],\n ignoreInternal: internalOptions.ignoreInternal !== undefined ? internalOptions.ignoreInternal : true,\n };\n}\n\n/** JSDoc */\nfunction _shouldDropEvent(event, options) {\n if (options.ignoreInternal && _isSentryError(event)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(`Event dropped due to being internal Sentry Error.\\nEvent: ${getEventDescription(event)}`);\n return true;\n }\n if (_isIgnoredError(event, options.ignoreErrors)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to being matched by \\`ignoreErrors\\` option.\\nEvent: ${getEventDescription(event)}`,\n );\n return true;\n }\n if (_isIgnoredTransaction(event, options.ignoreTransactions)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to being matched by \\`ignoreTransactions\\` option.\\nEvent: ${getEventDescription(event)}`,\n );\n return true;\n }\n if (_isDeniedUrl(event, options.denyUrls)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to being matched by \\`denyUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n if (!_isAllowedUrl(event, options.allowUrls)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `Event dropped due to not being matched by \\`allowUrls\\` option.\\nEvent: ${getEventDescription(\n event,\n )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n );\n return true;\n }\n return false;\n}\n\nfunction _isIgnoredError(event, ignoreErrors) {\n // If event.type, this is not an error\n if (event.type || !ignoreErrors || !ignoreErrors.length) {\n return false;\n }\n\n return _getPossibleEventMessages(event).some(message => stringMatchesSomePattern(message, ignoreErrors));\n}\n\nfunction _isIgnoredTransaction(event, ignoreTransactions) {\n if (event.type !== 'transaction' || !ignoreTransactions || !ignoreTransactions.length) {\n return false;\n }\n\n const name = event.transaction;\n return name ? stringMatchesSomePattern(name, ignoreTransactions) : false;\n}\n\nfunction _isDeniedUrl(event, denyUrls) {\n // TODO: Use Glob instead?\n if (!denyUrls || !denyUrls.length) {\n return false;\n }\n const url = _getEventFilterUrl(event);\n return !url ? false : stringMatchesSomePattern(url, denyUrls);\n}\n\nfunction _isAllowedUrl(event, allowUrls) {\n // TODO: Use Glob instead?\n if (!allowUrls || !allowUrls.length) {\n return true;\n }\n const url = _getEventFilterUrl(event);\n return !url ? true : stringMatchesSomePattern(url, allowUrls);\n}\n\nfunction _getPossibleEventMessages(event) {\n if (event.message) {\n return [event.message];\n }\n if (event.exception) {\n const { values } = event.exception;\n try {\n const { type = '', value = '' } = (values && values[values.length - 1]) || {};\n return [`${value}`, `${type}: ${value}`];\n } catch (oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Cannot extract message for event ${getEventDescription(event)}`);\n return [];\n }\n }\n return [];\n}\n\nfunction _isSentryError(event) {\n try {\n // @ts-ignore can't be a sentry error if undefined\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return event.exception.values[0].type === 'SentryError';\n } catch (e) {\n // ignore\n }\n return false;\n}\n\nfunction _getLastValidUrl(frames = []) {\n for (let i = frames.length - 1; i >= 0; i--) {\n const frame = frames[i];\n\n if (frame && frame.filename !== '' && frame.filename !== '[native code]') {\n return frame.filename || null;\n }\n }\n\n return null;\n}\n\nfunction _getEventFilterUrl(event) {\n try {\n let frames;\n try {\n // @ts-ignore we only care about frames if the whole thing here is defined\n frames = event.exception.values[0].stacktrace.frames;\n } catch (e) {\n // ignore\n }\n return frames ? _getLastValidUrl(frames) : null;\n } catch (oO) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Cannot extract url for event ${getEventDescription(event)}`);\n return null;\n }\n}\n\nexport { InboundFilters, _mergeOptions, _shouldDropEvent };\n//# sourceMappingURL=inboundfilters.js.map\n","import { getOriginalFunction } from '@sentry/utils';\n\nlet originalFunctionToString;\n\n/** Patch toString calls to return proper name for wrapped functions */\nclass FunctionToString {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'FunctionToString';}\n\n /**\n * @inheritDoc\n */\n\n constructor() {\n this.name = FunctionToString.id;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce() {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n originalFunctionToString = Function.prototype.toString;\n\n // intrinsics (like Function.prototype) might be immutable in some environments\n // e.g. Node with --frozen-intrinsics, XS (an embedded JavaScript engine) or SES (a JavaScript proposal)\n try {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n Function.prototype.toString = function ( ...args) {\n const context = getOriginalFunction(this) || this;\n return originalFunctionToString.apply(context, args);\n };\n } catch (e) {\n // ignore errors here, just don't patch this\n }\n }\n} FunctionToString.__initStatic();\n\nexport { FunctionToString };\n//# sourceMappingURL=functiontostring.js.map\n","import { logger } from './logger.js';\n\n/** Regular expression used to parse a Dsn. */\nconst DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+)?)?@)([\\w.-]+)(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol) {\n return protocol === 'http' || protocol === 'https';\n}\n\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\nfunction dsnToString(dsn, withPassword = false) {\n const { host, path, pass, port, projectId, protocol, publicKey } = dsn;\n return (\n `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +\n `@${host}${port ? `:${port}` : ''}/${path ? `${path}/` : path}${projectId}`\n );\n}\n\n/**\n * Parses a Dsn from a given string.\n *\n * @param str A Dsn as string\n * @returns Dsn as DsnComponents or undefined if @param str is not a valid DSN string\n */\nfunction dsnFromString(str) {\n const match = DSN_REGEX.exec(str);\n\n if (!match) {\n // This should be logged to the console\n // eslint-disable-next-line no-console\n console.error(`Invalid Sentry Dsn: ${str}`);\n return undefined;\n }\n\n const [protocol, publicKey, pass = '', host, port = '', lastPath] = match.slice(1);\n let path = '';\n let projectId = lastPath;\n\n const split = projectId.split('/');\n if (split.length > 1) {\n path = split.slice(0, -1).join('/');\n projectId = split.pop() ;\n }\n\n if (projectId) {\n const projectMatch = projectId.match(/^\\d+/);\n if (projectMatch) {\n projectId = projectMatch[0];\n }\n }\n\n return dsnFromComponents({ host, pass, path, projectId, port, protocol: protocol , publicKey });\n}\n\nfunction dsnFromComponents(components) {\n return {\n protocol: components.protocol,\n publicKey: components.publicKey || '',\n pass: components.pass || '',\n host: components.host,\n port: components.port || '',\n path: components.path || '',\n projectId: components.projectId,\n };\n}\n\nfunction validateDsn(dsn) {\n if (!(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {\n return true;\n }\n\n const { port, projectId, protocol } = dsn;\n\n const requiredComponents = ['protocol', 'publicKey', 'host', 'projectId'];\n const hasMissingRequiredComponent = requiredComponents.find(component => {\n if (!dsn[component]) {\n logger.error(`Invalid Sentry Dsn: ${component} missing`);\n return true;\n }\n return false;\n });\n\n if (hasMissingRequiredComponent) {\n return false;\n }\n\n if (!projectId.match(/^\\d+$/)) {\n logger.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);\n return false;\n }\n\n if (!isValidProtocol(protocol)) {\n logger.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);\n return false;\n }\n\n if (port && isNaN(parseInt(port, 10))) {\n logger.error(`Invalid Sentry Dsn: Invalid port ${port}`);\n return false;\n }\n\n return true;\n}\n\n/**\n * Creates a valid Sentry Dsn object, identifying a Sentry instance and project.\n * @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source\n */\nfunction makeDsn(from) {\n const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n if (!components || !validateDsn(components)) {\n return undefined;\n }\n return components;\n}\n\nexport { dsnFromString, dsnToString, makeDsn };\n//# sourceMappingURL=dsn.js.map\n","import { makeDsn, dsnToString, urlEncode } from '@sentry/utils';\n\nconst SENTRY_API_VERSION = '7';\n\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\nfunction getBaseApiEndpoint(dsn) {\n const protocol = dsn.protocol ? `${dsn.protocol}:` : '';\n const port = dsn.port ? `:${dsn.port}` : '';\n return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`;\n}\n\n/** Returns the ingest API endpoint for target. */\nfunction _getIngestEndpoint(dsn) {\n return `${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`;\n}\n\n/** Returns a URL-encoded string with auth config suitable for a query string. */\nfunction _encodedAuth(dsn, sdkInfo) {\n return urlEncode({\n // We send only the minimum set of required information. See\n // https://github.com/getsentry/sentry-javascript/issues/2572.\n sentry_key: dsn.publicKey,\n sentry_version: SENTRY_API_VERSION,\n ...(sdkInfo && { sentry_client: `${sdkInfo.name}/${sdkInfo.version}` }),\n });\n}\n\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\nfunction getEnvelopeEndpointWithUrlEncodedAuth(\n dsn,\n // TODO (v8): Remove `tunnelOrOptions` in favor of `options`, and use the substitute code below\n // options: ClientOptions = {} as ClientOptions,\n tunnelOrOptions = {} ,\n) {\n // TODO (v8): Use this code instead\n // const { tunnel, _metadata = {} } = options;\n // return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, _metadata.sdk)}`;\n\n const tunnel = typeof tunnelOrOptions === 'string' ? tunnelOrOptions : tunnelOrOptions.tunnel;\n const sdkInfo =\n typeof tunnelOrOptions === 'string' || !tunnelOrOptions._metadata ? undefined : tunnelOrOptions._metadata.sdk;\n\n return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;\n}\n\n/** Returns the url to the report dialog endpoint. */\nfunction getReportDialogEndpoint(\n dsnLike,\n dialogOptions\n\n,\n) {\n const dsn = makeDsn(dsnLike);\n if (!dsn) {\n return '';\n }\n\n const endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;\n\n let encodedOptions = `dsn=${dsnToString(dsn)}`;\n for (const key in dialogOptions) {\n if (key === 'dsn') {\n continue;\n }\n\n if (key === 'user') {\n const user = dialogOptions.user;\n if (!user) {\n continue;\n }\n if (user.name) {\n encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n }\n if (user.email) {\n encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n }\n } else {\n encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] )}`;\n }\n }\n\n return `${endpoint}?${encodedOptions}`;\n}\n\nexport { getEnvelopeEndpointWithUrlEncodedAuth, getReportDialogEndpoint };\n//# sourceMappingURL=api.js.map\n","import { logger, uuid4 } from '@sentry/utils';\nimport { getCurrentHub } from './hub.js';\n\n// Note: All functions in this file are typed with a return value of `ReturnType`,\n// where HUB_FUNCTION is some method on the Hub class.\n//\n// This is done to make sure the top level SDK methods stay in sync with the hub methods.\n// Although every method here has an explicit return type, some of them (that map to void returns) do not\n// contain `return` keywords. This is done to save on bundle size, as `return` is not minifiable.\n\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception An exception-like object.\n * @param captureContext Additional scope data to apply to exception event.\n * @returns The generated eventId.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\nfunction captureException(exception, captureContext) {\n return getCurrentHub().captureException(exception, { captureContext });\n}\n\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param Severity Define the level of the message.\n * @returns The generated eventId.\n */\nfunction captureMessage(\n message,\n // eslint-disable-next-line deprecation/deprecation\n captureContext,\n) {\n // This is necessary to provide explicit scopes upgrade, without changing the original\n // arity of the `captureMessage(message, level)` method.\n const level = typeof captureContext === 'string' ? captureContext : undefined;\n const context = typeof captureContext !== 'string' ? { captureContext } : undefined;\n return getCurrentHub().captureMessage(message, level, context);\n}\n\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @returns The generated eventId.\n */\nfunction captureEvent(event, hint) {\n return getCurrentHub().captureEvent(event, hint);\n}\n\n/**\n * Callback to set context information onto the scope.\n * @param callback Callback function that receives Scope.\n */\nfunction configureScope(callback) {\n getCurrentHub().configureScope(callback);\n}\n\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n *\n * @param breadcrumb The breadcrumb to record.\n */\nfunction addBreadcrumb(breadcrumb) {\n getCurrentHub().addBreadcrumb(breadcrumb);\n}\n\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction setContext(name, context) {\n getCurrentHub().setContext(name, context);\n}\n\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nfunction setExtras(extras) {\n getCurrentHub().setExtras(extras);\n}\n\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nfunction setExtra(key, extra) {\n getCurrentHub().setExtra(key, extra);\n}\n\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nfunction setTags(tags) {\n getCurrentHub().setTags(tags);\n}\n\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nfunction setTag(key, value) {\n getCurrentHub().setTag(key, value);\n}\n\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nfunction setUser(user) {\n getCurrentHub().setUser(user);\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n *\n * This is essentially a convenience function for:\n *\n * pushScope();\n * callback();\n * popScope();\n *\n * @param callback that will be enclosed into push/popScope.\n */\nfunction withScope(callback) {\n getCurrentHub().withScope(callback);\n}\n\n/**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.finish()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * NOTE: This function should only be used for *manual* instrumentation. Auto-instrumentation should call\n * `startTransaction` directly on the hub.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n */\nfunction startTransaction(\n context,\n customSamplingContext,\n) {\n return getCurrentHub().startTransaction({ ...context }, customSamplingContext);\n}\n\n/**\n * Create a cron monitor check in and send it to Sentry.\n *\n * @param checkIn An object that describes a check in.\n * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n * to create a monitor automatically when sending a check in.\n */\nfunction captureCheckIn(checkIn, upsertMonitorConfig) {\n const hub = getCurrentHub();\n const scope = hub.getScope();\n const client = hub.getClient();\n if (!client) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot capture check-in. No client defined.');\n } else if (!client.captureCheckIn) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot capture check-in. Client does not support sending check-ins.');\n } else {\n return client.captureCheckIn(checkIn, upsertMonitorConfig, scope);\n }\n\n return uuid4();\n}\n\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nasync function flush(timeout) {\n const client = getCurrentHub().getClient();\n if (client) {\n return client.flush(timeout);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events. No client defined.');\n return Promise.resolve(false);\n}\n\n/**\n * Call `close()` on the current client, if there is one. See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nasync function close(timeout) {\n const client = getCurrentHub().getClient();\n if (client) {\n return client.close(timeout);\n }\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Cannot flush events and disable SDK. No client defined.');\n return Promise.resolve(false);\n}\n\n/**\n * This is the getter for lastEventId.\n *\n * @returns The last event id of a captured event.\n */\nfunction lastEventId() {\n return getCurrentHub().lastEventId();\n}\n\nexport { addBreadcrumb, captureCheckIn, captureEvent, captureException, captureMessage, close, configureScope, flush, lastEventId, setContext, setExtra, setExtras, setTag, setTags, setUser, startTransaction, withScope };\n//# sourceMappingURL=exports.js.map\n","import { withScope, captureException } from '@sentry/core';\nimport { GLOBAL_OBJ, getOriginalFunction, markFunctionWrapped, addNonEnumerableProperty, addExceptionTypeValue, addExceptionMechanism } from '@sentry/utils';\n\nconst WINDOW = GLOBAL_OBJ ;\n\nlet ignoreOnError = 0;\n\n/**\n * @hidden\n */\nfunction shouldIgnoreOnError() {\n return ignoreOnError > 0;\n}\n\n/**\n * @hidden\n */\nfunction ignoreNextOnError() {\n // onerror should trigger before setTimeout\n ignoreOnError++;\n setTimeout(() => {\n ignoreOnError--;\n });\n}\n\n/**\n * Instruments the given function and sends an event to Sentry every time the\n * function throws an exception.\n *\n * @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always\n * has a correct `this` context.\n * @returns The wrapped function.\n * @hidden\n */\nfunction wrap(\n fn,\n options\n\n = {},\n before,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n) {\n // for future readers what this does is wrap a function and then create\n // a bi-directional wrapping between them.\n //\n // example: wrapped = wrap(original);\n // original.__sentry_wrapped__ -> wrapped\n // wrapped.__sentry_original__ -> original\n\n if (typeof fn !== 'function') {\n return fn;\n }\n\n try {\n // if we're dealing with a function that was previously wrapped, return\n // the original wrapper.\n const wrapper = fn.__sentry_wrapped__;\n if (wrapper) {\n return wrapper;\n }\n\n // We don't wanna wrap it twice\n if (getOriginalFunction(fn)) {\n return fn;\n }\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n // Bail on wrapping and return the function as-is (defers to window.onerror).\n return fn;\n }\n\n /* eslint-disable prefer-rest-params */\n // It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`\n const sentryWrapped = function () {\n const args = Array.prototype.slice.call(arguments);\n\n try {\n if (before && typeof before === 'function') {\n before.apply(this, arguments);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n const wrappedArguments = args.map((arg) => wrap(arg, options));\n\n // Attempt to invoke user-land function\n // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n // means the sentry.javascript SDK caught an error invoking your application code. This\n // is expected behavior and NOT indicative of a bug with sentry.javascript.\n return fn.apply(this, wrappedArguments);\n } catch (ex) {\n ignoreNextOnError();\n\n withScope((scope) => {\n scope.addEventProcessor((event) => {\n if (options.mechanism) {\n addExceptionTypeValue(event, undefined, undefined);\n addExceptionMechanism(event, options.mechanism);\n }\n\n event.extra = {\n ...event.extra,\n arguments: args,\n };\n\n return event;\n });\n\n captureException(ex);\n });\n\n throw ex;\n }\n };\n /* eslint-enable prefer-rest-params */\n\n // Accessing some objects may throw\n // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n try {\n for (const property in fn) {\n if (Object.prototype.hasOwnProperty.call(fn, property)) {\n sentryWrapped[property] = fn[property];\n }\n }\n } catch (_oO) {} // eslint-disable-line no-empty\n\n // Signal that this function has been wrapped/filled already\n // for both debugging and to prevent it to being wrapped/filled twice\n markFunctionWrapped(sentryWrapped, fn);\n\n addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped);\n\n // Restore original function name (not all browsers allow that)\n try {\n const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name') ;\n if (descriptor.configurable) {\n Object.defineProperty(sentryWrapped, 'name', {\n get() {\n return fn.name;\n },\n });\n }\n // eslint-disable-next-line no-empty\n } catch (_oO) {}\n\n return sentryWrapped;\n}\n\n/**\n * All properties the report dialog supports\n */\n\nexport { WINDOW, ignoreNextOnError, shouldIgnoreOnError, wrap };\n//# sourceMappingURL=helpers.js.map\n","import { node } from './node-stack-trace.js';\n\nconst STACKTRACE_FRAME_LIMIT = 50;\n// Used to sanitize webpack (error: *) wrapped stack errors\nconst WEBPACK_ERROR_REGEXP = /\\(error: (.*)\\)/;\nconst STRIP_FRAME_REGEXP = /captureMessage|captureException/;\n\n/**\n * Creates a stack parser with the supplied line parsers\n *\n * StackFrames are returned in the correct order for Sentry Exception\n * frames and with Sentry SDK internal frames removed from the top and bottom\n *\n */\nfunction createStackParser(...parsers) {\n const sortedParsers = parsers.sort((a, b) => a[0] - b[0]).map(p => p[1]);\n\n return (stack, skipFirst = 0) => {\n const frames = [];\n const lines = stack.split('\\n');\n\n for (let i = skipFirst; i < lines.length; i++) {\n const line = lines[i];\n // Ignore lines over 1kb as they are unlikely to be stack frames.\n // Many of the regular expressions use backtracking which results in run time that increases exponentially with\n // input size. Huge strings can result in hangs/Denial of Service:\n // https://github.com/getsentry/sentry-javascript/issues/2286\n if (line.length > 1024) {\n continue;\n }\n\n // https://github.com/getsentry/sentry-javascript/issues/5459\n // Remove webpack (error: *) wrappers\n const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, '$1') : line;\n\n // https://github.com/getsentry/sentry-javascript/issues/7813\n // Skip Error: lines\n if (cleanedLine.match(/\\S*Error: /)) {\n continue;\n }\n\n for (const parser of sortedParsers) {\n const frame = parser(cleanedLine);\n\n if (frame) {\n frames.push(frame);\n break;\n }\n }\n\n if (frames.length >= STACKTRACE_FRAME_LIMIT) {\n break;\n }\n }\n\n return stripSentryFramesAndReverse(frames);\n };\n}\n\n/**\n * Gets a stack parser implementation from Options.stackParser\n * @see Options\n *\n * If options contains an array of line parsers, it is converted into a parser\n */\nfunction stackParserFromStackParserOptions(stackParser) {\n if (Array.isArray(stackParser)) {\n return createStackParser(...stackParser);\n }\n return stackParser;\n}\n\n/**\n * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.\n * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the\n * function that caused the crash is the last frame in the array.\n * @hidden\n */\nfunction stripSentryFramesAndReverse(stack) {\n if (!stack.length) {\n return [];\n }\n\n const localStack = Array.from(stack);\n\n // If stack starts with one of our API calls, remove it (starts, meaning it's the top of the stack - aka last call)\n if (/sentryWrapped/.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n }\n\n // Reversing in the middle of the procedure allows us to just pop the values off the stack\n localStack.reverse();\n\n // If stack ends with one of our internal API calls, remove it (ends, meaning it's the bottom of the stack - aka top-most call)\n if (STRIP_FRAME_REGEXP.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n\n // When using synthetic events, we will have a 2 levels deep stack, as `new Error('Sentry syntheticException')`\n // is produced within the hub itself, making it:\n //\n // Sentry.captureException()\n // getCurrentHub().captureException()\n //\n // instead of just the top `Sentry` call itself.\n // This forces us to possibly strip an additional frame in the exact same was as above.\n if (STRIP_FRAME_REGEXP.test(localStack[localStack.length - 1].function || '')) {\n localStack.pop();\n }\n }\n\n return localStack.slice(0, STACKTRACE_FRAME_LIMIT).map(frame => ({\n ...frame,\n filename: frame.filename || localStack[localStack.length - 1].filename,\n function: frame.function || '?',\n }));\n}\n\nconst defaultFunctionName = '';\n\n/**\n * Safely extract function name from itself\n */\nfunction getFunctionName(fn) {\n try {\n if (!fn || typeof fn !== 'function') {\n return defaultFunctionName;\n }\n return fn.name || defaultFunctionName;\n } catch (e) {\n // Just accessing custom props in some Selenium environments\n // can cause a \"Permission denied\" exception (see raven-js#495).\n return defaultFunctionName;\n }\n}\n\n/**\n * Node.js stack line parser\n *\n * This is in @sentry/utils so it can be used from the Electron SDK in the browser for when `nodeIntegration == true`.\n * This allows it to be used without referencing or importing any node specific code which causes bundlers to complain\n */\nfunction nodeStackLineParser(getModule) {\n return [90, node(getModule)];\n}\n\nexport { createStackParser, getFunctionName, nodeStackLineParser, stackParserFromStackParserOptions, stripSentryFramesAndReverse };\n//# sourceMappingURL=stacktrace.js.map\n","import { logger } from './logger.js';\nimport { getGlobalObject } from './worldwide.js';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsErrorEvent() {\n try {\n new ErrorEvent('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsDOMError() {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-ignore It really needs 1 argument, not 0.\n new DOMError('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsDOMException() {\n try {\n new DOMException('');\n return true;\n } catch (e) {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsFetch() {\n if (!('fetch' in WINDOW)) {\n return false;\n }\n\n try {\n new Headers();\n new Request('http://www.example.com');\n new Response();\n return true;\n } catch (e) {\n return false;\n }\n}\n/**\n * isNativeFetch checks if the given function is a native implementation of fetch()\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nfunction isNativeFetch(func) {\n return func && /^function fetch\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nfunction supportsNativeFetch() {\n if (!supportsFetch()) {\n return false;\n }\n\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFetch(WINDOW.fetch)) {\n return true;\n }\n\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n let result = false;\n const doc = WINDOW.document;\n // eslint-disable-next-line deprecation/deprecation\n if (doc && typeof (doc.createElement ) === 'function') {\n try {\n const sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow && sandbox.contentWindow.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFetch(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n } catch (err) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n\n return result;\n}\n\n/**\n * Tells whether current environment supports ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsReportingObserver() {\n return 'ReportingObserver' in WINDOW;\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsReferrerPolicy() {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n // (see https://caniuse.com/#feat=referrer-policy),\n // it doesn't. And it throws an exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n\n if (!supportsFetch()) {\n return false;\n }\n\n try {\n new Request('_', {\n referrerPolicy: 'origin' ,\n });\n return true;\n } catch (e) {\n return false;\n }\n}\n\nexport { isNativeFetch, supportsDOMError, supportsDOMException, supportsErrorEvent, supportsFetch, supportsNativeFetch, supportsReferrerPolicy, supportsReportingObserver };\n//# sourceMappingURL=supports.js.map\n","import { getGlobalObject } from '../worldwide.js';\n\n// Based on https://github.com/angular/angular.js/pull/13945/files\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nfunction supportsHistory() {\n // NOTE: in Chrome App environment, touching history.pushState, *even inside\n // a try/catch block*, will cause Chrome to output an error to console.error\n // borrowed from: https://github.com/angular/angular.js/pull/13945/files\n /* eslint-disable @typescript-eslint/no-unsafe-member-access */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const chrome = (WINDOW ).chrome;\n const isChromePackagedApp = chrome && chrome.app && chrome.app.runtime;\n /* eslint-enable @typescript-eslint/no-unsafe-member-access */\n const hasHistoryApi = 'history' in WINDOW && !!WINDOW.history.pushState && !!WINDOW.history.replaceState;\n\n return !isChromePackagedApp && hasHistoryApi;\n}\n\nexport { supportsHistory };\n//# sourceMappingURL=supportsHistory.js.map\n","import { isString } from './is.js';\nimport { logger, CONSOLE_LEVELS } from './logger.js';\nimport { fill } from './object.js';\nimport { getFunctionName } from './stacktrace.js';\nimport { supportsNativeFetch } from './supports.js';\nimport { getGlobalObject } from './worldwide.js';\nimport { supportsHistory } from './vendor/supportsHistory.js';\n\n// eslint-disable-next-line deprecation/deprecation\nconst WINDOW = getGlobalObject();\n\nconst SENTRY_XHR_DATA_KEY = '__sentry_xhr_v2__';\n\n/**\n * Instrument native APIs to call handlers that can be used to create breadcrumbs, APM spans etc.\n * - Console API\n * - Fetch API\n * - XHR API\n * - History API\n * - DOM API (click/typing)\n * - Error API\n * - UnhandledRejection API\n */\n\nconst handlers = {};\nconst instrumented = {};\n\n/** Instruments given API */\nfunction instrument(type) {\n if (instrumented[type]) {\n return;\n }\n\n instrumented[type] = true;\n\n switch (type) {\n case 'console':\n instrumentConsole();\n break;\n case 'dom':\n instrumentDOM();\n break;\n case 'xhr':\n instrumentXHR();\n break;\n case 'fetch':\n instrumentFetch();\n break;\n case 'history':\n instrumentHistory();\n break;\n case 'error':\n instrumentError();\n break;\n case 'unhandledrejection':\n instrumentUnhandledRejection();\n break;\n default:\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('unknown instrumentation type:', type);\n return;\n }\n}\n\n/**\n * Add handler that will be called when given type of instrumentation triggers.\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nfunction addInstrumentationHandler(type, callback) {\n handlers[type] = handlers[type] || [];\n (handlers[type] ).push(callback);\n instrument(type);\n}\n\n/** JSDoc */\nfunction triggerHandlers(type, data) {\n if (!type || !handlers[type]) {\n return;\n }\n\n for (const handler of handlers[type] || []) {\n try {\n handler(data);\n } catch (e) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.error(\n `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n e,\n );\n }\n }\n}\n\n/** JSDoc */\nfunction instrumentConsole() {\n if (!('console' in WINDOW)) {\n return;\n }\n\n CONSOLE_LEVELS.forEach(function (level) {\n if (!(level in WINDOW.console)) {\n return;\n }\n\n fill(WINDOW.console, level, function (originalConsoleMethod) {\n return function (...args) {\n triggerHandlers('console', { args, level });\n\n // this fails for some browsers. :(\n if (originalConsoleMethod) {\n originalConsoleMethod.apply(WINDOW.console, args);\n }\n };\n });\n });\n}\n\n/** JSDoc */\nfunction instrumentFetch() {\n if (!supportsNativeFetch()) {\n return;\n }\n\n fill(WINDOW, 'fetch', function (originalFetch) {\n return function (...args) {\n const { method, url } = parseFetchArgs(args);\n\n const handlerData = {\n args,\n fetchData: {\n method,\n url,\n },\n startTimestamp: Date.now(),\n };\n\n triggerHandlers('fetch', {\n ...handlerData,\n });\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(WINDOW, args).then(\n (response) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n response,\n });\n return response;\n },\n (error) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: Date.now(),\n error,\n });\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n },\n );\n };\n });\n}\n\nfunction hasProp(obj, prop) {\n return !!obj && typeof obj === 'object' && !!(obj )[prop];\n}\n\nfunction getUrlFromResource(resource) {\n if (typeof resource === 'string') {\n return resource;\n }\n\n if (!resource) {\n return '';\n }\n\n if (hasProp(resource, 'url')) {\n return resource.url;\n }\n\n if (resource.toString) {\n return resource.toString();\n }\n\n return '';\n}\n\n/**\n * Parses the fetch arguments to find the used Http method and the url of the request\n */\nfunction parseFetchArgs(fetchArgs) {\n if (fetchArgs.length === 0) {\n return { method: 'GET', url: '' };\n }\n\n if (fetchArgs.length === 2) {\n const [url, options] = fetchArgs ;\n\n return {\n url: getUrlFromResource(url),\n method: hasProp(options, 'method') ? String(options.method).toUpperCase() : 'GET',\n };\n }\n\n const arg = fetchArgs[0];\n return {\n url: getUrlFromResource(arg ),\n method: hasProp(arg, 'method') ? String(arg.method).toUpperCase() : 'GET',\n };\n}\n\n/** JSDoc */\nfunction instrumentXHR() {\n if (!('XMLHttpRequest' in WINDOW)) {\n return;\n }\n\n const xhrproto = XMLHttpRequest.prototype;\n\n fill(xhrproto, 'open', function (originalOpen) {\n return function ( ...args) {\n const url = args[1];\n const xhrInfo = (this[SENTRY_XHR_DATA_KEY] = {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n method: isString(args[0]) ? args[0].toUpperCase() : args[0],\n url: args[1],\n request_headers: {},\n });\n\n // if Sentry key appears in URL, don't capture it as a request\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n if (isString(url) && xhrInfo.method === 'POST' && url.match(/sentry_key/)) {\n this.__sentry_own_request__ = true;\n }\n\n const onreadystatechangeHandler = () => {\n // For whatever reason, this is not the same instance here as from the outer method\n const xhrInfo = this[SENTRY_XHR_DATA_KEY];\n\n if (!xhrInfo) {\n return;\n }\n\n if (this.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n xhrInfo.status_code = this.status;\n } catch (e) {\n /* do nothing */\n }\n\n triggerHandlers('xhr', {\n args: args ,\n endTimestamp: Date.now(),\n startTimestamp: Date.now(),\n xhr: this,\n } );\n }\n };\n\n if ('onreadystatechange' in this && typeof this.onreadystatechange === 'function') {\n fill(this, 'onreadystatechange', function (original) {\n return function ( ...readyStateArgs) {\n onreadystatechangeHandler();\n return original.apply(this, readyStateArgs);\n };\n });\n } else {\n this.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n // Intercepting `setRequestHeader` to access the request headers of XHR instance.\n // This will only work for user/library defined headers, not for the default/browser-assigned headers.\n // Request cookies are also unavailable for XHR, as `Cookie` header can't be defined by `setRequestHeader`.\n fill(this, 'setRequestHeader', function (original) {\n return function ( ...setRequestHeaderArgs) {\n const [header, value] = setRequestHeaderArgs ;\n\n const xhrInfo = this[SENTRY_XHR_DATA_KEY];\n\n if (xhrInfo) {\n xhrInfo.request_headers[header.toLowerCase()] = value;\n }\n\n return original.apply(this, setRequestHeaderArgs);\n };\n });\n\n return originalOpen.apply(this, args);\n };\n });\n\n fill(xhrproto, 'send', function (originalSend) {\n return function ( ...args) {\n const sentryXhrData = this[SENTRY_XHR_DATA_KEY];\n if (sentryXhrData && args[0] !== undefined) {\n sentryXhrData.body = args[0];\n }\n\n triggerHandlers('xhr', {\n args,\n startTimestamp: Date.now(),\n xhr: this,\n });\n\n return originalSend.apply(this, args);\n };\n });\n}\n\nlet lastHref;\n\n/** JSDoc */\nfunction instrumentHistory() {\n if (!supportsHistory()) {\n return;\n }\n\n const oldOnPopState = WINDOW.onpopstate;\n WINDOW.onpopstate = function ( ...args) {\n const to = WINDOW.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n const from = lastHref;\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n if (oldOnPopState) {\n // Apparently this can throw in Firefox when incorrectly implemented plugin is installed.\n // https://github.com/getsentry/sentry-javascript/issues/3344\n // https://github.com/bugsnag/bugsnag-js/issues/469\n try {\n return oldOnPopState.apply(this, args);\n } catch (_oO) {\n // no-empty\n }\n }\n };\n\n /** @hidden */\n function historyReplacementFunction(originalHistoryFunction) {\n return function ( ...args) {\n const url = args.length > 2 ? args[2] : undefined;\n if (url) {\n // coerce to string (this is what pushState does)\n const from = lastHref;\n const to = String(url);\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n triggerHandlers('history', {\n from,\n to,\n });\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(WINDOW.history, 'pushState', historyReplacementFunction);\n fill(WINDOW.history, 'replaceState', historyReplacementFunction);\n}\n\nconst debounceDuration = 1000;\nlet debounceTimerID;\nlet lastCapturedEvent;\n\n/**\n * Decide whether the current event should finish the debounce of previously captured one.\n * @param previous previously captured event\n * @param current event to be captured\n */\nfunction shouldShortcircuitPreviousDebounce(previous, current) {\n // If there was no previous event, it should always be swapped for the new one.\n if (!previous) {\n return true;\n }\n\n // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n if (previous.type !== current.type) {\n return true;\n }\n\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (previous.target !== current.target) {\n return true;\n }\n } catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n\n // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n return false;\n}\n\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(event) {\n // We are only interested in filtering `keypress` events for now.\n if (event.type !== 'keypress') {\n return false;\n }\n\n try {\n const target = event.target ;\n\n if (!target || !target.tagName) {\n return true;\n }\n\n // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n } catch (e) {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n\n return true;\n}\n\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n * @param handler function that will be triggered\n * @param globalListener indicates whether event was captured by the global event listener\n * @returns wrapped breadcrumb events handler\n * @hidden\n */\nfunction makeDOMEventHandler(handler, globalListener = false) {\n return (event) => {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || lastCapturedEvent === event) {\n return;\n }\n\n // We always want to skip _some_ events.\n if (shouldSkipDOMEvent(event)) {\n return;\n }\n\n const name = event.type === 'keypress' ? 'input' : event.type;\n\n // If there is no debounce timer, it means that we can safely capture the new event and store it for future comparisons.\n if (debounceTimerID === undefined) {\n handler({\n event: event,\n name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n // If there is a debounce awaiting, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n else if (shouldShortcircuitPreviousDebounce(lastCapturedEvent, event)) {\n handler({\n event: event,\n name,\n global: globalListener,\n });\n lastCapturedEvent = event;\n }\n\n // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n clearTimeout(debounceTimerID);\n debounceTimerID = WINDOW.setTimeout(() => {\n debounceTimerID = undefined;\n }, debounceDuration);\n };\n}\n\n/** JSDoc */\nfunction instrumentDOM() {\n if (!('document' in WINDOW)) {\n return;\n }\n\n // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n const triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n const globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n WINDOW.document.addEventListener('click', globalDOMEventHandler, false);\n WINDOW.document.addEventListener('keypress', globalDOMEventHandler, false);\n\n // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n ['EventTarget', 'Node'].forEach((target) => {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const proto = (WINDOW )[target] && (WINDOW )[target].prototype;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (originalAddEventListener) {\n return function (\n\n type,\n listener,\n options,\n ) {\n if (type === 'click' || type == 'keypress') {\n try {\n const el = this ;\n const handlers = (el.__sentry_instrumentation_handlers__ = el.__sentry_instrumentation_handlers__ || {});\n const handlerForType = (handlers[type] = handlers[type] || { refCount: 0 });\n\n if (!handlerForType.handler) {\n const handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n\n handlerForType.refCount++;\n } catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (originalRemoveEventListener) {\n return function (\n\n type,\n listener,\n options,\n ) {\n if (type === 'click' || type == 'keypress') {\n try {\n const el = this ;\n const handlers = el.__sentry_instrumentation_handlers__ || {};\n const handlerForType = handlers[type];\n\n if (handlerForType) {\n handlerForType.refCount--;\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\n handlerForType.handler = undefined;\n delete handlers[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n }\n\n // If there are no longer any custom handlers of any type on this element, cleanup everything.\n if (Object.keys(handlers).length === 0) {\n delete el.__sentry_instrumentation_handlers__;\n }\n }\n } catch (e) {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListenrs` calls with no proper `this` context.\n }\n }\n\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n },\n );\n });\n}\n\nlet _oldOnErrorHandler = null;\n/** JSDoc */\nfunction instrumentError() {\n _oldOnErrorHandler = WINDOW.onerror;\n\n WINDOW.onerror = function (msg, url, line, column, error) {\n triggerHandlers('error', {\n column,\n error,\n line,\n msg,\n url,\n });\n\n if (_oldOnErrorHandler && !_oldOnErrorHandler.__SENTRY_LOADER__) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnErrorHandler.apply(this, arguments);\n }\n\n return false;\n };\n\n WINDOW.onerror.__SENTRY_INSTRUMENTED__ = true;\n}\n\nlet _oldOnUnhandledRejectionHandler = null;\n/** JSDoc */\nfunction instrumentUnhandledRejection() {\n _oldOnUnhandledRejectionHandler = WINDOW.onunhandledrejection;\n\n WINDOW.onunhandledrejection = function (e) {\n triggerHandlers('unhandledrejection', e);\n\n if (_oldOnUnhandledRejectionHandler && !_oldOnUnhandledRejectionHandler.__SENTRY_LOADER__) {\n // eslint-disable-next-line prefer-rest-params\n return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n }\n\n return true;\n };\n\n WINDOW.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;\n}\n\nexport { SENTRY_XHR_DATA_KEY, addInstrumentationHandler, parseFetchArgs };\n//# sourceMappingURL=instrument.js.map\n","/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\n/**\n * Helper to decycle json objects\n */\nfunction memoBuilder() {\n const hasWeakSet = typeof WeakSet === 'function';\n const inner = hasWeakSet ? new WeakSet() : [];\n function memoize(obj) {\n if (hasWeakSet) {\n if (inner.has(obj)) {\n return true;\n }\n inner.add(obj);\n return false;\n }\n // eslint-disable-next-line @typescript-eslint/prefer-for-of\n for (let i = 0; i < inner.length; i++) {\n const value = inner[i];\n if (value === obj) {\n return true;\n }\n }\n inner.push(obj);\n return false;\n }\n\n function unmemoize(obj) {\n if (hasWeakSet) {\n inner.delete(obj);\n } else {\n for (let i = 0; i < inner.length; i++) {\n if (inner[i] === obj) {\n inner.splice(i, 1);\n break;\n }\n }\n }\n }\n return [memoize, unmemoize];\n}\n\nexport { memoBuilder };\n//# sourceMappingURL=memo.js.map\n","import { isNaN, isSyntheticEvent } from './is.js';\nimport { memoBuilder } from './memo.js';\nimport { convertToPlainObject } from './object.js';\nimport { getFunctionName } from './stacktrace.js';\n\n/**\n * Recursively normalizes the given object.\n *\n * - Creates a copy to prevent original input mutation\n * - Skips non-enumerable properties\n * - When stringifying, calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializable values (`undefined`/`NaN`/functions) to serializable format\n * - Translates known global objects/classes to a string representations\n * - Takes care of `Error` object serialization\n * - Optionally limits depth of final output\n * - Optionally limits number of properties/elements included in any single object/array\n *\n * @param input The object to be normalized.\n * @param depth The max depth to which to normalize the object. (Anything deeper stringified whole.)\n * @param maxProperties The max number of elements or properties to be included in any single array or\n * object in the normallized output.\n * @returns A normalized version of the object, or `\"**non-serializable**\"` if any errors are thrown during normalization.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction normalize(input, depth = 100, maxProperties = +Infinity) {\n try {\n // since we're at the outermost level, we don't provide a key\n return visit('', input, depth, maxProperties);\n } catch (err) {\n return { ERROR: `**non-serializable** (${err})` };\n }\n}\n\n/** JSDoc */\nfunction normalizeToSize(\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n object,\n // Default Node.js REPL depth\n depth = 3,\n // 100kB, as 200kB is max payload size, so half sounds reasonable\n maxSize = 100 * 1024,\n) {\n const normalized = normalize(object, depth);\n\n if (jsonSize(normalized) > maxSize) {\n return normalizeToSize(object, depth - 1, maxSize);\n }\n\n return normalized ;\n}\n\n/**\n * Visits a node to perform normalization on it\n *\n * @param key The key corresponding to the given node\n * @param value The node to be visited\n * @param depth Optional number indicating the maximum recursion depth\n * @param maxProperties Optional maximum number of properties/elements included in any single object/array\n * @param memo Optional Memo class handling decycling\n */\nfunction visit(\n key,\n value,\n depth = +Infinity,\n maxProperties = +Infinity,\n memo = memoBuilder(),\n) {\n const [memoize, unmemoize] = memo;\n\n // Get the simple cases out of the way first\n if (\n value == null || // this matches null and undefined -> eqeq not eqeqeq\n (['number', 'boolean', 'string'].includes(typeof value) && !isNaN(value))\n ) {\n return value ;\n }\n\n const stringified = stringifyValue(key, value);\n\n // Anything we could potentially dig into more (objects or arrays) will have come back as `\"[object XXXX]\"`.\n // Everything else will have already been serialized, so if we don't see that pattern, we're done.\n if (!stringified.startsWith('[object ')) {\n return stringified;\n }\n\n // From here on, we can assert that `value` is either an object or an array.\n\n // Do not normalize objects that we know have already been normalized. As a general rule, the\n // \"__sentry_skip_normalization__\" property should only be used sparingly and only should only be set on objects that\n // have already been normalized.\n if ((value )['__sentry_skip_normalization__']) {\n return value ;\n }\n\n // We can set `__sentry_override_normalization_depth__` on an object to ensure that from there\n // We keep a certain amount of depth.\n // This should be used sparingly, e.g. we use it for the redux integration to ensure we get a certain amount of state.\n const remainingDepth =\n typeof (value )['__sentry_override_normalization_depth__'] === 'number'\n ? ((value )['__sentry_override_normalization_depth__'] )\n : depth;\n\n // We're also done if we've reached the max depth\n if (remainingDepth === 0) {\n // At this point we know `serialized` is a string of the form `\"[object XXXX]\"`. Clean it up so it's just `\"[XXXX]\"`.\n return stringified.replace('object ', '');\n }\n\n // If we've already visited this branch, bail out, as it's circular reference. If not, note that we're seeing it now.\n if (memoize(value)) {\n return '[Circular ~]';\n }\n\n // If the value has a `toJSON` method, we call it to extract more information\n const valueWithToJSON = value ;\n if (valueWithToJSON && typeof valueWithToJSON.toJSON === 'function') {\n try {\n const jsonValue = valueWithToJSON.toJSON();\n // We need to normalize the return value of `.toJSON()` in case it has circular references\n return visit('', jsonValue, remainingDepth - 1, maxProperties, memo);\n } catch (err) {\n // pass (The built-in `toJSON` failed, but we can still try to do it ourselves)\n }\n }\n\n // At this point we know we either have an object or an array, we haven't seen it before, and we're going to recurse\n // because we haven't yet reached the max depth. Create an accumulator to hold the results of visiting each\n // property/entry, and keep track of the number of items we add to it.\n const normalized = (Array.isArray(value) ? [] : {}) ;\n let numAdded = 0;\n\n // Before we begin, convert`Error` and`Event` instances into plain objects, since some of each of their relevant\n // properties are non-enumerable and otherwise would get missed.\n const visitable = convertToPlainObject(value );\n\n for (const visitKey in visitable) {\n // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n if (!Object.prototype.hasOwnProperty.call(visitable, visitKey)) {\n continue;\n }\n\n if (numAdded >= maxProperties) {\n normalized[visitKey] = '[MaxProperties ~]';\n break;\n }\n\n // Recursively visit all the child nodes\n const visitValue = visitable[visitKey];\n normalized[visitKey] = visit(visitKey, visitValue, remainingDepth - 1, maxProperties, memo);\n\n numAdded++;\n }\n\n // Once we've visited all the branches, remove the parent from memo storage\n unmemoize(value);\n\n // Return accumulated values\n return normalized;\n}\n\n/* eslint-disable complexity */\n/**\n * Stringify the given value. Handles various known special values and types.\n *\n * Not meant to be used on simple primitives which already have a string representation, as it will, for example, turn\n * the number 1231 into \"[Object Number]\", nor on `null`, as it will throw.\n *\n * @param value The value to stringify\n * @returns A stringified representation of the given value\n */\nfunction stringifyValue(\n key,\n // this type is a tiny bit of a cheat, since this function does handle NaN (which is technically a number), but for\n // our internal use, it'll do\n value,\n) {\n try {\n if (key === 'domain' && value && typeof value === 'object' && (value )._events) {\n return '[Domain]';\n }\n\n if (key === 'domainEmitter') {\n return '[DomainEmitter]';\n }\n\n // It's safe to use `global`, `window`, and `document` here in this manner, as we are asserting using `typeof` first\n // which won't throw if they are not present.\n\n if (typeof global !== 'undefined' && value === global) {\n return '[Global]';\n }\n\n // eslint-disable-next-line no-restricted-globals\n if (typeof window !== 'undefined' && value === window) {\n return '[Window]';\n }\n\n // eslint-disable-next-line no-restricted-globals\n if (typeof document !== 'undefined' && value === document) {\n return '[Document]';\n }\n\n // React's SyntheticEvent thingy\n if (isSyntheticEvent(value)) {\n return '[SyntheticEvent]';\n }\n\n if (typeof value === 'number' && value !== value) {\n return '[NaN]';\n }\n\n if (typeof value === 'function') {\n return `[Function: ${getFunctionName(value)}]`;\n }\n\n if (typeof value === 'symbol') {\n return `[${String(value)}]`;\n }\n\n // stringified BigInts are indistinguishable from regular numbers, so we need to label them to avoid confusion\n if (typeof value === 'bigint') {\n return `[BigInt: ${String(value)}]`;\n }\n\n // Now that we've knocked out all the special cases and the primitives, all we have left are objects. Simply casting\n // them to strings means that instances of classes which haven't defined their `toStringTag` will just come out as\n // `\"[object Object]\"`. If we instead look at the constructor's name (which is the same as the name of the class),\n // we can make sure that only plain objects come out that way.\n const objName = getConstructorName(value);\n\n // Handle HTML Elements\n if (/^HTML(\\w*)Element$/.test(objName)) {\n return `[HTMLElement: ${objName}]`;\n }\n\n return `[object ${objName}]`;\n } catch (err) {\n return `**non-serializable** (${err})`;\n }\n}\n/* eslint-enable complexity */\n\nfunction getConstructorName(value) {\n const prototype = Object.getPrototypeOf(value);\n\n return prototype ? prototype.constructor.name : 'null prototype';\n}\n\n/** Calculates bytes size of input string */\nfunction utf8Length(value) {\n // eslint-disable-next-line no-bitwise\n return ~-encodeURI(value).split(/%..|./).length;\n}\n\n/** Calculates bytes size of input object */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction jsonSize(value) {\n return utf8Length(JSON.stringify(value));\n}\n\nexport { normalize, normalizeToSize, visit as walk };\n//# sourceMappingURL=normalize.js.map\n","import { getCurrentHub } from '@sentry/core';\nimport { addExceptionMechanism, resolvedSyncPromise, isErrorEvent, isDOMError, isDOMException, addExceptionTypeValue, isError, isPlainObject, isEvent, normalizeToSize, extractExceptionKeysForMessage } from '@sentry/utils';\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nfunction exceptionFromError(stackParser, ex) {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n const frames = parseStackFrames(stackParser, ex);\n\n const exception = {\n type: ex && ex.name,\n value: extractMessage(ex),\n };\n\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n\n/**\n * @hidden\n */\nfunction eventFromPlainObject(\n stackParser,\n exception,\n syntheticException,\n isUnhandledRejection,\n) {\n const hub = getCurrentHub();\n const client = hub.getClient();\n const normalizeDepth = client && client.getOptions().normalizeDepth;\n\n const event = {\n exception: {\n values: [\n {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n },\n ],\n },\n extra: {\n __serialized__: normalizeToSize(exception, normalizeDepth),\n },\n };\n\n if (syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n // event.exception.values[0] has been set above\n (event.exception ).values[0].stacktrace = { frames };\n }\n }\n\n return event;\n}\n\n/**\n * @hidden\n */\nfunction eventFromError(stackParser, ex) {\n return {\n exception: {\n values: [exceptionFromError(stackParser, ex)],\n },\n };\n}\n\n/** Parses stack frames from an error */\nfunction parseStackFrames(\n stackParser,\n ex,\n) {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n const stacktrace = ex.stacktrace || ex.stack || '';\n\n const popSize = getPopSize(ex);\n\n try {\n return stackParser(stacktrace, popSize);\n } catch (e) {\n // no-empty\n }\n\n return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\nconst reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\nfunction getPopSize(ex) {\n if (ex) {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n if (reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n }\n\n return 0;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nfunction extractMessage(ex) {\n const message = ex && ex.message;\n if (!message) {\n return 'No error message';\n }\n if (message.error && typeof message.error.message === 'string') {\n return message.error.message;\n }\n return message;\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nfunction eventFromException(\n stackParser,\n exception,\n hint,\n attachStacktrace,\n) {\n const syntheticException = (hint && hint.syntheticException) || undefined;\n const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);\n addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n event.level = 'error';\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nfunction eventFromMessage(\n stackParser,\n message,\n // eslint-disable-next-line deprecation/deprecation\n level = 'info',\n hint,\n attachStacktrace,\n) {\n const syntheticException = (hint && hint.syntheticException) || undefined;\n const event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n event.level = level;\n if (hint && hint.event_id) {\n event.event_id = hint.event_id;\n }\n return resolvedSyncPromise(event);\n}\n\n/**\n * @hidden\n */\nfunction eventFromUnknownInput(\n stackParser,\n exception,\n syntheticException,\n attachStacktrace,\n isUnhandledRejection,\n) {\n let event;\n\n if (isErrorEvent(exception ) && (exception ).error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n const errorEvent = exception ;\n return eventFromError(stackParser, errorEvent.error );\n }\n\n // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n if (isDOMError(exception) || isDOMException(exception )) {\n const domException = exception ;\n\n if ('stack' in (exception )) {\n event = eventFromError(stackParser, exception );\n } else {\n const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n const message = domException.message ? `${name}: ${domException.message}` : name;\n event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n if ('code' in domException) {\n // eslint-disable-next-line deprecation/deprecation\n event.tags = { ...event.tags, 'DOMException.code': `${domException.code}` };\n }\n\n return event;\n }\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(stackParser, exception);\n }\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n const objectException = exception ;\n event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n return event;\n }\n\n // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n event = eventFromString(stackParser, exception , syntheticException, attachStacktrace);\n addExceptionTypeValue(event, `${exception}`, undefined);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n\n return event;\n}\n\n/**\n * @hidden\n */\nfunction eventFromString(\n stackParser,\n input,\n syntheticException,\n attachStacktrace,\n) {\n const event = {\n message: input,\n };\n\n if (attachStacktrace && syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n event.exception = {\n values: [{ value: input, stacktrace: { frames } }],\n };\n }\n }\n\n return event;\n}\n\nfunction getNonErrorObjectExceptionValue(\n exception,\n { isUnhandledRejection },\n) {\n const keys = extractExceptionKeysForMessage(exception);\n const captureType = isUnhandledRejection ? 'promise rejection' : 'exception';\n\n // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n // We still want to try to get a decent message for these cases\n if (isErrorEvent(exception)) {\n return `Event \\`ErrorEvent\\` captured as ${captureType} with message \\`${exception.message}\\``;\n }\n\n if (isEvent(exception)) {\n const className = getObjectClassName(exception);\n return `Event \\`${className}\\` (type=${exception.type}) captured as ${captureType}`;\n }\n\n return `Object captured as ${captureType} with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj) {\n try {\n const prototype = Object.getPrototypeOf(obj);\n return prototype ? prototype.constructor.name : undefined;\n } catch (e) {\n // ignore errors here\n }\n}\n\nexport { eventFromError, eventFromException, eventFromMessage, eventFromPlainObject, eventFromString, eventFromUnknownInput, exceptionFromError, parseStackFrames };\n//# sourceMappingURL=eventbuilder.js.map\n","import { getCurrentHub } from '@sentry/core';\nimport { addInstrumentationHandler, isString, isPrimitive, isErrorEvent, getLocationHref, logger, addExceptionMechanism } from '@sentry/utils';\nimport { eventFromUnknownInput } from '../eventbuilder.js';\nimport { shouldIgnoreOnError } from '../helpers.js';\n\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\n/** Global handlers */\nclass GlobalHandlers {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'GlobalHandlers';}\n\n /**\n * @inheritDoc\n */\n\n /** JSDoc */\n\n /**\n * Stores references functions to installing handlers. Will set to undefined\n * after they have been run so that they are not used twice.\n */\n\n /** JSDoc */\n constructor(options) {\n this.name = GlobalHandlers.id;\n this._options = {\n onerror: true,\n onunhandledrejection: true,\n ...options,\n };\n\n this._installFunc = {\n onerror: _installGlobalOnErrorHandler,\n onunhandledrejection: _installGlobalOnUnhandledRejectionHandler,\n };\n }\n /**\n * @inheritDoc\n */\n setupOnce() {\n Error.stackTraceLimit = 50;\n const options = this._options;\n\n // We can disable guard-for-in as we construct the options object above + do checks against\n // `this._installFunc` for the property.\n // eslint-disable-next-line guard-for-in\n for (const key in options) {\n const installFunc = this._installFunc[key ];\n if (installFunc && options[key ]) {\n globalHandlerLog(key);\n installFunc();\n this._installFunc[key ] = undefined;\n }\n }\n }\n} GlobalHandlers.__initStatic();\n\n/** JSDoc */\nfunction _installGlobalOnErrorHandler() {\n addInstrumentationHandler(\n 'error',\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (data) => {\n const [hub, stackParser, attachStacktrace] = getHubAndOptions();\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n const { msg, url, line, column, error } = data;\n if (shouldIgnoreOnError() || (error && error.__sentry_own_request__)) {\n return;\n }\n\n const event =\n error === undefined && isString(msg)\n ? _eventFromIncompleteOnError(msg, url, line, column)\n : _enhanceEventWithInitialFrame(\n eventFromUnknownInput(stackParser, error || msg, undefined, attachStacktrace, false),\n url,\n line,\n column,\n );\n\n event.level = 'error';\n\n addMechanismAndCapture(hub, error, event, 'onerror');\n },\n );\n}\n\n/** JSDoc */\nfunction _installGlobalOnUnhandledRejectionHandler() {\n addInstrumentationHandler(\n 'unhandledrejection',\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n (e) => {\n const [hub, stackParser, attachStacktrace] = getHubAndOptions();\n if (!hub.getIntegration(GlobalHandlers)) {\n return;\n }\n let error = e;\n\n // dig the object of the rejection out of known event types\n try {\n // PromiseRejectionEvents store the object of the rejection under 'reason'\n // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n if ('reason' in e) {\n error = e.reason;\n }\n // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n // https://github.com/getsentry/sentry-javascript/issues/2380\n else if ('detail' in e && 'reason' in e.detail) {\n error = e.detail.reason;\n }\n } catch (_oO) {\n // no-empty\n }\n\n if (shouldIgnoreOnError() || (error && error.__sentry_own_request__)) {\n return true;\n }\n\n const event = isPrimitive(error)\n ? _eventFromRejectionWithPrimitive(error)\n : eventFromUnknownInput(stackParser, error, undefined, attachStacktrace, true);\n\n event.level = 'error';\n\n addMechanismAndCapture(hub, error, event, 'onunhandledrejection');\n return;\n },\n );\n}\n\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\nfunction _eventFromRejectionWithPrimitive(reason) {\n return {\n exception: {\n values: [\n {\n type: 'UnhandledRejection',\n // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n value: `Non-Error promise rejection captured with value: ${String(reason)}`,\n },\n ],\n },\n };\n}\n\n/**\n * This function creates a stack from an old, error-less onerror handler.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _eventFromIncompleteOnError(msg, url, line, column) {\n const ERROR_TYPES_RE =\n /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;\n\n // If 'message' is ErrorEvent, get real message from inside\n let message = isErrorEvent(msg) ? msg.message : msg;\n let name = 'Error';\n\n const groups = message.match(ERROR_TYPES_RE);\n if (groups) {\n name = groups[1];\n message = groups[2];\n }\n\n const event = {\n exception: {\n values: [\n {\n type: name,\n value: message,\n },\n ],\n },\n };\n\n return _enhanceEventWithInitialFrame(event, url, line, column);\n}\n\n/** JSDoc */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _enhanceEventWithInitialFrame(event, url, line, column) {\n // event.exception\n const e = (event.exception = event.exception || {});\n // event.exception.values\n const ev = (e.values = e.values || []);\n // event.exception.values[0]\n const ev0 = (ev[0] = ev[0] || {});\n // event.exception.values[0].stacktrace\n const ev0s = (ev0.stacktrace = ev0.stacktrace || {});\n // event.exception.values[0].stacktrace.frames\n const ev0sf = (ev0s.frames = ev0s.frames || []);\n\n const colno = isNaN(parseInt(column, 10)) ? undefined : column;\n const lineno = isNaN(parseInt(line, 10)) ? undefined : line;\n const filename = isString(url) && url.length > 0 ? url : getLocationHref();\n\n // event.exception.values[0].stacktrace.frames\n if (ev0sf.length === 0) {\n ev0sf.push({\n colno,\n filename,\n function: '?',\n in_app: true,\n lineno,\n });\n }\n\n return event;\n}\n\nfunction globalHandlerLog(type) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`Global Handler attached: ${type}`);\n}\n\nfunction addMechanismAndCapture(hub, error, event, type) {\n addExceptionMechanism(event, {\n handled: false,\n type,\n });\n hub.captureEvent(event, {\n originalException: error,\n });\n}\n\nfunction getHubAndOptions() {\n const hub = getCurrentHub();\n const client = hub.getClient();\n const options = (client && client.getOptions()) || {\n stackParser: () => [],\n attachStacktrace: false,\n };\n return [hub, options.stackParser, options.attachStacktrace];\n}\n\nexport { GlobalHandlers };\n//# sourceMappingURL=globalhandlers.js.map\n","import { fill, getFunctionName, getOriginalFunction } from '@sentry/utils';\nimport { WINDOW, wrap } from '../helpers.js';\n\nconst DEFAULT_EVENT_TARGET = [\n 'EventTarget',\n 'Window',\n 'Node',\n 'ApplicationCache',\n 'AudioTrackList',\n 'ChannelMergerNode',\n 'CryptoOperation',\n 'EventSource',\n 'FileReader',\n 'HTMLUnknownElement',\n 'IDBDatabase',\n 'IDBRequest',\n 'IDBTransaction',\n 'KeyOperation',\n 'MediaController',\n 'MessagePort',\n 'ModalWindow',\n 'Notification',\n 'SVGElementInstance',\n 'Screen',\n 'TextTrack',\n 'TextTrackCue',\n 'TextTrackList',\n 'WebSocket',\n 'WebSocketWorker',\n 'Worker',\n 'XMLHttpRequest',\n 'XMLHttpRequestEventTarget',\n 'XMLHttpRequestUpload',\n];\n\n/** Wrap timer functions and event targets to catch errors and provide better meta data */\nclass TryCatch {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'TryCatch';}\n\n /**\n * @inheritDoc\n */\n\n /** JSDoc */\n\n /**\n * @inheritDoc\n */\n constructor(options) {\n this.name = TryCatch.id;\n this._options = {\n XMLHttpRequest: true,\n eventTarget: true,\n requestAnimationFrame: true,\n setInterval: true,\n setTimeout: true,\n ...options,\n };\n }\n\n /**\n * Wrap timer functions and event targets to catch errors\n * and provide better metadata.\n */\n setupOnce() {\n if (this._options.setTimeout) {\n fill(WINDOW, 'setTimeout', _wrapTimeFunction);\n }\n\n if (this._options.setInterval) {\n fill(WINDOW, 'setInterval', _wrapTimeFunction);\n }\n\n if (this._options.requestAnimationFrame) {\n fill(WINDOW, 'requestAnimationFrame', _wrapRAF);\n }\n\n if (this._options.XMLHttpRequest && 'XMLHttpRequest' in WINDOW) {\n fill(XMLHttpRequest.prototype, 'send', _wrapXHR);\n }\n\n const eventTargetOption = this._options.eventTarget;\n if (eventTargetOption) {\n const eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;\n eventTarget.forEach(_wrapEventTarget);\n }\n }\n} TryCatch.__initStatic();\n\n/** JSDoc */\nfunction _wrapTimeFunction(original) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function ( ...args) {\n const originalCallback = args[0];\n args[0] = wrap(originalCallback, {\n mechanism: {\n data: { function: getFunctionName(original) },\n handled: true,\n type: 'instrument',\n },\n });\n return original.apply(this, args);\n };\n}\n\n/** JSDoc */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction _wrapRAF(original) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function ( callback) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return original.apply(this, [\n wrap(callback, {\n mechanism: {\n data: {\n function: 'requestAnimationFrame',\n handler: getFunctionName(original),\n },\n handled: true,\n type: 'instrument',\n },\n }),\n ]);\n };\n}\n\n/** JSDoc */\nfunction _wrapXHR(originalSend) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return function ( ...args) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const xhr = this;\n const xmlHttpRequestProps = ['onload', 'onerror', 'onprogress', 'onreadystatechange'];\n\n xmlHttpRequestProps.forEach(prop => {\n if (prop in xhr && typeof xhr[prop] === 'function') {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n fill(xhr, prop, function (original) {\n const wrapOptions = {\n mechanism: {\n data: {\n function: prop,\n handler: getFunctionName(original),\n },\n handled: true,\n type: 'instrument',\n },\n };\n\n // If Instrument integration has been called before TryCatch, get the name of original function\n const originalFunction = getOriginalFunction(original);\n if (originalFunction) {\n wrapOptions.mechanism.data.handler = getFunctionName(originalFunction);\n }\n\n // Otherwise wrap directly\n return wrap(original, wrapOptions);\n });\n }\n });\n\n return originalSend.apply(this, args);\n };\n}\n\n/** JSDoc */\nfunction _wrapEventTarget(target) {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const globalObject = WINDOW ;\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const proto = globalObject[target] && globalObject[target].prototype;\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, no-prototype-builtins\n if (!proto || !proto.hasOwnProperty || !proto.hasOwnProperty('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (original)\n\n {\n return function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n eventName,\n fn,\n options,\n ) {\n try {\n if (typeof fn.handleEvent === 'function') {\n // ESlint disable explanation:\n // First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would\n // introduce a bug here, because bind returns a new function that doesn't have our\n // flags(like __sentry_original__) attached. `wrap` checks for those flags to avoid unnecessary wrapping.\n // Without those flags, every call to addEventListener wraps the function again, causing a memory leak.\n // eslint-disable-next-line @typescript-eslint/unbound-method\n fn.handleEvent = wrap(fn.handleEvent, {\n mechanism: {\n data: {\n function: 'handleEvent',\n handler: getFunctionName(fn),\n target,\n },\n handled: true,\n type: 'instrument',\n },\n });\n }\n } catch (err) {\n // can sometimes get 'Permission denied to access property \"handle Event'\n }\n\n return original.apply(this, [\n eventName,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n wrap(fn , {\n mechanism: {\n data: {\n function: 'addEventListener',\n handler: getFunctionName(fn),\n target,\n },\n handled: true,\n type: 'instrument',\n },\n }),\n options,\n ]);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (\n originalRemoveEventListener,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n ) {\n return function (\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n\n eventName,\n fn,\n options,\n ) {\n /**\n * There are 2 possible scenarios here:\n *\n * 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified\n * method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function\n * as a pass-through, and call original `removeEventListener` with it.\n *\n * 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using\n * our wrapped version of `addEventListener`, which internally calls `wrap` helper.\n * This helper \"wraps\" whole callback inside a try/catch statement, and attached appropriate metadata to it,\n * in order for us to make a distinction between wrapped/non-wrapped functions possible.\n * If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.\n *\n * When someone adds a handler prior to initialization, and then do it again, but after,\n * then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible\n * to get rid of the initial handler and it'd stick there forever.\n */\n const wrappedEventHandler = fn ;\n try {\n const originalEventHandler = wrappedEventHandler && wrappedEventHandler.__sentry_wrapped__;\n if (originalEventHandler) {\n originalRemoveEventListener.call(this, eventName, originalEventHandler, options);\n }\n } catch (e) {\n // ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n }\n return originalRemoveEventListener.call(this, eventName, wrappedEventHandler, options);\n };\n },\n );\n}\n\nexport { TryCatch };\n//# sourceMappingURL=trycatch.js.map\n","// Note: Ideally the `SeverityLevel` type would be derived from `validSeverityLevels`, but that would mean either\n//\n// a) moving `validSeverityLevels` to `@sentry/types`,\n// b) moving the`SeverityLevel` type here, or\n// c) importing `validSeverityLevels` from here into `@sentry/types`.\n//\n// Option A would make `@sentry/types` a runtime dependency of `@sentry/utils` (not good), and options B and C would\n// create a circular dependency between `@sentry/types` and `@sentry/utils` (also not good). So a TODO accompanying the\n// type, reminding anyone who changes it to change this list also, will have to do.\n\nconst validSeverityLevels = ['fatal', 'error', 'warning', 'log', 'info', 'debug'];\n\n/**\n * Converts a string-based level into a member of the deprecated {@link Severity} enum.\n *\n * @deprecated `severityFromString` is deprecated. Please use `severityLevelFromString` instead.\n *\n * @param level String representation of Severity\n * @returns Severity\n */\nfunction severityFromString(level) {\n return severityLevelFromString(level) ;\n}\n\n/**\n * Converts a string-based level into a `SeverityLevel`, normalizing it along the way.\n *\n * @param level String representation of desired `SeverityLevel`.\n * @returns The `SeverityLevel` corresponding to the given string, or 'log' if the string isn't a valid level.\n */\nfunction severityLevelFromString(level) {\n return (level === 'warn' ? 'warning' : validSeverityLevels.includes(level) ? level : 'log') ;\n}\n\nexport { severityFromString, severityLevelFromString, validSeverityLevels };\n//# sourceMappingURL=severity.js.map\n","/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nfunction parseUrl(url) {\n if (!url) {\n return {};\n }\n\n const match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n\n if (!match) {\n return {};\n }\n\n // coerce to undefined values to empty string so we don't get 'undefined'\n const query = match[6] || '';\n const fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n search: query,\n hash: fragment,\n relative: match[5] + query + fragment, // everything minus origin\n };\n}\n\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nfunction stripUrlQueryAndFragment(urlPath) {\n // eslint-disable-next-line no-useless-escape\n return urlPath.split(/[\\?#]/, 1)[0];\n}\n\n/**\n * Returns number of URL segments of a passed string URL.\n */\nfunction getNumberOfUrlSegments(url) {\n // split at '/' or at '\\/' to split regex urls correctly\n return url.split(/\\\\?\\//).filter(s => s.length > 0 && s !== ',').length;\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span description\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nfunction getSanitizedUrlString(url) {\n const { protocol, host, path } = url;\n\n const filteredHost =\n (host &&\n host\n // Always filter out authority\n .replace(/^.*@/, '[filtered]:[filtered]@')\n // Don't show standard :80 (http) and :443 (https) ports to reduce the noise\n .replace(':80', '')\n .replace(':443', '')) ||\n '';\n\n return `${protocol ? `${protocol}://` : ''}${filteredHost}${path}`;\n}\n\nexport { getNumberOfUrlSegments, getSanitizedUrlString, parseUrl, stripUrlQueryAndFragment };\n//# sourceMappingURL=url.js.map\n","import { getCurrentHub } from '@sentry/core';\nimport { addInstrumentationHandler, getEventDescription, severityLevelFromString, safeJoin, SENTRY_XHR_DATA_KEY, parseUrl, logger, htmlTreeAsString } from '@sentry/utils';\nimport { WINDOW } from '../helpers.js';\n\n/* eslint-disable @typescript-eslint/no-unsafe-member-access */\n\n/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */\nconst MAX_ALLOWED_STRING_LENGTH = 1024;\n\nconst BREADCRUMB_INTEGRATION_ID = 'Breadcrumbs';\n\n/**\n * Default Breadcrumbs instrumentations\n * TODO: Deprecated - with v6, this will be renamed to `Instrument`\n */\nclass Breadcrumbs {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = BREADCRUMB_INTEGRATION_ID;}\n\n /**\n * @inheritDoc\n */\n\n /**\n * Options of the breadcrumbs integration.\n */\n // This field is public, because we use it in the browser client to check if the `sentry` option is enabled.\n\n /**\n * @inheritDoc\n */\n constructor(options) {\n this.name = Breadcrumbs.id;\n this.options = {\n console: true,\n dom: true,\n fetch: true,\n history: true,\n sentry: true,\n xhr: true,\n ...options,\n };\n }\n\n /**\n * Instrument browser built-ins w/ breadcrumb capturing\n * - Console API\n * - DOM API (click/typing)\n * - XMLHttpRequest API\n * - Fetch API\n * - History API\n */\n setupOnce() {\n if (this.options.console) {\n addInstrumentationHandler('console', _consoleBreadcrumb);\n }\n if (this.options.dom) {\n addInstrumentationHandler('dom', _domBreadcrumb(this.options.dom));\n }\n if (this.options.xhr) {\n addInstrumentationHandler('xhr', _xhrBreadcrumb);\n }\n if (this.options.fetch) {\n addInstrumentationHandler('fetch', _fetchBreadcrumb);\n }\n if (this.options.history) {\n addInstrumentationHandler('history', _historyBreadcrumb);\n }\n }\n\n /**\n * Adds a breadcrumb for Sentry events or transactions if this option is enabled.\n */\n addSentryBreadcrumb(event) {\n if (this.options.sentry) {\n getCurrentHub().addBreadcrumb(\n {\n category: `sentry.${event.type === 'transaction' ? 'transaction' : 'event'}`,\n event_id: event.event_id,\n level: event.level,\n message: getEventDescription(event),\n },\n {\n event,\n },\n );\n }\n }\n} Breadcrumbs.__initStatic();\n\n/**\n * A HOC that creaes a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\nfunction _domBreadcrumb(dom) {\n function _innerDomBreadcrumb(handlerData) {\n let target;\n let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;\n\n let maxStringLength =\n typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;\n if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn(\n `\\`dom.maxStringLength\\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,\n );\n maxStringLength = MAX_ALLOWED_STRING_LENGTH;\n }\n\n if (typeof keyAttrs === 'string') {\n keyAttrs = [keyAttrs];\n }\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n const event = handlerData.event ;\n target = _isEvent(event)\n ? htmlTreeAsString(event.target, { keyAttrs, maxStringLength })\n : htmlTreeAsString(event, { keyAttrs, maxStringLength });\n } catch (e) {\n target = '';\n }\n\n if (target.length === 0) {\n return;\n }\n\n getCurrentHub().addBreadcrumb(\n {\n category: `ui.${handlerData.name}`,\n message: target,\n },\n {\n event: handlerData.event,\n name: handlerData.name,\n global: handlerData.global,\n },\n );\n }\n\n return _innerDomBreadcrumb;\n}\n\n/**\n * Creates breadcrumbs from console API calls\n */\nfunction _consoleBreadcrumb(handlerData) {\n // This is a hack to fix a Vue3-specific bug that causes an infinite loop of\n // console warnings. This happens when a Vue template is rendered with\n // an undeclared variable, which we try to stringify, ultimately causing\n // Vue to issue another warning which repeats indefinitely.\n // see: https://github.com/getsentry/sentry-javascript/pull/6010\n // see: https://github.com/getsentry/sentry-javascript/issues/5916\n for (let i = 0; i < handlerData.args.length; i++) {\n if (handlerData.args[i] === 'ref=Ref<') {\n handlerData.args[i + 1] = 'viewRef';\n break;\n }\n }\n const breadcrumb = {\n category: 'console',\n data: {\n arguments: handlerData.args,\n logger: 'console',\n },\n level: severityLevelFromString(handlerData.level),\n message: safeJoin(handlerData.args, ' '),\n };\n\n if (handlerData.level === 'assert') {\n if (handlerData.args[0] === false) {\n breadcrumb.message = `Assertion failed: ${safeJoin(handlerData.args.slice(1), ' ') || 'console.assert'}`;\n breadcrumb.data.arguments = handlerData.args.slice(1);\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n getCurrentHub().addBreadcrumb(breadcrumb, {\n input: handlerData.args,\n level: handlerData.level,\n });\n}\n\n/**\n * Creates breadcrumbs from XHR API calls\n */\nfunction _xhrBreadcrumb(handlerData) {\n const { startTimestamp, endTimestamp } = handlerData;\n\n const sentryXhrData = handlerData.xhr[SENTRY_XHR_DATA_KEY];\n\n // We only capture complete, non-sentry requests\n if (!startTimestamp || !endTimestamp || !sentryXhrData) {\n return;\n }\n\n const { method, url, status_code, body } = sentryXhrData;\n\n const data = {\n method,\n url,\n status_code,\n };\n\n const hint = {\n xhr: handlerData.xhr,\n input: body,\n startTimestamp,\n endTimestamp,\n };\n\n getCurrentHub().addBreadcrumb(\n {\n category: 'xhr',\n data,\n type: 'http',\n },\n hint,\n );\n}\n\n/**\n * Creates breadcrumbs from fetch API calls\n */\nfunction _fetchBreadcrumb(handlerData) {\n const { startTimestamp, endTimestamp } = handlerData;\n\n // We only capture complete fetch requests\n if (!endTimestamp) {\n return;\n }\n\n if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n return;\n }\n\n if (handlerData.error) {\n const data = handlerData.fetchData;\n const hint = {\n data: handlerData.error,\n input: handlerData.args,\n startTimestamp,\n endTimestamp,\n };\n\n getCurrentHub().addBreadcrumb(\n {\n category: 'fetch',\n data,\n level: 'error',\n type: 'http',\n },\n hint,\n );\n } else {\n const data = {\n ...handlerData.fetchData,\n status_code: handlerData.response && handlerData.response.status,\n };\n const hint = {\n input: handlerData.args,\n response: handlerData.response,\n startTimestamp,\n endTimestamp,\n };\n getCurrentHub().addBreadcrumb(\n {\n category: 'fetch',\n data,\n type: 'http',\n },\n hint,\n );\n }\n}\n\n/**\n * Creates breadcrumbs from history API calls\n */\nfunction _historyBreadcrumb(handlerData) {\n let from = handlerData.from;\n let to = handlerData.to;\n const parsedLoc = parseUrl(WINDOW.location.href);\n let parsedFrom = parseUrl(from);\n const parsedTo = parseUrl(to);\n\n // Initial pushState doesn't provide `from` information\n if (!parsedFrom.path) {\n parsedFrom = parsedLoc;\n }\n\n // Use only the path component of the URL if the URL matches the current\n // document (almost all the time when using pushState)\n if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) {\n to = parsedTo.relative;\n }\n if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {\n from = parsedFrom.relative;\n }\n\n getCurrentHub().addBreadcrumb({\n category: 'navigation',\n data: {\n from,\n to,\n },\n });\n}\n\nfunction _isEvent(event) {\n return !!event && !!(event ).target;\n}\n\nexport { BREADCRUMB_INTEGRATION_ID, Breadcrumbs };\n//# sourceMappingURL=breadcrumbs.js.map\n","import { isInstanceOf } from './is.js';\nimport { truncate } from './string.js';\n\n/**\n * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter.\n */\nfunction applyAggregateErrorsToEvent(\n exceptionFromErrorImplementation,\n parser,\n maxValueLimit = 250,\n key,\n limit,\n event,\n hint,\n) {\n if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {\n return;\n }\n\n // Generally speaking the last item in `event.exception.values` is the exception originating from the original Error\n const originalException =\n event.exception.values.length > 0 ? event.exception.values[event.exception.values.length - 1] : undefined;\n\n // We only create exception grouping if there is an exception in the event.\n if (originalException) {\n event.exception.values = truncateAggregateExceptions(\n aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n hint.originalException ,\n key,\n event.exception.values,\n originalException,\n 0,\n ),\n maxValueLimit,\n );\n }\n}\n\nfunction aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n error,\n key,\n prevExceptions,\n exception,\n exceptionId,\n) {\n if (prevExceptions.length >= limit + 1) {\n return prevExceptions;\n }\n\n let newExceptions = [...prevExceptions];\n\n if (isInstanceOf(error[key], Error)) {\n applyExceptionGroupFieldsForParentException(exception, exceptionId);\n const newException = exceptionFromErrorImplementation(parser, error[key]);\n const newExceptionId = newExceptions.length;\n applyExceptionGroupFieldsForChildException(newException, key, newExceptionId, exceptionId);\n newExceptions = aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n error[key],\n key,\n [newException, ...newExceptions],\n newException,\n newExceptionId,\n );\n }\n\n // This will create exception grouping for AggregateErrors\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError\n if (Array.isArray(error.errors)) {\n error.errors.forEach((childError, i) => {\n if (isInstanceOf(childError, Error)) {\n applyExceptionGroupFieldsForParentException(exception, exceptionId);\n const newException = exceptionFromErrorImplementation(parser, childError);\n const newExceptionId = newExceptions.length;\n applyExceptionGroupFieldsForChildException(newException, `errors[${i}]`, newExceptionId, exceptionId);\n newExceptions = aggregateExceptionsFromError(\n exceptionFromErrorImplementation,\n parser,\n limit,\n childError,\n key,\n [newException, ...newExceptions],\n newException,\n newExceptionId,\n );\n }\n });\n }\n\n return newExceptions;\n}\n\nfunction applyExceptionGroupFieldsForParentException(exception, exceptionId) {\n // Don't know if this default makes sense. The protocol requires us to set these values so we pick *some* default.\n exception.mechanism = exception.mechanism || { type: 'generic', handled: true };\n\n exception.mechanism = {\n ...exception.mechanism,\n is_exception_group: true,\n exception_id: exceptionId,\n };\n}\n\nfunction applyExceptionGroupFieldsForChildException(\n exception,\n source,\n exceptionId,\n parentId,\n) {\n // Don't know if this default makes sense. The protocol requires us to set these values so we pick *some* default.\n exception.mechanism = exception.mechanism || { type: 'generic', handled: true };\n\n exception.mechanism = {\n ...exception.mechanism,\n type: 'chained',\n source,\n exception_id: exceptionId,\n parent_id: parentId,\n };\n}\n\n/**\n * Truncate the message (exception.value) of all exceptions in the event.\n * Because this event processor is ran after `applyClientOptions`,\n * we need to truncate the message of the added exceptions here.\n */\nfunction truncateAggregateExceptions(exceptions, maxValueLength) {\n return exceptions.map(exception => {\n if (exception.value) {\n exception.value = truncate(exception.value, maxValueLength);\n }\n return exception;\n });\n}\n\nexport { applyAggregateErrorsToEvent };\n//# sourceMappingURL=aggregate-errors.js.map\n","import { applyAggregateErrorsToEvent } from '@sentry/utils';\nimport { exceptionFromError } from '../eventbuilder.js';\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\n/** Adds SDK info to an event. */\nclass LinkedErrors {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'LinkedErrors';}\n\n /**\n * @inheritDoc\n */\n\n /**\n * @inheritDoc\n */\n\n /**\n * @inheritDoc\n */\n\n /**\n * @inheritDoc\n */\n constructor(options = {}) {\n this.name = LinkedErrors.id;\n this._key = options.key || DEFAULT_KEY;\n this._limit = options.limit || DEFAULT_LIMIT;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(addGlobalEventProcessor, getCurrentHub) {\n addGlobalEventProcessor((event, hint) => {\n const hub = getCurrentHub();\n const client = hub.getClient();\n const self = hub.getIntegration(LinkedErrors);\n\n if (!client || !self) {\n return event;\n }\n\n const options = client.getOptions();\n applyAggregateErrorsToEvent(\n exceptionFromError,\n options.stackParser,\n options.maxValueLength,\n self._key,\n self._limit,\n event,\n hint,\n );\n\n return event;\n });\n }\n} LinkedErrors.__initStatic();\n\nexport { LinkedErrors };\n//# sourceMappingURL=linkederrors.js.map\n","import { addGlobalEventProcessor, getCurrentHub } from '@sentry/core';\nimport { WINDOW } from '../helpers.js';\n\n/** HttpContext integration collects information about HTTP request headers */\nclass HttpContext {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'HttpContext';}\n\n /**\n * @inheritDoc\n */\n\n constructor() {\n this.name = HttpContext.id;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce() {\n addGlobalEventProcessor((event) => {\n if (getCurrentHub().getIntegration(HttpContext)) {\n // if none of the information we want exists, don't bother\n if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n return event;\n }\n\n // grab as much info as exists and add it to the event\n const url = (event.request && event.request.url) || (WINDOW.location && WINDOW.location.href);\n const { referrer } = WINDOW.document || {};\n const { userAgent } = WINDOW.navigator || {};\n\n const headers = {\n ...(event.request && event.request.headers),\n ...(referrer && { Referer: referrer }),\n ...(userAgent && { 'User-Agent': userAgent }),\n };\n const request = { ...event.request, ...(url && { url }), headers };\n\n return { ...event, request };\n }\n return event;\n });\n }\n} HttpContext.__initStatic();\n\nexport { HttpContext };\n//# sourceMappingURL=httpcontext.js.map\n","import { logger } from '@sentry/utils';\n\n/** Deduplication filter */\nclass Dedupe {\n /**\n * @inheritDoc\n */\n static __initStatic() {this.id = 'Dedupe';}\n\n /**\n * @inheritDoc\n */\n\n /**\n * @inheritDoc\n */\n\n constructor() {\n this.name = Dedupe.id;\n }\n\n /**\n * @inheritDoc\n */\n setupOnce(addGlobalEventProcessor, getCurrentHub) {\n const eventProcessor = currentEvent => {\n // We want to ignore any non-error type events, e.g. transactions or replays\n // These should never be deduped, and also not be compared against as _previousEvent.\n if (currentEvent.type) {\n return currentEvent;\n }\n\n const self = getCurrentHub().getIntegration(Dedupe);\n if (self) {\n // Juuust in case something goes wrong\n try {\n if (_shouldDropEvent(currentEvent, self._previousEvent)) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Event dropped due to being a duplicate of previously captured event.');\n return null;\n }\n } catch (_oO) {\n return (self._previousEvent = currentEvent);\n }\n\n return (self._previousEvent = currentEvent);\n }\n return currentEvent;\n };\n\n eventProcessor.id = this.name;\n addGlobalEventProcessor(eventProcessor);\n }\n} Dedupe.__initStatic();\n\n/** JSDoc */\nfunction _shouldDropEvent(currentEvent, previousEvent) {\n if (!previousEvent) {\n return false;\n }\n\n if (_isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n return false;\n}\n\n/** JSDoc */\nfunction _isSameMessageEvent(currentEvent, previousEvent) {\n const currentMessage = currentEvent.message;\n const previousMessage = previousEvent.message;\n\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n\n if (currentMessage !== previousMessage) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameExceptionEvent(currentEvent, previousEvent) {\n const previousException = _getExceptionFromEvent(previousEvent);\n const currentException = _getExceptionFromEvent(currentEvent);\n\n if (!previousException || !currentException) {\n return false;\n }\n\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameStacktrace(currentEvent, previousEvent) {\n let currentFrames = _getFramesFromEvent(currentEvent);\n let previousFrames = _getFramesFromEvent(previousEvent);\n\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n\n currentFrames = currentFrames ;\n previousFrames = previousFrames ;\n\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n\n // Otherwise, compare the two\n for (let i = 0; i < previousFrames.length; i++) {\n const frameA = previousFrames[i];\n const frameB = currentFrames[i];\n\n if (\n frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function\n ) {\n return false;\n }\n }\n\n return true;\n}\n\n/** JSDoc */\nfunction _isSameFingerprint(currentEvent, previousEvent) {\n let currentFingerprint = currentEvent.fingerprint;\n let previousFingerprint = previousEvent.fingerprint;\n\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n\n currentFingerprint = currentFingerprint ;\n previousFingerprint = previousFingerprint ;\n\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n } catch (_oO) {\n return false;\n }\n}\n\n/** JSDoc */\nfunction _getExceptionFromEvent(event) {\n return event.exception && event.exception.values && event.exception.values[0];\n}\n\n/** JSDoc */\nfunction _getFramesFromEvent(event) {\n const exception = event.exception;\n\n if (exception) {\n try {\n // @ts-ignore Object could be undefined\n return exception.values[0].stacktrace.frames;\n } catch (_oO) {\n return undefined;\n }\n }\n return undefined;\n}\n\nexport { Dedupe };\n//# sourceMappingURL=dedupe.js.map\n","import { Integrations, getIntegrationsToSetup, initAndBind, getReportDialogEndpoint, getCurrentHub } from '@sentry/core';\nimport { stackParserFromStackParserOptions, supportsFetch, logger, addInstrumentationHandler } from '@sentry/utils';\nimport { BrowserClient } from './client.js';\nimport { WINDOW, wrap as wrap$1 } from './helpers.js';\nimport { GlobalHandlers } from './integrations/globalhandlers.js';\nimport { TryCatch } from './integrations/trycatch.js';\nimport { Breadcrumbs } from './integrations/breadcrumbs.js';\nimport { LinkedErrors } from './integrations/linkederrors.js';\nimport { HttpContext } from './integrations/httpcontext.js';\nimport { Dedupe } from './integrations/dedupe.js';\nimport { defaultStackParser } from './stack-parsers.js';\nimport { makeFetchTransport } from './transports/fetch.js';\nimport { makeXHRTransport } from './transports/xhr.js';\n\nconst defaultIntegrations = [\n new Integrations.InboundFilters(),\n new Integrations.FunctionToString(),\n new TryCatch(),\n new Breadcrumbs(),\n new GlobalHandlers(),\n new LinkedErrors(),\n new Dedupe(),\n new HttpContext(),\n];\n\n/**\n * A magic string that build tooling can leverage in order to inject a release value into the SDK.\n */\n\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { configureScope } from '@sentry/browser';\n * configureScope((scope: Scope) => {\n * scope.setExtra({ battery: 0.7 });\n * scope.setTag({ user_mode: 'admin' });\n * scope.setUser({ id: '4711' });\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nfunction init(options = {}) {\n if (options.defaultIntegrations === undefined) {\n options.defaultIntegrations = defaultIntegrations;\n }\n if (options.release === undefined) {\n // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value\n if (typeof __SENTRY_RELEASE__ === 'string') {\n options.release = __SENTRY_RELEASE__;\n }\n\n // This supports the variable that sentry-webpack-plugin injects\n if (WINDOW.SENTRY_RELEASE && WINDOW.SENTRY_RELEASE.id) {\n options.release = WINDOW.SENTRY_RELEASE.id;\n }\n }\n if (options.autoSessionTracking === undefined) {\n options.autoSessionTracking = true;\n }\n if (options.sendClientReports === undefined) {\n options.sendClientReports = true;\n }\n\n const clientOptions = {\n ...options,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup(options),\n transport: options.transport || (supportsFetch() ? makeFetchTransport : makeXHRTransport),\n };\n\n initAndBind(BrowserClient, clientOptions);\n\n if (options.autoSessionTracking) {\n startSessionTracking();\n }\n}\n\n/**\n * Present the user with a report dialog.\n *\n * @param options Everything is optional, we try to fetch all info need from the global scope.\n */\nfunction showReportDialog(options = {}, hub = getCurrentHub()) {\n // doesn't work without a document (React Native)\n if (!WINDOW.document) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Global document not defined in showReportDialog call');\n return;\n }\n\n const { client, scope } = hub.getStackTop();\n const dsn = options.dsn || (client && client.getDsn());\n if (!dsn) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('DSN not configured for showReportDialog call');\n return;\n }\n\n if (scope) {\n options.user = {\n ...scope.getUser(),\n ...options.user,\n };\n }\n\n if (!options.eventId) {\n options.eventId = hub.lastEventId();\n }\n\n const script = WINDOW.document.createElement('script');\n script.async = true;\n script.crossOrigin = 'anonymous';\n script.src = getReportDialogEndpoint(dsn, options);\n\n if (options.onLoad) {\n script.onload = options.onLoad;\n }\n\n const injectionPoint = WINDOW.document.head || WINDOW.document.body;\n if (injectionPoint) {\n injectionPoint.appendChild(script);\n } else {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Not injecting report dialog. No injection point found in HTML');\n }\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nfunction forceLoad() {\n // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nfunction onLoad(callback) {\n callback();\n}\n\n/**\n * Wrap code within a try/catch block so the SDK is able to capture errors.\n *\n * @param fn A function to wrap.\n *\n * @returns The result of wrapped function call.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction wrap(fn) {\n return wrap$1(fn)();\n}\n\nfunction startSessionOnHub(hub) {\n hub.startSession({ ignoreDuration: true });\n hub.captureSession();\n}\n\n/**\n * Enable automatic Session Tracking for the initial page load.\n */\nfunction startSessionTracking() {\n if (typeof WINDOW.document === 'undefined') {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&\n logger.warn('Session tracking in non-browser environment with @sentry/browser is not supported.');\n return;\n }\n\n const hub = getCurrentHub();\n\n // The only way for this to be false is for there to be a version mismatch between @sentry/browser (>= 6.0.0) and\n // @sentry/hub (< 5.27.0). In the simple case, there won't ever be such a mismatch, because the two packages are\n // pinned at the same version in package.json, but there are edge cases where it's possible. See\n // https://github.com/getsentry/sentry-javascript/issues/3207 and\n // https://github.com/getsentry/sentry-javascript/issues/3234 and\n // https://github.com/getsentry/sentry-javascript/issues/3278.\n if (!hub.captureSession) {\n return;\n }\n\n // The session duration for browser sessions does not track a meaningful\n // concept that can be used as a metric.\n // Automatically captured sessions are akin to page views, and thus we\n // discard their duration.\n startSessionOnHub(hub);\n\n // We want to create a session for every navigation as well\n addInstrumentationHandler('history', ({ from, to }) => {\n // Don't create an additional session for the initial route or if the location did not change\n if (!(from === undefined || from === to)) {\n startSessionOnHub(getCurrentHub());\n }\n });\n}\n\n/**\n * Captures user feedback and sends it to Sentry.\n */\nfunction captureUserFeedback(feedback) {\n const client = getCurrentHub().getClient();\n if (client) {\n client.captureUserFeedback(feedback);\n }\n}\n\nexport { captureUserFeedback, defaultIntegrations, forceLoad, init, onLoad, showReportDialog, wrap };\n//# sourceMappingURL=sdk.js.map\n","import { getCurrentHub, showReportDialog, withScope, captureException } from '@sentry/browser';\nimport { isError, logger } from '@sentry/utils';\nimport hoistNonReactStatics from 'hoist-non-react-statics';\nimport * as React from 'react';\n\nconst _jsxFileName = \"/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx\";\n\nfunction isAtLeastReact17(version) {\n const major = version.match(/^([^.]+)/);\n return major !== null && parseInt(major[0]) >= 17;\n}\n\nconst UNKNOWN_COMPONENT = 'unknown';\n\nconst INITIAL_STATE = {\n componentStack: null,\n error: null,\n eventId: null,\n};\n\nfunction setCause(error, cause) {\n const seenErrors = new WeakMap();\n\n function recurse(error, cause) {\n // If we've already seen the error, there is a recursive loop somewhere in the error's\n // cause chain. Let's just bail out then to prevent a stack overflow.\n if (seenErrors.has(error)) {\n return;\n }\n if (error.cause) {\n seenErrors.set(error, true);\n return recurse(error.cause, cause);\n }\n error.cause = cause;\n }\n\n recurse(error, cause);\n}\n\n/**\n * A ErrorBoundary component that logs errors to Sentry. Requires React >= 16.\n * NOTE: If you are a Sentry user, and you are seeing this stack frame, it means the\n * Sentry React SDK ErrorBoundary caught an error invoking your application code. This\n * is expected behavior and NOT indicative of a bug with the Sentry React SDK.\n */\nclass ErrorBoundary extends React.Component {\n\n constructor(props) {\n super(props);ErrorBoundary.prototype.__init.call(this);\n this.state = INITIAL_STATE;\n this._openFallbackReportDialog = true;\n\n const client = getCurrentHub().getClient();\n if (client && client.on && props.showDialog) {\n this._openFallbackReportDialog = false;\n client.on('afterSendEvent', event => {\n if (!event.type && event.event_id === this._lastEventId) {\n showReportDialog({ ...props.dialogOptions, eventId: this._lastEventId });\n }\n });\n }\n }\n\n componentDidCatch(error, { componentStack }) {\n const { beforeCapture, onError, showDialog, dialogOptions } = this.props;\n withScope(scope => {\n // If on React version >= 17, create stack trace from componentStack param and links\n // to to the original error using `error.cause` otherwise relies on error param for stacktrace.\n // Linking errors requires the `LinkedErrors` integration be enabled.\n // See: https://reactjs.org/blog/2020/08/10/react-v17-rc.html#native-component-stacks\n //\n // Although `componentDidCatch` is typed to accept an `Error` object, it can also be invoked\n // with non-error objects. This is why we need to check if the error is an error-like object.\n // See: https://github.com/getsentry/sentry-javascript/issues/6167\n if (isAtLeastReact17(React.version) && isError(error)) {\n const errorBoundaryError = new Error(error.message);\n errorBoundaryError.name = `React ErrorBoundary ${errorBoundaryError.name}`;\n errorBoundaryError.stack = componentStack;\n\n // Using the `LinkedErrors` integration to link the errors together.\n setCause(error, errorBoundaryError);\n }\n\n if (beforeCapture) {\n beforeCapture(scope, error, componentStack);\n }\n const eventId = captureException(error, { contexts: { react: { componentStack } } });\n if (onError) {\n onError(error, componentStack, eventId);\n }\n if (showDialog) {\n this._lastEventId = eventId;\n if (this._openFallbackReportDialog) {\n showReportDialog({ ...dialogOptions, eventId });\n }\n }\n\n // componentDidCatch is used over getDerivedStateFromError\n // so that componentStack is accessible through state.\n this.setState({ error, componentStack, eventId });\n });\n }\n\n componentDidMount() {\n const { onMount } = this.props;\n if (onMount) {\n onMount();\n }\n }\n\n componentWillUnmount() {\n const { error, componentStack, eventId } = this.state;\n const { onUnmount } = this.props;\n if (onUnmount) {\n onUnmount(error, componentStack, eventId);\n }\n }\n\n __init() {this.resetErrorBoundary = () => {\n const { onReset } = this.props;\n const { error, componentStack, eventId } = this.state;\n if (onReset) {\n onReset(error, componentStack, eventId);\n }\n this.setState(INITIAL_STATE);\n };}\n\n render() {\n const { fallback, children } = this.props;\n const state = this.state;\n\n if (state.error) {\n let element = undefined;\n if (typeof fallback === 'function') {\n element = fallback({\n error: state.error,\n componentStack: state.componentStack,\n resetError: this.resetErrorBoundary,\n eventId: state.eventId,\n });\n } else {\n element = fallback;\n }\n\n if (React.isValidElement(element)) {\n return element;\n }\n\n if (fallback) {\n (typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('fallback did not produce a valid ReactElement');\n }\n\n // Fail gracefully if no fallback provided or is not valid\n return null;\n }\n\n if (typeof children === 'function') {\n return (children )();\n }\n return children;\n }\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction withErrorBoundary(\n WrappedComponent,\n errorBoundaryOptions,\n) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n const componentDisplayName = WrappedComponent.displayName || WrappedComponent.name || UNKNOWN_COMPONENT;\n\n const Wrapped = (props) => (\n React.createElement(ErrorBoundary, { ...errorBoundaryOptions, __self: this, __source: {fileName: _jsxFileName, lineNumber: 227}}\n , React.createElement(WrappedComponent, { ...props, __self: this, __source: {fileName: _jsxFileName, lineNumber: 228}} )\n )\n );\n\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n Wrapped.displayName = `errorBoundary(${componentDisplayName})`;\n\n // Copy over static methods from Wrapped component to Profiler HOC\n // See: https://reactjs.org/docs/higher-order-components.html#static-methods-must-be-copied-over\n hoistNonReactStatics(Wrapped, WrappedComponent);\n return Wrapped;\n}\n\nexport { ErrorBoundary, UNKNOWN_COMPONENT, isAtLeastReact17, withErrorBoundary };\n//# sourceMappingURL=errorboundary.js.map\n","import { globalLocaleText } from 'dds-utils/locale';\n\nexport const ERROR_STATUS_MSG_MAP: Record = {\n /** CODE_2XX */\n 200: 'requestConfig.success.msg',\n /** CODE_4xx */\n 401: 'requestConfig.unAuth.msg',\n 403: 'requestConfig.permissionDenied.msg',\n 429: 'errCode.TokenExceedsRateLimit',\n /** CODE_5XX */\n 500: 'requestConfig.responseStatus.msg',\n};\n\nexport const ERROR_CODE_MSG_MAP: Record = {\n 101: 'requestConfig.errorContent.msg',\n /** CODE_2XXXXX */\n 200001: 'errCode.PartialSuccessBatchAssignLeaders',\n 200002: 'errCode.PartialSuccessBatchAssignWorkers',\n\n /** CODE_4XXXXX */\n 400000: 'errCode.BadRequest',\n 400001: 'errCode.ParameterMissing',\n 400002: 'errCode.ParameterIsInvalid',\n 400050: 'errCode.AnnotationNotListOfObj',\n 400051: 'errCode.AnnotationMissingCatName',\n 400052: 'errCode.AnnotationMissingBBox',\n 400053: 'errCode.AnnotationBBoxFormatError',\n 400054: 'errCode.AnnotationFormatError',\n 400100: 'errCode.FlagGroupsNotListOfObj',\n 400101: 'errCode.FlagObjectMissingFlag',\n 400102: 'errCode.FlagObjectFlagValueInvalid',\n 400103: 'errCode.FlagObjectMissingIDs',\n 400104: 'errCode.FlagObjectIDsNotList',\n 400150: 'errCode.LabelSetNameInvalid',\n 400151: 'errCode.LabelSetNameConflicts',\n 400200: 'errCode.UserNotFoundForLabelProject',\n 400201: 'errCode.UserNotActiveForLabelProject',\n 400202: 'errCode.DatasetNotFoundForLabelProject',\n 400203: 'errCode.LabelTaskNotFoundForLabelProject',\n 400204: 'errCode.CreateLabelProjectRequireManager',\n 400205: 'errCode.CreateLabelProjectRequireDataset',\n 400206: 'errCode.CreateLabelProjectRequireCategory',\n 400207: 'errCode.CreateLabelProjectDatasetOccupied',\n 400208: 'errCode.EditLabelProjectRequireManager',\n 400209: 'errCode.InitLabelProjectMustBeWaiting',\n 400210: 'errCode.InitLabelProjectTaskConfigError',\n 400211: 'errCode.QALabelProjectActionError',\n 400212: 'errCode.QALabelProjectMustBeReviewing',\n 400213: 'errCode.ExportLabelProjectMustBeAccepted',\n 400214: 'errCode.LeaderIDIsRequired',\n 400215: 'errCode.LabelerIDIsRequired',\n 400216: 'errCode.LabelProjectRoleIsNotTaskLevel',\n 400217: 'errCode.CantReplaceRoleWithTheSameUser',\n 400218: 'errCode.OldUserDoesNotHaveTheTaskRole',\n 400219: 'errCode.NewUserAlreadyHaveTheTaskRole',\n 400220: 'errCode.CantTransferRoleBetweenDifferentTask',\n 400221: 'errCode.CantTransferRoleToDifferentKind',\n 400222: 'errCode.RestartLabelTaskMustBeRejected',\n 400223: 'errCode.QALabelTaskActionError',\n 400224: 'errCode.AcceptLabelTaskMustBeReviewing',\n 400225: 'errCode.RejectLabelTaskMustBeReviewing',\n 400226: 'errCode.ForceAcceptLabelTaskMustBeRejected',\n 400227: 'errCode.LabelAnnotationMissingFields',\n 400228: 'errCode.LabelAnnotationFieldValueInvalid',\n 400229: 'errCode.LabelImageRequireTaskStatusWorking',\n 400230: 'errCode.LabelImageRequireUnfinishedReviewing',\n 400231: 'errCode.ReviewImageRequireTaskStatusWorking',\n 400232: 'errCode.ReviewImageRequireFinishedLabeling',\n 400233: 'errCode.ReviewImageTargetLabelNotFound',\n 400234: 'errCode.ReviewImageFoundExistedReview',\n 400235: 'errCode.CantDeleteAllOwnersOfLabelProject',\n 400236: 'errCode.NumOfTaskLeaderMismatchesConfig',\n 400237: 'errCode.TaskDoesNotRequireReviewer',\n 400238: 'errCode.NumOfTaskLabelerMismatchesConfig',\n 400239: 'errCode.NumOfTaskReviewerMismatchesConfig',\n 400240: 'errCode.TryInitRoleForTaskWithActiveRoles',\n 400241: 'errCode.TaskRoleNotOfLeaderKind',\n 401000: 'errCode.Unauthorized',\n 401001: 'requestConfig.unAuth.msg',\n 403000: 'errCode.Forbidden',\n 403001: 'requestConfig.permissionDenied.msg',\n 403050: 'errCode.UserAuthenticationFailed',\n 403051: 'errCode.UserCantViewLabelProjectTask',\n 403052: 'errCode.UserCantViewLabelProjectRole',\n 403053: 'errCode.UserCantCreateLabelProject',\n 403054: 'errCode.UserCantViewLabelProject',\n 403055: 'errCode.UserCantEditLabelProject',\n 403056: 'errCode.UserCantInitLabelProject',\n 403057: 'errCode.UserCantQALabelProject',\n 403058: 'errCode.UserCantExportLabelProject',\n 403059: 'errCode.UserCantAssignLabelTaskLeader',\n 403060: 'errCode.UserCantAssignLabelTaskWorker',\n 403061: 'errCode.UserCantRestartLabelTask',\n 403062: 'errCode.UserCantQALabelTask',\n 403063: 'errCode.UserCantLabelTaskImage',\n 403064: 'errCode.UserCantReviewTaskImage',\n 404000: 'errCode.NotFound',\n 404050: 'errCode.DatasetNotFound',\n 404051: 'errCode.DatasetNotReadable',\n 404052: 'errCode.DatasetMissingEmbdFile',\n 404053: 'errCode.DatasetImageNotFound',\n 404054: 'errCode.DatasetHasNoFNFPData',\n 404055: 'errCode.DatasetLabelNotFound',\n 404056: 'errCode.DatasetFNFPPrecisionNotFound',\n 404100: 'errCode.ReRankByFlagTaskNotFound',\n 404150: 'errCode.LabelProjectNotFound',\n 404151: 'errCode.LabelProjectRoleNotFound',\n 404152: 'errCode.LabelProjectTaskNotFound',\n 404153: 'errCode.LabelTaskImageNotFound',\n 429002: 'errCode.TokenExceedsRateLimit',\n 500000: 'errCode.InternalError',\n /** CODE_5XXXXX */\n 500001: 'errCode.FailedToCloneLabelSet',\n};\n\n/**\n * return common code / status message\n * @param code\n * @param status\n * @returns\n */\nexport const matchErrorMsg = (code?: number, status?: number) => {\n if (code && ERROR_CODE_MSG_MAP[code]) {\n return globalLocaleText(ERROR_CODE_MSG_MAP[code]);\n }\n if (status && ERROR_STATUS_MSG_MAP[status]) {\n return globalLocaleText(ERROR_STATUS_MSG_MAP[status]);\n }\n return globalLocaleText('requestConfig.errorData.msg', {\n code: `${status}${code ? `-${code}` : ''}`,\n });\n};\n","// Runtime configuration\nimport React from 'react';\nimport humps from 'humps';\nimport { message } from 'antd';\nimport { RequestConfig, RunTimeLayoutConfig, history } from '@umijs/max';\nimport { ErrorBoundary, ErrorBoundaryProps } from '@sentry/react';\nimport { RunningErrorTip } from 'dds-components';\nimport { STORAGE_KEY } from './constants';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { matchErrorMsg } from '@/services/errorCode';\n\n// Global initialization data configuration for Layout user information and permission initialization\n// More info:https://next.umijs.org/docs/api/runtime-config#getinitialstate\nexport async function getInitialState(): Promise<{ name: string }> {\n // Disable page zooming globally\n document.addEventListener(\n 'wheel',\n function (event) {\n if (event.ctrlKey || event.detail) {\n event.preventDefault();\n }\n },\n {\n capture: false,\n passive: false,\n },\n );\n document.addEventListener(\n 'keydown',\n function (event) {\n if (\n (event.ctrlKey === true || event.metaKey === true) &&\n (event.keyCode === 61 ||\n event.keyCode === 107 ||\n event.keyCode === 173 ||\n event.keyCode === 109 ||\n event.keyCode === 187 ||\n event.keyCode === 189)\n ) {\n event.preventDefault();\n }\n },\n false,\n );\n\n message.config({\n duration: 1.5,\n maxCount: 2,\n });\n\n return { name: '@umijs/max' };\n}\n\nexport const layout: RunTimeLayoutConfig = () => ({\n pure: true,\n title: globalLocaleText('layout.title'),\n});\n\nexport function rootContainer(container: JSX.Element) {\n const props = {\n showDialog: true,\n fallback: (props) => ,\n } as ErrorBoundaryProps;\n\n return React.createElement(ErrorBoundary, props, container);\n}\n\n/**\n * Custom request:\n * 1、By default, the request returns the \"data\" field in the API protocol and determines whether to throw an error based on the \"code\".\n * 2、Add options: `shouldReturnCodeRsp` to skip the default code error handling and return the complete backend data.\n * 3、Add options: `skipErrorHandler` to skip the default error prompt (including the status code).\n * 4、Add options: `hideCodeErrorMsg` to hide the default code error prompt (excluding the status code).\n */\nexport const request: RequestConfig = {\n baseURL: process.env.API_PATH,\n timeout: 100000,\n headers: {\n 'Content-Type': 'application/json',\n },\n // dataField: 'data',\n // Error handler: umi@3\n errorConfig: {\n errorHandler: (error: any, opts: any) => {\n // Pop 2XX error out into catch function in order to customize msg info\n if (/^2/.test(error.status)) return;\n\n // Allow to skip errorHandler\n if (opts?.skipErrorHandler) return;\n\n // Not logged in / Unauthorized access\n if (error.response?.status === 401) {\n history.push('/');\n localStorage.removeItem(STORAGE_KEY.AUTH_TOKEN);\n }\n\n // Allow to hide common code error msg tip\n if (opts?.hideCodeErrorMsg) return;\n\n if (error.response) {\n // The request was successful and the server responded with a status code, but the status code is outside the 2xx range.\n // Match Common error tip\n message.error(\n matchErrorMsg(error.response.data?.code, error.response.status),\n );\n } else if (error.request) {\n // The request has been successfully sent, but no response has been received\n message.error(globalLocaleText('requestConfig.noResponse.msg'));\n } else {\n message.error(globalLocaleText('requestConfig.requestError.msg'));\n }\n },\n },\n requestInterceptors: [\n (config: RequestConfig) => {\n if (config.params) {\n config.params = humps.decamelizeKeys(config.params);\n }\n if (config.data) {\n config.data = humps.decamelizeKeys(config.data);\n }\n if (config.headers) {\n if (\n process.env.MODEL_API_PATH &&\n config.url?.includes(process.env.MODEL_API_PATH)\n ) {\n config.headers['Token'] = process.env.MODEL_API_TOKEN || '';\n } else if (config.url?.indexOf('http') !== 0) {\n const token = localStorage.getItem(STORAGE_KEY.AUTH_TOKEN);\n if (token) {\n config.headers['Token'] = token;\n }\n }\n }\n return { ...config };\n },\n ],\n responseInterceptors: [\n (response: any) => {\n // 2xx response\n if (response.data?.code === 0) {\n response.data = humps.camelizeKeys(response.data?.data || {});\n return response;\n } else {\n if (!response.config?.hideCodeErrorMsg) {\n // Match 2xx customs error code\n message.error(matchErrorMsg(response.data?.code, 200));\n }\n throw response;\n }\n },\n ],\n};\n","import t,{Component as e}from\"react\";import r from\"prop-types\";import n from\"react-fast-compare\";import i from\"invariant\";import o from\"shallowequal\";function a(){return a=Object.assign||function(t){for(var e=1;e=0||(i[r]=t[r]);return i}var l={BASE:\"base\",BODY:\"body\",HEAD:\"head\",HTML:\"html\",LINK:\"link\",META:\"meta\",NOSCRIPT:\"noscript\",SCRIPT:\"script\",STYLE:\"style\",TITLE:\"title\",FRAGMENT:\"Symbol(react.fragment)\"},p={rel:[\"amphtml\",\"canonical\",\"alternate\"]},f={type:[\"application/ld+json\"]},d={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\"]},h=Object.keys(l).map(function(t){return l[t]}),m={accesskey:\"accessKey\",charset:\"charSet\",class:\"className\",contenteditable:\"contentEditable\",contextmenu:\"contextMenu\",\"http-equiv\":\"httpEquiv\",itemprop:\"itemProp\",tabindex:\"tabIndex\"},y=Object.keys(m).reduce(function(t,e){return t[m[e]]=e,t},{}),T=function(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},g=function(t){var e=T(t,l.TITLE),r=T(t,\"titleTemplate\");if(Array.isArray(e)&&(e=e.join(\"\")),r&&e)return r.replace(/%s/g,function(){return e});var n=T(t,\"defaultTitle\");return e||n||void 0},b=function(t){return T(t,\"onChangeClientState\")||function(){}},v=function(t,e){return e.filter(function(e){return void 0!==e[t]}).map(function(e){return e[t]}).reduce(function(t,e){return a({},t,e)},{})},A=function(t,e){return e.filter(function(t){return void 0!==t[l.BASE]}).map(function(t){return t[l.BASE]}).reverse().reduce(function(e,r){if(!e.length)for(var n=Object.keys(r),i=0;i/g,\">\").replace(/\"/g,\""\").replace(/'/g,\"'\")},x=function(t){return Object.keys(t).reduce(function(e,r){var n=void 0!==t[r]?r+'=\"'+t[r]+'\"':\"\"+r;return e?e+\" \"+n:n},\"\")},L=function(t,e){return void 0===e&&(e={}),Object.keys(t).reduce(function(e,r){return e[m[r]||r]=t[r],e},e)},j=function(e,r){return r.map(function(r,n){var i,o=((i={key:n})[\"data-rh\"]=!0,i);return Object.keys(r).forEach(function(t){var e=m[t]||t;\"innerHTML\"===e||\"cssText\"===e?o.dangerouslySetInnerHTML={__html:r.innerHTML||r.cssText}:o[e]=r[t]}),t.createElement(e,o)})},M=function(e,r,n){switch(e){case l.TITLE:return{toComponent:function(){return n=r.titleAttributes,(i={key:e=r.title})[\"data-rh\"]=!0,o=L(n,i),[t.createElement(l.TITLE,o,e)];var e,n,i,o},toString:function(){return function(t,e,r,n){var i=x(r),o=S(e);return i?\"<\"+t+' data-rh=\"true\" '+i+\">\"+w(o,n)+\"\":\"<\"+t+' data-rh=\"true\">'+w(o,n)+\"\"}(e,r.title,r.titleAttributes,n)}};case\"bodyAttributes\":case\"htmlAttributes\":return{toComponent:function(){return L(r)},toString:function(){return x(r)}};default:return{toComponent:function(){return j(e,r)},toString:function(){return function(t,e,r){return e.reduce(function(e,n){var i=Object.keys(n).filter(function(t){return!(\"innerHTML\"===t||\"cssText\"===t)}).reduce(function(t,e){var i=void 0===n[e]?e:e+'=\"'+w(n[e],r)+'\"';return t?t+\" \"+i:i},\"\"),o=n.innerHTML||n.cssText||\"\",a=-1===P.indexOf(t);return e+\"<\"+t+' data-rh=\"true\" '+i+(a?\"/>\":\">\"+o+\"\")},\"\")}(e,r,n)}}}},k=function(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,i=t.htmlAttributes,o=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?\"\":s,u=t.titleAttributes,h=t.linkTags,m=t.metaTags,y=t.scriptTags,T={toComponent:function(){},toString:function(){return\"\"}};if(t.prioritizeSeoTags){var g=function(t){var e=t.linkTags,r=t.scriptTags,n=t.encode,i=E(t.metaTags,d),o=E(e,p),a=E(r,f);return{priorityMethods:{toComponent:function(){return[].concat(j(l.META,i.priority),j(l.LINK,o.priority),j(l.SCRIPT,a.priority))},toString:function(){return M(l.META,i.priority,n)+\" \"+M(l.LINK,o.priority,n)+\" \"+M(l.SCRIPT,a.priority,n)}},metaTags:i.default,linkTags:o.default,scriptTags:a.default}}(t);T=g.priorityMethods,h=g.linkTags,m=g.metaTags,y=g.scriptTags}return{priority:T,base:M(l.BASE,e,n),bodyAttributes:M(\"bodyAttributes\",r,n),htmlAttributes:M(\"htmlAttributes\",i,n),link:M(l.LINK,h,n),meta:M(l.META,m,n),noscript:M(l.NOSCRIPT,o,n),script:M(l.SCRIPT,y,n),style:M(l.STYLE,a,n),title:M(l.TITLE,{title:c,titleAttributes:u},n)}},H=[],N=function(t,e){var r=this;void 0===e&&(e=\"undefined\"!=typeof document),this.instances=[],this.value={setHelmet:function(t){r.context.helmet=t},helmetInstances:{get:function(){return r.canUseDOM?H:r.instances},add:function(t){(r.canUseDOM?H:r.instances).push(t)},remove:function(t){var e=(r.canUseDOM?H:r.instances).indexOf(t);(r.canUseDOM?H:r.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=k({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:\"\",titleAttributes:{}}))},R=t.createContext({}),D=r.shape({setHelmet:r.func,helmetInstances:r.shape({get:r.func,add:r.func,remove:r.func})}),U=\"undefined\"!=typeof document,q=/*#__PURE__*/function(e){function r(t){var n;return(n=e.call(this,t)||this).helmetData=new N(n.props.context,r.canUseDOM),n}return s(r,e),r.prototype.render=function(){/*#__PURE__*/return t.createElement(R.Provider,{value:this.helmetData.value},this.props.children)},r}(e);q.canUseDOM=U,q.propTypes={context:r.shape({helmet:r.shape()}),children:r.node.isRequired},q.defaultProps={context:{}},q.displayName=\"HelmetProvider\";var Y=function(t,e){var r,n=document.head||document.querySelector(l.HEAD),i=n.querySelectorAll(t+\"[data-rh]\"),o=[].slice.call(i),a=[];return e&&e.length&&e.forEach(function(e){var n=document.createElement(t);for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(\"innerHTML\"===i?n.innerHTML=e.innerHTML:\"cssText\"===i?n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText)):n.setAttribute(i,void 0===e[i]?\"\":e[i]));n.setAttribute(\"data-rh\",\"true\"),o.some(function(t,e){return r=e,n.isEqualNode(t)})?o.splice(r,1):a.push(n)}),o.forEach(function(t){return t.parentNode.removeChild(t)}),a.forEach(function(t){return n.appendChild(t)}),{oldTags:o,newTags:a}},B=function(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute(\"data-rh\"),i=n?n.split(\",\"):[],o=[].concat(i),a=Object.keys(e),s=0;s=0;p-=1)r.removeAttribute(o[p]);i.length===o.length?r.removeAttribute(\"data-rh\"):r.getAttribute(\"data-rh\")!==a.join(\",\")&&r.setAttribute(\"data-rh\",a.join(\",\"))}},K=function(t,e){var r=t.baseTag,n=t.htmlAttributes,i=t.linkTags,o=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,p=t.title,f=t.titleAttributes;B(l.BODY,t.bodyAttributes),B(l.HTML,n),function(t,e){void 0!==t&&document.title!==t&&(document.title=S(t)),B(l.TITLE,e)}(p,f);var d={baseTag:Y(l.BASE,r),linkTags:Y(l.LINK,i),metaTags:Y(l.META,o),noscriptTags:Y(l.NOSCRIPT,a),scriptTags:Y(l.SCRIPT,c),styleTags:Y(l.STYLE,u)},h={},m={};Object.keys(d).forEach(function(t){var e=d[t],r=e.newTags,n=e.oldTags;r.length&&(h[t]=r),n.length&&(m[t]=d[t].oldTags)}),e&&e(),s(t,h,m)},_=null,z=/*#__PURE__*/function(t){function e(){for(var e,r=arguments.length,n=new Array(r),i=0;i elements are self-closing and can not contain children. Refer to our API for more information.\")}},o.flattenArrayTypeChildren=function(t){var e,r=t.child,n=t.arrayTypeChildren;return a({},n,((e={})[r.type]=[].concat(n[r.type]||[],[a({},t.newChildProps,this.mapNestedChildrenToProps(r,t.nestedChildren))]),e))},o.mapObjectTypeChildren=function(t){var e,r,n=t.child,i=t.newProps,o=t.newChildProps,s=t.nestedChildren;switch(n.type){case l.TITLE:return a({},i,((e={})[n.type]=s,e.titleAttributes=a({},o),e));case l.BODY:return a({},i,{bodyAttributes:a({},o)});case l.HTML:return a({},i,{htmlAttributes:a({},o)});default:return a({},i,((r={})[n.type]=a({},o),r))}},o.mapArrayTypeChildrenToProps=function(t,e){var r=a({},e);return Object.keys(t).forEach(function(e){var n;r=a({},r,((n={})[e]=t[e],n))}),r},o.warnOnInvalidChildren=function(t,e){return i(h.some(function(e){return t.type===e}),\"function\"==typeof t.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 \"+h.join(\", \")+\" are allowed. Helmet does not support rendering <\"+t.type+\"> elements. Refer to our API for more information.\"),i(!e||\"string\"==typeof e||Array.isArray(e)&&!e.some(function(t){return\"string\"!=typeof t}),\"Helmet expects a string as a child of <\"+t.type+\">. Did you forget to wrap your children in braces? ( <\"+t.type+\">{``} ) Refer to our API for more information.\"),!0},o.mapChildrenToProps=function(e,r){var n=this,i={};return t.Children.forEach(e,function(t){if(t&&t.props){var e=t.props,o=e.children,a=u(e,F),s=Object.keys(a).reduce(function(t,e){return t[y[e]||e]=a[e],t},{}),c=t.type;switch(\"symbol\"==typeof c?c=c.toString():n.warnOnInvalidChildren(t,o),c){case l.FRAGMENT:r=n.mapChildrenToProps(o,r);break;case l.LINK:case l.META:case l.NOSCRIPT:case l.SCRIPT:case l.STYLE:i=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:i,newChildProps:s,nestedChildren:o});break;default:r=n.mapObjectTypeChildren({child:t,newProps:r,newChildProps:s,nestedChildren:o})}}}),this.mapArrayTypeChildrenToProps(i,r)},o.render=function(){var e=this.props,r=e.children,n=u(e,G),i=a({},n),o=n.helmetData;return r&&(i=this.mapChildrenToProps(r,i)),!o||o instanceof N||(o=new N(o.context,o.instances)),o?/*#__PURE__*/t.createElement(z,a({},i,{context:o.value,helmetData:void 0})):/*#__PURE__*/t.createElement(R.Consumer,null,function(e){/*#__PURE__*/return t.createElement(z,a({},i,{context:e}))})},r}(e);W.propTypes={base:r.object,bodyAttributes:r.object,children:r.oneOfType([r.arrayOf(r.node),r.node]),defaultTitle:r.string,defer:r.bool,encodeSpecialCharacters:r.bool,htmlAttributes:r.object,link:r.arrayOf(r.object),meta:r.arrayOf(r.object),noscript:r.arrayOf(r.object),onChangeClientState:r.func,script:r.arrayOf(r.object),style:r.arrayOf(r.object),title:r.string,titleAttributes:r.object,titleTemplate:r.string,prioritizeSeoTags:r.bool,helmetData:r.object},W.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},W.displayName=\"Helmet\";export{W as Helmet,N as HelmetData,q as HelmetProvider};\n//# sourceMappingURL=index.module.js.map\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nexport const context = {};\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport { HelmetProvider } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@umijs+renderer-react@4.0.78_react-dom@18.1.0_react@18.1.0/node_modules/@umijs/renderer-react';\nimport { context } from './helmetContext';\n\nexport const innerProvider = (container) => {\n return React.createElement(HelmetProvider, { context }, container);\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport { AccessContext } from './context';\n\nfunction Provider(props) {\n const access = {};\n\n return (\n \n { props.children }\n \n );\n}\n\nexport function accessProvider(container) {\n return { container };\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport {\n Modal,\n ConfigProvider,\n message,\n notification,\n} from 'antd';\nimport { ApplyPluginsType } from 'umi';\nimport { getPluginManager } from '../core/plugin';\n\nlet cacheAntdConfig = null;\n\nconst getAntdConfig = () => {\n if(!cacheAntdConfig){\n cacheAntdConfig = getPluginManager().applyPlugins({\n key: 'antd',\n type: ApplyPluginsType.modify,\n initialValue: {\n ...{\"theme\":{\"token\":{\"colorLink\":\"#1e53f5\",\"colorPrimary\":\"#1e53f5\"}}},\n },\n });\n }\n return cacheAntdConfig;\n}\n\nexport function rootContainer(rawContainer) {\n const {\n appConfig,\n ...finalConfigProvider\n } = getAntdConfig();\n let container = rawContainer;\n\n if (finalConfigProvider.prefixCls) {\n Modal.config({\n rootPrefixCls: finalConfigProvider.prefixCls\n });\n message.config({\n prefixCls: `${finalConfigProvider.prefixCls}-message`\n });\n notification.config({\n prefixCls: `${finalConfigProvider.prefixCls}-notification`\n });\n }\n\n if (finalConfigProvider.iconPrefixCls) {\n // Icons in message need to set iconPrefixCls via ConfigProvider.config()\n ConfigProvider.config({\n iconPrefixCls: finalConfigProvider.iconPrefixCls,\n });\n };\n\n if (finalConfigProvider.theme) {\n // Pass config theme to static method\n ConfigProvider.config({\n theme: finalConfigProvider.theme,\n });\n }\n\n container = {container};\n\n\n\n return container;\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport { useModel } from '@@/plugin-model';\nfunction Loading() { return
; }\nexport default function InitialStateProvider(props: any) {\n const appLoaded = React.useRef(false);\n const { loading = false } = useModel(\"@@initialState\") || {};\n React.useEffect(() => {\n if (!loading) {\n appLoaded.current = true;\n }\n }, [loading]);\n if (loading && !appLoaded.current) {\n return ;\n }\n return props.children;\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport Provider from './Provider';\nexport function dataflowProvider(container) {\n return { container };\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nexport default { };\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport icons from './icons';\n\nfunction formatIcon(name: string) {\n return name\n .replace(name[0], name[0].toUpperCase())\n .replace(/-(w)/g, function(all, letter) {\n return letter.toUpperCase();\n });\n}\n\nexport function patchRoutes({ routes }) {\n Object.keys(routes).forEach(key => {\n const { icon } = routes[key];\n if (icon && typeof icon === 'string') {\n const upperIcon = formatIcon(icon);\n if (icons[upperIcon] || icons[upperIcon + 'Outlined']) {\n routes[key].icon = React.createElement(icons[upperIcon] || icons[upperIcon + 'Outlined']);\n }\n }\n });\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport { ConfigProvider } from 'antd';\n\nimport moment from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/moment@2.29.4/node_modules/moment';\nimport '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/moment@2.29.4/node_modules/moment/locale/zh-cn';\nimport { RawIntlProvider, getLocale, getDirection , setIntl, getIntl, localeInfo, event, LANG_CHANGE_EVENT } from './localeExports';\n\n\n\n\nexport function _onCreate() {\n const locale = getLocale();\n if (moment?.locale) {\n moment.locale(localeInfo[locale]?.momentLocale || '');\n }\n setIntl(locale);\n}\n\nconst useIsomorphicLayoutEffect =\n typeof window !== 'undefined' &&\n typeof window.document !== 'undefined' &&\n typeof window.document.createElement !== 'undefined'\n ? React.useLayoutEffect\n : React.useEffect\n\nexport const _LocaleContainer = (props:any) => {\n const initLocale = getLocale();\n const [locale, setLocale] = React.useState(initLocale);\n const [intl, setContainerIntl] = React.useState(() => getIntl(locale, true));\n\n const handleLangChange = (locale:string) => {\n if (moment?.locale) {\n moment.locale(localeInfo[locale]?.momentLocale || 'en');\n }\n setLocale(locale);\n setContainerIntl(getIntl(locale));\n };\n\n useIsomorphicLayoutEffect(() => {\n event.on(LANG_CHANGE_EVENT, handleLangChange);\n return () => {\n event.off(LANG_CHANGE_EVENT, handleLangChange);\n };\n }, []);\n\n const defaultAntdLocale = {\n }\n const direction = getDirection();\n\n return (\n \n {props.children}\n \n )\n};\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\n// @ts-ignore\nimport { _LocaleContainer } from './locale';\nexport function i18nProvider(container: Element) {\n return React.createElement(_LocaleContainer, null, container);\n}\n","import { IMG_FLAG } from '@/constants';\nimport { request } from '@umijs/max';\nimport { NsApiDataset } from '@/types/api';\n\n// function sleep(time: number) {\n// return new Promise((resolve) => setTimeout(resolve, time));\n// }\n\nexport async function fetchDatasetList(\n params: {\n pageNum: number;\n pageSize: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/datasets`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\nexport async function fetchDatasetDetail(\n params: {\n datasetId: string;\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/datasets/${params.datasetId}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\nexport async function fetchImgList(\n params: {\n datasetId: string;\n categoryId?: string;\n flag?: IMG_FLAG;\n labelId?: string;\n pageNum: number;\n pageSize: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/images`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\nexport async function saveFlagReq(\n params: {\n datasetId: string;\n flagGroups: {\n flag: IMG_FLAG;\n ids: string[];\n }[];\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/image_flags`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\nexport async function rerankByFlags(\n params: {\n datasetId: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/tasks/rerank_by_flags`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\nexport async function queryAsyncTaskStatus(\n params: {\n name: string;\n id: string;\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/tasks/${params.name}/${params.id}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\nexport async function saveAnnotationsReq(\n params: {\n datasetId: string;\n imageId: string;\n annotations: {\n categoryName?: string;\n boundingBox?: IBoundingBox;\n points?: number[];\n pointColor?: string[];\n pointName?: string[];\n lines?: number[];\n }[];\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/annotations`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\nexport async function fetchComparisonsImgList(\n params: {\n datasetId: string;\n labelId: string;\n precision: number;\n orderBy?: string;\n displayCategoryId?: string;\n pageNum: number;\n pageSize: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/comparisons`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\nexport async function labelClone(\n params: {\n datasetId: string;\n srcLabelId: string;\n dstLabelName?: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_clone`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n","import {\n AnnotationType,\n BASE_DISPLAY_OPTIONS,\n COMPARISONS_SORTBY,\n DEFAULT_PAGE_SIZE,\n DisplayOption,\n IMG_FLAG,\n LabelDiffMode,\n} from '@/constants';\nimport { Category } from '@/types';\nimport { NsDataSet } from '@/types/dataset';\n\nexport interface Comparisons {\n label: NsDataSet.Label;\n orderBy: COMPARISONS_SORTBY;\n precision: number;\n displays: string[];\n diffMode: LabelDiffMode;\n score: number;\n}\n\n/**\n * Saved in the URL.\n */\nexport interface PageState {\n datasetId: string;\n datasetName: string;\n page: number;\n pageSize: number;\n // config\n cloumnCount: number;\n // preview/edit status\n previewIndex: number;\n isSingleAnnotation: boolean;\n // filters\n filterValues: {\n categoryId?: string;\n displayAnnotationType?: AnnotationType;\n displayOptions: DisplayOption[];\n selectedLabelIds: string[];\n diffMode: LabelDiffMode;\n };\n // comparisons\n comparisons?: Comparisons;\n // flag tools\n flagTools?: {\n flagStatus: IMG_FLAG;\n };\n}\n\nexport const DEFAULT_FILTER_VALUES = {\n categoryId: 'All',\n displayAnnotationType: undefined,\n displayOptions: [\n DisplayOption.showAnnotations,\n DisplayOption.showAllCategory,\n ],\n selectedLabelIds: [],\n diffMode: LabelDiffMode.Overlay,\n};\n\nexport const DEFAULT_PAGE_STATE = {\n datasetId: '',\n datasetName: '',\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n cloumnCount: 5,\n isSingleAnnotation: false,\n previewIndex: -1,\n filterValues: {\n ...DEFAULT_FILTER_VALUES,\n },\n comparisons: undefined,\n flagTools: undefined,\n};\n\n/**\n * Not saved in the URL.\n */\nexport interface PageData {\n // data\n imgList: NsDataSet.DataSetImg[];\n total: number;\n screenLoading: string;\n // filters\n filters: {\n categories: Category[];\n annotationTypes: string[];\n displayOptions: DisplayOption[];\n labels: NsDataSet.Label[];\n };\n // flag tools\n flagTools: {\n lastShiftIndex: number;\n lastSavedIndexs: number[];\n count: number;\n };\n}\n\nexport const DEFALUE_PAGE_INNER_DATA = {\n imgList: [],\n total: 0,\n flagTools: {\n lastShiftIndex: -1,\n lastSavedIndexs: [],\n count: 0,\n },\n};\n\nexport const DEFAULT_PAGE_DATA = {\n ...DEFALUE_PAGE_INNER_DATA,\n screenLoading: '',\n hasEmbedFile: false,\n filters: {\n categories: [],\n annotationTypes: [],\n displayOptions: BASE_DISPLAY_OPTIONS,\n labels: [],\n },\n};\n","/**\n * 1、Page public member variables.\n * 2、Page default request.\n */\nimport { useCallback, useMemo } from 'react';\nimport { useImmer } from 'use-immer';\nimport { useRequest } from 'ahooks';\nimport {\n fetchDatasetDetail,\n fetchImgList,\n fetchComparisonsImgList,\n} from '@/services/dataset';\nimport {\n AnnotationType,\n COMPARE_RESULT,\n DisplayOption,\n LabelDiffMode,\n LABEL_SOURCE,\n COMPARE_RESULT_FILL_COLORS,\n} from '@/constants';\nimport {\n getDefaultDisplayOptions,\n getLabelCustomStyles,\n} from '@/utils/datasets';\nimport {\n DEFALUE_PAGE_INNER_DATA,\n DEFAULT_PAGE_DATA,\n DEFAULT_PAGE_STATE,\n PageData,\n PageState,\n} from './type';\nimport { isNumber } from 'lodash';\nimport { IAnnotationObject } from 'dds-components/Annotator';\nimport { NsDataSet } from '@/types/dataset';\n\nexport default () => {\n const [pageState, setPageState] = useImmer({\n ...DEFAULT_PAGE_STATE,\n });\n\n const [pageData, setPageData] = useImmer({\n ...DEFAULT_PAGE_DATA,\n });\n\n const { filterValues, comparisons } = pageState;\n const { filters } = pageData;\n\n /**\n * Initialize page parameters from the URL.\n * @param urlPageState\n */\n const onInitPageState = (urlPageState: PageState) => {\n setPageState((s) => {\n Object.assign(s, DEFAULT_PAGE_STATE, urlPageState);\n });\n };\n\n const onPageContentLoaded = () => {};\n\n const { loading: loadingDatasetInfo, runAsync: loadDatasetInfo } = useRequest(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n (_defaultLabelType?: LABEL_SOURCE) => {\n if (!pageState.datasetId) {\n throw null;\n }\n return fetchDatasetDetail({ datasetId: pageState.datasetId });\n },\n {\n refreshDeps: [pageState.datasetId],\n onSuccess: ({ categoryList, labelList, objectTypes }, params) => {\n const defaultLabelType =\n params.length > 0 ? params[0] : LABEL_SOURCE.gt;\n const types = objectTypes.filter(\n (item) => item !== AnnotationType.Classification,\n );\n const urlDisplayAnnotationType =\n pageState.filterValues.displayAnnotationType &&\n types.find(\n (item) => item === pageState.filterValues.displayAnnotationType,\n );\n setPageData((s) => {\n const displayAnnotationType = urlDisplayAnnotationType || types[0];\n const [options, optionsValue] = getDefaultDisplayOptions(\n pageState.filterValues.displayOptions,\n displayAnnotationType as AnnotationType,\n );\n s.filters.categories = [{ id: 'All', name: 'All' }, ...categoryList];\n s.filters.annotationTypes = types;\n s.filters.displayOptions = options;\n\n // Auto load && there are no URL parameters => add default value\n if (!urlDisplayAnnotationType) {\n setPageState((p) => {\n p.filterValues.displayOptions = optionsValue;\n p.filterValues.displayAnnotationType =\n displayAnnotationType as AnnotationType;\n });\n }\n // Add default options when there are no URL parameters.\n if (!pageState.filterValues.categoryId) {\n setPageState((p) => {\n p.filterValues.categoryId = 'All';\n });\n }\n // label\n if (labelList && labelList.length) {\n s.filters.labels = labelList.map((item) => {\n item.confidenceRange =\n item.source === LABEL_SOURCE.pred ? [0.2, 1] : [0, 1];\n if (\n item.source === defaultLabelType &&\n !urlDisplayAnnotationType\n ) {\n // Add default options when there are no URL parameters.\n setPageState((p) => {\n p.filterValues.selectedLabelIds = [item.id];\n });\n }\n return item;\n });\n }\n });\n },\n onError: () => {},\n },\n [\n (fetchInstance) => ({\n // Not show loading\n onBefore: () => ({\n loading: !Boolean(fetchInstance.state.params?.length),\n }),\n }),\n ],\n );\n\n const { loading: loadingImgList, run: loadImgList } = useRequest(\n (isSlient = false) => {\n // when to load slient\n if (!pageState.datasetId || !pageState.filterValues.categoryId) {\n throw null;\n }\n if (!isSlient) {\n // reset page data\n setPageData((s) => {\n Object.assign(s, DEFALUE_PAGE_INNER_DATA);\n });\n window.scrollTo(0, 0);\n }\n\n const categoryId =\n pageState.filterValues.categoryId === 'All'\n ? undefined\n : pageState.filterValues.categoryId;\n const params = {\n datasetId: pageState.datasetId,\n categoryId,\n pageNum: pageState.page,\n pageSize: pageState.pageSize,\n };\n if (pageState.comparisons) {\n return fetchComparisonsImgList({\n ...params,\n labelId: pageState.comparisons.label.id,\n precision: pageState.comparisons.precision,\n orderBy: pageState.comparisons.orderBy,\n displayCategoryId: categoryId,\n });\n }\n if (pageState.flagTools && pageState.flagTools.flagStatus >= 0) {\n Object.assign(params, {\n flag: pageState.flagTools.flagStatus,\n });\n }\n return fetchImgList(params);\n },\n {\n debounceWait: 20,\n refreshDeps: [\n pageState.datasetId,\n pageState.filterValues.categoryId,\n pageState.page,\n pageState.pageSize,\n pageState.comparisons?.precision,\n pageState.comparisons?.orderBy,\n pageState.flagTools?.flagStatus,\n ],\n onSuccess: (result) => {\n setPageData((s) => {\n s.imgList = result.imageList;\n s.total = result.total;\n });\n },\n onError: () => {},\n },\n [\n (fetchInstance) => ({\n // Not show loading\n onBefore: () => ({\n loading: !Boolean(fetchInstance.state.params?.length),\n }),\n }),\n ],\n );\n\n const onPreviewIndexChange = (index: number) => {\n setPageState((s) => {\n s.previewIndex = index;\n });\n };\n\n const exitPreview = () => {\n setPageState((s) => {\n s.previewIndex = -1;\n });\n };\n\n // UI display-related variables.\n const loading = loadingDatasetInfo || loadingImgList;\n\n const displayLabelIds: string[] = useMemo(() => {\n if (comparisons) {\n const result = [];\n const gtItem = filters.labels.find(\n (item) => item.source === LABEL_SOURCE.gt,\n );\n if (\n (comparisons.displays.includes(LABEL_SOURCE.gt) ||\n comparisons.displays.includes(COMPARE_RESULT.fn)) &&\n gtItem\n ) {\n result.push(gtItem.id);\n }\n if (\n comparisons.displays.includes(LABEL_SOURCE.pred) ||\n comparisons.displays.includes(COMPARE_RESULT.fp)\n ) {\n result.push(comparisons.label.id);\n }\n return result;\n }\n return filterValues.selectedLabelIds;\n }, [comparisons, filterValues.selectedLabelIds, filters.labels]);\n\n /** Whether it is a real tiling comparison state. */\n const isTiledDiff = useMemo(\n () =>\n displayLabelIds.length > 1 &&\n (filterValues.displayAnnotationType === AnnotationType.Matting ||\n (comparisons\n ? comparisons.diffMode === LabelDiffMode.Tiled\n : filterValues.diffMode === LabelDiffMode.Tiled)),\n [comparisons, filterValues.diffMode, displayLabelIds],\n );\n\n // compute display options result\n const displayOptionsResult = useMemo(() => {\n const result: { [key in DisplayOption]?: boolean } = {};\n (Object.keys(DisplayOption) as Array).forEach(\n (key) => {\n result[key] = Boolean(\n filterValues.displayOptions?.find((item) => item === key),\n );\n },\n );\n return result;\n }, [pageState.filterValues.displayOptions]);\n\n const displayObjectsFilter = useCallback(\n (imageData: NsDataSet.DataSetImg) => {\n let objects = [...imageData.objects] || [];\n\n const analysisMode = pageState.comparisons;\n const diffMode = {\n labels: pageData.filters.labels,\n displayLabelIds,\n isTiledDiff,\n };\n // Analysis mode -> filter fn/fp to display\n if (analysisMode) {\n const predObjects = objects.filter(\n (item) => item.source === LABEL_SOURCE.pred,\n );\n\n // filter score\n objects = objects.filter(\n (item) => (item.conf || 0) >= analysisMode.score,\n );\n\n // compute gt compare result\n objects = objects.map((box) => {\n const newBox = { ...box };\n if (box.source === LABEL_SOURCE.gt) {\n const result =\n isNumber(box.matchedDetIdx) &&\n box.matchedDetIdx >= 0 &&\n objects.includes(predObjects[box.matchedDetIdx])\n ? COMPARE_RESULT.ok\n : COMPARE_RESULT.fn;\n newBox.compareResult = result;\n }\n return newBox;\n });\n\n // filters to display\n objects = objects.filter((item) => {\n if (item.compareResult === COMPARE_RESULT.ok) {\n // ok && source in displays\n return item.source && analysisMode.displays.includes(item.source);\n }\n return (\n item.compareResult &&\n analysisMode.displays.includes(item.compareResult)\n );\n });\n }\n\n return objects.filter((item) => {\n const { showAnnotations, showAllCategory } = displayOptionsResult;\n const categoryId = pageState.filterValues.categoryId || '';\n if (\n !showAnnotations ||\n (!showAllCategory && item.categoryId !== categoryId) ||\n (diffMode &&\n item.labelId &&\n !diffMode.displayLabelIds.includes(item.labelId)) ||\n (diffMode &&\n diffMode.isTiledDiff &&\n item.labelId !== imageData.curLabelId)\n ) {\n return false;\n }\n if (!analysisMode && diffMode) {\n const label = diffMode.labels.find(\n (label) => label.id === item.labelId,\n );\n if (!label) return false;\n if (label.source === LABEL_SOURCE.gt) return true;\n return (\n item.conf !== undefined &&\n item.conf >= label?.confidenceRange[0] &&\n item.conf <= label?.confidenceRange[1]\n );\n }\n return true;\n });\n },\n [\n pageState.comparisons,\n pageData.filters.labels,\n displayLabelIds,\n isTiledDiff,\n displayOptionsResult,\n ],\n );\n\n const getCustomObjectStyles = useCallback(\n (object: IAnnotationObject) => {\n const {\n colorAplha: pointAplha,\n strokeDash,\n lineWidth: thickness,\n } = getLabelCustomStyles(\n object.labelId,\n displayLabelIds,\n isTiledDiff || Boolean(pageState.comparisons),\n );\n if (Boolean(pageState.comparisons) && object.compareResult) {\n return {\n pointAplha,\n strokeDash,\n thickness,\n fillColor:\n COMPARE_RESULT_FILL_COLORS[object.compareResult] || 'transparent',\n };\n }\n return {\n pointAplha,\n strokeDash,\n thickness,\n };\n },\n [displayLabelIds, isTiledDiff, Boolean(pageState.comparisons)],\n );\n\n return {\n // page var\n pageState,\n setPageState,\n pageData,\n setPageData,\n onInitPageState,\n onPageContentLoaded,\n onPreviewIndexChange,\n exitPreview,\n\n // require\n loadDatasetInfo,\n loadImgList,\n\n // compute var\n loading,\n displayLabelIds,\n isTiledDiff,\n displayOptionsResult,\n\n // common render\n displayObjectsFilter,\n getCustomObjectStyles,\n };\n};\n","/**\n * Comparison analysis (FN/FP)\n */\nimport { useState } from 'react';\nimport { useModel } from '@umijs/max';\nimport {\n LabelDiffMode,\n COMPARISONS_SORTBY,\n COMPARISONS_DISPLAY_OPTOIONS,\n AnnotationType,\n} from '@/constants';\nimport { Comparisons } from './type';\nimport { floorFloatNum } from 'dds-utils/digit';\nimport { NsDataSet } from '@/types/dataset';\n\nexport default () => {\n // common\n const [showAnalysisModal, setShowAnalysisModal] = useState(false);\n const { setPageState } = useModel('dataset.common');\n\n const openAnalysisModal = () => {\n setShowAnalysisModal(true);\n };\n\n const closeAnalysisModal = () => {\n setShowAnalysisModal(false);\n };\n\n /** Enter the comparison analysis. */\n const compareLabelSet = (label: NsDataSet.Label) => {\n setPageState((s) => {\n s.page = 1;\n s.filterValues.displayAnnotationType = AnnotationType.Detection; // just support detection now\n s.flagTools = undefined;\n s.comparisons = {\n label,\n orderBy: COMPARISONS_SORTBY.fn,\n precision: label.comparePrecisions[0].precision,\n displays: COMPARISONS_DISPLAY_OPTOIONS.map((item) => item.value),\n diffMode: LabelDiffMode.Overlay,\n score: floorFloatNum(label.comparePrecisions[0].threshold, 2),\n };\n });\n };\n\n const exitComparisons = () => {\n setPageState((s) => {\n s.page = 1;\n s.comparisons = undefined;\n });\n };\n\n const onFilterComparisonsPrecision = (\n type: keyof Comparisons,\n value: any,\n ) => {\n setPageState((s) => {\n if (!s.comparisons) return;\n // @ts-ignore\n s.comparisons[type] = value;\n\n if (type === 'precision') {\n // Reset the score when changing precision.\n const prec = s.comparisons.label.comparePrecisions.find(\n (item) => item.precision === value,\n );\n if (prec) s.comparisons.score = floorFloatNum(prec.threshold, 2);\n }\n });\n };\n\n return {\n showAnalysisModal,\n openAnalysisModal,\n closeAnalysisModal,\n compareLabelSet,\n exitComparisons,\n onFilterComparisonsPrecision,\n };\n};\n","/**\n * Header filters\n */\nimport { useModel } from '@umijs/max';\nimport {\n LabelDiffMode,\n DisplayOption,\n AnnotationType,\n IMG_CLOUMN_COUNT_MAX,\n} from '@/constants';\nimport { getDefaultDisplayOptions } from '@/utils/datasets';\n\nexport default () => {\n const { pageState, setPageState, pageData, setPageData } =\n useModel('dataset.common');\n\n const onCategoryChange = (categoryId: string) => {\n setPageState((s) => {\n s.filterValues.categoryId = categoryId;\n s.page = 1;\n });\n };\n\n const onColumnCountChange = (countState: number | boolean) => {\n let cloumnCount: number;\n if (typeof countState === 'number') {\n cloumnCount = countState;\n } else if (countState) {\n // +1\n cloumnCount =\n pageState.cloumnCount < IMG_CLOUMN_COUNT_MAX\n ? pageState.cloumnCount + 1\n : pageState.cloumnCount;\n } else {\n // -1\n cloumnCount =\n pageState.cloumnCount > 1\n ? pageState.cloumnCount - 1\n : pageState.cloumnCount;\n }\n setPageState((s) => {\n s.cloumnCount = cloumnCount;\n });\n };\n\n const onDisplayOptionsChange = (values: any) => {\n setPageState((s) => {\n s.filterValues.displayOptions = values as DisplayOption[];\n });\n };\n\n const onLabelsChange = (values: any) => {\n setPageState((s) => {\n // Sort when selected.\n s.filterValues.selectedLabelIds = values.sort((a: string, b: string) => {\n return (\n pageData.filters.labels.findIndex((item) => item.id === a) -\n pageData.filters.labels.findIndex((item) => item.id === b)\n );\n });\n });\n };\n\n const onLabelsDiffModeChange = (mode: LabelDiffMode) => {\n setPageState((s) => {\n s.filterValues.diffMode = mode;\n });\n };\n\n const onLabelConfidenceChange = (index: number, value: [number, number]) => {\n setPageData((s) => {\n s.filters.labels[index].confidenceRange = value;\n });\n };\n\n const onDisplayAnnotationTypeChange = (type: AnnotationType) => {\n const [options, optionsValue] = getDefaultDisplayOptions(\n pageState.filterValues.displayOptions,\n type,\n );\n setPageData((s) => {\n s.filters.displayOptions = options;\n });\n setPageState((s) => {\n s.filterValues.displayAnnotationType = type;\n s.filterValues.displayOptions = optionsValue;\n });\n };\n\n return {\n onCategoryChange,\n onColumnCountChange,\n onDisplayOptionsChange,\n onDisplayAnnotationTypeChange,\n onLabelsChange,\n onLabelsDiffModeChange,\n onLabelConfidenceChange,\n };\n};\n","/**\n * flag tools\n */\nimport { useModel } from '@umijs/max';\nimport { useImmer } from 'use-immer';\nimport { message, Modal } from 'antd';\nimport { useKeyPress, useRequest } from 'ahooks';\nimport {\n queryAsyncTaskStatus,\n rerankByFlags,\n saveFlagReq,\n} from '@/services/dataset';\nimport { IMG_FLAG } from '@/constants';\nimport { NsDataSet } from '@/types/dataset';\n\nconst getSlectedIndex = (list: Array) => {\n const selectIndexs: number[] = [];\n const selectedIds: string[] = [];\n list.forEach((item, index) => {\n if (item.selected) {\n selectIndexs.push(index);\n selectedIds.push(item.id);\n }\n });\n return { selectIndexs, selectedIds };\n};\n\nexport default () => {\n const { pageState, setPageState, pageData, setPageData, loadImgList } =\n useModel('dataset.common');\n const [isShiftKeyDown, setIsShiftKeyDown] = useImmer(false);\n\n const selectItem = (index: number) => {\n setPageData((s) => {\n if (!pageState.flagTools) return;\n const newSelected = !!!s.imgList[index].selected;\n if (\n isShiftKeyDown &&\n s.flagTools.lastShiftIndex >= 0 &&\n index !== s.flagTools.lastShiftIndex\n ) {\n // Shift key is pressed && there is a previously selected item.\n let selectedCount = s.flagTools.count;\n s.imgList.forEach((item, i) => {\n if (\n (i >= s.flagTools.lastShiftIndex && i <= index) ||\n (i >= index && i <= s.flagTools.lastShiftIndex)\n ) {\n selectedCount += item.selected ? 0 : 1;\n item.selected = true;\n }\n });\n // clear after mult select\n s.flagTools.lastShiftIndex = -1;\n s.flagTools.count = selectedCount;\n } else {\n // single select\n s.imgList[index].selected = newSelected;\n // Record the most recent selection.\n s.flagTools.lastShiftIndex = newSelected ? index : -1;\n s.flagTools.count += newSelected ? 1 : -1;\n }\n });\n };\n\n const changeSelectAll = () => {\n const shouldSelectAll = Boolean(\n pageData.flagTools.count !== pageState.pageSize,\n );\n setPageData((s) => {\n s.imgList.forEach((item) => {\n item.selected = shouldSelectAll;\n });\n s.flagTools.lastShiftIndex = -1;\n s.flagTools.count = shouldSelectAll ? pageState.pageSize : 0;\n });\n };\n\n const antiSelect = () => {\n setPageData((s) => {\n s.imgList.forEach((item) => {\n item.selected = !!!item.selected;\n });\n s.flagTools.lastShiftIndex = -1;\n s.flagTools.count = pageState.pageSize - s.flagTools.count;\n });\n };\n\n const limitNoSaveChangePage = () => {\n return new Promise((resolve) => {\n if (!pageState.flagTools) {\n resolve(null);\n return;\n }\n const { selectIndexs } = getSlectedIndex(pageData.imgList);\n if (\n selectIndexs.length > 0 &&\n (selectIndexs.length !== pageData.flagTools.lastSavedIndexs.length ||\n pageData.flagTools.lastSavedIndexs.find(\n (item) => !selectIndexs.includes(item),\n ))\n ) {\n Modal.confirm({\n content: `Now selected items have not been saved, these will lose if you click 'OK', are you sure?`,\n onOk: () => {\n resolve(null);\n },\n });\n return;\n }\n resolve(null);\n });\n };\n\n /** flag status filter */\n const onChangeFlagStatus = (value: IMG_FLAG) => {\n limitNoSaveChangePage().then(() => {\n setPageState((s) => {\n s.page = 1;\n s.flagTools!.flagStatus = value;\n });\n });\n };\n\n const enterFlagTools = () => {\n // initialize\n setPageData((s) => {\n s.flagTools.lastShiftIndex = -1;\n s.flagTools.lastSavedIndexs = [];\n s.flagTools.count = 0;\n });\n setPageState((s) => {\n s.page = 1;\n s.flagTools = {\n flagStatus: IMG_FLAG.all,\n };\n });\n };\n\n const exitFlagTools = () => {\n limitNoSaveChangePage().then(() => {\n setPageState((s) => {\n s.page = 1;\n s.flagTools = undefined;\n });\n });\n };\n\n const saveFlag = async (flag: IMG_FLAG) => {\n if (pageData.flagTools.count <= 0) {\n message.warning('No any image to be selected!');\n return;\n }\n\n const { selectIndexs, selectedIds } = getSlectedIndex(pageData.imgList);\n const hide = message.loading('Flag saving...');\n try {\n await saveFlagReq({\n datasetId: pageState.datasetId,\n flagGroups: [\n {\n flag,\n ids: selectedIds,\n },\n ],\n });\n // request success\n hide();\n setPageData((s) => {\n s.imgList.forEach((item) => {\n if (item.selected) item.flag = flag;\n });\n s.flagTools.lastSavedIndexs = selectIndexs;\n });\n } catch (error) {\n console.error('error', error);\n hide();\n message.error('Flag save fail, please retry!');\n }\n };\n\n const { run: queryAsyncTask, cancel: cancelQueryAsyncTask } = useRequest(\n (params) => {\n return queryAsyncTaskStatus(params);\n },\n {\n manual: true,\n pollingInterval: 1000,\n pollingWhenHidden: true,\n onSuccess: ({ status }) => {\n if (status === 'success') {\n cancelQueryAsyncTask();\n message.success('Order update success!');\n setPageData((s) => {\n s.screenLoading = '';\n });\n // Manually trigger the update of the first page of data.\n setPageState((s) => {\n s.page = 1;\n });\n loadImgList();\n } else if (status === 'fail') {\n cancelQueryAsyncTask();\n message.error('Query order task fail, Please retry!');\n setPageData((s) => {\n s.screenLoading = '';\n });\n }\n },\n },\n );\n\n const updateOrder = async () => {\n try {\n setPageData((s) => {\n s.screenLoading = 'Updating order...';\n });\n // Trigger the backend task.\n const { id, name } = await rerankByFlags({\n datasetId: pageState.datasetId,\n });\n // Poll for task results.\n queryAsyncTask({ id, name });\n } catch (error) {\n console.error('error', error);\n setPageData((s) => {\n s.screenLoading = '';\n });\n }\n };\n\n useKeyPress(\n ['Shift'],\n (e: KeyboardEvent) => {\n if (!pageState.flagTools || pageState.previewIndex >= 0) {\n return;\n }\n setIsShiftKeyDown(e.type === 'keydown');\n },\n { events: ['keydown', 'keyup'] },\n );\n\n /**\n * Green flag:shift+Q\n * Red flag:shift+E\n * Anti select:Z\n */\n useKeyPress(\n ['shift.q', 'shift.Q', 'shift.e', 'shift.E', 'v', 'V'],\n (e: KeyboardEvent) => {\n if (!pageState.flagTools || pageState.previewIndex >= 0) {\n return;\n }\n if (['v', 'V'].includes(e.key)) {\n antiSelect();\n }\n if (['q', 'Q'].includes(e.key) && e.shiftKey) {\n saveFlag(IMG_FLAG.picked);\n }\n if (['e', 'E'].includes(e.key) && e.shiftKey) {\n saveFlag(IMG_FLAG.rejected);\n }\n },\n );\n\n return {\n enterFlagTools,\n exitFlagTools,\n onChangeFlagStatus,\n selectItem,\n changeSelectAll,\n antiSelect,\n limitNoSaveChangePage,\n saveFlag,\n updateOrder,\n };\n};\n","import { useImmer } from 'use-immer';\nimport { useRequest } from 'ahooks';\nimport { fetchDatasetList } from '@/services/dataset';\nimport { DEFAULT_PAGE_SIZE } from '@/constants';\nimport { NsDataSet } from '@/types/dataset';\n\nexport interface PaginationState {\n page: number;\n pageSize: number;\n}\n\nexport interface DatasetsData {\n list: NsDataSet.DataSet[];\n total: number;\n}\n\nexport default () => {\n const [pagination, setPagination] = useImmer({\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n });\n const [datasetsData, setDatasetsData] = useImmer({\n list: [],\n total: 0,\n });\n\n const { loading, run: loadDatasets } = useRequest(\n (page?: number, pageSize?: number) => {\n return fetchDatasetList({\n pageNum: page || pagination.page,\n pageSize: pageSize || pagination.pageSize,\n });\n },\n {\n manual: true,\n debounceWait: 100,\n refreshDeps: [pagination.page, pagination.pageSize],\n onSuccess: ({ datasetList, total }) => {\n setDatasetsData((s) => {\n s.list = datasetList;\n s.total = total;\n });\n },\n onError: () => {},\n },\n );\n\n const onPageChange = (page: number) => {\n setPagination((s) => {\n s.page = page;\n });\n loadDatasets(page);\n };\n\n const onPageSizeChange = (page: number, size: number) => {\n setPagination((s) => {\n s.page = page;\n s.pageSize = size;\n });\n loadDatasets(page, size);\n };\n\n return {\n loading,\n pagination,\n datasetsData,\n loadDatasets,\n setPagination,\n onPageChange,\n onPageSizeChange,\n };\n};\n","import { useState, useEffect } from 'react';\nimport { enquireScreen } from 'enquire-js';\nimport { useEventListener } from 'ahooks';\n\nlet defaultMobile: boolean = false;\nenquireScreen((b: boolean) => {\n defaultMobile = b;\n});\n\nexport default () => {\n /** Loading */\n const [loading, setLoading] = useState(false);\n const [loadingTip, setLoadingTip] = useState('');\n const [isMobile, setIsMobile] = useState(defaultMobile);\n const [fixSliderWidth, setFixSliderWidth] = useState(0);\n const [layoutInnerWidth, setLayoutInnerWidth] = useState(window.innerWidth);\n\n useEffect(() => {\n enquireScreen((b: boolean) => {\n setIsMobile(b);\n });\n }, []);\n\n useEffect(() => {\n setLayoutInnerWidth(window.innerWidth - fixSliderWidth);\n }, [fixSliderWidth]);\n\n useEventListener(\n 'resize',\n () => {\n const _width = window.innerWidth - fixSliderWidth;\n setLayoutInnerWidth(_width);\n },\n { target: window },\n );\n\n return {\n loading,\n setLoading,\n loadingTip,\n setLoadingTip,\n isMobile,\n fixSliderWidth,\n setFixSliderWidth,\n layoutInnerWidth,\n };\n};\n","import { NsApiUser } from '@/types/api';\nimport { request } from '@umijs/max';\n\nexport async function fetchUserInfo(options?: { [key: string]: any }) {\n return request(`/api/v1/user_info`, {\n method: 'GET',\n skipErrorHandler: true,\n ...(options || {}),\n });\n}\n\nexport async function login(\n params: {\n username: string;\n password: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/login`, {\n method: 'POST',\n data: {\n ...params,\n },\n skipErrorHandler: true,\n ...(options || {}),\n });\n}\n\nexport async function logout(options?: { [key: string]: any }) {\n return request(`/api/v1/logout`, {\n method: 'POST',\n ...(options || {}),\n });\n}\n","import { message } from 'antd';\nimport { history, useModel } from '@umijs/max';\nimport { useImmer } from 'use-immer';\nimport { login, logout, fetchUserInfo } from '@/services/user';\nimport { EUserStatus, STORAGE_KEY } from '@/constants';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { useState } from 'react';\n\nexport default () => {\n const { setLoading } = useModel('global');\n const [showLoginModal, setShowLoginModal] = useState(false);\n const [user, setUser] = useImmer<{\n isLogin?: boolean;\n username?: string;\n userId?: string;\n token?: string;\n isStaff?: boolean;\n }>({});\n\n const limitLoginAction = () => {\n return new Promise((resolve) => {\n if (user.isLogin) {\n resolve(null);\n return;\n }\n setShowLoginModal(true);\n });\n };\n\n const checkLoginStatus = async () => {\n try {\n const token = localStorage.getItem(STORAGE_KEY.AUTH_TOKEN);\n const { id, name, status, isStaff } = await fetchUserInfo();\n if (token && status === EUserStatus.Active)\n setUser({\n isLogin: true,\n username: name,\n userId: id,\n token,\n isStaff,\n });\n } catch (error) {\n console.error('error', error);\n setUser({\n isLogin: false,\n });\n }\n };\n\n const onLogin = async (formdata: { username: string; password: string }) => {\n const { username: name, password } = formdata;\n const { pathname } = window.location;\n const isFromLoginPage = pathname.includes('page/login');\n setLoading(true);\n try {\n const { username, userId, token, isStaff } = await login({\n username: name,\n password,\n });\n setUser({\n isLogin: true,\n username,\n token,\n userId,\n isStaff,\n });\n localStorage.setItem(STORAGE_KEY.AUTH_TOKEN, token);\n if (!isFromLoginPage) setShowLoginModal(false);\n message.success(globalLocaleText('loginSuccess'));\n } catch {\n message.error(globalLocaleText('loginAuthenticationFailed'));\n } finally {\n setLoading(false);\n }\n };\n\n const onLogout = async () => {\n try {\n await logout();\n setUser({ isLogin: false });\n message.success(globalLocaleText('logoutSuccess'));\n localStorage.removeItem(STORAGE_KEY.AUTH_TOKEN);\n history.push('/');\n } catch (error) {\n console.error('error', error);\n message.error(globalLocaleText('logoutFailed'));\n }\n };\n\n return {\n user,\n setUser,\n checkLoginStatus,\n onLogin,\n onLogout,\n showLoginModal,\n setShowLoginModal,\n limitLoginAction,\n };\n};\n","import { floorFloatNum } from './digit';\n\nexport function genFileNameByTimestamp(\n timestamp: number,\n name?: string,\n ext?: string,\n) {\n const date = new Date(timestamp);\n const year = date.getFullYear();\n const month = floorFloatNum(date.getMonth() + 1);\n const day = floorFloatNum(date.getDate());\n const hours = floorFloatNum(date.getHours());\n const minutes = floorFloatNum(date.getMinutes());\n const seconds = floorFloatNum(date.getSeconds());\n const milliseconds = floorFloatNum(date.getMilliseconds(), 3);\n\n let fileName = `${year}_${month}_${day}_${hours}_${minutes}_${seconds}_${milliseconds}`;\n if (name) {\n fileName = `${name}_${fileName}`;\n }\n if (ext) {\n fileName = `${fileName}.${ext}`;\n }\n return fileName;\n}\n\nexport function saveObejctToJsonFile(data: object, fileName: string) {\n const jsonString = JSON.stringify(data);\n const blob = new Blob([jsonString], { type: 'application/json' });\n const url = URL.createObjectURL(blob);\n\n const link = document.createElement('a');\n link.href = url;\n link.download = fileName;\n document.body.appendChild(link);\n link.click();\n document.body.removeChild(link);\n URL.revokeObjectURL(url);\n}\n\nexport const loadImage = (src: string) => {\n return new Promise((resolve, reject) => {\n const imgNode = new Image();\n imgNode.src = src;\n\n imgNode.onload = () => {\n resolve(imgNode);\n };\n\n imgNode.onerror = () => {\n reject(imgNode);\n };\n });\n};\n","/* eslint-disable @typescript-eslint/no-namespace */\n\nimport { LabelImageFile } from '@/types/annotator';\nimport { COCO } from '@/types/coco';\nimport { rleToCanvas } from 'dds-components/Annotator/tools/useMask';\nimport {\n calculatePolygonArea,\n convertToVerticesArray,\n getLimitRectFromPoints,\n getMaskInfoByCanvas,\n translateBoundingBoxToRect,\n} from 'dds-components/Annotator/utils/compute';\nimport { Category } from '@/types';\n\nexport const convertToCocoDateset = (\n images: LabelImageFile[],\n categories: Category[],\n) => {\n const cocoDataset: COCO.Dataset = {\n info: {\n year: new Date().getFullYear(),\n version: '1.0',\n description: 'Annotations in COCO format, labeled by DeepDataSpace',\n contributor: '',\n date_created: new Date().toISOString(),\n },\n images: [],\n categories: [],\n annotations: [],\n };\n\n // Create category mapping\n const categoryMap: Record = {};\n categories.forEach((category, index) => {\n const categoryId = index;\n categoryMap[category.name] = categoryId;\n cocoDataset.categories.push({\n id: categoryId,\n name: category.name,\n });\n });\n\n // Convert image and annotation data\n images.forEach((image, index) => {\n const imageId = index;\n cocoDataset.images.push({\n id: imageId,\n file_name: image.fileName,\n width: image.width,\n height: image.height,\n });\n\n image.objects.forEach((annotation) => {\n const newAnnotation: COCO.Annotation = {\n id: cocoDataset.annotations.length,\n image_id: imageId,\n bbox: [],\n area: 0,\n segmentation: [],\n iscrowd: 0,\n };\n\n if (\n categoryMap &&\n annotation.categoryName &&\n categoryMap[annotation.categoryName] !== undefined\n ) {\n newAnnotation.category_id = categoryMap[annotation.categoryName];\n }\n\n if (annotation.boundingBox) {\n const { x, y, width, height } = translateBoundingBoxToRect(\n annotation.boundingBox,\n {\n width: image.width,\n height: image.height,\n },\n );\n const area = width * height;\n const bbox = [x, y, width, height];\n Object.assign(newAnnotation, { area, bbox });\n }\n\n if (annotation.segmentation) {\n const segmentation = annotation.segmentation.split('/').map((group) => {\n return group.split(',').map((pos) => parseFloat(pos));\n });\n\n const area = segmentation.reduce((sum, group) => {\n const vertices = convertToVerticesArray(group);\n const area = calculatePolygonArea(vertices);\n return sum + area;\n }, 0);\n\n const points: number[] = segmentation.flat();\n const pointObjs: IPoint[] = [];\n for (let i = 0; i < points.length; i += 2) {\n const [x, y] = points.slice(i, i + 2);\n pointObjs.push({ x, y });\n }\n const { x, y, width, height } = getLimitRectFromPoints(pointObjs);\n const bbox = [x, y, width, height];\n\n Object.assign(newAnnotation, { segmentation, bbox, area });\n }\n\n if (annotation.mask && annotation.mask.length > 0) {\n const rle = annotation.mask;\n const canvas = rleToCanvas(\n rle,\n { width: image.width, height: image.height },\n '#fff',\n );\n if (canvas) {\n const { area, bbox } = getMaskInfoByCanvas(canvas);\n const { x, y, width, height } = translateBoundingBoxToRect(bbox, {\n width: 1,\n height: 1,\n });\n Object.assign(newAnnotation, {\n segmentation: rle,\n area,\n bbox: [x, y, width, height],\n });\n } else {\n Object.assign(newAnnotation, { segmentation: rle });\n }\n }\n\n if (annotation.points && annotation.points.length > 0) {\n const { points, pointNames, lines, categoryName } = annotation;\n const keypoints: number[] = [];\n let num_keypoints = 0;\n for (let i = 0; i * 6 < points.length; i++) {\n keypoints.push(points[i * 6], points[i * 6 + 1], points[i * 6 + 4]);\n num_keypoints += 1;\n }\n Object.assign(newAnnotation, {\n keypoints,\n num_keypoints,\n area: 0,\n bbox: [0, 0, 0, 0],\n });\n const targetCategory = cocoDataset.categories.find(\n (item) => item.name === categoryName,\n );\n if (targetCategory) {\n targetCategory.skeleton = convertToVerticesArray(lines!);\n targetCategory.keypoints = pointNames;\n }\n }\n\n cocoDataset.annotations.push(newAnnotation);\n });\n });\n\n return cocoDataset;\n};\n","import { useImmer } from 'use-immer';\nimport { useState } from 'react';\nimport { genFileNameByTimestamp, saveObejctToJsonFile } from 'dds-utils/file';\nimport { convertToCocoDateset } from '@/utils/adapter';\nimport { LabelImageFile } from '@/types/annotator';\nimport { Category } from '@/types';\n\nexport default () => {\n const [images, setImages] = useImmer([]);\n const [current, setCurrent] = useState(0);\n const [categories, setCategories] = useImmer([]);\n\n /** Export with COCO formats*/\n const exportAnnotations = () => {\n const dataset = convertToCocoDateset(images, categories);\n const fileName = genFileNameByTimestamp(Date.now(), 'Annotations');\n saveObejctToJsonFile(dataset, fileName);\n };\n\n return {\n images,\n setImages,\n current,\n setCurrent,\n categories,\n setCategories,\n exportAnnotations,\n };\n};\n","import { useModel } from '@umijs/max';\nimport { DEFAULT_PAGE_DATA, DEFAULT_PAGE_STATE } from '@/models/dataset/type';\n\nexport default () => {\n /** The import order here will affect whether internal calls to each other are successful. */\n const { pageState, setPageState, setPageData } = useModel('dataset.common');\n\n const clickItem = (index: number) => {\n setPageState((s) => {\n s.previewIndex = index;\n });\n };\n\n const doubleClickItem = (index: number) => {\n setPageState((s) => {\n s.previewIndex = index;\n });\n };\n\n const onPageChange = (page: number) => {\n if (pageState.page === page) return;\n setPageState((s) => {\n s.page = page;\n });\n };\n\n const onPageSizeChange = (_current: number, size: number) => {\n setPageState((s) => {\n s.pageSize = size;\n });\n };\n\n const onPageDidMount = () => {\n // todo\n };\n\n const onPageWillUnmount = () => {\n setPageData((s) => {\n Object.assign(s, DEFAULT_PAGE_DATA);\n });\n setPageState((s) => {\n Object.assign(s, DEFAULT_PAGE_STATE);\n });\n };\n\n return {\n onPageDidMount,\n onPageWillUnmount,\n clickItem,\n doubleClickItem,\n onPageChange,\n onPageSizeChange,\n };\n};\n","import { history, useModel } from '@umijs/max';\nimport copy from 'copy-to-clipboard';\nimport { DEFAULT_PAGE_SIZE } from '@/constants';\nimport { message } from 'antd';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { PaginationState } from '@/models/datasets';\nimport { NsDataSet } from '@/types/dataset';\n\nexport default () => {\n const { loadDatasets, setPagination } = useModel('datasets');\n\n const onClickItem = (item: NsDataSet.DataSet) => {\n const pageState = JSON.stringify({\n datasetId: item.id,\n datasetName: item.name,\n });\n history.push(`/dataset/detail?pageState=${encodeURIComponent(pageState)}`);\n };\n\n const onClickCopyLink = (\n e: React.UIEvent,\n item: NsDataSet.DataSet,\n ) => {\n const pageState = JSON.stringify({\n datasetId: item.id,\n datasetName: item.name,\n });\n const link = `${\n window.location.origin\n }/page/dataset/detail?pageState=${encodeURIComponent(pageState)}`;\n const copySuccess = copy(link);\n if (copySuccess)\n message.success(globalLocaleText('dataset.onClickCopyLink.success'));\n e.stopPropagation();\n };\n\n const onInitPageState = (urlPageState: PaginationState) => {\n setPagination((s) => {\n Object.assign(\n s,\n {\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n },\n urlPageState,\n );\n });\n loadDatasets();\n };\n\n return {\n onInitPageState,\n onClickItem,\n onClickCopyLink,\n };\n};\n","import { history, useModel } from '@umijs/max';\nimport copy from 'copy-to-clipboard';\nimport { DEFAULT_PAGE_SIZE } from '@/constants';\nimport { message } from 'antd';\nimport { getUrlQueryVal } from 'dds-utils/url';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { PaginationState } from '@/models/datasets';\nimport { NsDataSet } from '@/types/dataset';\n\nexport default () => {\n const { loadDatasets, setPagination } = useModel('datasets');\n const labType = getUrlQueryVal('type') || 'flagtool';\n\n const onClickItem = (item: NsDataSet.DataSet) => {\n const pageState = JSON.stringify({\n datasetId: item.id,\n datasetName: item.name,\n });\n history.push(`/lab/${labType}?pageState=${encodeURIComponent(pageState)}`);\n };\n\n const onClickCopyLink = (\n e: React.UIEvent,\n item: NsDataSet.DataSet,\n ) => {\n const pageState = JSON.stringify({\n datasetId: item.id,\n datasetName: item.name,\n });\n const link = `${\n window.location.origin\n }/page/dataset/detail?pageState=${encodeURIComponent(pageState)}`;\n const copySuccess = copy(link);\n if (copySuccess)\n message.success(globalLocaleText('lab.onClickCopyLink.success'));\n e.stopPropagation();\n };\n\n const onInitPageState = (urlPageState: PaginationState) => {\n setPagination((s) => {\n Object.assign(\n s,\n {\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n },\n urlPageState,\n );\n });\n loadDatasets();\n };\n\n return {\n labType,\n onInitPageState,\n onClickItem,\n onClickCopyLink,\n };\n};\n","import { useModel } from '@umijs/max';\nimport { useKeyPress } from 'ahooks';\nimport { DEFAULT_PAGE_DATA, DEFAULT_PAGE_STATE } from '@/models/dataset/type';\n\nexport default () => {\n const { showLoginModal } = useModel('user');\n const { pageState, setPageState, pageData, setPageData } =\n useModel('dataset.common');\n const { selectItem, enterFlagTools, limitNoSaveChangePage } =\n useModel('dataset.flag');\n\n const clickItem = (index: number) => {\n selectItem(index);\n };\n\n const doubleClickItem = (index: number) => {\n setPageState((s) => {\n s.previewIndex = index;\n });\n };\n\n const onPageChange = (page: number) => {\n if (pageState.page === page) return;\n limitNoSaveChangePage().then(() => {\n setPageState((s) => {\n s.page = page;\n });\n });\n };\n\n const onPageSizeChange = (_current: number, size: number) => {\n limitNoSaveChangePage().then(() => {\n setPageState((s) => {\n s.pageSize = size;\n });\n });\n };\n\n /**\n * Next page:D\n * Previous page:A\n */\n useKeyPress(\n ['a', 'A', 'd', 'D', 'shift.q', 'shift.Q', 'shift.e', 'shift.E', 'z', 'Z'],\n (e: KeyboardEvent) => {\n if (pageState.previewIndex >= 0 || showLoginModal) {\n return;\n }\n if (['a', 'A'].includes(e.key) && pageState.page > 1) {\n onPageChange(pageState.page - 1);\n }\n if (\n ['d', 'D'].includes(e.key) &&\n pageState.page < Math.ceil(pageData.total / pageState.pageSize)\n ) {\n onPageChange(pageState.page + 1);\n }\n },\n );\n\n const onPageDidMount = () => {\n // Default enter flag\n enterFlagTools();\n };\n\n const onPageWillUnmount = () => {\n // Clear page data and status.\n setPageData((s) => {\n Object.assign(s, DEFAULT_PAGE_DATA);\n });\n setPageState((s) => {\n Object.assign(s, DEFAULT_PAGE_STATE);\n });\n };\n\n return {\n onPageDidMount,\n onPageWillUnmount,\n clickItem,\n doubleClickItem,\n onPageChange,\n onPageSizeChange,\n };\n};\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport { useState, useEffect, useCallback } from 'react';\nimport { getInitialState } from '@/app';\n\nexport type InitialStateType = Awaited> | undefined;\n\nconst initState = {\n initialState: undefined as InitialStateType,\n loading: true,\n error: undefined,\n};\n\nexport default () => {\n const [state, setState] = useState(initState);\n const refresh = useCallback(async () => {\n setState((s) => ({ ...s, loading: true, error: undefined }));\n try {\n const ret = await getInitialState();\n setState((s) => ({ ...s, initialState: ret, loading: false }));\n } catch (e) {\n setState((s) => ({ ...s, error: e, loading: false }));\n }\n }, []);\n\n const setInitialState = useCallback(\n async (\n initialState: InitialStateType | ((initialState: InitialStateType) => InitialStateType),\n ) => {\n setState((s) => {\n if (typeof initialState === 'function') {\n return { ...s, initialState: initialState(s.initialState), loading: false };\n }\n return { ...s, initialState, loading: false };\n });\n },\n [],\n );\n\n useEffect(() => {\n refresh();\n }, []);\n\n return {\n ...state,\n refresh,\n setInitialState,\n };\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport model_1 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/dataset/common';\nimport model_2 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/dataset/comparisons';\nimport model_3 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/dataset/filters';\nimport model_4 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/dataset/flag';\nimport model_5 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/datasets';\nimport model_6 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/global';\nimport model_7 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/models/user';\nimport model_8 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Project/models/auth';\nimport model_9 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Project/models/detail';\nimport model_10 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Project/models/list';\nimport model_11 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Project/models/workspace';\nimport model_12 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Annotator/model';\nimport model_13 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Dataset/model';\nimport model_14 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/DatasetList/model';\nimport model_15 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Lab/Datasets/model';\nimport model_16 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/pages/Lab/FlagTool/model';\nimport model_17 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-initialState/@@initialState';\n\nexport const models = {\nmodel_1: { namespace: 'dataset.common', model: model_1 },\nmodel_2: { namespace: 'dataset.comparisons', model: model_2 },\nmodel_3: { namespace: 'dataset.filters', model: model_3 },\nmodel_4: { namespace: 'dataset.flag', model: model_4 },\nmodel_5: { namespace: 'datasets', model: model_5 },\nmodel_6: { namespace: 'global', model: model_6 },\nmodel_7: { namespace: 'user', model: model_7 },\nmodel_8: { namespace: 'Project.auth', model: model_8 },\nmodel_9: { namespace: 'Project.detail', model: model_9 },\nmodel_10: { namespace: 'Project.list', model: model_10 },\nmodel_11: { namespace: 'Project.workspace', model: model_11 },\nmodel_12: { namespace: 'Annotator.model', model: model_12 },\nmodel_13: { namespace: 'Dataset.model', model: model_13 },\nmodel_14: { namespace: 'DatasetList.model', model: model_14 },\nmodel_15: { namespace: 'Lab.Datasets.model', model: model_15 },\nmodel_16: { namespace: 'Lab.FlagTool.model', model: model_16 },\nmodel_17: { namespace: '@@initialState', model: model_17 },\n} as const\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nimport { Provider } from './';\nimport { models as rawModels } from './model';\n\nfunction ProviderWrapper(props: any) {\n const models = React.useMemo(() => {\n return Object.keys(rawModels).reduce((memo, key) => {\n memo[rawModels[key].namespace] = rawModels[key].model;\n return memo;\n }, {});\n }, []);\n return { props.children }\n}\n\nexport function dataflowProvider(container, opts) {\n return { container };\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport * as Plugin_0 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/app.tsx';\nimport * as Plugin_1 from '@@/core/helmet.ts';\nimport * as Plugin_2 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-access/runtime.tsx';\nimport * as Plugin_3 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-antd/runtime.tsx';\nimport * as Plugin_4 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-initialState/runtime.tsx';\nimport * as Plugin_5 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-layout/runtime.tsx';\nimport * as Plugin_6 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-locale/runtime.tsx';\nimport * as Plugin_7 from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-model/runtime.tsx';\nimport { PluginManager } from 'umi';\n\nfunction __defaultExport (obj) {\n if (obj.default) {\n return typeof obj.default === 'function' ? obj.default() : obj.default\n }\n return obj;\n}\nexport function getPlugins() {\n return [\n {\n apply: __defaultExport(Plugin_0),\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/app.tsx',\n },\n {\n apply: Plugin_1,\n path: process.env.NODE_ENV === 'production' ? void 0 : '@@/core/helmet.ts',\n },\n {\n apply: Plugin_2,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-access/runtime.tsx',\n },\n {\n apply: Plugin_3,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-antd/runtime.tsx',\n },\n {\n apply: Plugin_4,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-initialState/runtime.tsx',\n },\n {\n apply: Plugin_5,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-layout/runtime.tsx',\n },\n {\n apply: Plugin_6,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-locale/runtime.tsx',\n },\n {\n apply: Plugin_7,\n path: process.env.NODE_ENV === 'production' ? void 0 : '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-model/runtime.tsx',\n },\n ];\n}\n\nexport function getValidKeys() {\n return ['patchRoutes','patchClientRoutes','modifyContextOpts','modifyClientRenderOpts','rootContainer','innerProvider','i18nProvider','accessProvider','dataflowProvider','outerProvider','render','onRouteChange','antd','getInitialState','layout','locale','qiankun','request',];\n}\n\nlet pluginManager = null;\n\nexport function createPluginManager() {\n pluginManager = PluginManager.create({\n plugins: getPlugins(),\n validKeys: getValidKeys(),\n });\n\n\n return pluginManager;\n}\n\nexport function getPluginManager() {\n return pluginManager;\n}\n","/**\n * React Router DOM v6.3.0\n *\n * Copyright (c) Remix Software Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE.md file in the root directory of this source tree.\n *\n * @license MIT\n */\nimport { useRef, useState, useLayoutEffect, createElement, forwardRef, useCallback, useMemo } from 'react';\nimport { createBrowserHistory, createHashHistory } from 'history';\nimport { Router, useHref, createPath, useLocation, useResolvedPath, useNavigate } from 'react-router';\nexport { MemoryRouter, Navigate, NavigationType, Outlet, Route, Router, Routes, UNSAFE_LocationContext, UNSAFE_NavigationContext, UNSAFE_RouteContext, createPath, createRoutesFromChildren, generatePath, matchPath, matchRoutes, parsePath, renderMatches, resolvePath, useHref, useInRouterContext, useLocation, useMatch, useNavigate, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes } from 'react-router';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nconst _excluded = [\"onClick\", \"reloadDocument\", \"replace\", \"state\", \"target\", \"to\"],\n _excluded2 = [\"aria-current\", \"caseSensitive\", \"className\", \"end\", \"style\", \"to\", \"children\"];\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== \"undefined\") console.warn(message);\n\n try {\n // Welcome to debugging React Router!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n} ////////////////////////////////////////////////////////////////////////////////\n// COMPONENTS\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * A `` for use in web browsers. Provides the cleanest URLs.\n */\nfunction BrowserRouter(_ref) {\n let {\n basename,\n children,\n window\n } = _ref;\n let historyRef = useRef();\n\n if (historyRef.current == null) {\n historyRef.current = createBrowserHistory({\n window\n });\n }\n\n let history = historyRef.current;\n let [state, setState] = useState({\n action: history.action,\n location: history.location\n });\n useLayoutEffect(() => history.listen(setState), [history]);\n return /*#__PURE__*/createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n });\n}\n\n/**\n * A `` for use in web browsers. Stores the location in the hash\n * portion of the URL so it is not sent to the server.\n */\nfunction HashRouter(_ref2) {\n let {\n basename,\n children,\n window\n } = _ref2;\n let historyRef = useRef();\n\n if (historyRef.current == null) {\n historyRef.current = createHashHistory({\n window\n });\n }\n\n let history = historyRef.current;\n let [state, setState] = useState({\n action: history.action,\n location: history.location\n });\n useLayoutEffect(() => history.listen(setState), [history]);\n return /*#__PURE__*/createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n });\n}\n\n/**\n * A `` that accepts a pre-instantiated history object. It's important\n * to note that using your own history object is highly discouraged and may add\n * two versions of the history library to your bundles unless you use the same\n * version of the history library that React Router uses internally.\n */\nfunction HistoryRouter(_ref3) {\n let {\n basename,\n children,\n history\n } = _ref3;\n const [state, setState] = useState({\n action: history.action,\n location: history.location\n });\n useLayoutEffect(() => history.listen(setState), [history]);\n return /*#__PURE__*/createElement(Router, {\n basename: basename,\n children: children,\n location: state.location,\n navigationType: state.action,\n navigator: history\n });\n}\n\nif (process.env.NODE_ENV !== \"production\") {\n HistoryRouter.displayName = \"unstable_HistoryRouter\";\n}\n\nfunction isModifiedEvent(event) {\n return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);\n}\n\n/**\n * The public API for rendering a history-aware .\n */\nconst Link = /*#__PURE__*/forwardRef(function LinkWithRef(_ref4, ref) {\n let {\n onClick,\n reloadDocument,\n replace = false,\n state,\n target,\n to\n } = _ref4,\n rest = _objectWithoutPropertiesLoose(_ref4, _excluded);\n\n let href = useHref(to);\n let internalOnClick = useLinkClickHandler(to, {\n replace,\n state,\n target\n });\n\n function handleClick(event) {\n if (onClick) onClick(event);\n\n if (!event.defaultPrevented && !reloadDocument) {\n internalOnClick(event);\n }\n }\n\n return (\n /*#__PURE__*/\n // eslint-disable-next-line jsx-a11y/anchor-has-content\n createElement(\"a\", _extends({}, rest, {\n href: href,\n onClick: handleClick,\n ref: ref,\n target: target\n }))\n );\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n Link.displayName = \"Link\";\n}\n\n/**\n * A wrapper that knows if it's \"active\" or not.\n */\nconst NavLink = /*#__PURE__*/forwardRef(function NavLinkWithRef(_ref5, ref) {\n let {\n \"aria-current\": ariaCurrentProp = \"page\",\n caseSensitive = false,\n className: classNameProp = \"\",\n end = false,\n style: styleProp,\n to,\n children\n } = _ref5,\n rest = _objectWithoutPropertiesLoose(_ref5, _excluded2);\n\n let location = useLocation();\n let path = useResolvedPath(to);\n let locationPathname = location.pathname;\n let toPathname = path.pathname;\n\n if (!caseSensitive) {\n locationPathname = locationPathname.toLowerCase();\n toPathname = toPathname.toLowerCase();\n }\n\n let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(toPathname.length) === \"/\";\n let ariaCurrent = isActive ? ariaCurrentProp : undefined;\n let className;\n\n if (typeof classNameProp === \"function\") {\n className = classNameProp({\n isActive\n });\n } else {\n // If the className prop is not a function, we use a default `active`\n // class for s that are active. In v5 `active` was the default\n // value for `activeClassName`, but we are removing that API and can still\n // use the old default behavior for a cleaner upgrade path and keep the\n // simple styling rules working as they currently do.\n className = [classNameProp, isActive ? \"active\" : null].filter(Boolean).join(\" \");\n }\n\n let style = typeof styleProp === \"function\" ? styleProp({\n isActive\n }) : styleProp;\n return /*#__PURE__*/createElement(Link, _extends({}, rest, {\n \"aria-current\": ariaCurrent,\n className: className,\n ref: ref,\n style: style,\n to: to\n }), typeof children === \"function\" ? children({\n isActive\n }) : children);\n});\n\nif (process.env.NODE_ENV !== \"production\") {\n NavLink.displayName = \"NavLink\";\n} ////////////////////////////////////////////////////////////////////////////////\n// HOOKS\n////////////////////////////////////////////////////////////////////////////////\n\n/**\n * Handles the click behavior for router `` components. This is useful if\n * you need to create custom `` components with the same click behavior we\n * use in our exported ``.\n */\n\n\nfunction useLinkClickHandler(to, _temp) {\n let {\n target,\n replace: replaceProp,\n state\n } = _temp === void 0 ? {} : _temp;\n let navigate = useNavigate();\n let location = useLocation();\n let path = useResolvedPath(to);\n return useCallback(event => {\n if (event.button === 0 && ( // Ignore everything but left clicks\n !target || target === \"_self\") && // Let browser handle \"target=_blank\" etc.\n !isModifiedEvent(event) // Ignore clicks with modifier keys\n ) {\n event.preventDefault(); // If the URL hasn't changed, a regular will do a replace instead of\n // a push, so do the same here.\n\n let replace = !!replaceProp || createPath(location) === createPath(path);\n navigate(to, {\n replace,\n state\n });\n }\n }, [location, navigate, path, replaceProp, state, target, to]);\n}\n/**\n * A convenient wrapper for reading and writing search parameters via the\n * URLSearchParams interface.\n */\n\nfunction useSearchParams(defaultInit) {\n process.env.NODE_ENV !== \"production\" ? warning(typeof URLSearchParams !== \"undefined\", \"You cannot use the `useSearchParams` hook in a browser that does not \" + \"support the URLSearchParams API. If you need to support Internet \" + \"Explorer 11, we recommend you load a polyfill such as \" + \"https://github.com/ungap/url-search-params\\n\\n\" + \"If you're unsure how to load polyfills, we recommend you check out \" + \"https://polyfill.io/v3/ which provides some recommendations about how \" + \"to load polyfills only for users that need them, instead of for every \" + \"user.\") : void 0;\n let defaultSearchParamsRef = useRef(createSearchParams(defaultInit));\n let location = useLocation();\n let searchParams = useMemo(() => {\n let searchParams = createSearchParams(location.search);\n\n for (let key of defaultSearchParamsRef.current.keys()) {\n if (!searchParams.has(key)) {\n defaultSearchParamsRef.current.getAll(key).forEach(value => {\n searchParams.append(key, value);\n });\n }\n }\n\n return searchParams;\n }, [location.search]);\n let navigate = useNavigate();\n let setSearchParams = useCallback((nextInit, navigateOptions) => {\n navigate(\"?\" + createSearchParams(nextInit), navigateOptions);\n }, [navigate]);\n return [searchParams, setSearchParams];\n}\n\n/**\n * Creates a URLSearchParams object using the given initializer.\n *\n * This is identical to `new URLSearchParams(init)` except it also\n * supports arrays as values in the object form of the initializer\n * instead of just strings. This is convenient when you need multiple\n * values for a given key, but don't want to use an array initializer.\n *\n * For example, instead of:\n *\n * let searchParams = new URLSearchParams([\n * ['sort', 'name'],\n * ['sort', 'price']\n * ]);\n *\n * you can do:\n *\n * let searchParams = createSearchParams({\n * sort: ['name', 'price']\n * });\n */\nfunction createSearchParams(init) {\n if (init === void 0) {\n init = \"\";\n }\n\n return new URLSearchParams(typeof init === \"string\" || Array.isArray(init) || init instanceof URLSearchParams ? init : Object.keys(init).reduce((memo, key) => {\n let value = init[key];\n return memo.concat(Array.isArray(value) ? value.map(v => [key, v]) : [[key, value]]);\n }, []));\n}\n\nexport { BrowserRouter, HashRouter, Link, NavLink, createSearchParams, HistoryRouter as unstable_HistoryRouter, useLinkClickHandler, useSearchParams };\n//# sourceMappingURL=index.js.map\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefetch\"];\nimport React from 'react';\nimport { Link } from 'react-router-dom';\nimport { useAppData } from \"./appContext\";\nexport function LinkWithPrefetch(props) {\n var _props$to;\n\n var prefetch = props.prefetch,\n linkProps = _objectWithoutProperties(props, _excluded);\n\n var appData = useAppData();\n var to = typeof props.to === 'string' ? props.to : (_props$to = props.to) === null || _props$to === void 0 ? void 0 : _props$to.pathname; // compatible with old code\n // which to might be undefined\n\n if (!to) return null;\n return /*#__PURE__*/React.createElement(Link, _extends({\n onMouseEnter: function onMouseEnter() {\n var _appData$preloadRoute;\n\n return prefetch && to && ((_appData$preloadRoute = appData.preloadRoute) === null || _appData$preloadRoute === void 0 ? void 0 : _appData$preloadRoute.call(appData, to));\n }\n }, linkProps), props.children);\n}","import _typeof from \"./typeof.js\";\nexport default function _regeneratorRuntime() {\n \"use strict\"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */\n _regeneratorRuntime = function _regeneratorRuntime() {\n return exports;\n };\n var exports = {},\n Op = Object.prototype,\n hasOwn = Op.hasOwnProperty,\n defineProperty = Object.defineProperty || function (obj, key, desc) {\n obj[key] = desc.value;\n },\n $Symbol = \"function\" == typeof Symbol ? Symbol : {},\n iteratorSymbol = $Symbol.iterator || \"@@iterator\",\n asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\",\n toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n function define(obj, key, value) {\n return Object.defineProperty(obj, key, {\n value: value,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }), obj[key];\n }\n try {\n define({}, \"\");\n } catch (err) {\n define = function define(obj, key, value) {\n return obj[key] = value;\n };\n }\n function wrap(innerFn, outerFn, self, tryLocsList) {\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,\n generator = Object.create(protoGenerator.prototype),\n context = new Context(tryLocsList || []);\n return defineProperty(generator, \"_invoke\", {\n value: makeInvokeMethod(innerFn, self, context)\n }), generator;\n }\n function tryCatch(fn, obj, arg) {\n try {\n return {\n type: \"normal\",\n arg: fn.call(obj, arg)\n };\n } catch (err) {\n return {\n type: \"throw\",\n arg: err\n };\n }\n }\n exports.wrap = wrap;\n var ContinueSentinel = {};\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n var IteratorPrototype = {};\n define(IteratorPrototype, iteratorSymbol, function () {\n return this;\n });\n var getProto = Object.getPrototypeOf,\n NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);\n var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function (method) {\n define(prototype, method, function (arg) {\n return this._invoke(method, arg);\n });\n });\n }\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (\"throw\" !== record.type) {\n var result = record.arg,\n value = result.value;\n return value && \"object\" == _typeof(value) && hasOwn.call(value, \"__await\") ? PromiseImpl.resolve(value.__await).then(function (value) {\n invoke(\"next\", value, resolve, reject);\n }, function (err) {\n invoke(\"throw\", err, resolve, reject);\n }) : PromiseImpl.resolve(value).then(function (unwrapped) {\n result.value = unwrapped, resolve(result);\n }, function (error) {\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n reject(record.arg);\n }\n var previousPromise;\n defineProperty(this, \"_invoke\", {\n value: function value(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function (resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();\n }\n });\n }\n function makeInvokeMethod(innerFn, self, context) {\n var state = \"suspendedStart\";\n return function (method, arg) {\n if (\"executing\" === state) throw new Error(\"Generator is already running\");\n if (\"completed\" === state) {\n if (\"throw\" === method) throw arg;\n return doneResult();\n }\n for (context.method = method, context.arg = arg;;) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n if (\"next\" === context.method) context.sent = context._sent = context.arg;else if (\"throw\" === context.method) {\n if (\"suspendedStart\" === state) throw state = \"completed\", context.arg;\n context.dispatchException(context.arg);\n } else \"return\" === context.method && context.abrupt(\"return\", context.arg);\n state = \"executing\";\n var record = tryCatch(innerFn, self, context);\n if (\"normal\" === record.type) {\n if (state = context.done ? \"completed\" : \"suspendedYield\", record.arg === ContinueSentinel) continue;\n return {\n value: record.arg,\n done: context.done\n };\n }\n \"throw\" === record.type && (state = \"completed\", context.method = \"throw\", context.arg = record.arg);\n }\n };\n }\n function maybeInvokeDelegate(delegate, context) {\n var methodName = context.method,\n method = delegate.iterator[methodName];\n if (undefined === method) return context.delegate = null, \"throw\" === methodName && delegate.iterator[\"return\"] && (context.method = \"return\", context.arg = undefined, maybeInvokeDelegate(delegate, context), \"throw\" === context.method) || \"return\" !== methodName && (context.method = \"throw\", context.arg = new TypeError(\"The iterator does not provide a '\" + methodName + \"' method\")), ContinueSentinel;\n var record = tryCatch(method, delegate.iterator, context.arg);\n if (\"throw\" === record.type) return context.method = \"throw\", context.arg = record.arg, context.delegate = null, ContinueSentinel;\n var info = record.arg;\n return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, \"return\" !== context.method && (context.method = \"next\", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = \"throw\", context.arg = new TypeError(\"iterator result is not an object\"), context.delegate = null, ContinueSentinel);\n }\n function pushTryEntry(locs) {\n var entry = {\n tryLoc: locs[0]\n };\n 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);\n }\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\", delete record.arg, entry.completion = record;\n }\n function Context(tryLocsList) {\n this.tryEntries = [{\n tryLoc: \"root\"\n }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);\n }\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) return iteratorMethod.call(iterable);\n if (\"function\" == typeof iterable.next) return iterable;\n if (!isNaN(iterable.length)) {\n var i = -1,\n next = function next() {\n for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;\n return next.value = undefined, next.done = !0, next;\n };\n return next.next = next;\n }\n }\n return {\n next: doneResult\n };\n }\n function doneResult() {\n return {\n value: undefined,\n done: !0\n };\n }\n return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, \"constructor\", {\n value: GeneratorFunctionPrototype,\n configurable: !0\n }), defineProperty(GeneratorFunctionPrototype, \"constructor\", {\n value: GeneratorFunction,\n configurable: !0\n }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, \"GeneratorFunction\"), exports.isGeneratorFunction = function (genFun) {\n var ctor = \"function\" == typeof genFun && genFun.constructor;\n return !!ctor && (ctor === GeneratorFunction || \"GeneratorFunction\" === (ctor.displayName || ctor.name));\n }, exports.mark = function (genFun) {\n return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, \"GeneratorFunction\")), genFun.prototype = Object.create(Gp), genFun;\n }, exports.awrap = function (arg) {\n return {\n __await: arg\n };\n }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {\n return this;\n }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n void 0 === PromiseImpl && (PromiseImpl = Promise);\n var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);\n return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {\n return result.done ? result.value : iter.next();\n });\n }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, \"Generator\"), define(Gp, iteratorSymbol, function () {\n return this;\n }), define(Gp, \"toString\", function () {\n return \"[object Generator]\";\n }), exports.keys = function (val) {\n var object = Object(val),\n keys = [];\n for (var key in object) keys.push(key);\n return keys.reverse(), function next() {\n for (; keys.length;) {\n var key = keys.pop();\n if (key in object) return next.value = key, next.done = !1, next;\n }\n return next.done = !0, next;\n };\n }, exports.values = values, Context.prototype = {\n constructor: Context,\n reset: function reset(skipTempReset) {\n if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = \"next\", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) \"t\" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);\n },\n stop: function stop() {\n this.done = !0;\n var rootRecord = this.tryEntries[0].completion;\n if (\"throw\" === rootRecord.type) throw rootRecord.arg;\n return this.rval;\n },\n dispatchException: function dispatchException(exception) {\n if (this.done) throw exception;\n var context = this;\n function handle(loc, caught) {\n return record.type = \"throw\", record.arg = exception, context.next = loc, caught && (context.method = \"next\", context.arg = undefined), !!caught;\n }\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i],\n record = entry.completion;\n if (\"root\" === entry.tryLoc) return handle(\"end\");\n if (entry.tryLoc <= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\"),\n hasFinally = hasOwn.call(entry, \"finallyLoc\");\n if (hasCatch && hasFinally) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n } else if (hasCatch) {\n if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);\n } else {\n if (!hasFinally) throw new Error(\"try statement without catch or finally\");\n if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);\n }\n }\n }\n },\n abrupt: function abrupt(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc <= this.prev && hasOwn.call(entry, \"finallyLoc\") && this.prev < entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n finallyEntry && (\"break\" === type || \"continue\" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);\n var record = finallyEntry ? finallyEntry.completion : {};\n return record.type = type, record.arg = arg, finallyEntry ? (this.method = \"next\", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);\n },\n complete: function complete(record, afterLoc) {\n if (\"throw\" === record.type) throw record.arg;\n return \"break\" === record.type || \"continue\" === record.type ? this.next = record.arg : \"return\" === record.type ? (this.rval = this.arg = record.arg, this.method = \"return\", this.next = \"end\") : \"normal\" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;\n },\n finish: function finish(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;\n }\n },\n \"catch\": function _catch(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (\"throw\" === record.type) {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n throw new Error(\"illegal catch attempt\");\n },\n delegateYield: function delegateYield(iterable, resultName, nextLoc) {\n return this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n }, \"next\" === this.method && (this.arg = undefined), ContinueSentinel;\n }\n }, exports;\n}","function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\nexport default function _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n _next(undefined);\n });\n };\n}","import unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"];\n if (!it) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n var F = function F() {};\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = it.call(o);\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","export default function _iterableToArray(iter) {\n if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter);\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _toArray(arr) {\n return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest();\n}","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);\n }\n}\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n Object.defineProperty(Constructor, \"prototype\", {\n writable: false\n });\n return Constructor;\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nexport function assert(value, message) {\n if (!value) throw new Error(message);\n}\nexport function compose(_ref) {\n var fns = _ref.fns,\n args = _ref.args;\n if (fns.length === 1) {\n return fns[0];\n }\n var last = fns.pop();\n return fns.reduce(function (a, b) {\n return function () {\n return b(a, args);\n };\n }, last);\n}\nexport function isPromiseLike(obj) {\n return !!obj && _typeof(obj) === 'object' && typeof obj.then === 'function';\n}","import _regeneratorRuntime from \"@babel/runtime/helpers/esm/regeneratorRuntime\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/esm/asyncToGenerator\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _createForOfIteratorHelper from \"@babel/runtime/helpers/esm/createForOfIteratorHelper\";\nimport _toArray from \"@babel/runtime/helpers/esm/toArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { assert, compose, isPromiseLike } from \"./utils\";\nexport var ApplyPluginsType;\n(function (ApplyPluginsType) {\n ApplyPluginsType[\"compose\"] = \"compose\";\n ApplyPluginsType[\"modify\"] = \"modify\";\n ApplyPluginsType[\"event\"] = \"event\";\n})(ApplyPluginsType || (ApplyPluginsType = {}));\nexport var PluginManager = /*#__PURE__*/function () {\n function PluginManager(opts) {\n _classCallCheck(this, PluginManager);\n _defineProperty(this, \"opts\", void 0);\n _defineProperty(this, \"hooks\", {});\n this.opts = opts;\n }\n _createClass(PluginManager, [{\n key: \"register\",\n value: function register(plugin) {\n var _this = this;\n assert(plugin.apply, \"plugin register failed, apply must supplied\");\n Object.keys(plugin.apply).forEach(function (key) {\n assert(_this.opts.validKeys.indexOf(key) > -1, \"register failed, invalid key \".concat(key, \" \").concat(plugin.path ? \"from plugin \".concat(plugin.path) : '', \".\"));\n _this.hooks[key] = (_this.hooks[key] || []).concat(plugin.apply[key]);\n });\n }\n }, {\n key: \"getHooks\",\n value: function getHooks(keyWithDot) {\n var _keyWithDot$split = keyWithDot.split('.'),\n _keyWithDot$split2 = _toArray(_keyWithDot$split),\n key = _keyWithDot$split2[0],\n memberKeys = _keyWithDot$split2.slice(1);\n var hooks = this.hooks[key] || [];\n if (memberKeys.length) {\n hooks = hooks.map(function (hook) {\n try {\n var ret = hook;\n var _iterator = _createForOfIteratorHelper(memberKeys),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var memberKey = _step.value;\n ret = ret[memberKey];\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return ret;\n } catch (e) {\n return null;\n }\n }).filter(Boolean);\n }\n return hooks;\n }\n }, {\n key: \"applyPlugins\",\n value: function applyPlugins(_ref) {\n var key = _ref.key,\n type = _ref.type,\n initialValue = _ref.initialValue,\n args = _ref.args,\n async = _ref.async;\n var hooks = this.getHooks(key) || [];\n if (args) {\n assert(_typeof(args) === 'object', \"applyPlugins failed, args must be plain object.\");\n }\n if (async) {\n assert(type === ApplyPluginsType.modify || type === ApplyPluginsType.event, \"async only works with modify and event type.\");\n }\n switch (type) {\n case ApplyPluginsType.modify:\n if (async) {\n return hooks.reduce( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(memo, hook) {\n var ret;\n return _regeneratorRuntime().wrap(function _callee$(_context) {\n while (1) switch (_context.prev = _context.next) {\n case 0:\n assert(typeof hook === 'function' || _typeof(hook) === 'object' || isPromiseLike(hook), \"applyPlugins failed, all hooks for key \".concat(key, \" must be function, plain object or Promise.\"));\n if (!isPromiseLike(memo)) {\n _context.next = 5;\n break;\n }\n _context.next = 4;\n return memo;\n case 4:\n memo = _context.sent;\n case 5:\n if (!(typeof hook === 'function')) {\n _context.next = 16;\n break;\n }\n ret = hook(memo, args);\n if (!isPromiseLike(ret)) {\n _context.next = 13;\n break;\n }\n _context.next = 10;\n return ret;\n case 10:\n return _context.abrupt(\"return\", _context.sent);\n case 13:\n return _context.abrupt(\"return\", ret);\n case 14:\n _context.next = 21;\n break;\n case 16:\n if (!isPromiseLike(hook)) {\n _context.next = 20;\n break;\n }\n _context.next = 19;\n return hook;\n case 19:\n hook = _context.sent;\n case 20:\n return _context.abrupt(\"return\", _objectSpread(_objectSpread({}, memo), hook));\n case 21:\n case \"end\":\n return _context.stop();\n }\n }, _callee);\n }));\n return function (_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n }(), isPromiseLike(initialValue) ? initialValue : Promise.resolve(initialValue));\n } else {\n return hooks.reduce(function (memo, hook) {\n assert(typeof hook === 'function' || _typeof(hook) === 'object', \"applyPlugins failed, all hooks for key \".concat(key, \" must be function or plain object.\"));\n if (typeof hook === 'function') {\n return hook(memo, args);\n } else {\n // TODO: deepmerge?\n return _objectSpread(_objectSpread({}, memo), hook);\n }\n }, initialValue);\n }\n case ApplyPluginsType.event:\n return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {\n var _iterator2, _step2, hook, ret;\n return _regeneratorRuntime().wrap(function _callee2$(_context2) {\n while (1) switch (_context2.prev = _context2.next) {\n case 0:\n _iterator2 = _createForOfIteratorHelper(hooks);\n _context2.prev = 1;\n _iterator2.s();\n case 3:\n if ((_step2 = _iterator2.n()).done) {\n _context2.next = 12;\n break;\n }\n hook = _step2.value;\n assert(typeof hook === 'function', \"applyPlugins failed, all hooks for key \".concat(key, \" must be function.\"));\n ret = hook(args);\n if (!(async && isPromiseLike(ret))) {\n _context2.next = 10;\n break;\n }\n _context2.next = 10;\n return ret;\n case 10:\n _context2.next = 3;\n break;\n case 12:\n _context2.next = 17;\n break;\n case 14:\n _context2.prev = 14;\n _context2.t0 = _context2[\"catch\"](1);\n _iterator2.e(_context2.t0);\n case 17:\n _context2.prev = 17;\n _iterator2.f();\n return _context2.finish(17);\n case 20:\n case \"end\":\n return _context2.stop();\n }\n }, _callee2, null, [[1, 14, 17, 20]]);\n }))();\n case ApplyPluginsType.compose:\n return function () {\n return compose({\n fns: hooks.concat(initialValue),\n args: args\n })();\n };\n }\n }\n }], [{\n key: \"create\",\n value: function create(opts) {\n var pluginManager = new PluginManager({\n validKeys: opts.validKeys\n });\n opts.plugins.forEach(function (plugin) {\n pluginManager.register(plugin);\n });\n return pluginManager;\n }\n }]);\n return PluginManager;\n}();\n\n// plugins meta info (in tmp file)\n// hooks api: usePlugin","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nlet count = 0;\nlet groupLevel = 0;\nfunction send(type: string, message?: string) {\n if(process.env.NODE_ENV==='production'){\n return;\n }else{\n const encodedMessage = message ? `&m=${encodeURI(message)}` : '';\n fetch(`/__umi/api/terminal?type=${type}&t=${Date.now()}&c=${count++}&g=${groupLevel}${encodedMessage}`, { mode: 'no-cors' })\n }\n}\nfunction prettyPrint(obj: any) {\n return JSON.stringify(obj, null, 2);\n}\nfunction stringifyObjs(objs: any[]) {\n const obj = objs.length > 1 ? objs.map(stringify).join(' ') : objs[0];\n return typeof obj === 'object' ? `${prettyPrint(obj)}` : obj.toString();\n}\nfunction stringify(obj: any) {\n return typeof obj === 'object' ? `${JSON.stringify(obj)}` : obj.toString();\n}\nconst terminal = {\n log(...objs: any[]) { send('log', stringifyObjs(objs)) },\n info(...objs: any[]) { send('info', stringifyObjs(objs)) },\n warn(...objs: any[]) { send('warn', stringifyObjs(objs)) },\n error(...objs: any[]) { send('error', stringifyObjs(objs)) },\n group() { groupLevel++ },\n groupCollapsed() { groupLevel++ },\n groupEnd() { groupLevel && --groupLevel },\n clear() { send('clear') },\n trace(...args: any[]) { console.trace(...args) },\n profile(...args: any[]) { console.profile(...args) },\n profileEnd(...args: any[]) { console.profileEnd(...args) },\n};\nexport { terminal };\n","export function isDocumentVisible() {\n if (typeof document !== 'undefined' && typeof document.visibilityState !== 'undefined') {\n return document.visibilityState !== 'hidden';\n }\n\n return true;\n}\nexport function isOnline() {\n if (typeof navigator.onLine !== 'undefined') {\n return navigator.onLine;\n }\n\n return true;\n}","var cache = new Map();\n\nvar setCache = function setCache(key, cacheTime, data) {\n var currentCache = cache.get(key);\n\n if (currentCache === null || currentCache === void 0 ? void 0 : currentCache.timer) {\n clearTimeout(currentCache.timer);\n }\n\n var timer = undefined;\n\n if (cacheTime > -1) {\n // 数据在不活跃 cacheTime 后,删除掉\n timer = setTimeout(function () {\n cache[\"delete\"](key);\n }, cacheTime);\n }\n\n cache.set(key, {\n data: data,\n timer: timer,\n startTime: new Date().getTime()\n });\n};\n\nvar getCache = function getCache(key) {\n var currentCache = cache.get(key);\n return {\n data: currentCache === null || currentCache === void 0 ? void 0 : currentCache.data,\n startTime: currentCache === null || currentCache === void 0 ? void 0 : currentCache.startTime\n };\n};\n\nexport { getCache, setCache };","var __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n\nexport default function limit(fn, timespan) {\n var pending = false;\n return function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (pending) return;\n pending = true;\n fn.apply(void 0, __spread(args));\n setTimeout(function () {\n pending = false;\n }, timespan);\n };\n}","var __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n\nimport { useCallback, useRef } from 'react';\n\nfunction usePersistFn(fn) {\n var ref = useRef(function () {\n throw new Error('Cannot call an event handler while rendering.');\n });\n ref.current = fn;\n var persist = useCallback(function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n var refFn = ref.current;\n\n if (refFn) {\n return refFn.apply(void 0, __spread(args));\n }\n }, [ref]);\n\n if (typeof fn === 'function') {\n return persist;\n }\n\n return undefined;\n}\n\nexport default usePersistFn;","import { useEffect, useRef } from 'react';\n\nvar useUpdateEffect = function useUpdateEffect(effect, deps) {\n var isMounted = useRef(false);\n useEffect(function () {\n return function () {\n isMounted.current = false;\n };\n }, []);\n useEffect(function () {\n if (!isMounted.current) {\n isMounted.current = true;\n } else {\n return effect();\n }\n }, deps);\n};\n\nexport default useUpdateEffect;","// from swr\nimport { isDocumentVisible, isOnline } from './utils';\nvar listeners = [];\n\nfunction subscribe(listener) {\n listeners.push(listener);\n return function unsubscribe() {\n var index = listeners.indexOf(listener);\n listeners.splice(index, 1);\n };\n}\n\nvar eventsBinded = false;\n\nif (typeof window !== 'undefined' && window.addEventListener && !eventsBinded) {\n var revalidate = function revalidate() {\n if (!isDocumentVisible() || !isOnline()) return;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n };\n\n window.addEventListener('visibilitychange', revalidate, false);\n window.addEventListener('focus', revalidate, false); // only bind the events once\n\n eventsBinded = true;\n}\n\nexport default subscribe;","// from swr\nimport { isDocumentVisible } from './utils';\nvar listeners = [];\n\nfunction subscribe(listener) {\n listeners.push(listener);\n return function unsubscribe() {\n var index = listeners.indexOf(listener);\n listeners.splice(index, 1);\n };\n}\n\nvar eventsBinded = false;\n\nif (typeof window !== 'undefined' && window.addEventListener && !eventsBinded) {\n var revalidate = function revalidate() {\n if (!isDocumentVisible()) return;\n\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n };\n\n window.addEventListener('visibilitychange', revalidate, false); // only bind the events once\n\n eventsBinded = true;\n}\n\nexport default subscribe;","var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n\nimport debounce from 'lodash.debounce';\nimport throttle from 'lodash.throttle';\nimport { useCallback, useEffect, useRef, useState } from 'react';\nimport { isDocumentVisible } from './utils';\nimport { getCache, setCache } from './utils/cache';\nimport limit from './utils/limit';\nimport usePersistFn from './utils/usePersistFn';\nimport useUpdateEffect from './utils/useUpdateEffect';\nimport subscribeFocus from './utils/windowFocus';\nimport subscribeVisible from './utils/windowVisible';\nvar DEFAULT_KEY = 'AHOOKS_USE_REQUEST_DEFAULT_KEY';\n\nvar Fetch =\n/** @class */\nfunction () {\n function Fetch(service, config, subscribe, initState) {\n // 请求时序\n this.count = 0; // visible 后,是否继续轮询\n\n this.pollingWhenVisibleFlag = false;\n this.pollingTimer = undefined;\n this.loadingDelayTimer = undefined;\n this.unsubscribe = [];\n this.that = this;\n this.state = {\n loading: false,\n params: [],\n data: undefined,\n error: undefined,\n run: this.run.bind(this.that),\n mutate: this.mutate.bind(this.that),\n refresh: this.refresh.bind(this.that),\n cancel: this.cancel.bind(this.that),\n unmount: this.unmount.bind(this.that)\n };\n this.service = service;\n this.config = config;\n this.subscribe = subscribe;\n\n if (initState) {\n this.state = __assign(__assign({}, this.state), initState);\n }\n\n this.debounceRun = this.config.debounceInterval ? debounce(this._run, this.config.debounceInterval) : undefined;\n this.throttleRun = this.config.throttleInterval ? throttle(this._run, this.config.throttleInterval) : undefined;\n this.limitRefresh = limit(this.refresh.bind(this), this.config.focusTimespan);\n\n if (this.config.pollingInterval) {\n this.unsubscribe.push(subscribeVisible(this.rePolling.bind(this)));\n }\n\n if (this.config.refreshOnWindowFocus) {\n this.unsubscribe.push(subscribeFocus(this.limitRefresh.bind(this)));\n }\n }\n\n Fetch.prototype.setState = function (s) {\n if (s === void 0) {\n s = {};\n }\n\n this.state = __assign(__assign({}, this.state), s);\n this.subscribe(this.state);\n };\n\n Fetch.prototype._run = function () {\n var _this = this;\n\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // 取消已有定时器\n\n\n if (this.pollingTimer) {\n clearTimeout(this.pollingTimer);\n } // 取消 loadingDelayTimer\n\n\n if (this.loadingDelayTimer) {\n clearTimeout(this.loadingDelayTimer);\n }\n\n this.count += 1; // 闭包存储当次请求的 count\n\n var currentCount = this.count;\n this.setState({\n loading: !this.config.loadingDelay,\n params: args\n });\n\n if (this.config.loadingDelay) {\n this.loadingDelayTimer = setTimeout(function () {\n _this.setState({\n loading: true\n });\n }, this.config.loadingDelay);\n }\n\n return this.service.apply(this, __spread(args)).then(function (res) {\n if (currentCount !== _this.count) {\n // prevent run.then when request is canceled\n return new Promise(function () {});\n }\n\n if (_this.loadingDelayTimer) {\n clearTimeout(_this.loadingDelayTimer);\n }\n\n var formattedResult = _this.config.formatResult ? _this.config.formatResult(res) : res;\n\n _this.setState({\n data: formattedResult,\n error: undefined,\n loading: false\n });\n\n if (_this.config.onSuccess) {\n _this.config.onSuccess(formattedResult, args);\n }\n\n return formattedResult;\n })[\"catch\"](function (error) {\n if (currentCount !== _this.count) {\n // prevent run.then when request is canceled\n return new Promise(function () {});\n }\n\n if (_this.loadingDelayTimer) {\n clearTimeout(_this.loadingDelayTimer);\n }\n\n _this.setState({\n data: undefined,\n error: error,\n loading: false\n });\n\n if (_this.config.onError) {\n _this.config.onError(error, args);\n } // If throwOnError, user should catch the error self,\n // or the page will crash\n\n\n if (_this.config.throwOnError) {\n throw error;\n }\n\n console.error(error); // eslint-disable-next-line prefer-promise-reject-errors\n\n return Promise.reject('useRequest has caught the exception, if you need to handle the exception yourself, you can set options.throwOnError to true.');\n })[\"finally\"](function () {\n if (currentCount === _this.count) {\n if (_this.config.pollingInterval) {\n // 如果屏幕隐藏,并且 !pollingWhenHidden, 则停止轮询,并记录 flag,等 visible 时,继续轮询\n if (!isDocumentVisible() && !_this.config.pollingWhenHidden) {\n _this.pollingWhenVisibleFlag = true;\n return;\n }\n\n _this.pollingTimer = setTimeout(function () {\n _this._run.apply(_this, __spread(args));\n }, _this.config.pollingInterval);\n }\n }\n });\n };\n\n Fetch.prototype.run = function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (this.debounceRun) {\n this.debounceRun.apply(this, __spread(args)); // TODO 如果 options 存在 debounceInterval,或 throttleInterval,则 run 和 refresh 不会返回 Promise。 带类型需要修复后,此处变成 return;。\n\n return Promise.resolve(null);\n }\n\n if (this.throttleRun) {\n this.throttleRun.apply(this, __spread(args));\n return Promise.resolve(null);\n }\n\n return this._run.apply(this, __spread(args));\n };\n\n Fetch.prototype.cancel = function () {\n if (this.debounceRun) {\n this.debounceRun.cancel();\n }\n\n if (this.throttleRun) {\n this.throttleRun.cancel();\n }\n\n if (this.loadingDelayTimer) {\n clearTimeout(this.loadingDelayTimer);\n }\n\n if (this.pollingTimer) {\n clearTimeout(this.pollingTimer);\n }\n\n this.pollingWhenVisibleFlag = false;\n this.count += 1;\n this.setState({\n loading: false\n });\n };\n\n Fetch.prototype.refresh = function () {\n return this.run.apply(this, __spread(this.state.params));\n };\n\n Fetch.prototype.rePolling = function () {\n if (this.pollingWhenVisibleFlag) {\n this.pollingWhenVisibleFlag = false;\n this.refresh();\n }\n };\n\n Fetch.prototype.mutate = function (data) {\n if (typeof data === 'function') {\n this.setState({\n // eslint-disable-next-line react/no-access-state-in-setstate\n data: data(this.state.data) || {}\n });\n } else {\n this.setState({\n data: data\n });\n }\n };\n\n Fetch.prototype.unmount = function () {\n this.cancel();\n this.unsubscribe.forEach(function (s) {\n s();\n });\n };\n\n return Fetch;\n}();\n\nfunction useAsync(service, options) {\n var _options = options || {};\n\n var _a = _options.refreshDeps,\n refreshDeps = _a === void 0 ? [] : _a,\n _b = _options.manual,\n manual = _b === void 0 ? false : _b,\n _c = _options.onSuccess,\n onSuccess = _c === void 0 ? function () {} : _c,\n _d = _options.onError,\n onError = _d === void 0 ? function () {} : _d,\n _e = _options.defaultLoading,\n defaultLoading = _e === void 0 ? false : _e,\n loadingDelay = _options.loadingDelay,\n _f = _options.pollingInterval,\n pollingInterval = _f === void 0 ? 0 : _f,\n _g = _options.pollingWhenHidden,\n pollingWhenHidden = _g === void 0 ? true : _g,\n _h = _options.defaultParams,\n defaultParams = _h === void 0 ? [] : _h,\n _j = _options.refreshOnWindowFocus,\n refreshOnWindowFocus = _j === void 0 ? false : _j,\n _k = _options.focusTimespan,\n focusTimespan = _k === void 0 ? 5000 : _k,\n fetchKey = _options.fetchKey,\n cacheKey = _options.cacheKey,\n _l = _options.cacheTime,\n cacheTime = _l === void 0 ? 5 * 60 * 1000 : _l,\n _m = _options.staleTime,\n staleTime = _m === void 0 ? 0 : _m,\n debounceInterval = _options.debounceInterval,\n throttleInterval = _options.throttleInterval,\n initialData = _options.initialData,\n _o = _options.ready,\n ready = _o === void 0 ? true : _o,\n _p = _options.throwOnError,\n throwOnError = _p === void 0 ? false : _p;\n var newstFetchKey = useRef(DEFAULT_KEY); // 持久化一些函数\n\n var servicePersist = usePersistFn(service);\n var onSuccessPersist = usePersistFn(onSuccess);\n var onErrorPersist = usePersistFn(onError);\n var fetchKeyPersist = usePersistFn(fetchKey);\n var formatResult;\n\n if ('formatResult' in _options) {\n // eslint-disable-next-line prefer-destructuring\n formatResult = _options.formatResult;\n }\n\n var formatResultPersist = usePersistFn(formatResult);\n var config = {\n formatResult: formatResultPersist,\n onSuccess: onSuccessPersist,\n onError: onErrorPersist,\n loadingDelay: loadingDelay,\n pollingInterval: pollingInterval,\n pollingWhenHidden: pollingWhenHidden,\n // refreshOnWindowFocus should not work on manual mode\n refreshOnWindowFocus: !manual && refreshOnWindowFocus,\n focusTimespan: focusTimespan,\n debounceInterval: debounceInterval,\n throttleInterval: throttleInterval,\n throwOnError: throwOnError\n };\n var subscribe = usePersistFn(function (key, data) {\n setFetches(function (s) {\n // eslint-disable-next-line no-param-reassign\n s[key] = data;\n return __assign({}, s);\n });\n });\n\n var _q = __read(useState(function () {\n var _a; // 如果有 缓存,则从缓存中读数据\n\n\n if (cacheKey) {\n var cacheData_1 = (_a = getCache(cacheKey)) === null || _a === void 0 ? void 0 : _a.data;\n\n if (cacheData_1) {\n newstFetchKey.current = cacheData_1.newstFetchKey;\n /* 使用 initState, 重新 new Fetch */\n\n var newFetches_1 = {};\n Object.keys(cacheData_1.fetches).forEach(function (key) {\n var cacheFetch = cacheData_1.fetches[key];\n var newFetch = new Fetch(servicePersist, config, subscribe.bind(null, key), {\n loading: cacheFetch.loading,\n params: cacheFetch.params,\n data: cacheFetch.data,\n error: cacheFetch.error\n });\n newFetches_1[key] = newFetch.state;\n });\n return newFetches_1;\n }\n }\n\n return {};\n }), 2),\n fetches = _q[0],\n setFetches = _q[1];\n\n var fetchesRef = useRef(fetches);\n fetchesRef.current = fetches;\n var readyMemoryParams = useRef();\n var run = useCallback(function () {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n if (!ready) {\n // 没有 ready, 记录请求参数,等 ready 后,发起请求用\n readyMemoryParams.current = args;\n return;\n }\n\n if (fetchKeyPersist) {\n var key = fetchKeyPersist.apply(void 0, __spread(args));\n newstFetchKey.current = key === undefined ? DEFAULT_KEY : key;\n }\n\n var currentFetchKey = newstFetchKey.current; // 这里必须用 fetchsRef,而不能用 fetches。\n // 否则在 reset 完,立即 run 的时候,这里拿到的 fetches 是旧的。\n\n var currentFetch = fetchesRef.current[currentFetchKey];\n\n if (!currentFetch) {\n var newFetch = new Fetch(servicePersist, config, subscribe.bind(null, currentFetchKey), {\n data: initialData\n });\n currentFetch = newFetch.state;\n setFetches(function (s) {\n // eslint-disable-next-line no-param-reassign\n s[currentFetchKey] = currentFetch;\n return __assign({}, s);\n });\n }\n\n return currentFetch.run.apply(currentFetch, __spread(args));\n }, [fetchKey, subscribe, ready]);\n var runRef = useRef(run);\n runRef.current = run; // cache\n\n useUpdateEffect(function () {\n if (cacheKey) {\n setCache(cacheKey, cacheTime, {\n fetches: fetches,\n newstFetchKey: newstFetchKey.current\n });\n }\n }, [cacheKey, fetches]); // for ready\n\n var hasTriggeredByReady = useRef(false);\n useUpdateEffect(function () {\n if (ready) {\n if (!hasTriggeredByReady.current && readyMemoryParams.current) {\n runRef.current.apply(runRef, __spread(readyMemoryParams.current));\n }\n\n hasTriggeredByReady.current = true;\n }\n }, [ready]); // 第一次默认执行\n\n useEffect(function () {\n var _a;\n\n if (!manual) {\n // 如果有缓存,则重新请求\n if (Object.keys(fetches).length > 0) {\n // 如果 staleTime 是 -1,则 cache 永不过期\n // 如果 statleTime 超期了,则重新请求\n var cacheStartTime = cacheKey && ((_a = getCache(cacheKey)) === null || _a === void 0 ? void 0 : _a.startTime) || 0;\n\n if (!(staleTime === -1 || new Date().getTime() - cacheStartTime <= staleTime)) {\n /* 重新执行所有的 cache */\n Object.values(fetches).forEach(function (f) {\n f.refresh();\n });\n }\n } else {\n // 第一次默认执行,可以通过 defaultParams 设置参数\n runRef.current.apply(runRef, __spread(defaultParams));\n }\n }\n }, []); // 重置 fetches\n\n var reset = useCallback(function () {\n Object.values(fetchesRef.current).forEach(function (f) {\n f.unmount();\n });\n newstFetchKey.current = DEFAULT_KEY;\n setFetches({}); // 不写会有问题。如果不写,此时立即 run,会是老的数据\n\n fetchesRef.current = {};\n }, [setFetches]); // refreshDeps 变化,重新执行所有请求\n\n useUpdateEffect(function () {\n if (!manual) {\n /* 全部重新执行 */\n Object.values(fetchesRef.current).forEach(function (f) {\n f.refresh();\n });\n }\n }, __spread(refreshDeps)); // 卸载组件触发\n\n useEffect(function () {\n return function () {\n Object.values(fetchesRef.current).forEach(function (f) {\n f.unmount();\n });\n };\n }, []);\n var notExecutedWarning = useCallback(function (name) {\n return function () {\n console.warn(\"You should't call \" + name + \" when service not executed once.\");\n };\n }, []);\n return __assign(__assign({\n loading: ready && !manual || defaultLoading,\n data: initialData,\n error: undefined,\n params: [],\n cancel: notExecutedWarning('cancel'),\n refresh: notExecutedWarning('refresh'),\n mutate: notExecutedWarning('mutate')\n }, fetches[newstFetchKey.current] || {}), {\n run: run,\n fetches: fetches,\n reset: reset\n });\n}\n\nexport default useAsync;","var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n\nimport { useRef, useCallback, useMemo, useEffect, useState } from 'react';\nimport useAsync from './useAsync';\nimport useUpdateEffect from './utils/useUpdateEffect';\n\nfunction useLoadMore(service, options) {\n var _a = options.refreshDeps,\n refreshDeps = _a === void 0 ? [] : _a,\n ref = options.ref,\n isNoMore = options.isNoMore,\n _b = options.threshold,\n threshold = _b === void 0 ? 100 : _b,\n fetchKey = options.fetchKey,\n restOptions = __rest(options, [\"refreshDeps\", \"ref\", \"isNoMore\", \"threshold\", \"fetchKey\"]);\n\n var _c = __read(useState(false), 2),\n loadingMore = _c[0],\n setLoadingMore = _c[1];\n\n useEffect(function () {\n if (options.fetchKey) {\n console.warn(\"useRequest loadMore mode don't need fetchKey!\");\n }\n }, []);\n var result = useAsync(service, __assign(__assign({}, restOptions), {\n fetchKey: function fetchKey(d) {\n var _a;\n\n return ((_a = d === null || d === void 0 ? void 0 : d.list) === null || _a === void 0 ? void 0 : _a.length) || 0;\n },\n onSuccess: function onSuccess() {\n var params = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n\n setLoadingMore(false);\n\n if (options.onSuccess) {\n options.onSuccess.apply(options, __spread(params));\n }\n }\n }));\n var data = result.data,\n run = result.run,\n params = result.params,\n reset = result.reset,\n loading = result.loading,\n fetches = result.fetches;\n var reload = useCallback(function () {\n reset();\n\n var _a = __read(params),\n restParams = _a.slice(1);\n\n run.apply(void 0, __spread([undefined], restParams));\n }, [run, reset, params]);\n var reloadRef = useRef(reload);\n reloadRef.current = reload;\n /* loadMore 场景下,如果 refreshDeps 变化,重置到第一页 */\n\n useUpdateEffect(function () {\n /* 只有自动执行的场景, refreshDeps 才有效 */\n if (!options.manual) {\n reloadRef.current();\n }\n }, __spread(refreshDeps));\n var dataGroup = useMemo(function () {\n var listGroup = []; // 在 loadMore 时,不希望清空上一次的 data。需要把最后一个 非 loading 的请求 data,放回去。\n\n var lastNoLoadingData = data;\n Object.values(fetches).forEach(function (h) {\n var _a, _b;\n\n if ((_a = h.data) === null || _a === void 0 ? void 0 : _a.list) {\n listGroup = listGroup.concat((_b = h.data) === null || _b === void 0 ? void 0 : _b.list);\n }\n\n if (!h.loading) {\n lastNoLoadingData = h.data;\n }\n });\n return __assign(__assign({}, lastNoLoadingData), {\n list: listGroup\n });\n }, [fetches, data]);\n var noMore = isNoMore ? !loading && !loadingMore && isNoMore(dataGroup) : false;\n var loadMore = useCallback(function () {\n if (noMore) {\n return;\n }\n\n setLoadingMore(true);\n\n var _a = __read(params),\n restParams = _a.slice(1);\n\n run.apply(void 0, __spread([dataGroup], restParams));\n }, [noMore, run, dataGroup, params]);\n /* 上拉加载的方法 */\n\n var scrollMethod = function scrollMethod() {\n if (loading || loadingMore || !ref || !ref.current) {\n return;\n }\n\n if (ref.current.scrollHeight - ref.current.scrollTop <= ref.current.clientHeight + threshold) {\n loadMore();\n }\n }; // 如果不用 ref,而用之前的 useCallbak,在某些情况下会出问题,造成拿到的 loading 不是最新的。\n // fix https://github.com/alibaba/hooks/issues/630\n\n\n var scrollMethodRef = useRef(scrollMethod);\n scrollMethodRef.current = scrollMethod;\n /* 如果有 ref,则会上拉加载更多 */\n\n useEffect(function () {\n if (!ref || !ref.current) {\n return function () {};\n }\n\n var scrollTrigger = function scrollTrigger() {\n return scrollMethodRef.current();\n };\n\n ref.current.addEventListener('scroll', scrollTrigger);\n return function () {\n if (ref && ref.current) {\n ref.current.removeEventListener('scroll', scrollTrigger);\n }\n };\n }, [scrollMethodRef]);\n return __assign(__assign({}, result), {\n data: dataGroup,\n reload: reload,\n loading: loading && dataGroup.list.length === 0,\n loadMore: loadMore,\n loadingMore: loadingMore,\n noMore: noMore\n });\n}\n\nexport default useLoadMore;","var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n\nimport { useCallback, useEffect, useMemo, useRef } from 'react';\nimport useAsync from './useAsync';\nimport useUpdateEffect from './utils/useUpdateEffect';\n\nfunction usePaginated(service, options) {\n var paginated = options.paginated,\n _a = options.defaultPageSize,\n defaultPageSize = _a === void 0 ? 10 : _a,\n _b = options.refreshDeps,\n refreshDeps = _b === void 0 ? [] : _b,\n fetchKey = options.fetchKey,\n restOptions = __rest(options, [\"paginated\", \"defaultPageSize\", \"refreshDeps\", \"fetchKey\"]);\n\n useEffect(function () {\n if (fetchKey) {\n console.error(\"useRequest pagination's fetchKey will not work!\");\n }\n }, []);\n\n var _c = useAsync(service, __assign({\n defaultParams: [{\n current: 1,\n pageSize: defaultPageSize\n }]\n }, restOptions)),\n data = _c.data,\n params = _c.params,\n run = _c.run,\n loading = _c.loading,\n rest = __rest(_c, [\"data\", \"params\", \"run\", \"loading\"]);\n\n var _d = params && params[0] ? params[0] : {},\n _e = _d.current,\n current = _e === void 0 ? 1 : _e,\n _f = _d.pageSize,\n pageSize = _f === void 0 ? defaultPageSize : _f,\n _g = _d.sorter,\n sorter = _g === void 0 ? {} : _g,\n _h = _d.filters,\n filters = _h === void 0 ? {} : _h; // 只改变 pagination,其他参数原样传递\n\n\n var runChangePagination = useCallback(function (paginationParams) {\n var _a = __read(params),\n oldPaginationParams = _a[0],\n restParams = _a.slice(1);\n\n run.apply(void 0, __spread([__assign(__assign({}, oldPaginationParams), paginationParams)], restParams));\n }, [run, params]);\n var total = (data === null || data === void 0 ? void 0 : data.total) || 0;\n var totalPage = useMemo(function () {\n return Math.ceil(total / pageSize);\n }, [pageSize, total]);\n var onChange = useCallback(function (c, p) {\n var toCurrent = c <= 0 ? 1 : c;\n var toPageSize = p <= 0 ? 1 : p;\n var tempTotalPage = Math.ceil(total / toPageSize);\n\n if (toCurrent > tempTotalPage) {\n toCurrent = Math.max(1, tempTotalPage);\n }\n\n runChangePagination({\n current: toCurrent,\n pageSize: toPageSize\n });\n }, [total, runChangePagination]);\n var changeCurrent = useCallback(function (c) {\n onChange(c, pageSize);\n }, [onChange, pageSize]);\n var changePageSize = useCallback(function (p) {\n onChange(current, p);\n }, [onChange, current]);\n var changeCurrentRef = useRef(changeCurrent);\n changeCurrentRef.current = changeCurrent;\n /* 分页场景下,如果 refreshDeps 变化,重置分页 */\n\n useUpdateEffect(function () {\n /* 只有自动执行的场景, refreshDeps 才有效 */\n if (!options.manual) {\n changeCurrentRef.current(1);\n }\n }, __spread(refreshDeps)); // 表格翻页 排序 筛选等\n\n var changeTable = useCallback(function (p, f, s) {\n runChangePagination({\n current: p.current,\n pageSize: p.pageSize || defaultPageSize,\n filters: f,\n sorter: s\n });\n }, [filters, sorter, runChangePagination]);\n return __assign({\n loading: loading,\n data: data,\n params: params,\n run: run,\n pagination: {\n current: current,\n pageSize: pageSize,\n total: total,\n totalPage: totalPage,\n onChange: onChange,\n changeCurrent: changeCurrent,\n changePageSize: changePageSize\n },\n tableProps: {\n dataSource: (data === null || data === void 0 ? void 0 : data.list) || [],\n loading: loading,\n onChange: changeTable,\n pagination: {\n current: current,\n pageSize: pageSize,\n total: total\n }\n },\n sorter: sorter,\n filters: filters\n }, rest);\n}\n\nexport default usePaginated;","import React from 'react';\nvar ConfigContext = /*#__PURE__*/React.createContext({});\nConfigContext.displayName = 'UseRequestConfigContext';\nexport default ConfigContext;","var __assign = this && this.__assign || function () {\n __assign = Object.assign || function (t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\n }\n }\n\n return t;\n };\n\n return __assign.apply(this, arguments);\n};\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n\n for (var p in s) {\n if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n }\n\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n\nvar __read = this && this.__read || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o),\n r,\n ar = [],\n e;\n\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {\n ar.push(r.value);\n }\n } catch (error) {\n e = {\n error: error\n };\n } finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n } finally {\n if (e) throw e.error;\n }\n }\n\n return ar;\n};\n\nvar __spread = this && this.__spread || function () {\n for (var ar = [], i = 0; i < arguments.length; i++) {\n ar = ar.concat(__read(arguments[i]));\n }\n\n return ar;\n};\n/* eslint-disable react-hooks/rules-of-hooks */\n\n\nimport { useRef, useContext } from 'react';\nimport useAsync from './useAsync';\nimport useLoadMore from './useLoadMore';\nimport usePaginated from './usePaginated';\nimport ConfigContext from './configContext';\n\nfunction useRequest(service, options) {\n if (options === void 0) {\n options = {};\n }\n\n var contextConfig = useContext(ConfigContext);\n\n var finalOptions = __assign(__assign({}, contextConfig), options);\n\n var paginated = finalOptions.paginated,\n loadMore = finalOptions.loadMore,\n requestMethod = finalOptions.requestMethod;\n var paginatedRef = useRef(paginated);\n var loadMoreRef = useRef(loadMore);\n\n if (paginatedRef.current !== paginated) {\n throw Error('You should not modify the paginated of options');\n }\n\n if (loadMoreRef.current !== loadMore) {\n throw Error('You should not modify the loadMore of options');\n }\n\n paginatedRef.current = paginated;\n loadMoreRef.current = loadMore; // @ts-ignore\n\n var fetchProxy = function fetchProxy() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n } // @ts-ignore\n\n\n return fetch.apply(void 0, __spread(args)).then(function (res) {\n if (res.ok) {\n return res.json();\n }\n\n throw new Error(res.statusText);\n });\n };\n\n var finalRequestMethod = requestMethod || fetchProxy;\n var promiseService;\n\n switch (typeof service) {\n case 'string':\n promiseService = function promiseService() {\n return finalRequestMethod(service);\n };\n\n break;\n\n case 'object':\n var url_1 = service.url,\n rest_1 = __rest(service, [\"url\"]);\n\n promiseService = function promiseService() {\n return requestMethod ? requestMethod(service) : fetchProxy(url_1, rest_1);\n };\n\n break;\n\n default:\n promiseService = function promiseService() {\n var args = [];\n\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n\n return new Promise(function (resolve, reject) {\n var s = service.apply(void 0, __spread(args));\n var fn = s;\n\n if (!s.then) {\n switch (typeof s) {\n case 'string':\n fn = finalRequestMethod(s);\n break;\n\n case 'object':\n var url_2 = s.url,\n rest_2 = __rest(s, [\"url\"]);\n\n fn = requestMethod ? requestMethod(s) : fetchProxy(url_2, rest_2);\n break;\n }\n }\n\n fn.then(resolve)[\"catch\"](reject);\n });\n };\n\n }\n\n if (loadMore) {\n return useLoadMore(promiseService, finalOptions);\n }\n\n if (paginated) {\n return usePaginated(promiseService, finalOptions);\n }\n\n return useAsync(promiseService, finalOptions);\n}\n\nvar UseRequestProvider = ConfigContext.Provider; // UseAPIProvider 已经废弃,此处为了兼容 umijs 插件 plugin-request\n\nvar UseAPIProvider = UseRequestProvider;\nexport { useAsync, usePaginated, useLoadMore, UseRequestProvider, UseAPIProvider };\nexport default useRequest;","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport axios, {\n type AxiosInstance,\n type AxiosRequestConfig,\n type AxiosResponse,\n type AxiosError,\n} from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/axios@0.27.2/node_modules/axios';\nimport useUmiRequest, { UseRequestProvider } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@ahooksjs+use-request@2.8.15_react@18.2.0/node_modules/@ahooksjs/use-request';\nimport { ApplyPluginsType } from 'umi';\nimport { getPluginManager } from '../core/plugin';\n\nimport {\n BaseOptions,\n BasePaginatedOptions,\n BaseResult,\n CombineService,\n LoadMoreFormatReturn,\n LoadMoreOptions,\n LoadMoreOptionsWithFormat,\n LoadMoreParams,\n LoadMoreResult,\n OptionsWithFormat,\n PaginatedFormatReturn,\n PaginatedOptionsWithFormat,\n PaginatedParams,\n PaginatedResult,\n} from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@ahooksjs+use-request@2.8.15_react@18.2.0/node_modules/@ahooksjs/use-request/es/types';\n\ntype ResultWithData< T = any > = { data?: T; [key: string]: any };\n\nfunction useRequest<\n R = any,\n P extends any[] = any,\n U = any,\n UU extends U = any,\n>(\n service: CombineService,\n options: OptionsWithFormat,\n): BaseResult;\nfunction useRequest(\n service: CombineService,\n options?: BaseOptions,\n): BaseResult;\nfunction useRequest(\n service: CombineService>,\n options: LoadMoreOptionsWithFormat,\n): LoadMoreResult;\nfunction useRequest<\n R extends ResultWithData = any,\n RR extends R = any,\n>(\n service: CombineService>,\n options: LoadMoreOptions,\n): LoadMoreResult;\n\nfunction useRequest(\n service: CombineService,\n options: PaginatedOptionsWithFormat,\n): PaginatedResult;\nfunction useRequest(\n service: CombineService<\n ResultWithData>,\n PaginatedParams\n >,\n options: BasePaginatedOptions,\n): PaginatedResult;\nfunction useRequest(service: any, options: any = {}) {\n return useUmiRequest(service, {\n formatResult: result => result?.data,\n requestMethod: (requestOptions: any) => {\n if (typeof requestOptions === 'string') {\n return request(requestOptions);\n }\n if (typeof requestOptions === 'object') {\n const { url, ...rest } = requestOptions;\n return request(url, rest);\n }\n throw new Error('request options error');\n },\n ...options,\n });\n}\n\n// request 方法 opts 参数的接口\ninterface IRequestOptions extends AxiosRequestConfig {\n skipErrorHandler?: boolean;\n requestInterceptors?: IRequestInterceptorTuple[];\n responseInterceptors?: IResponseInterceptorTuple[];\n [key: string]: any;\n}\n\ninterface IRequestOptionsWithResponse extends IRequestOptions {\n getResponse: true;\n}\n\ninterface IRequestOptionsWithoutResponse extends IRequestOptions{\n getResponse: false;\n}\n\ninterface IRequest{\n (url: string, opts: IRequestOptionsWithResponse): Promise>;\n (url: string, opts: IRequestOptionsWithoutResponse): Promise;\n (url: string, opts: IRequestOptions): Promise; // getResponse 默认是 false, 因此不提供该参数时,只返回 data\n (url: string): Promise; // 不提供 opts 时,默认使用 'GET' method,并且默认返回 data\n}\n\ntype RequestError = AxiosError | Error\n\ninterface IErrorHandler {\n (error: RequestError, opts: IRequestOptions): void;\n}\ntype IRequestInterceptorAxios = (config: RequestOptions) => RequestOptions;\ntype IRequestInterceptorUmiRequest = (url: string, config : RequestOptions) => { url: string, options: RequestOptions };\ntype IRequestInterceptor = IRequestInterceptorAxios | IRequestInterceptorUmiRequest;\ntype IErrorInterceptor = (error: Error) => Promise;\ntype IResponseInterceptor = (response : AxiosResponse) => AxiosResponse ;\ntype IRequestInterceptorTuple = [IRequestInterceptor , IErrorInterceptor] | [ IRequestInterceptor ] | IRequestInterceptor\ntype IResponseInterceptorTuple = [IResponseInterceptor, IErrorInterceptor] | [IResponseInterceptor] | IResponseInterceptor\n\nexport interface RequestConfig extends AxiosRequestConfig {\n errorConfig?: {\n errorHandler?: IErrorHandler;\n errorThrower?: ( res: T ) => void\n };\n requestInterceptors?: IRequestInterceptorTuple[];\n responseInterceptors?: IResponseInterceptorTuple[];\n}\n\nlet requestInstance: AxiosInstance;\nlet config: RequestConfig;\nconst getConfig = (): RequestConfig => {\n if (config) return config;\n config = getPluginManager().applyPlugins({\n key: 'request',\n type: ApplyPluginsType.modify,\n initialValue: {},\n });\n return config;\n};\n\nconst getRequestInstance = (): AxiosInstance => {\n if (requestInstance) return requestInstance;\n const config = getConfig();\n requestInstance = axios.create(config);\n\n config?.requestInterceptors?.forEach((interceptor) => {\n if(interceptor instanceof Array){\n requestInstance.interceptors.request.use((config) => {\n const { url } = config;\n if(interceptor[0].length === 2){\n const { url: newUrl, options } = interceptor[0](url, config);\n return { ...options, url: newUrl };\n }\n return interceptor[0](config);\n }, interceptor[1]);\n } else {\n requestInstance.interceptors.request.use((config) => {\n const { url } = config;\n if(interceptor.length === 2){\n const { url: newUrl, options } = interceptor(url, config);\n return { ...options, url: newUrl };\n }\n return interceptor(config);\n })\n }\n });\n\n config?.responseInterceptors?.forEach((interceptor) => {\n interceptor instanceof Array ?\n requestInstance.interceptors.response.use(interceptor[0], interceptor[1]):\n requestInstance.interceptors.response.use(interceptor);\n });\n\n // 当响应的数据 success 是 false 的时候,抛出 error 以供 errorHandler 处理。\n requestInstance.interceptors.response.use((response) => {\n const { data } = response;\n if(data?.success === false && config?.errorConfig?.errorThrower){\n config.errorConfig.errorThrower(data);\n }\n return response;\n })\n return requestInstance;\n};\n\nconst request: IRequest = (url: string, opts: any = { method: 'GET' }) => {\n const requestInstance = getRequestInstance();\n const config = getConfig();\n const { getResponse = false, requestInterceptors, responseInterceptors } = opts;\n const requestInterceptorsToEject = requestInterceptors?.map((interceptor) => {\n if(interceptor instanceof Array){\n return requestInstance.interceptors.request.use((config) => {\n const { url } = config;\n if(interceptor[0].length === 2){\n const { url: newUrl, options } = interceptor[0](url, config);\n return { ...options, url: newUrl };\n }\n return interceptor[0](config);\n }, interceptor[1]);\n } else {\n return requestInstance.interceptors.request.use((config) => {\n const { url } = config;\n if(interceptor.length === 2){\n const { url: newUrl, options } = interceptor(url, config);\n return { ...options, url: newUrl };\n }\n return interceptor(config);\n })\n }\n });\n const responseInterceptorsToEject = responseInterceptors?.map((interceptor) => {\n return interceptor instanceof Array ?\n requestInstance.interceptors.response.use(interceptor[0], interceptor[1]):\n requestInstance.interceptors.response.use(interceptor);\n });\n return new Promise((resolve, reject)=>{\n requestInstance\n .request({...opts, url})\n .then((res)=>{\n requestInterceptorsToEject?.forEach((interceptor) => {\n requestInstance.interceptors.request.eject(interceptor);\n });\n responseInterceptorsToEject?.forEach((interceptor) => {\n requestInstance.interceptors.response.eject(interceptor);\n });\n resolve(getResponse ? res : res.data);\n })\n .catch((error)=>{\n requestInterceptorsToEject?.forEach((interceptor) => {\n requestInstance.interceptors.request.eject(interceptor);\n });\n responseInterceptorsToEject?.forEach((interceptor) => {\n requestInstance.interceptors.response.eject(interceptor);\n });\n try {\n const handler =\n config?.errorConfig?.errorHandler;\n if(handler)\n handler(error, opts, config);\n } catch (e) {\n reject(e);\n }\n reject(error);\n })\n })\n}\n\nexport {\n useRequest,\n UseRequestProvider,\n request,\n getRequestInstance,\n};\n\nexport type {\n AxiosInstance,\n AxiosRequestConfig,\n AxiosResponse,\n AxiosError,\n RequestError,\n IResponseInterceptor as ResponseInterceptor,\n IRequestOptions as RequestOptions,\n IRequest as Request,\n};\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nexport { defineApp } from './core/defineApp'\nexport type { RuntimeConfig } from './core/defineApp'\n// @umijs/renderer-*\nexport { createBrowserHistory, createHashHistory, createMemoryHistory, Helmet, HelmetProvider, createSearchParams, generatePath, matchPath, matchRoutes, Navigate, NavLink, Outlet, resolvePath, useLocation, useMatch, useNavigate, useOutlet, useOutletContext, useParams, useResolvedPath, useRoutes, useSearchParams, useAppData, useClientLoaderData, useRouteProps, useSelectedRoutes, useServerLoaderData, renderClient, __getRoot, Link, useRouteData, __useFetcher, withRouter } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@umijs+renderer-react@4.0.78_react-dom@18.1.0_react@18.1.0/node_modules/@umijs/renderer-react';\nexport type { History } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/@umijs+renderer-react@4.0.78_react-dom@18.1.0_react@18.1.0/node_modules/@umijs/renderer-react'\n// umi/client/client/plugin\nexport { ApplyPluginsType, PluginManager } from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/umi@4.0.78_@babel+core@7.22.11_@types+node@20.5.7_@types+react@18.2.21_eslint@8.48.0_jest@29._rviecpzlnos42l5ibvzp2p7t7e/node_modules/umi/client/client/plugin.js';\nexport { history, createHistory } from './core/history';\nexport { terminal } from './core/terminal';\nexport const useServerInsertedHTML: Function = () => {};\n// plugins\nexport { Access, useAccess, useAccessMarkedRoutes } from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-access';\nexport { addLocale, setLocale, getLocale, getIntl, useIntl, injectIntl, formatMessage, FormattedMessage, getAllLocales, FormattedDate, FormattedDateParts, FormattedDisplayName, FormattedHTMLMessage, FormattedList, FormattedNumber, FormattedNumberParts, FormattedPlural, FormattedRelativeTime, FormattedTime, FormattedTimeParts, IntlProvider, RawIntlProvider, SelectLang } from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-locale';\nexport { Provider, useModel } from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-model';\nexport { useRequest, UseRequestProvider, request, getRequestInstance } from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-request';\n// plugins types.d.ts\nexport * from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-access/types.d';\nexport * from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-antd/types.d';\nexport * from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-layout/types.d';\nexport * from '/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/.umi-production/plugin-request/types.d';\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React from 'react';\nexport const AccessContext = React.createContext(null);\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React, { PropsWithChildren } from 'react';\nimport { AccessContext } from './context';\nimport type { IRoute } from 'umi';\n\nexport const useAccess = () => {\n return React.useContext(AccessContext);\n};\n\nexport interface AccessProps {\n accessible: boolean;\n fallback?: React.ReactNode;\n}\nexport const Access: React.FC> = (props) => {\n if (process.env.NODE_ENV === 'development' && typeof props.accessible !== 'boolean') {\n throw new Error('[access] the `accessible` property on should be a boolean');\n }\n\n return <>{ props.accessible ? props.children : props.fallback };\n};\n\nexport const useAccessMarkedRoutes = (routes: IRoute[]) => {\n const access = useAccess();\n const markdedRoutes: IRoute[] = React.useMemo(() => {\n const process = (route, parentAccessCode, parentRoute) => {\n let accessCode = route.access;\n // 用父级的路由检测父级的 accessCode\n let detectorRoute = route;\n if (!accessCode && parentAccessCode) {\n accessCode = parentAccessCode;\n detectorRoute = parentRoute;\n }\n\n // set default status\n route.unaccessible = false;\n\n // check access code\n if (typeof accessCode === 'string') {\n const detector = access[accessCode];\n\n if (typeof detector === 'function') {\n route.unaccessible = !detector(detectorRoute);\n } else if (typeof detector === 'boolean') {\n route.unaccessible = !detector;\n } else if (typeof detector === 'undefined') {\n route.unaccessible = true;\n }\n }\n\n // check children access code\n if (route.children?.length) {\n const isNoAccessibleChild = !route.children.reduce((hasAccessibleChild, child) => {\n process(child, accessCode, route);\n\n return hasAccessibleChild || !child.unaccessible;\n }, false);\n\n // make sure parent route is unaccessible if all children are unaccessible\n if (isNoAccessibleChild) {\n route.unaccessible = true;\n }\n }\n\n // check children access code\n if (route.routes?.length) {\n const isNoAccessibleChild = !route.routes.reduce((hasAccessibleChild, child) => {\n process(child, accessCode, route);\n\n return hasAccessibleChild || !child.unaccessible;\n }, false);\n\n // make sure parent route is unaccessible if all children are unaccessible\n if (isNoAccessibleChild) {\n route.unaccessible = true;\n }\n }\n\n return route;\n }\n\n return routes.map(route => process(route));\n }, [routes.length, access]);\n\n return markdedRoutes;\n}\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport React,{ useState } from 'react';\nimport { Menu, version, Dropdown } from 'antd';\nimport { ClickParam } from 'antd/es/menu';\nimport { DropDownProps } from 'antd/es/dropdown';\nimport { getLocale, getAllLocales, setLocale } from './localeExports';\n\nexport interface HeaderDropdownProps extends DropDownProps {\n overlayClassName?: string;\n placement?:\n | 'bottomLeft'\n | 'bottomRight'\n | 'topLeft'\n | 'topCenter'\n | 'topRight'\n | 'bottomCenter';\n}\n\nconst HeaderDropdown: React.FC = ({\n overlayClassName: cls,\n ...restProps\n}) => (\n \n);\n\ninterface LocalData {\n lang: string,\n label?: string,\n icon?: string,\n title?: string,\n}\n\ninterface SelectLangProps {\n globalIconClassName?: string;\n postLocalesData?: (locales: LocalData[]) => LocalData[];\n onItemClick?: (params: ClickParam) => void;\n className?: string;\n reload?: boolean;\n icon?: React.ReactNode;\n style?: React.CSSProperties;\n}\n\nconst transformArrayToObject = (allLangUIConfig:LocalData[])=>{\n return allLangUIConfig.reduce((obj, item) => {\n if(!item.lang){\n return obj;\n }\n\n return {\n ...obj,\n [item.lang]: item,\n };\n }, {});\n}\n\nconst defaultLangUConfigMap = {\n 'ar-EG': {\n lang: 'ar-EG',\n label: 'العربية',\n icon: '🇪🇬',\n title: 'لغة'\n },\n 'az-AZ': {\n lang: 'az-AZ',\n label: 'Azərbaycan dili',\n icon: '🇦🇿',\n title: 'Dil'\n },\n 'bg-BG': {\n lang: 'bg-BG',\n label: 'Български език',\n icon: '🇧🇬',\n title: 'език'\n },\n 'bn-BD': {\n lang: 'bn-BD',\n label: 'বাংলা',\n icon: '🇧🇩',\n title: 'ভাষা'\n },\n 'ca-ES': {\n lang: 'ca-ES',\n label: 'Catalá',\n icon: '🇨🇦',\n title: 'llengua'\n },\n 'cs-CZ': {\n lang: 'cs-CZ',\n label: 'Čeština',\n icon: '🇨🇿',\n title: 'Jazyk'\n },\n 'da-DK': {\n lang: 'da-DK',\n label: 'Dansk',\n icon: '🇩🇰',\n title: 'Sprog'\n },\n 'de-DE': {\n lang: 'de-DE',\n label: 'Deutsch',\n icon: '🇩🇪',\n title: 'Sprache'\n },\n 'el-GR': {\n lang: 'el-GR',\n label: 'Ελληνικά',\n icon: '🇬🇷',\n title: 'Γλώσσα'\n },\n 'en-GB': {\n lang: 'en-GB',\n label: 'English',\n icon: '🇬🇧',\n title: 'Language'\n },\n 'en-US': {\n lang: 'en-US',\n label: 'English',\n icon: '🇺🇸',\n title: 'Language'\n },\n 'es-ES': {\n lang: 'es-ES',\n label: 'Español',\n icon: '🇪🇸',\n title: 'Idioma'\n },\n 'et-EE': {\n lang: 'et-EE',\n label: 'Eesti',\n icon: '🇪🇪',\n title: 'Keel'\n },\n 'fa-IR': {\n lang: 'fa-IR',\n label: 'فارسی',\n icon: '🇮🇷',\n title: 'زبان'\n },\n 'fi-FI': {\n lang: 'fi-FI',\n label: 'Suomi',\n icon: '🇫🇮',\n title: 'Kieli'\n },\n 'fr-BE': {\n lang: 'fr-BE',\n label: 'Français',\n icon: '🇧🇪',\n title: 'Langue'\n },\n 'fr-FR': {\n lang: 'fr-FR',\n label: 'Français',\n icon: '🇫🇷',\n title: 'Langue'\n },\n 'ga-IE': {\n lang: 'ga-IE',\n label: 'Gaeilge',\n icon: '🇮🇪',\n title: 'Teanga'\n },\n 'he-IL': {\n lang: 'he-IL',\n label: 'עברית',\n icon: '🇮🇱',\n title: 'שפה'\n },\n 'hi-IN': {\n lang: 'hi-IN',\n label: 'हिन्दी, हिंदी',\n icon: '🇮🇳',\n title: 'भाषा: हिन्दी'\n },\n 'hr-HR': {\n lang: 'hr-HR',\n label: 'Hrvatski jezik',\n icon: '🇭🇷',\n title: 'Jezik'\n },\n 'hu-HU': {\n lang: 'hu-HU',\n label: 'Magyar',\n icon: '🇭🇺',\n title: 'Nyelv'\n },\n 'hy-AM': {\n lang: 'hu-HU',\n label: 'Հայերեն',\n icon: '🇦🇲',\n title: 'Լեզու'\n },\n 'id-ID': {\n lang: 'id-ID',\n label: 'Bahasa Indonesia',\n icon: '🇮🇩',\n title: 'Bahasa'\n },\n 'it-IT': {\n lang: 'it-IT',\n label: 'Italiano',\n icon: '🇮🇹',\n title: 'Linguaggio'\n },\n 'is-IS': {\n lang: 'is-IS',\n label: 'Íslenska',\n icon: '🇮🇸',\n title: 'Tungumál'\n },\n 'ja-JP': {\n lang: 'ja-JP',\n label: '日本語',\n icon: '🇯🇵',\n title: '言語'\n },\n 'ku-IQ': {\n lang: 'ku-IQ',\n label: 'کوردی',\n icon: '🇮🇶',\n title: 'Ziman'\n },\n 'kn-IN': {\n lang: 'kn-IN',\n label: 'ಕನ್ನಡ',\n icon: '🇮🇳',\n title: 'ಭಾಷೆ'\n },\n 'ko-KR': {\n lang: 'ko-KR',\n label: '한국어',\n icon: '🇰🇷',\n title: '언어'\n },\n 'lv-LV': {\n lang: 'lv-LV',\n label: 'Latviešu valoda',\n icon: '🇱🇮',\n title: 'Kalba'\n },\n 'mk-MK': {\n lang: 'mk-MK',\n label: 'македонски јазик',\n icon: '🇲🇰',\n title: 'Јазик'\n },\n 'mn-MN': {\n lang: 'mn-MN',\n label: 'Монгол хэл',\n icon: '🇲🇳',\n title: 'Хэл'\n },\n 'ms-MY': {\n lang: 'ms-MY',\n label: 'بهاس ملايو‎',\n icon: '🇲🇾',\n title: 'Bahasa'\n },\n 'nb-NO': {\n lang: 'nb-NO',\n label: 'Norsk',\n icon: '🇳🇴',\n title: 'Språk'\n },\n 'ne-NP': {\n lang: 'ne-NP',\n label: 'नेपाली',\n icon: '🇳🇵',\n title: 'भाषा'\n },\n 'nl-BE': {\n lang: 'nl-BE',\n label: 'Vlaams',\n icon: '🇧🇪',\n title: 'Taal'\n },\n 'nl-NL': {\n lang: 'nl-NL',\n label: 'Vlaams',\n icon: '🇳🇱',\n title: 'Taal'\n },\n 'pl-PL': {\n lang: 'pl-PL',\n label: 'Polski',\n icon: '🇵🇱',\n title: 'Język'\n },\n 'pt-BR': {\n lang: 'pt-BR',\n label: 'Português',\n icon: '🇧🇷',\n title: 'Idiomas'\n },\n 'pt-PT': {\n lang: 'pt-PT',\n label: 'Português',\n icon: '🇵🇹',\n title: 'Idiomas'\n },\n 'ro-RO': {\n lang: 'ro-RO',\n label: 'Română',\n icon: '🇷🇴',\n title: 'Limba'\n },\n 'ru-RU': {\n lang: 'ru-RU',\n label: 'Русский',\n icon: '🇷🇺',\n title: 'язык'\n },\n 'sk-SK': {\n lang: 'sk-SK',\n label: 'Slovenčina',\n icon: '🇸🇰',\n title: 'Jazyk'\n },\n 'sr-RS': {\n lang: 'sr-RS',\n label: 'српски језик',\n icon: '🇸🇷',\n title: 'Језик'\n },\n 'sl-SI': {\n lang: 'sl-SI',\n label: 'Slovenščina',\n icon: '🇸🇱',\n title: 'Jezik'\n },\n 'sv-SE': {\n lang: 'sv-SE',\n label: 'Svenska',\n icon: '🇸🇪',\n title: 'Språk'\n },\n 'ta-IN': {\n lang: 'ta-IN',\n label: 'தமிழ்',\n icon: '🇮🇳',\n title: 'மொழி'\n },\n 'th-TH': {\n lang: 'th-TH',\n label: 'ไทย',\n icon: '🇹🇭',\n title: 'ภาษา'\n },\n 'tr-TR': {\n lang: 'tr-TR',\n label: 'Türkçe',\n icon: '🇹🇷',\n title: 'Dil'\n },\n 'uk-UA': {\n lang: 'uk-UA',\n label: 'Українська',\n icon: '🇺🇰',\n title: 'Мова'\n },\n 'vi-VN': {\n lang: 'vi-VN',\n label: 'Tiếng Việt',\n icon: '🇻🇳',\n title: 'Ngôn ngữ'\n },\n 'zh-CN': {\n lang: 'zh-CN',\n label: '简体中文',\n icon: '🇨🇳',\n title: '语言'\n },\n 'zh-TW': {\n lang: 'zh-TW',\n label: '繁體中文',\n icon: '🇭🇰',\n title: '語言'\n }\n};\n\nexport const SelectLang: React.FC = (props) => {\n const {\n globalIconClassName,\n postLocalesData,\n onItemClick,\n icon,\n style,\n reload,\n ...restProps\n} = props;\n const [selectedLang, setSelectedLang] = useState(() => getLocale());\n\n const changeLang = ({ key }: ClickParam): void => {\n setLocale(key, reload);\n setSelectedLang(getLocale())\n };\n\n\n const defaultLangUConfig = getAllLocales().map(\n (key) =>\n defaultLangUConfigMap[key] || {\n lang: key,\n label: key,\n icon: \"🌐\",\n title: key,\n }\n );\n\n const allLangUIConfig =\n postLocalesData?.(defaultLangUConfig) || defaultLangUConfig;\n const handleClick = onItemClick\n ? (params: ClickParam) => onItemClick(params)\n : changeLang;\n\n const menuItemStyle = { minWidth: \"160px\" };\n const menuItemIconStyle = { marginRight: \"8px\" };\n\n const langMenu = {\n selectedKeys: [selectedLang],\n onClick: handleClick,\n items: allLangUIConfig.map((localeObj) => ({\n key: localeObj.lang || localeObj.key,\n style: menuItemStyle,\n label: (\n <>\n \n {localeObj?.icon || '🌐'}\n \n {localeObj?.label || 'en-US'}\n \n ),\n })),\n };\n\n // antd@5 和 4.24 之后推荐使用 menu,性能更好\n let dropdownProps;\n if (version.startsWith(\"5.\") || version.startsWith(\"4.24.\")) {\n dropdownProps = { menu: langMenu };\n } else if (version.startsWith(\"3.\")) {\n dropdownProps = {\n overlay: (\n \n {langMenu.items.map((item) => (\n \n {item.label}\n \n ))}\n \n ),\n };\n } else { // 需要 antd 4.20.0 以上版本\n dropdownProps = { overlay: };\n }\n \n const inlineStyle = {\n cursor: \"pointer\",\n padding: \"12px\",\n display: \"inline-flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n fontSize: 18,\n verticalAlign: \"middle\",\n ...style,\n };\n\n return (\n \n \n \n { icon ?\n icon : (\n \n \n \n \n )}\n \n \n \n );\n return <>\n};\n","import * as React from 'react';\nimport * as hoistNonReactStatics_ from 'hoist-non-react-statics';\n// Since rollup cannot deal with namespace being a function,\n// this is to interop with TypeScript since `invariant`\n// does not export a default\n// https://github.com/rollup/rollup/issues/1267\nconst hoistNonReactStatics = hoistNonReactStatics_.default || hoistNonReactStatics_;\nimport { invariantIntlContext } from '../utils';\nfunction getDisplayName(Component) {\n return Component.displayName || Component.name || 'Component';\n}\n// TODO: We should provide initial value here\nconst IntlContext = React.createContext(null);\nconst { Consumer: IntlConsumer, Provider: IntlProvider } = IntlContext;\nexport const Provider = IntlProvider;\nexport const Context = IntlContext;\nexport default function injectIntl(WrappedComponent, options) {\n const { intlPropName = 'intl', forwardRef = false, enforceContext = true } = options || {};\n const WithIntl = props => (React.createElement(IntlConsumer, null, (intl) => {\n if (enforceContext) {\n invariantIntlContext(intl);\n }\n return (React.createElement(WrappedComponent, Object.assign({}, props, {\n [intlPropName]: intl,\n }, { ref: forwardRef ? props.forwardedRef : null })));\n }));\n WithIntl.displayName = `injectIntl(${getDisplayName(WrappedComponent)})`;\n WithIntl.WrappedComponent = WrappedComponent;\n if (forwardRef) {\n return hoistNonReactStatics(React.forwardRef((props, ref) => (React.createElement(WithIntl, Object.assign({}, props, { forwardedRef: ref })))), WrappedComponent);\n }\n return hoistNonReactStatics(WithIntl, WrappedComponent);\n}\n","export var TYPE;\n(function (TYPE) {\n /**\n * Raw text\n */\n TYPE[TYPE[\"literal\"] = 0] = \"literal\";\n /**\n * Variable w/o any format, e.g `var` in `this is a {var}`\n */\n TYPE[TYPE[\"argument\"] = 1] = \"argument\";\n /**\n * Variable w/ number format\n */\n TYPE[TYPE[\"number\"] = 2] = \"number\";\n /**\n * Variable w/ date format\n */\n TYPE[TYPE[\"date\"] = 3] = \"date\";\n /**\n * Variable w/ time format\n */\n TYPE[TYPE[\"time\"] = 4] = \"time\";\n /**\n * Variable w/ select format\n */\n TYPE[TYPE[\"select\"] = 5] = \"select\";\n /**\n * Variable w/ plural format\n */\n TYPE[TYPE[\"plural\"] = 6] = \"plural\";\n /**\n * Only possible within plural argument.\n * This is the `#` symbol that will be substituted with the count.\n */\n TYPE[TYPE[\"pound\"] = 7] = \"pound\";\n})(TYPE || (TYPE = {}));\n/**\n * Type Guards\n */\nexport function isLiteralElement(el) {\n return el.type === TYPE.literal;\n}\nexport function isArgumentElement(el) {\n return el.type === TYPE.argument;\n}\nexport function isNumberElement(el) {\n return el.type === TYPE.number;\n}\nexport function isDateElement(el) {\n return el.type === TYPE.date;\n}\nexport function isTimeElement(el) {\n return el.type === TYPE.time;\n}\nexport function isSelectElement(el) {\n return el.type === TYPE.select;\n}\nexport function isPluralElement(el) {\n return el.type === TYPE.plural;\n}\nexport function isPoundElement(el) {\n return el.type === TYPE.pound;\n}\nexport function isNumberSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === 0 /* number */);\n}\nexport function isDateTimeSkeleton(el) {\n return !!(el && typeof el === 'object' && el.type === 1 /* dateTime */);\n}\nexport function createLiteralElement(value) {\n return {\n type: TYPE.literal,\n value: value,\n };\n}\nexport function createNumberElement(value, style) {\n return {\n type: TYPE.number,\n value: value,\n style: style,\n };\n}\n","// tslint:disable:only-arrow-functions\n// tslint:disable:object-literal-shorthand\n// tslint:disable:trailing-comma\n// tslint:disable:object-literal-sort-keys\n// tslint:disable:one-variable-per-declaration\n// tslint:disable:max-line-length\n// tslint:disable:no-consecutive-blank-lines\n// tslint:disable:align\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n// Generated by PEG.js v. 0.10.0 (ts-pegjs plugin v. 0.2.6 )\n//\n// https://pegjs.org/ https://github.com/metadevpro/ts-pegjs\nimport { TYPE, } from './types';\nvar SyntaxError = /** @class */ (function (_super) {\n __extends(SyntaxError, _super);\n function SyntaxError(message, expected, found, location) {\n var _this = _super.call(this) || this;\n _this.message = message;\n _this.expected = expected;\n _this.found = found;\n _this.location = location;\n _this.name = \"SyntaxError\";\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(_this, SyntaxError);\n }\n return _this;\n }\n SyntaxError.buildMessage = function (expected, found) {\n function hex(ch) {\n return ch.charCodeAt(0).toString(16).toUpperCase();\n }\n function literalEscape(s) {\n return s\n .replace(/\\\\/g, \"\\\\\\\\\")\n .replace(/\"/g, \"\\\\\\\"\")\n .replace(/\\0/g, \"\\\\0\")\n .replace(/\\t/g, \"\\\\t\")\n .replace(/\\n/g, \"\\\\n\")\n .replace(/\\r/g, \"\\\\r\")\n .replace(/[\\x00-\\x0F]/g, function (ch) { return \"\\\\x0\" + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function (ch) { return \"\\\\x\" + hex(ch); });\n }\n function classEscape(s) {\n return s\n .replace(/\\\\/g, \"\\\\\\\\\")\n .replace(/\\]/g, \"\\\\]\")\n .replace(/\\^/g, \"\\\\^\")\n .replace(/-/g, \"\\\\-\")\n .replace(/\\0/g, \"\\\\0\")\n .replace(/\\t/g, \"\\\\t\")\n .replace(/\\n/g, \"\\\\n\")\n .replace(/\\r/g, \"\\\\r\")\n .replace(/[\\x00-\\x0F]/g, function (ch) { return \"\\\\x0\" + hex(ch); })\n .replace(/[\\x10-\\x1F\\x7F-\\x9F]/g, function (ch) { return \"\\\\x\" + hex(ch); });\n }\n function describeExpectation(expectation) {\n switch (expectation.type) {\n case \"literal\":\n return \"\\\"\" + literalEscape(expectation.text) + \"\\\"\";\n case \"class\":\n var escapedParts = expectation.parts.map(function (part) {\n return Array.isArray(part)\n ? classEscape(part[0]) + \"-\" + classEscape(part[1])\n : classEscape(part);\n });\n return \"[\" + (expectation.inverted ? \"^\" : \"\") + escapedParts + \"]\";\n case \"any\":\n return \"any character\";\n case \"end\":\n return \"end of input\";\n case \"other\":\n return expectation.description;\n }\n }\n function describeExpected(expected1) {\n var descriptions = expected1.map(describeExpectation);\n var i;\n var j;\n descriptions.sort();\n if (descriptions.length > 0) {\n for (i = 1, j = 1; i < descriptions.length; i++) {\n if (descriptions[i - 1] !== descriptions[i]) {\n descriptions[j] = descriptions[i];\n j++;\n }\n }\n descriptions.length = j;\n }\n switch (descriptions.length) {\n case 1:\n return descriptions[0];\n case 2:\n return descriptions[0] + \" or \" + descriptions[1];\n default:\n return descriptions.slice(0, -1).join(\", \")\n + \", or \"\n + descriptions[descriptions.length - 1];\n }\n }\n function describeFound(found1) {\n return found1 ? \"\\\"\" + literalEscape(found1) + \"\\\"\" : \"end of input\";\n }\n return \"Expected \" + describeExpected(expected) + \" but \" + describeFound(found) + \" found.\";\n };\n return SyntaxError;\n}(Error));\nexport { SyntaxError };\nfunction peg$parse(input, options) {\n options = options !== undefined ? options : {};\n var peg$FAILED = {};\n var peg$startRuleFunctions = { start: peg$parsestart };\n var peg$startRuleFunction = peg$parsestart;\n var peg$c0 = function (parts) {\n return parts.join('');\n };\n var peg$c1 = function (messageText) {\n return __assign({ type: TYPE.literal, value: messageText }, insertLocation());\n };\n var peg$c2 = \"#\";\n var peg$c3 = peg$literalExpectation(\"#\", false);\n var peg$c4 = function () {\n return __assign({ type: TYPE.pound }, insertLocation());\n };\n var peg$c5 = peg$otherExpectation(\"argumentElement\");\n var peg$c6 = \"{\";\n var peg$c7 = peg$literalExpectation(\"{\", false);\n var peg$c8 = \"}\";\n var peg$c9 = peg$literalExpectation(\"}\", false);\n var peg$c10 = function (value) {\n return __assign({ type: TYPE.argument, value: value }, insertLocation());\n };\n var peg$c11 = peg$otherExpectation(\"numberSkeletonId\");\n var peg$c12 = /^['\\/{}]/;\n var peg$c13 = peg$classExpectation([\"'\", \"/\", \"{\", \"}\"], false, false);\n var peg$c14 = peg$anyExpectation();\n var peg$c15 = peg$otherExpectation(\"numberSkeletonTokenOption\");\n var peg$c16 = \"/\";\n var peg$c17 = peg$literalExpectation(\"/\", false);\n var peg$c18 = function (option) { return option; };\n var peg$c19 = peg$otherExpectation(\"numberSkeletonToken\");\n var peg$c20 = function (stem, options) {\n return { stem: stem, options: options };\n };\n var peg$c21 = function (tokens) {\n return __assign({ type: 0 /* number */, tokens: tokens }, insertLocation());\n };\n var peg$c22 = \"::\";\n var peg$c23 = peg$literalExpectation(\"::\", false);\n var peg$c24 = function (skeleton) { return skeleton; };\n var peg$c25 = function () { messageCtx.push('numberArgStyle'); return true; };\n var peg$c26 = function (style) {\n messageCtx.pop();\n return style.replace(/\\s*$/, '');\n };\n var peg$c27 = \",\";\n var peg$c28 = peg$literalExpectation(\",\", false);\n var peg$c29 = \"number\";\n var peg$c30 = peg$literalExpectation(\"number\", false);\n var peg$c31 = function (value, type, style) {\n return __assign({ type: type === 'number' ? TYPE.number : type === 'date' ? TYPE.date : TYPE.time, style: style && style[2], value: value }, insertLocation());\n };\n var peg$c32 = \"'\";\n var peg$c33 = peg$literalExpectation(\"'\", false);\n var peg$c34 = /^[^']/;\n var peg$c35 = peg$classExpectation([\"'\"], true, false);\n var peg$c36 = /^[^a-zA-Z'{}]/;\n var peg$c37 = peg$classExpectation([[\"a\", \"z\"], [\"A\", \"Z\"], \"'\", \"{\", \"}\"], true, false);\n var peg$c38 = /^[a-zA-Z]/;\n var peg$c39 = peg$classExpectation([[\"a\", \"z\"], [\"A\", \"Z\"]], false, false);\n var peg$c40 = function (pattern) {\n return __assign({ type: 1 /* dateTime */, pattern: pattern }, insertLocation());\n };\n var peg$c41 = function () { messageCtx.push('dateOrTimeArgStyle'); return true; };\n var peg$c42 = \"date\";\n var peg$c43 = peg$literalExpectation(\"date\", false);\n var peg$c44 = \"time\";\n var peg$c45 = peg$literalExpectation(\"time\", false);\n var peg$c46 = \"plural\";\n var peg$c47 = peg$literalExpectation(\"plural\", false);\n var peg$c48 = \"selectordinal\";\n var peg$c49 = peg$literalExpectation(\"selectordinal\", false);\n var peg$c50 = \"offset:\";\n var peg$c51 = peg$literalExpectation(\"offset:\", false);\n var peg$c52 = function (value, pluralType, offset, options) {\n return __assign({ type: TYPE.plural, pluralType: pluralType === 'plural' ? 'cardinal' : 'ordinal', value: value, offset: offset ? offset[2] : 0, options: options.reduce(function (all, _a) {\n var id = _a.id, value = _a.value, optionLocation = _a.location;\n if (id in all) {\n error(\"Duplicate option \\\"\" + id + \"\\\" in plural element: \\\"\" + text() + \"\\\"\", location());\n }\n all[id] = {\n value: value,\n location: optionLocation\n };\n return all;\n }, {}) }, insertLocation());\n };\n var peg$c53 = \"select\";\n var peg$c54 = peg$literalExpectation(\"select\", false);\n var peg$c55 = function (value, options) {\n return __assign({ type: TYPE.select, value: value, options: options.reduce(function (all, _a) {\n var id = _a.id, value = _a.value, optionLocation = _a.location;\n if (id in all) {\n error(\"Duplicate option \\\"\" + id + \"\\\" in select element: \\\"\" + text() + \"\\\"\", location());\n }\n all[id] = {\n value: value,\n location: optionLocation\n };\n return all;\n }, {}) }, insertLocation());\n };\n var peg$c56 = \"=\";\n var peg$c57 = peg$literalExpectation(\"=\", false);\n var peg$c58 = function (id) { messageCtx.push('select'); return true; };\n var peg$c59 = function (id, value) {\n messageCtx.pop();\n return __assign({ id: id,\n value: value }, insertLocation());\n };\n var peg$c60 = function (id) { messageCtx.push('plural'); return true; };\n var peg$c61 = function (id, value) {\n messageCtx.pop();\n return __assign({ id: id,\n value: value }, insertLocation());\n };\n var peg$c62 = peg$otherExpectation(\"whitespace\");\n var peg$c63 = /^[\\t-\\r \\x85\\xA0\\u1680\\u2000-\\u200A\\u2028\\u2029\\u202F\\u205F\\u3000]/;\n var peg$c64 = peg$classExpectation([[\"\\t\", \"\\r\"], \" \", \"\\x85\", \"\\xA0\", \"\\u1680\", [\"\\u2000\", \"\\u200A\"], \"\\u2028\", \"\\u2029\", \"\\u202F\", \"\\u205F\", \"\\u3000\"], false, false);\n var peg$c65 = peg$otherExpectation(\"syntax pattern\");\n var peg$c66 = /^[!-\\/:-@[-\\^`{-~\\xA1-\\xA7\\xA9\\xAB\\xAC\\xAE\\xB0\\xB1\\xB6\\xBB\\xBF\\xD7\\xF7\\u2010-\\u2027\\u2030-\\u203E\\u2041-\\u2053\\u2055-\\u205E\\u2190-\\u245F\\u2500-\\u2775\\u2794-\\u2BFF\\u2E00-\\u2E7F\\u3001-\\u3003\\u3008-\\u3020\\u3030\\uFD3E\\uFD3F\\uFE45\\uFE46]/;\n var peg$c67 = peg$classExpectation([[\"!\", \"/\"], [\":\", \"@\"], [\"[\", \"^\"], \"`\", [\"{\", \"~\"], [\"\\xA1\", \"\\xA7\"], \"\\xA9\", \"\\xAB\", \"\\xAC\", \"\\xAE\", \"\\xB0\", \"\\xB1\", \"\\xB6\", \"\\xBB\", \"\\xBF\", \"\\xD7\", \"\\xF7\", [\"\\u2010\", \"\\u2027\"], [\"\\u2030\", \"\\u203E\"], [\"\\u2041\", \"\\u2053\"], [\"\\u2055\", \"\\u205E\"], [\"\\u2190\", \"\\u245F\"], [\"\\u2500\", \"\\u2775\"], [\"\\u2794\", \"\\u2BFF\"], [\"\\u2E00\", \"\\u2E7F\"], [\"\\u3001\", \"\\u3003\"], [\"\\u3008\", \"\\u3020\"], \"\\u3030\", \"\\uFD3E\", \"\\uFD3F\", \"\\uFE45\", \"\\uFE46\"], false, false);\n var peg$c68 = peg$otherExpectation(\"optional whitespace\");\n var peg$c69 = peg$otherExpectation(\"number\");\n var peg$c70 = \"-\";\n var peg$c71 = peg$literalExpectation(\"-\", false);\n var peg$c72 = function (negative, num) {\n return num\n ? negative\n ? -num\n : num\n : 0;\n };\n var peg$c73 = peg$otherExpectation(\"apostrophe\");\n var peg$c74 = peg$otherExpectation(\"double apostrophes\");\n var peg$c75 = \"''\";\n var peg$c76 = peg$literalExpectation(\"''\", false);\n var peg$c77 = function () { return \"'\"; };\n var peg$c78 = function (escapedChar, quotedChars) {\n return escapedChar + quotedChars.replace(\"''\", \"'\");\n };\n var peg$c79 = function (x) {\n return (x !== '{' &&\n !(isInPluralOption() && x === '#') &&\n !(isNestedMessageText() && x === '}'));\n };\n var peg$c80 = \"\\n\";\n var peg$c81 = peg$literalExpectation(\"\\n\", false);\n var peg$c82 = function (x) {\n return x === '{' || x === '}' || (isInPluralOption() && x === '#');\n };\n var peg$c83 = peg$otherExpectation(\"argNameOrNumber\");\n var peg$c84 = peg$otherExpectation(\"argNumber\");\n var peg$c85 = \"0\";\n var peg$c86 = peg$literalExpectation(\"0\", false);\n var peg$c87 = function () { return 0; };\n var peg$c88 = /^[1-9]/;\n var peg$c89 = peg$classExpectation([[\"1\", \"9\"]], false, false);\n var peg$c90 = /^[0-9]/;\n var peg$c91 = peg$classExpectation([[\"0\", \"9\"]], false, false);\n var peg$c92 = function (digits) {\n return parseInt(digits.join(''), 10);\n };\n var peg$c93 = peg$otherExpectation(\"argName\");\n var peg$currPos = 0;\n var peg$savedPos = 0;\n var peg$posDetailsCache = [{ line: 1, column: 1 }];\n var peg$maxFailPos = 0;\n var peg$maxFailExpected = [];\n var peg$silentFails = 0;\n var peg$result;\n if (options.startRule !== undefined) {\n if (!(options.startRule in peg$startRuleFunctions)) {\n throw new Error(\"Can't start parsing from rule \\\"\" + options.startRule + \"\\\".\");\n }\n peg$startRuleFunction = peg$startRuleFunctions[options.startRule];\n }\n function text() {\n return input.substring(peg$savedPos, peg$currPos);\n }\n function location() {\n return peg$computeLocation(peg$savedPos, peg$currPos);\n }\n function expected(description, location1) {\n location1 = location1 !== undefined\n ? location1\n : peg$computeLocation(peg$savedPos, peg$currPos);\n throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location1);\n }\n function error(message, location1) {\n location1 = location1 !== undefined\n ? location1\n : peg$computeLocation(peg$savedPos, peg$currPos);\n throw peg$buildSimpleError(message, location1);\n }\n function peg$literalExpectation(text1, ignoreCase) {\n return { type: \"literal\", text: text1, ignoreCase: ignoreCase };\n }\n function peg$classExpectation(parts, inverted, ignoreCase) {\n return { type: \"class\", parts: parts, inverted: inverted, ignoreCase: ignoreCase };\n }\n function peg$anyExpectation() {\n return { type: \"any\" };\n }\n function peg$endExpectation() {\n return { type: \"end\" };\n }\n function peg$otherExpectation(description) {\n return { type: \"other\", description: description };\n }\n function peg$computePosDetails(pos) {\n var details = peg$posDetailsCache[pos];\n var p;\n if (details) {\n return details;\n }\n else {\n p = pos - 1;\n while (!peg$posDetailsCache[p]) {\n p--;\n }\n details = peg$posDetailsCache[p];\n details = {\n line: details.line,\n column: details.column\n };\n while (p < pos) {\n if (input.charCodeAt(p) === 10) {\n details.line++;\n details.column = 1;\n }\n else {\n details.column++;\n }\n p++;\n }\n peg$posDetailsCache[pos] = details;\n return details;\n }\n }\n function peg$computeLocation(startPos, endPos) {\n var startPosDetails = peg$computePosDetails(startPos);\n var endPosDetails = peg$computePosDetails(endPos);\n return {\n start: {\n offset: startPos,\n line: startPosDetails.line,\n column: startPosDetails.column\n },\n end: {\n offset: endPos,\n line: endPosDetails.line,\n column: endPosDetails.column\n }\n };\n }\n function peg$fail(expected1) {\n if (peg$currPos < peg$maxFailPos) {\n return;\n }\n if (peg$currPos > peg$maxFailPos) {\n peg$maxFailPos = peg$currPos;\n peg$maxFailExpected = [];\n }\n peg$maxFailExpected.push(expected1);\n }\n function peg$buildSimpleError(message, location1) {\n return new SyntaxError(message, [], \"\", location1);\n }\n function peg$buildStructuredError(expected1, found, location1) {\n return new SyntaxError(SyntaxError.buildMessage(expected1, found), expected1, found, location1);\n }\n function peg$parsestart() {\n var s0;\n s0 = peg$parsemessage();\n return s0;\n }\n function peg$parsemessage() {\n var s0, s1;\n s0 = [];\n s1 = peg$parsemessageElement();\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n s1 = peg$parsemessageElement();\n }\n return s0;\n }\n function peg$parsemessageElement() {\n var s0;\n s0 = peg$parseliteralElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parseargumentElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parsesimpleFormatElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parsepluralElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parseselectElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parsepoundElement();\n }\n }\n }\n }\n }\n return s0;\n }\n function peg$parsemessageText() {\n var s0, s1, s2;\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parsedoubleApostrophes();\n if (s2 === peg$FAILED) {\n s2 = peg$parsequotedString();\n if (s2 === peg$FAILED) {\n s2 = peg$parseunquotedString();\n }\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parsedoubleApostrophes();\n if (s2 === peg$FAILED) {\n s2 = peg$parsequotedString();\n if (s2 === peg$FAILED) {\n s2 = peg$parseunquotedString();\n }\n }\n }\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c0(s1);\n }\n s0 = s1;\n return s0;\n }\n function peg$parseliteralElement() {\n var s0, s1;\n s0 = peg$currPos;\n s1 = peg$parsemessageText();\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c1(s1);\n }\n s0 = s1;\n return s0;\n }\n function peg$parsepoundElement() {\n var s0, s1;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 35) {\n s1 = peg$c2;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c3);\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c4();\n }\n s0 = s1;\n return s0;\n }\n function peg$parseargumentElement() {\n var s0, s1, s2, s3, s4, s5;\n peg$silentFails++;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 123) {\n s1 = peg$c6;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseargNameOrNumber();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s5 = peg$c8;\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s5 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c10(s3);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c5);\n }\n }\n return s0;\n }\n function peg$parsenumberSkeletonId() {\n var s0, s1, s2, s3, s4;\n peg$silentFails++;\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$parsewhiteSpace();\n if (s4 === peg$FAILED) {\n if (peg$c12.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c13);\n }\n }\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = undefined;\n }\n else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$parsewhiteSpace();\n if (s4 === peg$FAILED) {\n if (peg$c12.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c13);\n }\n }\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = undefined;\n }\n else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c11);\n }\n }\n return s0;\n }\n function peg$parsenumberSkeletonTokenOption() {\n var s0, s1, s2;\n peg$silentFails++;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 47) {\n s1 = peg$c16;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c17);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parsenumberSkeletonId();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c18(s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c15);\n }\n }\n return s0;\n }\n function peg$parsenumberSkeletonToken() {\n var s0, s1, s2, s3, s4;\n peg$silentFails++;\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parsenumberSkeletonId();\n if (s2 !== peg$FAILED) {\n s3 = [];\n s4 = peg$parsenumberSkeletonTokenOption();\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n s4 = peg$parsenumberSkeletonTokenOption();\n }\n if (s3 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c20(s2, s3);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c19);\n }\n }\n return s0;\n }\n function peg$parsenumberSkeleton() {\n var s0, s1, s2;\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parsenumberSkeletonToken();\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parsenumberSkeletonToken();\n }\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c21(s1);\n }\n s0 = s1;\n return s0;\n }\n function peg$parsenumberArgStyle() {\n var s0, s1, s2;\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c22) {\n s1 = peg$c22;\n peg$currPos += 2;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c23);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parsenumberSkeleton();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n peg$savedPos = peg$currPos;\n s1 = peg$c25();\n if (s1) {\n s1 = undefined;\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parsemessageText();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c26(s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n return s0;\n }\n function peg$parsenumberFormatElement() {\n var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 123) {\n s1 = peg$c6;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseargNameOrNumber();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c27;\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n if (input.substr(peg$currPos, 6) === peg$c29) {\n s7 = peg$c29;\n peg$currPos += 6;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c30);\n }\n }\n if (s7 !== peg$FAILED) {\n s8 = peg$parse_();\n if (s8 !== peg$FAILED) {\n s9 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 44) {\n s10 = peg$c27;\n peg$currPos++;\n }\n else {\n s10 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s10 !== peg$FAILED) {\n s11 = peg$parse_();\n if (s11 !== peg$FAILED) {\n s12 = peg$parsenumberArgStyle();\n if (s12 !== peg$FAILED) {\n s10 = [s10, s11, s12];\n s9 = s10;\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n if (s9 === peg$FAILED) {\n s9 = null;\n }\n if (s9 !== peg$FAILED) {\n s10 = peg$parse_();\n if (s10 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s11 = peg$c8;\n peg$currPos++;\n }\n else {\n s11 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s11 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c31(s3, s7, s9);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsedateTimeSkeletonLiteral() {\n var s0, s1, s2, s3;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c32;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c33);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = [];\n s3 = peg$parsedoubleApostrophes();\n if (s3 === peg$FAILED) {\n if (peg$c34.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c35);\n }\n }\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$parsedoubleApostrophes();\n if (s3 === peg$FAILED) {\n if (peg$c34.test(input.charAt(peg$currPos))) {\n s3 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c35);\n }\n }\n }\n }\n }\n else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s3 = peg$c32;\n peg$currPos++;\n }\n else {\n s3 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c33);\n }\n }\n if (s3 !== peg$FAILED) {\n s1 = [s1, s2, s3];\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = [];\n s1 = peg$parsedoubleApostrophes();\n if (s1 === peg$FAILED) {\n if (peg$c36.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c37);\n }\n }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n s1 = peg$parsedoubleApostrophes();\n if (s1 === peg$FAILED) {\n if (peg$c36.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c37);\n }\n }\n }\n }\n }\n else {\n s0 = peg$FAILED;\n }\n }\n return s0;\n }\n function peg$parsedateTimeSkeletonPattern() {\n var s0, s1;\n s0 = [];\n if (peg$c38.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c39);\n }\n }\n if (s1 !== peg$FAILED) {\n while (s1 !== peg$FAILED) {\n s0.push(s1);\n if (peg$c38.test(input.charAt(peg$currPos))) {\n s1 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c39);\n }\n }\n }\n }\n else {\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsedateTimeSkeleton() {\n var s0, s1, s2, s3;\n s0 = peg$currPos;\n s1 = peg$currPos;\n s2 = [];\n s3 = peg$parsedateTimeSkeletonLiteral();\n if (s3 === peg$FAILED) {\n s3 = peg$parsedateTimeSkeletonPattern();\n }\n if (s3 !== peg$FAILED) {\n while (s3 !== peg$FAILED) {\n s2.push(s3);\n s3 = peg$parsedateTimeSkeletonLiteral();\n if (s3 === peg$FAILED) {\n s3 = peg$parsedateTimeSkeletonPattern();\n }\n }\n }\n else {\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n s1 = input.substring(s1, peg$currPos);\n }\n else {\n s1 = s2;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c40(s1);\n }\n s0 = s1;\n return s0;\n }\n function peg$parsedateOrTimeArgStyle() {\n var s0, s1, s2;\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c22) {\n s1 = peg$c22;\n peg$currPos += 2;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c23);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parsedateTimeSkeleton();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c24(s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n peg$savedPos = peg$currPos;\n s1 = peg$c41();\n if (s1) {\n s1 = undefined;\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parsemessageText();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c26(s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n return s0;\n }\n function peg$parsedateOrTimeFormatElement() {\n var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 123) {\n s1 = peg$c6;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseargNameOrNumber();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c27;\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n if (input.substr(peg$currPos, 4) === peg$c42) {\n s7 = peg$c42;\n peg$currPos += 4;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c43);\n }\n }\n if (s7 === peg$FAILED) {\n if (input.substr(peg$currPos, 4) === peg$c44) {\n s7 = peg$c44;\n peg$currPos += 4;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c45);\n }\n }\n }\n if (s7 !== peg$FAILED) {\n s8 = peg$parse_();\n if (s8 !== peg$FAILED) {\n s9 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 44) {\n s10 = peg$c27;\n peg$currPos++;\n }\n else {\n s10 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s10 !== peg$FAILED) {\n s11 = peg$parse_();\n if (s11 !== peg$FAILED) {\n s12 = peg$parsedateOrTimeArgStyle();\n if (s12 !== peg$FAILED) {\n s10 = [s10, s11, s12];\n s9 = s10;\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s9;\n s9 = peg$FAILED;\n }\n if (s9 === peg$FAILED) {\n s9 = null;\n }\n if (s9 !== peg$FAILED) {\n s10 = peg$parse_();\n if (s10 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s11 = peg$c8;\n peg$currPos++;\n }\n else {\n s11 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s11 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c31(s3, s7, s9);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsesimpleFormatElement() {\n var s0;\n s0 = peg$parsenumberFormatElement();\n if (s0 === peg$FAILED) {\n s0 = peg$parsedateOrTimeFormatElement();\n }\n return s0;\n }\n function peg$parsepluralElement() {\n var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14, s15;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 123) {\n s1 = peg$c6;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseargNameOrNumber();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c27;\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n if (input.substr(peg$currPos, 6) === peg$c46) {\n s7 = peg$c46;\n peg$currPos += 6;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c47);\n }\n }\n if (s7 === peg$FAILED) {\n if (input.substr(peg$currPos, 13) === peg$c48) {\n s7 = peg$c48;\n peg$currPos += 13;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c49);\n }\n }\n }\n if (s7 !== peg$FAILED) {\n s8 = peg$parse_();\n if (s8 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s9 = peg$c27;\n peg$currPos++;\n }\n else {\n s9 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s9 !== peg$FAILED) {\n s10 = peg$parse_();\n if (s10 !== peg$FAILED) {\n s11 = peg$currPos;\n if (input.substr(peg$currPos, 7) === peg$c50) {\n s12 = peg$c50;\n peg$currPos += 7;\n }\n else {\n s12 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c51);\n }\n }\n if (s12 !== peg$FAILED) {\n s13 = peg$parse_();\n if (s13 !== peg$FAILED) {\n s14 = peg$parsenumber();\n if (s14 !== peg$FAILED) {\n s12 = [s12, s13, s14];\n s11 = s12;\n }\n else {\n peg$currPos = s11;\n s11 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s11;\n s11 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s11;\n s11 = peg$FAILED;\n }\n if (s11 === peg$FAILED) {\n s11 = null;\n }\n if (s11 !== peg$FAILED) {\n s12 = peg$parse_();\n if (s12 !== peg$FAILED) {\n s13 = [];\n s14 = peg$parsepluralOption();\n if (s14 !== peg$FAILED) {\n while (s14 !== peg$FAILED) {\n s13.push(s14);\n s14 = peg$parsepluralOption();\n }\n }\n else {\n s13 = peg$FAILED;\n }\n if (s13 !== peg$FAILED) {\n s14 = peg$parse_();\n if (s14 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s15 = peg$c8;\n peg$currPos++;\n }\n else {\n s15 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s15 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c52(s3, s7, s11, s13);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parseselectElement() {\n var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 123) {\n s1 = peg$c6;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parse_();\n if (s2 !== peg$FAILED) {\n s3 = peg$parseargNameOrNumber();\n if (s3 !== peg$FAILED) {\n s4 = peg$parse_();\n if (s4 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s5 = peg$c27;\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parse_();\n if (s6 !== peg$FAILED) {\n if (input.substr(peg$currPos, 6) === peg$c53) {\n s7 = peg$c53;\n peg$currPos += 6;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c54);\n }\n }\n if (s7 !== peg$FAILED) {\n s8 = peg$parse_();\n if (s8 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 44) {\n s9 = peg$c27;\n peg$currPos++;\n }\n else {\n s9 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c28);\n }\n }\n if (s9 !== peg$FAILED) {\n s10 = peg$parse_();\n if (s10 !== peg$FAILED) {\n s11 = [];\n s12 = peg$parseselectOption();\n if (s12 !== peg$FAILED) {\n while (s12 !== peg$FAILED) {\n s11.push(s12);\n s12 = peg$parseselectOption();\n }\n }\n else {\n s11 = peg$FAILED;\n }\n if (s11 !== peg$FAILED) {\n s12 = peg$parse_();\n if (s12 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s13 = peg$c8;\n peg$currPos++;\n }\n else {\n s13 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s13 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c55(s3, s11);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsepluralRuleSelectValue() {\n var s0, s1, s2, s3;\n s0 = peg$currPos;\n s1 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 61) {\n s2 = peg$c56;\n peg$currPos++;\n }\n else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c57);\n }\n }\n if (s2 !== peg$FAILED) {\n s3 = peg$parsenumber();\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n if (s0 === peg$FAILED) {\n s0 = peg$parseargName();\n }\n return s0;\n }\n function peg$parseselectOption() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parseargName();\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 123) {\n s4 = peg$c6;\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = peg$currPos;\n s5 = peg$c58(s2);\n if (s5) {\n s5 = undefined;\n }\n else {\n s5 = peg$FAILED;\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parsemessage();\n if (s6 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s7 = peg$c8;\n peg$currPos++;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s7 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c59(s2, s6);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsepluralOption() {\n var s0, s1, s2, s3, s4, s5, s6, s7;\n s0 = peg$currPos;\n s1 = peg$parse_();\n if (s1 !== peg$FAILED) {\n s2 = peg$parsepluralRuleSelectValue();\n if (s2 !== peg$FAILED) {\n s3 = peg$parse_();\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 123) {\n s4 = peg$c6;\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c7);\n }\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = peg$currPos;\n s5 = peg$c60(s2);\n if (s5) {\n s5 = undefined;\n }\n else {\n s5 = peg$FAILED;\n }\n if (s5 !== peg$FAILED) {\n s6 = peg$parsemessage();\n if (s6 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 125) {\n s7 = peg$c8;\n peg$currPos++;\n }\n else {\n s7 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c9);\n }\n }\n if (s7 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c61(s2, s6);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parsewhiteSpace() {\n var s0, s1;\n peg$silentFails++;\n if (peg$c63.test(input.charAt(peg$currPos))) {\n s0 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c64);\n }\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c62);\n }\n }\n return s0;\n }\n function peg$parsepatternSyntax() {\n var s0, s1;\n peg$silentFails++;\n if (peg$c66.test(input.charAt(peg$currPos))) {\n s0 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c67);\n }\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c65);\n }\n }\n return s0;\n }\n function peg$parse_() {\n var s0, s1, s2;\n peg$silentFails++;\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$parsewhiteSpace();\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$parsewhiteSpace();\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c68);\n }\n }\n return s0;\n }\n function peg$parsenumber() {\n var s0, s1, s2;\n peg$silentFails++;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 45) {\n s1 = peg$c70;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c71);\n }\n }\n if (s1 === peg$FAILED) {\n s1 = null;\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseargNumber();\n if (s2 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c72(s1, s2);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c69);\n }\n }\n return s0;\n }\n function peg$parseapostrophe() {\n var s0, s1;\n peg$silentFails++;\n if (input.charCodeAt(peg$currPos) === 39) {\n s0 = peg$c32;\n peg$currPos++;\n }\n else {\n s0 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c33);\n }\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c73);\n }\n }\n return s0;\n }\n function peg$parsedoubleApostrophes() {\n var s0, s1;\n peg$silentFails++;\n s0 = peg$currPos;\n if (input.substr(peg$currPos, 2) === peg$c75) {\n s1 = peg$c75;\n peg$currPos += 2;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c76);\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c77();\n }\n s0 = s1;\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c74);\n }\n }\n return s0;\n }\n function peg$parsequotedString() {\n var s0, s1, s2, s3, s4, s5;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 39) {\n s1 = peg$c32;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c33);\n }\n }\n if (s1 !== peg$FAILED) {\n s2 = peg$parseescapedChar();\n if (s2 !== peg$FAILED) {\n s3 = peg$currPos;\n s4 = [];\n if (input.substr(peg$currPos, 2) === peg$c75) {\n s5 = peg$c75;\n peg$currPos += 2;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c76);\n }\n }\n if (s5 === peg$FAILED) {\n if (peg$c34.test(input.charAt(peg$currPos))) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c35);\n }\n }\n }\n while (s5 !== peg$FAILED) {\n s4.push(s5);\n if (input.substr(peg$currPos, 2) === peg$c75) {\n s5 = peg$c75;\n peg$currPos += 2;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c76);\n }\n }\n if (s5 === peg$FAILED) {\n if (peg$c34.test(input.charAt(peg$currPos))) {\n s5 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s5 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c35);\n }\n }\n }\n }\n if (s4 !== peg$FAILED) {\n s3 = input.substring(s3, peg$currPos);\n }\n else {\n s3 = s4;\n }\n if (s3 !== peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 39) {\n s4 = peg$c32;\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c33);\n }\n }\n if (s4 === peg$FAILED) {\n s4 = null;\n }\n if (s4 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c78(s2, s3);\n s0 = s1;\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s0;\n s0 = peg$FAILED;\n }\n return s0;\n }\n function peg$parseunquotedString() {\n var s0, s1, s2, s3;\n s0 = peg$currPos;\n s1 = peg$currPos;\n if (input.length > peg$currPos) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = peg$currPos;\n s3 = peg$c79(s2);\n if (s3) {\n s3 = undefined;\n }\n else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 === peg$FAILED) {\n if (input.charCodeAt(peg$currPos) === 10) {\n s1 = peg$c80;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c81);\n }\n }\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n return s0;\n }\n function peg$parseescapedChar() {\n var s0, s1, s2, s3;\n s0 = peg$currPos;\n s1 = peg$currPos;\n if (input.length > peg$currPos) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s2 !== peg$FAILED) {\n peg$savedPos = peg$currPos;\n s3 = peg$c82(s2);\n if (s3) {\n s3 = undefined;\n }\n else {\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n return s0;\n }\n function peg$parseargNameOrNumber() {\n var s0, s1;\n peg$silentFails++;\n s0 = peg$currPos;\n s1 = peg$parseargNumber();\n if (s1 === peg$FAILED) {\n s1 = peg$parseargName();\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c83);\n }\n }\n return s0;\n }\n function peg$parseargNumber() {\n var s0, s1, s2, s3, s4;\n peg$silentFails++;\n s0 = peg$currPos;\n if (input.charCodeAt(peg$currPos) === 48) {\n s1 = peg$c85;\n peg$currPos++;\n }\n else {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c86);\n }\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c87();\n }\n s0 = s1;\n if (s0 === peg$FAILED) {\n s0 = peg$currPos;\n s1 = peg$currPos;\n if (peg$c88.test(input.charAt(peg$currPos))) {\n s2 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s2 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c89);\n }\n }\n if (s2 !== peg$FAILED) {\n s3 = [];\n if (peg$c90.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c91);\n }\n }\n while (s4 !== peg$FAILED) {\n s3.push(s4);\n if (peg$c90.test(input.charAt(peg$currPos))) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c91);\n }\n }\n }\n if (s3 !== peg$FAILED) {\n s2 = [s2, s3];\n s1 = s2;\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s1;\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n peg$savedPos = s0;\n s1 = peg$c92(s1);\n }\n s0 = s1;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c84);\n }\n }\n return s0;\n }\n function peg$parseargName() {\n var s0, s1, s2, s3, s4;\n peg$silentFails++;\n s0 = peg$currPos;\n s1 = [];\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$parsewhiteSpace();\n if (s4 === peg$FAILED) {\n s4 = peg$parsepatternSyntax();\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = undefined;\n }\n else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n if (s2 !== peg$FAILED) {\n while (s2 !== peg$FAILED) {\n s1.push(s2);\n s2 = peg$currPos;\n s3 = peg$currPos;\n peg$silentFails++;\n s4 = peg$parsewhiteSpace();\n if (s4 === peg$FAILED) {\n s4 = peg$parsepatternSyntax();\n }\n peg$silentFails--;\n if (s4 === peg$FAILED) {\n s3 = undefined;\n }\n else {\n peg$currPos = s3;\n s3 = peg$FAILED;\n }\n if (s3 !== peg$FAILED) {\n if (input.length > peg$currPos) {\n s4 = input.charAt(peg$currPos);\n peg$currPos++;\n }\n else {\n s4 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c14);\n }\n }\n if (s4 !== peg$FAILED) {\n s3 = [s3, s4];\n s2 = s3;\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n else {\n peg$currPos = s2;\n s2 = peg$FAILED;\n }\n }\n }\n else {\n s1 = peg$FAILED;\n }\n if (s1 !== peg$FAILED) {\n s0 = input.substring(s0, peg$currPos);\n }\n else {\n s0 = s1;\n }\n peg$silentFails--;\n if (s0 === peg$FAILED) {\n s1 = peg$FAILED;\n if (peg$silentFails === 0) {\n peg$fail(peg$c93);\n }\n }\n return s0;\n }\n var messageCtx = ['root'];\n function isNestedMessageText() {\n return messageCtx.length > 1;\n }\n function isInPluralOption() {\n return messageCtx[messageCtx.length - 1] === 'plural';\n }\n function insertLocation() {\n return options && options.captureLocation ? {\n location: location()\n } : {};\n }\n peg$result = peg$startRuleFunction();\n if (peg$result !== peg$FAILED && peg$currPos === input.length) {\n return peg$result;\n }\n else {\n if (peg$result !== peg$FAILED && peg$currPos < input.length) {\n peg$fail(peg$endExpectation());\n }\n throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length\n ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)\n : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));\n }\n}\nexport var pegParse = peg$parse;\n","var __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { isPluralElement, isLiteralElement, isSelectElement, } from './types';\nimport { pegParse } from './parser';\nvar PLURAL_HASHTAG_REGEX = /(^|[^\\\\])#/g;\n/**\n * Whether to convert `#` in plural rule options\n * to `{var, number}`\n * @param el AST Element\n * @param pluralStack current plural stack\n */\nexport function normalizeHashtagInPlural(els) {\n els.forEach(function (el) {\n // If we're encountering a plural el\n if (!isPluralElement(el) && !isSelectElement(el)) {\n return;\n }\n // Go down the options and search for # in any literal element\n Object.keys(el.options).forEach(function (id) {\n var _a;\n var opt = el.options[id];\n // If we got a match, we have to split this\n // and inject a NumberElement in the middle\n var matchingLiteralElIndex = -1;\n var literalEl = undefined;\n for (var i = 0; i < opt.value.length; i++) {\n var el_1 = opt.value[i];\n if (isLiteralElement(el_1) && PLURAL_HASHTAG_REGEX.test(el_1.value)) {\n matchingLiteralElIndex = i;\n literalEl = el_1;\n break;\n }\n }\n if (literalEl) {\n var newValue = literalEl.value.replace(PLURAL_HASHTAG_REGEX, \"$1{\" + el.value + \", number}\");\n var newEls = pegParse(newValue);\n (_a = opt.value).splice.apply(_a, __spreadArrays([matchingLiteralElIndex, 1], newEls));\n }\n normalizeHashtagInPlural(opt.value);\n });\n });\n}\n","import { pegParse } from './parser';\nimport { normalizeHashtagInPlural } from './normalize';\nexport * from './types';\nexport * from './parser';\nexport * from './skeleton';\nexport function parse(input, opts) {\n var els = pegParse(input, opts);\n if (!opts || opts.normalizeHashtagInPlural !== false) {\n normalizeHashtagInPlural(els);\n }\n return els;\n}\n","/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\n// -- Utilities ----------------------------------------------------------------\nfunction getCacheId(inputs) {\n return JSON.stringify(inputs.map(function (input) {\n return input && typeof input === 'object' ? orderedProps(input) : input;\n }));\n}\nfunction orderedProps(obj) {\n return Object.keys(obj)\n .sort()\n .map(function (k) {\n var _a;\n return (_a = {}, _a[k] = obj[k], _a);\n });\n}\nvar memoizeFormatConstructor = function (FormatConstructor, cache) {\n if (cache === void 0) { cache = {}; }\n return function () {\n var _a;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var cacheId = getCacheId(args);\n var format = cacheId && cache[cacheId];\n if (!format) {\n format = new ((_a = FormatConstructor).bind.apply(_a, __spreadArrays([void 0], args)))();\n if (cacheId) {\n cache[cacheId] = format;\n }\n }\n return format;\n };\n};\nexport default memoizeFormatConstructor;\n","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\n/**\n * https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * Credit: https://github.com/caridy/intl-datetimeformat-pattern/blob/master/index.js\n * with some tweaks\n */\nvar DATE_TIME_REGEX = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;\n/**\n * Parse Date time skeleton into Intl.DateTimeFormatOptions\n * Ref: https://unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * @public\n * @param skeleton skeleton string\n */\nexport function parseDateTimeSkeleton(skeleton) {\n var result = {};\n skeleton.replace(DATE_TIME_REGEX, function (match) {\n var len = match.length;\n switch (match[0]) {\n // Era\n case 'G':\n result.era = len === 4 ? 'long' : len === 5 ? 'narrow' : 'short';\n break;\n // Year\n case 'y':\n result.year = len === 2 ? '2-digit' : 'numeric';\n break;\n case 'Y':\n case 'u':\n case 'U':\n case 'r':\n throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');\n // Quarter\n case 'q':\n case 'Q':\n throw new RangeError('`q/Q` (quarter) patterns are not supported');\n // Month\n case 'M':\n case 'L':\n result.month = ['numeric', '2-digit', 'short', 'long', 'narrow'][len - 1];\n break;\n // Week\n case 'w':\n case 'W':\n throw new RangeError('`w/W` (week) patterns are not supported');\n case 'd':\n result.day = ['numeric', '2-digit'][len - 1];\n break;\n case 'D':\n case 'F':\n case 'g':\n throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');\n // Weekday\n case 'E':\n result.weekday = len === 4 ? 'short' : len === 5 ? 'narrow' : 'short';\n break;\n case 'e':\n if (len < 4) {\n throw new RangeError('`e..eee` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n case 'c':\n if (len < 4) {\n throw new RangeError('`c..ccc` (weekday) patterns are not supported');\n }\n result.weekday = ['short', 'long', 'narrow', 'short'][len - 4];\n break;\n // Period\n case 'a': // AM, PM\n result.hour12 = true;\n break;\n case 'b': // am, pm, noon, midnight\n case 'B': // flexible day periods\n throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');\n // Hour\n case 'h':\n result.hourCycle = 'h12';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'H':\n result.hourCycle = 'h23';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'K':\n result.hourCycle = 'h11';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'k':\n result.hourCycle = 'h24';\n result.hour = ['numeric', '2-digit'][len - 1];\n break;\n case 'j':\n case 'J':\n case 'C':\n throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');\n // Minute\n case 'm':\n result.minute = ['numeric', '2-digit'][len - 1];\n break;\n // Second\n case 's':\n result.second = ['numeric', '2-digit'][len - 1];\n break;\n case 'S':\n case 'A':\n throw new RangeError('`S/A` (second) pattenrs are not supported, use `s` instead');\n // Zone\n case 'z': // 1..3, 4: specific non-location format\n result.timeZoneName = len < 4 ? 'short' : 'long';\n break;\n case 'Z': // 1..3, 4, 5: The ISO8601 varios formats\n case 'O': // 1, 4: miliseconds in day short, long\n case 'v': // 1, 4: generic non-location format\n case 'V': // 1, 2, 3, 4: time zone ID or city\n case 'X': // 1, 2, 3, 4: The ISO8601 varios formats\n case 'x': // 1, 2, 3, 4: The ISO8601 varios formats\n throw new RangeError('`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead');\n }\n return '';\n });\n return result;\n}\nfunction icuUnitToEcma(unit) {\n return unit.replace(/^(.*?)-/, '');\n}\nvar FRACTION_PRECISION_REGEX = /^\\.(?:(0+)(\\+|#+)?)?$/g;\nvar SIGNIFICANT_PRECISION_REGEX = /^(@+)?(\\+|#+)?$/g;\nfunction parseSignificantPrecision(str) {\n var result = {};\n str.replace(SIGNIFICANT_PRECISION_REGEX, function (_, g1, g2) {\n // @@@ case\n if (typeof g2 !== 'string') {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits = g1.length;\n }\n // @@@+ case\n else if (g2 === '+') {\n result.minimumSignificantDigits = g1.length;\n }\n // .### case\n else if (g1[0] === '#') {\n result.maximumSignificantDigits = g1.length;\n }\n // .@@## or .@@@ case\n else {\n result.minimumSignificantDigits = g1.length;\n result.maximumSignificantDigits =\n g1.length + (typeof g2 === 'string' ? g2.length : 0);\n }\n return '';\n });\n return result;\n}\nfunction parseSign(str) {\n switch (str) {\n case 'sign-auto':\n return {\n signDisplay: 'auto',\n };\n case 'sign-accounting':\n return {\n currencySign: 'accounting',\n };\n case 'sign-always':\n return {\n signDisplay: 'always',\n };\n case 'sign-accounting-always':\n return {\n signDisplay: 'always',\n currencySign: 'accounting',\n };\n case 'sign-except-zero':\n return {\n signDisplay: 'exceptZero',\n };\n case 'sign-accounting-except-zero':\n return {\n signDisplay: 'exceptZero',\n currencySign: 'accounting',\n };\n case 'sign-never':\n return {\n signDisplay: 'never',\n };\n }\n}\nfunction parseNotationOptions(opt) {\n var result = {};\n var signOpts = parseSign(opt);\n if (signOpts) {\n return signOpts;\n }\n return result;\n}\n/**\n * https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#skeleton-stems-and-options\n */\nexport function convertNumberSkeletonToNumberFormatOptions(tokens) {\n var result = {};\n for (var _i = 0, tokens_1 = tokens; _i < tokens_1.length; _i++) {\n var token = tokens_1[_i];\n switch (token.stem) {\n case 'percent':\n result.style = 'percent';\n continue;\n case 'currency':\n result.style = 'currency';\n result.currency = token.options[0];\n continue;\n case 'group-off':\n result.useGrouping = false;\n continue;\n case 'precision-integer':\n result.maximumFractionDigits = 0;\n continue;\n case 'measure-unit':\n result.style = 'unit';\n result.unit = icuUnitToEcma(token.options[0]);\n continue;\n case 'compact-short':\n result.notation = 'compact';\n result.compactDisplay = 'short';\n continue;\n case 'compact-long':\n result.notation = 'compact';\n result.compactDisplay = 'long';\n continue;\n case 'scientific':\n result = __assign(__assign(__assign({}, result), { notation: 'scientific' }), token.options.reduce(function (all, opt) { return (__assign(__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'engineering':\n result = __assign(__assign(__assign({}, result), { notation: 'engineering' }), token.options.reduce(function (all, opt) { return (__assign(__assign({}, all), parseNotationOptions(opt))); }, {}));\n continue;\n case 'notation-simple':\n result.notation = 'standard';\n continue;\n // https://github.com/unicode-org/icu/blob/master/icu4c/source/i18n/unicode/unumberformatter.h\n case 'unit-width-narrow':\n result.currencyDisplay = 'narrowSymbol';\n result.unitDisplay = 'narrow';\n continue;\n case 'unit-width-short':\n result.currencyDisplay = 'code';\n result.unitDisplay = 'short';\n continue;\n case 'unit-width-full-name':\n result.currencyDisplay = 'name';\n result.unitDisplay = 'long';\n continue;\n case 'unit-width-iso-code':\n result.currencyDisplay = 'symbol';\n continue;\n }\n // Precision\n // https://github.com/unicode-org/icu/blob/master/docs/userguide/format_parse/numbers/skeletons.md#fraction-precision\n if (FRACTION_PRECISION_REGEX.test(token.stem)) {\n if (token.options.length > 1) {\n throw new RangeError('Fraction-precision stems only accept a single optional option');\n }\n token.stem.replace(FRACTION_PRECISION_REGEX, function (match, g1, g2) {\n // precision-integer case\n if (match === '.') {\n result.maximumFractionDigits = 0;\n }\n // .000+ case\n else if (g2 === '+') {\n result.minimumFractionDigits = g2.length;\n }\n // .### case\n else if (g1[0] === '#') {\n result.maximumFractionDigits = g1.length;\n }\n // .00## or .000 case\n else {\n result.minimumFractionDigits = g1.length;\n result.maximumFractionDigits =\n g1.length + (typeof g2 === 'string' ? g2.length : 0);\n }\n return '';\n });\n if (token.options.length) {\n result = __assign(__assign({}, result), parseSignificantPrecision(token.options[0]));\n }\n continue;\n }\n if (SIGNIFICANT_PRECISION_REGEX.test(token.stem)) {\n result = __assign(__assign({}, result), parseSignificantPrecision(token.stem));\n continue;\n }\n var signOpts = parseSign(token.stem);\n if (signOpts) {\n result = __assign(__assign({}, result), signOpts);\n }\n }\n return result;\n}\n","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __spreadArrays = (this && this.__spreadArrays) || function () {\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\n r[k] = a[j];\n return r;\n};\nimport { convertNumberSkeletonToNumberFormatOptions, isArgumentElement, isDateElement, isDateTimeSkeleton, isLiteralElement, isNumberElement, isNumberSkeleton, isPluralElement, isPoundElement, isSelectElement, isTimeElement, parseDateTimeSkeleton, } from 'intl-messageformat-parser';\nvar FormatError = /** @class */ (function (_super) {\n __extends(FormatError, _super);\n function FormatError(msg, variableId) {\n var _this = _super.call(this, msg) || this;\n _this.variableId = variableId;\n return _this;\n }\n return FormatError;\n}(Error));\nfunction mergeLiteral(parts) {\n if (parts.length < 2) {\n return parts;\n }\n return parts.reduce(function (all, part) {\n var lastPart = all[all.length - 1];\n if (!lastPart ||\n lastPart.type !== 0 /* literal */ ||\n part.type !== 0 /* literal */) {\n all.push(part);\n }\n else {\n lastPart.value += part.value;\n }\n return all;\n }, []);\n}\n// TODO(skeleton): add skeleton support\nexport function formatToParts(els, locales, formatters, formats, values, currentPluralValue, \n// For debugging\noriginalMessage) {\n // Hot path for straight simple msg translations\n if (els.length === 1 && isLiteralElement(els[0])) {\n return [\n {\n type: 0 /* literal */,\n value: els[0].value,\n },\n ];\n }\n var result = [];\n for (var _i = 0, els_1 = els; _i < els_1.length; _i++) {\n var el = els_1[_i];\n // Exit early for string parts.\n if (isLiteralElement(el)) {\n result.push({\n type: 0 /* literal */,\n value: el.value,\n });\n continue;\n }\n // TODO: should this part be literal type?\n // Replace `#` in plural rules with the actual numeric value.\n if (isPoundElement(el)) {\n if (typeof currentPluralValue === 'number') {\n result.push({\n type: 0 /* literal */,\n value: formatters.getNumberFormat(locales).format(currentPluralValue),\n });\n }\n continue;\n }\n var varName = el.value;\n // Enforce that all required values are provided by the caller.\n if (!(values && varName in values)) {\n throw new FormatError(\"The intl string context variable \\\"\" + varName + \"\\\" was not provided to the string \\\"\" + originalMessage + \"\\\"\");\n }\n var value = values[varName];\n if (isArgumentElement(el)) {\n if (!value || typeof value === 'string' || typeof value === 'number') {\n value =\n typeof value === 'string' || typeof value === 'number'\n ? String(value)\n : '';\n }\n result.push({\n type: 1 /* argument */,\n value: value,\n });\n continue;\n }\n // Recursively format plural and select parts' option — which can be a\n // nested pattern structure. The choosing of the option to use is\n // abstracted-by and delegated-to the part helper object.\n if (isDateElement(el)) {\n var style = typeof el.style === 'string' ? formats.date[el.style] : undefined;\n result.push({\n type: 0 /* literal */,\n value: formatters\n .getDateTimeFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if (isTimeElement(el)) {\n var style = typeof el.style === 'string'\n ? formats.time[el.style]\n : isDateTimeSkeleton(el.style)\n ? parseDateTimeSkeleton(el.style.pattern)\n : undefined;\n result.push({\n type: 0 /* literal */,\n value: formatters\n .getDateTimeFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if (isNumberElement(el)) {\n var style = typeof el.style === 'string'\n ? formats.number[el.style]\n : isNumberSkeleton(el.style)\n ? convertNumberSkeletonToNumberFormatOptions(el.style.tokens)\n : undefined;\n result.push({\n type: 0 /* literal */,\n value: formatters\n .getNumberFormat(locales, style)\n .format(value),\n });\n continue;\n }\n if (isSelectElement(el)) {\n var opt = el.options[value] || el.options.other;\n if (!opt) {\n throw new RangeError(\"Invalid values for \\\"\" + el.value + \"\\\": \\\"\" + value + \"\\\". Options are \\\"\" + Object.keys(el.options).join('\", \"') + \"\\\"\");\n }\n result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values));\n continue;\n }\n if (isPluralElement(el)) {\n var opt = el.options[\"=\" + value];\n if (!opt) {\n if (!Intl.PluralRules) {\n throw new FormatError(\"Intl.PluralRules is not available in this environment.\\nTry polyfilling it using \\\"@formatjs/intl-pluralrules\\\"\\n\");\n }\n var rule = formatters\n .getPluralRules(locales, { type: el.pluralType })\n .select(value - (el.offset || 0));\n opt = el.options[rule] || el.options.other;\n }\n if (!opt) {\n throw new RangeError(\"Invalid values for \\\"\" + el.value + \"\\\": \\\"\" + value + \"\\\". Options are \\\"\" + Object.keys(el.options).join('\", \"') + \"\\\"\");\n }\n result.push.apply(result, formatToParts(opt.value, locales, formatters, formats, values, value - (el.offset || 0)));\n continue;\n }\n }\n return mergeLiteral(result);\n}\nexport function formatToString(els, locales, formatters, formats, values, \n// For debugging\noriginalMessage) {\n var parts = formatToParts(els, locales, formatters, formats, values, undefined, originalMessage);\n // Hot path for straight simple msg translations\n if (parts.length === 1) {\n return parts[0].value;\n }\n return parts.reduce(function (all, part) { return (all += part.value); }, '');\n}\n// Singleton\nvar domParser;\nvar TOKEN_DELIMITER = '@@';\nvar TOKEN_REGEX = /@@(\\d+_\\d+)@@/g;\nvar counter = 0;\nfunction generateId() {\n return Date.now() + \"_\" + ++counter;\n}\nfunction restoreRichPlaceholderMessage(text, objectParts) {\n return text\n .split(TOKEN_REGEX)\n .filter(Boolean)\n .map(function (c) { return (objectParts[c] != null ? objectParts[c] : c); })\n .reduce(function (all, c) {\n if (!all.length) {\n all.push(c);\n }\n else if (typeof c === 'string' &&\n typeof all[all.length - 1] === 'string') {\n all[all.length - 1] += c;\n }\n else {\n all.push(c);\n }\n return all;\n }, []);\n}\n/**\n * Not exhaustive, just for sanity check\n */\nvar SIMPLE_XML_REGEX = /(<([0-9a-zA-Z-_]*?)>(.*?)<\\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\\/>)/;\nvar TEMPLATE_ID = Date.now() + '@@';\nvar VOID_ELEMENTS = [\n 'area',\n 'base',\n 'br',\n 'col',\n 'embed',\n 'hr',\n 'img',\n 'input',\n 'link',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr',\n];\nfunction formatHTMLElement(el, objectParts, values) {\n var tagName = el.tagName;\n var outerHTML = el.outerHTML, textContent = el.textContent, childNodes = el.childNodes;\n // Regular text\n if (!tagName) {\n return restoreRichPlaceholderMessage(textContent || '', objectParts);\n }\n tagName = tagName.toLowerCase();\n var isVoidElement = ~VOID_ELEMENTS.indexOf(tagName);\n var formatFnOrValue = values[tagName];\n if (formatFnOrValue && isVoidElement) {\n throw new FormatError(tagName + \" is a self-closing tag and can not be used, please use another tag name.\");\n }\n if (!childNodes.length) {\n return [outerHTML];\n }\n var chunks = Array.prototype.slice.call(childNodes).reduce(function (all, child) {\n return all.concat(formatHTMLElement(child, objectParts, values));\n }, []);\n // Legacy HTML\n if (!formatFnOrValue) {\n return __spreadArrays([\"<\" + tagName + \">\"], chunks, [\"\"]);\n }\n // HTML Tag replacement\n if (typeof formatFnOrValue === 'function') {\n return [formatFnOrValue.apply(void 0, chunks)];\n }\n return [formatFnOrValue];\n}\nexport function formatHTMLMessage(els, locales, formatters, formats, values, \n// For debugging\noriginalMessage) {\n var parts = formatToParts(els, locales, formatters, formats, values, undefined, originalMessage);\n var objectParts = {};\n var formattedMessage = parts.reduce(function (all, part) {\n if (part.type === 0 /* literal */) {\n return (all += part.value);\n }\n var id = generateId();\n objectParts[id] = part.value;\n return (all += \"\" + TOKEN_DELIMITER + id + TOKEN_DELIMITER);\n }, '');\n // Not designed to filter out aggressively\n if (!SIMPLE_XML_REGEX.test(formattedMessage)) {\n return restoreRichPlaceholderMessage(formattedMessage, objectParts);\n }\n if (!values) {\n throw new FormatError('Message has placeholders but no values was given');\n }\n if (typeof DOMParser === 'undefined') {\n throw new FormatError('Cannot format XML message without DOMParser');\n }\n if (!domParser) {\n domParser = new DOMParser();\n }\n var content = domParser\n .parseFromString(\"\" + formattedMessage + \"\", 'text/html')\n .getElementById(TEMPLATE_ID);\n if (!content) {\n throw new FormatError(\"Malformed HTML message \" + formattedMessage);\n }\n var tagsToFormat = Object.keys(values).filter(function (varName) { return !!content.getElementsByTagName(varName).length; });\n // No tags to format\n if (!tagsToFormat.length) {\n return restoreRichPlaceholderMessage(formattedMessage, objectParts);\n }\n var caseSensitiveTags = tagsToFormat.filter(function (tagName) { return tagName !== tagName.toLowerCase(); });\n if (caseSensitiveTags.length) {\n throw new FormatError(\"HTML tag must be lowercased but the following tags are not: \" + caseSensitiveTags.join(', '));\n }\n // We're doing this since top node is `` which does not have a formatter\n return Array.prototype.slice\n .call(content.childNodes)\n .reduce(function (all, child) { return all.concat(formatHTMLElement(child, objectParts, values)); }, []);\n}\n","/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { parse } from 'intl-messageformat-parser';\nimport memoizeIntlConstructor from 'intl-format-cache';\nimport { formatToString, formatToParts, formatHTMLMessage, } from './formatters';\n// -- MessageFormat --------------------------------------------------------\nfunction mergeConfig(c1, c2) {\n if (!c2) {\n return c1;\n }\n return __assign(__assign(__assign({}, (c1 || {})), (c2 || {})), Object.keys(c1).reduce(function (all, k) {\n all[k] = __assign(__assign({}, c1[k]), (c2[k] || {}));\n return all;\n }, {}));\n}\nfunction mergeConfigs(defaultConfig, configs) {\n if (!configs) {\n return defaultConfig;\n }\n return Object.keys(defaultConfig).reduce(function (all, k) {\n all[k] = mergeConfig(defaultConfig[k], configs[k]);\n return all;\n }, __assign({}, defaultConfig));\n}\nexport function createDefaultFormatters(cache) {\n if (cache === void 0) { cache = {\n number: {},\n dateTime: {},\n pluralRules: {},\n }; }\n return {\n getNumberFormat: memoizeIntlConstructor(Intl.NumberFormat, cache.number),\n getDateTimeFormat: memoizeIntlConstructor(Intl.DateTimeFormat, cache.dateTime),\n getPluralRules: memoizeIntlConstructor(Intl.PluralRules, cache.pluralRules),\n };\n}\nvar IntlMessageFormat = /** @class */ (function () {\n function IntlMessageFormat(message, locales, overrideFormats, opts) {\n var _this = this;\n if (locales === void 0) { locales = IntlMessageFormat.defaultLocale; }\n this.formatterCache = {\n number: {},\n dateTime: {},\n pluralRules: {},\n };\n this.format = function (values) {\n return formatToString(_this.ast, _this.locales, _this.formatters, _this.formats, values, _this.message);\n };\n this.formatToParts = function (values) {\n return formatToParts(_this.ast, _this.locales, _this.formatters, _this.formats, values, undefined, _this.message);\n };\n this.formatHTMLMessage = function (values) {\n return formatHTMLMessage(_this.ast, _this.locales, _this.formatters, _this.formats, values, _this.message);\n };\n this.resolvedOptions = function () { return ({\n locale: Intl.NumberFormat.supportedLocalesOf(_this.locales)[0],\n }); };\n this.getAst = function () { return _this.ast; };\n if (typeof message === 'string') {\n this.message = message;\n if (!IntlMessageFormat.__parse) {\n throw new TypeError('IntlMessageFormat.__parse must be set to process `message` of type `string`');\n }\n // Parse string messages into an AST.\n this.ast = IntlMessageFormat.__parse(message, {\n normalizeHashtagInPlural: false,\n });\n }\n else {\n this.ast = message;\n }\n if (!Array.isArray(this.ast)) {\n throw new TypeError('A message must be provided as a String or AST.');\n }\n // Creates a new object with the specified `formats` merged with the default\n // formats.\n this.formats = mergeConfigs(IntlMessageFormat.formats, overrideFormats);\n // Defined first because it's used to build the format pattern.\n this.locales = locales;\n this.formatters =\n (opts && opts.formatters) || createDefaultFormatters(this.formatterCache);\n }\n IntlMessageFormat.defaultLocale = new Intl.NumberFormat().resolvedOptions().locale;\n IntlMessageFormat.__parse = parse;\n // Default format options used as the prototype of the `formats` provided to the\n // constructor. These are used when constructing the internal Intl.NumberFormat\n // and Intl.DateTimeFormat instances.\n IntlMessageFormat.formats = {\n number: {\n currency: {\n style: 'currency',\n },\n percent: {\n style: 'percent',\n },\n },\n date: {\n short: {\n month: 'numeric',\n day: 'numeric',\n year: '2-digit',\n },\n medium: {\n month: 'short',\n day: 'numeric',\n year: 'numeric',\n },\n long: {\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n },\n full: {\n weekday: 'long',\n month: 'long',\n day: 'numeric',\n year: 'numeric',\n },\n },\n time: {\n short: {\n hour: 'numeric',\n minute: 'numeric',\n },\n medium: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n },\n long: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n timeZoneName: 'short',\n },\n full: {\n hour: 'numeric',\n minute: 'numeric',\n second: 'numeric',\n timeZoneName: 'short',\n },\n },\n };\n return IntlMessageFormat;\n}());\nexport { IntlMessageFormat };\nexport default IntlMessageFormat;\n","/*\nCopyright (c) 2014, Yahoo! Inc. All rights reserved.\nCopyrights licensed under the New BSD License.\nSee the accompanying LICENSE file for terms.\n*/\nimport IntlMessageFormat from './core';\nexport * from './formatters';\nexport * from './core';\nexport default IntlMessageFormat;\n","export function invariant(condition, message, Err) {\n if (Err === void 0) { Err = Error; }\n if (!condition) {\n throw new Err(message);\n }\n}\n//# sourceMappingURL=invariant.js.map","/*\nHTML escaping is the same as React's\n(on purpose.) Therefore, it has the following Copyright and Licensing:\n\nCopyright 2013-2014, Facebook, Inc.\nAll rights reserved.\n\nThis source code is licensed under the BSD-style license found in the LICENSE\nfile in the root directory of React's source tree.\n*/\nimport * as React from 'react';\nimport IntlMessageFormat from 'intl-messageformat';\nimport memoizeIntlConstructor from 'intl-format-cache';\nimport { invariant } from '@formatjs/intl-utils';\nconst ESCAPED_CHARS = {\n 38: '&',\n 62: '>',\n 60: '<',\n 34: '"',\n 39: ''',\n};\nconst UNSAFE_CHARS_REGEX = /[&><\"']/g;\nexport function escape(str) {\n return ('' + str).replace(UNSAFE_CHARS_REGEX, match => ESCAPED_CHARS[match.charCodeAt(0)]);\n}\nexport function filterProps(props, whitelist, defaults = {}) {\n return whitelist.reduce((filtered, name) => {\n if (name in props) {\n filtered[name] = props[name];\n }\n else if (name in defaults) {\n filtered[name] = defaults[name];\n }\n return filtered;\n }, {});\n}\nexport function invariantIntlContext(intl) {\n invariant(intl, '[React Intl] Could not find required `intl` object. ' +\n ' needs to exist in the component ancestry.');\n}\nexport function createError(message, exception) {\n const eMsg = exception ? `\\n${exception.stack}` : '';\n return `[React Intl] ${message}${eMsg}`;\n}\nexport function defaultErrorHandler(error) {\n if (process.env.NODE_ENV !== 'production') {\n console.error(error);\n }\n}\nexport const DEFAULT_INTL_CONFIG = {\n formats: {},\n messages: {},\n timeZone: undefined,\n textComponent: React.Fragment,\n defaultLocale: 'en',\n defaultFormats: {},\n onError: defaultErrorHandler,\n};\nexport function createIntlCache() {\n return {\n dateTime: {},\n number: {},\n message: {},\n relativeTime: {},\n pluralRules: {},\n list: {},\n displayNames: {},\n };\n}\n/**\n * Create intl formatters and populate cache\n * @param cache explicit cache to prevent leaking memory\n */\nexport function createFormatters(cache = createIntlCache()) {\n const RelativeTimeFormat = Intl.RelativeTimeFormat;\n const ListFormat = Intl.ListFormat;\n const DisplayNames = Intl.DisplayNames;\n return {\n getDateTimeFormat: memoizeIntlConstructor(Intl.DateTimeFormat, cache.dateTime),\n getNumberFormat: memoizeIntlConstructor(Intl.NumberFormat, cache.number),\n getMessageFormat: memoizeIntlConstructor(IntlMessageFormat, cache.message),\n getRelativeTimeFormat: memoizeIntlConstructor(RelativeTimeFormat, cache.relativeTime),\n getPluralRules: memoizeIntlConstructor(Intl.PluralRules, cache.pluralRules),\n getListFormat: memoizeIntlConstructor(ListFormat, cache.list),\n getDisplayNames: memoizeIntlConstructor(DisplayNames, cache.displayNames),\n };\n}\nexport function getNamedFormat(formats, type, name, onError) {\n const formatType = formats && formats[type];\n let format;\n if (formatType) {\n format = formatType[name];\n }\n if (format) {\n return format;\n }\n onError(createError(`No ${type} format named: ${name}`));\n}\n","import { getNamedFormat, filterProps, createError } from '../utils';\nconst NUMBER_FORMAT_OPTIONS = [\n 'localeMatcher',\n 'style',\n 'currency',\n 'currencyDisplay',\n 'unit',\n 'unitDisplay',\n 'useGrouping',\n 'minimumIntegerDigits',\n 'minimumFractionDigits',\n 'maximumFractionDigits',\n 'minimumSignificantDigits',\n 'maximumSignificantDigits',\n // Unified NumberFormat (Stage 3 as of 10/22/19)\n 'compactDisplay',\n 'currencyDisplay',\n 'currencySign',\n 'notation',\n 'signDisplay',\n 'unit',\n 'unitDisplay',\n];\nexport function getFormatter({ locale, formats, onError, }, getNumberFormat, options = {}) {\n const { format } = options;\n const defaults = ((format &&\n getNamedFormat(formats, 'number', format, onError)) ||\n {});\n const filteredOptions = filterProps(options, NUMBER_FORMAT_OPTIONS, defaults);\n return getNumberFormat(locale, filteredOptions);\n}\nexport function formatNumber(config, getNumberFormat, value, options = {}) {\n try {\n return getFormatter(config, getNumberFormat, options).format(value);\n }\n catch (e) {\n config.onError(createError('Error formatting number.', e));\n }\n return String(value);\n}\nexport function formatNumberToParts(config, getNumberFormat, value, options = {}) {\n try {\n return getFormatter(config, getNumberFormat, options).formatToParts(value);\n }\n catch (e) {\n config.onError(createError('Error formatting number.', e));\n }\n return [];\n}\n","import { getNamedFormat, filterProps, createError } from '../utils';\nconst RELATIVE_TIME_FORMAT_OPTIONS = [\n 'numeric',\n 'style',\n];\nfunction getFormatter({ locale, formats, onError, }, getRelativeTimeFormat, options = {}) {\n const { format } = options;\n const defaults = (!!format && getNamedFormat(formats, 'relative', format, onError)) || {};\n const filteredOptions = filterProps(options, RELATIVE_TIME_FORMAT_OPTIONS, defaults);\n return getRelativeTimeFormat(locale, filteredOptions);\n}\nexport function formatRelativeTime(config, getRelativeTimeFormat, value, unit, options = {}) {\n if (!unit) {\n unit = 'second';\n }\n const RelativeTimeFormat = Intl.RelativeTimeFormat;\n if (!RelativeTimeFormat) {\n config.onError(createError(`Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-relativetimeformat\"\n`));\n }\n try {\n return getFormatter(config, getRelativeTimeFormat, options).format(value, unit);\n }\n catch (e) {\n config.onError(createError('Error formatting relative time.', e));\n }\n return String(value);\n}\n","/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\nimport { createError, filterProps, getNamedFormat } from '../utils';\nconst DATE_TIME_FORMAT_OPTIONS = [\n 'localeMatcher',\n 'formatMatcher',\n 'timeZone',\n 'hour12',\n 'weekday',\n 'era',\n 'year',\n 'month',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'timeZoneName',\n];\nexport function getFormatter({ locale, formats, onError, timeZone, }, type, getDateTimeFormat, options = {}) {\n const { format } = options;\n const defaults = Object.assign(Object.assign({}, (timeZone && { timeZone })), (format && getNamedFormat(formats, type, format, onError)));\n let filteredOptions = filterProps(options, DATE_TIME_FORMAT_OPTIONS, defaults);\n if (type === 'time' &&\n !filteredOptions.hour &&\n !filteredOptions.minute &&\n !filteredOptions.second) {\n // Add default formatting options if hour, minute, or second isn't defined.\n filteredOptions = Object.assign(Object.assign({}, filteredOptions), { hour: 'numeric', minute: 'numeric' });\n }\n return getDateTimeFormat(locale, filteredOptions);\n}\nexport function formatDate(config, getDateTimeFormat, value, options = {}) {\n const date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'date', getDateTimeFormat, options).format(date);\n }\n catch (e) {\n config.onError(createError('Error formatting date.', e));\n }\n return String(date);\n}\nexport function formatTime(config, getDateTimeFormat, value, options = {}) {\n const date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'time', getDateTimeFormat, options).format(date);\n }\n catch (e) {\n config.onError(createError('Error formatting time.', e));\n }\n return String(date);\n}\nexport function formatDateToParts(config, getDateTimeFormat, value, options = {}) {\n const date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'date', getDateTimeFormat, options).formatToParts(date);\n }\n catch (e) {\n config.onError(createError('Error formatting date.', e));\n }\n return [];\n}\nexport function formatTimeToParts(config, getDateTimeFormat, value, options = {}) {\n const date = typeof value === 'string' ? new Date(value || 0) : value;\n try {\n return getFormatter(config, 'time', getDateTimeFormat, options).formatToParts(date);\n }\n catch (e) {\n config.onError(createError('Error formatting time.', e));\n }\n return [];\n}\n","import { filterProps, createError } from '../utils';\nconst PLURAL_FORMAT_OPTIONS = [\n 'localeMatcher',\n 'type',\n];\nexport function formatPlural({ locale, onError }, getPluralRules, value, options = {}) {\n if (!Intl.PluralRules) {\n onError(createError(`Intl.PluralRules is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-pluralrules\"\n`));\n }\n const filteredOptions = filterProps(options, PLURAL_FORMAT_OPTIONS);\n try {\n return getPluralRules(locale, filteredOptions).select(value);\n }\n catch (e) {\n onError(createError('Error formatting plural.', e));\n }\n return 'other';\n}\n","/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\nimport * as React from 'react';\nimport { invariant } from '@formatjs/intl-utils';\nimport { createError, escape } from '../utils';\nimport IntlMessageFormat from 'intl-messageformat';\nfunction setTimeZoneInOptions(opts, timeZone) {\n return Object.keys(opts).reduce((all, k) => {\n all[k] = Object.assign({ timeZone }, opts[k]);\n return all;\n }, {});\n}\nfunction deepMergeOptions(opts1, opts2) {\n const keys = Object.keys(Object.assign(Object.assign({}, opts1), opts2));\n return keys.reduce((all, k) => {\n all[k] = Object.assign(Object.assign({}, (opts1[k] || {})), (opts2[k] || {}));\n return all;\n }, {});\n}\nfunction deepMergeFormatsAndSetTimeZone(f1, timeZone) {\n if (!timeZone) {\n return f1;\n }\n const mfFormats = IntlMessageFormat.formats;\n return Object.assign(Object.assign(Object.assign({}, mfFormats), f1), { date: deepMergeOptions(setTimeZoneInOptions(mfFormats.date, timeZone), setTimeZoneInOptions(f1.date || {}, timeZone)), time: deepMergeOptions(setTimeZoneInOptions(mfFormats.time, timeZone), setTimeZoneInOptions(f1.time || {}, timeZone)) });\n}\nexport const prepareIntlMessageFormatHtmlOutput = (chunks) => React.createElement(React.Fragment, null, ...chunks);\nexport function formatMessage({ locale, formats, messages, defaultLocale, defaultFormats, onError, timeZone, }, state, messageDescriptor = { id: '' }, values = {}) {\n const { id, defaultMessage } = messageDescriptor;\n // `id` is a required field of a Message Descriptor.\n invariant(!!id, '[React Intl] An `id` must be provided to format a message.');\n const message = messages && messages[String(id)];\n formats = deepMergeFormatsAndSetTimeZone(formats, timeZone);\n defaultFormats = deepMergeFormatsAndSetTimeZone(defaultFormats, timeZone);\n let formattedMessageParts = [];\n if (message) {\n try {\n const formatter = state.getMessageFormat(message, locale, formats, {\n formatters: state,\n });\n formattedMessageParts = formatter.formatHTMLMessage(values);\n }\n catch (e) {\n onError(createError(`Error formatting message: \"${id}\" for locale: \"${locale}\"` +\n (defaultMessage ? ', using default message as fallback.' : ''), e));\n }\n }\n else {\n // This prevents warnings from littering the console in development\n // when no `messages` are passed into the for the\n // default locale, and a default message is in the source.\n if (!defaultMessage ||\n (locale && locale.toLowerCase() !== defaultLocale.toLowerCase())) {\n onError(createError(`Missing message: \"${id}\" for locale: \"${locale}\"` +\n (defaultMessage ? ', using default message as fallback.' : '')));\n }\n }\n if (!formattedMessageParts.length && defaultMessage) {\n try {\n const formatter = state.getMessageFormat(defaultMessage, defaultLocale, defaultFormats);\n formattedMessageParts = formatter.formatHTMLMessage(values);\n }\n catch (e) {\n onError(createError(`Error formatting the default message for: \"${id}\"`, e));\n }\n }\n if (!formattedMessageParts.length) {\n onError(createError(`Cannot format message: \"${id}\", ` +\n `using message ${message || defaultMessage ? 'source' : 'id'} as fallback.`));\n if (typeof message === 'string') {\n return message || defaultMessage || String(id);\n }\n return defaultMessage || String(id);\n }\n if (formattedMessageParts.length === 1 &&\n typeof formattedMessageParts[0] === 'string') {\n return formattedMessageParts[0] || defaultMessage || String(id);\n }\n return prepareIntlMessageFormatHtmlOutput(formattedMessageParts);\n}\nexport function formatHTMLMessage(config, state, messageDescriptor = { id: '' }, rawValues = {}) {\n // Process all the values before they are used when formatting the ICU\n // Message string. Since the formatted message might be injected via\n // `innerHTML`, all String-based values need to be HTML-escaped.\n const escapedValues = Object.keys(rawValues).reduce((escaped, name) => {\n const value = rawValues[name];\n escaped[name] = typeof value === 'string' ? escape(value) : value;\n return escaped;\n }, {});\n return formatMessage(config, state, messageDescriptor, escapedValues);\n}\n","import { filterProps, createError } from '../utils';\nconst LIST_FORMAT_OPTIONS = [\n 'localeMatcher',\n 'type',\n 'style',\n];\nconst now = Date.now();\nfunction generateToken(i) {\n return `${now}_${i}_${now}`;\n}\nexport function formatList({ locale, onError }, getListFormat, values, options = {}) {\n const ListFormat = Intl.ListFormat;\n if (!ListFormat) {\n onError(createError(`Intl.ListFormat is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-listformat\"\n`));\n }\n const filteredOptions = filterProps(options, LIST_FORMAT_OPTIONS);\n try {\n const richValues = {};\n const serializedValues = values.map((v, i) => {\n if (typeof v === 'object') {\n const id = generateToken(i);\n richValues[id] = v;\n return id;\n }\n return String(v);\n });\n if (!Object.keys(richValues).length) {\n return getListFormat(locale, filteredOptions).format(serializedValues);\n }\n const parts = getListFormat(locale, filteredOptions).formatToParts(serializedValues);\n return parts.reduce((all, el) => {\n const val = el.value;\n if (richValues[val]) {\n all.push(richValues[val]);\n }\n else if (typeof all[all.length - 1] === 'string') {\n all[all.length - 1] += val;\n }\n else {\n all.push(val);\n }\n return all;\n }, []);\n }\n catch (e) {\n onError(createError('Error formatting list.', e));\n }\n return values;\n}\n","import { filterProps, createError } from '../utils';\nconst DISPLAY_NAMES_OPTONS = [\n 'localeMatcher',\n 'style',\n 'type',\n 'fallback',\n];\nexport function formatDisplayName({ locale, onError }, getDisplayNames, value, options = {}) {\n const DisplayNames = Intl.DisplayNames;\n if (!DisplayNames) {\n onError(createError(`Intl.DisplayNames is not available in this environment.\nTry polyfilling it using \"@formatjs/intl-displaynames\"\n`));\n }\n const filteredOptions = filterProps(options, DISPLAY_NAMES_OPTONS);\n try {\n return getDisplayNames(locale, filteredOptions).of(value);\n }\n catch (e) {\n onError(createError('Error formatting display name.', e));\n }\n}\n","/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\nimport * as React from 'react';\nimport { Provider } from './injectIntl';\nimport { createError, DEFAULT_INTL_CONFIG, createFormatters, invariantIntlContext, createIntlCache, } from '../utils';\nimport { formatNumber, formatNumberToParts } from '../formatters/number';\nimport { formatRelativeTime } from '../formatters/relativeTime';\nimport { formatDate, formatTime, formatDateToParts, formatTimeToParts, } from '../formatters/dateTime';\nimport { formatPlural } from '../formatters/plural';\nimport { formatMessage, formatHTMLMessage } from '../formatters/message';\nimport * as shallowEquals_ from 'shallow-equal/objects';\nimport { formatList } from '../formatters/list';\nimport { formatDisplayName } from '../formatters/displayName';\nconst shallowEquals = shallowEquals_.default || shallowEquals_;\nfunction processIntlConfig(config) {\n return {\n locale: config.locale,\n timeZone: config.timeZone,\n formats: config.formats,\n textComponent: config.textComponent,\n messages: config.messages,\n defaultLocale: config.defaultLocale,\n defaultFormats: config.defaultFormats,\n onError: config.onError,\n };\n}\n/**\n * Create intl object\n * @param config intl config\n * @param cache cache for formatter instances to prevent memory leak\n */\nexport function createIntl(config, cache) {\n const formatters = createFormatters(cache);\n const resolvedConfig = Object.assign(Object.assign({}, DEFAULT_INTL_CONFIG), config);\n const { locale, defaultLocale, onError } = resolvedConfig;\n if (!locale) {\n if (onError) {\n onError(createError(`\"locale\" was not configured, using \"${defaultLocale}\" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/API.md#intlshape for more details`));\n }\n // Since there's no registered locale data for `locale`, this will\n // fallback to the `defaultLocale` to make sure things can render.\n // The `messages` are overridden to the `defaultProps` empty object\n // to maintain referential equality across re-renders. It's assumed\n // each contains a `defaultMessage` prop.\n resolvedConfig.locale = resolvedConfig.defaultLocale || 'en';\n }\n else if (!Intl.NumberFormat.supportedLocalesOf(locale).length && onError) {\n onError(createError(`Missing locale data for locale: \"${locale}\" in Intl.NumberFormat. Using default locale: \"${defaultLocale}\" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`));\n }\n else if (!Intl.DateTimeFormat.supportedLocalesOf(locale).length &&\n onError) {\n onError(createError(`Missing locale data for locale: \"${locale}\" in Intl.DateTimeFormat. Using default locale: \"${defaultLocale}\" as fallback. See https://github.com/formatjs/react-intl/blob/master/docs/Getting-Started.md#runtime-requirements for more details`));\n }\n return Object.assign(Object.assign({}, resolvedConfig), { formatters, formatNumber: formatNumber.bind(null, resolvedConfig, formatters.getNumberFormat), formatNumberToParts: formatNumberToParts.bind(null, resolvedConfig, formatters.getNumberFormat), formatRelativeTime: formatRelativeTime.bind(null, resolvedConfig, formatters.getRelativeTimeFormat), formatDate: formatDate.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatDateToParts: formatDateToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTime: formatTime.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatTimeToParts: formatTimeToParts.bind(null, resolvedConfig, formatters.getDateTimeFormat), formatPlural: formatPlural.bind(null, resolvedConfig, formatters.getPluralRules), formatMessage: formatMessage.bind(null, resolvedConfig, formatters), formatHTMLMessage: formatHTMLMessage.bind(null, resolvedConfig, formatters), formatList: formatList.bind(null, resolvedConfig, formatters.getListFormat), formatDisplayName: formatDisplayName.bind(null, resolvedConfig, formatters.getDisplayNames) });\n}\nexport default class IntlProvider extends React.PureComponent {\n constructor() {\n super(...arguments);\n this.cache = createIntlCache();\n this.state = {\n cache: this.cache,\n intl: createIntl(processIntlConfig(this.props), this.cache),\n prevConfig: processIntlConfig(this.props),\n };\n }\n static getDerivedStateFromProps(props, { prevConfig, cache }) {\n const config = processIntlConfig(props);\n if (!shallowEquals(prevConfig, config)) {\n return {\n intl: createIntl(config, cache),\n prevConfig: config,\n };\n }\n return null;\n }\n render() {\n invariantIntlContext(this.state.intl);\n return React.createElement(Provider, { value: this.state.intl }, this.props.children);\n }\n}\nIntlProvider.displayName = 'IntlProvider';\nIntlProvider.defaultProps = DEFAULT_INTL_CONFIG;\n","/*\n * Copyright 2015, Yahoo Inc.\n * Copyrights licensed under the New BSD License.\n * See the accompanying LICENSE file for terms.\n */\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { Context } from './injectIntl';\nimport { formatMessage } from '../formatters/message';\nimport { invariantIntlContext, DEFAULT_INTL_CONFIG, createFormatters, } from '../utils';\nimport * as shallowEquals_ from 'shallow-equal/objects';\nconst shallowEquals = shallowEquals_.default || shallowEquals_;\nconst defaultFormatMessage = (descriptor, values) => {\n if (process.env.NODE_ENV !== 'production') {\n console.error('[React Intl] Could not find required `intl` object. needs to exist in the component ancestry. Using default message as fallback.');\n }\n return formatMessage(Object.assign(Object.assign({}, DEFAULT_INTL_CONFIG), { locale: 'en' }), createFormatters(), descriptor, values);\n};\nclass FormattedMessage extends React.Component {\n shouldComponentUpdate(nextProps) {\n const _a = this.props, { values } = _a, otherProps = __rest(_a, [\"values\"]);\n const { values: nextValues } = nextProps, nextOtherProps = __rest(nextProps, [\"values\"]);\n return (!shallowEquals(nextValues, values) ||\n !shallowEquals(otherProps, nextOtherProps));\n }\n render() {\n return (React.createElement(Context.Consumer, null, (intl) => {\n if (!this.props.defaultMessage) {\n invariantIntlContext(intl);\n }\n const { formatMessage = defaultFormatMessage, textComponent: Text = React.Fragment, } = intl || {};\n const { id, description, defaultMessage, values, children, tagName: Component = Text, } = this.props;\n const descriptor = { id, description, defaultMessage };\n let nodes = formatMessage(descriptor, values);\n if (!Array.isArray(nodes)) {\n nodes = [nodes];\n }\n if (typeof children === 'function') {\n return children(...nodes);\n }\n if (Component) {\n // Needs to use `createElement()` instead of JSX, otherwise React will\n // warn about a missing `key` prop with rich-text message formatting.\n return React.createElement(Component, null, ...nodes);\n }\n return nodes;\n }));\n }\n}\nFormattedMessage.displayName = 'FormattedMessage';\nFormattedMessage.defaultProps = {\n values: {},\n};\nexport default FormattedMessage;\n","import { useContext } from 'react';\nimport { Context } from './injectIntl';\nimport { invariantIntlContext } from '../utils';\nexport default function useIntl() {\n const intl = useContext(Context);\n invariantIntlContext(intl);\n return intl;\n}\n","export default {\n /** ColumnSettings */\n 'ColumnSettings.title': 'Max column count',\n\n /** MobileAlert **/\n 'MobileAlert.title': 'Kindly Reminder',\n 'MobileAlert.subTitle':\n 'This site not support mobile display yet, please switch to computer to open.',\n\n /** DynamicPagination */\n 'DynamicPagination.label': 'Per Page',\n\n /** NotFoundTip */\n 'NotFoundTip.title': 'Sorry, the page you visited does not exist.',\n 'NotFoundTip.backHome': 'Back Home',\n\n /** DDSAnnotator */\n 'DDSAnnotator.save': 'Save',\n 'DDSAnnotator.cancel': 'Cancel',\n 'DDSAnnotator.delete': 'Delete',\n 'DDSAnnotator.reject': 'Reject',\n 'DDSAnnotator.approve': 'Approve',\n 'DDSAnnotator.prev': 'Previous Image',\n 'DDSAnnotator.next': 'Next Image',\n 'DDSAnnotator.exit': 'Exit',\n 'DDSAnnotator.shortcuts': 'Shortcuts',\n 'DDSAnnotator.confidence': 'Confidence',\n 'DDSAnnotator.annotsList.categories': 'Categories',\n 'DDSAnnotator.annotsList.objects': 'Objects',\n 'DDSAnnotator.annotsList.hideAll': 'Hide All',\n 'DDSAnnotator.annotsList.showAll': 'Show All',\n 'DDSAnnotator.annotsList.hideCate': 'Hide Category',\n 'DDSAnnotator.annotsList.showCate': 'Show Category',\n 'DDSAnnotator.annotsList.hide': 'Hide',\n 'DDSAnnotator.annotsList.show': 'Show',\n 'DDSAnnotator.annotsList.delete': 'Delete',\n 'DDSAnnotator.annotsList.convertToSmartMode':\n 'Convert To Intelligent Segmentation',\n 'DDSAnnotator.toolbar.repeatPrevious': 'Repeat Previous',\n 'DDSAnnotator.toolbar.undo': 'Undo',\n 'DDSAnnotator.toolbar.redo': 'Redo',\n 'DDSAnnotator.toolbar.deleteAll': 'Mark Null',\n 'DDSAnnotator.toolbar.rectangle': 'Rectangle',\n 'DDSAnnotator.toolbar.polygon': 'Polygon',\n 'DDSAnnotator.toolbar.skeleton': 'Skeleton (Human Body)',\n 'DDSAnnotator.toolbar.aiAnno': 'Intelligent Annotate',\n 'DDSAnnotator.toolbar.drag': 'Drag / Select Tool',\n 'DDSAnnotator.toolbar.mask': 'Mask',\n 'DDSAnnotator.subtoolbar.mask.penAdd': 'Pen Add',\n 'DDSAnnotator.subtoolbar.mask.penErase': 'Pen Erase',\n 'DDSAnnotator.subtoolbar.mask.brushAdd': 'Brush Add',\n 'DDSAnnotator.subtoolbar.mask.brushErase': 'Brush Erase',\n 'DDSAnnotator.subtoolbar.mask.box': 'Interactive Segmentation - Box Tool',\n 'DDSAnnotator.subtoolbar.mask.click': 'Interactive Segmentation - Click Tool',\n 'DDSAnnotator.subtoolbar.mask.stroke':\n 'Interactive Segmentation - Brush Tool',\n 'DDSAnnotator.subtoolbar.mask.sam': 'Segment Everything',\n 'DDSAnnotator.subtoolbar.mask.sam.desc':\n 'Perform panoptic segmentation by SAM',\n 'DDSAnnotator.subtoolbar.mask.sam.notAllow':\n 'Unavailable when any instance exists',\n 'DDSAnnotator.subtoolbar.mask.edgeStitch': 'Edge Stitching Brush',\n 'DDSAnnotator.zoomTool.reset': 'Reset Zoom',\n 'DDSAnnotator.zoomIn': 'Zoom In',\n 'DDSAnnotator.zoomOut': 'Zoom Out',\n 'DDSAnnotator.colorMode': 'Color by Category / Instance',\n 'DDSAnnotator.imgDisplayTool.title': 'Display Options',\n 'DDSAnnotator.imgDisplayTool.brightness': 'Brightness',\n 'DDSAnnotator.imgDisplayTool.contrast': 'Contrast',\n 'DDSAnnotator.imgDisplayTool.saturate': 'Saturation',\n 'DDSAnnotator.toolbar.repeatPrevious.desc':\n 'Apply all of the annotations from the last image you annotated (Useful for video frames).',\n 'DDSAnnotator.toolbar.undo.desc': 'Undo the previous action.',\n 'DDSAnnotator.toolbar.redo.desc': 'Redo the previous action.',\n 'DDSAnnotator.toolbar.rectangle.desc':\n 'Click and drag to create a rectangular annotation that surrounds an object.',\n 'DDSAnnotator.toolbar.polygon.desc':\n 'Click around the object to create a closed polygon annotation.',\n 'DDSAnnotator.toolbar.skeleton.desc':\n 'Click and drag to create a human skeleton annotation, then modify the position of individual points.',\n 'DDSAnnotator.toolbar.aiAnno.desc':\n 'Activate this mode under any of Rectangle / Polygon / Skeleton / Mask tools for auto-generating corresponding annotations.',\n 'DDSAnnotator.toolbar.mask.desc':\n 'Use Pen or Brush tool to draw a pixel-level segmentation.',\n 'DDSAnnotator.toolbar.drag.desc':\n 'Drag the image or select & edit individual annotations.',\n 'DDSAnnotator.toolbar.deleteAll.desc': 'Remove all objects of present image',\n 'DDSAnnotator.annotsEditor.title': 'Annotation Editor',\n 'DDSAnnotator.annotsEditor.delete': 'Delete',\n 'DDSAnnotator.annotsEditor.finish': 'Finish',\n 'DDSAnnotator.annotsEditor.add': 'Add',\n 'DDSAnnotator.annotsEditor.addCategory': 'Add a category',\n 'DDSAnnotator.confirmLeave.content':\n 'Are you sure to leave without saving your changes ?',\n 'DDSAnnotator.confirmLeave.cancel': 'Wrong Click',\n 'DDSAnnotator.confirmLeave.ok': 'No Need to Save',\n 'DDSAnnotator.shortcuts.tools': 'Basic Tools',\n 'DDSAnnotator.shortcuts.tools.rectangle': 'Rectangle Tool',\n 'DDSAnnotator.shortcuts.tools.polygon': 'Polygon Tool',\n 'DDSAnnotator.shortcuts.tools.skeleton': 'Skeleton Tool',\n 'DDSAnnotator.shortcuts.tools.drag': 'Drag / Select Tool',\n 'DDSAnnotator.shortcuts.tools.mask': 'Mask Tool',\n 'DDSAnnotator.shortcuts.general': 'General Controls',\n 'DDSAnnotator.shortcuts.general.smart':\n 'Activate / Deactivate Intelligent Annotate',\n 'DDSAnnotator.shortcuts.general.undo': 'Undo',\n 'DDSAnnotator.shortcuts.general.redo': 'Redo',\n 'DDSAnnotator.shortcuts.general.deleteAll':\n 'Remove all objects of cureent image',\n 'DDSAnnotator.shortcuts.general.next': 'Next Image',\n 'DDSAnnotator.shortcuts.general.prev': 'Previous Image',\n 'DDSAnnotator.shortcuts.general.save': 'Save',\n 'DDSAnnotator.shortcuts.general.accept': 'Accept',\n 'DDSAnnotator.shortcuts.general.reject': 'Reject',\n 'DDSAnnotator.shortcuts.general.repeatPrevious': 'Repeat Previous',\n 'DDSAnnotator.shortcuts.viewControl': 'View Controls',\n 'DDSAnnotator.shortcuts.viewControl.zoomIn': 'Zoom In',\n 'DDSAnnotator.shortcuts.viewControl.zoomOut': 'Zoom Out',\n 'DDSAnnotator.shortcuts.viewControl.zoomReset': 'Reset zoom to fit screen',\n 'DDSAnnotator.shortcuts.viewControl.hideCurrObject':\n 'Hide / Show current selected annotation',\n 'DDSAnnotator.shortcuts.viewControl.hideCurrCategory':\n 'Hide / Show all annotations of the selected category',\n 'DDSAnnotator.shortcuts.viewControl.hideAll': 'Hide / Show all annotations',\n 'DDSAnnotator.shortcuts.viewControl.panImage':\n 'Pan the image by dragging mouse while holding the key',\n 'DDSAnnotator.shortcuts.annotsControl': 'Annotation Controls',\n 'DDSAnnotator.shortcuts.annotsControl.delete':\n 'Delete current selected annotation',\n 'DDSAnnotator.shortcuts.annotsControl.finish':\n 'Complete the annotation creation or modification',\n 'DDSAnnotator.shortcuts.annotsControl.cancel':\n 'Cancel the selection or discard the annotation in progress',\n 'DDSAnnotator.msg.lostCategory':\n '{count} annotations have lost their categories. Please revise them manually.',\n 'DDSAnnotator.annotsList.uncategorized': 'Uncategorized',\n 'DDSAnnotator.annotsList.point.notInImage': 'Not In Image',\n 'DDSAnnotator.annotsList.point.notVisible': 'Not Visible',\n 'DDSAnnotator.annotsList.point.visible': 'Visible',\n 'DDSAnnotator.anno.mask.emptyWarning':\n 'Please add at least one valid Mask annotation.',\n 'DDSAnnotator.anno.mask.translateToRleError': 'Error converting Mask format.',\n\n /** DDSAnnotator.smart */\n 'DDSAnnotator.smart.infoModal.title': 'Experience Intelligent Annotate',\n 'DDSAnnotator.smart.infoModal.content':\n 'Sorry, this feature is not available in the local version of DeepDataSpace currently. Please visit the official website for more information. You can contact us (deepdataspace_dm@idea.edu.cn) for a priority experience of intelligent annotate.',\n 'DDSAnnotator.smart.infoModal.action': 'Visit Our Website',\n 'DDSAnnotator.smart.detection.name': 'Intelligent Object Detection',\n 'DDSAnnotator.smart.detection.input': 'Select or enter categories',\n 'DDSAnnotator.smart.segmentation.name': 'Intelligent Segmentation (Polygon)',\n 'DDSAnnotator.smart.pose.name': 'Intelligent Pose Estimation',\n 'DDSAnnotator.smart.mask.name': 'Intelligent Panoramic Segmentation',\n 'DDSAnnotator.smart.pose.input': 'Select template',\n 'DDSAnnotator.smart.pose.apply': 'Apply Results',\n 'DDSAnnotator.smart.annotate': 'Auto-Annotate',\n 'DDSAnnotator.smart.retry': 'Retry',\n 'DDSAnnotator.smart.modelTyle': 'Model Type',\n 'DDSAnnotator.smart.minArea': 'Minimum Area',\n 'DDSAnnotator.smart.iouThres': 'IoU Threshold',\n 'DDSAnnotator.smart.segmentation.tipsInitial':\n 'Tips: Draw a bounding box around your target or click the center of it to generate initial segmentation.',\n 'DDSAnnotator.smart.segmentation.tipsNext':\n 'Tips: Modify results by clicking the left mouse button to add a positive point, or clicking the right mouse button to add a negative point.',\n 'DDSAnnotator.smart.msg.loading': 'Loading Intelligent Annotation...',\n 'DDSAnnotator.smart.msg.success': 'Request Annotations Successfully',\n 'DDSAnnotator.smart.msg.error': 'Request Annotations Failed',\n 'DDSAnnotator.smart.msg.labelRequired': 'Please select one category at least',\n 'DDSAnnotator.smart.msg.confResults': '{count} matching annotations shown',\n 'DDSAnnotator.smart.msg.applyConf':\n '{count} annotations have been retained, with the others removed.',\n 'DDSAnnotator.smart.rateLimit.title': 'Tips',\n 'DDSAnnotator.smart.rateLimit.content':\n 'Sorry, our public server is currently under low capacity and unable to process your request. Please try again later.',\n 'DDSAnnotator.smart.rateLimit.okText': 'OK',\n 'DDSAnnotator.smart.detection.confidence': 'Confidence',\n 'DDSAnnotator.smart.back': 'Back',\n 'DDSAnnotator.smart.tip': 'Tip',\n 'DDSAnnotator.smart.tip.ctrl':\n 'Press on Ctrl to enter the mode of recovering unselected annotations.',\n 'DDSAnnotator.smart.tip.recover': 'Recover unselected annotations',\n 'DDSAnnotator.smart.tip.overlayobject': 'View overlapping annotation objects',\n 'DDSAnnotator.smart.tip.annotationApplied': '{count} annotations applied.',\n};\n","import ComponentsLocaleTexts from 'dds-components/locales/en-US';\n\nconst localeTexts = {\n /** aside */\n datasets: 'Datasets',\n projects: 'Projects',\n annotate: 'Annotate',\n annotator: 'Annotator',\n lab: 'Lab',\n docs: 'Docs',\n\n /** menu */\n 'menu.Home': 'Home',\n 'menu.Dataset': 'Dataset',\n 'menu.Dataset.Dataset': 'Dataset',\n 'menu.Dataset.Datasets': 'Datasets',\n 'menu.Project': 'Project',\n 'menu.Project.Projects': 'Project List',\n 'menu.Project.ProjectDetail': 'Project Detail',\n 'menu.Project.ProjectTaskWorkspace': 'Project Task Workspace',\n 'menu.Login': 'Login',\n 'menu.Annotator': 'Annotator',\n 'menu.Lab': 'Lab',\n 'menu.Lab.Lab': 'Lab',\n 'menu.Lab.Datasets': 'Datasets',\n 'menu.Lab.flagtool': 'Flag Tool',\n\n /** user */\n login: 'Login',\n logout: 'Logout',\n loginSuccess: 'Login Successfully',\n loginAuthenticationFailed:\n 'Authentication failed. Please check your username and password and try again.',\n logoutSuccess: 'Logout Successfully',\n logoutFailed: 'Logout Failed',\n signupSuccess:\n 'SignUp successfully, please check your email and finish activation.',\n signupAuthenticationFailed:\n 'SignUp failed. Please check your email and password and try again.',\n activationCheckLoading: 'Account activation is being verified, please wait.',\n activationCheckSuccessed:\n 'Account activation successful. Redirecting to the login page.',\n activationCheckFailed:\n 'Account activation verification failed, please use a valid link.',\n activationCheckFailedTitle: 'Activation link expired',\n activationCheckFailedTip:\n 'The activation link is expired, please return to login page to re-initiate registration.',\n backToLoginBtn: 'Back to Login',\n newUser: \"Don't have an account? Sign up\",\n backtoLogin: 'Already have an account? Log in',\n signup: 'SignUp',\n username: 'Username',\n email: 'Email',\n password: 'Password',\n passwordConfirm: 'Password Confirm',\n usernameTip: 'Please input your username',\n emailTip: 'Please input your email',\n passwordTip: 'Please input your password',\n passwordConfirmTip: 'Please confirm your password',\n getStart: 'GET START',\n checkEmailInbox:\n 'Click on the link we sent to {email} to finish your account activation within 24 hours.',\n resendEmailTip: 'No email in your inbox or span folder? ',\n resendEmailBtn: \"Let's resend it.\",\n resendEmailSuccess: 'Resend email successfully.',\n resendEmailFailed: 'Resend email failed.',\n rewriteEmailAddress: 'Wrong address? ',\n rewriteEmailBtn: 'Go Back ',\n rewriteEmailTip: 'to sign in with a different email.',\n validatePwdRequire: 'Password is required',\n validatePwdLengthMin: 'Password length no less than 8 characters',\n validatepwdFormat:\n 'Password must contain uppercase and lowercase letters, numbers, and special characters',\n validatePwdLengthMax: 'Password length no greater than 20 characters',\n validatePwdConfirmRequire: 'Confirmation password is required',\n validatePwdConfirmDiff: 'The two passwords you entered do not match',\n validateEmailRequire: 'Email is required',\n validateEmailFormat: 'Invalid email format',\n\n /** dataset */\n 'dataset.images': 'images',\n 'dataset.detail.category': 'Category',\n 'dataset.detail.labelSets': 'Label sets',\n 'dataset.diffMode.overlay': 'Overlay',\n 'dataset.diffMode.tiled': 'Tiled',\n 'dataset.detail.labelSetsName': 'Name',\n 'dataset.detail.confidence': 'Confidence',\n 'dataset.detail.style': 'Style',\n 'dataset.detail.displayOptions': 'Display options',\n 'dataset.detail.showAnnotations': 'Display annotation of selected type',\n 'dataset.detail.displayType': 'Type',\n 'dataset.detail.analysis': 'Analysis',\n 'dataset.detail.analModal.title': 'Analysis',\n 'dataset.detail.analModal.btn': 'Analysis FN/FP',\n 'dataset.detail.analModal.select': 'Select a prediction label set',\n 'dataset.detail.analModal.precision': 'Precision',\n 'dataset.detail.analModal.sort': 'Sort',\n 'dataset.detail.analModal.display': 'Display',\n 'dataset.detail.analModal.diff': ' Diff',\n 'dataset.detail.analModal.score': 'score',\n 'dataset.detail.analModal.exit': 'Exit Analysis',\n\n 'dataset.toAnalysis.unSupportWarn':\n 'You should have a prediction label set with detection annotaion first',\n 'dataset.toAnalysis.unSelectWarn': 'Please select a prediction label set',\n 'dataset.onClickCopyLink.success': 'Copy link success!',\n 'dataset.detail.overlay': 'Overlay',\n\n 'dataset.filter.newDataset': 'New dataset',\n 'dataset.filter.public': 'Public',\n 'dataset.filter.private': 'Private',\n 'dataset.create.modal.step.one': 'Create',\n 'dataset.create.modal.step.prev': '< Previous step',\n 'dataset.create.modal.step.finish': 'Finish',\n 'dataset.create.success': 'Successfully create new dataset.',\n 'dataset.create.error': 'Create datatset failed with error: {error}',\n 'dataset.create.warn': 'Dataset name is required, and can be repeated.',\n 'dataset.update.success': 'Successfully update dataset.',\n 'dataset.update.error': 'Update datatset failed with error: {error}',\n 'dataset.update.warn': 'Could not update dataset with invalid dataset ID.',\n 'dataset.import.success': 'Successfully import images into dataset.',\n 'dataset.import.warn':\n 'Could not import images into dataset with empty image list.',\n 'dataset.import.error': 'Import images failed with error: {error}',\n 'dataset.create.modal.title': 'Create dataset',\n 'dataset.create.modal.finish': 'Successfully import images into new dataset.',\n 'dataset.create.modal.required': 'This field is required.',\n 'dataset.create.modal.name': 'Name',\n 'dataset.create.modal.name.tooltip': 'The max length of dataset name is 64.',\n 'dataset.create.modal.name.placeholder': 'Please input dataset name',\n 'dataset.create.modal.desc': 'Description',\n 'dataset.create.modal.desc.placeholder': 'Please input dataset description',\n 'dataset.create.modal.auth': 'Authority',\n 'dataset.create.modal.auth.public': 'Public',\n 'dataset.create.modal.auth.private': 'Private',\n 'dataset.import.modal.title': 'Import images',\n 'dataset.import.modal.label': 'Image Urls',\n 'dataset.import.modal.addUrl': 'Add Urls',\n 'dataset.import.modal.addUrl.btn': 'Add',\n 'dataset.import.modal.upload': 'Batch Upload',\n 'dataset.import.modal.upload.text':\n 'Click or drag file to this area to upload',\n 'dataset.import.modal.upload.hint': 'Support for a single or bulk upload.',\n 'dataset.import.modal.addedImgCount': 'Had added {count} images',\n 'dataset.import.modal.placeholder':\n 'Please enter the image urls and click \"Add\" button to add images. \\nOr click \"Upload\" button to upload local files. \\nYou can input multiple urls by separating them with a new line. \\nE.g.: \\n https://xxx.com/xxx01.png \\n https://xxx.com/xxx02.png',\n 'dataset.import.modal.emptyImgs': 'No images',\n 'dataset.import.modal.tip.maxImgCount':\n 'Had exceeded the maximum number of images, please check',\n 'dataset.import.modal.tip.successLoad': 'Had loaded {count} images',\n 'dataset.import.modal.tip.partLoad':\n 'Had loaded {count} images, some images failed to load, please check',\n 'dataset.import.modal.tip.policiesFail':\n 'Get upload policies error, please try again',\n 'dataset.import.modal.tip.someUploadFail':\n 'Some images failed to upload, please try again',\n 'dataset.import.edit.modal.title': 'Import images',\n 'dataset.import.modal.submit': 'Import',\n 'dataset.import.modal.reset': 'Reset',\n 'dataset.edit.modal.title': 'Edit dataset',\n 'dataset.edit.modal.submit': 'Update',\n 'dataset.edit.modal.reset': 'Reset',\n\n /** Annotate */\n 'annotate.quick': 'Quick Mode',\n 'annotate.quick.desc':\n 'Upload local image set for quick annotation experience',\n 'annotate.collaborative': 'Collaborative Mode',\n 'annotate.collaborative.desc':\n 'Create project for collaborative annotation management',\n\n /** Annotator */\n 'annotator.setting': 'Setting',\n 'annotator.export': 'Export Annotation',\n 'annotator.notice':\n 'The quick mode will not upload images or save annotation results. We recommend clicking the \"Export Annotations\" button located in the upper right corner of the workspace before leaving, which allows you to save the annotation results locally.',\n 'annotator.formModal.title': 'Before you start',\n 'annotator.formModal.importImages': 'Import Images',\n 'annotator.formModal.imageTips':\n 'Tips: Import a maximum of {count} images, with each image not exceeding {size}MB.',\n 'annotator.formModal.categories': 'Categories',\n 'annotator.formModal.addCategory': 'Add',\n 'annotator.formModal.categoryPlaceholder':\n 'Please enter the category names. You can input multiple categories by separating them with a new line. E.g.: \\n person \\n dog \\n car',\n 'annotator.formModal.categoriesCount': 'Categories Count',\n 'annotator.formModal.fileRequiredMsg': 'At least one image is required.',\n 'annotator.formModal.fileCountLimitMsg':\n 'File count should not exceed {count}.',\n 'annotator.formModal.fileSizeLimitMsg':\n 'The size of each individual image cannot exceed {size} MB.',\n 'annotator.formModal.categoryRequiredMsg':\n 'At least one category is required.',\n 'annotator.formModal.deleteCategory.title': 'Info',\n 'annotator.formModal.deleteCategory.desc':\n 'This category is used by current annotations. Please manually remove these annotations or revise their category first.',\n 'annotator.formModal.deleteImage.title': 'Info',\n 'annotator.formModal.deleteImage.desc':\n 'This image contains annotations. Please manually remove these annotations first.',\n\n /** projects */\n 'proj.title': 'Projects',\n 'proj.table.name': 'Project Name',\n 'proj.table.owner': 'Owner',\n 'proj.table.datasets': 'Datasets',\n 'proj.table.progress': 'Task Progress',\n 'proj.table.PM': 'Project Manager',\n 'proj.table.status': 'Status',\n 'proj.table.createAt': 'Create At',\n 'proj.table.action': 'Action',\n 'proj.table.action.accept': 'Accept',\n 'proj.table.action.reject': 'Reject',\n 'proj.table.action.reject.tips': 'Are you sure to reject this project?',\n 'proj.table.action.edit': 'Edit',\n 'proj.table.action.init': 'Init',\n 'proj.table.action.info': 'info',\n 'proj.table.action.detail': 'Detail',\n 'proj.table.action.export': 'Export',\n 'proj.table.newProject': 'New Project',\n\n 'proj.table.detail.index': 'Index',\n 'proj.table.detail.labelLeader': 'Label Leader',\n 'proj.table.detail.labeler': 'Labeler',\n 'proj.table.detail.reviewLeader': 'Review Leader',\n 'proj.table.detail.reviewer': 'Reviewer',\n 'proj.table.detail.progress': 'Progress',\n 'proj.table.detail.status': 'Status',\n 'proj.table.detail.action': 'Action',\n\n 'proj.table.detail.action.assignLeader': 'Assign Leader',\n 'proj.table.detail.action.assignWorker': 'Assign Worker',\n 'proj.table.detail.action.detail': 'Detail',\n 'proj.table.detail.action.restart': 'Restart',\n 'proj.table.detail.action.accept': 'Accept',\n 'proj.table.detail.action.reject': 'Reject',\n 'proj.table.detail.action.reject.tips': 'Are you sure to reject this task?',\n 'proj.table.detail.action.view': 'View',\n 'proj.table.detail.action.startLabel': 'Start Label',\n 'proj.table.detail.action.startReview': 'Start Review',\n\n 'proj.table.detail.batchAssignLeader': 'Batch Assign Leader',\n 'proj.detail.owner': 'Owner',\n 'proj.detail.managers': 'Managers',\n\n 'proj.assign.modal.assign': 'Assign',\n 'proj.assign.modal.reassign': 'Reassign',\n 'proj.assign.modal.ll.label': 'Leader of Label Team',\n 'proj.assign.modal.ll.placeholder':\n 'Select one of members as Team Leader to assign labelers',\n 'proj.assign.modal.ll.tooltip':\n 'Assign yourself as Team Leader is also allowed here',\n 'proj.assign.modal.ll.msg':\n 'Please select one of members as Team Leader for this task',\n 'proj.assign.modal.rl.label': 'Leader of Review Team',\n 'proj.assign.modal.rl.placeholder':\n 'Select one of members as Team Leader to assign reviews',\n 'proj.assign.modal.rl.tooltip':\n 'Assign yourself as Team Leader is also allowed here',\n 'proj.assign.modal.rl.msg':\n 'Please select one of members as Team Leader for this task',\n 'proj.assign.modal.ler.label': 'Labeler',\n 'proj.assign.modal.ler.placeholder':\n 'Select {times} of members as labeler to work',\n 'proj.assign.modal.ler.tootltip':\n 'Assign yourself as Labeler is also allowed here',\n 'proj.assign.modal.ler.msg':\n 'Please select {times} of members as Labeler for this task',\n 'proj.assign.modal.ler.msgTimes': 'Must be {times} members',\n 'proj.assign.modal.rer.label': 'Reviewer',\n 'proj.assign.modal.rer.placeholder':\n 'Select {times} of members as labeler to work',\n 'proj.assign.modal.rer.tootltip':\n 'Assign yourself as Reviewer is also allowed here',\n 'proj.assign.modal.rer.msg':\n 'Please select {times} of members as Reviewer for this task',\n 'proj.assign.modal.rer.msgTimes': 'Must be {times} members',\n 'proj.assign.modal.reassign.label': 'Reassign to',\n 'proj.assign.modal.reassign.placeholder': 'Select one of members to reassign',\n 'proj.assign.modal.reassign.msg': 'Please select one of members to reassign',\n\n 'proj.detail.modal.reassign': 'Reassign',\n 'proj.detail.modal.index': 'Index',\n 'proj.detail.modal.role': 'Role',\n 'proj.detail.modal.worker': 'Worker',\n 'proj.detail.modal.progress': 'Progress',\n 'proj.detail.modal.action': 'Action',\n 'proj.detail.modal.title': 'Task Detail {id}',\n\n 'proj.taskProgress.done': 'Done',\n 'proj.taskProgress.inRework': 'InRework',\n 'proj.taskProgress.toReview': 'ToReview',\n 'proj.taskProgress.toLabel': 'ToLabel',\n\n 'proj.assignModalFinish.assignLeader': 'Assign team leader success!',\n 'proj.assignModalFinish.assignWorker': 'Assign worker success!',\n 'proj.assignModalFinish.reassignWorker': 'Reassign worker success!',\n 'proj.assignModalFinish.restarTask': 'Restart task success!',\n 'proj.assignModalFinish.commiTask': 'Commit task success!',\n 'proj.assignModalFinish.changeTaskStatus': 'Change task status success!',\n\n 'proj.projectModalFinish.new': 'New project success!',\n 'proj.projectModalFinish.edit': 'Edit project success!',\n 'proj.projectModalFinish.init': 'Init project success!',\n 'proj.projectModalFinish.change': 'Change project status success!',\n\n 'proj.onLabelSave.warning': 'have not add any annotation, please check it',\n 'proj.onLabelSave.loading': 'Saving annotation...',\n 'proj.onLabelSave.save': 'Save success!',\n 'proj.onLabelSave.finish': 'Finish work!',\n 'proj.onLabelSave.error': 'Save annotation fail, please retry',\n\n 'proj.onReviewResult.loading': 'Saving review result...',\n 'proj.onReviewResult.save': 'Save success!',\n 'proj.onReviewResult.finish': 'Finish work!',\n 'proj.onReviewResult.error': 'Save review result fail, please retry',\n 'proj.tabItems.toLabel': 'To Label ({num})',\n 'proj.tabItems.toReview': 'To Review ({num})',\n 'proj.tabItems.inRework': 'In Rework ({num})',\n 'proj.tabItems.done': 'Done ({num})',\n\n 'proj.editModal.editProj': 'Edit Project',\n 'proj.editModal.newProj': 'New Project',\n 'proj.editModal.stepForm.title': 'Basics',\n 'proj.editModal.stepForm.desc': 'Admin Only',\n 'proj.editModal.stepForm.name.label': 'Project Name',\n 'proj.editModal.stepForm.name.placeholder': 'Please input project name',\n 'proj.editModal.stepForm.name.rule': 'Please input project name',\n 'proj.editModal.stepForm.desc.label': 'Description',\n 'proj.editModal.stepForm.desc.placeholder':\n 'Optional description of your project',\n 'proj.editModal.stepForm.dataset.label': 'Datasets',\n 'proj.editModal.stepForm.dataset.placeholder':\n 'Connect at least one dataset to this project',\n 'proj.editModal.stepForm.dataset.rule':\n 'Please select at least one dataset for this project',\n 'proj.editModal.stepForm.preLabel.label': 'Pre Label',\n 'proj.editModal.stepForm.preLabel.placeholder': 'Please input pre label name',\n 'proj.editModal.stepForm.category.label': 'Categories',\n 'proj.editModal.stepForm.category.placeholder': `Please input project categories, split with ','`,\n 'proj.editModal.stepForm.category.rule': 'Please input categories',\n 'proj.editModal.stepForm.PM.label': 'Project Managers',\n 'proj.editModal.stepForm.PM.placeholder':\n 'Select at least one of members as Project Manager to manage tasks',\n 'proj.editModal.stepForm.PM.extra':\n 'Assign yourself as PM is also allowed here',\n 'proj.editModal.stepForm.PM.rule':\n 'Please select at least one of members as Project Manager',\n 'proj.editModal.stepForm.task.title': 'Workflow Setting',\n 'proj.editModal.stepForm.task.desc': 'Project Manager Only',\n 'proj.editModal.stepForm.task.msg':\n 'Project Manager Only (You can assign yourself as PM on previous step).',\n 'proj.editModal.stepForm.radio.label': 'Split Task Way',\n 'proj.editModal.stepForm.radio.dataset': 'dataset',\n 'proj.editModal.stepForm.radio.size': 'Batch Size',\n 'proj.editModal.stepForm.batchSize.label': 'Batch Size',\n 'proj.editModal.stepForm.batchSize.placeholder': 'Please enter Batch size',\n 'proj.editModal.stepForm.batchSize.tooltip':\n 'Batch size is set as the number of images of each task',\n 'proj.editModal.stepForm.batchSize.msg': 'Please enter Batch size',\n 'proj.editModal.stepForm.rview.label': 'Rviewer Settings',\n 'proj.editModal.stepForm.rview.no': 'No Reviewer',\n 'proj.editModal.stepForm.rview.one': '1 Reviewer',\n 'proj.editModal.setWorkflowNow': 'Set workflow now',\n\n 'proj.infoModal.title': 'Project Info',\n 'proj.infoModal.name': 'Project Name',\n 'proj.infoModal.desc': 'Description',\n 'proj.infoModal.label': 'Project Managers',\n\n 'proj.exportModal.title': 'Export to Dataset',\n 'proj.exportModal.labelName.name': 'Labelset',\n 'proj.exportModal.labelName.rule': 'Please input labelset name',\n 'proj.exportModal.labelName.tips':\n 'You can check labeling result in selected dataset with the labelset name after clicking \"OK\". ',\n 'proj.exportModal.submitSuccess':\n 'Successfully export labelset \"{name}\" into selected dataset, you can check labeled results in datasets module.',\n\n 'proj.workspace.eTask.startLabel': 'Start Label',\n 'proj.workspace.eTask.edit': 'Edit',\n 'proj.workspace.eTask.startRework': 'Start Rework',\n 'proj.workspace.eTask.startReview': 'Start Review',\n 'proj.workspace.eProj.startLabeling': 'Start Labeling',\n 'proj.workspace.eProj.startRework': 'Start Rework',\n 'proj.workspace.eProj.startReview': 'Start Review',\n 'proj.workspace.eProj.role': 'Current Role',\n\n 'proj.statusMap.waiting': 'Waiting',\n 'proj.statusMap.initializing': 'Initializing',\n 'proj.statusMap.working': 'Working',\n 'proj.statusMap.reviewing': 'Reviewing',\n 'proj.statusMap.rejected': 'Rejected',\n 'proj.statusMap.accepted': 'Accepted',\n 'proj.statusMap.exported': 'Exported',\n\n 'proj.eTaskStatus.waiting': 'Waiting',\n 'proj.eTaskStatus.working': 'Working',\n 'proj.eTaskStatus.reviewing': 'Reviewing',\n 'proj.eTaskStatus.rejected': 'Rejected',\n 'proj.eTaskStatus.accepted': 'Accepted',\n\n /** Lab */\n 'lab.card.title': 'Flag Tool',\n 'lab.card.subTitle': 'Pick images to flag',\n 'lab.toolsBar.selectAll': 'Select all',\n 'lab.toolsBar.selectSome': 'Selected {num} items',\n 'lab.toolsBar.selectInvert': 'Select invert',\n 'lab.toolsBar.filter': 'Filter',\n 'lab.toolsBar.saveAs': 'Save selected items as',\n 'lab.toolsBar.genEmbed': 'Generate Embedding',\n 'lab.toolsBar.updateOrder': 'Update Order',\n\n 'lab.displayOption.showAnnotations': 'Display annotation of selected type',\n 'lab.displayOption.showAllCategory':\n 'Display annotations from all categories',\n 'lab.displayOption.showImgDesc': 'Show image description',\n 'lab.displayOption.showBoxText': 'Show text in boxes',\n 'lab.displayOption.showSegFilling': 'Display segmentation filling (F)',\n 'lab.displayOption.showSegContour': 'Display segmentation contour (C)',\n 'lab.displayOption.showMattingColorFill': 'Display matting color filling',\n 'lab.displayOption.showKeyPointsLine': 'Display keypoint lines',\n 'lab.displayOption.showKeyPointsBox': 'Display keypoint boxs',\n 'lab.onClickCopyLink.success': 'Copy link success!',\n\n /** app */\n 'layout.title': 'Deep Data Space',\n\n /** error code & status msg or error handler msg **/\n 'requestConfig.errorData.msg': 'Request error, please retry ({code})',\n 'requestConfig.success.msg': 'Request succeeded.',\n 'requestConfig.unAuth.msg': 'Unauthorized access. Please Login.',\n 'requestConfig.permissionDenied.msg':\n 'Permission denied. Your account does not have the required permissions to perform this action.',\n 'requestConfig.responseStatus.msg': 'Response status: {status}',\n 'requestConfig.noResponse.msg': 'None response! Please retry.',\n 'requestConfig.requestError.msg': 'Request error, please retry.',\n 'requestConfig.errorContent.msg':\n 'Request contains sensitive content, please check.',\n\n 'errCode.PartialSuccessBatchAssignLeaders':\n 'Batch assign leaders partially success.',\n 'errCode.PartialSuccessBatchAssignWorkers':\n 'Batch assign workers partially success.',\n 'errCode.BadRequest': 'Bad request.',\n 'errCode.ParameterMissing': 'Parameter missing.',\n 'errCode.ParameterIsInvalid': 'Parameter is invalid.',\n 'errCode.CaptchaVerificationFailed': 'Captcha verification failed.',\n 'errCode.AnnotationNotListOfObj': 'Annotation must be a list of object.',\n 'errCode.AnnotationMissingCatName':\n 'Annotation object missing category name.',\n 'errCode.AnnotationMissingBBox': 'Annotation object missing bounding box.',\n 'errCode.AnnotationBBoxFormatError':\n 'Annotation object bounding box format error.',\n 'errCode.AnnotationFormatError': 'Annotation object format error.',\n 'errCode.FlagGroupsNotListOfObj': 'flag_groups must be a list of object.',\n 'errCode.FlagObjectMissingFlag': 'flag object missing flag.',\n 'errCode.FlagObjectFlagValueInvalid':\n 'flag object flag value invalid, must be one of [0, 1, 2].',\n 'errCode.FlagObjectMissingIDs': 'flag object missing ids.',\n 'errCode.FlagObjectIDsNotList': 'flag object ids must be a list.',\n 'errCode.LabelSetNameInvalid':\n \"label set name can't be GroundTruth and UserAnnotation.\",\n 'errCode.LabelSetNameConflicts': 'target label set name is already taken.',\n 'errCode.UserNotFoundForLabelProject': 'user not found for label project.',\n 'errCode.UserNotActiveForLabelProject': 'user not active for label project.',\n 'errCode.DatasetNotFoundForLabelProject':\n 'dataset not found for label project.',\n 'errCode.LabelTaskNotFoundForLabelProject':\n 'label task not found for label project.',\n 'errCode.CreateLabelProjectRequireManager':\n \"managers can't be empty when creating label project.\",\n 'errCode.CreateLabelProjectRequireDataset':\n \"datasets can't be empty when creating label project.\",\n 'errCode.CreateLabelProjectRequireCategory':\n \"categories can't be empty when creating label project.\",\n 'errCode.CreateLabelProjectDatasetOccupied':\n 'dataset is occupied by other label project.',\n 'errCode.EditLabelProjectRequireManager':\n \"managers can't be empty when editing label project.\",\n 'errCode.InitLabelProjectMustBeWaiting':\n 'label project must be in status of waiting for init.',\n 'errCode.InitLabelProjectTaskConfigError':\n 'batch_size, label_times, review_times must be set at the same time.',\n 'errCode.QALabelProjectActionError':\n \"qa action error, must be 'accept' or 'reject'.\",\n 'errCode.QALabelProjectMustBeReviewing':\n 'label project must be in status of reviewing.',\n 'errCode.ExportLabelProjectMustBeAccepted':\n 'label project must be in status of accepted.',\n 'errCode.LeaderIDIsRequired':\n 'labeler_leader_id and reviewer_leader_id can not be empty at the same time.',\n 'errCode.LabelerIDIsRequired':\n 'labeler_ids and reviewer_ids can not be empty at the same time.',\n 'errCode.LabelProjectRoleIsNotTaskLevel':\n 'label project role is not task level, so it cannot be bounded to a task.',\n 'errCode.CantReplaceRoleWithTheSameUser':\n \"can't replace role with the same user.\",\n 'errCode.OldUserDoesNotHaveTheTaskRole':\n 'old user does not have the task role to be replaced.',\n 'errCode.NewUserAlreadyHaveTheTaskRole':\n 'new user already have the task role.',\n 'errCode.CantTransferRoleBetweenDifferentTask':\n \"can't transfer role between different task.\",\n 'errCode.CantTransferRoleToDifferentKind':\n \"can't transfer role to different kind.\",\n 'errCode.RestartLabelTaskMustBeRejected':\n 'label task must be in status of rejected.',\n 'errCode.QALabelTaskActionError':\n \"qa action error, must be 'accept', 'reject' or 'force_accept'.\",\n 'errCode.AcceptLabelTaskMustBeReviewing':\n 'label task must be in status of reviewing.',\n 'errCode.RejectLabelTaskMustBeReviewing':\n 'label task must be in status of reviewing.',\n 'errCode.ForceAcceptLabelTaskMustBeRejected':\n 'label task must be in status of rejected.',\n 'errCode.LabelAnnotationMissingFields': 'label annotation missing fields.',\n 'errCode.LabelAnnotationFieldValueInvalid':\n 'label annotation field value invalid.',\n 'errCode.LabelImageRequireTaskStatusWorking':\n 'label image require task status be working.',\n 'errCode.LabelImageRequireUnfinishedReviewing':\n 'label image require unfinished reviewing.',\n 'errCode.ReviewImageRequireTaskStatusWorking':\n 'review image require task status be working.',\n 'errCode.ReviewImageRequireFinishedLabeling':\n 'review image require finished labeling.',\n 'errCode.ReviewImageTargetLabelNotFound':\n 'review image target label not found.',\n 'errCode.ReviewImageFoundExistedReview': 'image has already been reviewed.',\n 'errCode.CantDeleteAllOwnersOfLabelProject':\n \"can't delete all owners of label project.\",\n 'errCode.NumOfTaskLeaderMismatchesConfig':\n 'num of task leader mismatches config.',\n 'errCode.TaskDoesNotRequireReviewer': 'task does not require reviewer.',\n 'errCode.NumOfTaskLabelerMismatchesConfig':\n 'num of task labeler mismatches config.',\n 'errCode.NumOfTaskReviewerMismatchesConfig':\n 'num of task reviewer mismatches config.',\n 'errCode.TryInitRoleForTaskWithActiveRoles':\n \"can't init roles for task with active roles.\",\n 'errCode.TaskRoleNotOfLeaderKind': 'task role not of leader kind.',\n 'errCode.Unauthorized': 'Unauthorized.',\n 'errCode.Forbidden': 'Forbidden.',\n 'errCode.UserAuthenticationFailed': 'User authentication failed.',\n 'errCode.UserCantViewLabelProjectTask': \"User can't view label project.\",\n 'errCode.UserCantViewLabelProjectRole': \"User can't view label project role.\",\n 'errCode.UserCantCreateLabelProject': \"User can't create label project.\",\n 'errCode.UserCantViewLabelProject': \"User can't view label project.\",\n 'errCode.UserCantEditLabelProject': \"User can't edit label project.\",\n 'errCode.UserCantInitLabelProject': \"User can't init label project.\",\n 'errCode.UserCantQALabelProject': \"User can't QA label project.\",\n 'errCode.UserCantExportLabelProject': \"User can't export label project.\",\n 'errCode.UserCantAssignLabelTaskLeader':\n \"User can't assign label task leader.\",\n 'errCode.UserCantAssignLabelTaskWorker':\n \"User can't assign label task worker.\",\n 'errCode.UserCantRestartLabelTask': \"User can't restart label task.\",\n 'errCode.UserCantQALabelTask': \"User can't QA label task.\",\n 'errCode.UserCantLabelTaskImage': \"User can't label task image.\",\n 'errCode.UserCantReviewTaskImage': \"User can't review task image.\",\n 'errCode.NotFound': 'Not found.',\n 'errCode.DatasetNotFound': 'Dataset not found.',\n 'errCode.DatasetNotReadable': 'Dataset not readable.',\n 'errCode.DatasetMissingEmbdFile': 'Dataset missing embedding file.',\n 'errCode.DatasetImageNotFound': 'Dataset image not found.',\n 'errCode.DatasetHasNoFNFPData': 'Dataset has no FN/FP data.',\n 'errCode.DatasetLabelNotFound': 'Dataset label not found.',\n 'errCode.DatasetFNFPPrecisionNotFound': 'Dataset FN/FP precision not found.',\n 'errCode.DatasetSubsetNotFound': 'Dataset subset not found.',\n 'errCode.LabelProjectNotFound': 'Label project not found.',\n 'errCode.LabelProjectRoleNotFound': 'Label project role not found.',\n 'errCode.LabelProjectTaskNotFound': 'Label project task not found.',\n 'errCode.LabelTaskImageNotFound': 'Label task image not found.',\n 'errCode.TokenExceedsRateLimit': 'Token exceeds Rate Limit.',\n 'errCode.InternalError': 'Internal error.',\n 'errCode.FailedToCloneLabelSet': 'Failed to clone label set.',\n\n 'errCode.UserPasswordInvalid': 'user password invalid',\n 'errCode.UserEmailInvalid': 'user email invalid.',\n 'errCode.UserEmailOccupied': 'user email occupied.',\n 'errCode.UserActivationTokenInvalid': 'user activation token invalid.',\n 'errCode.UserActivationTokenExpired': 'user activation token expired.',\n 'errCode.UserActivationTokenUsed': 'user activation token used.',\n 'errCode.UserAlreadyActivated': 'user already activated.',\n 'errCode.UserEmailWaitForActivation': 'user email wait for activation.',\n 'errCode.UserNotFound': 'User not found.',\n 'errCode.UserEmailNotFound': 'User email not found.',\n};\n\nexport default {\n ...ComponentsLocaleTexts,\n ...localeTexts,\n};\n","export default {\n /** ColumnSettings */\n 'ColumnSettings.title': '最大展示列数',\n\n /** MobileAlert **/\n 'MobileAlert.title': '温馨提示',\n 'MobileAlert.subTitle': '本站暂不支持移动端显示,请使用电脑打开',\n\n /** DynamicPagination */\n 'DynamicPagination.label': '每页',\n\n /** NotFoundTip */\n 'NotFoundTip.title': '抱歉,您访问的页面不存在。',\n 'NotFoundTip.backHome': '返回首页',\n\n /** Annotator */\n 'DDSAnnotator.save': '保存',\n 'DDSAnnotator.cancel': '取消',\n 'DDSAnnotator.delete': '删除',\n 'DDSAnnotator.reject': '拒绝',\n 'DDSAnnotator.approve': '通过',\n 'DDSAnnotator.prev': '上一张',\n 'DDSAnnotator.next': '下一张',\n 'DDSAnnotator.exit': '退出',\n 'DDSAnnotator.shortcuts': '快捷键',\n 'DDSAnnotator.confidence': '置信区间',\n 'DDSAnnotator.annotsList.categories': '分类',\n 'DDSAnnotator.annotsList.objects': '实例',\n 'DDSAnnotator.annotsList.hideAll': '隐藏全部',\n 'DDSAnnotator.annotsList.showAll': '显示全部',\n 'DDSAnnotator.annotsList.hideCate': '隐藏类别',\n 'DDSAnnotator.annotsList.showCate': '显示类别',\n 'DDSAnnotator.annotsList.hide': '隐藏',\n 'DDSAnnotator.annotsList.show': '显示',\n 'DDSAnnotator.annotsList.delete': '删除',\n 'DDSAnnotator.annotsList.convertToSmartMode': '转换至交互式智能分割',\n 'DDSAnnotator.toolbar.repeatPrevious': '复制上一张',\n 'DDSAnnotator.toolbar.undo': '撤销',\n 'DDSAnnotator.toolbar.redo': '重做',\n 'DDSAnnotator.toolbar.deleteAll': '移除全部',\n 'DDSAnnotator.toolbar.rectangle': '矩形',\n 'DDSAnnotator.toolbar.polygon': '多边形',\n 'DDSAnnotator.toolbar.skeleton': '骨骼(人体)',\n 'DDSAnnotator.toolbar.aiAnno': '智能标注',\n 'DDSAnnotator.toolbar.drag': '拖拽/选择工具',\n 'DDSAnnotator.toolbar.mask': '掩码分割',\n 'DDSAnnotator.zoomTool.reset': '重置尺寸',\n 'DDSAnnotator.zoomIn': '放大',\n 'DDSAnnotator.zoomOut': '缩小',\n 'DDSAnnotator.colorMode': '色彩模式 - 按类别 / 按实例',\n 'DDSAnnotator.imgDisplayTool.title': '显示设置',\n 'DDSAnnotator.imgDisplayTool.brightness': '亮度',\n 'DDSAnnotator.imgDisplayTool.contrast': '对比度',\n 'DDSAnnotator.imgDisplayTool.saturate': '饱和度',\n 'DDSAnnotator.toolbar.repeatPrevious.desc':\n '应用上一张图片的所有标注 (适用于视频的连续帧)',\n 'DDSAnnotator.toolbar.undo.desc': '撤销上一步操作',\n 'DDSAnnotator.toolbar.redo.desc': '恢复上一步撤销的操作',\n 'DDSAnnotator.toolbar.deleteAll.desc': '一键清除当前图片中所有实例',\n 'DDSAnnotator.toolbar.rectangle.desc':\n '单击确定起始点,拖动鼠标以创建围绕目标的矩形标注。',\n 'DDSAnnotator.toolbar.polygon.desc':\n '围绕目标单击添加顶点,创建闭合的多边形标注。',\n 'DDSAnnotator.toolbar.skeleton.desc':\n '单击并拖动鼠标以创建人体骨骼模型,然后修改各个点的位置。',\n 'DDSAnnotator.toolbar.mask.desc': '使用钢笔或笔刷工具创建像素级别的分割标注',\n 'DDSAnnotator.toolbar.aiAnno.desc':\n '在矩形/多边形/骨骼/掩码分割工具下开启智能标注,可进入交互式智能标注模式。',\n 'DDSAnnotator.toolbar.drag.desc':\n '拖拽模式下,可选中已有标注,并对其修改,点击空白区域取消选中。',\n 'DDSAnnotator.subtoolbar.mask.penAdd': '钢笔-新增',\n 'DDSAnnotator.subtoolbar.mask.penErase': '钢笔-移除',\n 'DDSAnnotator.subtoolbar.mask.brushAdd': '笔刷-新增',\n 'DDSAnnotator.subtoolbar.mask.brushErase': '笔刷-移除',\n 'DDSAnnotator.subtoolbar.mask.box': '交互式分割-智能矩形',\n 'DDSAnnotator.subtoolbar.mask.click': '交互式分割-智能点击',\n 'DDSAnnotator.subtoolbar.mask.stroke': '交互式分割-智能笔刷',\n 'DDSAnnotator.subtoolbar.mask.sam': '智能全景分割',\n 'DDSAnnotator.subtoolbar.mask.sam.desc': '通过 SAM 模型执行全景分割',\n 'DDSAnnotator.subtoolbar.mask.sam.notAllow':\n '当图中存在任意实例时, 该功能不可用',\n 'DDSAnnotator.subtoolbar.mask.edgeStitch': '智能边缘缝合',\n 'DDSAnnotator.annotsEditor.title': '修改标注实例',\n 'DDSAnnotator.annotsEditor.delete': '删除',\n 'DDSAnnotator.annotsEditor.finish': '完成',\n 'DDSAnnotator.annotsEditor.add': '添加类别',\n 'DDSAnnotator.annotsEditor.addCategory': '添加一个类别',\n 'DDSAnnotator.confirmLeave.content': '您当前的修改还未保存,确定要离开吗?',\n 'DDSAnnotator.confirmLeave.cancel': '取消',\n 'DDSAnnotator.confirmLeave.ok': '无需保存',\n 'DDSAnnotator.shortcuts.tools': '基础工具',\n 'DDSAnnotator.shortcuts.tools.rectangle': '矩形',\n 'DDSAnnotator.shortcuts.tools.polygon': '多边形',\n 'DDSAnnotator.shortcuts.tools.skeleton': '骨骼',\n 'DDSAnnotator.shortcuts.tools.drag': '拖拽/选择工具',\n 'DDSAnnotator.shortcuts.tools.mask': '遮罩分割工具',\n 'DDSAnnotator.shortcuts.general': '通用控制',\n 'DDSAnnotator.shortcuts.general.smart': '开启/关闭智能标注模式',\n 'DDSAnnotator.shortcuts.general.undo': '撤销',\n 'DDSAnnotator.shortcuts.general.redo': '重做',\n 'DDSAnnotator.shortcuts.general.deleteAll': '移除全部实例',\n 'DDSAnnotator.shortcuts.general.next': '下一张',\n 'DDSAnnotator.shortcuts.general.prev': '上一张',\n 'DDSAnnotator.shortcuts.general.save': '保存',\n 'DDSAnnotator.shortcuts.general.accept': '审核通过',\n 'DDSAnnotator.shortcuts.general.reject': '审核拒绝',\n 'DDSAnnotator.shortcuts.general.repeatPrevious': '复制上一张',\n 'DDSAnnotator.shortcuts.viewControl': '视图控制',\n 'DDSAnnotator.shortcuts.viewControl.zoomIn': '放大',\n 'DDSAnnotator.shortcuts.viewControl.zoomOut': '缩小',\n 'DDSAnnotator.shortcuts.viewControl.zoomReset': '重置尺寸以适应屏幕',\n 'DDSAnnotator.shortcuts.viewControl.hideCurrObject':\n '隐藏/显示当前选中的实例',\n 'DDSAnnotator.shortcuts.viewControl.hideCurrCategory':\n '隐藏/显示当前选中实例所属类别',\n 'DDSAnnotator.shortcuts.viewControl.hideAll': '隐藏/显示所有实例',\n 'DDSAnnotator.shortcuts.viewControl.panImage':\n '拖拽图片: 按住空格同时拖动鼠标',\n 'DDSAnnotator.shortcuts.annotsControl': '标注控制',\n 'DDSAnnotator.shortcuts.annotsControl.delete': '删除当前选中的实例',\n 'DDSAnnotator.shortcuts.annotsControl.finish': '完成当前实例的创建/修改',\n 'DDSAnnotator.shortcuts.annotsControl.cancel': '取消选中/放弃正在新建的实例',\n 'DDSAnnotator.msg.lostCategory': '{count}条标注缺失类别!',\n 'DDSAnnotator.annotsList.uncategorized': '未分类',\n 'DDSAnnotator.annotsList.point.notInImage': '不在图片内',\n 'DDSAnnotator.annotsList.point.notVisible': '在图中但不可见',\n 'DDSAnnotator.annotsList.point.visible': '可见',\n 'DDSAnnotator.anno.mask.emptyWarning': '请至少添加一个有效 Mask 标注',\n 'DDSAnnotator.anno.mask.translateToRleError': '转换 Mask 格式错误',\n\n /** Annotator.smart */\n 'DDSAnnotator.smart.infoModal.title': '体验智能标注',\n 'DDSAnnotator.smart.infoModal.content':\n '抱歉, DeepDataSpace的本地版本暂时不支持智能标注功能, 您可以前往官网了解更多信息或联系我们(deepdataspace_dm@idea.edu.cn)获取智能标注的体验通道。',\n 'DDSAnnotator.smart.infoModal.action': '前往官网',\n 'DDSAnnotator.smart.detection.name': '智能目标检测',\n 'DDSAnnotator.smart.segmentation.name': '智能图像分割(多边形)',\n 'DDSAnnotator.smart.pose.name': '智能姿态估计',\n 'DDSAnnotator.smart.mask.name': '智能全景分割',\n 'DDSAnnotator.smart.annotate': '生成标注',\n 'DDSAnnotator.smart.retry': '重新生成',\n 'DDSAnnotator.smart.modelTyle': '模型类型',\n 'DDSAnnotator.smart.detection.input': '选择或输入类别',\n 'DDSAnnotator.smart.pose.input': '选择模版',\n 'DDSAnnotator.smart.pose.apply': '保留当前结果',\n 'DDSAnnotator.smart.minArea': '最小分割面积',\n 'DDSAnnotator.smart.iouThres': 'IoU阈值',\n 'DDSAnnotator.smart.segmentation.tipsInitial':\n '提示:在目标对象周围拉一个包围框或单击其中心点,生成初始结果。',\n 'DDSAnnotator.smart.segmentation.tipsNext':\n '请修正标注结果: 请单击左键添加正点(目标包含该点),单击右键添加负点(目标不包含该点)。',\n 'DDSAnnotator.smart.msg.loading': '正在请求智能标注结果...',\n 'DDSAnnotator.smart.msg.success': '智能标注请求成功',\n 'DDSAnnotator.smart.msg.error': '智能标注请求失败',\n 'DDSAnnotator.smart.msg.labelRequired': '请至少选择一个目标类别',\n 'DDSAnnotator.smart.msg.confResults': '共有{count}条标注符合目标置信区间',\n 'DDSAnnotator.smart.msg.applyConf': '已保留{count}条标注,其他标注已移除',\n 'DDSAnnotator.smart.rateLimit.title': '提示',\n 'DDSAnnotator.smart.rateLimit.content':\n '非常抱歉,我们的公共服务器暂时负载不足,请稍后再试。',\n 'DDSAnnotator.smart.rateLimit.okText': '好的',\n 'DDSAnnotator.smart.detection.confidence': '置信度',\n 'DDSAnnotator.smart.back': '返回',\n 'DDSAnnotator.smart.tip': '提示',\n 'DDSAnnotator.smart.tip.ctrl': '按住ctrl进入回收未选标注模式',\n 'DDSAnnotator.smart.tip.recover': '回收未选标注',\n 'DDSAnnotator.smart.tip.overlayobject': '查看重叠的标注对象',\n 'DDSAnnotator.smart.tip.annotationApplied': '已添加{count}个标注对象',\n};\n","import ComponentsLocaleTexts from 'dds-components/locales/zh-CN';\n\nconst localeTexts = {\n /** aside */\n datasets: '数据集',\n projects: '项目',\n annotator: '标注器',\n annotate: '标注',\n lab: '实验室',\n docs: '文档',\n\n /** menu */\n 'menu.Home': '首页',\n 'menu.Dataset': '数据集',\n 'menu.Dataset.Dataset': '数据集',\n 'menu.Dataset.Datasets': '数据集',\n 'menu.Project': '项目',\n 'menu.Project.Projects': '项目列表',\n 'menu.Project.ProjectDetail': '项目详情',\n 'menu.Project.ProjectTaskWorkspace': '任务工作站',\n 'menu.Login': '登录',\n 'menu.Annotator': '标注',\n 'menu.Lab': '实验室',\n 'menu.Lab.Lab': '实验室',\n 'menu.Lab.Datasets': '数据集',\n 'menu.Lab.flagtool': '标记工具',\n\n /** user */\n login: '登录',\n logout: '退出登录',\n loginSuccess: '登录成功',\n loginAuthenticationFailed: '鉴权失败,请检查你的用户名或密码是否正确。',\n logoutSuccess: '登出成功',\n logoutFailed: '登出失败',\n signupSuccess: '注册成功,请查看邮箱完成新用户激活。',\n signupAuthenticationFailed: '注册失败,请检查邮箱或密码是否正确。',\n activationCheckLoading: '账户激活正在验证中,请稍等。',\n activationCheckSuccessed: '账户激活成功,即将跳转至登录页。',\n activationCheckFailed: '账户激活验证失败,请使用有效链接。',\n activationCheckFailedTitle: '链接已失效',\n activationCheckFailedTip: '激活链接已失效,请返回登录页重新发起注册申请。',\n backToLoginBtn: '返回登录页',\n newUser: '注册新账号',\n backtoLogin: '已有账号?立即登录',\n signup: '注册',\n username: '用户名',\n email: '邮箱',\n password: '密码',\n passwordConfirm: '确认密码',\n usernameTip: '请输入用户名',\n emailTip: '请输入邮箱',\n passwordTip: '请输入密码',\n passwordConfirmTip: '请确认密码',\n getStart: '开 始',\n checkEmailInbox:\n '验证邮件已发送至邮箱 {email} ,请在24小时内登录邮箱并点击链接完成您的帐号激活。',\n resendEmailTip: '在您的收件箱或垃圾箱中未找到新邮件?',\n resendEmailBtn: '点击重发一封邮件',\n resendEmailSuccess: '新邮件已发送',\n resendEmailFailed: '重发邮件失败',\n rewriteEmailAddress: '需要更改邮箱地址?',\n rewriteEmailBtn: '返回上一步',\n rewriteEmailTip: '使用新邮箱进行注册。',\n validatePwdRequire: '密码必须输入',\n validatePwdLengthMin: '密码长度不能小于8位',\n validatepwdFormat: '密码必须同时包含英文大小写、数字和特殊字符',\n validatePwdLengthMax: '密码长度不能大于20位',\n validatePwdConfirmRequire: '确认密码必须输入',\n validatePwdConfirmDiff: '两次输入的密码不一致',\n validateEmailRequire: '邮箱必须输入',\n validateEmailFormat: '邮箱格式错误',\n\n /** dataset */\n 'dataset.images': '张图片',\n 'dataset.detail.category': '分类',\n 'dataset.detail.labelSets': '标注集',\n 'dataset.diffMode.overlay': '覆盖',\n 'dataset.diffMode.tiled': '平铺',\n 'dataset.detail.labelSetsName': '名称',\n 'dataset.detail.confidence': '置信度',\n 'dataset.detail.style': '样式',\n 'dataset.detail.displayOptions': '展示选项',\n 'dataset.detail.showAnnotations': '显示选定类型的标注',\n 'dataset.detail.displayType': '类别',\n 'dataset.detail.analysis': '分析',\n 'dataset.detail.analModal.title': '分析',\n 'dataset.detail.analModal.btn': '分析 FN/FP',\n 'dataset.detail.analModal.select': '选择一个预标注集',\n 'dataset.detail.analModal.precision': '精度',\n 'dataset.detail.analModal.sort': '排序',\n 'dataset.detail.analModal.display': '展示',\n 'dataset.detail.analModal.diff': '对比',\n 'dataset.detail.analModal.score': '分数',\n 'dataset.detail.analModal.exit': '退出分析',\n\n 'dataset.toAnalysis.unSupportWarn': '您应该先加载包含目标检测结果的预标注集',\n 'dataset.toAnalysis.unSelectWarn': '请选择一个预标注集',\n 'dataset.onClickCopyLink.success': '复制链接成功!',\n 'dataset.detail.overlay': '覆盖',\n\n 'dataset.filter.newDataset': '新建数据集',\n 'dataset.filter.public': '公共',\n 'dataset.filter.private': '私有',\n 'dataset.create.modal.step.one': '创建',\n 'dataset.create.modal.step.prev': '< 返回上一步',\n 'dataset.create.modal.step.finish': '完成',\n 'dataset.create.success': '创建数据集成功。',\n 'dataset.create.error': '创建数据集失败: {error}',\n 'dataset.create.warn': '数据集名称为必填项,名称可以重复。',\n 'dataset.update.success': '更新数据集成功。',\n 'dataset.update.error': '更新数据集失败: {error}',\n 'dataset.update.warn': '未获取有效数据集ID,数据集更新失败。',\n 'dataset.import.success': '成功导入图片至当前数据集。',\n 'dataset.import.warn': '图片列表为空或无效,未能导入图片至数据集。',\n 'dataset.import.error': '导入图片失败: {error}',\n 'dataset.create.modal.title': '创建数据集',\n 'dataset.create.modal.finish': '成功导入图片至新数据集。',\n 'dataset.create.modal.required': '此项为必填项',\n 'dataset.create.modal.name': '名称',\n 'dataset.create.modal.name.tooltip': '数据集名称最长为64位',\n 'dataset.create.modal.name.placeholder': '请输入数据集名称',\n 'dataset.create.modal.desc': '描述',\n 'dataset.create.modal.desc.placeholder': '请输入描述',\n 'dataset.create.modal.auth': '权限',\n 'dataset.create.modal.auth.public': '公共',\n 'dataset.create.modal.auth.private': '私有',\n 'dataset.import.modal.title': '导入图片',\n 'dataset.import.modal.label': '图片链接',\n 'dataset.import.modal.upload': '批量上传',\n 'dataset.import.modal.upload.text': '单击或拖动文件到此区域上传',\n 'dataset.import.modal.upload.hint': '支持单个或批量上传',\n 'dataset.import.modal.addedImgCount': '已添加{count}张图片',\n 'dataset.import.modal.addUrl': '添加图片链接',\n 'dataset.import.modal.addUrl.btn': '添加',\n 'dataset.import.modal.placeholder':\n '请输入图片链接并点击\"添加\"按钮进行图片添加 或 点击\"上传\"按钮上传本地文件, \\n多个链接可以换行分隔, \\n例如: \\n https://xxx.com/xxx01.png \\n https://xxx.com/xxx02.png',\n 'dataset.import.modal.emptyImgs': '暂无图片',\n 'dataset.import.modal.tip.maxImgCount': '已超过最大图片数目限制,请检查',\n 'dataset.import.modal.tip.successLoad': '成功加载{count}张图片',\n 'dataset.import.modal.tip.partLoad':\n '成功加载{count}张图片,部分图片加载失败,清检查',\n 'dataset.import.modal.tip.policiesFail': '获取上传凭据失败,请重新尝试',\n 'dataset.import.modal.tip.someUploadFail': '部分图片上传失败,请重新尝试',\n 'dataset.import.edit.modal.title': '导入图片',\n 'dataset.import.modal.submit': '导入',\n 'dataset.import.modal.reset': '重置',\n 'dataset.edit.modal.title': '编辑数据集',\n 'dataset.edit.modal.submit': '更新',\n 'dataset.edit.modal.reset': '重置',\n\n /** Annotate */\n 'annotate.quick': '快速标注',\n 'annotate.quick.desc': '上传本地图片集,进行快速标注体验',\n 'annotate.collaborative': '协同标注',\n 'annotate.collaborative.desc': '创建标注项目,进行多人协同标注管理',\n\n /** Annotator */\n 'annotator.setting': '设置',\n 'annotator.annotate': '标注',\n 'annotator.export': '导出标注',\n 'annotator.formModal.title': '开始之前',\n 'annotator.formModal.importImages': '导入图片',\n 'annotator.notice':\n '快速标注模式不会上传任何图片或保存标注结果,为了防止数据丢失,建议您在离开前点击工作区右上方\"导出标注\"按钮,将标注结果保存到本地。',\n 'annotator.formModal.imageTips':\n '注意:最多导入{count}张图片,每张图片不超过{size}MB。',\n 'annotator.formModal.categories': '导入标注类别',\n 'annotator.formModal.addCategory': '添加',\n 'annotator.formModal.categoryPlaceholder':\n '请输入类别名称, 多个类别可以换行分隔, 例如: \\n person \\n dog \\n car',\n 'annotator.formModal.categoriesCount': '当前类别标签数量',\n 'annotator.formModal.fileRequiredMsg': '请至少导入一张图片',\n 'annotator.formModal.fileCountLimitMsg': '图片量不能超过{count}张',\n 'annotator.formModal.fileSizeLimitMsg': '单张图片不能超过{size}MB',\n 'annotator.formModal.categoryRequiredMsg': '请至少输入一个类别标签',\n 'annotator.formModal.deleteCategory.title': '注意',\n 'annotator.formModal.deleteCategory.desc':\n '有标注中使用了这个类别,请先手动删除这些标注或修改它们的类别',\n 'annotator.formModal.deleteImage.title': '注意',\n 'annotator.formModal.deleteImage.desc':\n '该图片内包含标注信息,请先手动删除这些标注',\n\n /** projects */\n 'proj.title': '项目',\n 'proj.table.name': '项目名称',\n 'proj.table.owner': '项目所有者',\n 'proj.table.datasets': '数据集',\n 'proj.table.progress': '任务进度',\n 'proj.table.PM': '项目经理',\n 'proj.table.status': '状态',\n 'proj.table.createAt': '创建时间',\n 'proj.table.action': '操作',\n 'proj.table.action.accept': '通过',\n 'proj.table.action.reject': '拒绝',\n 'proj.table.action.reject.tips': '确定要拒绝这个项目吗?',\n 'proj.table.action.edit': '编辑',\n 'proj.table.action.init': '初始化',\n 'proj.table.action.info': '信息',\n 'proj.table.action.detail': '详情',\n 'proj.table.action.export': '导出',\n 'proj.table.newProject': '新建项目',\n\n 'proj.table.detail.index': '索引',\n 'proj.table.detail.labelLeader': '标注组长',\n 'proj.table.detail.labeler': '标注员',\n 'proj.table.detail.reviewLeader': '审核组长',\n 'proj.table.detail.reviewer': '审核员',\n 'proj.table.detail.progress': '进度',\n 'proj.table.detail.status': '状态',\n 'proj.table.detail.action': '操作',\n\n 'proj.table.detail.action.assignLeader': '分配组长',\n 'proj.table.detail.action.assignWorker': '分配操作人',\n 'proj.table.detail.action.detail': '详情',\n 'proj.table.detail.action.restart': '重新开始',\n 'proj.table.detail.action.accept': '通过',\n 'proj.table.detail.action.reject': '拒绝',\n 'proj.table.detail.action.reject.tips': '确定要拒绝这个任务吗?',\n 'proj.table.detail.action.view': '查看',\n 'proj.table.detail.action.startLabel': '开始标注',\n 'proj.table.detail.action.startReview': '开始审核',\n\n 'proj.table.detail.batchAssignLeader': '批量分配组长',\n 'proj.detail.owner': '项目所有者',\n 'proj.detail.managers': '项目经理',\n\n 'proj.assign.modal.assign': '分配',\n 'proj.assign.modal.reassign': '重新分配',\n 'proj.assign.modal.ll.label': '标注团队负责人',\n 'proj.assign.modal.ll.placeholder': '选择一名成员作为团队负责人来分配标注员',\n 'proj.assign.modal.ll.tooltip': '也可以将自己分配为团队负责人',\n 'proj.assign.modal.ll.msg': '请选择一名成员作为此任务的团队负责人',\n 'proj.assign.modal.rl.label': '审核团队负责人',\n 'proj.assign.modal.rl.placeholder': '选择一名成员作为团队负责人来分配审核员',\n 'proj.assign.modal.rl.tooltip': '也可以将自己分配为团队负责人',\n 'proj.assign.modal.rl.msg': '请选择一名成员作为此任务的团队负责人',\n 'proj.assign.modal.ler.label': '标注员',\n 'proj.assign.modal.ler.placeholder': '选择{times}名成员作为标注员工作',\n 'proj.assign.modal.ler.tootltip': '也可以将自己分配为标注员',\n 'proj.assign.modal.ler.msg': '请选择{times}名成员作为此任务的标注员',\n 'proj.assign.modal.ler.msgTimes': '必须是{times}名成员',\n 'proj.assign.modal.rer.label': '审核员',\n 'proj.assign.modal.rer.placeholder': '选择{times}名成员作为标注员工作',\n 'proj.assign.modal.rer.tootltip': '也可以将自己分配为审核员',\n 'proj.assign.modal.rer.msg': '请选择{times}名成员作为此任务的审核员',\n 'proj.assign.modal.rer.msgTimes': '必须是{times}名成员',\n 'proj.assign.modal.reassign.label': '重新分配给',\n 'proj.assign.modal.reassign.placeholder': '选择一名成员进行重新分配',\n 'proj.assign.modal.reassign.msg': '请选择一名成员进行重新分配',\n\n 'proj.detail.modal.reassign': '重新分配',\n 'proj.detail.modal.index': '索引',\n 'proj.detail.modal.role': '角色',\n 'proj.detail.modal.worker': '人员',\n 'proj.detail.modal.progress': '进度',\n 'proj.detail.modal.action': '操作',\n 'proj.detail.modal.title': 'ID:{id} 的任务详情',\n\n 'proj.taskProgress.done': '完成',\n 'proj.taskProgress.inRework': '已驳回',\n 'proj.taskProgress.toReview': '待审核',\n 'proj.taskProgress.toLabel': '待标注',\n\n 'proj.assignModalFinish.assignLeader': '分配团队负责人成功!',\n 'proj.assignModalFinish.assignWorker': '分配团队工作人员成功!',\n 'proj.assignModalFinish.reassignWorker': '重新分配团队工作人员成功!',\n 'proj.assignModalFinish.restarTask': '重新开始任务成功!',\n 'proj.assignModalFinish.commiTask': '提交任务成功!',\n 'proj.assignModalFinish.changeTaskStatus': '修改任务状态成功!',\n\n 'proj.projectModalFinish.new': '新建项目成功!',\n 'proj.projectModalFinish.edit': '编辑项目成功!',\n 'proj.projectModalFinish.init': '初始化项目成功!',\n 'proj.projectModalFinish.change': '修改项目状态成功!',\n\n 'proj.onLabelSave.warning': '没有添加任何标注,请检查',\n 'proj.onLabelSave.loading': '正在保存标注...',\n 'proj.onLabelSave.save': '保存成功!',\n 'proj.onLabelSave.finish': '完成工作!',\n 'proj.onLabelSave.error': '保存标注失败,请重试',\n 'proj.onReviewResult.loading': '正在保存审核结果...',\n 'proj.onReviewResult.save': '保存成功!',\n 'proj.onReviewResult.finish': '完成工作!',\n 'proj.onReviewResult.error': '保存审核结果失败,请重试',\n 'proj.tabItems.toLabel': '待标注 ({num})',\n 'proj.tabItems.toReview': '待审核 ({num})',\n 'proj.tabItems.inRework': '已驳回 ({num})',\n 'proj.tabItems.done': '已完成 ({num})',\n\n 'proj.editModal.editProj': '编辑项目',\n 'proj.editModal.newProj': '新建项目',\n 'proj.editModal.stepForm.title': '基础信息',\n 'proj.editModal.stepForm.desc': '仅限管理员',\n 'proj.editModal.stepForm.name.label': '项目名称',\n 'proj.editModal.stepForm.name.placeholder': '请输入项目名称',\n 'proj.editModal.stepForm.name.rule': '请输入项目名称',\n 'proj.editModal.stepForm.desc.label': '描述',\n 'proj.editModal.stepForm.desc.placeholder': '选填,关于项目的描述',\n 'proj.editModal.stepForm.dataset.label': '数据集',\n 'proj.editModal.stepForm.dataset.placeholder': '请至少连接一个数据集至此项目',\n 'proj.editModal.stepForm.dataset.rule': '请至少选择一个数据集',\n 'proj.editModal.stepForm.preLabel.label': '预标注',\n 'proj.editModal.stepForm.preLabel.placeholder': '请输入预标注名称',\n 'proj.editModal.stepForm.category.label': '分类',\n 'proj.editModal.stepForm.category.placeholder': '请以逗号分隔输入项目分类',\n 'proj.editModal.stepForm.category.rule': '请输入项目分类',\n 'proj.editModal.stepForm.PM.label': '项目经理',\n 'proj.editModal.stepForm.PM.placeholder':\n '请选择至少一名成员作为项目经理来管理任务',\n 'proj.editModal.stepForm.PM.extra': '也可以将自己分配为项目经理',\n 'proj.editModal.stepForm.PM.rule': '请至少选择一名成员作为项目经理',\n 'proj.editModal.stepForm.task.title': '流程设置',\n 'proj.editModal.stepForm.task.desc': '仅项目经理可见',\n 'proj.editModal.stepForm.task.msg':\n '仅项目经理可见(您也可以在前一步中将自己分配为项目经理)。',\n 'proj.editModal.stepForm.radio.label': '任务分配方式',\n 'proj.editModal.stepForm.radio.dataset': '数据集',\n 'proj.editModal.stepForm.radio.size': '批次大小',\n 'proj.editModal.stepForm.batchSize.label': '批次大小',\n 'proj.editModal.stepForm.batchSize.placeholder': '请输入批次大小',\n 'proj.editModal.stepForm.batchSize.tooltip':\n '批次大小设置为每个任务的图像数量',\n 'proj.editModal.stepForm.batchSize.msg': '请输入批次大小',\n 'proj.editModal.stepForm.rview.label': '审核者设置',\n 'proj.editModal.stepForm.rview.no': '无审核者',\n 'proj.editModal.stepForm.rview.one': '1 名审核者',\n 'proj.editModal.setWorkflowNow': '立即设置工作流程',\n\n 'proj.infoModal.title': '项目信息',\n 'proj.infoModal.name': '项目名称',\n 'proj.infoModal.desc': '描述',\n 'proj.infoModal.label': '项目经理',\n\n 'proj.exportModal.title': '导出到数据集',\n 'proj.exportModal.labelName.name': '标注集名称',\n 'proj.exportModal.labelName.rule': '请输入标注集名称',\n 'proj.exportModal.labelName.tips':\n '点击“确定”后,可以用标注集名称查看所选数据集的标注结果。',\n 'proj.exportModal.submitSuccess':\n '已成功导出标注集 \"{name}\" 到所选数据集,您可以在数据集模块中查看标注结果。',\n\n 'proj.workspace.eTask.startLabel': '开始标注',\n 'proj.workspace.eTask.edit': '编辑',\n 'proj.workspace.eTask.startRework': '处理驳回',\n 'proj.workspace.eTask.startReview': '开始审核',\n 'proj.workspace.eProj.startLabeling': '开始标注',\n 'proj.workspace.eProj.startRework': '处理驳回',\n 'proj.workspace.eProj.startReview': '开始审核',\n 'proj.workspace.eProj.role': '当前角色',\n\n 'proj.statusMap.waiting': '等待中',\n 'proj.statusMap.initializing': '初始化中',\n 'proj.statusMap.working': '进行中',\n 'proj.statusMap.reviewing': '审核中',\n 'proj.statusMap.rejected': '已拒绝',\n 'proj.statusMap.accepted': '已通过',\n 'proj.statusMap.exported': '已导出',\n\n 'proj.eTaskStatus.waiting': '等待中',\n 'proj.eTaskStatus.working': '进行中',\n 'proj.eTaskStatus.reviewing': '审核中',\n 'proj.eTaskStatus.rejected': '已拒绝',\n 'proj.eTaskStatus.accepted': '已通过',\n\n /** Lab */\n 'lab.card.title': '标记工具',\n 'lab.card.subTitle': '选择需要标记的图像',\n 'lab.toolsBar.selectAll': '全选',\n 'lab.toolsBar.selectSome': '已选择 {num} 张',\n 'lab.toolsBar.selectInvert': '反选',\n 'lab.toolsBar.filter': '过滤',\n 'lab.toolsBar.saveAs': '将已选项目保存为',\n 'lab.toolsBar.genEmbed': '生成 Embedding',\n 'lab.toolsBar.updateOrder': '更新顺序',\n\n 'lab.displayOption.showAnnotations': '显示选定类型的标注',\n 'lab.displayOption.showAllCategory': '显示所有分类的标注',\n 'lab.displayOption.showImgDesc': '显示图像描述',\n 'lab.displayOption.showBoxText': '在框中显示文本',\n 'lab.displayOption.showSegFilling': '显示分割线条(F)',\n 'lab.displayOption.showSegContour': '显示分割轮廓(C)',\n 'lab.displayOption.showMattingColorFill': '显示抠图颜色填充',\n 'lab.displayOption.showKeyPointsLine': '显示关键点线条',\n 'lab.displayOption.showKeyPointsBox': '显示关键点框',\n 'lab.onClickCopyLink.success': '复制链接成功!',\n\n /** app */\n 'layout.title': 'Deep Data Space',\n\n /** error code & status msg or error handler msg **/\n 'requestConfig.errorData.msg': '请求错误,请重试({code})',\n 'requestConfig.success.msg': '请求成功。',\n 'requestConfig.unAuth.msg': '未授权的访问。请登录。',\n 'requestConfig.permissionDenied.msg':\n '权限被拒绝。您的帐户没有执行此操作所需的权限。',\n 'requestConfig.responseStatus.msg': '响应状态:{status}',\n 'requestConfig.noResponse.msg': '无响应!请重试。',\n 'requestConfig.requestError.msg': '请求错误,请重试。',\n 'requestConfig.errorContent.msg': '请求文本中存在敏感词,请检查。',\n\n 'errCode.PartialSuccessBatchAssignLeaders': '成功分配组长。',\n 'errCode.PartialSuccessBatchAssignWorkers': '成功分配操作人。',\n 'errCode.BadRequest': '错误请求',\n 'errCode.ParameterMissing': '参数缺失',\n 'errCode.ParameterIsInvalid': '参数无效',\n 'errCode.CaptchaVerificationFailed': '验证码验证失败。',\n 'errCode.AnnotationNotListOfObj': '标注对象必须是一个对象列表。',\n 'errCode.AnnotationMissingCatName': '标注对象缺失类别名称。',\n 'errCode.AnnotationMissingBBox': '注释对象缺少边框。',\n 'errCode.AnnotationBBoxFormatError': '标注对象边框格式错误',\n 'errCode.AnnotationFormatError': '标注对象格式错误。',\n 'errCode.FlagGroupsNotListOfObj': '标记组必须是一个对象列表。',\n 'errCode.FlagObjectMissingFlag': '标记对象缺失标记。',\n 'errCode.FlagObjectFlagValueInvalid':\n '标记对象标记无效,标记值必须是[0, 1, 2]其中之一。',\n 'errCode.FlagObjectMissingIDs': '标记对象缺失ID。',\n 'errCode.FlagObjectIDsNotList': '标记对象ID必须是一个列表。',\n 'errCode.LabelSetNameInvalid':\n '标注集名称不能是GroundTruth和UserAnnotation。',\n 'errCode.LabelSetNameConflicts': '目标标注集名称已被占用。',\n 'errCode.UserNotFoundForLabelProject': '标注项目未找到用户。',\n 'errCode.UserNotActiveForLabelProject': '标注项目用户未激活。',\n 'errCode.DatasetNotFoundForLabelProject': '标注项目未找到数据集。',\n 'errCode.LabelTaskNotFoundForLabelProject': '标注项目未找到标注任务。',\n 'errCode.CreateLabelProjectRequireManager':\n '创建标注项目时项目经理不能为空。',\n 'errCode.CreateLabelProjectRequireDataset': '创建标注项目时数据集不能为空。',\n 'errCode.CreateLabelProjectRequireCategory': '创建标注项目时类别不能为空。',\n 'errCode.CreateLabelProjectDatasetOccupied': '数据集已被其他标注项目占用。',\n 'errCode.EditLabelProjectRequireManager': '编辑标注项目时项目经理不能为空。',\n 'errCode.InitLabelProjectMustBeWaiting': '标注项目的初始化状态必须为等待中。',\n 'errCode.InitLabelProjectTaskConfigError':\n '批次大小、标注员、审核员必须同时设置。',\n 'errCode.QALabelProjectActionError': '操作错误,必须为接受或拒绝。',\n 'errCode.QALabelProjectMustBeReviewing': '标注项目的状态必须为审核中。',\n 'errCode.ExportLabelProjectMustBeAccepted': '标注项目的状态必须为已接受。',\n 'errCode.LeaderIDIsRequired': '标注组长ID和审核组长ID不能同时为空。',\n 'errCode.LabelerIDIsRequired': '标注员ID和审核员ID不能同时为空。',\n 'errCode.LabelProjectRoleIsNotTaskLevel':\n '标注项目中的角色不是任务级别,因此无法被绑定到某个任务。',\n 'errCode.CantReplaceRoleWithTheSameUser': '不能用同个用户替换角色。',\n 'errCode.OldUserDoesNotHaveTheTaskRole': '旧用户没有可被替换的任务角色。',\n 'errCode.NewUserAlreadyHaveTheTaskRole': '新用户已有任务角色。',\n 'errCode.CantTransferRoleBetweenDifferentTask':\n '角色不支持在不同任务间迁移。',\n 'errCode.CantTransferRoleToDifferentKind': '无法将角色转换为其它类型。',\n 'errCode.RestartLabelTaskMustBeRejected': '标注任务状态必须为拒绝。',\n 'errCode.QALabelTaskActionError': '操作错误,必须为接受、拒绝或强制接受。',\n 'errCode.AcceptLabelTaskMustBeReviewing': '接受标注任务的状态必须为审核中。',\n 'errCode.RejectLabelTaskMustBeReviewing': '拒绝标注任务的状态必须为审核中。',\n 'errCode.ForceAcceptLabelTaskMustBeRejected':\n '强制接受标注任务的状态必须为审核中。',\n 'errCode.LabelAnnotationMissingFields': '标注字段缺失。',\n 'errCode.LabelAnnotationFieldValueInvalid': '标注字段对应数值无效。',\n 'errCode.LabelImageRequireTaskStatusWorking':\n '标注图片要求任务状态为进行中。',\n 'errCode.LabelImageRequireUnfinishedReviewing':\n '标注图片要求任务状态为未完成审核中。',\n 'errCode.ReviewImageRequireTaskStatusWorking':\n '审核图片要求任务状态为进行中。',\n 'errCode.ReviewImageRequireFinishedLabeling': '审核图片需要已完成标注。',\n 'errCode.ReviewImageTargetLabelNotFound': '审核图片目标标签未找到。',\n 'errCode.ReviewImageFoundExistedReview': '图片已经被审核过。',\n 'errCode.CantDeleteAllOwnersOfLabelProject': '不能删除标注项目的所有所有者。',\n 'errCode.NumOfTaskLeaderMismatchesConfig': '任务负责人数量与配置不匹配。',\n 'errCode.TaskDoesNotRequireReviewer': '任务不需要审核员。',\n 'errCode.NumOfTaskLabelerMismatchesConfig': '任务标注员数量与配置不匹配。',\n 'errCode.NumOfTaskReviewerMismatchesConfig': '任务审核员数量与配置不匹配。',\n 'errCode.TryInitRoleForTaskWithActiveRoles':\n '无法为已有活跃状态角色的任务初始化角色。',\n 'errCode.TaskRoleNotOfLeaderKind': '任务角色不是领导者类型。',\n 'errCode.Unauthorized': '未经授权。',\n 'errCode.Forbidden': '禁止访问。',\n 'errCode.UserAuthenticationFailed': '用户认证失败。',\n 'errCode.UserCantViewLabelProjectTask': '用户无法查看标注项目任务。',\n 'errCode.UserCantViewLabelProjectRole': '用户无法查看标注项目角色。',\n 'errCode.UserCantCreateLabelProject': '用户无法创建标注项目',\n 'errCode.UserCantViewLabelProject': '用户无法查看标注项目。',\n 'errCode.UserCantEditLabelProject': '用户无法编辑标注项目。',\n 'errCode.UserCantInitLabelProject': '用户无法初始化标注项目',\n 'errCode.UserCantQALabelProject': '用户无法进行标注项目的 QA。',\n 'errCode.UserCantExportLabelProject': '用户无法导出标注项目。',\n 'errCode.UserCantAssignLabelTaskLeader': '用户无法指定标注任务负责人。',\n 'errCode.UserCantAssignLabelTaskWorker': '用户无法指定标注任务标注员。',\n 'errCode.UserCantRestartLabelTask': '用户无法重新启动标注任务。',\n 'errCode.UserCantQALabelTask': '用户无法进行标注任务的 QA。',\n 'errCode.UserCantLabelTaskImage': '用户无法标注任务图像。',\n 'errCode.UserCantReviewTaskImage': '用户无法审核任务图像。',\n 'errCode.NotFound': '未找到。',\n 'errCode.DatasetNotFound': '数据集未找到。',\n 'errCode.DatasetNotReadable': '数据集不可读。',\n 'errCode.DatasetMissingEmbdFile': '数据集缺少 embedding 文件。',\n 'errCode.DatasetImageNotFound': '数据集图像未找到。',\n 'errCode.DatasetHasNoFNFPData': '数据集没有 FN/FP 数据。',\n 'errCode.DatasetLabelNotFound': '数据集标签未找到。',\n 'errCode.DatasetFNFPPrecisionNotFound': '数据集 FN/FP 精度未找到。',\n 'errCode.DatasetSubsetNotFound': '数据集子集未找到。',\n 'errCode.LabelProjectNotFound': '标注项目未找到。',\n 'errCode.LabelProjectRoleNotFound': '标注项目角色未找到。',\n 'errCode.LabelProjectTaskNotFound': '标注项目任务未找到。',\n 'errCode.LabelTaskImageNotFound': '标注任务图像未找到。',\n 'errCode.TokenExceedsRateLimit': '该账号请求超过限频。',\n 'errCode.InternalError': '内部错误。',\n 'errCode.FailedToCloneLabelSet': '克隆标注集失败。',\n\n 'errCode.UserPasswordInvalid': '用户密码无效',\n 'errCode.UserEmailInvalid': '用户电子邮件无效',\n 'errCode.UserEmailOccupied': '用户电子邮件已被占用',\n 'errCode.UserActivationTokenInvalid': '用户激活令牌无效',\n 'errCode.UserActivationTokenExpired': '用户激活令牌已过期',\n 'errCode.UserActivationTokenUsed': '用户激活令牌已被使用',\n 'errCode.UserAlreadyActivated': '用户已经激活',\n 'errCode.UserEmailWaitForActivation': '该邮箱已注册,等待用户激活。',\n 'errCode.UserNotFound': '找不到用户',\n 'errCode.UserEmailNotFound': '找不到用户电子邮件',\n};\n\nexport default {\n ...ComponentsLocaleTexts,\n ...localeTexts,\n};\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\nimport {\n createIntl,\n IntlShape,\n MessageDescriptor,\n} from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/react-intl@3.12.1_react@18.2.0/node_modules/react-intl';\nimport { getPluginManager } from '../core/plugin';\nimport EventEmitter from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/event-emitter@0.3.5/node_modules/event-emitter';\n// @ts-ignore\nimport warning from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/warning@4.0.3/node_modules/warning';\n\nexport {\n createIntl,\n};\nexport {\n FormattedDate,\n FormattedDateParts,\n FormattedDisplayName,\n FormattedHTMLMessage,\n FormattedList,\n FormattedMessage,\n FormattedNumber,\n FormattedNumberParts,\n FormattedPlural,\n FormattedRelativeTime,\n FormattedTime,\n FormattedTimeParts,\n IntlContext,\n IntlProvider,\n RawIntlProvider,\n createIntlCache,\n defineMessages,\n injectIntl,\n useIntl,\n} from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/react-intl@3.12.1_react@18.2.0/node_modules/react-intl';\n\nlet g_intl: IntlShape;\n\nconst useLocalStorage = true;\n\n// @ts-ignore\nexport const event = new EventEmitter();\n\nexport const LANG_CHANGE_EVENT = Symbol('LANG_CHANGE');\n\nimport enUS0 from 'antd/es/locale/en_US';\nimport lang_enUS0 from \"/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/locales/en-US.ts\";\nimport zhCN0 from 'antd/es/locale/zh_CN';\nimport lang_zhCN0 from \"/Users/zhuyuanhao/Documents/deepdataspace/packages/app/src/locales/zh-CN.ts\";\n\nexport const localeInfo: {[key: string]: any} = {\n 'en-US': {\n messages: {\n ...lang_enUS0,\n },\n locale: 'en-US',\n antd: {\n ...enUS0,\n },\n momentLocale: '',\n },\n 'zh-CN': {\n messages: {\n ...lang_zhCN0,\n },\n locale: 'zh-CN',\n antd: {\n ...zhCN0,\n },\n momentLocale: 'zh-cn',\n },\n};\n\n/**\n * 增加一个新的国际化语言\n * @param name 语言的 key\n * @param messages 对应的枚举对象\n * @param extraLocales momentLocale, antd 国际化\n */\nexport const addLocale = (\n name: string,\n messages: Object,\n extraLocales: {\n momentLocale:string;\n antd: import('antd/es/locale').Locale\n },\n) => {\n if (!name) {\n return;\n }\n // 可以合并\n const mergeMessages = localeInfo[name]?.messages\n ? Object.assign({}, localeInfo[name].messages, messages)\n : messages;\n\n // 用户只是追加 messages 时,extraLocales 可选\n const { momentLocale = localeInfo[name]?.momentLocale, antd = localeInfo[name]?.antd } = extraLocales || {};\n const locale = name.split('-')?.join('-')\n localeInfo[name] = {\n messages: mergeMessages,\n locale,\n momentLocale: momentLocale,\n antd,\n };\n // 如果这是的 name 和当前的locale 相同需要重新设置一下,不然更新不了\n if (locale === getLocale()) {\n event.emit(LANG_CHANGE_EVENT, locale);\n }\n};\n\nconst applyRuntimeLocalePlugin = (initialValue: any) => {\n return getPluginManager().applyPlugins({\n key: 'locale',\n type: 'modify',\n initialValue\n });\n}\n\nconst _createIntl = (locale: string) => {\n const runtimeLocale = applyRuntimeLocalePlugin(localeInfo[locale]);\n const { cache, ...config } = runtimeLocale;\n return createIntl(config, cache);\n}\n\n/**\n * 获取当前的 intl 对象,可以在 node 中使用\n * @param locale 需要切换的语言类型\n * @param changeIntl 是否不使用 g_intl\n * @returns IntlShape\n */\nexport const getIntl = (locale?: string, changeIntl?: boolean) => {\n // 如果全局的 g_intl 存在,且不是 setIntl 调用\n if (g_intl && !changeIntl && !locale) {\n return g_intl;\n }\n // 获取当前 locale\n if (!locale) locale = getLocale();\n // 如果存在于 localeInfo 中\n if (locale&&localeInfo[locale]) {\n return _createIntl(locale);\n }\n // 不存在需要一个报错提醒\n warning(\n !locale||!!localeInfo[locale],\n `The current popular language does not exist, please check the locales folder!`,\n );\n // 使用 zh-CN\n if (localeInfo[\"en-US\"]) {\n return _createIntl(\"en-US\");\n }\n\n // 如果还没有,返回一个空的\n return createIntl({\n locale: \"en-US\",\n messages: {}\n });\n};\n\n/**\n * 切换全局的 intl 的设置\n * @param locale 语言的key\n */\nexport const setIntl = (locale: string) => {\n g_intl = getIntl(locale, true);\n};\n\n/**\n * 获取当前选择的语言\n * @returns string\n */\nexport const getLocale = () => {\n const runtimeLocale = applyRuntimeLocalePlugin({});\n // runtime getLocale for user define\n if (typeof runtimeLocale?.getLocale === 'function') {\n return runtimeLocale.getLocale();\n }\n // please clear localStorage if you change the baseSeparator config\n // because changing will break the app\n const lang =\n navigator.cookieEnabled && typeof localStorage !== 'undefined' && useLocalStorage\n ? window.localStorage.getItem('umi_locale')\n : '';\n // support baseNavigator, default true\n let browserLang;\n const isNavigatorLanguageValid =\n typeof navigator !== 'undefined' && typeof navigator.language === 'string';\n browserLang = isNavigatorLanguageValid\n ? navigator.language.split('-').join('-')\n : '';\n return lang || browserLang || \"en-US\";\n};\n\n\n/**\n * 获取当前选择的方向\n * @returns string\n */\nexport const getDirection = () => {\n const lang = getLocale();\n // array with all prefixs for rtl langueges ex: ar-EG , he-IL\n const rtlLangs = ['he', 'ar', 'fa', 'ku']\n const direction = rtlLangs.filter(lng => lang.startsWith(lng)).length ? 'rtl' : 'ltr';\n return direction;\n};\n\n/**\n * 切换语言\n * @param lang 语言的 key\n * @param realReload 是否刷新页面,默认刷新\n * @returns string\n */\nexport const setLocale = (lang: string, realReload: boolean = true) => {\n //const { pluginManager } = useAppContext();\n //const runtimeLocale = pluginManagerapplyPlugins({\n // key: 'locale',\n // workaround: 不使用 ApplyPluginsType.modify 是为了避免循环依赖,与 fast-refresh 一起用时会有问题\n // type: 'modify',\n // initialValue: {},\n //});\n\n const updater = () => {\n if (getLocale() !== lang) {\n if (navigator.cookieEnabled && typeof window.localStorage !== 'undefined' && useLocalStorage) {\n window.localStorage.setItem('umi_locale', lang || '');\n }\n setIntl(lang);\n if (realReload) {\n window.location.reload();\n } else {\n event.emit(LANG_CHANGE_EVENT, lang);\n // chrome 不支持这个事件。所以人肉触发一下\n if (window.dispatchEvent) {\n const event = new Event('languagechange');\n window.dispatchEvent(event);\n }\n }\n }\n }\n\n //if (typeof runtimeLocale?.setLocale === 'function') {\n // runtimeLocale.setLocale({\n // lang,\n // realReload,\n // updater: updater,\n // });\n // return;\n //}\n\n updater();\n};\n\nlet firstWaring = true;\n\n/**\n * intl.formatMessage 的语法糖\n * @deprecated 使用此 api 会造成切换语言的时候无法自动刷新,请使用 useIntl 或 injectIntl\n * @param descriptor { id : string, defaultMessage : string }\n * @param values { [key:string] : string }\n * @returns string\n */\nexport const formatMessage: IntlShape['formatMessage'] = (\n descriptor: MessageDescriptor,\n values: any,\n) => {\n if (firstWaring) {\n warning(\n false,\n `Using this API will cause automatic refresh when switching languages, please use useIntl or injectIntl.\n\n使用此 api 会造成切换语言的时候无法自动刷新,请使用 useIntl 或 injectIntl。\n\nhttp://j.mp/37Fkd5Q\n `,\n );\n firstWaring = false;\n }\n if (!g_intl) {\n setIntl(getLocale());\n }\n return g_intl.formatMessage(descriptor, values);\n};\n\n/**\n * 获取语言列表\n * @returns string[]\n */\nexport const getAllLocales = () => Object.keys(localeInfo);\n","// @ts-nocheck\n// This file is generated by Umi automatically\n// DO NOT CHANGE IT MANUALLY!\n// @ts-ignore\nimport type { models as rawModels } from '@@/plugin-model/model';\nimport isEqual from '/Users/zhuyuanhao/Documents/deepdataspace/node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js';\nimport React, { useContext, useEffect, useMemo, useRef, useState } from 'react';\n\ntype Models = typeof rawModels;\n\ntype GetNamespaces = {\n [K in keyof M]: M[K] extends { namespace: string }\n ? M[K]['namespace']\n : never;\n}[keyof M];\n\ntype Namespaces = GetNamespaces;\n\n// @ts-ignore\nconst Context = React.createContext<{ dispatcher: Dispatcher }>(null);\n\nclass Dispatcher {\n callbacks: Record> = {};\n data: Record = {};\n update = (namespace: Namespaces) => {\n if (this.callbacks[namespace]) {\n this.callbacks[namespace].forEach((cb) => {\n try {\n const data = this.data[namespace];\n cb(data);\n } catch (e) {\n cb(undefined);\n }\n });\n }\n };\n}\n\ninterface ExecutorProps {\n hook: () => any;\n onUpdate: (val: any) => void;\n namespace: string;\n}\n\nfunction Executor(props: ExecutorProps) {\n const { hook, onUpdate, namespace } = props;\n\n const updateRef = useRef(onUpdate);\n const initialLoad = useRef(false);\n\n let data: any;\n try {\n data = hook();\n } catch (e) {\n console.error(\n `plugin-model: Invoking '${namespace || 'unknown'}' model failed:`,\n e,\n );\n }\n\n // 首次执行时立刻返回初始值\n useMemo(() => {\n updateRef.current(data);\n }, []);\n\n // React 16.13 后 update 函数用 useEffect 包裹\n useEffect(() => {\n if (initialLoad.current) {\n updateRef.current(data);\n } else {\n initialLoad.current = true;\n }\n });\n\n return null;\n}\n\nconst dispatcher = new Dispatcher();\n\nexport function Provider(props: {\n models: Record;\n children: React.ReactNode;\n}) {\n return (\n \n {Object.keys(props.models).map((namespace) => {\n return (\n {\n dispatcher.data[namespace] = val;\n dispatcher.update(namespace);\n }}\n />\n );\n })}\n {props.children}\n \n );\n}\n\ntype GetModelByNamespace = {\n [K in keyof M]: M[K] extends { namespace: string; model: unknown }\n ? M[K]['namespace'] extends N\n ? M[K]['model'] extends (...args: any) => any\n ? ReturnType\n : never\n : never\n : never;\n}[keyof M];\n\ntype Model = GetModelByNamespace;\ntype Selector = (model: Model) => S;\n\ntype SelectedModel = T extends (...args: any) => any\n ? ReturnType>\n : Model;\n\nexport function useModel(namespace: N): Model;\n\nexport function useModel(\n namespace: N,\n selector: Selector,\n): SelectedModel;\n\nexport function useModel(\n namespace: N,\n selector?: Selector,\n): SelectedModel {\n const { dispatcher } = useContext<{ dispatcher: Dispatcher }>(Context);\n const selectorRef = useRef(selector);\n selectorRef.current = selector;\n const [state, setState] = useState(() =>\n selectorRef.current\n ? selectorRef.current(dispatcher.data[namespace])\n : dispatcher.data[namespace],\n );\n const stateRef = useRef(state);\n stateRef.current = state;\n\n const isMount = useRef(false);\n useEffect(() => {\n isMount.current = true;\n return () => {\n isMount.current = false;\n };\n }, []);\n\n useEffect(() => {\n const handler = (data: any) => {\n if (!isMount.current) {\n // 如果 handler 执行过程中,组件被卸载了,则强制更新全局 data\n // TODO: 需要加个 example 测试\n setTimeout(() => {\n dispatcher.data[namespace] = data;\n dispatcher.update(namespace);\n });\n } else {\n const currentState = selectorRef.current\n ? selectorRef.current(data)\n : data;\n const previousState = stateRef.current;\n if (!isEqual(currentState, previousState)) {\n // 避免 currentState 拿到的数据是老的,从而导致 isEqual 比对逻辑有问题\n stateRef.current = currentState;\n setState(currentState);\n }\n }\n };\n\n dispatcher.callbacks[namespace] ||= new Set() as any; // rawModels 是 umi 动态生成的文件,导致前面 callback[namespace] 的类型无法推导出来,所以用 as any 来忽略掉\n dispatcher.callbacks[namespace].add(handler);\n dispatcher.update(namespace);\n\n return () => {\n dispatcher.callbacks[namespace].delete(handler);\n };\n }, [namespace]);\n\n return state;\n}\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgClassification = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"classification_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M797.723 912.007h-149.1c-59.634 0-109.325-49.691-109.325-109.326V539.325h263.356c59.635 0 109.326 49.69 109.326 109.325v149.073c0 29.804-9.944 54.65-29.804 79.495-29.83 24.818-54.703 34.762-84.48 34.762zm-422.373 0H226.277c-64.593 0-114.257-49.691-114.257-109.326V653.608c0-29.803 9.917-59.634 34.762-79.494 19.86-19.887 49.691-34.79 79.495-34.79h258.398v263.357c0 29.804-9.943 54.65-29.803 79.495-24.846 19.887-49.691 29.83-79.522 29.83zm422.373-422.373H534.339V226.277c0-29.804 9.97-59.634 34.79-79.495 19.887-19.86 49.69-34.762 79.521-34.762h149.073c59.608 4.932 109.298 54.623 109.298 114.257V375.35c0 29.83-9.916 54.676-29.803 79.495-24.846 24.845-49.691 34.762-79.495 34.762zm-313.048 0H221.32c-59.635 0-109.326-49.691-109.326-109.326V231.235c0-29.803 9.944-59.607 34.79-79.494 19.86-24.819 49.69-34.762 74.536-34.762h149.073c59.634 0 109.298 49.664 109.298 109.298v263.384h4.958v-.027z\" }));\nexport { SvgClassification as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTc5Ny43MjMgOTEyLjAwN2gtMTQ5LjFjLTU5LjYzNCAwLTEwOS4zMjUtNDkuNjkxLTEwOS4zMjUtMTA5LjMyNlY1MzkuMzI1aDI2My4zNTZjNTkuNjM1IDAgMTA5LjMyNiA0OS42OSAxMDkuMzI2IDEwOS4zMjV2MTQ5LjA3M2MwIDI5LjgwNC05Ljk0NCA1NC42NS0yOS44MDQgNzkuNDk1LTI5LjgzIDI0LjgxOC01NC43MDMgMzQuNzYyLTg0LjQ4IDM0Ljc2MnptLTQyMi4zNzMgMEgyMjYuMjc3Yy02NC41OTMgMC0xMTQuMjU3LTQ5LjY5MS0xMTQuMjU3LTEwOS4zMjZWNjUzLjYwOGMwLTI5LjgwMyA5LjkxNy01OS42MzQgMzQuNzYyLTc5LjQ5NCAxOS44Ni0xOS44ODcgNDkuNjkxLTM0Ljc5IDc5LjQ5NS0zNC43OWgyNTguMzk4djI2My4zNTdjMCAyOS44MDQtOS45NDMgNTQuNjUtMjkuODAzIDc5LjQ5NS0yNC44NDYgMTkuODg3LTQ5LjY5MSAyOS44My03OS41MjIgMjkuODN6bTQyMi4zNzMtNDIyLjM3M0g1MzQuMzM5VjIyNi4yNzdjMC0yOS44MDQgOS45Ny01OS42MzQgMzQuNzktNzkuNDk1IDE5Ljg4Ny0xOS44NiA0OS42OS0zNC43NjIgNzkuNTIxLTM0Ljc2MmgxNDkuMDczYzU5LjYwOCA0LjkzMiAxMDkuMjk4IDU0LjYyMyAxMDkuMjk4IDExNC4yNTdWMzc1LjM1YzAgMjkuODMtOS45MTYgNTQuNjc2LTI5LjgwMyA3OS40OTUtMjQuODQ2IDI0Ljg0NS00OS42OTEgMzQuNzYyLTc5LjQ5NSAzNC43NjJ6bS0zMTMuMDQ4IDBIMjIxLjMyYy01OS42MzUgMC0xMDkuMzI2LTQ5LjY5MS0xMDkuMzI2LTEwOS4zMjZWMjMxLjIzNWMwLTI5LjgwMyA5Ljk0NC01OS42MDcgMzQuNzktNzkuNDk0IDE5Ljg2LTI0LjgxOSA0OS42OS0zNC43NjIgNzQuNTM2LTM0Ljc2MmgxNDkuMDczYzU5LjYzNCAwIDEwOS4yOTggNDkuNjY0IDEwOS4yOTggMTA5LjI5OHYyNjMuMzg0aDQuOTU4di0uMDI3eiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDatasetDetection = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"datasetDetection_svg__icon\", viewBox: \"0 0 1092 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 213.281, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"m514.859 116.928 318.336 130.624-1.28 3.2 2.88-1.152v448l-320 128-320-128v-448l2.816 1.152-1.28-3.2 318.528-130.624zm-256 227.2v310.144l224 89.6V434.24h1.28l-225.28-90.112zm512 0L545.323 434.24h1.408v309.632l224-89.6V344.128zm-256.064-158.08-236.352 97.024L514.795 377.6l236.288-94.528-236.288-97.024zM132.523 728.064v160h160v64h-224v-224h64zm830.272 0v224h-224v-64h160v-160h64zm-670.272-672v64h-160v160h-64v-224h224zm670.272 0v224h-64v-160h-160v-64h224z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M4.267 0h1024v1024h-1024z\", fill: \"none\" }));\nexport { SvgDatasetDetection as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwOTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjEzLjI4MSIgaGVpZ2h0PSIyMDAiPjxwYXRoIGQ9Im01MTQuODU5IDExNi45MjggMzE4LjMzNiAxMzAuNjI0LTEuMjggMy4yIDIuODgtMS4xNTJ2NDQ4bC0zMjAgMTI4LTMyMC0xMjh2LTQ0OGwyLjgxNiAxLjE1Mi0xLjI4LTMuMiAzMTguNTI4LTEzMC42MjR6bS0yNTYgMjI3LjJ2MzEwLjE0NGwyMjQgODkuNlY0MzQuMjRoMS4yOGwtMjI1LjI4LTkwLjExMnptNTEyIDBMNTQ1LjMyMyA0MzQuMjRoMS40MDh2MzA5LjYzMmwyMjQtODkuNlYzNDQuMTI4em0tMjU2LjA2NC0xNTguMDgtMjM2LjM1MiA5Ny4wMjRMNTE0Ljc5NSAzNzcuNmwyMzYuMjg4LTk0LjUyOC0yMzYuMjg4LTk3LjAyNHpNMTMyLjUyMyA3MjguMDY0djE2MGgxNjB2NjRoLTIyNHYtMjI0aDY0em04MzAuMjcyIDB2MjI0aC0yMjR2LTY0aDE2MHYtMTYwaDY0em0tNjcwLjI3Mi02NzJ2NjRoLTE2MHYxNjBoLTY0di0yMjRoMjI0em02NzAuMjcyIDB2MjI0aC02NHYtMTYwaC0xNjB2LTY0aDIyNHoiLz48cGF0aCBkPSJNNC4yNjcgMGgxMDI0djEwMjRoLTEwMjR6IiBmaWxsPSJub25lIi8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDatasetSegment = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"datasetSegment_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M179.2 524.288h678.912a25.6 25.6 0 0 0 0-51.2H179.2a25.6 25.6 0 0 0 0 51.2zm700.672-245.504v-56.32l-164.864 156.16H774.4l105.472-99.84zm0 73.216-27.904 26.624h27.904V352zm-242.176 26.624 242.176-229.376v-15.616h-43.264L578.304 378.624h59.392zm-136.96 0 258.56-244.992h-59.392L441.6 378.624h59.136zm-136.704 0 258.304-244.992h-59.392l-258.56 244.992h59.648zm-136.96 0 258.56-244.992H426.24L167.68 378.624h59.392zm62.72-244.992L156.16 260.352v55.808l192.512-182.528h-58.88zm-133.632 0v53.504l56.32-53.504h-56.32zm618.24 742.4 105.472-99.584v-56.576l-164.864 156.16H774.4zm105.472 0v-26.368l-27.904 26.368h27.904zm-301.568 0h59.392l242.176-229.376v-15.36h-43.264L578.304 876.032zm121.6-244.736L441.6 876.032h59.136l258.56-244.736h-59.392zm-136.96 0-258.56 244.736h59.648l258.304-244.736h-59.392zm-136.704 0L167.68 876.032h59.392l258.56-244.736H426.24zm-136.448 0L156.16 758.016v55.808l192.512-182.528h-58.88zM156.16 684.544l56.32-53.248h-56.32v53.248z\" }));\nexport { SvgDatasetSegment as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTE3OS4yIDUyNC4yODhoNjc4LjkxMmEyNS42IDI1LjYgMCAwIDAgMC01MS4ySDE3OS4yYTI1LjYgMjUuNiAwIDAgMCAwIDUxLjJ6bTcwMC42NzItMjQ1LjUwNHYtNTYuMzJsLTE2NC44NjQgMTU2LjE2SDc3NC40bDEwNS40NzItOTkuODR6bTAgNzMuMjE2LTI3LjkwNCAyNi42MjRoMjcuOTA0VjM1MnptLTI0Mi4xNzYgMjYuNjI0IDI0Mi4xNzYtMjI5LjM3NnYtMTUuNjE2aC00My4yNjRMNTc4LjMwNCAzNzguNjI0aDU5LjM5MnptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkyaC01OS4zOTJMNDQxLjYgMzc4LjYyNGg1OS4xMzZ6bS0xMzYuNzA0IDAgMjU4LjMwNC0yNDQuOTkyaC01OS4zOTJsLTI1OC41NiAyNDQuOTkyaDU5LjY0OHptLTEzNi45NiAwIDI1OC41Ni0yNDQuOTkySDQyNi4yNEwxNjcuNjggMzc4LjYyNGg1OS4zOTJ6bTYyLjcyLTI0NC45OTJMMTU2LjE2IDI2MC4zNTJ2NTUuODA4bDE5Mi41MTItMTgyLjUyOGgtNTguODh6bS0xMzMuNjMyIDB2NTMuNTA0bDU2LjMyLTUzLjUwNGgtNTYuMzJ6bTYxOC4yNCA3NDIuNCAxMDUuNDcyLTk5LjU4NHYtNTYuNTc2bC0xNjQuODY0IDE1Ni4xNkg3NzQuNHptMTA1LjQ3MiAwdi0yNi4zNjhsLTI3LjkwNCAyNi4zNjhoMjcuOTA0em0tMzAxLjU2OCAwaDU5LjM5MmwyNDIuMTc2LTIyOS4zNzZ2LTE1LjM2aC00My4yNjRMNTc4LjMwNCA4NzYuMDMyem0xMjEuNi0yNDQuNzM2TDQ0MS42IDg3Ni4wMzJoNTkuMTM2bDI1OC41Ni0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuOTYgMC0yNTguNTYgMjQ0LjczNmg1OS42NDhsMjU4LjMwNC0yNDQuNzM2aC01OS4zOTJ6bS0xMzYuNzA0IDBMMTY3LjY4IDg3Ni4wMzJoNTkuMzkybDI1OC41Ni0yNDQuNzM2SDQyNi4yNHptLTEzNi40NDggMEwxNTYuMTYgNzU4LjAxNnY1NS44MDhsMTkyLjUxMi0xODIuNTI4aC01OC44OHpNMTU2LjE2IDY4NC41NDRsNTYuMzItNTMuMjQ4aC01Ni4zMnY1My4yNDh6Ii8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDatasetMatting = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"datasetMatting_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M832 288h-96v-96c0-52.9-43.1-96-96-96H192c-52.9 0-96 43.1-96 96v448c0 52.9 43.1 96 96 96h96v96c0 52.9 43.1 96 96 96h448c52.9 0 96-43.1 96-96V384c0-52.9-43.1-96-96-96zM160 640V192c0-17.6 14.4-32 32-32h448c17.6 0 32 14.4 32 32v96h-32c-17.7 0-32 14.3-32 32s14.3 32 32 32h32v288c0 17.6-14.4 32-32 32H352v-32c0-17.7-14.3-32-32-32s-32 14.3-32 32v32h-96c-17.6 0-32-14.4-32-32zm704 192c0 17.6-14.4 32-32 32H384c-17.6 0-32-14.4-32-32v-96h288c52.9 0 96-43.1 96-96V352h96c17.6 0 32 14.4 32 32v448z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M320 576c17.7 0 32-14.3 32-32v-64c0-17.7-14.3-32-32-32s-32 14.3-32 32v64c0 17.7 14.3 32 32 32zm160-224h64c17.7 0 32-14.3 32-32s-14.3-32-32-32h-64c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-160 64c17.7 0 32-14.3 32-32 0-17.6 14.4-32 32-32 17.7 0 32-14.3 32-32s-14.3-32-32-32c-52.9 0-96 43.1-96 96 0 17.7 14.3 32 32 32z\" }));\nexport { SvgDatasetMatting as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTgzMiAyODhoLTk2di05NmMwLTUyLjktNDMuMS05Ni05Ni05NkgxOTJjLTUyLjkgMC05NiA0My4xLTk2IDk2djQ0OGMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg5NnY5NmMwIDUyLjkgNDMuMSA5NiA5NiA5Nmg0NDhjNTIuOSAwIDk2LTQzLjEgOTYtOTZWMzg0YzAtNTIuOS00My4xLTk2LTk2LTk2ek0xNjAgNjQwVjE5MmMwLTE3LjYgMTQuNC0zMiAzMi0zMmg0NDhjMTcuNiAwIDMyIDE0LjQgMzIgMzJ2OTZoLTMyYy0xNy43IDAtMzIgMTQuMy0zMiAzMnMxNC4zIDMyIDMyIDMyaDMydjI4OGMwIDE3LjYtMTQuNCAzMi0zMiAzMkgzNTJ2LTMyYzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjMyaC05NmMtMTcuNiAwLTMyLTE0LjQtMzItMzJ6bTcwNCAxOTJjMCAxNy42LTE0LjQgMzItMzIgMzJIMzg0Yy0xNy42IDAtMzItMTQuNC0zMi0zMnYtOTZoMjg4YzUyLjkgMCA5Ni00My4xIDk2LTk2VjM1Mmg5NmMxNy42IDAgMzIgMTQuNCAzMiAzMnY0NDh6Ii8+PHBhdGggZD0iTTMyMCA1NzZjMTcuNyAwIDMyLTE0LjMgMzItMzJ2LTY0YzAtMTcuNy0xNC4zLTMyLTMyLTMycy0zMiAxNC4zLTMyIDMydjY0YzAgMTcuNyAxNC4zIDMyIDMyIDMyem0xNjAtMjI0aDY0YzE3LjcgMCAzMi0xNC4zIDMyLTMycy0xNC4zLTMyLTMyLTMyaC02NGMtMTcuNyAwLTMyIDE0LjMtMzIgMzJzMTQuMyAzMiAzMiAzMnptLTE2MCA2NGMxNy43IDAgMzItMTQuMyAzMi0zMiAwLTE3LjYgMTQuNC0zMiAzMi0zMiAxNy43IDAgMzItMTQuMyAzMi0zMnMtMTQuMy0zMi0zMi0zMmMtNTIuOSAwLTk2IDQzLjEtOTYgOTYgMCAxNy43IDE0LjMgMzIgMzIgMzJ6Ii8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDatasetKeypoint = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"datasetKeypoint_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M938.667 298.667c0 70.613-57.387 128-128 128s-128-57.387-128-128c0-1.92 0-3.627.213-5.334L501.12 238.72a107.03 107.03 0 0 1-63.787 55.253l69.334 138.24c15.36-3.626 31.573-5.546 48-5.546C672.213 426.667 768 522.453 768 640s-95.787 213.333-213.333 213.333c-85.334 0-159.147-50.56-193.067-123.093l-34.133 22.613c8.96 17.28 13.866 36.907 13.866 57.814 0 70.613-57.386 128-128 128s-128-57.387-128-128 57.387-128 128-128c34.774 0 66.134 13.653 88.96 36.053l44.8-29.867c-3.84-15.573-5.76-32-5.76-48.853 0-85.973 51.2-160.213 124.587-193.92L391.68 297.6A106.475 106.475 0 0 1 298.667 192c0-58.88 47.786-106.667 106.666-106.667S512 133.12 512 192c0 1.707 0 3.627-.213 5.333l180.053 53.974a127.957 127.957 0 0 1 118.827-80.64c70.613 0 128 57.386 128 128z\" }));\nexport { SvgDatasetKeypoint as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTkzOC42NjcgMjk4LjY2N2MwIDcwLjYxMy01Ny4zODcgMTI4LTEyOCAxMjhzLTEyOC01Ny4zODctMTI4LTEyOGMwLTEuOTIgMC0zLjYyNy4yMTMtNS4zMzRMNTAxLjEyIDIzOC43MmExMDcuMDMgMTA3LjAzIDAgMCAxLTYzLjc4NyA1NS4yNTNsNjkuMzM0IDEzOC4yNGMxNS4zNi0zLjYyNiAzMS41NzMtNS41NDYgNDgtNS41NDZDNjcyLjIxMyA0MjYuNjY3IDc2OCA1MjIuNDUzIDc2OCA2NDBzLTk1Ljc4NyAyMTMuMzMzLTIxMy4zMzMgMjEzLjMzM2MtODUuMzM0IDAtMTU5LjE0Ny01MC41Ni0xOTMuMDY3LTEyMy4wOTNsLTM0LjEzMyAyMi42MTNjOC45NiAxNy4yOCAxMy44NjYgMzYuOTA3IDEzLjg2NiA1Ny44MTQgMCA3MC42MTMtNTcuMzg2IDEyOC0xMjggMTI4cy0xMjgtNTcuMzg3LTEyOC0xMjggNTcuMzg3LTEyOCAxMjgtMTI4YzM0Ljc3NCAwIDY2LjEzNCAxMy42NTMgODguOTYgMzYuMDUzbDQ0LjgtMjkuODY3Yy0zLjg0LTE1LjU3My01Ljc2LTMyLTUuNzYtNDguODUzIDAtODUuOTczIDUxLjItMTYwLjIxMyAxMjQuNTg3LTE5My45MkwzOTEuNjggMjk3LjZBMTA2LjQ3NSAxMDYuNDc1IDAgMCAxIDI5OC42NjcgMTkyYzAtNTguODggNDcuNzg2LTEwNi42NjcgMTA2LjY2Ni0xMDYuNjY3UzUxMiAxMzMuMTIgNTEyIDE5MmMwIDEuNzA3IDAgMy42MjctLjIxMyA1LjMzM2wxODAuMDUzIDUzLjk3NGExMjcuOTU3IDEyNy45NTcgMCAwIDEgMTE4LjgyNy04MC42NGM3MC42MTMgMCAxMjggNTcuMzg2IDEyOCAxMjh6Ii8+PC9zdmc+\";\n","import { ReactComponent as ClassifyIcon } from '@/assets/svg/classification.svg';\nimport { ReactComponent as DetectIcon } from '@/assets/svg/datasetDetection.svg';\nimport { ReactComponent as SegmentIcon } from '@/assets/svg/datasetSegment.svg';\nimport { ReactComponent as MattingIcon } from '@/assets/svg/datasetMatting.svg';\nimport { ReactComponent as KeypointIcon } from '@/assets/svg/datasetKeypoint.svg';\n\nexport const DEFAULT_NAME = 'Deep Data Space';\n\nexport const LOGO_SRC =\n 'https://img.alicdn.com/tfs/TB1YHEpwUT1gK0jSZFhXXaAtVXa-28-27.svg';\n\nexport const DEFAULT_PAGE_SIZE = 50;\n\nexport const DEFAULT_PAGE_SIZE_OPTIONS = [10, 20, 50, 100, 200];\n\nexport const IMG_PAGE_SIZE_OPTIONS = [10, 20, 50, 100]; // [10, 20, 50, 100]\n\nexport const IMG_CLOUMN_COUNT_MAX = 8;\n\nexport enum AnnotationType {\n Classification = 'Classification',\n Detection = 'Detection',\n Segmentation = 'Segmentation',\n Matting = 'Matting',\n KeyPoints = 'KeyPoints',\n Mask = 'Mask',\n}\n\nexport enum DisplayOption {\n showAnnotations = 'showAnnotations',\n showAllCategory = 'showAllCategory',\n showImgDesc = 'showImgDesc',\n showBoxText = 'showBoxText',\n showSegFilling = 'showSegFilling',\n showSegContour = 'showSegContour',\n showMattingColorFill = 'showMattingColorFill',\n showKeyPointsLine = 'showKeyPointsLine',\n showKeyPointsBox = 'showKeyPointsBox',\n}\n\nexport const ANNOTATION_TYPE_ICONS = {\n [AnnotationType.Classification]: ClassifyIcon,\n [AnnotationType.Detection]: DetectIcon,\n [AnnotationType.Segmentation]: SegmentIcon,\n [AnnotationType.Matting]: MattingIcon,\n [AnnotationType.KeyPoints]: KeypointIcon,\n [AnnotationType.Mask]: MattingIcon,\n};\n\nexport const DISPLAY_OPTION_LABELS = {\n [DisplayOption.showAnnotations]: 'lab.displayOption.showAnnotations',\n [DisplayOption.showAllCategory]: 'lab.displayOption.showAllCategory',\n [DisplayOption.showImgDesc]: 'lab.displayOption.showImgDesc',\n [DisplayOption.showBoxText]: 'lab.displayOption.showBoxText',\n [DisplayOption.showSegFilling]: 'lab.displayOption.showSegFilling',\n [DisplayOption.showSegContour]: 'lab.displayOption.showSegContour',\n [DisplayOption.showMattingColorFill]:\n 'lab.displayOption.showMattingColorFill',\n [DisplayOption.showKeyPointsLine]: 'lab.displayOption.showKeyPointsLine',\n [DisplayOption.showKeyPointsBox]: 'lab.displayOption.showKeyPointsBox',\n};\n\nexport const BASE_DISPLAY_OPTIONS = [\n DisplayOption.showAnnotations,\n DisplayOption.showAllCategory,\n DisplayOption.showImgDesc,\n];\n\n/** By default, 6 types of line segments are provided. */\nexport const LABELS_STROKE_DASH = [[0], [2], [5], [10], [1, 5, 3], [5, 2, 10]];\n\n/** By default, 6 types of color aplha are provided */\nexport const LABELS_COLOR_APLHA = [1, 0.4, 0.6, 0.8, 0.85, 0.9];\n\n/** By default, 6 types of line width are provided */\nexport const LABELS_LINE_WIDTH = [1, 1.5, 1.75, 2, 2.25, 2.5];\n\nexport enum LabelDiffMode {\n Overlay = 'dataset.diffMode.overlay',\n Tiled = 'dataset.diffMode.tiled',\n}\n\nexport const LABEL_DIFF_MODE_OPTIONS = [\n LabelDiffMode.Overlay,\n LabelDiffMode.Tiled,\n];\n\nexport enum IMG_FLAG {\n /** For page default. */\n all = -1,\n /** Unflaged */\n unflaged = 0,\n /** Positive */\n picked = 1,\n /** Negative */\n rejected = 2,\n}\n\nexport const IMG_FLAG_COLOR = {\n [IMG_FLAG.all]: 'transparent',\n [IMG_FLAG.unflaged]: '#8C8C8C',\n [IMG_FLAG.picked]: '#52C41A',\n [IMG_FLAG.rejected]: '#F5222D',\n};\n\nexport const IMG_FLAG_RESULTS = [\n { value: IMG_FLAG.picked, tip: `save as 'positive'` },\n { value: IMG_FLAG.rejected, tip: `save as 'negative'` },\n { value: IMG_FLAG.unflaged, tip: `save as 'unset'` },\n];\n\nexport const IMG_FLAG_OPTIONS = [\n { value: IMG_FLAG.all, name: 'all' },\n { value: IMG_FLAG.unflaged, name: 'unset' },\n { value: IMG_FLAG.picked, name: 'positive' },\n { value: IMG_FLAG.rejected, name: 'negative' },\n];\n\nexport enum LABEL_SOURCE {\n 'gt' = 'GT',\n 'user' = 'User',\n 'pred' = 'Pred',\n}\n\nexport enum COMPARISONS_SORTBY {\n /** Sort by the number of missed detections in the image. */\n 'fn' = 'fn',\n /** Sort by the number of false detections in the image. */\n 'fp' = 'fp',\n}\n\nexport const COMPARISONS_SORTBY_OPTOIONS = [\n { value: COMPARISONS_SORTBY.fn, name: 'FN count' },\n { value: COMPARISONS_SORTBY.fp, name: 'FP count' },\n];\n\nexport enum COMPARE_RESULT {\n /** Ok */\n 'ok' = 'OK',\n /** Missed detections (GT) */\n 'fn' = 'FN',\n /** False detections (Pred) */\n 'fp' = 'FP',\n}\n\nexport const COMPARE_RESULT_FILL_COLORS = {\n [COMPARE_RESULT.ok]: '',\n [COMPARE_RESULT.fn]: 'rgba(255,0,0,0.4)',\n [COMPARE_RESULT.fp]: 'rgba(0,0,255,0.4)',\n};\n\nexport const COMPARISONS_DISPLAY_OPTOIONS = [\n { value: LABEL_SOURCE.gt, name: 'GT - Matched' },\n { value: COMPARE_RESULT.fn, name: 'GT - FN' },\n { value: LABEL_SOURCE.pred, name: 'Prediction - Matched' },\n { value: COMPARE_RESULT.fp, name: 'Prediction - FP' },\n];\n\n/**\n * User\n */\nexport enum STORAGE_KEY {\n AUTH_TOKEN = 'auth_token',\n}\n\nexport enum EUserStatus {\n Active = 'active',\n Inactive = 'inactive',\n Activating = 'activating',\n}\n\nexport enum ImageSource {\n Upload = 'self_uploaded',\n DirectUrl = 'direct_url',\n}\n\nexport enum EnumTaskStatus {\n Waiting = 'waiting',\n Running = 'running',\n Success = 'success',\n Failed = 'failed',\n Fail = 'fail',\n}\n","/**\n * Project status\n */\nexport enum EProjectStatus {\n Waiting = 'waiting',\n Initializing = 'initializing',\n Working = 'working',\n Reviewing = 'reviewing',\n Rejected = 'rejected',\n Accepted = 'accepted',\n Exported = 'exported',\n}\n\nexport const PROJECT_STATUS_MAP = {\n [EProjectStatus.Waiting]: {\n text: 'proj.statusMap.waiting',\n color: 'default',\n },\n [EProjectStatus.Initializing]: {\n text: 'proj.statusMap.initializing',\n color: 'default',\n },\n [EProjectStatus.Working]: {\n text: 'proj.statusMap.working',\n color: 'processing',\n },\n [EProjectStatus.Reviewing]: {\n text: 'proj.statusMap.reviewing',\n color: 'warning',\n },\n [EProjectStatus.Rejected]: {\n text: 'proj.statusMap.rejected',\n color: 'error',\n },\n [EProjectStatus.Accepted]: {\n text: 'proj.statusMap.accepted',\n color: 'success',\n },\n [EProjectStatus.Exported]: {\n text: 'proj.statusMap.exported',\n color: 'default',\n },\n};\n\nexport enum ETaskStatus {\n Waiting = 'waiting',\n Working = 'working',\n Reviewing = 'reviewing',\n Rejected = 'rejected',\n Accepted = 'accepted',\n}\n\nexport const TASK_STATUS_MAP = {\n [ETaskStatus.Waiting]: {\n text: 'proj.eTaskStatus.waiting',\n color: 'default',\n },\n [ETaskStatus.Working]: {\n text: 'proj.eTaskStatus.working',\n color: 'processing',\n },\n [ETaskStatus.Reviewing]: {\n text: 'proj.eTaskStatus.reviewing',\n color: 'warning',\n },\n [ETaskStatus.Rejected]: {\n text: 'proj.eTaskStatus.rejected',\n color: 'error',\n },\n [ETaskStatus.Accepted]: {\n text: 'proj.eTaskStatus.accepted',\n color: 'success',\n },\n};\n\nexport enum EQaAction {\n Accept = 'accept',\n Reject = 'reject',\n ForceAccept = 'force_accept',\n}\n\nexport enum ETaskImageStatus {\n Labeling = 'labeling',\n Reviewing = 'reviewing',\n Rejected = 'rejected',\n Accepted = 'accepted',\n}\n","import { useModel } from '@umijs/max';\nimport { NsProject } from '@/types/project';\n\nexport enum EProjectRole {\n Owner = 'owner',\n Manager = 'manager',\n LabelLeader = 'label_leader',\n ReviewLeader = 'review_leader',\n Labeler = 'labeler',\n Reviewer = 'reviewer',\n}\n\nexport enum EProjectAction {\n /** project */\n ProjectEdit = 0,\n ProjectInfo,\n ProjectInit,\n ProjectQa,\n ProjectExport,\n /** task */\n AssignLeader = 100,\n TaskQa,\n AssignLabeler,\n AssignReviewer,\n RestartTask,\n StartLabel,\n StartReview,\n CommitReviewTask,\n View,\n}\n\nconst RolePermissions: Record = {\n [EProjectRole.Owner]: [\n EProjectAction.ProjectEdit,\n EProjectAction.ProjectQa,\n EProjectAction.View,\n EProjectAction.ProjectExport,\n ],\n [EProjectRole.Manager]: [\n EProjectAction.ProjectInit,\n EProjectAction.ProjectInfo,\n EProjectAction.AssignLeader,\n EProjectAction.TaskQa,\n EProjectAction.View,\n ],\n [EProjectRole.LabelLeader]: [\n EProjectAction.AssignLabeler,\n EProjectAction.RestartTask,\n EProjectAction.View,\n ],\n [EProjectRole.ReviewLeader]: [\n EProjectAction.AssignReviewer,\n EProjectAction.View,\n ],\n [EProjectRole.Labeler]: [EProjectAction.StartLabel],\n [EProjectRole.Reviewer]: [\n EProjectAction.StartReview,\n EProjectAction.CommitReviewTask,\n ],\n};\n\nexport default () => {\n const { user } = useModel('user');\n\n /**\n * Get the corresponding project role of the current user.\n * @param project\n * @param task\n * @returns\n */\n const getUserRoles = (\n project?: NsProject.Project,\n task?: NsProject.ProjectTask,\n ) => {\n if (!user.userId || !project) return [];\n\n const roles = [];\n if (user.userId === project.owner.id) {\n roles.push(EProjectRole.Owner);\n }\n if (project.managers.find((item) => item.id === user.userId)) {\n roles.push(EProjectRole.Manager);\n }\n if (task) {\n if (task.labelLeader?.userId === user.userId) {\n roles.push(EProjectRole.LabelLeader);\n }\n if (task.reviewLeader?.userId === user.userId) {\n roles.push(EProjectRole.ReviewLeader);\n }\n if (task.labelers.find((item) => item.userId === user.userId)) {\n roles.push(EProjectRole.Labeler);\n }\n if (task.reviewers.find((item) => item.userId === user.userId)) {\n roles.push(EProjectRole.Reviewer);\n }\n }\n return roles;\n };\n\n const checkPermission = (\n roles: EProjectRole[] = [],\n requiredPermissions: EProjectAction,\n ) => {\n const permissions: EProjectAction[] = [];\n roles.forEach((role: EProjectRole) => {\n const roleP = RolePermissions[role];\n roleP.forEach((perm) => {\n if (!permissions.includes(perm)) {\n permissions.push(perm);\n }\n });\n });\n return permissions.includes(requiredPermissions);\n };\n\n return {\n getUserRoles,\n checkPermission,\n };\n};\n","import { useModel } from '@umijs/max';\nimport { useImmer } from 'use-immer';\nimport { useRequest } from 'ahooks';\nimport {\n fetchProjectDetail,\n fetchProjectTasks,\n fetchUserLint,\n qaTask,\n requestAssignTeamLeader,\n requestAssignWorkers,\n requestCommitReiviewTask,\n requestReassignWorker,\n requestRestartTask,\n} from '@/services/project';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { message } from 'antd';\nimport { EQaAction } from '../constants';\nimport { getUrlPathnameLastKey } from 'dds-utils/url';\nimport { NsProject } from '@/types/project';\n\nconst DEFAULT_PAGE_SIZE = 20;\n\ninterface PageState {\n page: number;\n pageSize: number;\n}\n\ninterface PageData {\n isPm?: boolean;\n projectDetail?: NsProject.Project;\n list: NsProject.ProjectTask[];\n selectedTaskIds: string[];\n total: number;\n}\n\nexport enum ASSIGN_TYPE {\n labelLeader,\n reviewLeader,\n labeler,\n reviewer,\n reassign,\n}\n\nexport interface AssignModalForm {\n labelLeaderId?: string;\n reviewLeaderId?: string;\n labelerIds?: string[];\n reviewerIds?: string[];\n reassigner?: string;\n}\n\nexport interface AssignModal {\n show: boolean;\n types: ASSIGN_TYPE[];\n tasks: NsProject.ProjectTask[];\n initialValues: AssignModalForm;\n reassignTarget?: NsProject.ProjectWorker;\n}\n\nconst INIT_ASSIGN_MODAL = {\n show: false,\n types: [],\n tasks: [],\n initialValues: {},\n};\n\nexport default () => {\n const { user } = useModel('user');\n const [pageData, setPageData] = useImmer({\n list: [],\n total: 0,\n selectedTaskIds: [],\n });\n const [pageState, setPageState] = useImmer({\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n });\n const [taskDetailModalIndex, setTaskDetailModalIndex] = useImmer<\n number | undefined\n >(undefined);\n const [assignModal, setAssignModal] =\n useImmer(INIT_ASSIGN_MODAL);\n\n const { loading, run: loadPageData } = useRequest(\n (page?: number, pageSize?: number) => {\n setPageData((s) => {\n s.list = [];\n });\n // const id = user.userId;\n return fetchProjectTasks({\n projectId: getUrlPathnameLastKey(),\n pageNum: page || pageState.page,\n pageSize: pageSize || pageState.pageSize,\n });\n },\n {\n manual: true,\n debounceWait: 100,\n refreshDeps: [pageState.page, pageState.pageSize],\n onSuccess: ({ taskList, total }) => {\n setPageData((s) => {\n s.list = taskList;\n s.total = total;\n s.selectedTaskIds = [];\n });\n },\n onError: () => {},\n },\n );\n\n const { run: loadProjectDetail } = useRequest(\n () => {\n return fetchProjectDetail(getUrlPathnameLastKey());\n },\n {\n manual: true,\n debounceWait: 100,\n refreshDeps: [pageState.page, pageState.pageSize],\n onSuccess: (project) => {\n setPageData((s) => {\n s.projectDetail = project;\n s.isPm = !!project.managers.find((item) => item.id === user.userId);\n });\n },\n onError: () => {},\n },\n );\n\n const onPageChange = (page: number, pageSize: number) => {\n setPageState((s) => {\n s.page = pageSize === s.pageSize ? page : 1;\n s.pageSize = pageSize;\n });\n loadPageData(page, pageSize);\n };\n\n const onSelectChange = (newSelectedRowKeys: React.Key[]) => {\n setPageData((s) => {\n s.selectedTaskIds = newSelectedRowKeys as string[];\n });\n };\n\n const assignLeaders = (ids?: string[]) => {\n if (!pageData.projectDetail) return;\n const taskIds = ids || pageData.selectedTaskIds;\n const types: ASSIGN_TYPE[] = [];\n const initialValues: AssignModalForm = {};\n const task = pageData.list.find((item) => item.id === taskIds[0]);\n if (pageData.projectDetail.labelTimes > 0) {\n types.push(ASSIGN_TYPE.labelLeader);\n initialValues.labelLeaderId = task?.labelLeader?.userId;\n }\n if (pageData.projectDetail.reviewTimes > 0) {\n types.push(ASSIGN_TYPE.reviewLeader);\n initialValues.reviewLeaderId = task?.reviewLeader?.userId;\n }\n setAssignModal((s) => {\n s.show = true;\n s.types = types;\n s.tasks = pageData.list.filter((item) => taskIds.includes(item.id));\n s.initialValues = initialValues;\n });\n };\n\n const assignWorker = (task: NsProject.ProjectTask, types: ASSIGN_TYPE[]) => {\n if (!pageData.projectDetail) return;\n const initialValues: AssignModalForm = {};\n if (types.includes(ASSIGN_TYPE.labeler)) {\n initialValues.labelerIds = task.labelers?.map((item) => item.userId);\n }\n if (types.includes(ASSIGN_TYPE.reviewer)) {\n initialValues.reviewerIds = task.reviewers?.map((item) => item.userId);\n }\n setAssignModal((s) => {\n s.show = true;\n s.types = types;\n s.tasks = [task];\n s.initialValues = initialValues;\n });\n };\n\n const reassignWorker = (\n task: NsProject.ProjectTask,\n worker: NsProject.ProjectWorker,\n ) => {\n setAssignModal((s) => {\n s.show = true;\n s.types = [ASSIGN_TYPE.reassign];\n s.tasks = [task];\n s.reassignTarget = worker;\n });\n };\n\n const onCloseAssignModal = () => {\n setAssignModal(INIT_ASSIGN_MODAL);\n };\n\n /** Search users. */\n const userLintRequest = async ({ keyWords = '' }) => {\n let userList: { name: string; id: string }[] = [];\n const { tasks, types } = assignModal;\n // Add the original options by default.\n tasks.forEach((item) => {\n const users = [];\n if (types.includes(ASSIGN_TYPE.labelLeader)) users.push(item.labelLeader);\n if (types.includes(ASSIGN_TYPE.reviewLeader))\n users.push(item.reviewLeader);\n if (types.includes(ASSIGN_TYPE.labeler)) users.push(...item.labelers);\n if (types.includes(ASSIGN_TYPE.reviewer)) users.push(...item.reviewers);\n users.forEach((user) => {\n if (user && !userList.find((u) => user.userId === u.id)) {\n userList.push({\n id: user.userId,\n name: user.userName,\n });\n }\n });\n });\n if (keyWords) {\n userList = (await fetchUserLint({ name: keyWords })).userList.map(\n (item) => ({\n name: item.name,\n id: item.id,\n }),\n );\n }\n return userList.map((item) => ({\n label: item.name,\n value: item.id,\n }));\n };\n\n const assignModalFinish = async (values: AssignModalForm) => {\n const { initialValues } = assignModal;\n if (\n assignModal.types.includes(ASSIGN_TYPE.labelLeader) ||\n assignModal.types.includes(ASSIGN_TYPE.reviewLeader)\n ) {\n if (\n values.labelLeaderId !== initialValues.labelLeaderId ||\n values.reviewLeaderId !== initialValues.reviewLeaderId\n ) {\n // assign leader (batch)\n try {\n await requestAssignTeamLeader({\n projectId: pageData.projectDetail?.id || '',\n taskIds: assignModal.tasks.map((item) => item.id),\n labelLeaderId:\n values.labelLeaderId !== initialValues.labelLeaderId\n ? values.labelLeaderId\n : undefined,\n reviewLeaderId:\n values.reviewLeaderId !== initialValues.reviewLeaderId\n ? values.reviewLeaderId\n : undefined,\n });\n loadPageData();\n message.success(\n globalLocaleText('proj.assignModalFinish.assignLeader'),\n );\n } catch (error: any) {\n console.error(error);\n return Promise.resolve(false);\n }\n }\n } else {\n const task = assignModal.tasks[0];\n if (\n assignModal.types.includes(ASSIGN_TYPE.labeler) ||\n assignModal.types.includes(ASSIGN_TYPE.reviewer)\n ) {\n // assign worker\n try {\n await requestAssignWorkers(task.id, values);\n loadPageData();\n message.success(\n globalLocaleText('proj.assignModalFinish.assignWorker'),\n );\n } catch (error) {\n console.error(error);\n return Promise.resolve(false);\n }\n } else if (\n assignModal.types.includes(ASSIGN_TYPE.reassign) &&\n values.reassigner !== assignModal.reassignTarget?.userId\n ) {\n // reassign worker\n try {\n await requestReassignWorker(task.id, {\n oldWorkerId: assignModal.reassignTarget?.userId || '',\n newWorkerId: values.reassigner || '',\n role: assignModal.reassignTarget?.role || '',\n });\n loadPageData();\n message.success(\n globalLocaleText('proj.assignModalFinish.reassignWorker'),\n );\n } catch (error) {\n console.error(error);\n return Promise.resolve(false);\n }\n }\n }\n onCloseAssignModal();\n return Promise.resolve(false);\n };\n\n const restartTask = async (task: NsProject.ProjectTask) => {\n try {\n await requestRestartTask(task.id);\n loadPageData();\n message.success(globalLocaleText('proj.assignModalFinish.restarTask'));\n } catch (error) {\n console.error(error);\n return Promise.resolve(false);\n }\n };\n\n const commitReviewTask = async (task: NsProject.ProjectTask) => {\n try {\n await requestCommitReiviewTask(task.id);\n loadPageData();\n message.success(globalLocaleText('proj.assignModalFinish.commiTask'));\n } catch (error) {\n console.error(error);\n return Promise.resolve(false);\n }\n };\n\n /** For pm */\n const onChangeTaskResult = async (\n task: NsProject.ProjectTask,\n action: EQaAction,\n ) => {\n try {\n await qaTask(task.id, {\n action,\n });\n message.success(\n globalLocaleText('proj.assignModalFinish.changeTaskStatus'),\n );\n loadPageData();\n } catch (error) {\n console.error(error);\n return Promise.reject(false);\n }\n };\n\n /**\n * Initialize page parameters from the URL.\n * @param urlPageState\n */\n const onInitPageState = (urlPageState: PageState) => {\n setPageState((s) => {\n Object.assign(\n s,\n {\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n },\n urlPageState,\n );\n });\n loadProjectDetail();\n loadPageData();\n };\n\n return {\n pageData,\n pageState,\n loading,\n onPageChange,\n onSelectChange,\n onInitPageState,\n taskDetailModalIndex,\n setTaskDetailModalIndex,\n assignModal,\n assignLeaders,\n assignWorker,\n reassignWorker,\n onCloseAssignModal,\n userLintRequest,\n assignModalFinish,\n restartTask,\n commitReviewTask,\n onChangeTaskResult,\n };\n};\n","import { useModel } from '@umijs/max';\nimport { useImmer } from 'use-immer';\nimport { useRequest } from 'ahooks';\nimport {\n editProject,\n fetchProjectList,\n initProject,\n newProject,\n qaProject,\n exportLabelProject,\n} from '@/services/project';\nimport { message } from 'antd';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { EProjectStatus, EQaAction } from '../constants';\nimport { isEqual } from 'lodash';\nimport { NsProject } from '@/types/project';\n\nconst DEFAULT_PAGE_SIZE = 20;\n\ninterface PageState {\n page: number;\n pageSize: number;\n}\n\ninterface PageData {\n list: NsProject.Project[];\n total: number;\n}\n\nexport interface ProjectModalForm {\n basics: {\n name?: string;\n description?: string;\n datasetIds?: string[];\n preLabel?: string;\n categories?: string;\n managerIds?: string[];\n };\n settings: {\n batchSize?: number;\n };\n workflowInitNow?: string[];\n hadBatchSize?: boolean;\n hadReviewer?: boolean;\n}\n\nexport interface ProjectModal {\n show: boolean;\n current: number;\n targetProject?: NsProject.Project; // edit (if had value) | new\n initialValues: ProjectModalForm;\n disableInitProject?: boolean;\n}\n\nexport interface ExportModalForm {\n labelName: string;\n}\n\nexport const SET_WORKFLOW_NOW = 'proj.editModal.setWorkflowNow';\n\nconst INIT_PROJECT_MODEL = {\n show: false,\n current: 0,\n initialValues: {\n basics: {},\n settings: {},\n workflowInitNow: [],\n hadBatchSize: false,\n hadReviewer: false,\n },\n};\n\nexport default () => {\n const { user } = useModel('user');\n const { getUserRoles } = useModel('Project.auth');\n const [pageData, setPageData] = useImmer({\n list: [],\n total: 0,\n });\n const [pageState, setPageState] = useImmer({\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n });\n\n const [projectModal, setProjectModal] =\n useImmer(INIT_PROJECT_MODEL);\n\n const { loading, run: loadPageData } = useRequest(\n (page?: number, pageSize?: number) => {\n setPageData((s) => {\n s.list = [];\n });\n return fetchProjectList({\n pageNum: page || pageState.page,\n pageSize: pageSize || pageState.pageSize,\n });\n },\n {\n manual: true,\n debounceWait: 100,\n refreshDeps: [pageState.page, pageState.pageSize],\n onSuccess: ({ projectList, total }) => {\n setPageData({\n list: projectList.map((item) => ({\n ...item,\n userRoles: getUserRoles(item),\n })),\n total,\n });\n },\n onError: () => {},\n },\n );\n\n const onPageChange = (page: number, pageSize: number) => {\n setPageState((s) => {\n s.page = pageSize === s.pageSize ? page : 1;\n s.pageSize = pageSize;\n });\n loadPageData(page, pageSize);\n };\n\n /** For owner */\n const onNewProject = () => {\n setProjectModal((s) => {\n s.show = true;\n });\n };\n\n /** For owner / pm */\n const onEditProject = (project: NsProject.Project, isInit?: boolean) => {\n setProjectModal((s) => {\n const {\n name,\n description,\n categories,\n datasets,\n preLabel,\n managers,\n batchSize,\n reviewTimes,\n status,\n } = project;\n s.show = true;\n s.targetProject = project;\n s.current = isInit ? 1 : 0;\n s.initialValues.basics = {\n name,\n description,\n categories,\n preLabel,\n datasetIds: datasets.map((item) => item.id),\n managerIds: managers.map((item) => item.id),\n };\n s.initialValues.settings =\n status !== EProjectStatus.Waiting\n ? {\n batchSize: batchSize > 0 ? batchSize : undefined,\n }\n : {};\n s.initialValues.workflowInitNow = [globalLocaleText(SET_WORKFLOW_NOW)];\n s.initialValues.hadBatchSize = batchSize > 0;\n s.initialValues.hadReviewer = reviewTimes > 0;\n });\n };\n\n const closeProjectModal = () => {\n setProjectModal(INIT_PROJECT_MODEL);\n };\n\n const onProjectModalCurrentChange = (current: number) => {\n setProjectModal((s) => {\n if (current === 0) s.current = 0;\n });\n };\n\n const projectModalNext = (values: ProjectModalForm) => {\n setProjectModal((s) => {\n /** Dynamically control based on the form results. */\n s.disableInitProject = !values.basics.managerIds?.includes(user.userId!);\n s.current = 1;\n });\n return Promise.resolve(false);\n };\n\n const projectModalFinish = async (values: ProjectModalForm) => {\n // owner\n let hadRequested = false;\n let targetProjectId = projectModal.targetProject?.id;\n if (!targetProjectId) {\n // new project\n try {\n const project = await newProject(values.basics);\n targetProjectId = project.id;\n setProjectModal((s) => {\n s.targetProject = project;\n });\n hadRequested = true;\n message.success(globalLocaleText('proj.projectModalFinish.new'));\n } catch (error) {\n console.error(error);\n }\n } else {\n // Determine if there have been changes.\n const { description, managerIds } = projectModal.initialValues.basics;\n if (\n values.basics.description !== description ||\n !isEqual(values.basics.managerIds, managerIds)\n ) {\n // edit project\n try {\n await editProject(targetProjectId, values.basics);\n hadRequested = true;\n message.success(globalLocaleText('proj.projectModalFinish.edit'));\n } catch (error) {\n console.error(error);\n }\n }\n }\n // init project\n if (\n (!projectModal.targetProject ||\n projectModal.targetProject?.status === EProjectStatus.Waiting) &&\n values.workflowInitNow &&\n values.workflowInitNow.length\n ) {\n try {\n await initProject(targetProjectId!, {\n batchSize: values.hadBatchSize ? values.settings.batchSize : 0,\n labelTimes: 1,\n reviewTimes: values.hadReviewer ? 1 : 0,\n });\n hadRequested = true;\n message.success(globalLocaleText('proj.projectModalFinish.init'));\n } catch (error) {\n console.error(error);\n }\n }\n if (hadRequested) {\n loadPageData();\n }\n closeProjectModal();\n return Promise.resolve(false);\n };\n\n /** For owner */\n const onChangeProjectResult = async (\n project: NsProject.Project,\n action: EQaAction,\n ) => {\n try {\n await qaProject(project.id, {\n action,\n });\n message.success(globalLocaleText('proj.projectModalFinish.change'));\n loadPageData();\n } catch (error) {\n console.error(error);\n return Promise.reject(false);\n }\n };\n\n /** For owner */\n const onExportLabelProject = async (\n projectId: string,\n values: ExportModalForm,\n ) => {\n try {\n await exportLabelProject(projectId, {\n labelName: values?.labelName,\n });\n message.success(\n globalLocaleText('proj.exportModal.submitSuccess', {\n name: values?.labelName,\n }),\n );\n loadPageData();\n } catch (error) {\n console.error(error);\n }\n };\n\n /**\n * Initialize page parameters from the URL.\n * @param urlPageState\n */\n const onInitPageState = (urlPageState: PageState) => {\n setPageState((s) => {\n Object.assign(\n s,\n {\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n },\n urlPageState,\n );\n });\n loadPageData();\n };\n\n return {\n pageData,\n pageState,\n loading,\n onPageChange,\n onInitPageState,\n projectModal,\n onNewProject,\n onEditProject,\n closeProjectModal,\n onProjectModalCurrentChange,\n projectModalNext,\n projectModalFinish,\n onChangeProjectResult,\n onExportLabelProject,\n };\n};\n","import { useImmer } from 'use-immer';\nimport { useRequest } from 'ahooks';\nimport {\n requestLabelTaskConfigs,\n requestLabelTaskImages,\n requestLabelTaskRoles,\n saveLabelTaskLabels,\n saveLabelTaskReviews,\n} from '@/services/project';\nimport { EQaAction, ETaskImageStatus, ETaskStatus } from '../constants';\nimport { useMemo } from 'react';\nimport { message } from 'antd';\nimport { EditorMode } from 'dds-components/Annotator';\nimport { useModel } from '@umijs/max';\nimport { EProjectRole } from './auth';\nimport { getUrlQueryVal } from 'dds-utils/url';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { BaseObject, Category } from '@/types';\nimport { NsProject } from '@/types/project';\n\nconst DEFAULT_PAGE_SIZE = 100;\n\ninterface PageState {\n status: ETaskImageStatus;\n taskStatus: ETaskStatus;\n roleId?: string;\n}\n\ninterface PageData {\n categoryList: Category[];\n taskRoles: NsProject.ProjectWorker[];\n list: NsProject.TaskImage[];\n curIndex: number;\n page: number;\n pageSize: number;\n total: number;\n loadingImagesType?: LoadImagesType;\n editorMode: EditorMode;\n shouldExitWithRefresh?: boolean;\n}\n\nexport interface LabelImage {\n id: string;\n url: string;\n urlFullRes: string;\n labelId: string;\n objects: BaseObject[];\n}\n\nexport const enum LoadImagesType {\n Init,\n More,\n}\n\nexport default () => {\n const { user } = useModel('user');\n const { setLoading } = useModel('global');\n const [pageData, setPageData] = useImmer({\n taskRoles: [],\n categoryList: [],\n list: [],\n curIndex: -1,\n page: 1,\n pageSize: DEFAULT_PAGE_SIZE,\n total: 0,\n editorMode: EditorMode.View,\n });\n const [pageState, setPageState] = useImmer({\n status: ETaskImageStatus.Labeling,\n taskStatus: ETaskStatus.Working,\n });\n const projectId = useMemo(\n () => getUrlQueryVal('projectId') || '',\n [window.location.search],\n );\n const taskId = useMemo(\n () => getUrlQueryVal('taskId') || '',\n [window.location.search],\n );\n const curRole = useMemo(\n () => pageData.taskRoles?.find((item) => item.id === pageState.roleId),\n [pageData.taskRoles, pageState.roleId],\n );\n const userRoles: EProjectRole[] = useMemo(\n () => (curRole && user.userId === curRole?.userId ? [curRole.role] : []),\n [user.userId, curRole],\n );\n\n const labelImages = useMemo(() => {\n return (\n pageData.list?.map((item) => {\n const objects: BaseObject[] = [];\n let labelId = '';\n if (pageState.status === ETaskImageStatus.Labeling && !item.labeled) {\n // Load pre-annotation data.\n if (item.defaultLabels && item.defaultLabels.annotations) {\n objects.push(...item.defaultLabels.annotations);\n }\n } else {\n // TODO: Just support single labeler.\n item.labels.forEach((label) => {\n labelId = label.id;\n objects.push(...label.annotations);\n });\n }\n return {\n id: item.id,\n url: item.url,\n urlFullRes: item.urlFullRes,\n labelId,\n objects,\n };\n }) || []\n );\n }, [pageData.list, pageState.status]);\n\n const loadImages = async (\n loadType: LoadImagesType,\n params: {\n status?: ETaskImageStatus;\n roleId?: string;\n page: number;\n },\n ) => {\n if (pageData.loadingImagesType) {\n return Promise.reject(null);\n }\n setPageData((s) => {\n s.loadingImagesType = loadType;\n if (loadType === LoadImagesType.Init) {\n s.list = [];\n }\n });\n try {\n const { imageList, total, pageNum } = await requestLabelTaskImages(\n getUrlQueryVal('taskId') || '',\n {\n status: params.status || pageState.status,\n roleId: params.roleId || pageState.roleId,\n pageNum: params.page,\n pageSize: pageData.pageSize,\n },\n );\n setPageData((s) => {\n s.list = s.list.concat(imageList);\n s.page = pageNum;\n s.total = total;\n s.loadingImagesType = undefined;\n });\n } catch (error) {\n setPageData((s) => {\n s.loadingImagesType = undefined;\n });\n return Promise.reject(error);\n }\n };\n\n const { loading: loadingTaskInfos, run: loadTaskInfos } = useRequest(\n () => {\n return Promise.all([\n requestLabelTaskRoles(getUrlQueryVal('taskId') || ''),\n requestLabelTaskConfigs(getUrlQueryVal('taskId') || ''),\n ]);\n },\n {\n manual: true,\n debounceWait: 60,\n onSuccess: ([rolesRsp, configRsp]) => {\n setPageData((s) => {\n s.categoryList = configRsp.categoryList;\n s.taskRoles = rolesRsp.roleList;\n });\n setPageState((s) => {\n if (\n rolesRsp.roleList.length &&\n (!s.roleId ||\n !rolesRsp.roleList.find((item) => item.id === s.roleId))\n ) {\n s.roleId = rolesRsp.roleList[0].id;\n }\n });\n },\n onError: () => {},\n },\n );\n\n const loadPageData = (\n params: {\n status?: ETaskImageStatus;\n roleId?: string;\n } = {},\n ) => {\n Promise.all([\n loadTaskInfos(),\n loadImages(LoadImagesType.Init, {\n ...params,\n page: 1,\n }),\n ]);\n };\n\n const loadMore = async () => {\n if (pageData.list.length < pageData.total) {\n await loadImages(LoadImagesType.More, { page: pageData.page + 1 });\n }\n };\n\n const onStatusTabChange = (status: string) => {\n setPageState((s) => {\n s.status = status as ETaskImageStatus;\n });\n loadImages(LoadImagesType.Init, {\n status: status as ETaskImageStatus,\n page: 1,\n });\n };\n\n const onRoleChange = (roleId: string) => {\n setPageState((s) => {\n s.roleId = roleId;\n });\n loadImages(LoadImagesType.Init, { roleId, page: 1 });\n };\n\n const clickItem = (index: number) => {\n setPageData((s) => {\n s.curIndex = index;\n });\n };\n\n const onPrevImage = async () => {\n setPageData((s) => {\n if (s.curIndex > 0) {\n s.curIndex = s.curIndex - 1;\n }\n });\n return Promise.resolve();\n };\n\n const onNextImage = async () => {\n if (pageData.curIndex < pageData.list.length - 1) {\n // There is data for the next image.\n setPageData((s) => {\n s.curIndex = s.curIndex + 1;\n });\n return Promise.resolve();\n } else if (pageData.curIndex < pageData.total - 1) {\n // There is no data for the next image => loadmore\n setLoading(true);\n try {\n await loadImages(LoadImagesType.More, {\n // If not in view mode, continuously load the first page.\n page: pageData.editorMode !== EditorMode.View ? 1 : pageData.page + 1,\n });\n setPageData((s) => {\n s.curIndex = s.curIndex + 1;\n });\n } catch (error) {\n console.error('loadMore error', error);\n }\n setLoading(false);\n return Promise.resolve();\n } else {\n return Promise.reject();\n }\n };\n\n const onEnterEdit = () => {\n setPageData((s) => {\n s.editorMode = EditorMode.Edit;\n });\n };\n\n const onStartLabel = async () => {\n if (pageState.status !== ETaskImageStatus.Labeling) {\n setLoading(true);\n setPageState((s) => {\n s.status = ETaskImageStatus.Labeling;\n });\n await loadImages(LoadImagesType.Init, {\n status: ETaskImageStatus.Labeling,\n page: 1,\n });\n }\n setPageData((s) => {\n s.curIndex = 0;\n s.editorMode = EditorMode.Edit;\n });\n setLoading(false);\n };\n\n const onStartRework = async () => {\n if (pageState.status !== ETaskImageStatus.Rejected) {\n setLoading(true);\n setPageState((s) => {\n s.status = ETaskImageStatus.Rejected;\n });\n await loadImages(LoadImagesType.Init, {\n status: ETaskImageStatus.Rejected,\n page: 1,\n });\n }\n setPageData((s) => {\n s.curIndex = 0;\n s.editorMode = EditorMode.Edit;\n });\n setLoading(false);\n };\n\n const onStartReview = async () => {\n if (pageState.status !== ETaskImageStatus.Reviewing) {\n setLoading(true);\n setPageState((s) => {\n s.status = ETaskImageStatus.Reviewing;\n });\n await loadImages(LoadImagesType.Init, {\n status: ETaskImageStatus.Reviewing,\n page: 1,\n });\n }\n setPageData((s) => {\n s.curIndex = 0;\n s.editorMode = EditorMode.Review;\n });\n setLoading(false);\n };\n\n const onExitEditor = () => {\n if (\n pageState.status === ETaskImageStatus.Reviewing &&\n pageData.editorMode === EditorMode.Edit\n ) {\n // Re edit\n setPageData((s) => {\n s.editorMode = EditorMode.View;\n });\n return;\n }\n\n if (\n (pageData.editorMode === EditorMode.Edit ||\n pageData.editorMode === EditorMode.Review) &&\n pageData.shouldExitWithRefresh\n ) {\n loadPageData();\n }\n setPageData((s) => {\n s.curIndex = -1;\n s.editorMode = EditorMode.View;\n s.shouldExitWithRefresh = false;\n });\n };\n\n const onLabelSave = async (imageId: string, annotations: BaseObject[]) => {\n setLoading(true);\n const hide = message.loading(\n globalLocaleText('proj.onLabelSave.loading'),\n 100000,\n );\n try {\n const label = await saveLabelTaskLabels(imageId, {\n annotations,\n });\n setPageData((s) => {\n s.shouldExitWithRefresh = true;\n // TODO: Just support single labeler.\n s.list[s.curIndex].labels = [label];\n s.list[s.curIndex].labeled = true;\n });\n message.success(globalLocaleText('proj.onLabelSave.save'));\n\n if (pageState.status === ETaskImageStatus.Reviewing) {\n // re edit\n setPageData((s) => {\n s.editorMode = EditorMode.View;\n });\n } else {\n try {\n await onNextImage();\n } catch (error) {\n message.success(globalLocaleText('proj.onLabelSave.finish'));\n onExitEditor();\n }\n }\n } catch (error) {\n console.error('error', error);\n message.error(globalLocaleText('proj.onLabelSave.error'));\n }\n hide();\n setLoading(false);\n };\n\n const onReviewResult = async (imageId: string, action: EQaAction) => {\n setLoading(true);\n const hide = message.loading(\n globalLocaleText('proj.onReviewResult.loading'),\n 100000,\n );\n try {\n await saveLabelTaskReviews(imageId, {\n labelId: labelImages[pageData.curIndex].labelId,\n action,\n });\n setPageData((s) => {\n s.shouldExitWithRefresh = true;\n });\n message.success(globalLocaleText('proj.onReviewResult.save'));\n try {\n await onNextImage();\n } catch (error) {\n message.success(globalLocaleText('proj.onReviewResult.finish'));\n onExitEditor();\n }\n } catch (error) {\n console.error('error', error);\n message.error(globalLocaleText('proj.onReviewResult.error'));\n }\n hide();\n setLoading(false);\n };\n\n /**\n * Initialize page parameters from the URL.\n * @param urlPageState\n */\n const onInitPageState = (urlPageState: PageState) => {\n setPageState((s) => {\n Object.assign(s, urlPageState);\n });\n loadPageData({\n ...urlPageState,\n });\n };\n\n const tabItems = useMemo(\n () => [\n {\n label: globalLocaleText('proj.tabItems.toLabel', {\n num: curRole?.labelNumWaiting || 0,\n }),\n key: ETaskImageStatus.Labeling,\n },\n {\n label: globalLocaleText('proj.tabItems.toReview', {\n num: curRole?.reviewNumWaiting || 0,\n }),\n key: ETaskImageStatus.Reviewing,\n },\n {\n label: globalLocaleText('proj.tabItems.inRework', {\n num: curRole?.reviewNumRejected || 0,\n }),\n key: ETaskImageStatus.Rejected,\n },\n {\n label: globalLocaleText('proj.tabItems.done', {\n num: curRole?.reviewNumAccepted || 0,\n }),\n key: ETaskImageStatus.Accepted,\n },\n ],\n [curRole],\n );\n\n const isEditorVisible = pageData.curIndex >= 0;\n\n return {\n pageData,\n pageState,\n loading:\n loadingTaskInfos || pageData.loadingImagesType === LoadImagesType.Init,\n loadPageData,\n loadMore,\n onInitPageState,\n projectId,\n taskId,\n curRole,\n userRoles,\n tabItems,\n labelImages,\n isEditorVisible,\n onStatusTabChange,\n onRoleChange,\n clickItem,\n onExitEditor,\n onPrevImage,\n onNextImage,\n onLabelSave,\n onReviewResult,\n onEnterEdit,\n onStartLabel,\n onStartRework,\n onStartReview,\n };\n};\n","import { request } from '@umijs/max';\nimport { EQaAction, ETaskImageStatus } from '@/pages/Project/constants';\nimport { NsApiProject } from '@/types/api';\nimport { BaseObject } from '@/types';\nimport { NsProject } from '@/types/project';\n\n/** project list */\nexport async function fetchProjectList(\n params: {\n pageNum: number;\n pageSize: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_projects`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\n/** project detail */\nexport async function fetchProjectDetail(\n projectId: string,\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_projects/${projectId}`, {\n method: 'GET',\n ...(options || {}),\n });\n}\n\n/** new_project (for inner worker) */\nexport async function newProject(\n params: {\n name?: string;\n description?: string;\n categories?: string;\n preLabel: string;\n datasetIds?: string[];\n managerIds?: string[];\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_projects`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** init_project (for pm) */\nexport async function initProject(\n projectId: string,\n params: {\n batchSize?: number;\n labelTimes?: number;\n reviewTimes?: number;\n reviewPercent?: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_project_configs/${projectId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** edit project (for owner) */\nexport async function editProject(\n projectId: string,\n params: {\n description?: string;\n managerIds?: string[];\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_projects/${projectId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** commit project qa (for owner) */\nexport async function qaProject(\n projectId: string,\n params: {\n action: EQaAction;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_project_qa/${projectId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** export label project (for owner) */\nexport async function exportLabelProject(\n projectId: string,\n params: {\n labelName: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_project_export/${projectId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** dataset lint */\nexport async function fetchDatasetLint(\n params: {\n name: string;\n purpose?: string;\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/dataset_name_lints`,\n {\n method: 'GET',\n params,\n ...(options || {}),\n },\n );\n}\n\n/** user lint */\nexport async function fetchUserLint(\n params: {\n name: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/user_name_lints`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\n/** project task list */\nexport async function fetchProjectTasks(\n params: {\n projectId: string;\n pageNum: number;\n pageSize: number;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_tasks`, {\n method: 'GET',\n params,\n ...(options || {}),\n });\n}\n\n/** assign teamleader (for pm) */\nexport async function requestAssignTeamLeader(\n params: {\n projectId: string;\n taskIds: string[];\n labelLeaderId?: string;\n reviewLeaderId?: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_leaders`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** assign task workers (for tl) */\nexport async function requestAssignWorkers(\n taskId: string,\n params: {\n labelerIds?: string[];\n reviewerIds?: string[];\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_workers/${taskId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** reassign task workers (for tl) */\nexport async function requestReassignWorker(\n taskId: string,\n params: {\n oldWorkerId: string;\n newWorkerId: string;\n role: string;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_reassign/${taskId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** restart task (for tl) */\nexport async function requestRestartTask(\n taskId: string,\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_restart/${taskId}`, {\n method: 'POST',\n ...(options || {}),\n });\n}\n\n/** update task status (for pm) */\nexport async function qaTask(\n taskId: string,\n params: {\n action: EQaAction;\n },\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_qa/${taskId}`, {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {}),\n });\n}\n\n/** commit task (for reviewer) */\nexport async function requestCommitReiviewTask(\n taskId: string,\n options?: { [key: string]: any },\n) {\n return request(`/api/v1/label_task_review_commit/${taskId}`, {\n method: 'POST',\n ...(options || {}),\n });\n}\n\n/** Get the number of roles that the user can view in the Task. */\nexport async function requestLabelTaskRoles(\n taskId: string,\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/label_task_roles/${taskId}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\n/** Get the categories of the user in the Task. */\nexport async function requestLabelTaskConfigs(\n taskId: string,\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/label_task_configs/${taskId}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\n/** Get all images of the user in the Task. */\nexport async function requestLabelTaskImages(\n taskId: string,\n params: {\n status?: ETaskImageStatus;\n roleId?: string;\n pageSize: number;\n pageNum: number;\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/label_task_images/${taskId}`,\n {\n method: 'GET',\n params,\n ...(options || {}),\n },\n );\n}\n\n/** Save the label of the image in the Task. */\nexport async function saveLabelTaskLabels(\n taskImageId: string,\n params: {\n annotations: BaseObject[];\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/label_task_image_labels/${taskImageId}`,\n {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {\n hideCodeErrorMsg: true,\n }),\n },\n );\n}\n\n/** Save the review result of the image in the Task. */\nexport async function saveLabelTaskReviews(\n taskImageId: string,\n params: {\n labelId: string;\n action: EQaAction;\n },\n options?: { [key: string]: any },\n) {\n return request(\n `/api/v1/label_task_image_reviews/${taskImageId}`,\n {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {\n hideCodeErrorMsg: true,\n }),\n },\n );\n}\n","import {\n AnnotationType,\n BASE_DISPLAY_OPTIONS,\n DisplayOption,\n LABELS_COLOR_APLHA,\n LABELS_LINE_WIDTH,\n LABELS_STROKE_DASH,\n LABEL_SOURCE,\n} from '@/constants';\nimport { NsDataSet } from '@/types/dataset';\nimport { includes } from 'lodash';\n\n/**\n * set cover image based on dataset type\n * @param type\n */\nexport const generateDefaultCover = (type: string[]) => {\n let _img_index: number = 0;\n\n if (includes(type, 'Classification')) {\n _img_index = 1;\n }\n if (includes(type, 'Detection')) {\n _img_index = 2;\n }\n if (includes(type, 'Segmentation')) {\n _img_index = 3;\n }\n if (includes(type, 'Matting')) {\n _img_index = 4;\n }\n if (includes(type, 'KeyPoints')) {\n _img_index = 5;\n }\n\n return require(`@/assets/images/cards/card_cover_${_img_index}.png`);\n};\n\n/**\n * Get label custom style\n * @param labelId\n * @param selectedIds\n * @param notOverlayDiff\n * @returns {colorAplha, strokeDash, lineWidth}\n */\nexport const getLabelCustomStyles = (\n labelId?: string,\n selectedIds?: string[],\n notOverlayDiff?: boolean,\n) => {\n if (!labelId || !selectedIds || notOverlayDiff) {\n return {\n colorAplha: LABELS_COLOR_APLHA[0],\n strokeDash: LABELS_STROKE_DASH[0],\n lineWidth: LABELS_LINE_WIDTH[0],\n };\n }\n\n /**\n * Sort the selected results and assign styles in order.\n */\n const index = selectedIds.indexOf(labelId);\n return {\n colorAplha: LABELS_COLOR_APLHA[index] || LABELS_COLOR_APLHA[0],\n strokeDash: LABELS_STROKE_DASH[index] || LABELS_STROKE_DASH[0],\n lineWidth: LABELS_LINE_WIDTH[index] || LABELS_LINE_WIDTH[0],\n };\n};\n\n/**\n * Get the display options for the corresponding annotation type.\n * @param selectedOptions\n * @param type\n * @returns\n */\nexport const getDefaultDisplayOptions = (\n selectedOptions: DisplayOption[],\n type?: AnnotationType,\n) => {\n let addOptions: DisplayOption[] = [];\n let addSelectedOptions: DisplayOption[] = [];\n const selectedDefaultOption = selectedOptions.filter((item) =>\n BASE_DISPLAY_OPTIONS.includes(item),\n );\n if (type === AnnotationType.Detection) {\n addOptions = [DisplayOption.showBoxText];\n addSelectedOptions = addOptions;\n } else if (type === AnnotationType.Segmentation) {\n addOptions = [DisplayOption.showSegFilling, DisplayOption.showSegContour];\n addSelectedOptions = addOptions;\n } else if (type === AnnotationType.Matting) {\n addOptions = [DisplayOption.showMattingColorFill];\n } else if (type === AnnotationType.KeyPoints) {\n addOptions = [\n DisplayOption.showKeyPointsLine,\n DisplayOption.showKeyPointsBox,\n ];\n addSelectedOptions = addOptions;\n }\n\n return [\n [...BASE_DISPLAY_OPTIONS, ...addOptions],\n [...selectedDefaultOption, ...addSelectedOptions],\n ];\n};\n\n/**\n * Get labels when tiling for diff.\n * @param arr\n * @param selectedLabelIds\n * @param annotationType\n * @returns\n */\nexport const getDiffLabels = (\n arr: NsDataSet.Label[],\n selectedLabelIds: string[],\n annotationType?: AnnotationType,\n): NsDataSet.Label[] => {\n const result: NsDataSet.Label[] = [];\n if (annotationType === AnnotationType.Matting) {\n // Add the original image column. (Matting)\n result.push({\n id: 'origin',\n name: 'Origin image',\n source: LABEL_SOURCE.gt,\n comparePrecisions: [],\n confidenceRange: [0, 1],\n });\n }\n if (selectedLabelIds.length) {\n selectedLabelIds.forEach((id) => {\n const label = arr.find((item) => item.id === id);\n if (label) result.push({ ...label });\n });\n }\n return result;\n};\n\n/**\n * Expand the data for tiled comparison.\n * @param arr\n * @param selectedLabelIds\n * @param annotationType\n * @returns\n */\nexport const doubleImgList = (\n arr: NsDataSet.DataSetImg[],\n selectedLabelIds: string[],\n annotationType?: AnnotationType,\n): NsDataSet.DataSetImg[] => {\n const result: NsDataSet.DataSetImg[] = [];\n if (selectedLabelIds.length) {\n arr.forEach((item) => {\n if (annotationType === AnnotationType.Matting) {\n // Add the original image column. (Matting)\n result.push({ ...item });\n }\n\n result.push(\n ...new Array(selectedLabelIds.length).fill({}).map((_, index) => {\n const theItem = { ...item };\n theItem.curLabelId = selectedLabelIds[index];\n return theItem;\n }),\n );\n });\n return result;\n }\n return arr;\n};\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgRectangle = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M30.17 8.91a1 1 0 0 0 1-1V3.85a1 1 0 0 0-1-1h-4.05a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1H3.85a1 1 0 0 0-1 1V7.9a1 1 0 0 0 1 1h1v16.2h-1a1 1 0 0 0-1 1v4.05a1 1 0 0 0 1 1H7.9a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h4.05a1 1 0 0 0 1-1v-4.03a1 1 0 0 0-1-1h-1V8.91Zm-3 16.2h-1a1 1 0 0 0-1 1v1H8.91v-1a1 1 0 0 0-1-1h-1V8.91h1a1 1 0 0 0 1-1v-1h16.2v1a1 1 0 0 0 1 1h1Z\", style: {\n fill: \"#fcfefe\"\n} }), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"none\"\n}, d: \"M2.83 2.83h28.35v28.35H2.83z\" }));\nexport { SvgRectangle as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PHBhdGggZD0iTTMwLjE3IDguOTFhMSAxIDAgMCAwIDEtMVYzLjg1YTEgMSAwIDAgMC0xLTFoLTQuMDVhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMUgzLjg1YTEgMSAwIDAgMC0xIDFWNy45YTEgMSAwIDAgMCAxIDFoMXYxNi4yaC0xYTEgMSAwIDAgMC0xIDF2NC4wNWExIDEgMCAwIDAgMSAxSDcuOWExIDEgMCAwIDAgMS0xdi0xaDE2LjJ2MWExIDEgMCAwIDAgMSAxaDQuMDVhMSAxIDAgMCAwIDEtMXYtNC4wM2ExIDEgMCAwIDAtMS0xaC0xVjguOTFabS0zIDE2LjJoLTFhMSAxIDAgMCAwLTEgMXYxSDguOTF2LTFhMSAxIDAgMCAwLTEtMWgtMVY4LjkxaDFhMSAxIDAgMCAwIDEtMXYtMWgxNi4ydjFhMSAxIDAgMCAwIDEgMWgxWiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmUiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPoint = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 27, height: 27, viewBox: \"0 0 26 26\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#point_svg__a)\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M26.99 22.48a4.457 4.457 0 0 1-1.237 3.295 4.49 4.49 0 0 1-3.248 1.384 4.507 4.507 0 0 1-3.248-1.384 4.471 4.471 0 0 1-1.238-3.296 7.246 7.246 0 0 0-1.824-4.758.638.638 0 0 0-.656-.283.64.64 0 0 0-.233.093 4.065 4.065 0 0 1-3.573 0 .71.71 0 0 0-.956.257 7.131 7.131 0 0 0-1.796 4.682c.02.83-.2 1.65-.633 2.36a4.351 4.351 0 0 1-1.813 1.647 4.304 4.304 0 0 1-4.462-.2 4.486 4.486 0 0 1-1.79-2.2 4.466 4.466 0 0 1 1.504-5.159 4.511 4.511 0 0 1 2.694-.902 7.249 7.249 0 0 0 4.777-1.818.649.649 0 0 0 .2-.895 4.41 4.41 0 0 1 .902-4.98 4.458 4.458 0 0 1 5.004-.881.604.604 0 0 0 .84-.182 7.265 7.265 0 0 0 1.844-4.758 4.459 4.459 0 0 1 1.521-3.406A4.495 4.495 0 0 1 23.152.021a4.502 4.502 0 0 1 3.156 2.001 4.463 4.463 0 0 1 .54 3.688 4.434 4.434 0 0 1-1.593 2.4 4.464 4.464 0 0 1-2.736.922 7.259 7.259 0 0 0-4.7 1.78c-.325.275-.459.494-.249.951a4.07 4.07 0 0 1 0 3.626.608.608 0 0 0 .182.838 7.21 7.21 0 0 0 4.681 1.846 4.486 4.486 0 0 1 3.2 1.257 4.452 4.452 0 0 1 1.358 3.15Zm-15.744-9.004a2.24 2.24 0 0 0 1.376 2.088 2.264 2.264 0 0 0 2.462-.47 2.244 2.244 0 0 0 .504-2.447 2.248 2.248 0 0 0-2.078-1.398 2.242 2.242 0 0 0-2.092 1.368 2.219 2.219 0 0 0-.172.86ZM22.49 24.744a2.242 2.242 0 0 0 2.111-1.37c.115-.274.174-.569.172-.866a2.247 2.247 0 0 0-.646-1.607 2.263 2.263 0 0 0-1.6-.677c-.6.002-1.176.238-1.604.658a2.29 2.29 0 0 0-.688 1.588 2.26 2.26 0 0 0 .656 1.601c.422.426.997.668 1.599.673Zm0-22.507a2.271 2.271 0 0 0-1.605.664 2.254 2.254 0 0 0-.66 1.6c.013.6.259 1.173.687 1.595a2.326 2.326 0 0 0 1.606.67 2.288 2.288 0 0 0 1.597-.686 2.27 2.27 0 0 0 .473-2.464 2.236 2.236 0 0 0-1.226-1.206 2.253 2.253 0 0 0-.863-.164l-.01-.01ZM4.405 24.744a2.271 2.271 0 0 0 2.154-1.31c.125-.27.195-.562.206-.86a2.308 2.308 0 0 0-.623-1.617 2.326 2.326 0 0 0-1.575-.733 2.28 2.28 0 0 0-1.624.613c-.44.41-.697.977-.717 1.576a2.229 2.229 0 0 0 .6 1.62 2.245 2.245 0 0 0 1.579.711Z\", fill: \"#fff\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M5.15 7.861a3.376 3.376 0 0 0 3.382-3.369A3.376 3.376 0 0 0 5.15 1.123a3.376 3.376 0 0 0-3.382 3.37A3.376 3.376 0 0 0 5.15 7.86Z\", stroke: \"#fff\", strokeWidth: 2, strokeMiterlimit: 10 })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"point_svg__a\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M0 0h27v27H0z\" }))));\nexport { SvgPoint as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjciIGhlaWdodD0iMjciIHZpZXdCb3g9IjAgMCAyNiAyNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiPjxwYXRoIGQ9Ik0yNi45OSAyMi40OGE0LjQ1NyA0LjQ1NyAwIDAgMS0xLjIzNyAzLjI5NSA0LjQ5IDQuNDkgMCAwIDEtMy4yNDggMS4zODQgNC41MDcgNC41MDcgMCAwIDEtMy4yNDgtMS4zODQgNC40NzEgNC40NzEgMCAwIDEtMS4yMzgtMy4yOTYgNy4yNDYgNy4yNDYgMCAwIDAtMS44MjQtNC43NTguNjM4LjYzOCAwIDAgMC0uNjU2LS4yODMuNjQuNjQgMCAwIDAtLjIzMy4wOTMgNC4wNjUgNC4wNjUgMCAwIDEtMy41NzMgMCAuNzEuNzEgMCAwIDAtLjk1Ni4yNTcgNy4xMzEgNy4xMzEgMCAwIDAtMS43OTYgNC42ODJjLjAyLjgzLS4yIDEuNjUtLjYzMyAyLjM2YTQuMzUxIDQuMzUxIDAgMCAxLTEuODEzIDEuNjQ3IDQuMzA0IDQuMzA0IDAgMCAxLTQuNDYyLS4yIDQuNDg2IDQuNDg2IDAgMCAxLTEuNzktMi4yIDQuNDY2IDQuNDY2IDAgMCAxIDEuNTA0LTUuMTU5IDQuNTExIDQuNTExIDAgMCAxIDIuNjk0LS45MDIgNy4yNDkgNy4yNDkgMCAwIDAgNC43NzctMS44MTguNjQ5LjY0OSAwIDAgMCAuMi0uODk1IDQuNDEgNC40MSAwIDAgMSAuOTAyLTQuOTggNC40NTggNC40NTggMCAwIDEgNS4wMDQtLjg4MS42MDQuNjA0IDAgMCAwIC44NC0uMTgyIDcuMjY1IDcuMjY1IDAgMCAwIDEuODQ0LTQuNzU4IDQuNDU5IDQuNDU5IDAgMCAxIDEuNTIxLTMuNDA2QTQuNDk1IDQuNDk1IDAgMCAxIDIzLjE1Mi4wMjFhNC41MDIgNC41MDIgMCAwIDEgMy4xNTYgMi4wMDEgNC40NjMgNC40NjMgMCAwIDEgLjU0IDMuNjg4IDQuNDM0IDQuNDM0IDAgMCAxLTEuNTkzIDIuNCA0LjQ2NCA0LjQ2NCAwIDAgMS0yLjczNi45MjIgNy4yNTkgNy4yNTkgMCAwIDAtNC43IDEuNzhjLS4zMjUuMjc1LS40NTkuNDk0LS4yNDkuOTUxYTQuMDcgNC4wNyAwIDAgMSAwIDMuNjI2LjYwOC42MDggMCAwIDAgLjE4Mi44MzggNy4yMSA3LjIxIDAgMCAwIDQuNjgxIDEuODQ2IDQuNDg2IDQuNDg2IDAgMCAxIDMuMiAxLjI1NyA0LjQ1MiA0LjQ1MiAwIDAgMSAxLjM1OCAzLjE1Wm0tMTUuNzQ0LTkuMDA0YTIuMjQgMi4yNCAwIDAgMCAxLjM3NiAyLjA4OCAyLjI2NCAyLjI2NCAwIDAgMCAyLjQ2Mi0uNDcgMi4yNDQgMi4yNDQgMCAwIDAgLjUwNC0yLjQ0NyAyLjI0OCAyLjI0OCAwIDAgMC0yLjA3OC0xLjM5OCAyLjI0MiAyLjI0MiAwIDAgMC0yLjA5MiAxLjM2OCAyLjIxOSAyLjIxOSAwIDAgMC0uMTcyLjg2Wk0yMi40OSAyNC43NDRhMi4yNDIgMi4yNDIgMCAwIDAgMi4xMTEtMS4zN2MuMTE1LS4yNzQuMTc0LS41NjkuMTcyLS44NjZhMi4yNDcgMi4yNDcgMCAwIDAtLjY0Ni0xLjYwNyAyLjI2MyAyLjI2MyAwIDAgMC0xLjYtLjY3N2MtLjYuMDAyLTEuMTc2LjIzOC0xLjYwNC42NThhMi4yOSAyLjI5IDAgMCAwLS42ODggMS41ODggMi4yNiAyLjI2IDAgMCAwIC42NTYgMS42MDFjLjQyMi40MjYuOTk3LjY2OCAxLjU5OS42NzNabTAtMjIuNTA3YTIuMjcxIDIuMjcxIDAgMCAwLTEuNjA1LjY2NCAyLjI1NCAyLjI1NCAwIDAgMC0uNjYgMS42Yy4wMTMuNi4yNTkgMS4xNzMuNjg3IDEuNTk1YTIuMzI2IDIuMzI2IDAgMCAwIDEuNjA2LjY3IDIuMjg4IDIuMjg4IDAgMCAwIDEuNTk3LS42ODYgMi4yNyAyLjI3IDAgMCAwIC40NzMtMi40NjQgMi4yMzYgMi4yMzYgMCAwIDAtMS4yMjYtMS4yMDYgMi4yNTMgMi4yNTMgMCAwIDAtLjg2My0uMTY0bC0uMDEtLjAxWk00LjQwNSAyNC43NDRhMi4yNzEgMi4yNzEgMCAwIDAgMi4xNTQtMS4zMWMuMTI1LS4yNy4xOTUtLjU2Mi4yMDYtLjg2YTIuMzA4IDIuMzA4IDAgMCAwLS42MjMtMS42MTcgMi4zMjYgMi4zMjYgMCAwIDAtMS41NzUtLjczMyAyLjI4IDIuMjggMCAwIDAtMS42MjQuNjEzYy0uNDQuNDEtLjY5Ny45NzctLjcxNyAxLjU3NmEyLjIyOSAyLjIyOSAwIDAgMCAuNiAxLjYyIDIuMjQ1IDIuMjQ1IDAgMCAwIDEuNTc5LjcxMVoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNS4xNSA3Ljg2MWEzLjM3NiAzLjM3NiAwIDAgMCAzLjM4Mi0zLjM2OUEzLjM3NiAzLjM3NiAwIDAgMCA1LjE1IDEuMTIzYTMuMzc2IDMuMzc2IDAgMCAwLTMuMzgyIDMuMzdBMy4zNzYgMy4zNzYgMCAwIDAgNS4xNSA3Ljg2WiIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1taXRlcmxpbWl0PSIxMCIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjd2MjdIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMagic = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".magic_svg__cls-1{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic_svg__cls-1\", d: \"M26.08 18.47V16.6c0-.58.27-1.19 1-1.25s1.05.45 1.06 1.29v1.83h1.92c.76 0 1.25.46 1.19 1.08a1 1 0 0 1-1.18 1h-1.91v1.74c0 .91-.39 1.41-1.06 1.39s-1-.49-1-1.42v-1.71h-1.91c-.71 0-1.21-.29-1.21-1s.5-1 1.21-1ZM12.81 6.47h1.59a1 1 0 0 1 1 1 1 1 0 0 1-1 1.07h-1.58v1.5c0 .68-.38 1.11-1.07 1.1a1 1 0 0 1-1-1.08V8.54H9.29c-.68 0-1.13-.36-1.12-1s.46-1 1.14-1h1.44V5.01a1 1 0 1 1 2.06 0c.02.38 0 .87 0 1.46ZM19.93 24.67c.11-1.56.33-2 1.05-2s1 .44 1.12 2c.8.17 2.09-.2 2 1.22-.07 1.15-1.14.89-2 .95-.18.8.22 2.11-1.2 2-1.18-.07-.89-1.19-1-2-.84-.09-1.91.21-2-1.06-.07-.7.39-.94 2.03-1.11ZM30.2 6l-2.51-2.49a2.15 2.15 0 0 0-3.06 0L3.27 24.92a2.2 2.2 0 0 0 0 3.08l2.51 2.51a2.17 2.17 0 0 0 3.06 0L30.2 9.09a2.19 2.19 0 0 0 0-3.09ZM29 8.47l-4.39 4.39a.94.94 0 0 1-1.35 0l-2.28-2.28a1 1 0 0 1 0-1.36l4.38-4.39a1 1 0 0 1 1.36 0L29 7.11a1 1 0 0 1 0 1.36Z\" }));\nexport { SvgMagic as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMjYuMDggMTguNDdWMTYuNmMwLS41OC4yNy0xLjE5IDEtMS4yNXMxLjA1LjQ1IDEuMDYgMS4yOXYxLjgzaDEuOTJjLjc2IDAgMS4yNS40NiAxLjE5IDEuMDhhMSAxIDAgMCAxLTEuMTggMWgtMS45MXYxLjc0YzAgLjkxLS4zOSAxLjQxLTEuMDYgMS4zOXMtMS0uNDktMS0xLjQydi0xLjcxaC0xLjkxYy0uNzEgMC0xLjIxLS4yOS0xLjIxLTFzLjUtMSAxLjIxLTFaTTEyLjgxIDYuNDdoMS41OWExIDEgMCAwIDEgMSAxIDEgMSAwIDAgMS0xIDEuMDdoLTEuNTh2MS41YzAgLjY4LS4zOCAxLjExLTEuMDcgMS4xYTEgMSAwIDAgMS0xLTEuMDhWOC41NEg5LjI5Yy0uNjggMC0xLjEzLS4zNi0xLjEyLTFzLjQ2LTEgMS4xNC0xaDEuNDRWNS4wMWExIDEgMCAxIDEgMi4wNiAwYy4wMi4zOCAwIC44NyAwIDEuNDZaTTE5LjkzIDI0LjY3Yy4xMS0xLjU2LjMzLTIgMS4wNS0yczEgLjQ0IDEuMTIgMmMuOC4xNyAyLjA5LS4yIDIgMS4yMi0uMDcgMS4xNS0xLjE0Ljg5LTIgLjk1LS4xOC44LjIyIDIuMTEtMS4yIDItMS4xOC0uMDctLjg5LTEuMTktMS0yLS44NC0uMDktMS45MS4yMS0yLTEuMDYtLjA3LS43LjM5LS45NCAyLjAzLTEuMTFaTTMwLjIgNmwtMi41MS0yLjQ5YTIuMTUgMi4xNSAwIDAgMC0zLjA2IDBMMy4yNyAyNC45MmEyLjIgMi4yIDAgMCAwIDAgMy4wOGwyLjUxIDIuNTFhMi4xNyAyLjE3IDAgMCAwIDMuMDYgMEwzMC4yIDkuMDlhMi4xOSAyLjE5IDAgMCAwIDAtMy4wOVpNMjkgOC40N2wtNC4zOSA0LjM5YS45NC45NCAwIDAgMS0xLjM1IDBsLTIuMjgtMi4yOGExIDEgMCAwIDEgMC0xLjM2bDQuMzgtNC4zOWExIDEgMCAwIDEgMS4zNiAwTDI5IDcuMTFhMSAxIDAgMCAxIDAgMS4zNloiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPolygon = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".polygon_svg__cls-2{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"none\",\n stroke: \"#fff\",\n strokeMiterlimit: 10,\n strokeWidth: 2\n}, d: \"M27.96 5.9H5.75v22.21h22.21l-9.52-10.72L27.96 5.9z\" }), /* @__PURE__ */ React.createElement(\"rect\", { className: \"polygon_svg__cls-2\", x: 2.68, y: 2.83, width: 6.13, height: 6.13, rx: 0.96 }), /* @__PURE__ */ React.createElement(\"rect\", { className: \"polygon_svg__cls-2\", x: 2.68, y: 25.05, width: 6.13, height: 6.13, rx: 0.96 }), /* @__PURE__ */ React.createElement(\"rect\", { className: \"polygon_svg__cls-2\", x: 24.89, y: 25.05, width: 6.13, height: 6.13, rx: 0.96 }), /* @__PURE__ */ React.createElement(\"rect\", { className: \"polygon_svg__cls-2\", x: 24.89, y: 2.83, width: 6.13, height: 6.13, rx: 0.96 }), /* @__PURE__ */ React.createElement(\"rect\", { className: \"polygon_svg__cls-2\", x: 15.7, y: 13.94, width: 6.13, height: 6.13, rx: 0.96 }));\nexport { SvgPolygon as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMntmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggc3R5bGU9ImZpbGw6bm9uZTtzdHJva2U6I2ZmZjtzdHJva2UtbWl0ZXJsaW1pdDoxMDtzdHJva2Utd2lkdGg6MnB4IiBkPSJNMjcuOTYgNS45SDUuNzV2MjIuMjFoMjIuMjFsLTkuNTItMTAuNzJMMjcuOTYgNS45eiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMi44MyIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMi42OCIgeT0iMjUuMDUiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjI0Ljg5IiB5PSIyNS4wNSIgd2lkdGg9IjYuMTMiIGhlaWdodD0iNi4xMyIgcng9Ii45NiIvPjxyZWN0IGNsYXNzPSJjbHMtMiIgeD0iMjQuODkiIHk9IjIuODMiIHdpZHRoPSI2LjEzIiBoZWlnaHQ9IjYuMTMiIHJ4PSIuOTYiLz48cmVjdCBjbGFzcz0iY2xzLTIiIHg9IjE1LjciIHk9IjEzLjk0IiB3aWR0aD0iNi4xMyIgaGVpZ2h0PSI2LjEzIiByeD0iLjk2Ii8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgCustom = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 24 24\", height: \"1em\", width: \"1em\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M3 11h8V3H3v8zm2-6h4v4H5V5zm8-2v8h8V3h-8zm6 6h-4V5h4v4zM3 21h8v-8H3v8zm2-6h4v4H5v-4zm13-2h-2v3h-3v2h3v3h2v-3h3v-2h-3z\" }));\nexport { SvgCustom as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgaGVpZ2h0PSIxZW0iIHdpZHRoPSIxZW0iPjxwYXRoIGQ9Ik0zIDExaDhWM0gzdjh6bTItNmg0djRINVY1em04LTJ2OGg4VjNoLTh6bTYgNmgtNFY1aDR2NHpNMyAyMWg4di04SDN2OHptMi02aDR2NEg1di00em0xMy0yaC0ydjNoLTN2MmgzdjNoMnYtM2gzdi0yaC0zeiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgBrush = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34 34\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".brush_svg__cls-1{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"brush_svg__cls-1\", d: \"M17.29 31.49H9.44c-1.68 0-2.24-.66-1.92-2.28.36-1.83.77-3.66 1.13-5.49a.9.9 0 0 1 1-.84h15.39a.91.91 0 0 1 1 .85c.37 1.83.78 3.65 1.13 5.48.32 1.62-.24 2.28-1.92 2.28-2.63.01-5.25 0-7.96 0ZM17.39 20.05H9.92c-1 0-1.09-.12-1.09-1.06v-1.72a1.36 1.36 0 0 1 1.44-1.46h3.51c.56 0 .74-.19.73-.74 0-2.89.05-5.78 0-8.67C14.43 3.93 16 2.94 17.38 3s2.93 1 2.87 3.48c-.07 2.84 0 5.68 0 8.52 0 .64.16.89.84.86 1.09-.05 2.19 0 3.29 0a1.4 1.4 0 0 1 1.56 1.57v1.8c0 .6-.36.89-1 .89Z\" }), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"none\"\n}, d: \"M2.89 2.83h28.35v28.35H2.89z\" }));\nexport { SvgBrush as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNCAzNCI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNMTcuMjkgMzEuNDlIOS40NGMtMS42OCAwLTIuMjQtLjY2LTEuOTItMi4yOC4zNi0xLjgzLjc3LTMuNjYgMS4xMy01LjQ5YS45LjkgMCAwIDEgMS0uODRoMTUuMzlhLjkxLjkxIDAgMCAxIDEgLjg1Yy4zNyAxLjgzLjc4IDMuNjUgMS4xMyA1LjQ4LjMyIDEuNjItLjI0IDIuMjgtMS45MiAyLjI4LTIuNjMuMDEtNS4yNSAwLTcuOTYgMFpNMTcuMzkgMjAuMDVIOS45MmMtMSAwLTEuMDktLjEyLTEuMDktMS4wNnYtMS43MmExLjM2IDEuMzYgMCAwIDEgMS40NC0xLjQ2aDMuNTFjLjU2IDAgLjc0LS4xOS43My0uNzQgMC0yLjg5LjA1LTUuNzggMC04LjY3QzE0LjQzIDMuOTMgMTYgMi45NCAxNy4zOCAzczIuOTMgMSAyLjg3IDMuNDhjLS4wNyAyLjg0IDAgNS42OCAwIDguNTIgMCAuNjQuMTYuODkuODQuODYgMS4wOS0uMDUgMi4xOSAwIDMuMjkgMGExLjQgMS40IDAgMCAxIDEuNTYgMS41N3YxLjhjMCAuNi0uMzYuODktMSAuODlaIi8+PHBhdGggc3R5bGU9ImZpbGw6bm9uZSIgZD0iTTIuODkgMi44M2gyOC4zNXYyOC4zNUgyLjg5eiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgUndo = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"undo_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M512 324.267V136.533c0-6.826-3.413-13.653-10.24-13.653-6.827-3.413-13.653-3.413-17.067 0L6.827 430.08C3.413 433.493 0 436.907 0 443.733s3.413 10.24 6.827 13.654L484.693 798.72c6.827 3.413 13.654 3.413 17.067 0 6.827-3.413 10.24-10.24 10.24-13.653V597.333c249.173 10.24 474.453 235.52 477.867 290.134 0 10.24 6.826 17.066 17.066 17.066S1024 897.707 1024 887.467c-3.413-225.28-170.667-552.96-512-563.2z\", fill: \"#fff\" }));\nexport { SvgUndo as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMzI0LjI2N1YxMzYuNTMzYzAtNi44MjYtMy40MTMtMTMuNjUzLTEwLjI0LTEzLjY1My02LjgyNy0zLjQxMy0xMy42NTMtMy40MTMtMTcuMDY3IDBMNi44MjcgNDMwLjA4QzMuNDEzIDQzMy40OTMgMCA0MzYuOTA3IDAgNDQzLjczM3MzLjQxMyAxMC4yNCA2LjgyNyAxMy42NTRMNDg0LjY5MyA3OTguNzJjNi44MjcgMy40MTMgMTMuNjU0IDMuNDEzIDE3LjA2NyAwIDYuODI3LTMuNDEzIDEwLjI0LTEwLjI0IDEwLjI0LTEzLjY1M1Y1OTcuMzMzYzI0OS4xNzMgMTAuMjQgNDc0LjQ1MyAyMzUuNTIgNDc3Ljg2NyAyOTAuMTM0IDAgMTAuMjQgNi44MjYgMTcuMDY2IDE3LjA2NiAxNy4wNjZTMTAyNCA4OTcuNzA3IDEwMjQgODg3LjQ2N2MtMy40MTMtMjI1LjI4LTE3MC42NjctNTUyLjk2LTUxMi01NjMuMnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgRedo = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"redo_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"m1017.173 430.08-477.866-307.2c-6.827-3.413-13.654-3.413-17.067 0-6.827 3.413-10.24 6.827-10.24 13.653v187.734c-341.333 10.24-508.587 337.92-512 563.2v3.413c0 6.827 6.827 13.653 17.067 13.653s17.066-6.826 17.066-17.066c3.414-51.2 228.694-279.894 477.867-290.134v187.734c0 6.826 3.413 13.653 10.24 13.653 6.827 3.413 13.653 3.413 17.067 0l477.866-341.333c3.414-3.414 6.827-10.24 6.827-13.654s-3.413-10.24-6.827-13.653z\", fill: \"#fff\" }));\nexport { SvgRedo as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Im0xMDE3LjE3MyA0MzAuMDgtNDc3Ljg2Ni0zMDcuMmMtNi44MjctMy40MTMtMTMuNjU0LTMuNDEzLTE3LjA2NyAwLTYuODI3IDMuNDEzLTEwLjI0IDYuODI3LTEwLjI0IDEzLjY1M3YxODcuNzM0Yy0zNDEuMzMzIDEwLjI0LTUwOC41ODcgMzM3LjkyLTUxMiA1NjMuMnYzLjQxM2MwIDYuODI3IDYuODI3IDEzLjY1MyAxNy4wNjcgMTMuNjUzczE3LjA2Ni02LjgyNiAxNy4wNjYtMTcuMDY2YzMuNDE0LTUxLjIgMjI4LjY5NC0yNzkuODk0IDQ3Ny44NjctMjkwLjEzNHYxODcuNzM0YzAgNi44MjYgMy40MTMgMTMuNjUzIDEwLjI0IDEzLjY1MyA2LjgyNyAzLjQxMyAxMy42NTMgMy40MTMgMTcuMDY3IDBsNDc3Ljg2Ni0zNDEuMzMzYzMuNDE0LTMuNDE0IDYuODI3LTEwLjI0IDYuODI3LTEzLjY1NHMtMy40MTMtMTAuMjQtNi44MjctMTMuNjUzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgRepeat = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"repeat_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M0 448c0 35.4 28.6 64 64 64s64-28.6 64-64c0-106 86-192 192-192h320v64c0 25.8 15.6 49.2 39.6 59.2s51.4 4.4 69.8-13.8l128-128c25-25 25-65.6 0-90.6l-128-128C731 .4 703.6-5 679.6 5S640 38.2 640 64v64H320C143.2 128 0 271.2 0 448zm1024 128c0-35.4-28.6-64-64-64s-64 28.6-64 64c0 106-86 192-192 192H384v-64c0-25.8-15.6-49.2-39.6-59.2s-51.4-4.4-69.8 13.8l-128 128c-25 25-25 65.6 0 90.6l128 128c18.4 18.4 45.8 23.8 69.8 13.8s39.6-33.2 39.6-59.2V896h320c176.8 0 320-143.2 320-320z\", fill: \"#fff\" }));\nexport { SvgRepeat as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0wIDQ0OGMwIDM1LjQgMjguNiA2NCA2NCA2NHM2NC0yOC42IDY0LTY0YzAtMTA2IDg2LTE5MiAxOTItMTkyaDMyMHY2NGMwIDI1LjggMTUuNiA0OS4yIDM5LjYgNTkuMnM1MS40IDQuNCA2OS44LTEzLjhsMTI4LTEyOGMyNS0yNSAyNS02NS42IDAtOTAuNmwtMTI4LTEyOEM3MzEgLjQgNzAzLjYtNSA2NzkuNiA1UzY0MCAzOC4yIDY0MCA2NHY2NEgzMjBDMTQzLjIgMTI4IDAgMjcxLjIgMCA0NDh6bTEwMjQgMTI4YzAtMzUuNC0yOC42LTY0LTY0LTY0cy02NCAyOC42LTY0IDY0YzAgMTA2LTg2IDE5Mi0xOTIgMTkySDM4NHYtNjRjMC0yNS44LTE1LjYtNDkuMi0zOS42LTU5LjJzLTUxLjQtNC40LTY5LjggMTMuOGwtMTI4IDEyOGMtMjUgMjUtMjUgNjUuNiAwIDkwLjZsMTI4IDEyOGMxOC40IDE4LjQgNDUuOCAyMy44IDY5LjggMTMuOHMzOS42LTMzLjIgMzkuNi01OS4yVjg5NmgzMjBjMTc2LjggMCAzMjAtMTQzLjIgMzIwLTMyMHoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDeleteAll = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"delete_all_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M864 192v576h64V192c0-70.4-57.6-128-128-128H352v64h448c35.2 0 64 28.8 64 64z\", fill: \"#fff\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M672 192H224c-70.4 0-128 57.6-128 128v512c0 70.4 57.6 128 128 128h448c70.4 0 128-57.6 128-128V320c0-70.4-57.6-128-128-128zm-73.235 489.51c12.445 12.445 12.445 32.81 0 45.255s-32.81 12.445-45.255 0L448 621.255l-105.51 105.51c-12.445 12.445-32.81 12.445-45.255 0s-12.445-32.81 0-45.255L402.745 576l-105.51-105.51c-12.445-12.445-12.445-32.81 0-45.255s32.81-12.445 45.255 0L448 530.745l105.51-105.51c12.445-12.445 32.81-12.445 45.255 0s12.445 32.81 0 45.255L493.255 576l105.51 105.51z\", fill: \"#fff\" }));\nexport { SvgDeleteAll as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik04NjQgMTkydjU3Nmg2NFYxOTJjMC03MC40LTU3LjYtMTI4LTEyOC0xMjhIMzUydjY0aDQ0OGMzNS4yIDAgNjQgMjguOCA2NCA2NHoiIGZpbGw9IiNmZmYiLz48cGF0aCBkPSJNNjcyIDE5MkgyMjRjLTcwLjQgMC0xMjggNTcuNi0xMjggMTI4djUxMmMwIDcwLjQgNTcuNiAxMjggMTI4IDEyOGg0NDhjNzAuNCAwIDEyOC01Ny42IDEyOC0xMjhWMzIwYzAtNzAuNC01Ny42LTEyOC0xMjgtMTI4em0tNzMuMjM1IDQ4OS41MWMxMi40NDUgMTIuNDQ1IDEyLjQ0NSAzMi44MSAwIDQ1LjI1NXMtMzIuODEgMTIuNDQ1LTQ1LjI1NSAwTDQ0OCA2MjEuMjU1bC0xMDUuNTEgMTA1LjUxYy0xMi40NDUgMTIuNDQ1LTMyLjgxIDEyLjQ0NS00NS4yNTUgMHMtMTIuNDQ1LTMyLjgxIDAtNDUuMjU1TDQwMi43NDUgNTc2bC0xMDUuNTEtMTA1LjUxYy0xMi40NDUtMTIuNDQ1LTEyLjQ0NS0zMi44MSAwLTQ1LjI1NXMzMi44MS0xMi40NDUgNDUuMjU1IDBMNDQ4IDUzMC43NDVsMTA1LjUxLTEwNS41MWMxMi40NDUtMTIuNDQ1IDMyLjgxLTEyLjQ0NSA0NS4yNTUgMHMxMi40NDUgMzIuODEgMCA0NS4yNTVMNDkzLjI1NSA1NzZsMTA1LjUxIDEwNS41MXoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=\";\n","import { ReactComponent as RectIcon } from '../assets/rectangle.svg';\nimport { ReactComponent as SkeletonIcon } from '../assets/point.svg';\nimport { ReactComponent as MagicIcon } from '../assets/magic.svg';\nimport { ReactComponent as PolygonIcon } from '../assets/polygon.svg';\nimport { ReactComponent as CustomIcon } from '../assets/custom.svg';\nimport { ReactComponent as MaskIcon } from '../assets/brush.svg';\nimport { ReactComponent as UndoIcon } from '../assets/undo.svg';\nimport { ReactComponent as RedoIcon } from '../assets/redo.svg';\nimport { ReactComponent as RepeatIcon } from '../assets/repeat.svg';\nimport { ReactComponent as DeleteAllIcon } from '../assets/delete_all.svg';\n\nexport enum AnnotationType {\n Classification = 'Classification',\n Detection = 'Detection',\n Segmentation = 'Segmentation',\n Matting = 'Matting',\n KeyPoints = 'KeyPoints',\n Mask = 'Mask',\n}\n\nexport enum DisplayOption {\n showAnnotations = 'showAnnotations',\n showAllCategory = 'showAllCategory',\n showImgDesc = 'showImgDesc',\n showBoxText = 'showBoxText',\n showSegFilling = 'showSegFilling',\n showSegContour = 'showSegContour',\n showMattingColorFill = 'showMattingColorFill',\n showKeyPointsLine = 'showKeyPointsLine',\n showKeyPointsBox = 'showKeyPointsBox',\n}\n\nexport enum EnumTaskStatus {\n Waiting = 'waiting',\n Running = 'running',\n Success = 'success',\n Failed = 'failed',\n}\n\n/**\n * Zoom control related.\n */\nexport const MIN_SCALE = 0.1;\nexport const MAX_SCALE = 20;\nexport const BUTTON_SCALE_STEP = 0.5;\nexport const WHEEL_SCALE_STEP = 0.1;\n\nexport enum EObjectType {\n Custom = 'Custom',\n Rectangle = 'Rectangle',\n Polygon = 'Polygon',\n Skeleton = 'Skeleton',\n Mask = 'Mask',\n Matting = 'Matting',\n}\n\nexport enum EElementType {\n Rect = 'rect',\n Circle = 'circle',\n Polygon = 'polygon',\n None = 'none',\n}\n\nexport enum EBasicToolItem {\n Drag = 'Drag',\n Rectangle = 'Rect',\n Polygon = 'Polygon',\n Skeleton = 'Skeleton',\n Mask = 'Mask',\n}\n\nexport const EBasicToolTypeMap = {\n [EBasicToolItem.Drag]: EObjectType.Custom,\n [EBasicToolItem.Rectangle]: EObjectType.Rectangle,\n [EBasicToolItem.Polygon]: EObjectType.Polygon,\n [EBasicToolItem.Skeleton]: EObjectType.Skeleton,\n [EBasicToolItem.Mask]: EObjectType.Mask,\n};\n\nexport enum ESubToolItem {\n PenAdd = 'PenAdd',\n PenErase = 'PenErase',\n BrushAdd = 'BrushAdd',\n BrushErase = 'BrushErase',\n AutoSegmentByBox = 'AutoSegmentByBox',\n AutoSegmentByClick = 'AutoSegmentByClick',\n AutoSegmentByStroke = 'AutoSegmentByStroke',\n AutoSegmentEverything = 'AutoSegmentEverything',\n AutoEdgeStitching = 'AutoEdgeStitching',\n}\n\nexport enum EActionToolItem {\n SmartAnnotation = 'SmartAnnotation',\n Undo = 'Undo',\n Redo = 'Redo',\n RepeatPrevious = 'RepeatPrevious',\n DeleteAll = 'DeleteAll',\n}\n\nexport type EToolType = EBasicToolItem;\n\nexport const OBJECT_ICON: Record<\n EObjectType,\n React.FunctionComponent>\n> = {\n [EObjectType.Rectangle]: RectIcon,\n [EObjectType.Skeleton]: SkeletonIcon,\n [EObjectType.Polygon]: PolygonIcon,\n [EObjectType.Custom]: CustomIcon,\n [EObjectType.Mask]: MaskIcon,\n [EObjectType.Matting]: MaskIcon,\n};\n\nexport const EDITOR_TOOL_ICON: Record<\n EActionToolItem,\n React.FunctionComponent>\n> = {\n [EActionToolItem.SmartAnnotation]: MagicIcon,\n [EActionToolItem.Undo]: UndoIcon,\n [EActionToolItem.Redo]: RedoIcon,\n [EActionToolItem.RepeatPrevious]: RepeatIcon,\n [EActionToolItem.DeleteAll]: DeleteAllIcon,\n};\n\n// visible 0: not labeled, v=1: labeled but not visible, and v=2: labeled and visible\nexport enum KEYPOINTS_VISIBLE_TYPE {\n noLabeled = 0,\n labeledNotVisible = 1,\n labeledVisible = 2,\n}\n\n/** 17-point human body model. */\nexport const BODY_TEMPLATE = {\n categoryName: 'person',\n boundingBox: {\n xmax: 0.44072164948453607,\n xmin: 0.2654639175257732,\n ymax: 0.5698739977090492,\n ymin: 0.09335624284077892,\n },\n points: [\n 175.25773195876286, 61.21134020618557, 0.0, 1.0, 2.0, 1.0,\n 179.9828178694158, 41.45189003436426, 0.0, 1.0, 2.0, 1.0,\n 170.96219931271477, 41.881443298969074, 0.0, 1.0, 2.0, 1.0,\n 189.86254295532646, 51.33161512027492, 0.0, 1.0, 2.0, 1.0,\n 163.23024054982818, 50.47250859106529, 0.0, 1.0, 2.0, 1.0,\n 192.86941580756016, 68.08419243986253, 0.0, 1.0, 2.0, 1.0, 158.295150820924,\n 67.63982699371964, 0.0, 1.0, 2.0, 1.0, 202.74914089347078,\n 99.87113402061856, 0.0, 1.0, 2.0, 1.0, 150.34364261168383,\n 99.87113402061856, 0.0, 1.0, 2.0, 1.0, 208.76288659793815,\n 127.36254295532646, 0.0, 1.0, 2.0, 1.0, 142.61168384879724,\n 129.0807560137457, 0.0, 1.0, 2.0, 1.0, 182.13058419243984,\n 126.50343642611685, 0.0, 1.0, 2.0, 1.0, 162.2279495990836,\n 125.4739898092191, 0.0, 1.0, 2.0, 1.0, 184.70790378006873,\n 175.4725085910653, 0.0, 1.0, 2.0, 1.0, 158.78675066819395,\n 176.9759450171821, 0.0, 1.0, 2.0, 1.0, 190.29209621993127,\n 208.11855670103094, 0.0, 1.0, 2.0, 1.0, 152.92096219931273,\n 206.82989690721652, 0.0, 1.0, 2.0, 1.0,\n ],\n lines: [\n 15, 13, 13, 11, 16, 14, 14, 12, 11, 12, 5, 11, 6, 12, 5, 6, 5, 7, 6, 8, 7,\n 9, 8, 10, 1, 2, 0, 1, 0, 2, 1, 3, 2, 4, 3, 5, 4, 6,\n ],\n pointColors: [\n '128',\n '0',\n '0',\n '255',\n '178',\n '102',\n '230',\n '230',\n '0',\n '255',\n '51',\n '255',\n '153',\n '204',\n '255',\n '255',\n '128',\n '0',\n '0',\n '255',\n '255',\n '128',\n '0',\n '255',\n '51',\n '153',\n '255',\n '169',\n '165',\n '139',\n '255',\n '0',\n '0',\n '102',\n '255',\n '102',\n '184',\n '97',\n '134',\n '128',\n '128',\n '0',\n '255',\n '190',\n '255',\n '0',\n '128',\n '0',\n '0',\n '0',\n '255',\n ],\n pointNames: [\n 'nose',\n 'left_eye',\n 'right_eye',\n 'left_ear',\n 'right_ear',\n 'left_shoulder',\n 'right_shoulder',\n 'left_elbow',\n 'right_elbow',\n 'left_wrist',\n 'right_wrist',\n 'left_hip',\n 'right_hip',\n 'left_knee',\n 'right_knee',\n 'left_ankle',\n 'right_ankle',\n ],\n};\n","export const ANNO_FILL_ALPHA = {\n DEFAULT: 0,\n CREATING: 0,\n SHAPE: 0.4,\n FOCUS: 0.6,\n ACTIVE: 0.2,\n CTRL_TO_SELECT: 0.1,\n OTHER: 0,\n};\n\nexport const ANNO_STROKE_ALPHA = {\n DEFAULT: 1,\n CREATING: 1,\n CREATING_LINE: 0.8,\n FOCUS: 1,\n ACTIVE: 1,\n OTHER: 0.3,\n};\n\nexport const ANNO_MASK_ALPHA = {\n CREATING: 0.7,\n FOCUS: 0.6,\n DEFAULT: 0.4,\n};\n\nexport const ANNO_STROKE_COLOR = {\n CREATING: '#fff',\n};\n\nexport const ANNO_FILL_COLOR = {\n CREATING: 'transparent',\n CREATING_POSITIVE: '#2876d4',\n CREATING_NEGATIVE: '#e91d00',\n};\n\nexport const PROMPT_FILL_COLOR = {\n POSITIVE: 'rgba(1, 128, 0, 0.7)',\n NEGATIVE: 'rgba(255, 3, 0, 0.7)',\n};\n","import React from 'react';\nimport classNames from 'classnames';\nimport { Tooltip } from 'antd';\nimport './index.less';\n\nexport interface ITopToolItem {\n icon?: React.ReactNode;\n title?: string;\n customElement?: React.ReactNode;\n onClick?: (event: React.MouseEvent) => void;\n disabled?: boolean;\n splitLine?: boolean;\n}\n\nexport interface IProps {\n className?: string;\n children?: React.ReactNode;\n leftTools?: ITopToolItem[];\n rightTools?: ITopToolItem[];\n}\n\nconst TopTools: React.FC = (props) => {\n const { className = '', children, leftTools = [], rightTools = [] } = props;\n\n const renderTools = (tools: ITopToolItem[]) =>\n tools.map(\n ({ title, icon, onClick, disabled, splitLine, customElement }, index) => (\n \n {customElement ? (\n customElement\n ) : (\n \n \n {icon}\n
\n \n )}\n {splitLine &&
}\n \n ),\n );\n\n return (\n {\n event.stopPropagation();\n }}\n >\n
\n {renderTools(leftTools)}\n
\n
{children}
\n
\n {renderTools(rightTools)}\n
\n
\n );\n};\n\nexport default TopTools;\n","import { useCallback, useEffect, useState } from 'react';\nimport { Updater } from 'use-immer';\nimport {\n Category,\n DrawData,\n EditState,\n EditorMode,\n IAnnotationObject,\n} from '../type';\nimport { EElementType, KEYPOINTS_VISIBLE_TYPE } from '../constants';\nimport { cloneDeep } from 'lodash';\n\ninterface IProps {\n visible: boolean;\n mode: EditorMode;\n categories: Category[];\n setCategories?: Updater;\n drawData: DrawData;\n setDrawData: Updater;\n editState: EditState;\n updateObjectWithoutHistory: (\n object: IAnnotationObject,\n index: number,\n ) => void;\n updateAllObjectWithoutHistory: (objectList: IAnnotationObject[]) => void;\n}\n\nexport default function useLabels({\n visible,\n categories,\n setCategories,\n drawData,\n setDrawData,\n editState,\n updateObjectWithoutHistory,\n updateAllObjectWithoutHistory,\n}: IProps) {\n const [aiLabels, setAiLabels] = useState([]);\n\n const onCreateCategory = useCallback(\n (name: string) => {\n if (categories.find((item) => item.name === name) || !setCategories)\n return;\n setCategories((categories) => [\n ...categories,\n {\n id: name,\n name,\n },\n ]);\n },\n [categories],\n );\n\n useEffect(() => {\n const allLabels = categories.map((item) => item.name);\n const commonLabels = aiLabels.filter((item) => allLabels.includes(item));\n setAiLabels(commonLabels);\n }, [categories]);\n\n useEffect(() => {\n if (!visible) {\n setAiLabels([]);\n }\n }, [visible]);\n\n const curObjects = drawData.objectList;\n\n const onChangeObjectHidden = useCallback(\n (index: number, hidden: boolean) => {\n const newObject = { ...drawData.objectList[index] };\n newObject.hidden = hidden;\n updateObjectWithoutHistory(newObject, index);\n },\n [drawData.objectList],\n );\n\n const onChangeCategoryHidden = useCallback(\n (category: string, hidden: boolean) => {\n const updatedObjects = drawData.objectList.map((item) => {\n const temp = { ...item };\n if (temp.label === category) temp.hidden = hidden;\n return temp;\n });\n updateAllObjectWithoutHistory(updatedObjects);\n },\n [drawData.objectList],\n );\n\n const onChangeElementVisible = (eleType: EElementType, visible: boolean) => {\n const newObject = { ...drawData.objectList[editState.focusObjectIndex] };\n switch (eleType) {\n case EElementType.Rect: {\n if (newObject.rect) {\n newObject.rect.visible = visible;\n updateObjectWithoutHistory(newObject, editState.focusObjectIndex);\n }\n break;\n }\n case EElementType.Polygon: {\n if (newObject.polygon) {\n newObject.polygon.visible = visible;\n updateObjectWithoutHistory(newObject, editState.focusObjectIndex);\n }\n break;\n }\n }\n };\n\n /**\n * Updates the visibility of a keypoint and then updates the object in the draw\n * data object list at the focus object index with the new object.\n *\n * @param {KEYPOINTS_VISIBLE_TYPE} visible - The visibility value for the keypoint.\n */\n const onChangePointVisible = (visible: KEYPOINTS_VISIBLE_TYPE) => {\n const newObject = cloneDeep(\n drawData.objectList[editState.focusObjectIndex],\n );\n const point = newObject.keypoints?.points?.[editState.focusEleIndex];\n if (point) {\n point.visible = visible;\n }\n updateObjectWithoutHistory(newObject, editState.focusObjectIndex);\n };\n\n const onChangeActiveClass = useCallback((name: string) => {\n setDrawData((s) => {\n if (name === s.activeClassName) return;\n s.activeClassName = name;\n });\n }, []);\n\n useEffect(() => {\n if (drawData.activeObjectIndex < 0) return;\n const activeItemLabel =\n drawData.objectList[drawData.activeObjectIndex].label;\n if (activeItemLabel !== drawData.activeClassName) {\n onChangeActiveClass(activeItemLabel);\n }\n }, [drawData.activeObjectIndex]);\n\n return {\n aiLabels,\n setAiLabels,\n curObjects,\n onChangeObjectHidden,\n onChangeCategoryHidden,\n onChangeElementVisible,\n onChangePointVisible,\n onChangeActiveClass,\n onCreateCategory,\n };\n}\n","/**\n * Convert image to base64.\n * @param imgUrl\n * @returns\n */\nexport const getImageBase64 = async (imgUrl: string): Promise => {\n return new Promise((resolve, reject) => {\n window.URL = window.URL || window.webkitURL;\n\n const xhr = new XMLHttpRequest();\n xhr.open('get', imgUrl, true);\n xhr.responseType = 'blob';\n xhr.setRequestHeader('If-Modified-Since', '0');\n xhr.send();\n xhr.onload = function () {\n if (this.status === 200) {\n const blob = this.response;\n const oFileReader = new FileReader();\n oFileReader.onloadend = function (e) {\n const base64 = e.target?.result;\n resolve(base64 as string);\n };\n oFileReader.onerror = function (e) {\n reject(e);\n };\n oFileReader.readAsDataURL(blob);\n }\n };\n xhr.onerror = function (e) {\n reject(e);\n };\n });\n};\n\nexport const isBase64 = (str: string) => {\n const base64Regex = /^data:image\\/(png|jpe?g|gif|svg|webp);base64,/i;\n return base64Regex.test(str);\n};\n\nexport const isBlobUrl = (str: string) => {\n const blobUrlRegex = /^blob:/i;\n return blobUrlRegex.test(str);\n};\n\nexport const getImgBase64ByBlob = (blobUrl: Blob) => {\n return new Promise((resolve, reject) => {\n const fileReader = new FileReader();\n fileReader.onload = (e) => {\n resolve(e.target?.result);\n };\n fileReader.readAsDataURL(blobUrl);\n fileReader.onerror = (e) => {\n reject(e);\n };\n });\n};\n","/* eslint-disable @typescript-eslint/no-namespace */\nimport { request } from '@umijs/max';\nimport { Modal } from 'antd';\nimport { globalLocaleText } from 'dds-utils/locale';\nimport { EnumTaskStatus } from '../constants';\n\nexport namespace NsApiAnnotator {\n export enum EnumModelType {\n Detection = 'ai_detection',\n SegmentByPolygon = 'ai_segmentation',\n SegmentByMask = 'ai_segmentation_mask',\n Pose = 'ai_pose',\n MaskEdgeStitching = 'ai_mask_edge_stitching',\n SegmentEverything = 'ai_segment_everything',\n }\n\n export type ModelParam =\n T extends EnumModelType.Detection\n ? FetchAIDetectionReq\n : T extends EnumModelType.SegmentByPolygon\n ? FetchAIPolygonSegmentReq\n : T extends EnumModelType.SegmentByMask\n ? FetchAIMaskSegmentReq\n : T extends EnumModelType.MaskEdgeStitching\n ? FetchEdgeStitchingReq\n : T extends EnumModelType.SegmentEverything\n ? FetchSegmentEverythingReq\n : T extends EnumModelType.Pose\n ? FetchAIPoseEstimationReq\n : never;\n\n export type ModelResult =\n T extends EnumModelType.Detection\n ? FetchAIDetectionRsp\n : T extends EnumModelType.SegmentByPolygon\n ? FetchAIPolygonSegmentRsp\n : T extends EnumModelType.SegmentByMask\n ? FetchAIMaskSegmentRsp\n : T extends EnumModelType.MaskEdgeStitching\n ? FetchEdgeStitchingRsp\n : T extends EnumModelType.SegmentEverything\n ? FetchSegmentEverythingRsp\n : T extends EnumModelType.Pose\n ? FetchAIPoseEstimationRsp\n : never;\n\n export interface FetchAIDetectionReq {\n image: string;\n text: string;\n }\n\n export interface FetchAIPolygonSegmentReq {\n image: string;\n mask: string;\n polygons: number[][];\n clicks: {\n isPositive: boolean;\n position: number[];\n }[];\n rect?: number[];\n }\n\n export interface FetchAIMaskSegmentReq {\n image?: string; // required when first request\n imageId?: string;\n maskId: string;\n maskRle: number[];\n prompt: {\n type: string; // 'rect' | 'point' | 'stroke';\n isPositive: boolean;\n point?: number[]; // [x, y]\n rect?: number[]; // [xmin, ymin, xmax, ymax];\n stroke?: number[]; // [x1, y1, x2, y2];\n radius?: number;\n }[];\n area: number[]; // [xmin, ymin, xmax, ymax];\n }\n\n export interface FetchEdgeStitchingReq {\n image?: string; // base64\n imageId?: string;\n rleList: {\n maskRle: number[];\n categoryName: string;\n }[];\n stroke: number[]; // [x1, y1, x2, y2];\n radius: number;\n }\n\n export interface SegmentEverythingParams {\n pointsPerSide?: number; // default 32\n predIouThresh?: number; // default 0.89\n minMaskRegionArea?: number; // default 300\n }\n\n export interface FetchSegmentEverythingReq extends SegmentEverythingParams {\n image?: string;\n imageId?: string;\n }\n\n export interface FetchAIPoseEstimationReq {\n image: string;\n targets: string;\n template: {\n lines: number[];\n pointNames: string[];\n pointColors: string[];\n };\n objects?: Array<{\n categoryName: string;\n boundingBox: IBoundingBox;\n points: number[];\n }>;\n }\n\n export interface FetchAIDetectionRsp {\n objects: Array<{\n categoryName: string;\n boundingBox: IBoundingBox;\n score: number;\n normalizedScore: number;\n }>;\n suggestThreshold: number;\n }\n\n export interface FetchAIPolygonSegmentRsp {\n polygon: number[][];\n mask: string;\n }\n\n export interface FetchAIMaskSegmentRsp {\n maskRle: number[]; // rle\n maskId: string;\n imageId: string;\n }\n export interface FetchEdgeStitchingRsp {\n rleList: {\n maskRle: number[];\n categoryName: string;\n }[];\n }\n export interface FetchAIPoseEstimationRsp {\n objects: Array<{\n categoryName: string;\n boundingBox: IBoundingBox;\n points: number[];\n conf: number;\n }>;\n }\n\n export interface FetchSegmentEverythingRsp {\n rleList: {\n maskRle: number[];\n }[];\n }\n\n export interface fetchTaskUuid {\n taskUuid: string;\n }\n\n export interface FetchModelRsp {\n error: string;\n status: EnumTaskStatus;\n uuid: string;\n result: ModelResult;\n }\n}\n\nasync function fetchTaskUuid(\n type: NsApiAnnotator.EnumModelType,\n params: any,\n options?: { [key: string]: any },\n) {\n return request(\n `${process.env.MODEL_API_PATH}/tasks/${type}`,\n {\n method: 'POST',\n data: {\n ...params,\n },\n ...(options || {\n hideCodeErrorMsg: true,\n }),\n },\n );\n}\n\nfunction fetchTaskResults(\n taskUuid: string,\n options?: { [key: string]: any },\n) {\n return request>(\n `${process.env.MODEL_API_PATH}/task_statuses/${taskUuid}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\nfunction fetchMaskTaskResults(\n taskUuid: string,\n options?: { [key: string]: any },\n) {\n return request>(\n `${process.env.MODEL_API_PATH}/mask_task_statuses/${taskUuid}`,\n {\n method: 'GET',\n ...(options || {}),\n },\n );\n}\n\nexport async function pollTaskResults(\n type: NsApiAnnotator.EnumModelType,\n taskUuid: string,\n maxAttempts = 5000,\n interval = 1000,\n) {\n let attempts = 0;\n\n while (attempts < maxAttempts) {\n const fetchTaskResultsRequest = [\n NsApiAnnotator.EnumModelType.SegmentByMask,\n NsApiAnnotator.EnumModelType.MaskEdgeStitching,\n NsApiAnnotator.EnumModelType.SegmentEverything,\n ].includes(type)\n ? fetchMaskTaskResults\n : fetchTaskResults;\n const results = await fetchTaskResultsRequest(taskUuid);\n\n if (results.status === EnumTaskStatus.Success) {\n return results.result;\n }\n\n if (results.status === EnumTaskStatus.Failed) {\n throw new Error(results.error);\n }\n\n await new Promise((resolve) => {\n setTimeout(resolve, interval);\n });\n attempts++;\n }\n\n throw new Error('Max attempts exceeded');\n}\n\nexport async function fetchModelResults(\n type: NsApiAnnotator.EnumModelType,\n params: NsApiAnnotator.ModelParam,\n) {\n try {\n const { taskUuid } = await fetchTaskUuid(type, params);\n const result = await pollTaskResults(type, taskUuid);\n return result;\n } catch (error: any) {\n // status 429 indicates warning for rate limit of AI annotate request\n if (error.response.status === 429) {\n Modal.info({\n title: globalLocaleText('DDSAnnotator.smart.rateLimit.title'),\n centered: true,\n content: globalLocaleText('DDSAnnotator.smart.rateLimit.content'),\n okText: globalLocaleText('DDSAnnotator.smart.rateLimit.okText'),\n onOk: () => {},\n });\n } else {\n throw new Error(error.message);\n }\n }\n}\n","import {\n getVisibleAreaForImage,\n translateBoundingBoxToRect,\n translateObjectsToAnnotations,\n translatePointsToPointObjs,\n translatePointZoom,\n translateRectToAbsBbox,\n getCanvasPoint,\n getNaturalPoint,\n} from '../utils/compute';\nimport { message } from 'antd';\nimport { Updater } from 'use-immer';\nimport {\n BODY_TEMPLATE,\n EBasicToolItem,\n EBasicToolTypeMap,\n EObjectType,\n ESubToolItem,\n} from '../constants';\nimport { getImageBase64, isBase64 } from '../utils/base64';\nimport { useLocale } from 'dds-utils/locale';\nimport { useModel } from '@umijs/max';\nimport {\n BaseObject,\n DrawData,\n DrawImageData,\n EditState,\n EditorMode,\n IAnnotationObject,\n MaskPromptItem,\n EObjectStatus,\n EQaAction,\n} from '../type';\nimport { objectToRle, rleToCanvas } from '../tools/useMask';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport { ModalStaticFunctions } from 'antd/es/modal/confirm';\nimport { useCallback } from 'react';\nimport { NsApiAnnotator, fetchModelResults } from '../sevices';\n\ninterface IProps {\n mode: EditorMode;\n list: DrawImageData[];\n current: number;\n modal: Omit;\n drawData: DrawData;\n setDrawData: Updater;\n setDrawDataWithHistory: Updater;\n editState: EditState;\n setEditState: Updater;\n naturalSize: ISize;\n clientSize: ISize;\n containerMouse: CursorState;\n imagePos: React.MutableRefObject;\n updateAllObject: (objectList: IAnnotationObject[]) => void;\n hadChangeRecord: boolean;\n latestLabel: string;\n getAnnotColor: (category: string, forceColorByCategory?: boolean) => string;\n onCancel?: () => void;\n onSave?: (imageId: string, annotations: BaseObject[]) => Promise;\n onReviewResult?: (imageId: string, action: EQaAction) => Promise;\n}\n\nexport type OnAiAnnotationFunc = ({\n type,\n drawData,\n aiLabels,\n bbox,\n maskPrompts,\n segmentationClicks,\n segmentEverythingParams,\n}: {\n type?: EObjectType;\n drawData?: DrawData;\n aiLabels?: string[];\n bbox?: IBoundingBox;\n maskPrompts?: MaskPromptItem[];\n segmentationClicks?: {\n point: IPoint;\n isPositive: boolean;\n }[];\n segmentEverythingParams?: NsApiAnnotator.SegmentEverythingParams;\n}) => Promise;\n\nconst useActions = ({\n mode,\n list,\n current,\n modal,\n drawData: editorDrawData,\n setDrawData,\n setDrawDataWithHistory,\n editState,\n setEditState,\n naturalSize,\n clientSize,\n imagePos,\n containerMouse,\n updateAllObject,\n hadChangeRecord,\n latestLabel,\n getAnnotColor,\n onCancel,\n onSave,\n onReviewResult,\n}: IProps) => {\n const { localeText } = useLocale();\n const { setLoading } = useModel('global');\n const { isRequiring } = editState;\n const setIsRequiring = (requiring: boolean) =>\n setEditState((s) => {\n s.isRequiring = requiring;\n });\n\n const requestAiDetection = async (source: string, aiLabels: string[]) => {\n try {\n setLoading(true);\n const result =\n await fetchModelResults(\n NsApiAnnotator.EnumModelType.Detection,\n {\n image: source,\n text: aiLabels.join(','),\n },\n );\n\n if (result) {\n const { objects, suggestThreshold } = result;\n const limitConf = suggestThreshold || 0;\n const newObjects: IAnnotationObject[] = objects\n .map((item) => {\n // mouse.elementW is not necessarily identical to the size during initialization transformation\n const rect = {\n ...translateBoundingBoxToRect(item.boundingBox, clientSize),\n };\n return {\n rect: { ...rect, visible: true },\n label: item.categoryName,\n type: EObjectType.Rectangle,\n hidden: false,\n status:\n item.normalizedScore >= limitConf\n ? EObjectStatus.Checked\n : EObjectStatus.Unchecked,\n conf: item.normalizedScore,\n color: getAnnotColor(item.categoryName, true),\n };\n })\n .reverse();\n setDrawDataWithHistory((s) => {\n s.isBatchEditing = true;\n s.limitConf = limitConf;\n const commitedObjects = s.objectList.filter(\n (obj) => obj.status === EObjectStatus.Commited,\n );\n s.objectList = [...commitedObjects, ...newObjects];\n if (s.creatingObject && s.objectList[s.activeObjectIndex]) {\n s.creatingObject = { ...s.objectList[s.activeObjectIndex] };\n }\n });\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setLoading(false);\n }\n };\n\n const requestAiSegmentByPolygon = async (\n drawData: DrawData,\n source: string,\n bbox?: IBoundingBox,\n segmentationClicks?: {\n point: IPoint;\n isPositive: boolean;\n }[],\n ) => {\n const existPolygons =\n drawData.creatingObject?.polygon?.group.map((polygon) => {\n return polygon.reduce((acc: number[], point) => {\n const { x, y } = getNaturalPoint(\n [point.x, point.y],\n naturalSize,\n clientSize,\n );\n return acc.concat([x, y]);\n }, []);\n }) || [];\n\n const clicks =\n segmentationClicks?.map((click) => {\n const { x, y } = getNaturalPoint(\n [click.point.x, click.point.y],\n naturalSize,\n clientSize,\n );\n return {\n isPositive: click.isPositive,\n position: [x, y],\n };\n }) || [];\n\n const reqParams = {\n image: source,\n mask: drawData.prompt.segmentationMask || '',\n polygons: existPolygons,\n clicks: clicks,\n };\n\n if (bbox) {\n const { xmin, ymin, xmax, ymax } = bbox;\n const topleftPoint = getNaturalPoint(\n [xmin, ymin],\n naturalSize,\n clientSize,\n );\n const bottomRightPoint = getNaturalPoint(\n [xmax, ymax],\n naturalSize,\n clientSize,\n );\n Object.assign(reqParams, {\n rect: [\n topleftPoint.x,\n topleftPoint.y,\n bottomRightPoint.x,\n bottomRightPoint.y,\n ],\n });\n }\n\n try {\n setLoading(true);\n const result =\n await fetchModelResults(\n NsApiAnnotator.EnumModelType.SegmentByPolygon,\n reqParams,\n );\n if (result) {\n const { polygon, mask } = result;\n\n if (polygon && polygon.length > 0) {\n const predictPolygons = polygon.map((item) => {\n const result: IPolygon = [];\n for (let i = 0; i < item.length; i += 2) {\n const x = item[i];\n const y = item[i + 1];\n const canvasPoint = getCanvasPoint(\n [x, y],\n naturalSize,\n clientSize,\n );\n result.push(canvasPoint);\n }\n return result;\n });\n\n const creatingObj = {\n type: EObjectType.Polygon,\n hidden: false,\n label: latestLabel,\n color: getAnnotColor(latestLabel),\n currIndex: -1,\n polygon: {\n visible: true,\n group: predictPolygons,\n },\n status: EObjectStatus.Checked,\n };\n\n setDrawDataWithHistory((s) => {\n s.creatingObject = creatingObj;\n s.prompt.segmentationMask = mask;\n });\n }\n\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setLoading(false);\n }\n };\n\n const convertPromptFormat = (\n prompt: MaskPromptItem[],\n ): {\n type: string;\n isPositive: boolean;\n point?: number[];\n rect?: number[];\n stroke?: number[];\n }[] => {\n const newPromptArr = prompt.map((item) => {\n const { type, isPositive, point, rect, stroke, radius } = item;\n\n const newItem = { type, isPositive };\n\n if (rect) {\n const { xmax, xmin, ymax, ymin } = translateRectToAbsBbox(rect);\n const topleftPoint = getNaturalPoint(\n [xmin, ymin],\n naturalSize,\n clientSize,\n );\n const bottomRightPoint = getNaturalPoint(\n [xmax, ymax],\n naturalSize,\n clientSize,\n );\n Object.assign(newItem, {\n rect: [\n topleftPoint.x,\n topleftPoint.y,\n bottomRightPoint.x,\n bottomRightPoint.y,\n ],\n });\n }\n\n if (point) {\n const naturalPoint = getNaturalPoint(\n [point.x, point.y],\n naturalSize,\n clientSize,\n );\n Object.assign(newItem, {\n point: [naturalPoint.x, naturalPoint.y],\n });\n }\n\n if (stroke) {\n const points = stroke.reduce((acc: number[], point: IPoint) => {\n const { x, y } = point;\n const naturalPoint = getNaturalPoint([x, y], naturalSize, clientSize);\n return acc.concat([naturalPoint.x, naturalPoint.y]);\n }, []);\n Object.assign(newItem, {\n stroke: points,\n radius,\n });\n }\n\n return newItem;\n });\n\n return newPromptArr;\n };\n\n const requestAiSegmentByMask = async (\n drawData: DrawData,\n source: string,\n maskPrompts?: MaskPromptItem[],\n ) => {\n if (!maskPrompts) return;\n\n const currMask =\n drawData.creatingObject?.maskCanvasElement ||\n drawData.creatingObject?.tempMaskSteps\n ? objectToRle(\n clientSize,\n naturalSize,\n drawData.creatingObject?.tempMaskSteps || [],\n drawData.creatingObject?.maskCanvasElement,\n )\n : [];\n\n // record visible area currently for model\n const { xmin, ymin, xmax, ymax } = getVisibleAreaForImage(\n imagePos.current,\n clientSize,\n containerMouse,\n );\n let area = [0, 0, naturalSize.width, naturalSize.height];\n if (xmax > 0 && ymax > 0) {\n const { x: x1, y: y1 } = translatePointZoom(\n {\n x: xmin,\n y: ymin,\n },\n clientSize,\n naturalSize,\n );\n const { x: x2, y: y2 } = translatePointZoom(\n {\n x: xmax,\n y: ymax,\n },\n clientSize,\n naturalSize,\n );\n area = [Math.round(x1), Math.round(y1), Math.round(x2), Math.round(y2)];\n }\n\n const reqParams: NsApiAnnotator.FetchAIMaskSegmentReq = {\n maskRle: currMask || [],\n maskId: drawData.prompt.segmentationMask || '',\n prompt: convertPromptFormat(maskPrompts || []),\n area,\n };\n\n if (editState.imageCacheId) {\n Object.assign(reqParams, { imageId: editState.imageCacheId });\n } else {\n Object.assign(reqParams, { image: source });\n }\n\n try {\n setLoading(true);\n const result =\n await fetchModelResults(\n NsApiAnnotator.EnumModelType.SegmentByMask,\n reqParams,\n );\n if (result) {\n const { maskId, maskRle, imageId } = result;\n const color =\n drawData.creatingObject?.color || getAnnotColor(latestLabel);\n const creatingObj = {\n type: EObjectType.Mask,\n hidden: false,\n label: latestLabel,\n currIndex: -1,\n maskCanvasElement: rleToCanvas(maskRle, naturalSize, color),\n maskRle,\n status: EObjectStatus.Checked,\n color,\n };\n setDrawDataWithHistory((s) => {\n s.creatingObject = creatingObj;\n s.prompt.maskPrompts = maskPrompts;\n s.prompt.segmentationMask = maskId;\n s.prompt.creatingMask = undefined;\n });\n setEditState((s) => {\n s.imageCacheId = imageId;\n });\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n setDrawDataWithHistory((s) => {\n s.prompt.creatingMask = undefined;\n });\n } finally {\n setLoading(false);\n }\n };\n\n const requestAiPoseEstimation = async (\n drawData: DrawData,\n source: string,\n aiLabels: string[],\n ) => {\n // TODO: Integrate custom templates\n const { lines, pointNames, pointColors } = BODY_TEMPLATE;\n const reqParams = {\n image: source,\n targets: aiLabels.join(','),\n template: {\n lines,\n pointNames,\n pointColors,\n },\n };\n\n if (drawData.isBatchEditing) {\n const objectList = [...drawData.objectList];\n if (\n drawData.activeObjectIndex > -1 &&\n objectList[drawData.activeObjectIndex] &&\n drawData.creatingObject\n ) {\n // update creating object\n objectList[drawData.activeObjectIndex] = {\n ...objectList[drawData.activeObjectIndex],\n ...drawData.creatingObject,\n };\n }\n const skeletonObjs = objectList.filter(\n (obj) =>\n obj.type === EObjectType.Skeleton &&\n obj.status === EObjectStatus.Checked,\n );\n if (skeletonObjs.length > 0) {\n const annotations = translateObjectsToAnnotations(\n skeletonObjs,\n naturalSize,\n clientSize,\n );\n const objects = annotations.map((item) => {\n return {\n categoryName: item.categoryName,\n points: item.points,\n boundingBox: item.boundingBox,\n };\n });\n Object.assign(reqParams, { objects });\n }\n }\n\n try {\n setLoading(true);\n const result = await fetchModelResults(\n NsApiAnnotator.EnumModelType.Pose,\n reqParams,\n );\n\n if (result) {\n const { objects } = result;\n\n if (objects && objects.length > 0) {\n const skeletonObjs = objects.map((obj) => {\n let { categoryName, boundingBox, points, conf } = obj;\n const newObj: IAnnotationObject = {\n label: categoryName,\n color: getAnnotColor(categoryName),\n type: EObjectType.Skeleton,\n hidden: false,\n conf,\n status: EObjectStatus.Checked,\n };\n if (boundingBox) {\n const rect = translateBoundingBoxToRect(boundingBox!, clientSize);\n Object.assign(newObj, { rect: { visible: true, ...rect } });\n }\n if (points && lines && pointColors && pointNames) {\n const pointObjs = translatePointsToPointObjs(\n points,\n pointNames,\n pointColors,\n naturalSize,\n clientSize,\n );\n Object.assign(newObj, {\n keypoints: {\n points: pointObjs,\n lines,\n },\n });\n }\n return newObj;\n });\n\n setDrawDataWithHistory((s) => {\n if (!s.isBatchEditing) {\n s.isBatchEditing = true;\n }\n const commitedObjects = s.objectList.filter(\n (obj) => obj.status === EObjectStatus.Commited,\n );\n s.objectList = [...commitedObjects, ...skeletonObjs];\n if (s.creatingObject && s.objectList[s.activeObjectIndex]) {\n s.creatingObject = { ...s.objectList[s.activeObjectIndex] };\n }\n });\n\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setLoading(false);\n }\n };\n\n const requestEdgeStitchingForMask = async (\n drawData: DrawData,\n source: string,\n ) => {\n if (\n !drawData.prompt.creatingMask?.stroke ||\n !drawData.prompt.creatingMask?.radius\n )\n return;\n\n const { stroke, radius } = drawData.prompt.creatingMask;\n\n const maskObjects = drawData.objectList.filter(\n (item) => item.type === EObjectType.Mask,\n );\n\n if (maskObjects.length < 2) {\n message.error(\n 'To ensure valid results when using intelligent edge stitching, make sure to use at least 2 mask objects.',\n );\n setDrawData((s) => {\n s.prompt.creatingMask = undefined;\n });\n return;\n }\n\n const rleList = maskObjects.map((item) => {\n const maskRle =\n objectToRle(clientSize, naturalSize, [], item.maskCanvasElement) || [];\n return { maskRle, categoryName: item.label };\n });\n\n const points = stroke.reduce((acc: number[], point: IPoint) => {\n const { x, y } = point;\n const naturalPoint = getNaturalPoint([x, y], naturalSize, clientSize);\n return acc.concat([naturalPoint.x, naturalPoint.y]);\n }, []);\n\n const reqParams: NsApiAnnotator.FetchEdgeStitchingReq = {\n rleList,\n stroke: points,\n radius,\n };\n\n if (editState.imageCacheId) {\n Object.assign(reqParams, { imageId: editState.imageCacheId });\n } else {\n Object.assign(reqParams, { image: source });\n }\n\n Object.assign(reqParams, { image: source });\n\n try {\n setLoading(true);\n const result =\n await fetchModelResults(\n NsApiAnnotator.EnumModelType.MaskEdgeStitching,\n reqParams,\n );\n if (result && result.rleList?.length > 0) {\n const maskObjects = result.rleList.map((item) => {\n const color = getAnnotColor(item.categoryName);\n return {\n type: EObjectType.Mask,\n hidden: false,\n label: item.categoryName,\n maskRle: item.maskRle,\n maskCanvasElement: rleToCanvas(item.maskRle, naturalSize, color),\n conf: 1,\n status: EObjectStatus.Commited,\n color,\n };\n });\n\n // Replace all instances of the mask type\n const leftObjs = drawData.objectList.filter(\n (obj) => obj.type !== EObjectType.Mask,\n );\n\n const updatedObjects = [...leftObjs, ...maskObjects];\n updateAllObject(updatedObjects);\n\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setLoading(false);\n setDrawData((s) => {\n s.prompt.creatingMask = undefined;\n });\n }\n };\n\n const requestSegmentEverything = async (\n source: string,\n params?: NsApiAnnotator.SegmentEverythingParams,\n ) => {\n const reqParams: NsApiAnnotator.FetchSegmentEverythingReq = {\n ...params,\n };\n\n if (editState.imageCacheId) {\n Object.assign(reqParams, { imageId: editState.imageCacheId });\n } else {\n Object.assign(reqParams, { image: source });\n }\n\n try {\n setLoading(true);\n const result =\n await fetchModelResults(\n NsApiAnnotator.EnumModelType.SegmentEverything,\n reqParams,\n );\n if (result && result.rleList?.length > 0) {\n // change to display different color\n setEditState((s) => {\n s.annotsDisplayOptions.colorByCategory = false;\n });\n const maskObjects: IAnnotationObject[] = result.rleList.map((item) => {\n const color = getAnnotColor(latestLabel);\n return {\n type: EObjectType.Mask,\n hidden: false,\n label: latestLabel,\n maskRle: item.maskRle,\n maskCanvasElement: rleToCanvas(item.maskRle, naturalSize, color),\n conf: 1,\n status: EObjectStatus.Checked,\n color,\n };\n });\n setDrawDataWithHistory((s) => {\n s.objectList = maskObjects;\n s.isBatchEditing = true;\n });\n message.success(localeText('DDSAnnotator.smart.msg.success'));\n }\n } catch (error: any) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setLoading(false);\n }\n };\n\n const onAiAnnotation: OnAiAnnotationFunc = useCallback(\n async ({\n type,\n drawData: propsDrawData,\n aiLabels = [],\n bbox,\n maskPrompts,\n segmentationClicks,\n segmentEverythingParams,\n }) => {\n if (isRequiring) return;\n\n const drawData = propsDrawData || editorDrawData;\n\n if (\n !aiLabels.length &&\n [EBasicToolItem.Rectangle, EBasicToolItem.Skeleton].includes(\n drawData.selectedTool,\n )\n ) {\n message.warning(localeText('DDSAnnotator.smart.msg.labelRequired'));\n return;\n }\n\n const hide = message.loading(\n localeText('DDSAnnotator.smart.msg.loading'),\n 100000,\n );\n let imgSrc = `${list[current].urlFullRes}`;\n\n try {\n setIsRequiring(true);\n if (!isBase64(imgSrc)) {\n imgSrc = await getImageBase64(imgSrc);\n }\n } catch (e: any) {\n message.error('ImageToBase64 Error:', e);\n }\n\n try {\n setIsRequiring(true);\n const aiType = type || EBasicToolTypeMap[drawData.selectedTool];\n switch (aiType) {\n case EObjectType.Rectangle: {\n await requestAiDetection(imgSrc, aiLabels);\n break;\n }\n case EObjectType.Skeleton: {\n await requestAiPoseEstimation(drawData, imgSrc, aiLabels);\n break;\n }\n case EObjectType.Polygon: {\n await requestAiSegmentByPolygon(\n drawData,\n imgSrc,\n bbox,\n segmentationClicks,\n );\n break;\n }\n case EObjectType.Mask: {\n if (drawData.selectedSubTool === ESubToolItem.AutoEdgeStitching) {\n await requestEdgeStitchingForMask(drawData, imgSrc);\n } else if (\n drawData.selectedSubTool === ESubToolItem.AutoSegmentEverything\n ) {\n await requestSegmentEverything(imgSrc, segmentEverythingParams);\n } else {\n await requestAiSegmentByMask(drawData, imgSrc, maskPrompts);\n }\n break;\n }\n default:\n message.warning('Plan to Support!');\n break;\n }\n } catch (error) {\n message.error(localeText('DDSAnnotator.smart.msg.error'));\n } finally {\n setIsRequiring(false);\n setDrawData((s) => {\n s.prompt.activeRectWhileLoading = undefined;\n });\n hide();\n }\n },\n [editorDrawData],\n );\n\n const onSaveAnnotations = async (drawData: DrawData) => {\n if (isRequiring || !onSave) return;\n\n if (drawData.objectList.find((item) => !item.label)) {\n message.warning(\n 'There are annotations without a category. Please check.',\n );\n return;\n }\n\n setIsRequiring(true);\n try {\n const annotations = translateObjectsToAnnotations(\n drawData.objectList,\n naturalSize,\n clientSize,\n );\n await onSave(list[current].id, annotations);\n } catch (error) {\n console.error(error);\n }\n setIsRequiring(false);\n };\n\n const onCancelAnnotations = () => {\n if (mode === EditorMode.Edit && hadChangeRecord) {\n modal.confirm({\n getContainer: () => document.body,\n content: localeText('DDSAnnotator.confirmLeave.content'),\n cancelText: localeText('DDSAnnotator.confirmLeave.cancel'),\n okText: localeText('DDSAnnotator.confirmLeave.ok'),\n okButtonProps: { danger: true },\n onOk: () => {\n if (onCancel) onCancel();\n },\n });\n return;\n }\n if (onCancel) onCancel();\n };\n\n const onReject = () => {\n if (mode === EditorMode.Review && onReviewResult) {\n onReviewResult(list[current]?.id || '', EQaAction.Reject);\n }\n };\n\n const onAccept = () => {\n if (mode === EditorMode.Review && onReviewResult) {\n onReviewResult(list[current]?.id || '', EQaAction.Accept);\n }\n };\n\n return {\n onAiAnnotation,\n onSaveAnnotations,\n onCancelAnnotations,\n onReject,\n onAccept,\n };\n};\n\nexport default useActions;\n","import React, { ReactNode } from 'react';\n\ninterface FloatWrapperProps {\n children: ReactNode;\n eventHandler?: (event: React.MouseEvent) => void;\n}\n\nexport const FloatWrapper: React.FC = ({\n children,\n eventHandler,\n}) => {\n const mouseEventHandler = (event: React.MouseEvent) => {\n if (eventHandler) {\n eventHandler(event);\n } else {\n event.stopPropagation();\n }\n };\n\n return (\n \n {children}\n \n );\n};\n","import { FloatWrapper } from '../FloatWrapper';\nimport './index.less';\n\ninterface IPopoverMenu {\n index: number;\n targetElement: IElement;\n imagePos: IPoint;\n}\n\nconst PopoverMenu: React.FC = ({\n index,\n targetElement,\n imagePos,\n}) => {\n return (\n \n \n
\n {`${index + 1} ${\n targetElement.name\n }`}\n
\n \n
\n );\n};\n\nexport default PopoverMenu;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDownArror = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 10, height: 10, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M1.464 5.65A1 1 0 0 0 2.88 7.064l2.12-2.12 2.122 2.12A1 1 0 0 0 8.535 5.65L5.713 2.828a1 1 0 0 0-1.42-.006L1.464 5.65Z\", fill: \"#fff\" }));\nexport { SvgDownArror as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAiIGhlaWdodD0iMTAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xLjQ2NCA1LjY1QTEgMSAwIDAgMCAyLjg4IDcuMDY0bDIuMTItMi4xMiAyLjEyMiAyLjEyQTEgMSAwIDAgMCA4LjUzNSA1LjY1TDUuNzEzIDIuODI4YTEgMSAwIDAgMC0xLjQyLS4wMDZMMS40NjQgNS42NVoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=\";\n","export enum EShortcutType {\n Tool = 'DDSAnnotator.shortcuts.tools',\n GeneralAction = 'DDSAnnotator.shortcuts.general',\n ViewAction = 'DDSAnnotator.shortcuts.viewControl',\n AnnotationAction = 'DDSAnnotator.shortcuts.annotsControl',\n}\n\nexport type TShortcutItem = {\n name: string;\n type: EShortcutType;\n shortcut: string[];\n descTextKey: string;\n};\n\nexport enum EShortcuts {\n /** Tools */\n RectangleTool,\n PolygonTool,\n SkeletonTool,\n DragTool,\n MaskTool,\n /** General Actions */\n SmartAnnotation,\n Undo,\n Redo,\n RepeatPrevious,\n DeleteAll,\n NextImage,\n PreviousImage,\n Save,\n Accept,\n Reject,\n /** View Actions */\n ZoomIn,\n ZoomOut,\n Reset,\n HideCurrObject,\n HideCurrCategory,\n HideAll,\n PanImage,\n /** Annotation Actions */\n DeleteCurrObject,\n SaveCurrObject,\n CancelCurrObject,\n}\n\nexport const EDITOR_SHORTCUTS: Record = {\n [EShortcuts.RectangleTool]: {\n name: 'RectangleTool',\n type: EShortcutType.Tool,\n shortcut: ['r'],\n descTextKey: 'DDSAnnotator.shortcuts.tools.rectangle',\n },\n [EShortcuts.PolygonTool]: {\n name: 'PolygonTool',\n type: EShortcutType.Tool,\n shortcut: ['p'],\n descTextKey: 'DDSAnnotator.shortcuts.tools.polygon',\n },\n [EShortcuts.SkeletonTool]: {\n name: 'SkeletonTool',\n type: EShortcutType.Tool,\n shortcut: ['s'],\n descTextKey: 'DDSAnnotator.shortcuts.tools.skeleton',\n },\n [EShortcuts.MaskTool]: {\n name: 'MaskTool',\n type: EShortcutType.Tool,\n shortcut: ['m'],\n descTextKey: 'DDSAnnotator.shortcuts.tools.mask',\n },\n [EShortcuts.DragTool]: {\n name: 'DragTool',\n type: EShortcutType.Tool,\n shortcut: ['d'],\n descTextKey: 'DDSAnnotator.shortcuts.tools.drag',\n },\n [EShortcuts.SmartAnnotation]: {\n name: 'SmartAnnotation',\n type: EShortcutType.GeneralAction,\n shortcut: ['a'],\n descTextKey: 'DDSAnnotator.shortcuts.general.smart',\n },\n [EShortcuts.Undo]: {\n name: 'Undo',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.z', 'meta.z'],\n descTextKey: 'DDSAnnotator.shortcuts.general.undo',\n },\n [EShortcuts.Redo]: {\n name: 'Redo',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.shift.z', 'meta.shift.z'],\n descTextKey: 'DDSAnnotator.shortcuts.general.redo',\n },\n [EShortcuts.RepeatPrevious]: {\n name: 'RepeatPrevious',\n type: EShortcutType.GeneralAction,\n shortcut: ['r'],\n descTextKey: 'DDSAnnotator.shortcuts.general.repeatPrevious',\n },\n [EShortcuts.DeleteAll]: {\n name: 'DeleteAll',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.shift.d', 'meta.shift.d'],\n descTextKey: 'DDSAnnotator.shortcuts.general.deleteAll',\n },\n [EShortcuts.Save]: {\n name: 'Save',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.s', 'meta.s'],\n descTextKey: 'DDSAnnotator.shortcuts.general.save',\n },\n [EShortcuts.HideCurrObject]: {\n name: 'HideCurrObject',\n type: EShortcutType.ViewAction,\n shortcut: ['h'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.hideCurrObject',\n },\n [EShortcuts.HideCurrCategory]: {\n name: 'HideCurrCategory',\n type: EShortcutType.ViewAction,\n shortcut: ['ctrl.h', 'meta.h'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.hideCurrCategory',\n },\n [EShortcuts.HideAll]: {\n name: 'HideAll',\n type: EShortcutType.ViewAction,\n shortcut: ['ctrl.shift.h', 'meta.shift.h'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.hideAll',\n },\n [EShortcuts.ZoomIn]: {\n name: 'ZoomIn',\n type: EShortcutType.ViewAction,\n shortcut: ['equalsign'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.zoomIn',\n },\n [EShortcuts.ZoomOut]: {\n name: 'ZoomOut',\n type: EShortcutType.ViewAction,\n shortcut: ['dash'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.zoomOut',\n },\n [EShortcuts.Reset]: {\n name: 'Reset',\n type: EShortcutType.ViewAction,\n shortcut: ['0'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.zoomReset',\n },\n [EShortcuts.Accept]: {\n name: 'Accept',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.a', 'meta.a'],\n descTextKey: 'DDSAnnotator.shortcuts.general.accept',\n },\n [EShortcuts.Reject]: {\n name: 'Reject',\n type: EShortcutType.GeneralAction,\n shortcut: ['ctrl.r', 'meta.r'],\n descTextKey: 'DDSAnnotator.shortcuts.general.reject',\n },\n [EShortcuts.NextImage]: {\n name: 'NextImage',\n type: EShortcutType.ViewAction,\n shortcut: ['rightarrow'],\n descTextKey: 'DDSAnnotator.shortcuts.general.next',\n },\n [EShortcuts.PreviousImage]: {\n name: 'PreviousImage',\n type: EShortcutType.ViewAction,\n shortcut: ['leftarrow'],\n descTextKey: 'DDSAnnotator.shortcuts.general.prev',\n },\n [EShortcuts.PanImage]: {\n name: 'PanImage',\n type: EShortcutType.ViewAction,\n shortcut: ['Space'],\n descTextKey: 'DDSAnnotator.shortcuts.viewControl.panImage',\n },\n [EShortcuts.SaveCurrObject]: {\n name: 'SaveCurrObject',\n type: EShortcutType.AnnotationAction,\n shortcut: ['enter'],\n descTextKey: 'DDSAnnotator.shortcuts.annotsControl.finish',\n },\n [EShortcuts.DeleteCurrObject]: {\n name: 'DeleteCurrObject',\n type: EShortcutType.AnnotationAction,\n shortcut: ['Backspace', 'Delete'],\n descTextKey: 'DDSAnnotator.shortcuts.annotsControl.delete',\n },\n [EShortcuts.CancelCurrObject]: {\n name: 'CancelCurrObject',\n type: EShortcutType.AnnotationAction,\n shortcut: ['esc'],\n descTextKey: 'DDSAnnotator.shortcuts.annotsControl.cancel',\n },\n};\n\nexport const convertAliasToSymbol = (key: string) => {\n let res = key;\n switch (key) {\n case 'meta':\n res = '⌘';\n break;\n case 'shift':\n res = '⇧';\n break;\n case 'equalsign':\n case 'add':\n res = '+';\n break;\n case 'dash':\n case 'subtract':\n res = '-';\n break;\n case 'leftarrow':\n res = '←';\n break;\n case 'rightarrow':\n res = '→';\n break;\n default:\n res = key.toUpperCase();\n break;\n }\n return res;\n};\n","import React, { memo, useEffect, useMemo, useRef, useState } from 'react';\nimport { Button, Collapse, List, Tabs, Tooltip } from 'antd';\nimport { OBJECT_ICON } from '../../constants';\nimport { ReactComponent as DownArrorIcon } from '../../assets/downArror.svg';\nimport classNames from 'classnames';\nimport Icon, {\n DeleteOutlined,\n EyeInvisibleOutlined,\n EyeOutlined,\n} from '@ant-design/icons';\nimport { IAnnotationObject } from '../../type';\nimport { useKeyPress } from 'ahooks';\nimport { EDITOR_SHORTCUTS, EShortcuts } from '../../constants/shortcuts';\nimport { useLocale } from 'dds-utils/locale';\nimport VirtualList, { ListRef } from 'rc-virtual-list';\nimport { useWindowResize } from 'dds-hooks';\nimport { isEqual } from 'lodash';\nimport './index.less';\n\nexport interface IProps {\n objects: IAnnotationObject[];\n labelColors: Record;\n activeObjectIndex: number;\n className?: string;\n supportEdit?: boolean;\n activeClassName: string;\n onFocusObject: (index: number) => void;\n onActiveObject: (index: number) => void;\n onChangeObjectHidden: (index: number, hidden: boolean) => void;\n onChangeCategoryHidden: (category: string, hidden: boolean) => void;\n onDeleteObject: (index: number) => void;\n onChangeActiveClassName: (className: string) => void;\n}\n\nenum ETab {\n Object = 'object',\n Class = 'class',\n}\n\ntype TObjectItem = IAnnotationObject & {\n /** Index in the ObjectList Array */\n originIndex: number;\n};\n\n// TODO: 优化objectList数据, 缩放或移动鼠标不应该刷新ObjectList\nconst propsAreEqual = (prev: IProps, next: IProps): boolean => {\n return (\n isEqual(prev.objects, next.objects) &&\n prev.activeObjectIndex === next.activeObjectIndex &&\n prev.supportEdit === next.supportEdit &&\n prev.activeClassName === next.activeClassName &&\n prev.className === next.className &&\n isEqual(prev.labelColors, next.labelColors) &&\n prev.onChangeActiveClassName === next.onChangeActiveClassName &&\n prev.onFocusObject === next.onFocusObject &&\n prev.onDeleteObject === next.onDeleteObject &&\n prev.onChangeObjectHidden === next.onChangeObjectHidden &&\n prev.onChangeCategoryHidden === next.onChangeCategoryHidden\n );\n};\n\nexport const ObjectList: React.FC = memo((props) => {\n const {\n objects,\n labelColors,\n activeObjectIndex,\n className,\n supportEdit,\n activeClassName,\n onFocusObject,\n onActiveObject,\n onChangeObjectHidden,\n onDeleteObject,\n onChangeCategoryHidden,\n onChangeActiveClassName,\n } = props;\n\n const { localeText } = useLocale();\n\n const DEFAULT_CLASS_NAME = localeText(\n 'DDSAnnotator.annotsList.uncategorized',\n );\n\n const [curTab, setCurTab] = useState(ETab.Class);\n const onChangeTab = (key: string) => {\n setCurTab(key as ETab);\n };\n\n /** Attributes for Virtual List */\n const { height } = useWindowResize();\n const collapseHeaderHeight = 45;\n const itemHeight = 35;\n const containerHeight = height - collapseHeaderHeight - 56;\n const virtualListRef = useRef(null);\n\n const hideAllObjs = useMemo(() => {\n return !objects.some((item) => !item.hidden);\n }, [objects]);\n\n const onAllObjectHidden = () => {\n objects.forEach((_, index) => {\n onChangeObjectHidden(index, !hideAllObjs);\n });\n };\n\n /** Hide All Objects */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.HideAll].shortcut,\n (event) => {\n event.preventDefault();\n onAllObjectHidden();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Map of instances grouped by category */\n const objectMapByClass: Record = useMemo(() => {\n return objects.reduce(\n (\n acc: Record,\n obj: IAnnotationObject,\n index: number,\n ) => {\n const label = obj.label || DEFAULT_CLASS_NAME;\n if (!acc[label]) {\n acc[label] = [];\n }\n acc[label].push({ ...obj, originIndex: index });\n return acc;\n },\n {},\n );\n }, [objects]);\n\n /** Automatically scroll the currently active instance into view */\n useEffect(() => {\n if (activeObjectIndex < 0) return;\n const activeTab = document.querySelector('.ant-tabs-tabpane-active');\n if (curTab === ETab.Object) {\n const activeElement = activeTab?.querySelector(\n `.tab-collapse .ant-collapse-item:nth-child(${activeObjectIndex + 1})`,\n );\n activeElement?.scrollIntoView({ behavior: 'smooth', block: 'nearest' });\n } else if (curTab === ETab.Class && objectMapByClass[activeClassName]) {\n const index = objectMapByClass[activeClassName].findIndex(\n (item) => item.originIndex === activeObjectIndex,\n );\n if (index > -1) {\n virtualListRef.current?.scrollTo({\n index,\n align: 'auto',\n });\n }\n }\n }, [activeObjectIndex]);\n\n /** ClassTab: Tiling by category with support for expanding to the instance level */\n const classTab = (\n \n {objects.length > 0 &&\n Object.keys(objectMapByClass)\n .sort()\n .map((label) => {\n const subObjects = objectMapByClass[label];\n const isHidden = subObjects.every((item) => item.hidden);\n return (\n {\n onChangeActiveClassName(\n label === activeClassName ? '' : label,\n );\n }}\n >\n {activeClassName === label && (\n \n )}\n
{label}
\n
\n {subObjects.length}\n {supportEdit && (\n \n \n ) : (\n \n )\n }\n shape={'circle'}\n onClick={(event) => {\n event.stopPropagation();\n onChangeCategoryHidden(label, !isHidden);\n }}\n />\n \n )}\n }\n shape={'circle'}\n />\n
\n \n }\n >\n {activeClassName === label && (\n \n \n {(object: TObjectItem, objIndex: number) => (\n {\n onFocusObject(object.originIndex);\n }}\n onClick={(event) => {\n event.stopPropagation();\n onActiveObject(object.originIndex);\n }}\n >\n {activeObjectIndex === object.originIndex && (\n \n )}\n \n
{object.label}
\n
\n \n \n ) : (\n \n )\n }\n shape={'circle'}\n onClick={(event) => {\n event.stopPropagation();\n onChangeObjectHidden(\n object.originIndex,\n !object.hidden,\n );\n }}\n />\n \n {supportEdit && (\n <>\n \n }\n shape={'circle'}\n onClick={(event) => {\n event.stopPropagation();\n onDeleteObject(object.originIndex);\n }}\n />\n \n \n )}\n
\n \n )}\n \n
\n )}\n \n );\n })}\n \n );\n\n return (\n {\n event.stopPropagation();\n }}\n >\n 0 && (\n \n : }\n shape={'circle'}\n onClick={onAllObjectHidden}\n />\n \n )\n }\n />\n \n );\n}, propsAreEqual);\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDrag = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 29 29\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".drag_svg__cls-1{fill:none}.drag_svg__cls-2{fill:#fcfefe}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"drag_svg__cls-1\", d: \"M2.83 2.83h28.35v28.35H2.83z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"drag_svg__cls-1\", d: \"M2.83 2.83h28.35v28.35H2.83z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"drag_svg__cls-1\", d: \"M2.83 2.83h28.35v28.35H2.83Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"drag_svg__cls-2\", d: \"m21.73 18.19 8.23 4.8-3.51 1 2.51 4.35-2.05 1.18-2.51-4.35-2.63 2.54-.04-9.52z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"drag_svg__cls-2\", d: \"M19.37 9.92h2.36v2.36h5.91a1.18 1.18 0 0 1 1.18 1.18v4.73h-2.36v-3.54H14.65v11.81h4.72v2.36h-5.91a1.18 1.18 0 0 1-1.18-1.18v-5.91H9.92v-2.36h2.36v-5.91a1.18 1.18 0 0 1 1.18-1.18h5.91ZM5.2 19.37h2.36v2.36H5.2zM5.2 14.65h2.36v2.36H5.2zM5.2 9.92h2.36v2.36H5.2zM5.2 5.2h2.36v2.36H5.2zM9.92 5.2h2.36v2.36H9.92zM14.65 5.2h2.36v2.36h-2.36zM19.37 5.2h2.36v2.36h-2.36z\" }));\nexport { SvgDrag as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyOSAyOSI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOm5vbmV9LmNscy0ye2ZpbGw6I2ZjZmVmZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M3oiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yLjgzIDIuODNoMjguMzV2MjguMzVIMi44M1oiLz48cGF0aCBjbGFzcz0iY2xzLTIiIGQ9Im0yMS43MyAxOC4xOSA4LjIzIDQuOC0zLjUxIDEgMi41MSA0LjM1LTIuMDUgMS4xOC0yLjUxLTQuMzUtMi42MyAyLjU0LS4wNC05LjUyeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTE5LjM3IDkuOTJoMi4zNnYyLjM2aDUuOTFhMS4xOCAxLjE4IDAgMCAxIDEuMTggMS4xOHY0LjczaC0yLjM2di0zLjU0SDE0LjY1djExLjgxaDQuNzJ2Mi4zNmgtNS45MWExLjE4IDEuMTggMCAwIDEtMS4xOC0xLjE4di01LjkxSDkuOTJ2LTIuMzZoMi4zNnYtNS45MWExLjE4IDEuMTggMCAwIDEgMS4xOC0xLjE4aDUuOTFaTTUuMiAxOS4zN2gyLjM2djIuMzZINS4yek01LjIgMTQuNjVoMi4zNnYyLjM2SDUuMnpNNS4yIDkuOTJoMi4zNnYyLjM2SDUuMnpNNS4yIDUuMmgyLjM2djIuMzZINS4yek05LjkyIDUuMmgyLjM2djIuMzZIOS45MnpNMTQuNjUgNS4yaDIuMzZ2Mi4zNmgtMi4zNnpNMTkuMzcgNS4yaDIuMzZ2Mi4zNmgtMi4zNnoiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgKeyboard = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"keyboard_svg__icon\", viewBox: \"0 0 1152 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M1056 896H96c-53.02 0-96-42.98-96-96V224c0-53.02 42.98-96 96-96h960c53.02 0 96 42.98 96 96v576c0 53.02-42.98 96-96 96zM256 360v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM352 552v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zM256 744v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24zm576 0v-80c0-13.254-10.746-24-24-24H344c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h464c13.254 0 24-10.746 24-24zm192 0v-80c0-13.254-10.746-24-24-24h-80c-13.254 0-24 10.746-24 24v80c0 13.254 10.746 24 24 24h80c13.254 0 24-10.746 24-24z\" }));\nexport { SvgKeyboard as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDExNTIgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik0xMDU2IDg5Nkg5NmMtNTMuMDIgMC05Ni00Mi45OC05Ni05NlYyMjRjMC01My4wMiA0Mi45OC05NiA5Ni05Nmg5NjBjNTMuMDIgMCA5NiA0Mi45OCA5NiA5NnY1NzZjMCA1My4wMi00Mi45OCA5Ni05NiA5NnpNMjU2IDM2MHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHpNMzUyIDU1MnYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6bTE5MiAwdi04MGMwLTEzLjI1NC0xMC43NDYtMjQtMjQtMjRoLTgwYy0xMy4yNTQgMC0yNCAxMC43NDYtMjQgMjR2ODBjMCAxMy4yNTQgMTAuNzQ2IDI0IDI0IDI0aDgwYzEzLjI1NCAwIDI0LTEwLjc0NiAyNC0yNHptMTkyIDB2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6TTI1NiA3NDR2LTgwYzAtMTMuMjU0LTEwLjc0Ni0yNC0yNC0yNGgtODBjLTEzLjI1NCAwLTI0IDEwLjc0Ni0yNCAyNHY4MGMwIDEzLjI1NCAxMC43NDYgMjQgMjQgMjRoODBjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em01NzYgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0SDM0NGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg0NjRjMTMuMjU0IDAgMjQtMTAuNzQ2IDI0LTI0em0xOTIgMHYtODBjMC0xMy4yNTQtMTAuNzQ2LTI0LTI0LTI0aC04MGMtMTMuMjU0IDAtMjQgMTAuNzQ2LTI0IDI0djgwYzAgMTMuMjU0IDEwLjc0NiAyNCAyNCAyNGg4MGMxMy4yNTQgMCAyNC0xMC43NDYgMjQtMjR6Ii8+PC9zdmc+\";\n","import { Dropdown, Menu, MenuProps, Tooltip } from 'antd';\nimport { ReactComponent as KeyboardIcon } from '../../assets/keyboard.svg';\nimport Icon from '@ant-design/icons';\nimport { memo, useMemo } from 'react';\nimport {\n convertAliasToSymbol,\n EDITOR_SHORTCUTS,\n EShortcuts,\n EShortcutType,\n TShortcutItem,\n} from '../../constants/shortcuts';\nimport { useLocale } from 'dds-utils/locale';\nimport './index.less';\nimport classNames from 'classnames';\n\ninterface IProps {\n viewOnly: boolean;\n}\n\nexport const getIconFromShortcut = (keys: string[], withStyle = true) => {\n const userAgent = navigator.userAgent.toLowerCase();\n const isMac = userAgent.indexOf('mac') > -1;\n const icons: any[] = [];\n for (let index = 0; index < keys.length; index++) {\n const key = keys[index];\n if ((!isMac && key.includes('meta')) || (isMac && key.includes('ctrl'))) {\n continue;\n }\n if (key.includes('.')) {\n const combineKeys = key.split('.');\n combineKeys.forEach((key, idx) => {\n const letter = (\n \n {convertAliasToSymbol(key)}\n \n );\n icons.push(letter);\n if (idx !== combineKeys.length - 1) {\n icons.push(\n \n {' '}\n +{' '}\n ,\n );\n }\n });\n } else {\n const letter = (\n \n {convertAliasToSymbol(key)}\n \n );\n icons.push(letter);\n }\n if (index !== keys.length - 1) {\n icons.push(\n \n {' '}\n /{' '}\n ,\n );\n }\n }\n return {icons};\n};\n\nexport const ShortcutsInfo: React.FC = memo(({ viewOnly }) => {\n const { localeText } = useLocale();\n\n const convertShortcutsToMenuProps = (\n shortcuts: Record,\n ): MenuProps['items'] => {\n const categories: Record = {};\n for (const key in shortcuts) {\n if (shortcuts.hasOwnProperty(key)) {\n // @ts-ignore\n const { type, descTextKey, shortcut } = shortcuts[key];\n const description = localeText(descTextKey);\n if (viewOnly && type !== EShortcutType.ViewAction) {\n continue;\n }\n if (categories[type]) {\n categories[type].children.push({\n key,\n label: description,\n icon: {getIconFromShortcut(shortcut)},\n });\n } else {\n categories[type] = {\n key: type,\n type: 'group',\n label: localeText(type),\n children: [\n {\n key,\n label: description,\n icon: {getIconFromShortcut(shortcut)},\n },\n ],\n };\n }\n }\n }\n return Object.values(categories);\n };\n\n const items = useMemo(() => {\n return convertShortcutsToMenuProps(EDITOR_SHORTCUTS) || [];\n }, [viewOnly]);\n\n return (\n (\n \n )}\n trigger={['click']}\n >\n \n \n \n \n );\n});\n","import { Button, Popover } from 'antd';\nimport Icon from '@ant-design/icons';\nimport classNames from 'classnames';\nimport {\n EBasicToolItem,\n EObjectType,\n EActionToolItem,\n EToolType,\n OBJECT_ICON,\n EDITOR_TOOL_ICON,\n} from '../../constants';\nimport { FloatWrapper } from '../FloatWrapper';\nimport { ReactComponent as DragToolIcon } from '../../assets/drag.svg';\nimport { useKeyPress } from 'ahooks';\nimport {\n EDITOR_SHORTCUTS,\n EShortcuts,\n TShortcutItem,\n} from '../../constants/shortcuts';\nimport { memo, useMemo } from 'react';\nimport { getIconFromShortcut } from '../ShortcutsInfo';\nimport { useLocale } from 'dds-utils/locale';\nimport './index.less';\n\ntype TToolItem = {\n key: T;\n name: string;\n shortcut: TShortcutItem;\n icon: JSX.Element;\n description?: string;\n};\n\ninterface IProps {\n selectedTool: EToolType;\n isAIAnnotationActive: boolean;\n onChangeSelectedTool: (type: EToolType) => void;\n onActiveAIAnnotation: (active: boolean) => void;\n undo: () => void;\n redo: () => void;\n repeatPrevious: () => void;\n deleteAll: () => void;\n}\n\nexport const MainToolBar: React.FC = memo(\n ({\n selectedTool,\n isAIAnnotationActive,\n onChangeSelectedTool,\n onActiveAIAnnotation,\n undo,\n redo,\n repeatPrevious,\n deleteAll,\n }) => {\n const { localeText } = useLocale();\n\n const basicTools: TToolItem[] = [\n {\n key: EBasicToolItem.Drag,\n name: localeText('DDSAnnotator.toolbar.drag'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.DragTool],\n icon: ,\n description: localeText('DDSAnnotator.toolbar.drag.desc'),\n },\n {\n key: EBasicToolItem.Rectangle,\n name: localeText('DDSAnnotator.toolbar.rectangle'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.RectangleTool],\n icon: ,\n description: localeText('DDSAnnotator.toolbar.rectangle.desc'),\n },\n {\n key: EBasicToolItem.Polygon,\n name: localeText('DDSAnnotator.toolbar.polygon'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.PolygonTool],\n icon: ,\n description: localeText('DDSAnnotator.toolbar.polygon.desc'),\n },\n {\n key: EBasicToolItem.Skeleton,\n name: localeText('DDSAnnotator.toolbar.skeleton'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.SkeletonTool],\n icon: ,\n description: localeText('DDSAnnotator.toolbar.skeleton.desc'),\n },\n {\n key: EBasicToolItem.Mask,\n name: localeText('DDSAnnotator.toolbar.mask'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.MaskTool],\n icon: ,\n description: localeText('DDSAnnotator.toolbar.mask.desc'),\n },\n ];\n\n const smartTools: TToolItem[] = [\n {\n key: EActionToolItem.SmartAnnotation,\n name: localeText('DDSAnnotator.toolbar.aiAnno'),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.SmartAnnotation],\n icon: (\n \n ),\n description: localeText('DDSAnnotator.toolbar.aiAnno.desc'),\n },\n ];\n\n const actionTools = [\n {\n key: EActionToolItem.Undo,\n name: localeText('DDSAnnotator.toolbar.undo'),\n icon: ,\n shortcut: EDITOR_SHORTCUTS[EShortcuts.Undo],\n handler: undo,\n description: localeText('DDSAnnotator.toolbar.undo.desc'),\n },\n {\n key: EActionToolItem.Redo,\n name: localeText('DDSAnnotator.toolbar.redo'),\n icon: ,\n shortcut: EDITOR_SHORTCUTS[EShortcuts.Redo],\n handler: redo,\n description: localeText('DDSAnnotator.toolbar.redo.desc'),\n },\n {\n key: EActionToolItem.RepeatPrevious,\n name: localeText('DDSAnnotator.toolbar.repeatPrevious'),\n icon: (\n \n ),\n shortcut: EDITOR_SHORTCUTS[EShortcuts.RepeatPrevious],\n handler: repeatPrevious,\n description: localeText('DDSAnnotator.toolbar.repeatPrevious.desc'),\n },\n {\n key: EActionToolItem.DeleteAll,\n name: localeText('DDSAnnotator.toolbar.deleteAll'),\n icon: ,\n shortcut: EDITOR_SHORTCUTS[EShortcuts.DeleteAll],\n handler: deleteAll,\n description: localeText('DDSAnnotator.toolbar.deleteAll.desc'),\n },\n ];\n\n const basicToolKeys: string[] = useMemo(() => {\n return basicTools.reduce((keys: string[], tool) => {\n return keys.concat(tool.shortcut.shortcut);\n }, []);\n }, [basicTools]);\n\n const smartToolKeys: string[] = useMemo(() => {\n return smartTools.reduce((keys: string[], tool) => {\n return keys.concat(tool.shortcut.shortcut);\n }, []);\n }, [actionTools]);\n\n /** Active Basic Tool */\n useKeyPress(\n basicToolKeys,\n (event) => {\n const activeTool = basicTools.find((tool) => {\n return tool.shortcut.shortcut.includes(event.key);\n });\n if (activeTool) {\n onChangeSelectedTool(activeTool.key);\n }\n },\n {\n exactMatch: true,\n },\n );\n\n /** Active AI Annotation */\n useKeyPress(\n smartToolKeys,\n (event) => {\n const smartTool = smartTools.find((tool) => {\n return tool.shortcut.shortcut.includes(event.key);\n });\n if (smartTool) {\n onActiveAIAnnotation(!isAIAnnotationActive);\n }\n },\n {\n exactMatch: true,\n },\n );\n\n /** Undo */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.Undo].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n undo();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Redo */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.Redo].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n redo();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Repeat Previous */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.RepeatPrevious].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n repeatPrevious();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Delete All */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.DeleteAll].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n deleteAll();\n },\n {\n exactMatch: true,\n },\n );\n\n const popoverContent = (\n item: TToolItem,\n ) => {\n const icon = getIconFromShortcut(item.shortcut.shortcut, false);\n return (\n
\n
\n {item.name}\n {icon}\n
\n
\n
{item.description}
\n
\n );\n };\n\n return (\n \n
\n {basicTools.map((item) => (\n \n onChangeSelectedTool(item.key)}\n />\n \n ))}\n
\n {smartTools.map((item) => (\n \n onActiveAIAnnotation(!isAIAnnotationActive)}\n />\n \n ))}\n
\n {actionTools.map((item) => (\n \n \n \n ))}\n
\n
\n );\n },\n);\n","import { useLocale } from 'dds-utils/locale';\nimport { PlusOutlined } from '@ant-design/icons';\nimport { Button, Divider, Input, InputRef, Space } from 'antd';\nimport { memo, useRef, useState } from 'react';\ninterface IProps {\n onAdd: (value: string) => void;\n}\n\nconst CategoryCreator: React.FC = memo(({ onAdd }) => {\n const { localeText } = useLocale();\n\n const inputRef = useRef(null);\n\n const [inputValue, setInputValue] = useState('');\n\n const handleInputChange = (event: React.ChangeEvent) => {\n event.stopPropagation();\n setInputValue(event.target.value);\n };\n\n const addCategory = () => {\n if (inputValue === '') return;\n onAdd(inputValue);\n setInputValue('');\n inputRef.current?.focus();\n };\n\n return (\n <>\n \n \n {\n if (event.code === 'Enter') {\n addCategory();\n }\n event.stopPropagation();\n }}\n />\n \n \n \n );\n});\n\nexport default CategoryCreator;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMouseLeft = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 32, height: 32, viewBox: \"0 0 34 34\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M23.737 13.118v7.764a6.713 6.713 0 0 1-6.706 6.707 6.713 6.713 0 0 1-6.705-6.707v-7.764a6.713 6.713 0 0 1 6.705-6.707 6.713 6.713 0 0 1 6.706 6.707Zm-.693 3.662H11.018v4.102a6.02 6.02 0 0 0 6.013 6.017 6.02 6.02 0 0 0 6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 0-5.698-6.008v8.977h5.698v-2.969Z\", fill: \"#fff\" }));\nexport { SvgMouseLeft as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMjMuNzM3IDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMS02LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMS02LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDEgNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDEgNi43MDYgNi43MDdabS0uNjkzIDMuNjYySDExLjAxOHY0LjEwMmE2LjAyIDYuMDIgMCAwIDAgNi4wMTMgNi4wMTcgNi4wMiA2LjAyIDAgMCAwIDYuMDEzLTYuMDE3VjE2Ljc4Wm0wLTMuNjYyYTYuMDIgNi4wMiAwIDAgMC01LjY5OC02LjAwOHY4Ljk3N2g1LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMouseRight = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 32, height: 32, viewBox: \"0 0 34 34\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M10.263 13.118v7.764a6.713 6.713 0 0 0 6.706 6.707 6.713 6.713 0 0 0 6.705-6.707v-7.764a6.713 6.713 0 0 0-6.705-6.707 6.713 6.713 0 0 0-6.706 6.707Zm.693 3.662h12.026v4.102a6.02 6.02 0 0 1-6.013 6.017 6.02 6.02 0 0 1-6.013-6.017V16.78Zm0-3.662a6.02 6.02 0 0 1 5.698-6.008v8.977h-5.698v-2.969Z\", fill: \"#fff\" }));\nexport { SvgMouseRight as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzNCAzNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMjYzIDEzLjExOHY3Ljc2NGE2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNiA2LjcwNyA2LjcxMyA2LjcxMyAwIDAgMCA2LjcwNS02LjcwN3YtNy43NjRhNi43MTMgNi43MTMgMCAwIDAtNi43MDUtNi43MDcgNi43MTMgNi43MTMgMCAwIDAtNi43MDYgNi43MDdabS42OTMgMy42NjJoMTIuMDI2djQuMTAyYTYuMDIgNi4wMiAwIDAgMS02LjAxMyA2LjAxNyA2LjAyIDYuMDIgMCAwIDEtNi4wMTMtNi4wMTdWMTYuNzhabTAtMy42NjJhNi4wMiA2LjAyIDAgMCAxIDUuNjk4LTYuMDA4djguOTc3aC01LjY5OHYtMi45NjlaIiBmaWxsPSIjZmZmIi8+PC9zdmc+\";\n","import {\n OBJECT_ICON,\n EBasicToolItem,\n EObjectType,\n EDITOR_TOOL_ICON,\n EActionToolItem,\n ESubToolItem,\n EToolType,\n} from '../../constants';\nimport { CloseOutlined } from '@ant-design/icons';\nimport Icon from '@ant-design/icons/lib/components/Icon';\nimport { Button, Card, Select, Slider, Space } from 'antd';\nimport classNames from 'classnames';\nimport { useMemo, memo } from 'react';\nimport { FloatWrapper } from '../FloatWrapper';\nimport { useLocale } from 'dds-utils/locale';\nimport CategoryCreator from '../CategoryCreator';\nimport { OnAiAnnotationFunc } from '../../hooks/useActions';\nimport { useImmer } from 'use-immer';\nimport { ReactComponent as DragToolIcon } from '../../assets/drag.svg';\nimport { ReactComponent as MouseLeftIcon } from '../../assets/mouse-left.svg';\nimport { ReactComponent as MouseRightIcon } from '../../assets/mouse-right.svg';\nimport { Category } from '../../type';\nimport './index.less';\n\ninterface IProps {\n selectedTool: EToolType;\n selectedSubTool: ESubToolItem;\n AIAnnotation: boolean;\n hasPolygonPreds: boolean;\n isBatchEditing: boolean;\n isCtrlPressed: boolean;\n naturalSize: ISize;\n aiLabels: string[];\n limitConf: number;\n categories: Category[];\n setAiLabels: (labels: string[]) => void;\n forceChangeTool: (tool: EBasicToolItem, subtool: ESubToolItem) => void;\n onCreateCategory: (name: string) => void;\n onExitAIAnnotation: () => void;\n onAiAnnotation: OnAiAnnotationFunc;\n onSaveAIPolygon: () => void;\n onCancelAIPolygon: () => void;\n onChangeConfidenceRange: (range: [number, number]) => void;\n onChangeLimitConf: (value: number) => void;\n onAcceptValidObjects: () => void;\n onCancelBatchEdit: () => void;\n}\n\nconst SmartAnnotationControl: React.FC = memo(\n ({\n selectedTool,\n selectedSubTool,\n AIAnnotation,\n hasPolygonPreds,\n isBatchEditing,\n isCtrlPressed,\n aiLabels,\n categories,\n naturalSize,\n limitConf,\n setAiLabels,\n onCreateCategory,\n onExitAIAnnotation,\n onAiAnnotation,\n onSaveAIPolygon,\n onCancelAIPolygon,\n onChangeConfidenceRange,\n onChangeLimitConf,\n onAcceptValidObjects,\n onCancelBatchEdit,\n forceChangeTool,\n }) => {\n const { localeText } = useLocale();\n\n /** Parameters for requesting segmemt everything API */\n const [samParams, setSamParams] = useImmer({\n predIouThresh: 0.89,\n pointsPerSide: 32,\n minMaskRegionArea: 300,\n });\n\n const titleMap = {\n [EBasicToolItem.Drag]: {\n name: localeText('DDSAnnotator.shortcuts.tools.drag'),\n icon: DragToolIcon,\n },\n [EBasicToolItem.Rectangle]: {\n name: localeText('DDSAnnotator.smart.detection.name'),\n icon: OBJECT_ICON[EObjectType.Rectangle],\n },\n [EBasicToolItem.Polygon]: {\n name: localeText('DDSAnnotator.smart.segmentation.name'),\n icon: OBJECT_ICON[EObjectType.Polygon],\n },\n [EBasicToolItem.Skeleton]: {\n name: localeText('DDSAnnotator.smart.pose.name'),\n icon: OBJECT_ICON[EObjectType.Skeleton],\n },\n [EBasicToolItem.Mask]: {\n name: localeText('DDSAnnotator.smart.mask.name'),\n icon: OBJECT_ICON[EObjectType.Mask],\n },\n };\n\n const labelOptions = useMemo(() => {\n if (selectedTool === EBasicToolItem.Rectangle) {\n return categories?.map((category) => (\n \n {category.name}\n \n ));\n } else if (selectedTool === EBasicToolItem.Polygon) {\n return [];\n } else if (selectedTool === EBasicToolItem.Skeleton) {\n return ['person'].map((label) => (\n \n {label}\n \n ));\n }\n }, [selectedTool, categories]);\n\n const mouseEventHandler = (event: React.MouseEvent) => {\n if (\n event.type === 'mouseup' &&\n (selectedTool === EBasicToolItem.Skeleton ||\n (selectedTool === EBasicToolItem.Mask &&\n selectedSubTool === ESubToolItem.AutoSegmentEverything) ||\n selectedTool === EBasicToolItem.Rectangle)\n ) {\n event.preventDefault();\n return;\n } else {\n event.stopPropagation();\n }\n };\n\n const isVisible = useMemo(() => {\n if (!AIAnnotation || selectedTool === EBasicToolItem.Drag) return false;\n\n if (\n selectedTool === EBasicToolItem.Mask &&\n selectedSubTool !== ESubToolItem.AutoSegmentEverything\n )\n return false;\n\n if (\n selectedTool === EBasicToolItem.Rectangle &&\n isBatchEditing &&\n isCtrlPressed\n )\n return false;\n\n return true;\n }, [\n selectedTool,\n selectedSubTool,\n AIAnnotation,\n isBatchEditing,\n isCtrlPressed,\n ]);\n\n const onApplyCurrMaskObjs = () => {\n onAcceptValidObjects();\n forceChangeTool(EBasicToolItem.Drag, ESubToolItem.PenAdd);\n };\n\n const aiDetectionTip = useMemo(() => {\n if (isBatchEditing && isCtrlPressed) {\n return [\n {\n text: localeText('DDSAnnotator.smart.tip.recover'),\n logo: ,\n },\n {\n text: localeText('DDSAnnotator.smart.tip.overlayobject'),\n logo: ,\n },\n ];\n }\n return [];\n }, [isBatchEditing, isCtrlPressed]);\n\n const imageArea = useMemo(() => {\n return naturalSize.width * naturalSize.height;\n }, [naturalSize]);\n\n return (\n \n {aiDetectionTip.length > 0 && (\n
\n {aiDetectionTip.map((item) => (\n
\n {item.text}\n {item.logo}\n
\n ))}\n
\n )}\n \n
\n \n
{titleMap[selectedTool].name}
\n
\n }\n shape=\"circle\"\n size=\"small\"\n onClick={() => {\n onExitAIAnnotation();\n forceChangeTool(selectedTool, ESubToolItem.PenAdd);\n }}\n >\n \n }\n >\n
\n {selectedTool === EBasicToolItem.Rectangle &&\n (isBatchEditing ? (\n
\n
\n
\n
\n {localeText('DDSAnnotator.smart.detection.confidence')}:\n
\n \n
\n
\n
\n {localeText('DDSAnnotator.smart.tip')}: \n {localeText('DDSAnnotator.smart.tip.ctrl')}\n
\n
\n \n {localeText('DDSAnnotator.smart.back')}\n \n \n
\n
\n ) : (\n
\n \n Array.isArray(values)\n ? setAiLabels(values)\n : setAiLabels([values])\n }\n onInputKeyDown={(e) => {\n if (e.code !== 'Enter') {\n e.stopPropagation();\n }\n }}\n // @ts-ignore\n getPopupContainer={() =>\n document.getElementById('smart-annotation-editor')\n }\n mode={'multiple'}\n dropdownRender={(menu) => (\n <>\n {menu}\n {\n {\n onCreateCategory(value);\n setAiLabels([...aiLabels, value]);\n }}\n />\n }\n \n )}\n >\n {labelOptions}\n \n onAiAnnotation({ aiLabels })}\n >\n {localeText('DDSAnnotator.smart.annotate')}\n \n
\n ))}\n {selectedTool === EBasicToolItem.Skeleton &&\n (isBatchEditing ? (\n <>\n
\n
\n
\n {localeText('DDSAnnotator.confidence')}\n
\n \n onChangeConfidenceRange([\n range[0] / 100,\n range[1] / 100,\n ])\n }\n tooltip={{\n formatter: (value?: number) => {\n return <>{`${value! / 100}`};\n },\n //@ts-ignore\n getPopupContainer: () =>\n document.getElementById('conf-slider'),\n }}\n />\n
\n
\n \n {localeText('DDSAnnotator.save')}\n \n \n ) : (\n <>\n
\n
\n
\n {localeText('DDSAnnotator.smart.modelTyle')}\n
\n \n Array.isArray(values)\n ? setAiLabels(values)\n : setAiLabels([values])\n }\n onInputKeyDown={(e) => {\n if (e.code !== 'Enter') {\n e.stopPropagation();\n }\n }}\n // @ts-ignore\n getPopupContainer={() =>\n document.getElementById('smart-annotation-editor')\n }\n >\n {labelOptions}\n \n
\n
\n onAiAnnotation({ aiLabels })}\n >\n {localeText('DDSAnnotator.smart.annotate')}\n \n \n ))}\n {selectedTool === EBasicToolItem.Polygon && (\n <>\n
\n {hasPolygonPreds\n ? localeText('DDSAnnotator.smart.segmentation.tipsNext')\n : localeText('DDSAnnotator.smart.segmentation.tipsInitial')}\n
\n {hasPolygonPreds && (\n
\n \n \n
\n )}\n \n )}\n {selectedTool === EBasicToolItem.Mask &&\n selectedSubTool === ESubToolItem.AutoSegmentEverything && (\n <>\n \n
\n
\n {localeText('DDSAnnotator.smart.iouThres')}\n
\n \n setSamParams((s) => {\n s.predIouThresh = 1 - val;\n })\n }\n min={0}\n max={0.99}\n step={0.01}\n reverse\n tooltip={{\n formatter: (val) =>\n `${Math.floor((1 - val!) * 100)}%`,\n //@ts-ignore\n getPopupContainer: () =>\n document.getElementById('param-controls'),\n }}\n />\n
\n
\n
\n {localeText('DDSAnnotator.smart.minArea')}\n
\n \n setSamParams((s) => {\n s.minMaskRegionArea = val * imageArea;\n })\n }\n min={0.01}\n max={0.3}\n step={0.01}\n tooltip={{\n formatter: (val) => `${Math.ceil(val! * 100)}%`,\n //@ts-ignore\n getPopupContainer: () =>\n document.getElementById('param-controls'),\n }}\n />\n
\n
\n {isBatchEditing ? (\n \n \n onAiAnnotation({\n segmentEverythingParams: samParams,\n })\n }\n >\n {localeText('DDSAnnotator.smart.retry')}\n \n \n \n ) : (\n \n onAiAnnotation({\n segmentEverythingParams: samParams,\n })\n }\n >\n {localeText('DDSAnnotator.smart.annotate')}\n \n )}\n \n )}\n \n \n
\n );\n },\n);\n\nexport default SmartAnnotationControl;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgImgSetting = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"imgSetting_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M512 256a42.667 42.667 0 0 0 42.667-42.667V128a42.667 42.667 0 0 0-85.334 0v85.333A42.667 42.667 0 0 0 512 256zm384 213.333h-85.333a42.667 42.667 0 0 0 0 85.334H896a42.667 42.667 0 0 0 0-85.334zM256 512a42.667 42.667 0 0 0-42.667-42.667H128a42.667 42.667 0 0 0 0 85.334h85.333A42.667 42.667 0 0 0 256 512zm9.387-298.667a42.667 42.667 0 0 0-59.307 62.72l61.44 59.307a42.667 42.667 0 0 0 31.147 11.947 42.667 42.667 0 0 0 30.72-13.227 42.667 42.667 0 0 0 0-60.16zm459.946 133.974a42.667 42.667 0 0 0 29.44-11.947l61.44-59.307a42.667 42.667 0 0 0-57.6-62.72l-61.44 60.587a42.667 42.667 0 0 0 0 60.16 42.667 42.667 0 0 0 28.16 13.227zM512 768a42.667 42.667 0 0 0-42.667 42.667V896a42.667 42.667 0 0 0 85.334 0v-85.333A42.667 42.667 0 0 0 512 768zm244.48-79.36a42.667 42.667 0 0 0-59.307 61.44l61.44 60.587a42.667 42.667 0 0 0 29.44 11.946 42.667 42.667 0 0 0 30.72-12.8 42.667 42.667 0 0 0 0-60.586zm-488.96 0-61.44 59.307a42.667 42.667 0 0 0 0 60.586 42.667 42.667 0 0 0 30.72 12.8 42.667 42.667 0 0 0 28.587-10.666l61.44-59.307a42.667 42.667 0 0 0-59.307-61.44zM512 341.333A170.667 170.667 0 1 0 682.667 512 170.667 170.667 0 0 0 512 341.333z\", fill: \"#fff\" }));\nexport { SvgImgSetting as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMjU2YTQyLjY2NyA0Mi42NjcgMCAwIDAgNDIuNjY3LTQyLjY2N1YxMjhhNDIuNjY3IDQyLjY2NyAwIDAgMC04NS4zMzQgMHY4NS4zMzNBNDIuNjY3IDQyLjY2NyAwIDAgMCA1MTIgMjU2em0zODQgMjEzLjMzM2gtODUuMzMzYTQyLjY2NyA0Mi42NjcgMCAwIDAgMCA4NS4zMzRIODk2YTQyLjY2NyA0Mi42NjcgMCAwIDAgMC04NS4zMzR6TTI1NiA1MTJhNDIuNjY3IDQyLjY2NyAwIDAgMC00Mi42NjctNDIuNjY3SDEyOGE0Mi42NjcgNDIuNjY3IDAgMCAwIDAgODUuMzM0aDg1LjMzM0E0Mi42NjcgNDIuNjY3IDAgMCAwIDI1NiA1MTJ6bTkuMzg3LTI5OC42NjdhNDIuNjY3IDQyLjY2NyAwIDAgMC01OS4zMDcgNjIuNzJsNjEuNDQgNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAgMzEuMTQ3IDExLjk0NyA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEzLjIyNyA0Mi42NjcgNDIuNjY3IDAgMCAwIDAtNjAuMTZ6bTQ1OS45NDYgMTMzLjk3NGE0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0LTExLjk0N2w2MS40NC01OS4zMDdhNDIuNjY3IDQyLjY2NyAwIDAgMC01Ny42LTYyLjcybC02MS40NCA2MC41ODdhNDIuNjY3IDQyLjY2NyAwIDAgMCAwIDYwLjE2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMjguMTYgMTMuMjI3ek01MTIgNzY4YTQyLjY2NyA0Mi42NjcgMCAwIDAtNDIuNjY3IDQyLjY2N1Y4OTZhNDIuNjY3IDQyLjY2NyAwIDAgMCA4NS4zMzQgMHYtODUuMzMzQTQyLjY2NyA0Mi42NjcgMCAwIDAgNTEyIDc2OHptMjQ0LjQ4LTc5LjM2YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3IDYxLjQ0bDYxLjQ0IDYwLjU4N2E0Mi42NjcgNDIuNjY3IDAgMCAwIDI5LjQ0IDExLjk0NiA0Mi42NjcgNDIuNjY3IDAgMCAwIDMwLjcyLTEyLjggNDIuNjY3IDQyLjY2NyAwIDAgMCAwLTYwLjU4NnptLTQ4OC45NiAwLTYxLjQ0IDU5LjMwN2E0Mi42NjcgNDIuNjY3IDAgMCAwIDAgNjAuNTg2IDQyLjY2NyA0Mi42NjcgMCAwIDAgMzAuNzIgMTIuOCA0Mi42NjcgNDIuNjY3IDAgMCAwIDI4LjU4Ny0xMC42NjZsNjEuNDQtNTkuMzA3YTQyLjY2NyA0Mi42NjcgMCAwIDAtNTkuMzA3LTYxLjQ0ek01MTIgMzQxLjMzM0ExNzAuNjY3IDE3MC42NjcgMCAxIDAgNjgyLjY2NyA1MTIgMTcwLjY2NyAxNzAuNjY3IDAgMCAwIDUxMiAzNDEuMzMzeiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPalette = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"palette_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 16, height: 16 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M512 102.39c-226.202 0-409.6 183.367-409.6 409.6S285.798 921.62 512 921.62a408.556 408.556 0 0 0 156.672-31.2 68.332 68.332 0 0 0 22.16-111.402l-48.057-48.056a68.28 68.28 0 0 1 48.261-116.542l162.304-.04a68.26 68.26 0 0 0 68.27-68.26v-34.13c-.01-226.243-183.378-409.6-409.61-409.6zm341.33 443.73-162.304.03c-75.305 0-136.53 61.225-136.53 136.53 0 36.485 14.203 70.738 39.997 96.543l48.067 48.056a338.166 338.166 0 0 1-130.57 26.082c-188.201 0-341.33-153.14-341.33-341.371S323.799 170.65 512 170.65s341.33 153.098 341.33 341.33v34.14z\", fill: \"#fff\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M443.73 307.19a68.27 68.27 0 1 0 136.54 0 68.27 68.27 0 1 0-136.54 0ZM300.503 555.254a68.198 68.198 0 0 1 93.225 24.996 68.3 68.3 0 0 1-24.934 93.266 68.352 68.352 0 0 1-93.297-24.996 68.321 68.321 0 0 1 25.006-93.266zM621.056 409.59a68.29 68.29 0 1 0 136.581 0 68.29 68.29 0 1 0-136.581 0ZM300.503 468.716a68.26 68.26 0 0 1-24.965-93.266 68.25 68.25 0 1 1 118.2 68.239 68.27 68.27 0 0 1-93.235 25.027z\", fill: \"#fff\" }));\nexport { SvgPalette as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiPjxwYXRoIGQ9Ik01MTIgMTAyLjM5Yy0yMjYuMjAyIDAtNDA5LjYgMTgzLjM2Ny00MDkuNiA0MDkuNlMyODUuNzk4IDkyMS42MiA1MTIgOTIxLjYyYTQwOC41NTYgNDA4LjU1NiAwIDAgMCAxNTYuNjcyLTMxLjIgNjguMzMyIDY4LjMzMiAwIDAgMCAyMi4xNi0xMTEuNDAybC00OC4wNTctNDguMDU2YTY4LjI4IDY4LjI4IDAgMCAxIDQ4LjI2MS0xMTYuNTQybDE2Mi4zMDQtLjA0YTY4LjI2IDY4LjI2IDAgMCAwIDY4LjI3LTY4LjI2di0zNC4xM2MtLjAxLTIyNi4yNDMtMTgzLjM3OC00MDkuNi00MDkuNjEtNDA5LjZ6bTM0MS4zMyA0NDMuNzMtMTYyLjMwNC4wM2MtNzUuMzA1IDAtMTM2LjUzIDYxLjIyNS0xMzYuNTMgMTM2LjUzIDAgMzYuNDg1IDE0LjIwMyA3MC43MzggMzkuOTk3IDk2LjU0M2w0OC4wNjcgNDguMDU2YTMzOC4xNjYgMzM4LjE2NiAwIDAgMS0xMzAuNTcgMjYuMDgyYy0xODguMjAxIDAtMzQxLjMzLTE1My4xNC0zNDEuMzMtMzQxLjM3MVMzMjMuNzk5IDE3MC42NSA1MTIgMTcwLjY1czM0MS4zMyAxNTMuMDk4IDM0MS4zMyAzNDEuMzN2MzQuMTR6IiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTQ0My43MyAzMDcuMTlhNjguMjcgNjguMjcgMCAxIDAgMTM2LjU0IDAgNjguMjcgNjguMjcgMCAxIDAtMTM2LjU0IDBaTTMwMC41MDMgNTU1LjI1NGE2OC4xOTggNjguMTk4IDAgMCAxIDkzLjIyNSAyNC45OTYgNjguMyA2OC4zIDAgMCAxLTI0LjkzNCA5My4yNjYgNjguMzUyIDY4LjM1MiAwIDAgMS05My4yOTctMjQuOTk2IDY4LjMyMSA2OC4zMjEgMCAwIDEgMjUuMDA2LTkzLjI2NnpNNjIxLjA1NiA0MDkuNTlhNjguMjkgNjguMjkgMCAxIDAgMTM2LjU4MSAwIDY4LjI5IDY4LjI5IDAgMSAwLTEzNi41ODEgMFpNMzAwLjUwMyA0NjguNzE2YTY4LjI2IDY4LjI2IDAgMCAxLTI0Ljk2NS05My4yNjYgNjguMjUgNjguMjUgMCAxIDEgMTE4LjIgNjguMjM5IDY4LjI3IDY4LjI3IDAgMCAxLTkzLjIzNSAyNS4wMjd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDisplayReset = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"displayReset_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"m193.07 70.353 5.423.931a34.91 34.91 0 0 1 28.37 40.425l-.024.07-12.87 72.541A448.698 448.698 0 0 1 507.857 75.38c246.831 0 447.023 197.912 447.023 442.182S754.688 959.744 507.857 959.744c-160.186 0-305.687-84.084-385.466-218.159a37.795 37.795 0 0 1 13.359-51.921 38.167 38.167 0 0 1 52.154 13.289c66.21 111.243 186.903 180.992 319.953 180.992 204.87 0 370.851-164.096 370.851-366.383S712.728 151.18 507.858 151.18c-107.288 0-206.802 45.265-276.318 121.995H373.04a34.91 34.91 0 0 1 0 69.818H163.584c-2.607 0-5.19-.279-7.657-.837a34.63 34.63 0 0 1-5.26-.512l-5.422-.931a34.91 34.91 0 0 1-28.346-40.495l35.77-201.588a34.91 34.91 0 0 1 40.402-28.277z\", fill: \"#fff\" }));\nexport { SvgDisplayReset as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0ibTE5My4wNyA3MC4zNTMgNS40MjMuOTMxYTM0LjkxIDM0LjkxIDAgMCAxIDI4LjM3IDQwLjQyNWwtLjAyNC4wNy0xMi44NyA3Mi41NDFBNDQ4LjY5OCA0NDguNjk4IDAgMCAxIDUwNy44NTcgNzUuMzhjMjQ2LjgzMSAwIDQ0Ny4wMjMgMTk3LjkxMiA0NDcuMDIzIDQ0Mi4xODJTNzU0LjY4OCA5NTkuNzQ0IDUwNy44NTcgOTU5Ljc0NGMtMTYwLjE4NiAwLTMwNS42ODctODQuMDg0LTM4NS40NjYtMjE4LjE1OWEzNy43OTUgMzcuNzk1IDAgMCAxIDEzLjM1OS01MS45MjEgMzguMTY3IDM4LjE2NyAwIDAgMSA1Mi4xNTQgMTMuMjg5YzY2LjIxIDExMS4yNDMgMTg2LjkwMyAxODAuOTkyIDMxOS45NTMgMTgwLjk5MiAyMDQuODcgMCAzNzAuODUxLTE2NC4wOTYgMzcwLjg1MS0zNjYuMzgzUzcxMi43MjggMTUxLjE4IDUwNy44NTggMTUxLjE4Yy0xMDcuMjg4IDAtMjA2LjgwMiA0NS4yNjUtMjc2LjMxOCAxMjEuOTk1SDM3My4wNGEzNC45MSAzNC45MSAwIDAgMSAwIDY5LjgxOEgxNjMuNTg0Yy0yLjYwNyAwLTUuMTktLjI3OS03LjY1Ny0uODM3YTM0LjYzIDM0LjYzIDAgMCAxLTUuMjYtLjUxMmwtNS40MjItLjkzMWEzNC45MSAzNC45MSAwIDAgMS0yOC4zNDYtNDAuNDk1bDM1Ljc3LTIwMS41ODhhMzQuOTEgMzQuOTEgMCAwIDEgNDAuNDAyLTI4LjI3N3oiIGZpbGw9IiNmZmYiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgZoomResize = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ className: \"zoomResize_svg__icon\", viewBox: \"0 0 1024 1024\", xmlns: \"http://www.w3.org/2000/svg\", width: 200, height: 200 }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M981.333 42.667v938.666H42.667V42.667h938.666zM128 896h768V128H128v768zm170.667-170.667H448v85.334H213.333V576h85.334v149.333zm426.666-426.666H576v-85.334h234.667V448h-85.334V298.667z\", fill: \"#fff\" }));\nexport { SvgZoomResize as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PHBhdGggZD0iTTk4MS4zMzMgNDIuNjY3djkzOC42NjZINDIuNjY3VjQyLjY2N2g5MzguNjY2ek0xMjggODk2aDc2OFYxMjhIMTI4djc2OHptMTcwLjY2Ny0xNzAuNjY3SDQ0OHY4NS4zMzRIMjEzLjMzM1Y1NzZoODUuMzM0djE0OS4zMzN6bTQyNi42NjYtNDI2LjY2Nkg1NzZ2LTg1LjMzNGgyMzQuNjY3VjQ0OGgtODUuMzM0VjI5OC42Njd6IiBmaWxsPSIjZmZmIi8+PC9zdmc+\";\n","import { Button, Popover, Slider } from 'antd';\nimport Icon, { ZoomInOutlined, ZoomOutOutlined } from '@ant-design/icons';\nimport classNames from 'classnames';\nimport { useKeyPress } from 'ahooks';\nimport { MAX_SCALE, MIN_SCALE } from '../../constants';\nimport { EDITOR_SHORTCUTS, EShortcuts } from '../../constants/shortcuts';\nimport { useLocale } from 'dds-utils/locale';\nimport { FloatWrapper } from '../FloatWrapper';\nimport { ReactComponent as ImgSetting } from '../../assets/imgSetting.svg';\nimport { ReactComponent as Palette } from '../../assets/palette.svg';\nimport { ReactComponent as DisplayReset } from '../../assets/displayReset.svg';\nimport { ReactComponent as ZoomResize } from '../../assets/zoomResize.svg';\nimport { memo, useMemo } from 'react';\nimport {\n DEFAULT_IMG_DISPLAY_OPTIONS,\n IAnnotsDisplayOptions,\n IImageDisplayOptions,\n} from '../../type';\nimport './index.less';\n\ninterface IProps {\n scale: number;\n displayOption: IImageDisplayOptions;\n colorByCategory: boolean;\n onZoomIn: () => void;\n onZoomOut: () => void;\n onReset: () => void;\n onChangeImageDisplayOpts: (options: IImageDisplayOptions) => void;\n onChangeAnnotsDisplayOpts: (options: IAnnotsDisplayOptions) => void;\n}\n\nexport const ScaleToolBar: React.FC = memo(\n ({\n scale,\n displayOption,\n colorByCategory,\n onZoomIn,\n onZoomOut,\n onReset,\n onChangeImageDisplayOpts,\n onChangeAnnotsDisplayOpts,\n }) => {\n const { localeText } = useLocale();\n\n const disabledZoomIn = scale >= MAX_SCALE;\n const disabledZoomOut = scale <= MIN_SCALE;\n\n useKeyPress(EDITOR_SHORTCUTS[EShortcuts.ZoomIn].shortcut, () => {\n if (disabledZoomIn) return;\n onZoomIn();\n });\n\n useKeyPress(EDITOR_SHORTCUTS[EShortcuts.ZoomOut].shortcut, () => {\n if (disabledZoomOut) return;\n onZoomOut();\n });\n\n useKeyPress(EDITOR_SHORTCUTS[EShortcuts.Reset].shortcut, () => {\n onReset();\n });\n\n const popoverContent = useMemo(() => {\n return (\n
\n
\n
{localeText('DDSAnnotator.imgDisplayTool.title')}
\n }\n onClick={() =>\n onChangeImageDisplayOpts(DEFAULT_IMG_DISPLAY_OPTIONS)\n }\n >\n
\n
\n \n \n onChangeImageDisplayOpts({\n ...displayOption,\n brightness: value,\n })\n }\n min={0}\n max={200}\n />\n
\n
\n \n \n onChangeImageDisplayOpts({\n ...displayOption,\n contrast: value,\n })\n }\n min={0}\n max={200}\n />\n
\n
\n \n \n onChangeImageDisplayOpts({\n ...displayOption,\n saturate: value,\n })\n }\n min={0}\n max={200}\n />\n
\n
\n );\n }, [\n displayOption.brightness,\n displayOption.contrast,\n displayOption.saturate,\n onChangeImageDisplayOpts,\n onChangeAnnotsDisplayOpts,\n ]);\n\n const mouseEventHandler = (event: React.MouseEvent) => {\n // enable mouseup propagate only for sliders\n if (event.type === 'mouseup') {\n return;\n } else {\n event.stopPropagation();\n }\n };\n\n const switchColorMode = () => {\n onChangeAnnotsDisplayOpts({\n colorByCategory: !colorByCategory,\n });\n };\n\n return (\n \n
\n }\n onClick={onZoomOut}\n />\n
\n {Math.floor(scale * 100)}%\n
\n }\n onClick={onZoomIn}\n />\n }\n >\n \n }\n >\n \n \n {localeText('DDSAnnotator.colorMode')}\n \n }\n trigger=\"hover\"\n color={'#212121'}\n >\n }\n onClick={switchColorMode}\n >\n \n
\n
\n );\n },\n);\n","import { Button, Tooltip } from 'antd';\nimport { LeftOutlined, RightOutlined } from '@ant-design/icons';\nimport classNames from 'classnames';\nimport { DrawImageData } from '../../type';\nimport { memo, useState } from 'react';\nimport { useKeyPress } from 'ahooks';\nimport { EDITOR_SHORTCUTS, EShortcuts } from '../../constants/shortcuts';\nimport { useLocale } from 'dds-utils/locale';\nimport './index.less';\n\ninterface IProps {\n list: DrawImageData[];\n current: number;\n total: number;\n customText?: React.ReactElement;\n customDisableNext?: boolean;\n onPrev?: () => Promise;\n onNext?: () => Promise;\n}\n\nconst propsAreEqual = (prev: IProps, next: IProps): boolean => {\n return (\n prev.current === next.current &&\n prev.total === next.total &&\n prev.customText === next.customText &&\n prev.customDisableNext === next.customDisableNext\n );\n};\n\nexport const TopPagination: React.FC = memo(\n ({\n current,\n total,\n customText,\n customDisableNext,\n onPrev = () => Promise.resolve(),\n onNext = () => Promise.resolve(),\n }) => {\n const { localeText } = useLocale();\n\n const [loadingPred, setLoadingPred] = useState(false);\n const [loadingNext, setLoadingNext] = useState(false);\n\n const clickPrev = async () => {\n setLoadingPred(true);\n await onPrev();\n setLoadingPred(false);\n };\n\n const clickNext = async () => {\n setLoadingNext(true);\n await onNext();\n setLoadingNext(false);\n };\n\n const disablePrev = current <= 0;\n const disableNext = customDisableNext ?? current >= total - 1;\n\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.PreviousImage].shortcut,\n () => {\n if (disablePrev) return;\n clickPrev();\n },\n {\n exactMatch: true,\n },\n );\n\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.NextImage].shortcut,\n () => {\n if (disableNext) return;\n clickNext();\n },\n {\n exactMatch: true,\n },\n );\n\n return (\n
\n \n }\n loading={loadingPred}\n onClick={clickPrev}\n />\n \n {customText ? (\n customText\n ) : (\n
\n {current + 1} / {total}\n
\n )}\n \n }\n loading={loadingNext}\n onClick={clickNext}\n />\n \n
\n );\n },\n propsAreEqual,\n);\n","import { CloseOutlined } from '@ant-design/icons';\nimport { Button, Card, Select } from 'antd';\nimport classNames from 'classnames';\nimport { FloatWrapper } from '../FloatWrapper';\nimport { memo, useEffect, useState } from 'react';\nimport { useKeyPress } from 'ahooks';\nimport { EDITOR_SHORTCUTS, EShortcuts } from '../../constants/shortcuts';\nimport { useLocale } from 'dds-utils/locale';\nimport CategoryCreator from '../CategoryCreator';\nimport { Category, IAnnotationObject } from '../../type';\nimport './index.less';\n\ninterface IProps {\n hideTitle: boolean;\n allowAddCategory: boolean;\n latestLabel: string;\n categories: Category[];\n currEditObject: IAnnotationObject | undefined;\n onCreateCategory: (name: string) => void;\n onCloseAnnotationEditor: () => void;\n onFinishCurrCreate: (label: string) => void;\n onDeleteCurrObject: () => void;\n}\n\nexport const AnnotationEditor: React.FC = memo(\n ({\n hideTitle,\n allowAddCategory,\n latestLabel,\n categories,\n currEditObject,\n onCreateCategory,\n onFinishCurrCreate,\n onDeleteCurrObject,\n onCloseAnnotationEditor,\n }) => {\n const { localeText } = useLocale();\n\n const defaultObjectLabel = currEditObject?.label || latestLabel;\n const [objLabel, setObjLabel] = useState(defaultObjectLabel);\n\n useEffect(() => {\n setObjLabel(currEditObject?.label || latestLabel);\n }, [currEditObject]);\n\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.SaveCurrObject].shortcut,\n (event: KeyboardEvent) => {\n if (currEditObject) {\n event.preventDefault();\n onFinishCurrCreate(objLabel);\n }\n },\n {\n exactMatch: true,\n },\n );\n\n return (\n \n \n {localeText('DDSAnnotator.annotsEditor.title')}\n }\n shape=\"circle\"\n size=\"small\"\n onClick={onCloseAnnotationEditor}\n >\n \n )\n }\n >\n
\n
\n {\n setObjLabel(label);\n }}\n popupClassName=\"objects-select-popup\"\n onClick={(event) => event.stopPropagation()}\n onKeyUp={(event) => event.stopPropagation()}\n onInputKeyDown={(event) => {\n if (event.code !== 'Enter') {\n event.stopPropagation();\n }\n }}\n // @ts-ignore\n getPopupContainer={() =>\n document.getElementById('annotation-editor')\n }\n dropdownRender={(menu) => (\n <>\n {menu}\n {allowAddCategory && (\n \n )}\n \n )}\n >\n {categories?.map((category) => (\n \n {category.name}\n \n ))}\n \n
\n
\n
\n {\n event.preventDefault();\n onDeleteCurrObject();\n }}\n >\n {localeText('DDSAnnotator.annotsEditor.delete')}\n \n {\n event.preventDefault();\n onFinishCurrCreate(objLabel);\n }}\n >\n {localeText('DDSAnnotator.annotsEditor.finish')}\n \n
\n
\n
\n \n
\n );\n },\n);\n","import { useCallback, useState } from 'react';\nimport { DraftFunction, Updater, useImmer } from 'use-immer';\nimport { cloneDeep, isEqual } from 'lodash';\nimport { scaleDrawData, translateObjectsToAnnotations } from '../utils/compute';\nimport { BaseObject, DrawData } from '../type';\n\nexport interface HistoryItem {\n drawData: DrawData;\n clientSize: ISize;\n}\n\ninterface IProps {\n clientSize: ISize;\n naturalSize: ISize;\n setDrawData: Updater;\n onAutoSave?: (annotations: BaseObject[], naturalSize: ISize) => void;\n}\n\nconst useHistory = ({\n clientSize,\n naturalSize,\n onAutoSave,\n setDrawData,\n}: IProps) => {\n const [historyQueue, setHistoryQueue] = useImmer([]);\n const [currentIndex, setCurrIndex] = useState(0);\n const maxCacheSize = 20;\n\n const autoSave = (item: HistoryItem) => {\n const annotations = translateObjectsToAnnotations(\n item.drawData.objectList,\n naturalSize,\n item.clientSize,\n true,\n );\n if (onAutoSave) onAutoSave(annotations, naturalSize);\n };\n\n /**\n * Undo the last action\n */\n const undo = useCallback(() => {\n if (currentIndex > 0) {\n setCurrIndex((prevIndex) => prevIndex - 1);\n const record = historyQueue[currentIndex - 1];\n const updateDrawData = scaleDrawData(\n record.drawData,\n record.clientSize,\n clientSize,\n );\n setDrawData(updateDrawData);\n autoSave(record);\n }\n }, [currentIndex, historyQueue, clientSize.width, clientSize.height]);\n\n /**\n * Redo the last undone action\n */\n const redo = useCallback(() => {\n if (currentIndex < historyQueue.length - 1) {\n setCurrIndex((prevIndex) => prevIndex + 1);\n const record = historyQueue[currentIndex + 1];\n const updateDrawData = scaleDrawData(\n record.drawData,\n record.clientSize,\n clientSize,\n );\n setDrawData(updateDrawData);\n autoSave(record);\n }\n }, [currentIndex, historyQueue, clientSize.width, clientSize.height]);\n\n /**\n * Update the history queue with the new objects\n */\n const updateHistory = (item: HistoryItem) => {\n setHistoryQueue((queue) => {\n if (queue[currentIndex] && isEqual(item, queue[currentIndex])) {\n return queue;\n }\n if (\n currentIndex === 0 &&\n isEqual(item.drawData, queue[currentIndex]?.drawData)\n ) {\n // fix to change image current render\n return queue;\n }\n queue.splice(currentIndex + 1);\n queue.push(item);\n if (queue.length > maxCacheSize) {\n queue.shift();\n }\n setCurrIndex(queue.length - 1);\n });\n autoSave(item);\n };\n\n const clearHistory = useCallback(() => {\n setHistoryQueue([]);\n }, []);\n\n const setDrawDataWithHistory: Updater = (\n updater: DrawData | DraftFunction,\n ) => {\n if (typeof updater === 'function') {\n setDrawData((s) => {\n updater(s);\n updateHistory(\n cloneDeep({\n drawData: s,\n clientSize,\n }),\n );\n });\n } else {\n setDrawData(updater);\n updateHistory(\n cloneDeep({\n drawData: updater,\n clientSize,\n }),\n );\n }\n };\n\n return {\n updateHistory,\n undo,\n redo,\n clearHistory,\n setDrawDataWithHistory,\n hadChangeRecord: historyQueue.length > 1 && currentIndex !== 0,\n };\n};\n\nexport default useHistory;\n","import { AnnotationType, EElementType, EObjectType } from '../constants';\nimport {\n getObjectType,\n translateBoundingBoxToRect,\n translatePointsToPointObjs,\n getSegmentationPoints,\n} from '../utils/compute';\nimport { Updater } from 'use-immer';\nimport {\n BaseObject,\n DrawData,\n EditState,\n EditorMode,\n IAnnotationObject,\n EObjectStatus,\n DrawObject,\n} from '../type';\nimport { rleToCanvas } from '../tools/useMask';\nimport { useCallback } from 'react';\nimport { generateUniformHexColor } from '../utils/color';\n\ninterface IProps {\n mode: EditorMode;\n annotations: BaseObject[];\n setAnnotations: Updater;\n drawData: DrawData;\n setDrawData: Updater;\n setDrawDataWithHistory: Updater;\n editState: EditState;\n setEditState: Updater;\n clientSize: ISize;\n naturalSize: ISize;\n displayAnnotationType?: AnnotationType;\n}\n\nconst useObjects = ({\n mode,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n setEditState,\n clientSize,\n naturalSize,\n editState,\n displayAnnotationType,\n}: IProps) => {\n const translateAnnotationToObject = (\n annotation: DrawObject,\n labelColors: Record,\n ): IAnnotationObject => {\n let {\n categoryName,\n boundingBox,\n points,\n lines,\n pointNames,\n pointColors,\n segmentation,\n mask,\n alpha,\n } = annotation;\n\n const color = editState.annotsDisplayOptions.colorByCategory\n ? labelColors[categoryName || ''] || '#ffffff'\n : generateUniformHexColor();\n\n const newObj: IAnnotationObject = {\n label: categoryName || '',\n type: EObjectType.Rectangle,\n hidden: false,\n conf: annotation.conf || 1,\n labelId: annotation.labelId,\n compareResult: annotation.compareResult,\n status: EObjectStatus.Commited,\n color,\n };\n\n if (boundingBox) {\n const rect = translateBoundingBoxToRect(boundingBox, clientSize);\n Object.assign(newObj, { rect: { visible: true, ...rect } });\n }\n\n if (\n points &&\n points.length > 0 &&\n lines &&\n lines.length > 0 &&\n pointNames &&\n pointColors\n ) {\n const pointObjs: IElement[] = translatePointsToPointObjs(\n points,\n pointNames,\n pointColors,\n naturalSize,\n clientSize,\n );\n Object.assign(newObj, {\n keypoints: {\n points: pointObjs,\n lines,\n },\n });\n }\n if (segmentation) {\n const group = getSegmentationPoints(\n segmentation,\n naturalSize,\n clientSize,\n );\n const polygon: IElement = {\n group,\n visible: true,\n };\n Object.assign(newObj, { polygon });\n }\n\n if (mask && mask.length) {\n Object.assign(newObj, {\n maskRle: mask,\n maskCanvasElement: rleToCanvas(mask, naturalSize, color),\n });\n }\n\n if (alpha) {\n const alphaImageElement = new Image();\n alphaImageElement.src = alpha;\n // alphaImageElement.crossOrigin = 'anonymous';\n Object.assign(newObj, {\n alpha,\n alphaImageElement,\n });\n }\n\n newObj.type = getObjectType(newObj, displayAnnotationType);\n return newObj;\n };\n\n const initObjectList = (\n annotations: DrawObject[],\n labelColors: Record,\n ) => {\n setDrawDataWithHistory((s) => {\n s.objectList = annotations\n .map((annotation) => {\n return translateAnnotationToObject(annotation, labelColors);\n })\n .filter((annotation) => annotation.type !== EObjectType.Custom);\n });\n };\n\n const addObject = (object: IAnnotationObject, notActive?: boolean) => {\n if (mode !== EditorMode.Edit) return;\n setDrawDataWithHistory((s) => {\n s.objectList.push(object);\n s.creatingObject = { ...object };\n s.activeObjectIndex = notActive ? -1 : s.objectList.length - 1;\n });\n };\n\n const removeObject = useCallback(\n (index: number) => {\n if (mode !== EditorMode.Edit || !drawData.objectList[index]) return;\n setDrawDataWithHistory((s) => {\n if (s.objectList[index]) {\n s.objectList.splice(index, 1);\n s.activeObjectIndex = -1;\n s.creatingObject = undefined;\n }\n });\n setEditState((s) => {\n s.focusObjectIndex = -1;\n s.focusEleIndex = -1;\n s.focusEleType = EElementType.Rect;\n });\n },\n [mode, drawData.objectList],\n );\n\n const removeAllObjects = useCallback(() => {\n if (mode !== EditorMode.Edit) return;\n setDrawDataWithHistory((s) => {\n s.objectList = [];\n s.creatingObject = undefined;\n s.prompt = {};\n });\n setEditState((s) => {\n s.focusObjectIndex = -1;\n s.focusEleIndex = -1;\n s.focusEleType = EElementType.Rect;\n });\n }, [mode]);\n\n const updateObject = (object: IAnnotationObject, index: number) => {\n if (mode !== EditorMode.Edit || !drawData.objectList[index]) return;\n setDrawDataWithHistory((s) => {\n s.objectList[index] = object;\n if (s.creatingObject && s.activeObjectIndex === index) {\n s.creatingObject = { ...object };\n }\n });\n };\n\n const updateAllObject = (objectList: IAnnotationObject[]) => {\n setDrawDataWithHistory((s) => {\n s.objectList = objectList;\n if (s.creatingObject && s.objectList[s.activeObjectIndex]) {\n s.creatingObject = { ...s.objectList[s.activeObjectIndex] };\n }\n });\n };\n\n const updateObjectWithoutHistory = (\n object: IAnnotationObject,\n index: number,\n ) => {\n if (!drawData.objectList[index]) return;\n setDrawData((s) => {\n s.objectList[index] = object;\n if (s.creatingObject && s.activeObjectIndex === index) {\n s.creatingObject = { ...object };\n }\n });\n };\n\n const updateAllObjectWithoutHistory = (objectList: IAnnotationObject[]) => {\n setDrawData((s) => {\n s.objectList = objectList;\n if (s.creatingObject && s.objectList[s.activeObjectIndex]) {\n s.creatingObject = { ...s.objectList[s.activeObjectIndex] };\n }\n });\n };\n\n return {\n initObjectList,\n addObject,\n removeObject,\n removeAllObjects,\n updateObject,\n updateAllObject,\n updateObjectWithoutHistory,\n updateAllObjectWithoutHistory,\n };\n};\n\nexport default useObjects;\n","import { __read } from \"tslib\";\nimport useRafState from '../useRafState';\nimport useEventListener from '../useEventListener';\nimport { getTargetElement } from '../utils/domTarget';\nvar initState = {\n screenX: NaN,\n screenY: NaN,\n clientX: NaN,\n clientY: NaN,\n pageX: NaN,\n pageY: NaN,\n elementX: NaN,\n elementY: NaN,\n elementH: NaN,\n elementW: NaN,\n elementPosX: NaN,\n elementPosY: NaN\n};\nexport default (function (target) {\n var _a = __read(useRafState(initState), 2),\n state = _a[0],\n setState = _a[1];\n useEventListener('mousemove', function (event) {\n var screenX = event.screenX,\n screenY = event.screenY,\n clientX = event.clientX,\n clientY = event.clientY,\n pageX = event.pageX,\n pageY = event.pageY;\n var newState = {\n screenX: screenX,\n screenY: screenY,\n clientX: clientX,\n clientY: clientY,\n pageX: pageX,\n pageY: pageY,\n elementX: NaN,\n elementY: NaN,\n elementH: NaN,\n elementW: NaN,\n elementPosX: NaN,\n elementPosY: NaN\n };\n var targetElement = getTargetElement(target);\n if (targetElement) {\n var _a = targetElement.getBoundingClientRect(),\n left = _a.left,\n top_1 = _a.top,\n width = _a.width,\n height = _a.height;\n newState.elementPosX = left + window.pageXOffset;\n newState.elementPosY = top_1 + window.pageYOffset;\n newState.elementX = pageX - newState.elementPosX;\n newState.elementY = pageY - newState.elementPosY;\n newState.elementW = width;\n newState.elementH = height;\n }\n setState(newState);\n }, {\n target: function () {\n return document;\n }\n });\n return state;\n});","import React, {\n useCallback,\n useEffect,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { useEventListener, useMouse, useSize } from 'ahooks';\nimport { useImmer } from 'use-immer';\nimport { isInCanvas, zoomImgSize } from '../utils/compute';\nimport {\n MIN_SCALE,\n MAX_SCALE,\n BUTTON_SCALE_STEP,\n WHEEL_SCALE_STEP,\n} from '../constants';\nimport { fixedFloatNum } from 'dds-utils/digit';\n\ninterface IProps {\n isRequiring: boolean;\n visible: boolean;\n minPadding?: {\n top: number;\n left: number;\n };\n allowMove: boolean;\n isCustomCursorActive: boolean;\n cursorSize: number;\n showReferenceLine?: boolean;\n onClickMaskBg?: React.MouseEventHandler;\n}\n\nexport default function useCanvasContainer({\n isRequiring,\n visible,\n minPadding = { top: 0, left: 0 },\n allowMove,\n showReferenceLine,\n isCustomCursorActive,\n cursorSize,\n onClickMaskBg,\n}: IProps) {\n const containerRef = useRef(null);\n const containerSize = useSize(() => containerRef.current);\n const containerMouse = useMouse(() => containerRef.current); // delayed get size when move don't move\n\n /** The original size of image */\n const [naturalSize, setNaturalSize] = useState({\n width: 0,\n height: 0,\n });\n\n /** The scaled size of image */\n const [clientSize, setClientSize] = useImmer<{\n width: number;\n height: number;\n scale: number;\n }>({\n width: naturalSize.width,\n height: naturalSize.height,\n scale: 1,\n });\n\n /** The top-left location on canvas container */\n const imagePos = useRef({ x: 0, y: 0 });\n\n // Scale info\n const lastScalePosRef = useRef<\n | {\n posRatioX: number;\n posRatioY: number;\n mouseX: number;\n mouseY: number;\n }\n | undefined\n >(undefined);\n\n const contentMouse = useMemo(() => {\n return {\n ...containerMouse,\n elementW: clientSize.width,\n elementH: clientSize.height,\n elementX: containerMouse.elementX - imagePos.current.x,\n elementY: containerMouse.elementY - imagePos.current.y,\n };\n }, [containerMouse, clientSize]);\n\n const [movingImgAnchor, setMovingImgAnchor] = useImmer(null);\n\n const initClientSizeToFit = (naturalSize: ISize) => {\n if (naturalSize && containerSize) {\n const containerWidth = containerSize.width;\n const containerHeight = containerSize.height;\n const [width, height, scale] = zoomImgSize(\n naturalSize.width,\n naturalSize.height,\n containerWidth - minPadding.left * 2,\n containerHeight - minPadding.top * 2,\n );\n imagePos.current = {\n x: (containerWidth - width) * 0.5,\n y: (containerHeight - height) * 0.5,\n };\n setClientSize({\n scale,\n width: naturalSize.width * scale,\n height: naturalSize.height * scale,\n });\n lastScalePosRef.current = undefined;\n }\n };\n\n /** Initial position to fit container */\n useEffect(() => {\n initClientSizeToFit(naturalSize);\n }, [naturalSize, containerSize]);\n\n const adaptImagePosWhileZoom = () => {\n if (!containerSize) return;\n\n const containerWidth = containerSize?.width;\n const containerHeight = containerSize?.height;\n\n // Default zoom center\n let posRatioX = 0.5;\n let posRatioY = 0.5;\n let mouseX = containerWidth / 2;\n let mouseY = containerHeight / 2;\n\n if (lastScalePosRef.current) {\n posRatioX = lastScalePosRef.current.posRatioX;\n posRatioY = lastScalePosRef.current.posRatioY;\n mouseX = lastScalePosRef.current.mouseX;\n mouseY = lastScalePosRef.current.mouseY;\n }\n const x = mouseX - clientSize.width * posRatioX;\n const y = mouseY - clientSize.height * posRatioY;\n\n imagePos.current = { x, y };\n };\n\n useEffect(() => {\n adaptImagePosWhileZoom();\n }, [clientSize]);\n\n const zoom = (isZoomIn: boolean, step: number, isZoomBtn?: boolean) => {\n if (!visible || isRequiring) return;\n setClientSize((s) => {\n let scale = isZoomIn\n ? Math.min(MAX_SCALE, fixedFloatNum(s.scale + step, 2))\n : Math.max(MIN_SCALE, fixedFloatNum(s.scale - step, 2));\n\n // update scale center\n if (\n !lastScalePosRef.current ||\n containerMouse.elementX !== lastScalePosRef.current.mouseX ||\n containerMouse.elementY !== lastScalePosRef.current.mouseY\n ) {\n if (\n !isZoomBtn &&\n !isNaN(contentMouse.elementX) &&\n !isNaN(containerMouse.elementX) &&\n clientSize.width\n ) {\n const scalePos = {\n posRatioX: contentMouse.elementX / clientSize.width,\n posRatioY: contentMouse.elementY / clientSize.height,\n mouseX: containerMouse.elementX,\n mouseY: containerMouse.elementY,\n };\n lastScalePosRef.current = scalePos;\n }\n }\n\n s.scale = scale;\n s.width = naturalSize.width * scale;\n s.height = naturalSize.height * scale;\n });\n };\n\n const onZoomIn = useCallback(() => {\n zoom(true, BUTTON_SCALE_STEP, true);\n }, [BUTTON_SCALE_STEP, zoom]);\n\n const onZoomOut = useCallback(() => {\n zoom(false, BUTTON_SCALE_STEP, true);\n }, [BUTTON_SCALE_STEP, zoom]);\n\n // Zoom gesture.\n const onWheelMove: React.WheelEventHandler = (event) => {\n if (!visible || isRequiring) return;\n const wheelDirection = event.deltaY;\n if (wheelDirection > 0) {\n zoom(false, WHEEL_SCALE_STEP);\n } else if (wheelDirection < 0) {\n zoom(true, WHEEL_SCALE_STEP);\n }\n };\n\n const onReset = useCallback(() => {\n lastScalePosRef.current = undefined;\n initClientSizeToFit(naturalSize);\n }, [naturalSize.width, naturalSize.height]);\n\n // Reset data when hidden.\n useEffect(() => {\n if (!visible) {\n setNaturalSize({ width: 0, height: 0 });\n setClientSize({\n scale: 1,\n width: 0,\n height: 0,\n });\n imagePos.current = { x: 0, y: 0 };\n lastScalePosRef.current = undefined;\n }\n }, [visible]);\n\n const [isMousePress, setMousePress] = useState(false);\n\n useEventListener('mousedown', () => {\n setMousePress(true);\n if (!visible || !containerRef.current) return;\n setMovingImgAnchor({\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n });\n });\n\n useEventListener('mousemove', () => {\n if (!visible) return;\n if (movingImgAnchor && allowMove && isMousePress) {\n const offsetX = contentMouse.elementX - movingImgAnchor.x;\n const offsetY = contentMouse.elementY - movingImgAnchor.y;\n const { x, y } = imagePos.current;\n imagePos.current = {\n x: x + offsetX,\n y: y + offsetY,\n };\n }\n });\n\n useEventListener('mouseup', () => {\n setMousePress(false);\n if (!visible || !allowMove) return;\n // Stop moving the image.\n if (movingImgAnchor) {\n setMovingImgAnchor(null);\n return;\n }\n });\n\n useEffect(() => {\n if (!allowMove) {\n setMovingImgAnchor(null);\n } else {\n setMovingImgAnchor({\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n });\n }\n }, [allowMove]);\n\n const onLoadImg = (e: React.UIEvent) => {\n const img = e.target as HTMLImageElement;\n const naturalSize = { width: img.naturalWidth, height: img.naturalHeight };\n setNaturalSize(naturalSize);\n initClientSizeToFit(naturalSize);\n };\n\n const onClickBg = (event: React.MouseEvent) => {\n if (!isInCanvas(contentMouse)) {\n onClickMaskBg?.(event);\n }\n };\n\n /** Container render function */\n const CanvasContainer = ({\n children,\n className,\n }: {\n children: React.ReactNode;\n className?: string;\n }) => {\n if (!visible) return null;\n return (\n \n {children}\n {showReferenceLine && !allowMove && isInCanvas(contentMouse) && (\n <>\n {/* leftLine */}\n \n {/* rightLine */}\n \n {/* upLine */}\n \n {/* downLine */}\n \n \n )}\n {isCustomCursorActive &&\n cursorSize > 0 &&\n isInCanvas(containerMouse) &&\n isInCanvas(contentMouse) &&\n !allowMove && (\n \n )}\n \n );\n };\n\n return {\n CanvasContainer,\n scale: clientSize.scale,\n containerRef,\n naturalSize,\n clientSize: {\n width: clientSize.width,\n height: clientSize.height,\n },\n containerSize,\n containerMouse: {\n ...containerMouse,\n elementW: containerSize?.width || containerMouse.elementW,\n elementH: containerSize?.height || containerMouse.elementH,\n },\n contentMouse,\n imagePos,\n isMousePress,\n onLoadImg,\n onZoomIn,\n onZoomOut,\n onWheelMove,\n onReset,\n };\n}\n","import { useRef } from 'react';\n\nexport type compareFunction = (prev: T | undefined, next: T) => boolean;\n\nexport default function usePreviousState(\n state: T,\n compare?: compareFunction,\n): [T | undefined, () => void] {\n const prevRef = useRef();\n const curRef = useRef();\n\n const needUpdate =\n typeof compare === 'function' ? compare(curRef.current, state) : true;\n if (needUpdate) {\n prevRef.current = curRef.current;\n curRef.current = state;\n }\n\n const clearPrev = () => {\n prevRef.current = undefined;\n };\n\n return [prevRef.current, clearPrev];\n}\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPenAdd = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#pen-add_svg__a)\", fill: \"#fff\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M16.7 10c0-.1 0-.1.1-.2v-.2c0-.1 0-.1-.1-.1l-3.2-3.2-3.1-3.1v-.1H10.1c-.1.2-.3.3-.6.3-1.7.7-3.4 1.3-5.2 1.9-.1 0-.1.1-.2.1s0 .1 0 .2c-.2.6-.4 1.2-.6 1.9C3 9.2 2.5 11 2 12.7L.3 18.4c-.1.3-.2.7-.3 1l.2-.1L7 12.4l.1-.1V12c-.1-.2-.2-.5-.2-.8 0-.3 0-.6.1-.8.1-.3.3-.5.5-.7.2-.2.4-.3.7-.4H9c.3 0 .5.1.8.3.2.1.4.3.6.6.9-.8 2-1.2 3.3-1.2 1.1 0 2.2.4 3 1Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M8.6 13.2h-.3c-.2-.1-.3-.2-.5-.3L.7 20l4-1.2 5-1.4c-.7-.9-1.2-2-1.2-3.3 0-.3.1-.6.1-.9ZM11.3 2.6 16.7 8l.8.8L20 7.2 12.8 0l-.1.1c-.5.8-1 1.5-1.5 2.2v.2l.1.1c-.1 0-.1 0 0 0ZM16.4 11c-.7-.6-1.7-1.1-2.7-1.1-1.2 0-2.3.5-3 1.3-.4.5-.8 1-.9 1.7-.1.4-.2.7-.2 1.1 0 1.2.5 2.2 1.3 3 .7.7 1.7 1.2 2.9 1.2 2.3 0 4.1-1.9 4.1-4.1-.1-1.2-.7-2.3-1.5-3.1Zm-1.1 4.1h-.7v.8c0 .6-.4 1-1 1s-1-.4-1-1v-.8H12c-.6 0-1-.4-1-1s.4-1 1-1h.6v-.5c0-.6.4-1 1-1s1 .4 1 1v.5h.7c.6 0 1 .4 1 1s-.4 1-1 1Z\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"pen-add_svg__a\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M0 0h20v20H0z\" }))));\nexport { SvgPenAdd as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik0xNi43IDEwYzAtLjEgMC0uMS4xLS4ydi0uMmMwLS4xIDAtLjEtLjEtLjFsLTMuMi0zLjItMy4xLTMuMXYtLjFIMTAuMWMtLjEuMi0uMy4zLS42LjMtMS43LjctMy40IDEuMy01LjIgMS45LS4xIDAtLjEuMS0uMi4xczAgLjEgMCAuMmMtLjIuNi0uNCAxLjItLjYgMS45QzMgOS4yIDIuNSAxMSAyIDEyLjdMLjMgMTguNGMtLjEuMy0uMi43LS4zIDFsLjItLjFMNyAxMi40bC4xLS4xVjEyYy0uMS0uMi0uMi0uNS0uMi0uOCAwLS4zIDAtLjYuMS0uOC4xLS4zLjMtLjUuNS0uNy4yLS4yLjQtLjMuNy0uNEg5Yy4zIDAgLjUuMS44LjMuMi4xLjQuMy42LjYuOS0uOCAyLTEuMiAzLjMtMS4yIDEuMSAwIDIuMi40IDMgMVoiLz48cGF0aCBkPSJNOC42IDEzLjJoLS4zYy0uMi0uMS0uMy0uMi0uNS0uM0wuNyAyMGw0LTEuMiA1LTEuNGMtLjctLjktMS4yLTItMS4yLTMuMyAwLS4zLjEtLjYuMS0uOVpNMTEuMyAyLjYgMTYuNyA4bC44LjhMMjAgNy4yIDEyLjggMGwtLjEuMWMtLjUuOC0xIDEuNS0xLjUgMi4ydi4ybC4xLjFjLS4xIDAtLjEgMCAwIDBaTTE2LjQgMTFjLS43LS42LTEuNy0xLjEtMi43LTEuMS0xLjIgMC0yLjMuNS0zIDEuMy0uNC41LS44IDEtLjkgMS43LS4xLjQtLjIuNy0uMiAxLjEgMCAxLjIuNSAyLjIgMS4zIDMgLjcuNyAxLjcgMS4yIDIuOSAxLjIgMi4zIDAgNC4xLTEuOSA0LjEtNC4xLS4xLTEuMi0uNy0yLjMtMS41LTMuMVptLTEuMSA0LjFoLS43di44YzAgLjYtLjQgMS0xIDFzLTEtLjQtMS0xdi0uOEgxMmMtLjYgMC0xLS40LTEtMXMuNC0xIDEtMWguNnYtLjVjMC0uNi40LTEgMS0xczEgLjQgMSAxdi41aC43Yy42IDAgMSAuNCAxIDFzLS40IDEtMSAxWiIvPjwvZz48ZGVmcz48Y2xpcFBhdGggaWQ9ImEiPjxwYXRoIGZpbGw9IiNmZmYiIGQ9Ik0wIDBoMjB2MjBIMHoiLz48L2NsaXBQYXRoPjwvZGVmcz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPenErase = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#pen-erase_svg__a)\", fill: \"#fff\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"m16.74 10 .07-.2a.22.22 0 0 0 0-.16.22.22 0 0 0-.09-.12l-3.14-3.16-3.07-3.08a.18.18 0 0 0 0-.07H10.29l-.72.26-5.23 1.82a.42.42 0 0 0-.18.11.35.35 0 0 0-.1.19c-.17.63-.36 1.25-.55 1.88C3 9.21 2.51 11 2 12.67L.3 18.34c-.09.31-.18.66-.3 1l.16-.14L7 12.42l.06-.06a.16.16 0 0 0 0-.09.17.17 0 0 0 0-.1v-.08a1.87 1.87 0 0 1-.06-1.6A1.95 1.95 0 0 1 8.16 9.4c.27-.09.558-.118.84-.08a2 2 0 0 1 .78.26c.232.15.432.344.59.57a5 5 0 0 1 6.37-.15Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M8.63 13.2c-.106.01-.214.01-.32 0a3.38 3.38 0 0 1-.52-.22L.74 20l4-1.2 5-1.44a4.9 4.9 0 0 1-1.11-4.16ZM11.25 2.62c1.83 1.82 3.62 3.62 5.43 5.43l.81.83L20 7.21 12.83 0l-.08.1c-.5.75-1 1.53-1.5 2.25v.06a.192.192 0 0 0 0 .07.19.19 0 0 0 0 .08.208.208 0 0 0 0 .06ZM16.38 11a4.1 4.1 0 0 0-6.66 2 4.24 4.24 0 0 0-.18 1.13 4.11 4.11 0 0 0 1.27 3 4.06 4.06 0 0 0 2.85 1.16A4.12 4.12 0 0 0 16.38 11Zm-1 4.08h-3.32a1 1 0 0 1 0-2h3.27a1 1 0 0 1 0 2h.05Z\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"pen-erase_svg__a\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M0 0h20v20H0z\" }))));\nexport { SvgPenErase as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im0xNi43NCAxMCAuMDctLjJhLjIyLjIyIDAgMCAwIDAtLjE2LjIyLjIyIDAgMCAwLS4wOS0uMTJsLTMuMTQtMy4xNi0zLjA3LTMuMDhhLjE4LjE4IDAgMCAwIDAtLjA3SDEwLjI5bC0uNzIuMjYtNS4yMyAxLjgyYS40Mi40MiAwIDAgMC0uMTguMTEuMzUuMzUgMCAwIDAtLjEuMTljLS4xNy42My0uMzYgMS4yNS0uNTUgMS44OEMzIDkuMjEgMi41MSAxMSAyIDEyLjY3TC4zIDE4LjM0Yy0uMDkuMzEtLjE4LjY2LS4zIDFsLjE2LS4xNEw3IDEyLjQybC4wNi0uMDZhLjE2LjE2IDAgMCAwIDAtLjA5LjE3LjE3IDAgMCAwIDAtLjF2LS4wOGExLjg3IDEuODcgMCAwIDEtLjA2LTEuNkExLjk1IDEuOTUgMCAwIDEgOC4xNiA5LjRjLjI3LS4wOS41NTgtLjExOC44NC0uMDhhMiAyIDAgMCAxIC43OC4yNmMuMjMyLjE1LjQzMi4zNDQuNTkuNTdhNSA1IDAgMCAxIDYuMzctLjE1WiIvPjxwYXRoIGQ9Ik04LjYzIDEzLjJjLS4xMDYuMDEtLjIxNC4wMS0uMzIgMGEzLjM4IDMuMzggMCAwIDEtLjUyLS4yMkwuNzQgMjBsNC0xLjIgNS0xLjQ0YTQuOSA0LjkgMCAwIDEtMS4xMS00LjE2Wk0xMS4yNSAyLjYyYzEuODMgMS44MiAzLjYyIDMuNjIgNS40MyA1LjQzbC44MS44M0wyMCA3LjIxIDEyLjgzIDBsLS4wOC4xYy0uNS43NS0xIDEuNTMtMS41IDIuMjV2LjA2YS4xOTIuMTkyIDAgMCAwIDAgLjA3LjE5LjE5IDAgMCAwIDAgLjA4LjIwOC4yMDggMCAwIDAgMCAuMDZaTTE2LjM4IDExYTQuMSA0LjEgMCAwIDAtNi42NiAyIDQuMjQgNC4yNCAwIDAgMC0uMTggMS4xMyA0LjExIDQuMTEgMCAwIDAgMS4yNyAzIDQuMDYgNC4wNiAwIDAgMCAyLjg1IDEuMTZBNC4xMiA0LjEyIDAgMCAwIDE2LjM4IDExWm0tMSA0LjA4aC0zLjMyYTEgMSAwIDAgMSAwLTJoMy4yN2ExIDEgMCAwIDEgMCAyaC4wNVoiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDIwdjIwSDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgBrushAdd = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#brush-add_svg__a)\", fill: \"#fff\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"M5.07 10.37 4.02 9.22l-.46-.46a1.42 1.42 0 0 1 0-1.89l.41-.41 3.84-3.73L10.34.22a.71.71 0 0 1 1.07 0c.34.31.67.63 1 .93a.66.66 0 0 1 .22.69c-.1.43-.19.87-.28 1.34l.69-.13c.25 0 .5-.1.75-.12a.82.82 0 0 1 .69.26l4.47 4.37.45.44a.87.87 0 0 1 0 1.3l-2 2-.08.08-1.34-.79 1.89-1.95-.33-.33-3.78-3.71a.3.3 0 0 0-.32-.09l-1.89.37A.74.74 0 0 1 10.7 4c.06-.33.12-.65.19-1s.1-.58.18-.85a.31.31 0 0 0-.17-.4L6.7 5.94l5 4.85c-.3.21-.61.4-.88.62a4.76 4.76 0 0 0-1.75 3 .88.88 0 0 1-.25.44l-2.94 3.37a3.42 3.42 0 0 1-5 .22 3 3 0 0 1-.83-2 3.39 3.39 0 0 1 1.33-2.88l3.32-2.89.37-.3Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M17.88 13.99a4.06 4.06 0 0 0-4.46-2.68 4 4 0 0 0 .61 7.9c.22 0 .44 0 .65-.06a4 4 0 0 0 3.2-5.16Zm-2.31 2.13h-.62v.58a.94.94 0 0 1-1.87 0v-.58h-.58a.94.94 0 0 1 0-1.87h.58v-.56a.94.94 0 1 1 1.87 0v.53h.62a.94.94 0 0 1 0 1.87v.03Z\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"brush-add_svg__a\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M0 0h19.7v19.44H0z\" }))));\nexport { SvgBrushAdd as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Ik01LjA3IDEwLjM3IDQuMDIgOS4yMmwtLjQ2LS40NmExLjQyIDEuNDIgMCAwIDEgMC0xLjg5bC40MS0uNDEgMy44NC0zLjczTDEwLjM0LjIyYS43MS43MSAwIDAgMSAxLjA3IDBjLjM0LjMxLjY3LjYzIDEgLjkzYS42Ni42NiAwIDAgMSAuMjIuNjljLS4xLjQzLS4xOS44Ny0uMjggMS4zNGwuNjktLjEzYy4yNSAwIC41LS4xLjc1LS4xMmEuODIuODIgMCAwIDEgLjY5LjI2bDQuNDcgNC4zNy40NS40NGEuODcuODcgMCAwIDEgMCAxLjNsLTIgMi0uMDguMDgtMS4zNC0uNzkgMS44OS0xLjk1LS4zMy0uMzMtMy43OC0zLjcxYS4zLjMgMCAwIDAtLjMyLS4wOWwtMS44OS4zN0EuNzQuNzQgMCAwIDEgMTAuNyA0Yy4wNi0uMzMuMTItLjY1LjE5LTFzLjEtLjU4LjE4LS44NWEuMzEuMzEgMCAwIDAtLjE3LS40TDYuNyA1Ljk0bDUgNC44NWMtLjMuMjEtLjYxLjQtLjg4LjYyYTQuNzYgNC43NiAwIDAgMC0xLjc1IDMgLjg4Ljg4IDAgMCAxLS4yNS40NGwtMi45NCAzLjM3YTMuNDIgMy40MiAwIDAgMS01IC4yMiAzIDMgMCAwIDEtLjgzLTIgMy4zOSAzLjM5IDAgMCAxIDEuMzMtMi44OGwzLjMyLTIuODkuMzctLjNaIi8+PHBhdGggZD0iTTE3Ljg4IDEzLjk5YTQuMDYgNC4wNiAwIDAgMC00LjQ2LTIuNjggNCA0IDAgMCAwIC42MSA3LjljLjIyIDAgLjQ0IDAgLjY1LS4wNmE0IDQgMCAwIDAgMy4yLTUuMTZabS0yLjMxIDIuMTNoLS42MnYuNThhLjk0Ljk0IDAgMCAxLTEuODcgMHYtLjU4aC0uNThhLjk0Ljk0IDAgMCAxIDAtMS44N2guNTh2LS41NmEuOTQuOTQgMCAxIDEgMS44NyAwdi41M2guNjJhLjk0Ljk0IDAgMCAxIDAgMS44N3YuMDNaIi8+PC9nPjxkZWZzPjxjbGlwUGF0aCBpZD0iYSI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTAgMGgxOS43djE5LjQ0SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgBrushErase = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, viewBox: \"0 0 20 20\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"g\", { clipPath: \"url(#brush-erase_svg__a)\", fill: \"#fff\" }, /* @__PURE__ */ React.createElement(\"path\", { d: \"m6.47 5.69 4.8 4.7c-.29.2-.59.38-.85.59a4.73 4.73 0 0 0-1.74 3.05.45.45 0 0 1-.1.21l-2.89 3.34a3.24 3.24 0 0 1-2.47 1.2 3 3 0 0 1-3.23-3.1 3.34 3.34 0 0 1 1.39-2.7c1.16-.95 2.29-1.93 3.44-2.89l.14-.1-.4-.38-1-1a1.38 1.38 0 0 1 0-2.07L7.7 2.48c.76-.7 1.52-1.5 2.29-2.24a.69.69 0 0 1 1.05 0l1 .91a.59.59 0 0 1 .18.63c-.09.43-.18.87-.27 1.33l1.27-.25a.88.88 0 0 1 .84.24l2.71 2.68 2 1.92a.9.9 0 0 1 .29.8.66.66 0 0 1-.16.35c-.7.7-1.41 1.39-2.12 2.08l-1.28-.77 1.84-1.79V8.3l-4-3.88a.29.29 0 0 0-.28-.07l-1.84.43a.86.86 0 0 1-.8-.26.571.571 0 0 1-.13-.56c.12-.59.24-1.17.37-1.76 0-.19 0-.33-.18-.42L6.47 5.69Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M9.69 14.71a3.88 3.88 0 1 1 3.88 3.8 3.83 3.83 0 0 1-3.88-3.8Zm3.87 1h1.57a1 1 0 0 0 1-1 1 1 0 0 0-1-1.06h-3.14a1 1 0 0 0 0 2l1.57.06Z\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"clipPath\", { id: \"brush-erase_svg__a\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"#fff\", d: \"M0 0h19.03v18.77H0z\" }))));\nexport { SvgBrushErase as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBjbGlwLXBhdGg9InVybCgjYSkiIGZpbGw9IiNmZmYiPjxwYXRoIGQ9Im02LjQ3IDUuNjkgNC44IDQuN2MtLjI5LjItLjU5LjM4LS44NS41OWE0LjczIDQuNzMgMCAwIDAtMS43NCAzLjA1LjQ1LjQ1IDAgMCAxLS4xLjIxbC0yLjg5IDMuMzRhMy4yNCAzLjI0IDAgMCAxLTIuNDcgMS4yIDMgMyAwIDAgMS0zLjIzLTMuMSAzLjM0IDMuMzQgMCAwIDEgMS4zOS0yLjdjMS4xNi0uOTUgMi4yOS0xLjkzIDMuNDQtMi44OWwuMTQtLjEtLjQtLjM4LTEtMWExLjM4IDEuMzggMCAwIDEgMC0yLjA3TDcuNyAyLjQ4Yy43Ni0uNyAxLjUyLTEuNSAyLjI5LTIuMjRhLjY5LjY5IDAgMCAxIDEuMDUgMGwxIC45MWEuNTkuNTkgMCAwIDEgLjE4LjYzYy0uMDkuNDMtLjE4Ljg3LS4yNyAxLjMzbDEuMjctLjI1YS44OC44OCAwIDAgMSAuODQuMjRsMi43MSAyLjY4IDIgMS45MmEuOS45IDAgMCAxIC4yOS44LjY2LjY2IDAgMCAxLS4xNi4zNWMtLjcuNy0xLjQxIDEuMzktMi4xMiAyLjA4bC0xLjI4LS43NyAxLjg0LTEuNzlWOC4zbC00LTMuODhhLjI5LjI5IDAgMCAwLS4yOC0uMDdsLTEuODQuNDNhLjg2Ljg2IDAgMCAxLS44LS4yNi41NzEuNTcxIDAgMCAxLS4xMy0uNTZjLjEyLS41OS4yNC0xLjE3LjM3LTEuNzYgMC0uMTkgMC0uMzMtLjE4LS40Mkw2LjQ3IDUuNjlaIi8+PHBhdGggZD0iTTkuNjkgMTQuNzFhMy44OCAzLjg4IDAgMSAxIDMuODggMy44IDMuODMgMy44MyAwIDAgMS0zLjg4LTMuOFptMy44NyAxaDEuNTdhMSAxIDAgMCAwIDEtMSAxIDEgMCAwIDAtMS0xLjA2aC0zLjE0YTEgMSAwIDAgMCAwIDJsMS41Ny4wNloiLz48L2c+PGRlZnM+PGNsaXBQYXRoIGlkPSJhIj48cGF0aCBmaWxsPSIjZmZmIiBkPSJNMCAwaDE5LjAzdjE4Ljc3SDB6Ii8+PC9jbGlwUGF0aD48L2RlZnM+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMagicBox = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".magic-box_svg__cls-1,.magic-box_svg__cls-3{fill:none}.magic-box_svg__cls-2{fill:#fcfefe}.magic-box_svg__cls-3{stroke:#fcfeff;stroke-linecap:round;stroke-miterlimit:10;stroke-width:2px}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-box_svg__cls-1\", d: \"M5.28 16.36V6.08a1 1 0 0 1 1-1h22.2a1 1 0 0 1 1 1v21.67a1 1 0 0 1-1 .95h-10v2.39H31.4V2.74H3.17v13.62ZM3.06 2.74h.11v13.62h-.11z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-box_svg__cls-2\", d: \"M7.28 7.12H27.4V26.7h-8.91v2h10a1 1 0 0 0 1-.95V6.08a1 1 0 0 0-1-1H6.24a1 1 0 0 0-1 1v10.28h2Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-box_svg__cls-2\", d: \"M4.82 28.43a.87.87 0 0 0 .11 1.19 1 1 0 0 0 1.19.09c3.29-2.56 4.66-2.56 8 0a.92.92 0 0 0 1.28-1.28c-2.56-3.29-2.56-4.66 0-8a.92.92 0 0 0-1.28-1.28c-3.29 2.56-4.66 2.56-8 0a1.37 1.37 0 0 0-.55-.15.83.83 0 0 0-.64.27.87.87 0 0 0-.09 1.19c2.63 3.31 2.63 4.59-.02 7.97Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-box_svg__cls-3\", d: \"m19.24 10.15 5.75-.07M24.99 15.91v-5.83M17.97 17.19l7.02-7.11\" }));\nexport { SvgMagicBox as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMSwuY2xzLTN7ZmlsbDpub25lfS5jbHMtMntmaWxsOiNmY2ZlZmV9LmNscy0ze3N0cm9rZTojZmNmZWZmO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjEwO3N0cm9rZS13aWR0aDoycHh9PC9zdHlsZT48L2RlZnM+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNNS4yOCAxNi4zNlY2LjA4YTEgMSAwIDAgMSAxLTFoMjIuMmExIDEgMCAwIDEgMSAxdjIxLjY3YTEgMSAwIDAgMS0xIC45NWgtMTB2Mi4zOUgzMS40VjIuNzRIMy4xN3YxMy42MlpNMy4wNiAyLjc0aC4xMXYxMy42MmgtLjExeiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTcuMjggNy4xMkgyNy40VjI2LjdoLTguOTF2MmgxMGExIDEgMCAwIDAgMS0uOTVWNi4wOGExIDEgMCAwIDAtMS0xSDYuMjRhMSAxIDAgMCAwLTEgMXYxMC4yOGgyWiIvPjxwYXRoIGNsYXNzPSJjbHMtMiIgZD0iTTQuODIgMjguNDNhLjg3Ljg3IDAgMCAwIC4xMSAxLjE5IDEgMSAwIDAgMCAxLjE5LjA5YzMuMjktMi41NiA0LjY2LTIuNTYgOCAwYS45Mi45MiAwIDAgMCAxLjI4LTEuMjhjLTIuNTYtMy4yOS0yLjU2LTQuNjYgMC04YS45Mi45MiAwIDAgMC0xLjI4LTEuMjhjLTMuMjkgMi41Ni00LjY2IDIuNTYtOCAwYTEuMzcgMS4zNyAwIDAgMC0uNTUtLjE1LjgzLjgzIDAgMCAwLS42NC4yNy44Ny44NyAwIDAgMC0uMDkgMS4xOWMyLjYzIDMuMzEgMi42MyA0LjU5LS4wMiA3Ljk3WiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0ibTE5LjI0IDEwLjE1IDUuNzUtLjA3TTI0Ljk5IDE1Ljkxdi01LjgzTTE3Ljk3IDE3LjE5bDcuMDItNy4xMSIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMagicClick = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ id: \"magic-click_svg__\\\\u56FE\\\\u5C42_1\", \"data-name\": \"\\\\u56FE\\\\u5C42 1\", xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".magic-click_svg__cls-1{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-click_svg__cls-1\", d: \"M30.88 21.21a1.6 1.6 0 0 1-1 1.35c-1.54.75-3.08 1.51-4.59 2.31a2.18 2.18 0 0 0-.87.86c-.79 1.49-1.53 3-2.27 4.53a1.49 1.49 0 0 1-2.89-.18Q17.2 23.8 15.1 17.52a1.49 1.49 0 0 1 2-2l12.55 4.19a1.56 1.56 0 0 1 1.23 1.5Zm-5.25.23-6.94-2.32 2.32 7c.37-.74.71-1.3.95-1.9a3 3 0 0 1 1.8-1.79c.6-.29 1.15-.62 1.87-.99ZM7.34 6.09a4.23 4.23 0 0 1 .89.54l3 3a1.45 1.45 0 1 1-2 2c-1-1-2.06-2-3.07-3.07A1.37 1.37 0 0 1 5.83 7a1.6 1.6 0 0 1 1.51-.91ZM22.35 12.35a6.61 6.61 0 0 1-1.12-.92 1.14 1.14 0 0 1 .09-1.51c1.14-1.19 2.3-2.37 3.5-3.49a1.31 1.31 0 0 1 1.84.1 1.34 1.34 0 0 1 .14 1.9c-1.11 1.19-2.28 2.32-3.45 3.45a3.92 3.92 0 0 1-1 .47ZM7 27.68a6 6 0 0 1-1.13-.9 1.12 1.12 0 0 1 .13-1.5c1.15-1.21 2.32-2.4 3.55-3.54a1.32 1.32 0 0 1 1.84.17 1.33 1.33 0 0 1 .1 1.85C10.35 25 9.16 26.11 8 27.25a3.75 3.75 0 0 1-1 .43ZM17.87 6v2A1.46 1.46 0 1 1 15 8V3.87a1.49 1.49 0 0 1 1.46-1.56 1.51 1.51 0 0 1 1.45 1.57c-.03.74-.04 1.44-.04 2.12ZM5.48 18.3h-2a1.5 1.5 0 0 1-1.55-1.5 1.48 1.48 0 0 1 1.59-1.42h4.07a1.49 1.49 0 0 1 1.59 1.49 1.5 1.5 0 0 1-1.6 1.42c-.69.02-1.4.01-2.1.01Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-click_svg__cls-1\", d: \"M25.63 21.44c-.72.37-1.27.7-1.87.94A3 3 0 0 0 22 24.17c-.24.6-.58 1.16-.95 1.9l-2.32-6.95Z\" }));\nexport { SvgMagicClick as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0zMC44OCAyMS4yMWExLjYgMS42IDAgMCAxLTEgMS4zNWMtMS41NC43NS0zLjA4IDEuNTEtNC41OSAyLjMxYTIuMTggMi4xOCAwIDAgMC0uODcuODZjLS43OSAxLjQ5LTEuNTMgMy0yLjI3IDQuNTNhMS40OSAxLjQ5IDAgMCAxLTIuODktLjE4UTE3LjIgMjMuOCAxNS4xIDE3LjUyYTEuNDkgMS40OSAwIDAgMSAyLTJsMTIuNTUgNC4xOWExLjU2IDEuNTYgMCAwIDEgMS4yMyAxLjVabS01LjI1LjIzLTYuOTQtMi4zMiAyLjMyIDdjLjM3LS43NC43MS0xLjMuOTUtMS45YTMgMyAwIDAgMSAxLjgtMS43OWMuNi0uMjkgMS4xNS0uNjIgMS44Ny0uOTlaTTcuMzQgNi4wOWE0LjIzIDQuMjMgMCAwIDEgLjg5LjU0bDMgM2ExLjQ1IDEuNDUgMCAxIDEtMiAyYy0xLTEtMi4wNi0yLTMuMDctMy4wN0ExLjM3IDEuMzcgMCAwIDEgNS44MyA3YTEuNiAxLjYgMCAwIDEgMS41MS0uOTFaTTIyLjM1IDEyLjM1YTYuNjEgNi42MSAwIDAgMS0xLjEyLS45MiAxLjE0IDEuMTQgMCAwIDEgLjA5LTEuNTFjMS4xNC0xLjE5IDIuMy0yLjM3IDMuNS0zLjQ5YTEuMzEgMS4zMSAwIDAgMSAxLjg0LjEgMS4zNCAxLjM0IDAgMCAxIC4xNCAxLjljLTEuMTEgMS4xOS0yLjI4IDIuMzItMy40NSAzLjQ1YTMuOTIgMy45MiAwIDAgMS0xIC40N1pNNyAyNy42OGE2IDYgMCAwIDEtMS4xMy0uOSAxLjEyIDEuMTIgMCAwIDEgLjEzLTEuNWMxLjE1LTEuMjEgMi4zMi0yLjQgMy41NS0zLjU0YTEuMzIgMS4zMiAwIDAgMSAxLjg0LjE3IDEuMzMgMS4zMyAwIDAgMSAuMSAxLjg1QzEwLjM1IDI1IDkuMTYgMjYuMTEgOCAyNy4yNWEzLjc1IDMuNzUgMCAwIDEtMSAuNDNaTTE3Ljg3IDZ2MkExLjQ2IDEuNDYgMCAxIDEgMTUgOFYzLjg3YTEuNDkgMS40OSAwIDAgMSAxLjQ2LTEuNTYgMS41MSAxLjUxIDAgMCAxIDEuNDUgMS41N2MtLjAzLjc0LS4wNCAxLjQ0LS4wNCAyLjEyWk01LjQ4IDE4LjNoLTJhMS41IDEuNSAwIDAgMS0xLjU1LTEuNSAxLjQ4IDEuNDggMCAwIDEgMS41OS0xLjQyaDQuMDdhMS40OSAxLjQ5IDAgMCAxIDEuNTkgMS40OSAxLjUgMS41IDAgMCAxLTEuNiAxLjQyYy0uNjkuMDItMS40LjAxLTIuMS4wMVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yNS42MyAyMS40NGMtLjcyLjM3LTEuMjcuNy0xLjg3Ljk0QTMgMyAwIDAgMCAyMiAyNC4xN2MtLjI0LjYtLjU4IDEuMTYtLjk1IDEuOWwtMi4zMi02Ljk1WiIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgEdgeStitch = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".edge-stitch_svg__cls-1{fill:#fcfefe}.edge-stitch_svg__cls-3{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"edge-stitch_svg__cls-1\", d: \"M22.25 18.52a.82.82 0 0 0 .57.15h4.3a1.44 1.44 0 1 0 0-2.87h-.86L31 11.06a1.42 1.42 0 0 0-2-2l-4.73 4.74v-.86a1.44 1.44 0 1 0-2.87 0v4.3a.87.87 0 0 0 .14.57 1.67 1.67 0 0 0 .71.71ZM9.91 31.58a1.31 1.31 0 0 0 1-.43l4.74-4.74v.86a1.44 1.44 0 1 0 2.87 0V23a.82.82 0 0 0-.15-.57 1.7 1.7 0 0 0-.71-.72.85.85 0 0 0-.58-.15h-4.3a1.44 1.44 0 1 0 0 2.87h.86l-4.73 4.71a1.38 1.38 0 0 0 0 2 1.31 1.31 0 0 0 1 .44Z\" }), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"none\",\n stroke: \"#fff\",\n strokeLinecap: \"round\",\n strokeMiterlimit: 10,\n strokeWidth: 3\n}, d: \"m14.4 14.51 11.14 11.14\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"edge-stitch_svg__cls-3\", d: \"M7.51 5.7a3.41 3.41 0 0 1 .74.45c.85.8 1.67 1.64 2.49 2.47a1.19 1.19 0 1 1-1.69 1.67Q7.77 9 6.53 7.77a1.13 1.13 0 0 1-.26-1.33 1.33 1.33 0 0 1 1.24-.74ZM19.85 10.84a5.11 5.11 0 0 1-.92-.75.93.93 0 0 1 .07-1.24c.94-1 1.89-1.95 2.88-2.87a1.07 1.07 0 0 1 1.51.09 1.09 1.09 0 0 1 .11 1.56c-.91 1-1.87 1.9-2.83 2.83a2.88 2.88 0 0 1-.82.38ZM7.26 23.44a5 5 0 0 1-.92-.73.92.92 0 0 1 .06-1.24Q7.81 20 9.31 18.56a1.08 1.08 0 0 1 1.51.14 1.1 1.1 0 0 1 .09 1.52C10 21.21 9 22.15 8 23.09a3.07 3.07 0 0 1-.74.35ZM16.16 5.64v1.67A1.24 1.24 0 0 1 15 8.59a1.22 1.22 0 0 1-1.19-1.28v-3.4A1.22 1.22 0 0 1 15 2.63a1.23 1.23 0 0 1 1.19 1.29c-.01.57-.03 1.15-.03 1.72ZM6 15.73H4.38a1.2 1.2 0 1 1 0-2.4h3.34a1.2 1.2 0 1 1 0 2.4c-.58.02-1.15 0-1.72 0Z\" }));\nexport { SvgEdgeStitch as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmY2ZlZmV9LmNscy0ze2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yMi4yNSAxOC41MmEuODIuODIgMCAwIDAgLjU3LjE1aDQuM2ExLjQ0IDEuNDQgMCAxIDAgMC0yLjg3aC0uODZMMzEgMTEuMDZhMS40MiAxLjQyIDAgMCAwLTItMmwtNC43MyA0Ljc0di0uODZhMS40NCAxLjQ0IDAgMSAwLTIuODcgMHY0LjNhLjg3Ljg3IDAgMCAwIC4xNC41NyAxLjY3IDEuNjcgMCAwIDAgLjcxLjcxWk05LjkxIDMxLjU4YTEuMzEgMS4zMSAwIDAgMCAxLS40M2w0Ljc0LTQuNzR2Ljg2YTEuNDQgMS40NCAwIDEgMCAyLjg3IDBWMjNhLjgyLjgyIDAgMCAwLS4xNS0uNTcgMS43IDEuNyAwIDAgMC0uNzEtLjcyLjg1Ljg1IDAgMCAwLS41OC0uMTVoLTQuM2ExLjQ0IDEuNDQgMCAxIDAgMCAyLjg3aC44NmwtNC43MyA0LjcxYTEuMzggMS4zOCAwIDAgMCAwIDIgMS4zMSAxLjMxIDAgMCAwIDEgLjQ0WiIvPjxwYXRoIHN0eWxlPSJmaWxsOm5vbmU7c3Ryb2tlOiNmZmY7c3Ryb2tlLWxpbmVjYXA6cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6MTA7c3Ryb2tlLXdpZHRoOjNweCIgZD0ibTE0LjQgMTQuNTEgMTEuMTQgMTEuMTQiLz48cGF0aCBjbGFzcz0iY2xzLTMiIGQ9Ik03LjUxIDUuN2EzLjQxIDMuNDEgMCAwIDEgLjc0LjQ1Yy44NS44IDEuNjcgMS42NCAyLjQ5IDIuNDdhMS4xOSAxLjE5IDAgMSAxLTEuNjkgMS42N1E3Ljc3IDkgNi41MyA3Ljc3YTEuMTMgMS4xMyAwIDAgMS0uMjYtMS4zMyAxLjMzIDEuMzMgMCAwIDEgMS4yNC0uNzRaTTE5Ljg1IDEwLjg0YTUuMTEgNS4xMSAwIDAgMS0uOTItLjc1LjkzLjkzIDAgMCAxIC4wNy0xLjI0Yy45NC0xIDEuODktMS45NSAyLjg4LTIuODdhMS4wNyAxLjA3IDAgMCAxIDEuNTEuMDkgMS4wOSAxLjA5IDAgMCAxIC4xMSAxLjU2Yy0uOTEgMS0xLjg3IDEuOS0yLjgzIDIuODNhMi44OCAyLjg4IDAgMCAxLS44Mi4zOFpNNy4yNiAyMy40NGE1IDUgMCAwIDEtLjkyLS43My45Mi45MiAwIDAgMSAuMDYtMS4yNFE3LjgxIDIwIDkuMzEgMTguNTZhMS4wOCAxLjA4IDAgMCAxIDEuNTEuMTQgMS4xIDEuMSAwIDAgMSAuMDkgMS41MkMxMCAyMS4yMSA5IDIyLjE1IDggMjMuMDlhMy4wNyAzLjA3IDAgMCAxLS43NC4zNVpNMTYuMTYgNS42NHYxLjY3QTEuMjQgMS4yNCAwIDAgMSAxNSA4LjU5YTEuMjIgMS4yMiAwIDAgMS0xLjE5LTEuMjh2LTMuNEExLjIyIDEuMjIgMCAwIDEgMTUgMi42M2ExLjIzIDEuMjMgMCAwIDEgMS4xOSAxLjI5Yy0uMDEuNTctLjAzIDEuMTUtLjAzIDEuNzJaTTYgMTUuNzNINC4zOGExLjIgMS4yIDAgMSAxIDAtMi40aDMuMzRhMS4yIDEuMiAwIDEgMSAwIDIuNGMtLjU4LjAyLTEuMTUgMC0xLjcyIDBaIi8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgSegmentEverything = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".segment-everything_svg__cls-1{fill:#fff}.segment-everything_svg__cls-3{fill:none}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-1\", d: \"m6.26 15.54 5.88 3.88a1 1 0 0 1 0 1.56L6.1 25.29a.9.9 0 0 1-1.41-.79l.19-8.2a.9.9 0 0 1 1.38-.76ZM7.58 29.17 23.43 17.7a1.71 1.71 0 0 1 2.25.22l3.32 3.5v7.75Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M31 4.35a.88.88 0 0 0-.11-1.19 1 1 0 0 0-1.19-.09c-3.29 2.56-4.66 2.56-8 0a.87.87 0 0 0-1.19.09.87.87 0 0 0-.09 1.19c2.56 3.29 2.56 4.66 0 8a.92.92 0 0 0 1.28 1.28c3.29-2.56 4.66-2.56 8 0a1.28 1.28 0 0 0 .55.18.91.91 0 0 0 .64-.27.87.87 0 0 0 .11-1.19c-2.65-3.35-2.65-4.62 0-8Z\", style: {\n fill: \"#fcfefe\"\n} }), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-3\", d: \"M4.07 4.13h26.29v26.29H4.07z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-3\", d: \"M6.39 28.56h22.49V17H16.49v-3.38a2.56 2.56 0 0 1-2 .93 2.63 2.63 0 0 1-2.59-2.72 2.66 2.66 0 0 1 2.6-2.67 2.57 2.57 0 0 1 2 .95v-4H6.39Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-1\", d: \"M14.51 9.16a2.66 2.66 0 0 0-2.6 2.67 2.63 2.63 0 0 0 2.59 2.72 2.56 2.56 0 0 0 2-.93v-3.51a2.57 2.57 0 0 0-1.99-.95Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-1\", d: \"M28.88 28.56H6.39V6.1h10.1V4.25H5.42a.88.88 0 0 0-.89.88v25.28h26.21V17h-1.86Z\" }), /* @__PURE__ */ React.createElement(\"path\", { className: \"segment-everything_svg__cls-1\", d: \"M17.14 11.87a2.74 2.74 0 0 0-.65-1.76v3.51a2.7 2.7 0 0 0 .65-1.75Z\" }));\nexport { SvgSegmentEverything as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNC4wMiAzNC4wMiI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiNmZmZ9LmNscy0ze2ZpbGw6bm9uZX08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Im02LjI2IDE1LjU0IDUuODggMy44OGExIDEgMCAwIDEgMCAxLjU2TDYuMSAyNS4yOWEuOS45IDAgMCAxLTEuNDEtLjc5bC4xOS04LjJhLjkuOSAwIDAgMSAxLjM4LS43NlpNNy41OCAyOS4xNyAyMy40MyAxNy43YTEuNzEgMS43MSAwIDAgMSAyLjI1LjIybDMuMzIgMy41djcuNzVaIi8+PHBhdGggZD0iTTMxIDQuMzVhLjg4Ljg4IDAgMCAwLS4xMS0xLjE5IDEgMSAwIDAgMC0xLjE5LS4wOWMtMy4yOSAyLjU2LTQuNjYgMi41Ni04IDBhLjg3Ljg3IDAgMCAwLTEuMTkuMDkuODcuODcgMCAwIDAtLjA5IDEuMTljMi41NiAzLjI5IDIuNTYgNC42NiAwIDhhLjkyLjkyIDAgMCAwIDEuMjggMS4yOGMzLjI5LTIuNTYgNC42Ni0yLjU2IDggMGExLjI4IDEuMjggMCAwIDAgLjU1LjE4LjkxLjkxIDAgMCAwIC42NC0uMjcuODcuODcgMCAwIDAgLjExLTEuMTljLTIuNjUtMy4zNS0yLjY1LTQuNjIgMC04WiIgc3R5bGU9ImZpbGw6I2ZjZmVmZSIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTQuMDcgNC4xM2gyNi4yOXYyNi4yOUg0LjA3eiIvPjxwYXRoIGNsYXNzPSJjbHMtMyIgZD0iTTYuMzkgMjguNTZoMjIuNDlWMTdIMTYuNDl2LTMuMzhhMi41NiAyLjU2IDAgMCAxLTIgLjkzIDIuNjMgMi42MyAwIDAgMS0yLjU5LTIuNzIgMi42NiAyLjY2IDAgMCAxIDIuNi0yLjY3IDIuNTcgMi41NyAwIDAgMSAyIC45NXYtNEg2LjM5WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE0LjUxIDkuMTZhMi42NiAyLjY2IDAgMCAwLTIuNiAyLjY3IDIuNjMgMi42MyAwIDAgMCAyLjU5IDIuNzIgMi41NiAyLjU2IDAgMCAwIDItLjkzdi0zLjUxYTIuNTcgMi41NyAwIDAgMC0xLjk5LS45NVoiLz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0yOC44OCAyOC41Nkg2LjM5VjYuMWgxMC4xVjQuMjVINS40MmEuODguODggMCAwIDAtLjg5Ljg4djI1LjI4aDI2LjIxVjE3aC0xLjg2WiIvPjxwYXRoIGNsYXNzPSJjbHMtMSIgZD0iTTE3LjE0IDExLjg3YTIuNzQgMi43NCAwIDAgMC0uNjUtMS43NnYzLjUxYTIuNyAyLjcgMCAwIDAgLjY1LTEuNzVaIi8+PC9zdmc+\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMagicBrush = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ id: \"magic-brush_svg__\\\\u56FE\\\\u5C42_1\", \"data-name\": \"\\\\u56FE\\\\u5C42 1\", xmlns: \"http://www.w3.org/2000/svg\", viewBox: \"0 0 34.02 34.02\" }, props), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"style\", null, \".magic-brush_svg__cls-1{fill:#fff}\")), /* @__PURE__ */ React.createElement(\"path\", { className: \"magic-brush_svg__cls-1\", d: \"M15.22 14.73 21 9l10.1 10.1-5.8 5.76ZM14.33 15.43l10.34 10.36c-.87.86-1.78 1.78-2.71 2.68-.09.08-.37 0-.53-.07-1.31-.58-2.63-1.16-3.92-1.78a.74.74 0 0 0-1 .17q-1.75 1.82-3.57 3.56a2.14 2.14 0 0 1-2.33.51 2.08 2.08 0 0 1-1.42-1.69 2.2 2.2 0 0 1 .67-2.05C11 26 12.14 24.8 13.32 23.66a.74.74 0 0 0 .19-1c-.61-1.27-1.16-2.57-1.77-3.85a.67.67 0 0 1 .15-.91c.84-.81 1.63-1.64 2.44-2.47Zm-1.82 13.18a1 1 0 1 0-2 .05 1 1 0 0 0 2-.05Z\" }), /* @__PURE__ */ React.createElement(\"path\", { d: \"M3.2 12.66a.89.89 0 0 0 .11 1.23 1 1 0 0 0 1.23.1c3.4-2.65 4.82-2.65 8.27 0a.95.95 0 0 0 1.32-1.33c-2.64-3.4-2.64-4.81 0-8.26A.9.9 0 0 0 14 3.17a.89.89 0 0 0-1.23-.1C9.41 5.72 8 5.72 4.54 3.07A1.27 1.27 0 0 0 4 2.89a.84.84 0 0 0-.66.28.9.9 0 0 0-.12 1.23c2.72 3.45 2.72 4.77-.02 8.26Z\", style: {\n fill: \"#fcfefe\"\n} }));\nexport { SvgMagicBrush as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyBpZD0i5Zu+5bGCXzEiIGRhdGEtbmFtZT0i5Zu+5bGCIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDM0LjAyIDM0LjAyIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZn08L3N0eWxlPjwvZGVmcz48cGF0aCBjbGFzcz0iY2xzLTEiIGQ9Ik0xNS4yMiAxNC43MyAyMSA5bDEwLjEgMTAuMS01LjggNS43NlpNMTQuMzMgMTUuNDNsMTAuMzQgMTAuMzZjLS44Ny44Ni0xLjc4IDEuNzgtMi43MSAyLjY4LS4wOS4wOC0uMzcgMC0uNTMtLjA3LTEuMzEtLjU4LTIuNjMtMS4xNi0zLjkyLTEuNzhhLjc0Ljc0IDAgMCAwLTEgLjE3cS0xLjc1IDEuODItMy41NyAzLjU2YTIuMTQgMi4xNCAwIDAgMS0yLjMzLjUxIDIuMDggMi4wOCAwIDAgMS0xLjQyLTEuNjkgMi4yIDIuMiAwIDAgMSAuNjctMi4wNUMxMSAyNiAxMi4xNCAyNC44IDEzLjMyIDIzLjY2YS43NC43NCAwIDAgMCAuMTktMWMtLjYxLTEuMjctMS4xNi0yLjU3LTEuNzctMy44NWEuNjcuNjcgMCAwIDEgLjE1LS45MWMuODQtLjgxIDEuNjMtMS42NCAyLjQ0LTIuNDdabS0xLjgyIDEzLjE4YTEgMSAwIDEgMC0yIC4wNSAxIDEgMCAwIDAgMi0uMDVaIi8+PHBhdGggZD0iTTMuMiAxMi42NmEuODkuODkgMCAwIDAgLjExIDEuMjMgMSAxIDAgMCAwIDEuMjMuMWMzLjQtMi42NSA0LjgyLTIuNjUgOC4yNyAwYS45NS45NSAwIDAgMCAxLjMyLTEuMzNjLTIuNjQtMy40LTIuNjQtNC44MSAwLTguMjZBLjkuOSAwIDAgMCAxNCAzLjE3YS44OS44OSAwIDAgMC0xLjIzLS4xQzkuNDEgNS43MiA4IDUuNzIgNC41NCAzLjA3QTEuMjcgMS4yNyAwIDAgMCA0IDIuODlhLjg0Ljg0IDAgMCAwLS42Ni4yOC45LjkgMCAwIDAtLjEyIDEuMjNjMi43MiAzLjQ1IDIuNzIgNC43Ny0uMDIgOC4yNloiIHN0eWxlPSJmaWxsOiNmY2ZlZmUiLz48L3N2Zz4=\";\n","import { Button, Popover, Slider } from 'antd';\nimport Icon from '@ant-design/icons';\nimport classNames from 'classnames';\nimport { ESubToolItem } from '../../constants';\nimport { FloatWrapper } from '../FloatWrapper';\nimport { TShortcutItem } from '../../constants/shortcuts';\nimport { ReactComponent as PenAddIcon } from '../../assets/pen-add.svg';\nimport { ReactComponent as PenEraseIcon } from '../../assets/pen-erase.svg';\nimport { ReactComponent as BrushAddIcon } from '../../assets/brush-add.svg';\nimport { ReactComponent as BrushEraseIcon } from '../../assets/brush-erase.svg';\nimport { ReactComponent as MagicBoxIcon } from '../../assets/magic-box.svg';\nimport { ReactComponent as ClickIcon } from '../../assets/magic-click.svg';\nimport { ReactComponent as EdgeStitchIcon } from '../../assets/edge-stitch.svg';\nimport { ReactComponent as SegmentEverythingIcon } from '../../assets/segment-everything.svg';\nimport { ReactComponent as StrokeIcon } from '../../assets/magic-brush.svg';\nimport { useLocale } from 'dds-utils/locale';\nimport { memo, useMemo } from 'react';\nimport { useKeyPress } from 'ahooks';\nimport './index.less';\n\ntype TToolItem = {\n key: T;\n name: string;\n shortcut?: TShortcutItem;\n icon: JSX.Element;\n description?: string;\n available: boolean;\n};\ninterface IProps {\n selectedSubTool: ESubToolItem;\n isAIAnnotationActive: boolean;\n isSegEverythingAvailable: boolean;\n isManualAvailable: boolean;\n brushSize: number;\n onChangeSubTool: (type: ESubToolItem) => void;\n onActiveAIAnnotation: (active: boolean) => void;\n onChangeBrushSize: (size: number) => void;\n}\n\nexport const SubToolBar: React.FC = memo(\n ({\n selectedSubTool,\n isAIAnnotationActive,\n isSegEverythingAvailable,\n isManualAvailable,\n brushSize,\n onChangeSubTool,\n onChangeBrushSize,\n }) => {\n const { localeText } = useLocale();\n\n const basicMaskTools: TToolItem[] = [\n {\n key: ESubToolItem.PenAdd,\n name: localeText('DDSAnnotator.subtoolbar.mask.penAdd'),\n icon: ,\n available: isManualAvailable,\n },\n {\n key: ESubToolItem.PenErase,\n name: localeText('DDSAnnotator.subtoolbar.mask.penErase'),\n icon: ,\n available: isManualAvailable,\n },\n {\n key: ESubToolItem.BrushAdd,\n name: localeText('DDSAnnotator.subtoolbar.mask.brushAdd'),\n icon: ,\n available: isManualAvailable,\n },\n {\n key: ESubToolItem.BrushErase,\n name: localeText('DDSAnnotator.subtoolbar.mask.brushErase'),\n icon: ,\n available: isManualAvailable,\n },\n ];\n\n const smartMaskTools: TToolItem[] = useMemo(() => {\n return [\n {\n key: ESubToolItem.AutoSegmentByBox,\n name: localeText('DDSAnnotator.subtoolbar.mask.box'),\n icon: ,\n available: true,\n },\n {\n key: ESubToolItem.AutoSegmentByStroke,\n name: localeText('DDSAnnotator.subtoolbar.mask.stroke'),\n icon: ,\n available: true,\n },\n {\n key: ESubToolItem.AutoSegmentByClick,\n name: localeText('DDSAnnotator.subtoolbar.mask.click'),\n icon: ,\n available: true,\n },\n {\n key: ESubToolItem.AutoEdgeStitching,\n name: localeText('DDSAnnotator.subtoolbar.mask.edgeStitch'),\n icon: ,\n available: true,\n },\n {\n key: ESubToolItem.AutoSegmentEverything,\n name: localeText('DDSAnnotator.subtoolbar.mask.sam'),\n icon: ,\n available: isSegEverythingAvailable,\n description: isSegEverythingAvailable\n ? localeText('DDSAnnotator.subtoolbar.mask.sam.desc')\n : localeText('DDSAnnotator.subtoolbar.mask.sam.notAllow'),\n },\n ];\n }, [isSegEverythingAvailable]);\n\n const toolsWithBrushSize = [\n ESubToolItem.BrushAdd,\n ESubToolItem.BrushErase,\n ESubToolItem.AutoSegmentByStroke,\n ESubToolItem.AutoEdgeStitching,\n ];\n\n const allSubTools = useMemo(() => {\n return [...basicMaskTools, ...smartMaskTools];\n }, [basicMaskTools, smartMaskTools]);\n\n const shortcuts = useMemo(() => {\n const keys: string[] = [];\n for (let i = 1; i <= allSubTools.length; i++) {\n keys.push(i.toString());\n }\n return keys;\n }, [allSubTools]);\n\n useKeyPress(\n shortcuts,\n (event) => {\n const tool = allSubTools.find((_, index) => {\n return (index + 1).toString() === event.key;\n });\n if (tool && tool.available) {\n if (\n smartMaskTools.find((item) => tool.key === item.key) &&\n !isAIAnnotationActive\n )\n return;\n onChangeSubTool(tool.key);\n }\n },\n {\n exactMatch: true,\n },\n );\n\n const mouseEventHandler = (event: React.MouseEvent) => {\n // enable mouseup propagate only for brush\n if (\n toolsWithBrushSize.includes(selectedSubTool) &&\n event.type === 'mouseup'\n ) {\n return;\n } else {\n event.stopPropagation();\n }\n };\n\n const popoverContent = (item: TToolItem) => {\n const shortcut =\n allSubTools.findIndex((tool) => tool.key === item.key) + 1;\n return (\n
\n
\n \n {item.name}\n \n {shortcut && (\n \n {shortcut}\n \n )}\n
\n {item.description && (\n <>\n
\n
{item.description}
\n \n )}\n
\n );\n };\n\n const onBtnClick = (type: ESubToolItem) => {\n const tool = allSubTools.find((item) => item.key === type);\n if (tool && tool.available) {\n onChangeSubTool(type);\n }\n };\n\n const ToolItemBtn = (item: TToolItem) => {\n return (\n \n onBtnClick(item.key)}\n />\n \n );\n };\n\n return (\n \n
\n {basicMaskTools.map((item) => ToolItemBtn(item))}\n {isAIAnnotationActive && (\n <>\n
\n {smartMaskTools.map((item) => ToolItemBtn(item))}\n \n )}\n {toolsWithBrushSize.includes(selectedSubTool) && (\n <>\n
\n
\n onChangeBrushSize(value)}\n />\n
\n \n )}\n
\n
\n );\n },\n);\n","import { useCallback, useEffect } from 'react';\nimport { DrawData, EditState } from '../type';\nimport { Direction } from '../utils/compute';\nimport { EBasicToolItem } from '../constants';\n\ninterface IProps {\n topCanvas: HTMLCanvasElement | null;\n editState: EditState;\n drawData: DrawData;\n}\n\nconst useMouseCursor = ({ topCanvas, editState, drawData }: IProps) => {\n const updateMouseCursor = useCallback(\n (value: string, position?: Direction) => {\n if (!topCanvas) return;\n\n let cursor = value;\n if (position) {\n switch (position) {\n case Direction.TOP:\n case Direction.BOTTOM:\n cursor = 'ns-resize';\n break;\n case Direction.TOP_LEFT:\n case Direction.BOTTOM_RIGHT:\n cursor = 'nwse-resize';\n break;\n case Direction.BOTTOM_LEFT:\n case Direction.TOP_RIGHT:\n cursor = 'nesw-resize';\n break;\n default:\n cursor = 'ew-resize';\n }\n }\n if (cursor !== topCanvas.style.cursor) {\n topCanvas.style.cursor = cursor;\n }\n },\n [topCanvas],\n );\n\n useEffect(() => {\n if (editState.allowMove) {\n updateMouseCursor('grabbing');\n } else {\n if (drawData.selectedTool === EBasicToolItem.Drag) {\n updateMouseCursor('grab');\n } else {\n updateMouseCursor('crosshair');\n }\n }\n }, [editState.allowMove]);\n\n return {\n updateMouseCursor,\n };\n};\n\nexport default useMouseCursor;\n","import { Updater } from 'use-immer';\nimport { useKeyPress } from 'ahooks';\nimport { EObjectType } from '../constants';\nimport { EDITOR_SHORTCUTS, EShortcuts } from '../constants/shortcuts';\nimport { DrawData, EditState, EditorMode, IAnnotationObject } from '../type';\n\ninterface IProps {\n visible: boolean;\n mode: EditorMode;\n drawData: DrawData;\n isMousePress: boolean;\n setDrawData: Updater;\n setEditState: Updater;\n onSaveAnnotations: (drawData: DrawData) => Promise;\n onAccept: () => void;\n onReject: () => void;\n onChangeObjectHidden: (index: number, hidden: boolean) => void;\n onChangeCategoryHidden: (category: string, hidden: boolean) => void;\n removeObject: (index: number) => void;\n addObject: (object: IAnnotationObject, notActive?: boolean) => void;\n}\n\nconst useShortcuts = ({\n visible,\n mode,\n drawData,\n isMousePress,\n setDrawData,\n setEditState,\n onSaveAnnotations,\n onAccept,\n onReject,\n onChangeObjectHidden,\n onChangeCategoryHidden,\n removeObject,\n addObject,\n}: IProps) => {\n /** Save Results */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.Save].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n if (mode === EditorMode.Edit) {\n onSaveAnnotations(drawData);\n }\n },\n {\n exactMatch: true,\n },\n );\n\n /** Accept Results */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.Accept].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n onAccept();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Reject Results */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.Reject].shortcut,\n (event: KeyboardEvent) => {\n event.preventDefault();\n onReject();\n },\n {\n exactMatch: true,\n },\n );\n\n /** Pan Image */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.PanImage].shortcut,\n (event: KeyboardEvent) => {\n if (!visible) return;\n event.preventDefault();\n if (event.type === 'keydown' && !isMousePress) {\n setEditState((s) => {\n s.allowMove = true;\n });\n } else if (event.type === 'keyup') {\n setEditState((s) => {\n s.allowMove = false;\n });\n }\n },\n {\n events: ['keydown', 'keyup'],\n },\n );\n\n /** Cancel Current Selected Object or Creaing Object */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.CancelCurrObject].shortcut,\n (event: KeyboardEvent) => {\n if (!visible) return;\n if (event.type === 'keyup') {\n if (drawData.creatingObject) {\n setDrawData((s) => {\n if (\n s.creatingObject?.type === EObjectType.Mask &&\n s.creatingObject?.maskStep?.points?.length &&\n s.creatingObject?.tempMaskSteps?.length\n ) {\n // Creating single Mask\n s.creatingObject.maskStep = undefined;\n } else {\n s.creatingObject = undefined;\n s.activeObjectIndex = -1;\n }\n if (s.AIAnnotation) {\n s.prompt = {};\n }\n });\n } else {\n setDrawData((s) => {\n s.activeObjectIndex = -1;\n });\n }\n }\n },\n { events: ['keydown', 'keyup'] },\n );\n\n /** Hide Current Selected Object */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.HideCurrObject].shortcut,\n (event) => {\n if (drawData.activeObjectIndex < 0) return;\n event.preventDefault();\n onChangeObjectHidden(\n drawData.activeObjectIndex,\n !drawData.objectList[drawData.activeObjectIndex].hidden,\n );\n },\n {\n exactMatch: true,\n },\n );\n\n /** Hide the Category of Current Object */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.HideCurrCategory].shortcut,\n (event) => {\n if (drawData.activeObjectIndex < 0) return;\n event.preventDefault();\n const { label, hidden } = drawData.objectList[drawData.activeObjectIndex];\n onChangeCategoryHidden(label, !hidden);\n },\n {\n exactMatch: true,\n },\n );\n\n /** Delete Current Selected Object */\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.DeleteCurrObject].shortcut,\n (event) => {\n if (!visible || mode !== EditorMode.Edit) return;\n if (['Delete', 'Backspace'].includes(event.key)) {\n if (drawData.activeObjectIndex > -1) {\n removeObject(drawData.activeObjectIndex);\n }\n }\n },\n { events: ['keyup'] },\n );\n\n /** Change isCtrlPressed state */\n useKeyPress(\n ['ctrl'],\n (event: KeyboardEvent) => {\n if (drawData.activeObjectIndex > -1) return;\n setEditState((s) => {\n const targetPressed = event.type === 'keydown';\n if (s.isCtrlPressed === targetPressed) return s;\n s.isCtrlPressed = Boolean(event.type === 'keydown');\n s.focusObjectIndex = -1;\n s.foucsObjectAllIndexs = [];\n });\n },\n { events: ['keydown', 'keyup'] },\n );\n\n /** Hide currently creating / editing mask */\n useKeyPress(\n ['v'],\n (event: KeyboardEvent) => {\n setEditState((s) => {\n const targetPressed = event.type === 'keydown';\n if (s.hideCreatingObject === targetPressed) return s;\n s.hideCreatingObject = Boolean(event.type === 'keydown');\n });\n },\n { events: ['keydown', 'keyup'] },\n );\n\n /** Close manually creating polygon */\n useKeyPress(\n ['enter'],\n () => {\n if (\n !drawData.AIAnnotation &&\n drawData.creatingObject &&\n drawData.creatingObject.type === EObjectType.Polygon\n ) {\n const { polygon, type, hidden, label, status, color } =\n drawData.creatingObject!;\n if (polygon && polygon.group && polygon.group[0].length > 2) {\n const newObject: IAnnotationObject = {\n polygon,\n type,\n hidden,\n label,\n status,\n color,\n };\n addObject(newObject);\n }\n }\n },\n {\n exactMatch: true,\n events: ['keyup'],\n },\n );\n\n return {};\n};\n\nexport default useShortcuts;\n","import { useCallback } from 'react';\nimport { Updater } from 'use-immer';\nimport { Modal, message } from 'antd';\nimport { EBasicToolItem, EObjectType, ESubToolItem } from '../constants';\nimport {\n DrawData,\n EditState,\n EditorMode,\n IAnnotationObject,\n EObjectStatus,\n IImageDisplayOptions,\n IAnnotsDisplayOptions,\n} from '../type';\nimport { objectToRle, rleToCanvas } from '../tools/useMask';\nimport { useLocale } from 'dds-utils/locale';\nimport { cloneDeep } from 'lodash';\n\ninterface IProps {\n mode: EditorMode;\n drawData: DrawData;\n setDrawData: Updater;\n setDrawDataWithHistory: Updater;\n setAiLabels: (labels: string[]) => void;\n editState: EditState;\n setEditState: Updater;\n getAnnotColor: (category: string) => string;\n clientSize: ISize;\n naturalSize: ISize;\n addObject: (\n object: IAnnotationObject,\n notActive?: boolean | undefined,\n ) => void;\n removeObject: (index: number) => void;\n updateObject: (object: IAnnotationObject, index: number) => void;\n updateAllObject: (objectList: IAnnotationObject[]) => void;\n}\n\nconst useToolActions = ({\n mode,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n setAiLabels,\n editState,\n setEditState,\n clientSize,\n naturalSize,\n addObject,\n removeObject,\n updateObject,\n updateAllObject,\n getAnnotColor,\n}: IProps) => {\n const { localeText } = useLocale();\n\n const onDeleteCurrObject = useCallback(() => {\n if (\n drawData.isBatchEditing &&\n drawData.objectList[drawData.activeObjectIndex]?.status !==\n EObjectStatus.Commited\n ) {\n setDrawData((s) => {\n s.objectList[s.activeObjectIndex].status = EObjectStatus.Unchecked;\n s.creatingObject = undefined;\n s.prompt = {};\n s.activeObjectIndex = -1;\n });\n return;\n }\n\n if (drawData.activeObjectIndex > -1) {\n removeObject(drawData.activeObjectIndex);\n }\n setDrawData((s) => {\n s.creatingObject = undefined;\n s.prompt = {};\n s.activeObjectIndex = -1;\n });\n }, [\n drawData.isBatchEditing,\n drawData.objectList,\n drawData.activeObjectIndex,\n ]);\n\n // TODO\n const getColorForMaskObj = useCallback(\n (label: string) => {\n if (editState.annotsDisplayOptions.colorByCategory) {\n return getAnnotColor(label);\n }\n if (drawData.activeObjectIndex > -1) {\n return drawData.objectList[drawData.activeObjectIndex].color;\n }\n return drawData.creatingObject?.color || getAnnotColor(label);\n },\n [\n editState.annotsDisplayOptions.colorByCategory,\n getAnnotColor,\n drawData.activeObjectIndex,\n drawData.objectList,\n drawData.creatingObject,\n ],\n );\n\n const onFinishCurrCreate = useCallback(\n (label: string) => {\n if (drawData.creatingObject?.type === EObjectType.Mask) {\n const maskRle = objectToRle(\n clientSize,\n naturalSize,\n drawData.creatingObject?.tempMaskSteps || [],\n drawData.creatingObject?.maskCanvasElement,\n );\n if (maskRle && maskRle.length > 0) {\n const color = getColorForMaskObj(label);\n const newObject = {\n type: EObjectType.Mask,\n label,\n hidden: false,\n maskRle,\n maskCanvasElement: rleToCanvas(maskRle, naturalSize, color),\n conf: 1,\n status: EObjectStatus.Commited,\n color,\n };\n if (drawData.activeObjectIndex > -1) {\n // edit mask object\n updateObject(newObject, drawData.activeObjectIndex);\n } else {\n // add mask object\n addObject(newObject, true);\n }\n } else if (maskRle) {\n // Empty mask\n message.warning(localeText('DDSAnnotator.anno.mask.emptyWarning'));\n } else {\n // Other error\n message.error(\n localeText('DDSAnnotator.anno.mask.translateToRleError'),\n );\n }\n } else {\n const newObject = {\n ...drawData.objectList[drawData.activeObjectIndex],\n };\n newObject.label = label;\n if (editState.annotsDisplayOptions.colorByCategory) {\n newObject.color = getAnnotColor(label);\n }\n // batch editing set conf to 1\n if (drawData.isBatchEditing) {\n newObject.conf = 1;\n }\n updateObject(newObject, drawData.activeObjectIndex);\n }\n setDrawData((s) => {\n s.creatingObject = undefined;\n s.prompt = {};\n s.activeObjectIndex = -1;\n });\n setEditState((s) => {\n s.latestLabel = label;\n });\n },\n [drawData.creatingObject],\n );\n\n const onCloseAnnotationEditor = useCallback(() => {\n setDrawData((s) => {\n s.creatingObject = undefined;\n s.activeObjectIndex = -1;\n });\n }, []);\n\n const onAcceptValidObjects = useCallback(() => {\n setDrawDataWithHistory((s) => {\n const validObjs = cloneDeep(drawData.objectList)\n .filter((obj) => {\n return obj.status !== EObjectStatus.Unchecked;\n })\n .map((obj) => {\n obj.status = EObjectStatus.Commited;\n if (obj.type !== EObjectType.Mask) {\n obj.color = getAnnotColor(obj.label);\n }\n return obj;\n });\n s.objectList = validObjs;\n s.isBatchEditing = false;\n s.activeObjectIndex = -1;\n s.creatingObject = undefined;\n });\n setAiLabels([]);\n }, [drawData.objectList]);\n\n const onAbortBatchObjects = useCallback(() => {\n setDrawDataWithHistory((s) => {\n const validObjs = cloneDeep(drawData.objectList).filter((obj) => {\n return obj.status === EObjectStatus.Commited;\n });\n s.objectList = validObjs;\n s.isBatchEditing = false;\n s.activeObjectIndex = -1;\n s.creatingObject = undefined;\n });\n }, [drawData.objectList]);\n\n const selectTool = useCallback(\n (tool: EBasicToolItem) => {\n if (\n mode !== EditorMode.Edit ||\n tool === drawData.selectedTool ||\n drawData.isBatchEditing\n )\n return;\n setDrawData((s) => {\n s.selectedTool = tool;\n if (tool === EBasicToolItem.Mask) {\n s.selectedSubTool = s.AIAnnotation\n ? ESubToolItem.AutoSegmentByBox\n : ESubToolItem.PenAdd;\n }\n s.activeObjectIndex = -1;\n s.creatingObject = undefined;\n });\n },\n [mode, drawData.selectedTool, drawData.isBatchEditing],\n );\n\n const selectSubTool = useCallback(\n (tool: ESubToolItem) => {\n if (\n mode !== EditorMode.Edit ||\n tool === drawData.selectedSubTool ||\n drawData.isBatchEditing\n )\n return;\n setDrawData((s) => {\n s.selectedSubTool = tool;\n });\n\n // save unfinished mask object\n if (tool === ESubToolItem.AutoEdgeStitching && drawData.creatingObject) {\n onFinishCurrCreate(\n drawData.creatingObject.label || editState.latestLabel || '',\n );\n }\n },\n [mode, drawData.selectedSubTool, drawData.isBatchEditing],\n );\n\n const forceChangeTool = useCallback(\n (tool: EBasicToolItem, subtool: ESubToolItem) => {\n setDrawData((s) => {\n s.selectedTool = tool;\n s.selectedSubTool = subtool;\n });\n },\n [],\n );\n\n const onExitAIAnnotation = useCallback(() => {\n setDrawData((s) => {\n s.objectList = s.objectList.filter(\n (obj) => obj.status === EObjectStatus.Commited,\n );\n s.AIAnnotation = false;\n s.isBatchEditing = false;\n s.creatingObject = undefined;\n s.prompt = {};\n });\n }, []);\n\n const setBrushSize = useCallback(\n (size: number) => {\n if (mode !== EditorMode.Edit) return;\n setDrawData((s) => {\n s.brushSize = size;\n });\n },\n [mode],\n );\n\n const displayAIModeUnavailableModal = () => {\n Modal.info({\n centered: true,\n closable: true,\n title: localeText('DDSAnnotator.smart.infoModal.title'),\n content: localeText('DDSAnnotator.smart.infoModal.content'),\n okText: localeText('DDSAnnotator.smart.infoModal.action'),\n onOk: () => {\n window.open('https://deepdataspace.com', '_blank');\n },\n });\n };\n\n const activeAIAnnotation = useCallback(\n (active: boolean) => {\n if (!process.env.MODEL_API_PATH && active) {\n displayAIModeUnavailableModal();\n return;\n }\n if (mode !== EditorMode.Edit || drawData.isBatchEditing) return;\n setDrawData((s) => {\n s.AIAnnotation = active;\n });\n },\n [mode, drawData.isBatchEditing],\n );\n\n const onSaveAIPolygon = useCallback(() => {\n const label = drawData.creatingObject?.label || '';\n const color = getAnnotColor(label);\n addObject({\n type: EObjectType.Polygon,\n polygon: drawData.creatingObject?.polygon,\n label,\n color,\n hidden: false,\n status: EObjectStatus.Commited,\n });\n setDrawData((s) => {\n s.activeObjectIndex = s.objectList.length - 1;\n s.prompt = {};\n });\n }, [drawData.creatingObject]);\n\n const onCancelAIPolygon = useCallback(() => {\n setDrawData((s) => {\n s.creatingObject = undefined;\n s.activeObjectIndex = -1;\n s.prompt = {};\n });\n }, []);\n\n const onChangeSkeletonConf = useCallback(\n (range: [number, number]) => {\n setDrawDataWithHistory((s) => {\n const updateObjects = cloneDeep(drawData.objectList).map((obj) => {\n if (obj.status === EObjectStatus.Commited) {\n return obj;\n }\n if (obj.conf === undefined) {\n obj.status = EObjectStatus.Unchecked;\n return obj;\n }\n obj.status =\n obj.conf < range[0] || obj.conf > range[1]\n ? EObjectStatus.Unchecked\n : EObjectStatus.Checked;\n return obj;\n });\n s.objectList = updateObjects;\n });\n },\n [drawData.objectList],\n );\n\n const onChangeLimitConf = useCallback(\n (value: number) => {\n setDrawDataWithHistory((s) => {\n const updateObjects = cloneDeep(drawData.objectList).map((obj) => {\n if (obj.status === EObjectStatus.Commited) {\n return obj;\n }\n obj.status =\n obj.conf && obj.conf >= value\n ? EObjectStatus.Checked\n : EObjectStatus.Unchecked;\n return obj;\n });\n s.objectList = updateObjects;\n const count = updateObjects.filter(\n (item) => item.status === EObjectStatus.Checked,\n ).length;\n message.success(\n localeText(`DDSAnnotator.smart.tip.annotationApplied`, {\n count,\n }),\n );\n });\n },\n [drawData.objectList],\n );\n\n const onChangeImageDisplayOpts = useCallback(\n (value: IImageDisplayOptions) => {\n setEditState((s) => {\n s.imageDisplayOptions = value;\n });\n },\n [],\n );\n\n const onChangeAnnotsDisplayOpts = useCallback(\n (value: IAnnotsDisplayOptions) => {\n setEditState((s) => {\n s.annotsDisplayOptions = value;\n });\n },\n [],\n );\n\n const onChangeColorMode = useCallback(() => {\n if (!drawData.objectList || !drawData.objectList.length) return;\n const newObjectList = cloneDeep(drawData.objectList).map((item) => {\n const color = getAnnotColor(item.label);\n if (\n item.type === EObjectType.Mask &&\n item.maskRle &&\n item.maskRle.length > 0\n ) {\n return {\n ...item,\n color,\n maskCanvasElement: rleToCanvas(item.maskRle, naturalSize, color),\n };\n }\n return { ...item, color };\n });\n updateAllObject(newObjectList);\n }, [drawData.objectList, getAnnotColor]);\n\n return {\n onDeleteCurrObject,\n onFinishCurrCreate,\n onCloseAnnotationEditor,\n onAcceptValidObjects,\n onAbortBatchObjects,\n selectTool,\n selectSubTool,\n forceChangeTool,\n onExitAIAnnotation,\n setBrushSize,\n activeAIAnnotation,\n displayAIModeUnavailableModal,\n onSaveAIPolygon,\n onCancelAIPolygon,\n onChangeSkeletonConf,\n onChangeLimitConf,\n onChangeImageDisplayOpts,\n onChangeAnnotsDisplayOpts,\n onChangeColorMode,\n };\n};\n\nexport default useToolActions;\n","import { useCallback, useEffect, useRef } from 'react';\nimport useLatest from '../useLatest';\nimport { isNumber } from '../utils';\nvar setRafInterval = function (callback, delay) {\n if (delay === void 0) {\n delay = 0;\n }\n if (typeof requestAnimationFrame === typeof undefined) {\n return {\n id: setInterval(callback, delay)\n };\n }\n var start = new Date().getTime();\n var handle = {\n id: 0\n };\n var loop = function () {\n var current = new Date().getTime();\n if (current - start >= delay) {\n callback();\n start = new Date().getTime();\n }\n handle.id = requestAnimationFrame(loop);\n };\n handle.id = requestAnimationFrame(loop);\n return handle;\n};\nfunction cancelAnimationFrameIsNotDefined(t) {\n return typeof cancelAnimationFrame === typeof undefined;\n}\nvar clearRafInterval = function (handle) {\n if (cancelAnimationFrameIsNotDefined(handle.id)) {\n return clearInterval(handle.id);\n }\n cancelAnimationFrame(handle.id);\n};\nfunction useRafInterval(fn, delay, options) {\n var immediate = options === null || options === void 0 ? void 0 : options.immediate;\n var fnRef = useLatest(fn);\n var timerRef = useRef();\n useEffect(function () {\n if (!isNumber(delay) || delay < 0) return;\n if (immediate) {\n fnRef.current();\n }\n timerRef.current = setRafInterval(function () {\n fnRef.current();\n }, delay);\n return function () {\n if (timerRef.current) {\n clearRafInterval(timerRef.current);\n }\n };\n }, [delay]);\n var clear = useCallback(function () {\n if (timerRef.current) {\n clearRafInterval(timerRef.current);\n }\n }, []);\n return clear;\n}\nexport default useRafInterval;","import { useCallback, useRef, useState } from 'react';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport {\n Category,\n DrawData,\n EditState,\n EditorMode,\n EObjectStatus,\n IAnnotationObject,\n} from '../type';\nimport {\n Direction,\n isInCanvas,\n judgeFocusOnElement,\n judgeFocusOnObject,\n judgeFocusOnPointAllObject,\n} from '../utils/compute';\nimport {\n EBasicToolItem,\n EBasicToolTypeMap,\n EElementType,\n EObjectType,\n} from '../constants';\nimport { Updater } from 'use-immer';\nimport { ToolInstanceHookReturn } from '../tools/base';\nimport { useEventListener, useRafInterval } from 'ahooks';\nimport { fixedFloatNum } from 'dds-utils/digit';\n\ninterface IProps {\n visible: boolean;\n mode: EditorMode;\n drawData: DrawData;\n setDrawData: Updater;\n editState: EditState;\n setEditState: Updater;\n clientSize: ISize;\n contentMouse: CursorState;\n categories: Category[];\n updateRender: (updateDrawData?: DrawData) => void;\n updateMouseCursor: (value: string, position?: Direction) => void;\n objectHooksMap: Record;\n imagePos: React.MutableRefObject;\n containerMouse: CursorState;\n getAnnotColor: (category: string) => string;\n limitActiveObject?: boolean;\n}\n\nconst BOUNDING_OFFSET = 40;\nconst MOUSE_OFFSET = 10;\n\nconst useMouseEvents = ({\n visible,\n mode,\n drawData,\n setDrawData,\n editState,\n setEditState,\n clientSize,\n contentMouse,\n categories,\n updateRender,\n updateMouseCursor,\n objectHooksMap,\n imagePos,\n containerMouse,\n limitActiveObject,\n getAnnotColor,\n}: IProps) => {\n const moveVisibleAreaRef = useRef<{\n direction?: Direction;\n topMin: number;\n topMax: number;\n leftMin: number;\n leftMax: number;\n }>({\n topMin: 0,\n topMax: 0,\n leftMin: 0,\n leftMax: 0,\n });\n\n const [moveVisibleAreaInterval, setMoveVisibleAreaInterval] = useState<\n number | undefined\n >(undefined);\n\n useRafInterval(() => {\n let changed = false;\n if (\n moveVisibleAreaRef.current.direction?.includes('TOP') &&\n imagePos.current.y < moveVisibleAreaRef.current.topMax\n ) {\n imagePos.current.y += 8;\n changed = true;\n } else if (\n moveVisibleAreaRef.current.direction?.includes('BOTTOM') &&\n imagePos.current.y > moveVisibleAreaRef.current.topMin\n ) {\n imagePos.current.y -= 8;\n changed = true;\n }\n if (\n moveVisibleAreaRef.current.direction?.includes('LEFT') &&\n imagePos.current.x < moveVisibleAreaRef.current.leftMax\n ) {\n imagePos.current.x += 8;\n changed = true;\n } else if (\n moveVisibleAreaRef.current.direction?.includes('RIGHT') &&\n imagePos.current.x > moveVisibleAreaRef.current.leftMin\n ) {\n imagePos.current.x -= 8;\n changed = true;\n }\n if (!changed) {\n setMoveVisibleAreaInterval(undefined);\n }\n updateRender();\n }, moveVisibleAreaInterval);\n\n const checkContainerVisibleArea = () => {\n let direction = '';\n const topMax = BOUNDING_OFFSET;\n const topMin =\n containerMouse.elementH - contentMouse.elementH - BOUNDING_OFFSET;\n const leftMax = BOUNDING_OFFSET;\n const leftMin =\n containerMouse.elementW - contentMouse.elementW - BOUNDING_OFFSET;\n if (\n containerMouse.elementY <= MOUSE_OFFSET &&\n imagePos.current.y < topMax\n ) {\n direction = 'TOP';\n } else if (\n containerMouse.elementY >= containerMouse.elementH - MOUSE_OFFSET &&\n imagePos.current.y > topMin\n ) {\n direction = 'BOTTOM';\n }\n if (\n containerMouse.elementX <= MOUSE_OFFSET &&\n imagePos.current.x < leftMax\n ) {\n direction += direction ? '_LEFT' : 'LEFT';\n } else if (\n containerMouse.elementX >= containerMouse.elementW - MOUSE_OFFSET &&\n imagePos.current.x > leftMin\n ) {\n direction += direction ? '_RIGHT' : 'RIGHT';\n }\n\n if (direction) {\n moveVisibleAreaRef.current = {\n direction: direction as Direction,\n topMax,\n topMin,\n leftMax,\n leftMin,\n };\n setMoveVisibleAreaInterval(16);\n } else {\n setMoveVisibleAreaInterval(undefined);\n }\n updateRender();\n };\n\n const getFocusFilter = () => {\n let focusFilter;\n if (drawData.isBatchEditing) {\n if (\n drawData.selectedTool === EBasicToolItem.Rectangle &&\n editState.isCtrlPressed\n ) {\n focusFilter = (obj: IAnnotationObject) =>\n obj.status === EObjectStatus.Unchecked;\n } else {\n focusFilter = (obj: IAnnotationObject) =>\n obj.status !== EObjectStatus.Unchecked;\n }\n }\n return focusFilter;\n };\n\n const updateFocusInfoWhenMouseMove = () => {\n if (!isInCanvas(containerMouse)) return;\n\n const focusObjectIndex = judgeFocusOnObject(\n clientSize,\n contentMouse,\n drawData.activeObjectIndex,\n drawData.objectList,\n getFocusFilter(),\n );\n /** If focus in active object */\n if (\n focusObjectIndex > -1 &&\n focusObjectIndex === drawData.activeObjectIndex\n ) {\n setEditState((s) => {\n s.focusObjectIndex = focusObjectIndex;\n });\n /** Update focus element index & mouse style */\n const activeObject = drawData.objectList[drawData.activeObjectIndex];\n const { focusEleIndex, focusEleType, focusPolygonInfo } =\n judgeFocusOnElement(contentMouse, activeObject);\n setEditState((s) => {\n s.focusEleIndex = focusEleIndex;\n s.focusEleType = focusEleType;\n s.focusPolygonInfo = focusPolygonInfo;\n });\n } else if (\n drawData.selectedTool === EBasicToolItem.Drag ||\n drawData.isBatchEditing\n ) {\n setEditState((s) => {\n s.focusObjectIndex = focusObjectIndex;\n s.focusEleIndex = -1;\n s.focusEleType = EElementType.None;\n s.focusPolygonInfo = {\n index: -1,\n pointIndex: -1,\n lineIndex: -1,\n };\n });\n } else {\n setEditState((s) => {\n s.focusObjectIndex = -1;\n s.focusEleIndex = -1;\n s.focusEleType = EElementType.None;\n s.focusPolygonInfo = {\n index: -1,\n pointIndex: -1,\n lineIndex: -1,\n };\n });\n }\n };\n\n const selectFocusObject = useCallback(\n (index: number, event?: MouseEvent) => {\n if (index < 0) return;\n const isMouseRightClick = event?.button === 2;\n if (isMouseRightClick) {\n // check all focus object on point\n const focusIndexs = judgeFocusOnPointAllObject(\n clientSize,\n contentMouse,\n drawData.objectList,\n getFocusFilter(),\n );\n if (focusIndexs.length > 0) {\n setEditState((s) => {\n s.foucsObjectAllIndexs = focusIndexs;\n });\n } else {\n setEditState((s) => {\n s.foucsObjectAllIndexs = [];\n });\n }\n return;\n }\n\n setDrawData((s) => {\n if (\n s.selectedTool === EBasicToolItem.Rectangle &&\n s.isBatchEditing &&\n editState.isCtrlPressed\n ) {\n s.objectList[index].status = EObjectStatus.Checked;\n setEditState((s) => {\n s.focusObjectIndex = -1;\n });\n } else {\n s.activeObjectIndex = index;\n s.creatingObject = {\n ...drawData.objectList[index],\n currIndex: undefined,\n startPoint: undefined,\n tempMaskSteps: [],\n maskStep: undefined,\n };\n\n if (\n s.selectedTool !== EBasicToolItem.Drag &&\n s.objectList[index] &&\n EBasicToolTypeMap[s.selectedTool] !== s.objectList[index].type\n ) {\n s.selectedTool = EBasicToolItem.Drag;\n }\n }\n });\n },\n [clientSize.width, clientSize.height, contentMouse, drawData.objectList],\n );\n\n const mouseRightObjectsDropDownRender = () => {\n if (!editState.foucsObjectAllIndexs.length) {\n return <>;\n }\n const stopPropagation: React.MouseEventHandler = (\n event,\n ) => {\n event.stopPropagation();\n };\n const onFocusItem = (index: number) => {\n setEditState((s) => {\n s.focusObjectIndex = index;\n });\n };\n const onSelectItem = (index: number) => {\n selectFocusObject(index);\n setEditState((s) => {\n s.foucsObjectAllIndexs = [];\n });\n };\n return (\n event.preventDefault()}\n >\n {editState.foucsObjectAllIndexs.map((index) => (\n onFocusItem(index)}\n onMouseDown={() => onSelectItem(index)}\n >\n \n {drawData.objectList[index]?.label}\n {drawData.isBatchEditing &&\n ` (${fixedFloatNum(drawData.objectList[index]?.conf || 0)})`}\n \n ))}\n \n );\n };\n\n const onMouseDown = (event: MouseEvent) => {\n if (\n !visible ||\n editState.allowMove ||\n editState.isRequiring ||\n !isInCanvas(contentMouse)\n )\n return;\n\n setEditState((s) => {\n s.foucsObjectAllIndexs = [];\n });\n\n // 1. Edit object\n if (drawData.creatingObject && drawData.activeObjectIndex > -1) {\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[drawData.creatingObject.type].startEditingWhenMouseDown({\n event,\n object: drawData.creatingObject,\n })\n ) {\n return;\n }\n }\n\n // 2. Create object\n if (\n drawData.selectedTool !== EBasicToolItem.Drag &&\n !drawData.isBatchEditing\n ) {\n const objectType = EBasicToolTypeMap[drawData.selectedTool];\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[objectType].startCreatingWhenMouseDown({\n event,\n object: drawData.creatingObject,\n point: {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n },\n basic: {\n hidden: false,\n label: editState.latestLabel || categories[0].name,\n status: EObjectStatus.Commited,\n color: getAnnotColor(editState.latestLabel || categories[0].name),\n },\n })\n ) {\n return;\n }\n } else {\n if (editState.focusObjectIndex > -1 && !limitActiveObject) {\n // 3. Active object\n selectFocusObject(editState.focusObjectIndex, event);\n } else {\n // 4. Drag object\n setEditState((s) => {\n s.allowMove = true;\n });\n }\n }\n };\n\n const onMouseMove = (event: MouseEvent) => {\n if (!visible || editState.isRequiring || editState.allowMove) return;\n\n // update default cursor\n if (editState.focusObjectIndex > -1) {\n updateMouseCursor('pointer');\n } else if (drawData.selectedTool !== EBasicToolItem.Drag) {\n updateMouseCursor('crosshair');\n } else {\n updateMouseCursor('grab');\n }\n\n if (drawData.creatingObject && drawData.activeObjectIndex > -1) {\n // 1. Edit object\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[drawData.creatingObject.type].updateEditingWhenMouseMove(\n {\n event,\n object: drawData.creatingObject,\n },\n )\n ) {\n checkContainerVisibleArea();\n return;\n }\n } else if (\n drawData.selectedTool !== EBasicToolItem.Drag &&\n drawData.activeObjectIndex < 0\n ) {\n /** 2. Create Object */\n const objectType = EBasicToolTypeMap[drawData.selectedTool];\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[objectType].updateCreatingWhenMouseMove({\n event,\n object: drawData.creatingObject,\n })\n ) {\n checkContainerVisibleArea();\n return;\n }\n }\n\n /** 3. Updata focus info */\n updateFocusInfoWhenMouseMove();\n updateRender();\n };\n\n const onMouseUp = (event: MouseEvent) => {\n setMoveVisibleAreaInterval(undefined);\n\n if (!visible || editState.isRequiring) return;\n\n if (editState.allowMove) {\n setEditState((s) => {\n s.allowMove = false;\n });\n return;\n }\n\n if (drawData.creatingObject && drawData.activeObjectIndex > -1) {\n // 1. Edit object\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[drawData.creatingObject.type].finishEditingWhenMouseUp({\n event,\n object: drawData.creatingObject,\n })\n ) {\n return;\n }\n } else if (\n drawData.selectedTool !== EBasicToolItem.Drag &&\n drawData.activeObjectIndex < 0\n ) {\n /** 2. Create Object */\n const objectType = EBasicToolTypeMap[drawData.selectedTool];\n if (\n mode === EditorMode.Edit &&\n objectHooksMap[objectType].finishCreatingWhenMouseUp({\n event,\n object: drawData.creatingObject,\n })\n ) {\n return;\n }\n }\n };\n\n const forceChangeFocusObject = useCallback((index: number) => {\n setEditState((s) => {\n s.focusObjectIndex = index;\n });\n }, []);\n\n useEventListener('mousedown', (event) => {\n onMouseDown(event);\n });\n\n useEventListener('mousemove', (event) => {\n onMouseMove(event);\n });\n\n useEventListener('mouseup', (event) => {\n onMouseUp(event);\n });\n\n return {\n selectFocusObject,\n forceChangeFocusObject,\n mouseRightObjectsDropDownRender,\n };\n};\n\nexport default useMouseEvents;\n","import React from 'react';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport {\n DrawData,\n EditState,\n IAnnotationObject,\n ICreatingObject,\n} from '../type';\nimport { translateAnnotCoord } from '../utils/compute';\nimport { EObjectType } from '../constants';\nimport {\n addFilter,\n clearCanvas,\n drawImage,\n removeFilter,\n resizeSmoothCanvas,\n setCanvasGlobalAlpha,\n} from '../utils/draw';\nimport {\n ANNO_FILL_ALPHA,\n ANNO_FILL_COLOR,\n ANNO_MASK_ALPHA,\n ANNO_STROKE_ALPHA,\n ANNO_STROKE_COLOR,\n} from '../constants/render';\nimport { RenderStyles, ToolInstanceHookReturn } from '../tools/base';\nimport { hexToRgba } from '../utils/color';\n\ninterface IProps {\n visible: boolean;\n drawData: DrawData;\n editState: EditState;\n clientSize: ISize;\n imagePos: React.MutableRefObject;\n containerMouse: CursorState;\n canvasRef: React.RefObject;\n activeCanvasRef: React.RefObject;\n imgRef: React.RefObject;\n objectHooksMap: Record;\n getCustomObjectStyles?: (\n object: IAnnotationObject,\n color: string,\n ) => Partial;\n}\n\nconst useCanvasRender = ({\n visible,\n drawData,\n editState,\n clientSize,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n imgRef,\n objectHooksMap,\n getCustomObjectStyles,\n}: IProps) => {\n // =================================================================================================================\n // Render\n // =================================================================================================================\n\n const getObjectStyles = (\n object: IAnnotationObject,\n color: string,\n status?: 'focus' | 'creating' | 'editing',\n ) => {\n let [strokeColor, fillColor, maskAlpha] = [\n hexToRgba(color, ANNO_STROKE_ALPHA.DEFAULT),\n hexToRgba(color, ANNO_FILL_ALPHA.DEFAULT),\n ANNO_MASK_ALPHA.DEFAULT,\n ];\n if (status === 'focus') {\n maskAlpha = ANNO_MASK_ALPHA.FOCUS;\n strokeColor = hexToRgba(color, ANNO_STROKE_ALPHA.FOCUS);\n fillColor = hexToRgba(color, ANNO_FILL_ALPHA.FOCUS);\n } else if (status === 'editing') {\n maskAlpha = ANNO_MASK_ALPHA.CREATING;\n strokeColor = hexToRgba(color, ANNO_STROKE_ALPHA.CREATING);\n fillColor = hexToRgba(color, ANNO_FILL_ALPHA.CREATING);\n } else if (status === 'creating') {\n maskAlpha = ANNO_MASK_ALPHA.CREATING;\n strokeColor = ANNO_STROKE_COLOR.CREATING;\n fillColor = ANNO_FILL_COLOR.CREATING;\n }\n\n const customStyles = getCustomObjectStyles?.(object, color) || {};\n return {\n strokeColor,\n fillColor,\n maskAlpha,\n strokeDash: [0],\n thickness: 2,\n pointAplha: 1,\n ...customStyles,\n };\n };\n\n const updateCreatingRender = (creatingObject: ICreatingObject) => {\n const styles = getObjectStyles(\n creatingObject,\n creatingObject.color,\n 'creating',\n );\n\n objectHooksMap[creatingObject.type].renderCreatingObject({\n object: creatingObject,\n color: creatingObject.color,\n styles,\n });\n return;\n };\n\n const updateEditingRender = (creatingObject: ICreatingObject) => {\n // draw currently annotated objects\n if (creatingObject.hidden) return;\n\n const canvasCoordObject = translateAnnotCoord(creatingObject, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n const isFocus = editState.focusObjectIndex === drawData.activeObjectIndex;\n const styles = getObjectStyles(\n creatingObject,\n creatingObject.color,\n isFocus ? 'focus' : 'editing',\n );\n\n objectHooksMap[creatingObject.type].renderEditingObject({\n object: canvasCoordObject,\n color: creatingObject.color,\n styles,\n isFocus,\n });\n return;\n };\n\n const updateCreatingPromptRender = (theDrawData: DrawData) => {\n const { prompt } = theDrawData;\n\n if (\n prompt.maskPrompts ||\n prompt.creatingMask ||\n prompt.activeRectWhileLoading\n ) {\n objectHooksMap[EObjectType.Mask].renderPrompt({\n prompt,\n });\n } else if (prompt.segmentationClicks) {\n objectHooksMap[EObjectType.Polygon].renderPrompt({\n prompt,\n });\n }\n return;\n };\n\n const updateRenderActiveCanvas = (updateDrawData?: DrawData) => {\n if (!visible || !activeCanvasRef.current) return;\n\n resizeSmoothCanvas(activeCanvasRef.current, {\n width: containerMouse.elementW,\n height: containerMouse.elementH,\n });\n activeCanvasRef.current.getContext('2d')!.imageSmoothingEnabled = false;\n clearCanvas(activeCanvasRef.current);\n\n const theDrawData = updateDrawData || drawData;\n if (theDrawData.creatingObject) {\n if (theDrawData.activeObjectIndex > -1) {\n updateEditingRender(theDrawData.creatingObject);\n } else {\n updateCreatingRender(theDrawData.creatingObject);\n }\n }\n\n updateCreatingPromptRender(theDrawData);\n };\n\n const renderObject = (object: IAnnotationObject, isFocus: boolean) => {\n const canvasCoordObject = translateAnnotCoord(object, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n const { type } = canvasCoordObject;\n // Color styles\n const styles = getObjectStyles(\n object,\n object.color,\n isFocus ? 'focus' : undefined,\n );\n\n // Change globalAlpha when creating / editing object\n setCanvasGlobalAlpha(canvasRef.current!, drawData.creatingObject ? 0.6 : 1);\n\n objectHooksMap[type].renderObject({\n object: canvasCoordObject,\n color: object.color,\n styles,\n isFocus,\n });\n };\n\n const renderObjectList = (\n list: IAnnotationObject[],\n activeObjectIndex: number,\n ) => {\n // render normal objects\n list.forEach((obj, index) => {\n if (\n obj.hidden ||\n index === activeObjectIndex ||\n index === editState.focusObjectIndex\n ) {\n return;\n }\n renderObject(obj, false);\n });\n };\n\n const updateRender = (updateDrawData?: DrawData) => {\n if (!visible || !canvasRef.current || !imgRef.current) return;\n\n resizeSmoothCanvas(canvasRef.current, {\n width: containerMouse.elementW,\n height: containerMouse.elementH,\n });\n canvasRef.current.getContext('2d')!.imageSmoothingEnabled = false;\n clearCanvas(canvasRef.current);\n\n // add filter before drawImage and apply for image only\n addFilter(\n canvasRef.current,\n editState.imageDisplayOptions.brightness,\n editState.imageDisplayOptions.contrast,\n editState.imageDisplayOptions.saturate,\n );\n\n drawImage(canvasRef.current, imgRef.current, {\n x: imagePos.current.x,\n y: imagePos.current.y,\n width: clientSize.width,\n height: clientSize.height,\n });\n\n // remove filter just in case it may be applied on all canvas\n removeFilter(canvasRef.current);\n\n const theDrawData = updateDrawData || drawData;\n\n // draw esisting objects\n renderObjectList(theDrawData.objectList, theDrawData.activeObjectIndex);\n\n // draw creating object\n updateRenderActiveCanvas(theDrawData);\n\n // render focus object\n if (\n editState.focusObjectIndex > -1 &&\n editState.focusObjectIndex !== drawData.activeObjectIndex &&\n theDrawData.objectList[editState.focusObjectIndex] &&\n !theDrawData.objectList[editState.focusObjectIndex].hidden\n ) {\n renderObject(theDrawData.objectList[editState.focusObjectIndex], true);\n }\n };\n\n return {\n updateRender,\n };\n};\n\nexport default useCanvasRender;\n","import { useCallback, useEffect } from 'react';\nimport { cloneDeep } from 'lodash';\nimport {\n BaseObject,\n DEFAULT_DRAW_DATA,\n DEFAULT_EDIT_STATE,\n DrawData,\n DrawImageData,\n DrawObject,\n EditState,\n} from '../type';\nimport { scaleDrawData } from '../utils/compute';\nimport { Updater } from 'use-immer';\n\ninterface IProps {\n imagePos: React.MutableRefObject;\n clientSize: ISize;\n preClientSize?: ISize;\n clearPreClientSize: () => void;\n naturalSize: ISize;\n annotations: DrawObject[];\n setAnnotations: Updater;\n labelColors: Record;\n drawData: DrawData;\n setDrawData: Updater;\n editState: EditState;\n setEditState: Updater;\n initObjectList: (\n annotations: DrawObject[],\n labelColors: Record,\n ) => void;\n updateRender: (updateDrawData?: DrawData) => void;\n clearHistory: () => void;\n objectsFilter?: (imageData: any) => BaseObject[];\n}\n\nconst useDataEffect = ({\n imagePos,\n clientSize,\n preClientSize,\n clearPreClientSize,\n naturalSize,\n annotations,\n setAnnotations,\n labelColors,\n drawData,\n setDrawData,\n editState,\n setEditState,\n initObjectList,\n updateRender,\n clearHistory,\n objectsFilter,\n}: IProps) => {\n /**\n * Rebuilds the draw data for the annotation tool.\n * @param {boolean} isUpdateDrawData - Optional parameter that specifies whether to update draw data.\n * @return {void}\n */\n const rebuildDrawData = (isForce?: boolean) => {\n if (\n !clientSize.width ||\n !clientSize.height ||\n !naturalSize.width ||\n !naturalSize.height\n )\n return;\n\n if (!drawData.initialized || isForce) {\n // Initialization\n setDrawData((s) => {\n s.initialized = true;\n });\n initObjectList(annotations, labelColors);\n } else if (drawData.initialized && preClientSize) {\n // scale change\n const updateDrawData = scaleDrawData(drawData, preClientSize, clientSize);\n setDrawData(updateDrawData);\n updateRender(updateDrawData);\n clearPreClientSize();\n }\n };\n\n const resetDrawData = useCallback(() => {\n setDrawData({\n ...cloneDeep(DEFAULT_DRAW_DATA),\n brushSize: drawData.brushSize,\n selectedTool: drawData.selectedTool,\n selectedSubTool: drawData.selectedSubTool,\n AIAnnotation: drawData.AIAnnotation,\n });\n }, [\n DEFAULT_DRAW_DATA,\n drawData.brushSize,\n drawData.selectedSubTool,\n drawData.selectedTool,\n drawData.AIAnnotation,\n ]);\n\n const resetEditData = useCallback(() => {\n setEditState({\n ...cloneDeep(DEFAULT_EDIT_STATE),\n imageDisplayOptions: editState.imageDisplayOptions,\n annotsDisplayOptions: editState.annotsDisplayOptions,\n });\n }, [\n DEFAULT_EDIT_STATE,\n editState.imageDisplayOptions,\n editState.annotsDisplayOptions,\n ]);\n\n const applyImageAnnots = useCallback(\n (imageData: DrawImageData) => {\n const annotations = imageData?.objects ? [...imageData?.objects] : [];\n const currAnnotations =\n imageData && objectsFilter ? objectsFilter(imageData) : annotations;\n setAnnotations(currAnnotations);\n },\n [objectsFilter],\n );\n\n const resetDataWithImageData = useCallback(\n (\n imageData: DrawImageData,\n visible: boolean,\n clearHistoryQueue: boolean = true,\n ) => {\n resetDrawData();\n resetEditData();\n if (clearHistoryQueue) clearHistory();\n if (visible) {\n applyImageAnnots(imageData);\n }\n },\n [resetDrawData, resetEditData, clearHistory, applyImageAnnots],\n );\n\n /** Update canvas while data changing */\n useEffect(() => {\n updateRender();\n }, [drawData, editState, imagePos.current.x, imagePos.current.y]);\n\n /** Recalculate drawData while changing size */\n useEffect(() => {\n rebuildDrawData();\n }, [clientSize.height, clientSize.width]);\n\n /** Annotations / naturalSize changed */\n useEffect(() => {\n rebuildDrawData(true);\n }, [annotations, naturalSize.width, naturalSize.height]);\n\n return {\n rebuildDrawData,\n resetDataWithImageData,\n };\n};\n\nexport default useDataEffect;\n","import { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { getCategoryColors, hsvToRgb, rgbArrayToHex } from '../utils/color';\nimport { Category, EditState } from '../type';\n\ninterface IProps {\n categories: Category[];\n editState: EditState;\n}\n\nexport default function useColor({ categories, editState }: IProps) {\n const labelColors = useMemo(() => {\n return getCategoryColors(categories.map((item) => item.name));\n }, [categories]);\n\n const colorSeedRef = useRef(0);\n\n const getUniformHexColor = (seed: number) => {\n // update seed\n const goldenRatio = 0.618;\n colorSeedRef.current = seed + goldenRatio;\n\n // generate uniform hex color\n const hue = (seed + goldenRatio) % 1;\n const rgbColor = hsvToRgb(hue, 0.8, 0.95);\n return rgbArrayToHex(rgbColor);\n };\n\n useEffect(() => {\n // reset seed\n colorSeedRef.current = 0;\n }, [editState.annotsDisplayOptions.colorByCategory]);\n\n const getAnnotColor = useCallback(\n (category: string, forceColorByCategory?: boolean) => {\n if (\n editState.annotsDisplayOptions.colorByCategory ||\n forceColorByCategory\n ) {\n return labelColors[category] || '#fff';\n } else {\n return getUniformHexColor(colorSeedRef.current);\n }\n },\n [\n editState.annotsDisplayOptions.colorByCategory,\n labelColors,\n getUniformHexColor,\n colorSeedRef.current,\n ],\n );\n\n return {\n labelColors,\n getAnnotColor,\n };\n}\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgImgBroken = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ xmlns: \"http://www.w3.org/2000/svg\", xmlnsXlink: \"http://www.w3.org/1999/xlink\", width: 600, height: 600, fill: \"none\" }, props), /* @__PURE__ */ React.createElement(\"path\", { fill: \"#FFF\", d: \"M0 0h600v600H0z\" }), /* @__PURE__ */ React.createElement(\"mask\", { id: \"img-broken_svg__b\", fill: \"#fff\" }, /* @__PURE__ */ React.createElement(\"use\", { xlinkHref: \"#img-broken_svg__a\" })), /* @__PURE__ */ React.createElement(\"g\", { mask: \"url(#img-broken_svg__b)\" }, /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"#f3f3fa\"\n}, opacity: 0.6, d: \"M520.82 276.411c.7 7.103 1.058 14.305 1.058 21.589 0 122.04-100.54 221-224.51 221-99.159 0-183.328-63.313-213.047-151.107h-8.426c-3.4 0-6.17-2.76-6.17-6.16A6.168 6.168 0 0 1 73.608 356H84c7.18 0 13-5.82 13-13v-1c0-7.18-5.82-13-13-13h-8.95l-.023-.161H52.855c-5.68 0-10.28-4.6-10.28-10.28s4.6-10.28 10.28-10.28h20.241A221.042 221.042 0 0 1 72.858 298c0-32.629 7.187-63.608 20.086-91.486H57c-15.46 0-28-12.541-28-28.001v-1.56c0-14.913 11.67-27.11 26.373-27.953H182c5.52 0 10-4.48 10-10s-4.48-10-10-10h-29.294l.732-.605h-14.59c-10.49 0-19-8.51-19-19v-1.06c0-10.49 8.51-19 19-19h84.392C246.448 81.345 271.393 77 297.368 77c51.023 0 98.077 16.763 135.787 45H418c-7.18 0-13 5.82-13 13v1c0 7.18 5.82 13 13 13h45.166a222.478 222.478 0 0 1 23.253 29.763h21.461c7.73 0 14 6.27 14 14v.78c0 6.387-4.281 11.777-10.128 13.457H492c-8.84 0-16 7.16-16 16v5c0 8.84 7.16 16 16 16h67.901c6.952 1.741 12.097 8.028 12.097 15.521v.89c0 8.84-7.16 16-16 16z\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__c)\", d: \"M147.977 187.468c-14.64 0-26.51 11.87-26.51 26.5h-5.34c-6.73 0-12.19 5.93-12.19 13.25s5.46 13.25 12.19 13.25h65.65c6.74 0 12.19-5.93 12.19-13.25s-5.45-13.25-12.19-13.25h-7.31c0-14.63-11.86-26.5-26.49-26.5z\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__d)\", d: \"M313.088 148.128c0 5.25 3.91 9.5 8.74 9.5h47.07c4.83 0 8.74-4.25 8.74-9.5s-3.91-9.5-8.74-9.5h-5.24c0-10.5-8.51-19-19-19s-19 8.5-19 19h-3.83c-4.83 0-8.74 4.25-8.74 9.5z\" }), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"#e7eaf0\"\n}, d: \"M508 453.5c0 11.036-19.12 20.438-45.869 23.988-6.38 1.885-13.556 3.663-21.438 5.315A16.82 16.82 0 0 1 441 486c0 24.3-52.84 44-118 44-58.623 0-107.274-15.946-116.445-36.841C128.328 487.215 73 472.59 73 455.5c0-22.36 94.71-40.5 211.5-40.5 61.363 0 116.631 5.008 155.269 13.004C477.563 428.253 508 439.575 508 453.5z\" }), /* @__PURE__ */ React.createElement(\"g\", { fillRule: \"evenodd\" }, /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#img-broken_svg__e)\", d: \"M356 62c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V38.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09C353.97.39 352.63 0 351.13 0c-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L347 62h9z\", transform: \"translate(92 370)\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#img-broken_svg__f)\", d: \"M385 60.7c.88 0 1.67-.31 2.38-.93v9.45c0 2.71-.03 4.89-.07 6.51-.04 1.63-.08 2.92-.12 3.86L387 82h9c-.12-1.36-.23-2.78-.31-4.26-.09-1.23-.16-2.63-.22-4.17-.06-1.55-.09-3.08-.09-4.6V58.66l9.74-.13h1.19c.42 0 .79-.02 1.13-.06.41 0 .81-.02 1.18-.06a5.374 5.374 0 0 0 2.44-1.95c.63-.88.94-1.9.94-3.05l-.13-.8-.24-.99c-.13-.37-.23-.73-.32-1.05l-1.06-2.1c.21-.74.31-1.44.31-2.1 0-1.61-.45-3.03-1.37-4.26-.92-1.23-2.09-2.1-3.5-2.6l-7.88-15.25a7.22 7.22 0 0 0-2.65-3.09c-1.19-.78-2.53-1.17-4.03-1.17-1.71 0-3.11.51-4.19 1.54-1.08 1.03-2.02 2.27-2.82 3.71h-.06l-9.81 17.97c-.67.58-1.22 1.26-1.65 2.04-.45.78-.71 1.62-.79 2.53l-1.56 3.58c-.08.21-.14.41-.19.62 0 0-.06.43-.06.68 0 1.44.46 2.68 1.37 3.74a6.535 6.535 0 0 0 3.44 2.06l7.06.37c.34.58.76 1.03 1.28 1.36.53.33 1.14.5 1.85.5z\", transform: \"translate(92 370)\" }), /* @__PURE__ */ React.createElement(\"path\", { fill: \"url(#img-broken_svg__g)\", d: \"M35.34 1.66C33.67.55 31.78 0 29.68 0c-2.4 0-4.36.73-5.89 2.19-1.52 1.46-2.83 3.21-3.95 5.26h-.09L5.97 32.96c-.94.81-1.71 1.78-2.32 2.89a8.845 8.845 0 0 0-1.1 3.59l-2.2 5.09c-.11.29-.2.58-.26.87 0 0-.09.62-.09.97 0 2.04.64 3.81 1.93 5.3a9 9 0 0 0 4.83 2.93l9.92.53c.47.82 1.07 1.46 1.8 1.93s1.6.7 2.59.7c1.23 0 2.34-.44 3.34-1.32v13.41c0 3.86-.03 6.95-.09 9.25-.06 2.31-.12 4.14-.18 5.49L23.88 88h12.64c-.17-1.93-.32-3.94-.44-6.05-.11-1.75-.21-3.73-.3-5.92s-.13-4.36-.13-6.53V54.87l13.69-.18h1.67c.59 0 1.11-.02 1.58-.09.59 0 1.14-.02 1.67-.08a7.599 7.599 0 0 0 3.42-2.77c.88-1.25 1.32-2.7 1.32-4.34l-.18-1.13-.35-1.4c-.17-.53-.32-1.03-.44-1.5l-1.49-2.97c.29-1.06.44-2.05.44-2.98 0-2.28-.64-4.3-1.93-6.05s-2.93-2.98-4.92-3.69L39.07 6.05c-.82-1.82-2.07-3.28-3.73-4.39z\", transform: \"translate(92 370)\" })), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__h)\", opacity: 0.5, d: \"M195.17 339.008 336 259.118l-180.79-56.11L3 241.048l192.17 97.96z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__i)\", d: \"m120.19 238.468 16.76-67-23.23-50.7L147 87.008l-137.81.8A9.242 9.242 0 0 0 0 97.058v132.16c0 5.12 4.15 9.25 9.26 9.25l103.61 4.54 7.32-4.54z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__j)\", d: \"M0 233.728c0 5.13 4.13 9.28 9.22 9.28h103.19l17.59-70.83-24.95-52.65L130 93.008l-120.85.8c-5.05.04-9.15 4.18-9.15 9.28v130.64z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__k)\", d: \"M129 177.408s-39.15 25.41-39.87 25.47c-15.59-13.61-41.17-39.55-41.17-39.55-2.95-3.01-8.11-3.11-11.19-.2L0 214.158v18.8c0 5.05 3.11 10.05 10.1 10.05h102.84l10.05-40.81 6.01-24.79z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__l)\", d: \"m161.114 121.588 10.21 50.9-39.15 72.66 77.97 21.2c5.34 2.12 11.32-1.05 12.51-6.63l36.14-134.09c1.03-4.82-1.95-9.58-6.76-10.81l-53.81-13.81-37.11 20.58z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__m)\", d: \"m153.53 125.233 10.21 50.89-37.74 67.36 77.98 21.21c5.33 2.12 11.31-1.04 12.5-6.63l34.73-128.8c1.03-4.82-1.96-9.58-6.76-10.81l-53.81-13.81-37.11 20.59z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__n)\", d: \"M181.344 174.368c-2-3.27-6.23-4.33-9.52-2.39l-8.09 4.16-37.65 67.37s67.22 18.7 75.12 20.47c7.91 1.76 13.7.54 14.89-5.08l3.37-11.51-38.12-73.02z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { style: {\n fill: \"#fff\"\n}, d: \"M223.104 151.697c0-9.32-7.57-16.88-16.9-16.88-9.33 0-16.89 7.56-16.89 16.88s7.56 16.88 16.89 16.88c9.33 0 16.9-7.56 16.9-16.88z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__o)\", d: \"m50.921 37.823 12.386-6.041 11.209 22.982-7.452-32.637-12.592 6.142L42.197 6.864l8.724 30.959z\", transform: \"translate(180 194.992)\" }), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", fill: \"url(#img-broken_svg__p)\", d: \"m217.598 48.895 17.888 17.184-30.945 23.817s47.929-22.37 46.996-23.709c-.925-1.335-18.57-16.992-18.57-16.992l24.134-25.537-39.503 25.236z\", transform: \"translate(180 194.992)\" })), /* @__PURE__ */ React.createElement(\"defs\", null, /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__i\", x1: \"178.579%\", y1: \"114.41%\", x2: \"-67.6%\", y2: \"-21.639%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__p\", x1: 198.923, y1: 151.68, x2: 253.588, y2: 43.245, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__d\", x1: \"144.588%\", y1: \"98.8%\", x2: \"29.516%\", y2: \"100%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E0E5EF\", stopOpacity: 0 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E0E5EF\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__e\", x1: \"144.588%\", y1: \"98.8%\", x2: \"29.516%\", y2: \"100%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E0E5EF\", stopOpacity: 0 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E0E5EF\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__f\", x1: \"144.588%\", y1: \"98.8%\", x2: \"29.516%\", y2: \"100%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E0E5EF\", stopOpacity: 0 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E0E5EF\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__g\", x1: \"144.588%\", y1: \"98.8%\", x2: \"29.516%\", y2: \"100%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E0E5EF\", stopOpacity: 0 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E0E5EF\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__h\", x1: \"50%\", y1: \"30.387%\", x2: \"-31.215%\", y2: \"-60.228%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E8EBF1\", stopOpacity: 0.24 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#A2ABB9\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__c\", x1: \"144.588%\", y1: \"98.8%\", x2: \"29.516%\", y2: \"100%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#E0E5EF\", stopOpacity: 0 }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E0E5EF\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__j\", x1: \"137.408%\", y1: \"115.518%\", x2: \"64.225%\", y2: \"-9.666%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__k\", x1: \"93.55%\", y1: \"132.782%\", x2: \"29.55%\", y2: \"19.901%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__l\", x1: \"178.579%\", y1: \"114.41%\", x2: \"-67.6%\", y2: \"-21.639%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__m\", x1: \"113.805%\", y1: \"123.201%\", x2: \"30.832%\", y2: \"0%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__n\", x1: \"110.007%\", y1: \"128.49%\", x2: \"50%\", y2: \"0%\", gradientUnits: \"objectBoundingBox\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"linearGradient\", { id: \"img-broken_svg__o\", x1: 92.534, y1: 94.384, x2: 55.523, y2: 19.166, gradientUnits: \"userSpaceOnUse\" }, /* @__PURE__ */ React.createElement(\"stop\", { offset: 0, stopColor: \"#A2ABB9\" }), /* @__PURE__ */ React.createElement(\"stop\", { offset: 1, stopColor: \"#E7EAF0\" })), /* @__PURE__ */ React.createElement(\"path\", { id: \"img-broken_svg__a\", d: \"M0 0h600v600H0z\" })));\nexport { SvgImgBroken as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjAwIiBoZWlnaHQ9IjYwMCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iI0ZGRiIgZD0iTTAgMGg2MDB2NjAwSDB6Ii8+PG1hc2sgaWQ9ImIiIGZpbGw9IiNmZmYiPjx1c2UgeGxpbms6aHJlZj0iI2EiLz48L21hc2s+PGcgbWFzaz0idXJsKCNiKSI+PHBhdGggc3R5bGU9ImZpbGw6I2YzZjNmYSIgb3BhY2l0eT0iLjYiIGQ9Ik01MjAuODIgMjc2LjQxMWMuNyA3LjEwMyAxLjA1OCAxNC4zMDUgMS4wNTggMjEuNTg5IDAgMTIyLjA0LTEwMC41NCAyMjEtMjI0LjUxIDIyMS05OS4xNTkgMC0xODMuMzI4LTYzLjMxMy0yMTMuMDQ3LTE1MS4xMDdoLTguNDI2Yy0zLjQgMC02LjE3LTIuNzYtNi4xNy02LjE2QTYuMTY4IDYuMTY4IDAgMCAxIDczLjYwOCAzNTZIODRjNy4xOCAwIDEzLTUuODIgMTMtMTN2LTFjMC03LjE4LTUuODItMTMtMTMtMTNoLTguOTVsLS4wMjMtLjE2MUg1Mi44NTVjLTUuNjggMC0xMC4yOC00LjYtMTAuMjgtMTAuMjhzNC42LTEwLjI4IDEwLjI4LTEwLjI4aDIwLjI0MUEyMjEuMDQyIDIyMS4wNDIgMCAwIDEgNzIuODU4IDI5OGMwLTMyLjYyOSA3LjE4Ny02My42MDggMjAuMDg2LTkxLjQ4Nkg1N2MtMTUuNDYgMC0yOC0xMi41NDEtMjgtMjguMDAxdi0xLjU2YzAtMTQuOTEzIDExLjY3LTI3LjExIDI2LjM3My0yNy45NTNIMTgyYzUuNTIgMCAxMC00LjQ4IDEwLTEwcy00LjQ4LTEwLTEwLTEwaC0yOS4yOTRsLjczMi0uNjA1aC0xNC41OWMtMTAuNDkgMC0xOS04LjUxLTE5LTE5di0xLjA2YzAtMTAuNDkgOC41MS0xOSAxOS0xOWg4NC4zOTJDMjQ2LjQ0OCA4MS4zNDUgMjcxLjM5MyA3NyAyOTcuMzY4IDc3YzUxLjAyMyAwIDk4LjA3NyAxNi43NjMgMTM1Ljc4NyA0NUg0MThjLTcuMTggMC0xMyA1LjgyLTEzIDEzdjFjMCA3LjE4IDUuODIgMTMgMTMgMTNoNDUuMTY2YTIyMi40NzggMjIyLjQ3OCAwIDAgMSAyMy4yNTMgMjkuNzYzaDIxLjQ2MWM3LjczIDAgMTQgNi4yNyAxNCAxNHYuNzhjMCA2LjM4Ny00LjI4MSAxMS43NzctMTAuMTI4IDEzLjQ1N0g0OTJjLTguODQgMC0xNiA3LjE2LTE2IDE2djVjMCA4Ljg0IDcuMTYgMTYgMTYgMTZoNjcuOTAxYzYuOTUyIDEuNzQxIDEyLjA5NyA4LjAyOCAxMi4wOTcgMTUuNTIxdi44OWMwIDguODQtNy4xNiAxNi0xNiAxNnoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjYykiIGQ9Ik0xNDcuOTc3IDE4Ny40NjhjLTE0LjY0IDAtMjYuNTEgMTEuODctMjYuNTEgMjYuNWgtNS4zNGMtNi43MyAwLTEyLjE5IDUuOTMtMTIuMTkgMTMuMjVzNS40NiAxMy4yNSAxMi4xOSAxMy4yNWg2NS42NWM2Ljc0IDAgMTIuMTktNS45MyAxMi4xOS0xMy4yNXMtNS40NS0xMy4yNS0xMi4xOS0xMy4yNWgtNy4zMWMwLTE0LjYzLTExLjg2LTI2LjUtMjYuNDktMjYuNXoiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjZCkiIGQ9Ik0zMTMuMDg4IDE0OC4xMjhjMCA1LjI1IDMuOTEgOS41IDguNzQgOS41aDQ3LjA3YzQuODMgMCA4Ljc0LTQuMjUgOC43NC05LjVzLTMuOTEtOS41LTguNzQtOS41aC01LjI0YzAtMTAuNS04LjUxLTE5LTE5LTE5cy0xOSA4LjUtMTkgMTloLTMuODNjLTQuODMgMC04Ljc0IDQuMjUtOC43NCA5LjV6Ii8+PHBhdGggc3R5bGU9ImZpbGw6I2U3ZWFmMCIgZD0iTTUwOCA0NTMuNWMwIDExLjAzNi0xOS4xMiAyMC40MzgtNDUuODY5IDIzLjk4OC02LjM4IDEuODg1LTEzLjU1NiAzLjY2My0yMS40MzggNS4zMTVBMTYuODIgMTYuODIgMCAwIDEgNDQxIDQ4NmMwIDI0LjMtNTIuODQgNDQtMTE4IDQ0LTU4LjYyMyAwLTEwNy4yNzQtMTUuOTQ2LTExNi40NDUtMzYuODQxQzEyOC4zMjggNDg3LjIxNSA3MyA0NzIuNTkgNzMgNDU1LjVjMC0yMi4zNiA5NC43MS00MC41IDIxMS41LTQwLjUgNjEuMzYzIDAgMTE2LjYzMSA1LjAwOCAxNTUuMjY5IDEzLjAwNEM0NzcuNTYzIDQyOC4yNTMgNTA4IDQzOS41NzUgNTA4IDQ1My41eiIvPjxnIGZpbGwtcnVsZT0iZXZlbm9kZCI+PHBhdGggZmlsbD0idXJsKCNlKSIgZD0iTTM1NiA2MmMtLjEyLTEuMzYtLjIzLTIuNzgtLjMxLTQuMjYtLjA5LTEuMjMtLjE2LTIuNjMtLjIyLTQuMTctLjA2LTEuNTUtLjA5LTMuMDgtLjA5LTQuNlYzOC42Nmw5Ljc0LS4xM2gxLjE5Yy40MiAwIC43OS0uMDIgMS4xMy0uMDYuNDEgMCAuODEtLjAyIDEuMTgtLjA2YTUuMzc0IDUuMzc0IDAgMCAwIDIuNDQtMS45NWMuNjMtLjg4Ljk0LTEuOS45NC0zLjA1bC0uMTMtLjgtLjI0LS45OWMtLjEzLS4zNy0uMjMtLjczLS4zMi0xLjA1bC0xLjA2LTIuMWMuMjEtLjc0LjMxLTEuNDQuMzEtMi4xIDAtMS42MS0uNDUtMy4wMy0xLjM3LTQuMjYtLjkyLTEuMjMtMi4wOS0yLjEtMy41LTIuNmwtNy44OC0xNS4yNWE3LjIyIDcuMjIgMCAwIDAtMi42NS0zLjA5QzM1My45Ny4zOSAzNTIuNjMgMCAzNTEuMTMgMGMtMS43MSAwLTMuMTEuNTEtNC4xOSAxLjU0LTEuMDggMS4wMy0yLjAyIDIuMjctMi44MiAzLjcxaC0uMDZsLTkuODEgMTcuOTdjLS42Ny41OC0xLjIyIDEuMjYtMS42NSAyLjA0LS40NS43OC0uNzEgMS42Mi0uNzkgMi41M2wtMS41NiAzLjU4Yy0uMDguMjEtLjE0LjQxLS4xOS42MiAwIDAtLjA2LjQzLS4wNi42OCAwIDEuNDQuNDYgMi42OCAxLjM3IDMuNzRhNi41MzUgNi41MzUgMCAwIDAgMy40NCAyLjA2bDcuMDYuMzdjLjM0LjU4Ljc2IDEuMDMgMS4yOCAxLjM2LjUzLjMzIDEuMTQuNSAxLjg1LjUuODggMCAxLjY3LS4zMSAyLjM4LS45M3Y5LjQ1YzAgMi43MS0uMDMgNC44OS0uMDcgNi41MS0uMDQgMS42My0uMDggMi45Mi0uMTIgMy44NkwzNDcgNjJoOXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2YpIiBkPSJNMzg1IDYwLjdjLjg4IDAgMS42Ny0uMzEgMi4zOC0uOTN2OS40NWMwIDIuNzEtLjAzIDQuODktLjA3IDYuNTEtLjA0IDEuNjMtLjA4IDIuOTItLjEyIDMuODZMMzg3IDgyaDljLS4xMi0xLjM2LS4yMy0yLjc4LS4zMS00LjI2LS4wOS0xLjIzLS4xNi0yLjYzLS4yMi00LjE3LS4wNi0xLjU1LS4wOS0zLjA4LS4wOS00LjZWNTguNjZsOS43NC0uMTNoMS4xOWMuNDIgMCAuNzktLjAyIDEuMTMtLjA2LjQxIDAgLjgxLS4wMiAxLjE4LS4wNmE1LjM3NCA1LjM3NCAwIDAgMCAyLjQ0LTEuOTVjLjYzLS44OC45NC0xLjkuOTQtMy4wNWwtLjEzLS44LS4yNC0uOTljLS4xMy0uMzctLjIzLS43My0uMzItMS4wNWwtMS4wNi0yLjFjLjIxLS43NC4zMS0xLjQ0LjMxLTIuMSAwLTEuNjEtLjQ1LTMuMDMtMS4zNy00LjI2LS45Mi0xLjIzLTIuMDktMi4xLTMuNS0yLjZsLTcuODgtMTUuMjVhNy4yMiA3LjIyIDAgMCAwLTIuNjUtMy4wOWMtMS4xOS0uNzgtMi41My0xLjE3LTQuMDMtMS4xNy0xLjcxIDAtMy4xMS41MS00LjE5IDEuNTQtMS4wOCAxLjAzLTIuMDIgMi4yNy0yLjgyIDMuNzFoLS4wNmwtOS44MSAxNy45N2MtLjY3LjU4LTEuMjIgMS4yNi0xLjY1IDIuMDQtLjQ1Ljc4LS43MSAxLjYyLS43OSAyLjUzbC0xLjU2IDMuNThjLS4wOC4yMS0uMTQuNDEtLjE5LjYyIDAgMC0uMDYuNDMtLjA2LjY4IDAgMS40NC40NiAyLjY4IDEuMzcgMy43NGE2LjUzNSA2LjUzNSAwIDAgMCAzLjQ0IDIuMDZsNy4wNi4zN2MuMzQuNTguNzYgMS4wMyAxLjI4IDEuMzYuNTMuMzMgMS4xNC41IDEuODUuNXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDkyIDM3MCkiLz48cGF0aCBmaWxsPSJ1cmwoI2cpIiBkPSJNMzUuMzQgMS42NkMzMy42Ny41NSAzMS43OCAwIDI5LjY4IDBjLTIuNCAwLTQuMzYuNzMtNS44OSAyLjE5LTEuNTIgMS40Ni0yLjgzIDMuMjEtMy45NSA1LjI2aC0uMDlMNS45NyAzMi45NmMtLjk0LjgxLTEuNzEgMS43OC0yLjMyIDIuODlhOC44NDUgOC44NDUgMCAwIDAtMS4xIDMuNTlsLTIuMiA1LjA5Yy0uMTEuMjktLjIuNTgtLjI2Ljg3IDAgMC0uMDkuNjItLjA5Ljk3IDAgMi4wNC42NCAzLjgxIDEuOTMgNS4zYTkgOSAwIDAgMCA0LjgzIDIuOTNsOS45Mi41M2MuNDcuODIgMS4wNyAxLjQ2IDEuOCAxLjkzczEuNi43IDIuNTkuN2MxLjIzIDAgMi4zNC0uNDQgMy4zNC0xLjMydjEzLjQxYzAgMy44Ni0uMDMgNi45NS0uMDkgOS4yNS0uMDYgMi4zMS0uMTIgNC4xNC0uMTggNS40OUwyMy44OCA4OGgxMi42NGMtLjE3LTEuOTMtLjMyLTMuOTQtLjQ0LTYuMDUtLjExLTEuNzUtLjIxLTMuNzMtLjMtNS45MnMtLjEzLTQuMzYtLjEzLTYuNTNWNTQuODdsMTMuNjktLjE4aDEuNjdjLjU5IDAgMS4xMS0uMDIgMS41OC0uMDkuNTkgMCAxLjE0LS4wMiAxLjY3LS4wOGE3LjU5OSA3LjU5OSAwIDAgMCAzLjQyLTIuNzdjLjg4LTEuMjUgMS4zMi0yLjcgMS4zMi00LjM0bC0uMTgtMS4xMy0uMzUtMS40Yy0uMTctLjUzLS4zMi0xLjAzLS40NC0xLjVsLTEuNDktMi45N2MuMjktMS4wNi40NC0yLjA1LjQ0LTIuOTggMC0yLjI4LS42NC00LjMtMS45My02LjA1cy0yLjkzLTIuOTgtNC45Mi0zLjY5TDM5LjA3IDYuMDVjLS44Mi0xLjgyLTIuMDctMy4yOC0zLjczLTQuMzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSg5MiAzNzApIi8+PC9nPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNoKSIgb3BhY2l0eT0iLjUiIGQ9Ik0xOTUuMTcgMzM5LjAwOCAzMzYgMjU5LjExOGwtMTgwLjc5LTU2LjExTDMgMjQxLjA0OGwxOTIuMTcgOTcuOTZ6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaSkiIGQ9Im0xMjAuMTkgMjM4LjQ2OCAxNi43Ni02Ny0yMy4yMy01MC43TDE0NyA4Ny4wMDhsLTEzNy44MS44QTkuMjQyIDkuMjQyIDAgMCAwIDAgOTcuMDU4djEzMi4xNmMwIDUuMTIgNC4xNSA5LjI1IDkuMjYgOS4yNWwxMDMuNjEgNC41NCA3LjMyLTQuNTR6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjaikiIGQ9Ik0wIDIzMy43MjhjMCA1LjEzIDQuMTMgOS4yOCA5LjIyIDkuMjhoMTAzLjE5bDE3LjU5LTcwLjgzLTI0Ljk1LTUyLjY1TDEzMCA5My4wMDhsLTEyMC44NS44Yy01LjA1LjA0LTkuMTUgNC4xOC05LjE1IDkuMjh2MTMwLjY0eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI2spIiBkPSJNMTI5IDE3Ny40MDhzLTM5LjE1IDI1LjQxLTM5Ljg3IDI1LjQ3Yy0xNS41OS0xMy42MS00MS4xNy0zOS41NS00MS4xNy0zOS41NS0yLjk1LTMuMDEtOC4xMS0zLjExLTExLjE5LS4yTDAgMjE0LjE1OHYxOC44YzAgNS4wNSAzLjExIDEwLjA1IDEwLjEgMTAuMDVoMTAyLjg0bDEwLjA1LTQwLjgxIDYuMDEtMjQuNzl6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbCkiIGQ9Im0xNjEuMTE0IDEyMS41ODggMTAuMjEgNTAuOS0zOS4xNSA3Mi42NiA3Ny45NyAyMS4yYzUuMzQgMi4xMiAxMS4zMi0xLjA1IDEyLjUxLTYuNjNsMzYuMTQtMTM0LjA5YzEuMDMtNC44Mi0xLjk1LTkuNTgtNi43Ni0xMC44MWwtNTMuODEtMTMuODEtMzcuMTEgMjAuNTh6IiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxODAgMTk0Ljk5MikiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9InVybCgjbSkiIGQ9Im0xNTMuNTMgMTI1LjIzMyAxMC4yMSA1MC44OS0zNy43NCA2Ny4zNiA3Ny45OCAyMS4yMWM1LjMzIDIuMTIgMTEuMzEtMS4wNCAxMi41LTYuNjNsMzQuNzMtMTI4LjhjMS4wMy00LjgyLTEuOTYtOS41OC02Ljc2LTEwLjgxbC01My44MS0xMy44MS0zNy4xMSAyMC41OXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNuKSIgZD0iTTE4MS4zNDQgMTc0LjM2OGMtMi0zLjI3LTYuMjMtNC4zMy05LjUyLTIuMzlsLTguMDkgNC4xNi0zNy42NSA2Ny4zN3M2Ny4yMiAxOC43IDc1LjEyIDIwLjQ3YzcuOTEgMS43NiAxMy43LjU0IDE0Ljg5LTUuMDhsMy4zNy0xMS41MS0zOC4xMi03My4wMnoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIHN0eWxlPSJmaWxsOiNmZmYiIGQ9Ik0yMjMuMTA0IDE1MS42OTdjMC05LjMyLTcuNTctMTYuODgtMTYuOS0xNi44OC05LjMzIDAtMTYuODkgNy41Ni0xNi44OSAxNi44OHM3LjU2IDE2Ljg4IDE2Ljg5IDE2Ljg4YzkuMzMgMCAxNi45LTcuNTYgMTYuOS0xNi44OHoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDE4MCAxOTQuOTkyKSIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgZmlsbD0idXJsKCNvKSIgZD0ibTUwLjkyMSAzNy44MjMgMTIuMzg2LTYuMDQxIDExLjIwOSAyMi45ODItNy40NTItMzIuNjM3LTEyLjU5MiA2LjE0Mkw0Mi4xOTcgNi44NjRsOC43MjQgMzAuOTU5eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBmaWxsPSJ1cmwoI3ApIiBkPSJtMjE3LjU5OCA0OC44OTUgMTcuODg4IDE3LjE4NC0zMC45NDUgMjMuODE3czQ3LjkyOS0yMi4zNyA0Ni45OTYtMjMuNzA5Yy0uOTI1LTEuMzM1LTE4LjU3LTE2Ljk5Mi0xOC41Ny0xNi45OTJsMjQuMTM0LTI1LjUzNy0zOS41MDMgMjUuMjM2eiIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMTgwIDE5NC45OTIpIi8+PC9nPjxkZWZzPjxsaW5lYXJHcmFkaWVudCBpZD0iaSIgeDE9IjE3OC41NzklIiB5MT0iMTE0LjQxJSIgeDI9Ii02Ny42JSIgeTI9Ii0yMS42MzklIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9InAiIHgxPSIxOTguOTIzIiB5MT0iMTUxLjY4IiB4Mj0iMjUzLjU4OCIgeTI9IjQzLjI0NSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJkIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iZSIgeDE9IjE0NC41ODglIiB5MT0iOTguOCUiIHgyPSIyOS41MTYlIiB5Mj0iMTAwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0UwRTVFRiIgc3RvcC1vcGFjaXR5PSIwIi8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTBFNUVGIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImYiIHgxPSIxNDQuNTg4JSIgeTE9Ijk4LjglIiB4Mj0iMjkuNTE2JSIgeTI9IjEwMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNFMEU1RUYiIHN0b3Atb3BhY2l0eT0iMCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0UwRTVFRiIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJnIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaCIgeDE9IjUwJSIgeTE9IjMwLjM4NyUiIHgyPSItMzEuMjE1JSIgeTI9Ii02MC4yMjglIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRThFQkYxIiBzdG9wLW9wYWNpdHk9Ii4yNCIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJjIiB4MT0iMTQ0LjU4OCUiIHkxPSI5OC44JSIgeDI9IjI5LjUxNiUiIHkyPSIxMDAlIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjRTBFNUVGIiBzdG9wLW9wYWNpdHk9IjAiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFMEU1RUYiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0iaiIgeDE9IjEzNy40MDglIiB5MT0iMTE1LjUxOCUiIHgyPSI2NC4yMjUlIiB5Mj0iLTkuNjY2JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJrIiB4MT0iOTMuNTUlIiB5MT0iMTMyLjc4MiUiIHgyPSIyOS41NSUiIHkyPSIxOS45MDElIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCI+PHN0b3Agb2Zmc2V0PSIwIiBzdG9wLWNvbG9yPSIjQTJBQkI5Ii8+PHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjRTdFQUYwIi8+PC9saW5lYXJHcmFkaWVudD48bGluZWFyR3JhZGllbnQgaWQ9ImwiIHgxPSIxNzguNTc5JSIgeTE9IjExNC40MSUiIHgyPSItNjcuNiUiIHkyPSItMjEuNjM5JSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJtIiB4MT0iMTEzLjgwNSUiIHkxPSIxMjMuMjAxJSIgeDI9IjMwLjgzMiUiIHkyPSIwJSIgZ3JhZGllbnRVbml0cz0ib2JqZWN0Qm91bmRpbmdCb3giPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PGxpbmVhckdyYWRpZW50IGlkPSJuIiB4MT0iMTEwLjAwNyUiIHkxPSIxMjguNDklIiB4Mj0iNTAlIiB5Mj0iMCUiIGdyYWRpZW50VW5pdHM9Im9iamVjdEJvdW5kaW5nQm94Ij48c3RvcCBvZmZzZXQ9IjAiIHN0b3AtY29sb3I9IiNBMkFCQjkiLz48c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiNFN0VBRjAiLz48L2xpbmVhckdyYWRpZW50PjxsaW5lYXJHcmFkaWVudCBpZD0ibyIgeDE9IjkyLjUzNCIgeTE9Ijk0LjM4NCIgeDI9IjU1LjUyMyIgeTI9IjE5LjE2NiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iI0EyQUJCOSIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0U3RUFGMCIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggaWQ9ImEiIGQ9Ik0wIDBoNjAwdjYwMEgweiIvPjwvZGVmcz48L3N2Zz4=\";\n","import { Button, Spin } from 'antd';\nimport { ReloadOutlined } from '@ant-design/icons';\nimport ImgBroken from '../../assets/img-broken.svg';\nimport React, { useState } from 'react';\nimport './index.less';\n\ninterface IProps {\n url: string;\n imgRef: React.RefObject;\n canvasRef: React.RefObject;\n activeCanvasRef: React.RefObject;\n clientSize: ISize;\n imagePos: React.MutableRefObject;\n onLoad: (e: React.UIEvent) => void;\n}\n\nexport const ImageView: React.FC = ({\n url = '',\n imgRef,\n canvasRef,\n activeCanvasRef,\n clientSize,\n imagePos,\n onLoad,\n}) => {\n const [showReload, setShowReload] = useState(false);\n const [isLoading, setIsLoading] = useState(true);\n\n const onLoadImg = (e: React.UIEvent) => {\n setIsLoading(false);\n // Callback\n onLoad(e);\n };\n\n const onReloadImg = (e: React.MouseEvent) => {\n e.stopPropagation();\n if (imgRef?.current) {\n imgRef.current.src = url;\n setIsLoading(true);\n setShowReload(false);\n }\n };\n\n const onErrorImg = (e: React.UIEvent) => {\n const img = e.target as HTMLImageElement;\n img.src = ImgBroken;\n setIsLoading(false);\n setShowReload(true);\n };\n\n const crossOrigin =\n url.indexOf('aliyuncs.com') > -1 ? 'anonymous' : undefined;\n\n return (\n <>\n \n ) =>\n event.preventDefault()\n }\n className=\"dds-annotator-imageview-canvas\"\n />\n ) =>\n event.preventDefault()\n }\n className=\"dds-annotator-imageview-canvas\"\n />\n {showReload && (\n \n \"error-pic\"\n
\n }\n >\n
\n \n )}\n {isLoading && (\n \n \n \n )}\n \n );\n};\n","import React, { useCallback, useEffect, useMemo, useRef } from 'react';\nimport { Button, Divider, Dropdown, Modal } from 'antd';\nimport {\n EObjectType,\n EElementType,\n EBasicToolItem,\n ESubToolItem,\n} from './constants';\nimport { Updater, useImmer } from 'use-immer';\nimport TopTools from './components/TopTools';\nimport useLabels from './hooks/useLabels';\nimport useActions from './hooks/useActions';\nimport PopoverMenu from './components/PopoverMenu';\nimport { ObjectList } from './components/ObjectList';\nimport { MainToolBar } from './components/MainToolBar';\nimport SmartAnnotationControl from './components/SmartAnnotationControl';\nimport { ScaleToolBar } from './components/ScaleToolBar';\nimport { ArrowLeftOutlined } from '@ant-design/icons';\nimport { TopPagination } from './components/TopPagination';\nimport { AnnotationEditor } from './components/AnnotationEditor';\nimport { ShortcutsInfo } from './components/ShortcutsInfo';\nimport useHistory from './hooks/useHistory';\nimport useObjects from './hooks/useObjects';\nimport useCanvasContainer from './hooks/useCanvasContainer';\nimport usePreviousState from './hooks/usePreviousState';\nimport { cloneDeep } from 'lodash';\nimport { useLocale } from 'dds-utils/locale';\nimport { SubToolBar } from './components/SubToolBar';\nimport {\n BaseObject,\n Category,\n DEFAULT_DRAW_DATA,\n DEFAULT_EDIT_STATE,\n DrawData,\n DrawImageData,\n EditState,\n EditorMode,\n EObjectStatus,\n DrawObject,\n EQaAction,\n} from './type';\nimport useMouseCursor from './hooks/useMouseCursor';\nimport useShortcuts from './hooks/useShortcuts';\nimport useToolActions from './hooks/useToolActions';\nimport useMouseEvents from './hooks/useMouseEvents';\nimport useCanvasRender from './hooks/useCanvasRender';\nimport useDataEffect from './hooks/useDataEffect';\nimport { useToolInstances } from './tools/base';\nimport useColor from './hooks/useColor';\nimport { ImageView } from './components/ImageView';\nimport './index.less';\n\nexport interface EditProps {\n isSeperate: boolean;\n visible: boolean;\n mode: EditorMode;\n categories: Category[];\n list: DrawImageData[];\n current: number;\n pagination?: {\n show: boolean;\n total: number;\n customText?: React.ReactElement;\n customDisableNext?: boolean;\n };\n actionElements?: React.ReactElement[];\n objectsFilter?: (imageData: any) => BaseObject[];\n onCancel?: () => void;\n onSave?: (imageId: string, annotations: BaseObject[]) => Promise;\n onAutoSave?: (annotations: BaseObject[], naturalSize: ISize) => void;\n onReviewResult?: (imageId: string, action: EQaAction) => Promise;\n onEnterEdit?: () => void;\n onPrev?: () => Promise;\n onNext?: () => Promise;\n setCategories?: Updater;\n}\n\nconst Edit: React.FC = (props) => {\n const {\n isSeperate,\n visible,\n categories,\n list,\n current,\n pagination,\n mode,\n actionElements,\n onPrev,\n onNext,\n onCancel,\n onSave,\n onEnterEdit,\n onReviewResult,\n setCategories,\n onAutoSave,\n objectsFilter,\n } = props;\n\n const { localeText } = useLocale();\n const [modal, contextHolder] = Modal.useModal();\n\n const [annotations, setAnnotations] = useImmer([]);\n\n const [editState, setEditState] = useImmer(\n cloneDeep(DEFAULT_EDIT_STATE),\n );\n\n const [drawData, setDrawData] = useImmer(\n cloneDeep(DEFAULT_DRAW_DATA),\n );\n\n const canvasRef = useRef(null);\n const activeCanvasRef = useRef(null);\n const imgRef = useRef(null);\n\n const isCustomCursorActive = useMemo(() => {\n const isToolWithSize = [\n ESubToolItem.AutoEdgeStitching,\n ESubToolItem.AutoSegmentByStroke,\n ESubToolItem.BrushAdd,\n ESubToolItem.BrushErase,\n ].includes(drawData.selectedSubTool);\n\n if (\n drawData.creatingObject &&\n drawData.activeObjectIndex > -1 &&\n drawData.creatingObject.type === EObjectType.Mask\n ) {\n return isToolWithSize;\n }\n if (\n drawData.selectedTool !== EBasicToolItem.Drag &&\n !drawData.isBatchEditing\n ) {\n return drawData.selectedTool === EBasicToolItem.Mask && isToolWithSize;\n }\n return false;\n }, [drawData.selectedTool, drawData.selectedSubTool]);\n\n const showReferenceLine = useMemo(() => {\n return (\n drawData.selectedTool !== EBasicToolItem.Drag && !isCustomCursorActive\n );\n }, [drawData.selectedTool, isCustomCursorActive]);\n\n const { labelColors, getAnnotColor } = useColor({\n categories,\n editState,\n });\n\n const {\n scale,\n naturalSize,\n clientSize,\n containerMouse,\n contentMouse,\n imagePos,\n onLoadImg,\n onZoomIn,\n onZoomOut,\n onReset,\n CanvasContainer,\n isMousePress,\n } = useCanvasContainer({\n visible,\n allowMove: editState.allowMove,\n isRequiring: editState.isRequiring,\n showReferenceLine,\n minPadding: {\n top: 30,\n left: 80,\n },\n isCustomCursorActive,\n cursorSize: drawData.brushSize,\n });\n\n const [preClientSize, clearPreClientSize] =\n usePreviousState(clientSize);\n\n const {\n undo,\n redo,\n clearHistory,\n hadChangeRecord,\n updateHistory,\n setDrawDataWithHistory,\n } = useHistory({\n clientSize,\n naturalSize,\n setDrawData,\n onAutoSave,\n });\n\n const {\n addObject,\n removeObject,\n removeAllObjects,\n initObjectList,\n updateAllObject,\n updateObject,\n updateObjectWithoutHistory,\n updateAllObjectWithoutHistory,\n } = useObjects({\n annotations,\n setAnnotations,\n clientSize,\n naturalSize,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n editState,\n setEditState,\n mode,\n });\n\n const {\n aiLabels,\n setAiLabels,\n onChangeObjectHidden,\n onChangeCategoryHidden,\n onChangeActiveClass,\n onCreateCategory,\n } = useLabels({\n visible,\n mode,\n categories,\n setCategories,\n drawData,\n setDrawData,\n editState,\n updateObjectWithoutHistory,\n updateAllObjectWithoutHistory,\n });\n\n const {\n onAiAnnotation,\n onSaveAnnotations,\n onCancelAnnotations,\n onReject,\n onAccept,\n } = useActions({\n mode,\n list,\n current,\n modal,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n editState,\n setEditState,\n naturalSize,\n clientSize,\n imagePos,\n containerMouse,\n onCancel,\n onSave,\n updateAllObject,\n hadChangeRecord,\n latestLabel: editState.latestLabel,\n getAnnotColor,\n });\n\n const { updateMouseCursor } = useMouseCursor({\n topCanvas: activeCanvasRef.current,\n editState,\n drawData,\n });\n\n const {\n onDeleteCurrObject,\n onFinishCurrCreate,\n onCloseAnnotationEditor,\n onAcceptValidObjects,\n onAbortBatchObjects,\n selectTool,\n selectSubTool,\n forceChangeTool,\n onExitAIAnnotation,\n setBrushSize,\n activeAIAnnotation,\n onSaveAIPolygon,\n onCancelAIPolygon,\n onChangeSkeletonConf,\n onChangeLimitConf,\n onChangeAnnotsDisplayOpts,\n onChangeImageDisplayOpts,\n onChangeColorMode,\n } = useToolActions({\n mode,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n setAiLabels,\n editState,\n setEditState,\n getAnnotColor,\n clientSize,\n naturalSize,\n addObject,\n removeObject,\n updateObject,\n updateAllObject,\n });\n\n const { objectHooksMap } = useToolInstances({\n imgRef,\n editState,\n clientSize,\n naturalSize,\n contentMouse,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n setEditState,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n updateHistory,\n updateObject,\n addObject,\n updateMouseCursor,\n aiLabels,\n onAiAnnotation,\n getAnnotColor,\n });\n\n const { updateRender } = useCanvasRender({\n visible,\n drawData,\n editState,\n clientSize,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n imgRef,\n objectHooksMap,\n });\n\n const {\n selectFocusObject,\n forceChangeFocusObject,\n mouseRightObjectsDropDownRender,\n } = useMouseEvents({\n visible,\n mode,\n drawData,\n setDrawData,\n editState,\n setEditState,\n clientSize,\n contentMouse,\n categories,\n updateRender,\n updateMouseCursor,\n objectHooksMap,\n imagePos,\n containerMouse,\n getAnnotColor,\n });\n\n useShortcuts({\n visible,\n mode,\n drawData,\n isMousePress,\n setDrawData,\n setEditState,\n onSaveAnnotations,\n onAccept,\n onReject,\n onChangeObjectHidden,\n onChangeCategoryHidden,\n removeObject,\n addObject,\n });\n\n const { resetDataWithImageData } = useDataEffect({\n imagePos,\n clientSize,\n preClientSize,\n clearPreClientSize,\n naturalSize,\n annotations,\n setAnnotations,\n labelColors,\n drawData,\n setDrawData,\n editState,\n setEditState,\n initObjectList,\n updateRender,\n clearHistory,\n objectsFilter,\n });\n\n /** Copy annots from previous image */\n const repeatPrevious = useCallback(() => {\n if (current > 0 && current < list.length) {\n resetDataWithImageData(list[current - 1], visible, false);\n }\n }, [resetDataWithImageData, list, current, visible]);\n\n // =================================================================================================================\n // Effects\n // =================================================================================================================\n\n /** Limit bottom layer body scroll */\n useEffect(() => {\n document.body.style.overflow = visible ? 'hidden' : 'overlay';\n }, [visible]);\n\n /** Reset data when hiding the editor or switching images */\n useEffect(() => {\n resetDataWithImageData(list[current], visible);\n }, [visible, mode, current, objectsFilter]);\n\n useEffect(() => {\n onChangeColorMode();\n }, [editState.annotsDisplayOptions.colorByCategory]);\n\n // =================================================================================================================\n // Render\n // =================================================================================================================\n\n const fileName = useMemo(() => {\n if (\n list[current]?.urlFullRes &&\n list[current]?.urlFullRes.indexOf('http') === 0\n ) {\n const url = decodeURIComponent(list[current]?.urlFullRes);\n return url.replace(/\\?.*$/, '').split('/').pop() || '';\n }\n return '';\n }, [list, current]);\n\n const supportActions = useMemo(() => {\n const actions = actionElements\n ? actionElements.map((item) => ({ customElement: item }))\n : [];\n if (mode === EditorMode.Review && onReviewResult) {\n actions.push(\n ...[\n {\n customElement: (\n \n ),\n },\n {\n customElement: (\n \n ),\n },\n ],\n );\n }\n if (mode === EditorMode.Edit && !isSeperate) {\n actions.push(\n ...[\n {\n customElement: (\n onSaveAnnotations(drawData)}\n >\n {localeText('DDSAnnotator.save')}\n \n ),\n },\n ],\n );\n }\n actions.unshift({\n customElement: (\n <>\n \n \n \n ),\n });\n return actions;\n }, [mode, onReviewResult, onEnterEdit, onSaveAnnotations, list[current]]);\n\n const renderPopoverMenu = () => {\n if (\n editState.focusObjectIndex > -1 &&\n drawData.objectList[editState.focusObjectIndex] &&\n !drawData.objectList[editState.focusObjectIndex].hidden &&\n editState.focusEleIndex > -1 &&\n editState.focusEleType === EElementType.Circle\n ) {\n const target =\n drawData.objectList[editState.focusObjectIndex].keypoints?.points?.[\n editState.focusEleIndex\n ];\n if (target) {\n return (\n \n );\n }\n }\n return <>;\n };\n\n const isAnnotEditorVisible =\n mode === EditorMode.Edit &&\n !(\n drawData.isBatchEditing &&\n drawData.selectedTool === EBasicToolItem.Skeleton\n ) &&\n !(\n drawData.selectedTool === EBasicToolItem.Polygon &&\n drawData.AIAnnotation &&\n drawData.activeObjectIndex === -1\n );\n\n const showSubTools =\n drawData.selectedTool === EBasicToolItem.Mask ||\n (drawData.creatingObject &&\n drawData.creatingObject.type === EObjectType.Mask);\n\n const commitedObjects = useMemo(() => {\n return drawData.objectList.filter((obj) => {\n return obj.status === EObjectStatus.Commited;\n });\n }, [drawData.isBatchEditing, drawData.objectList]);\n\n if (visible) {\n return (\n
\n ,\n onClick: () => onCancelAnnotations(),\n },\n ]),\n {\n customElement: fileName,\n },\n ]}\n rightTools={supportActions}\n >\n {pagination && pagination.show && (\n \n )}\n \n
\n
\n
\n 0}\n >\n {CanvasContainer({\n className: 'edit-wrap',\n children: (\n <>\n \n {renderPopoverMenu()}\n \n ),\n })}\n \n {isAnnotEditorVisible && (\n \n )}\n \n \n {mode === EditorMode.Edit && (\n <>\n \n {showSubTools && (\n 0\n ) &&\n !drawData.isBatchEditing\n }\n brushSize={drawData.brushSize}\n onChangeSubTool={selectSubTool}\n onChangeBrushSize={setBrushSize}\n onActiveAIAnnotation={activeAIAnnotation}\n />\n )}\n \n )}\n
\n \n
\n {\n e.stopPropagation();\n }}\n >\n {contextHolder}\n
\n \n );\n } else {\n return <>;\n }\n};\n\nexport default Edit;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDoubleRight = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"m8.379 7.648-4.56-5.825a.283.283 0 0 0-.224-.11h-1.38a.142.142 0 0 0-.113.231L6.842 8l-4.74 6.055a.143.143 0 0 0 .112.23h1.38a.289.289 0 0 0 .226-.109l4.559-5.823a.571.571 0 0 0 0-.705Zm5.428 0L9.248 1.823a.283.283 0 0 0-.225-.11h-1.38a.142.142 0 0 0-.112.231L12.27 8l-4.74 6.055a.143.143 0 0 0 .113.23h1.38a.289.289 0 0 0 .225-.109l4.56-5.823a.571.571 0 0 0 0-.705Z\", fill: \"#fff\", opacity: 0.85 }));\nexport { SvgDoubleRight as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTguMzc5IDcuNjQ4LTQuNTYtNS44MjVhLjI4My4yODMgMCAwIDAtLjIyNC0uMTFoLTEuMzhhLjE0Mi4xNDIgMCAwIDAtLjExMy4yMzFMNi44NDIgOGwtNC43NCA2LjA1NWEuMTQzLjE0MyAwIDAgMCAuMTEyLjIzaDEuMzhhLjI4OS4yODkgMCAwIDAgLjIyNi0uMTA5bDQuNTU5LTUuODIzYS41NzEuNTcxIDAgMCAwIDAtLjcwNVptNS40MjggMEw5LjI0OCAxLjgyM2EuMjgzLjI4MyAwIDAgMC0uMjI1LS4xMWgtMS4zOGEuMTQyLjE0MiAwIDAgMC0uMTEyLjIzMUwxMi4yNyA4bC00Ljc0IDYuMDU1YS4xNDMuMTQzIDAgMCAwIC4xMTMuMjNoMS4zOGEuMjg5LjI4OSAwIDAgMCAuMjI1LS4xMDlsNC41Ni01LjgyM2EuNTcxLjU3MSAwIDAgMCAwLS43MDVaIiBmaWxsPSIjZmZmIiBvcGFjaXR5PSIuODUiLz48L3N2Zz4=\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgDownload = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ viewBox: \"0 0 14 14\", fill: \"#595959\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M6.887 9.657a.143.143 0 0 0 .225 0l2-2.53A.142.142 0 0 0 9 6.897H7.677V.854A.143.143 0 0 0 7.534.71H6.462a.143.143 0 0 0-.143.143v6.041H5a.142.142 0 0 0-.112.23l2 2.532Zm6.649-.625h-1.072a.143.143 0 0 0-.143.143v2.75H1.678v-2.75a.143.143 0 0 0-.142-.143H.464a.143.143 0 0 0-.143.143v3.536a.57.57 0 0 0 .572.572h12.214a.57.57 0 0 0 .571-.572V9.175a.143.143 0 0 0-.142-.143Z\" }));\nexport { SvgDownload as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTQgMTQiIGZpbGw9IiM1OTU5NTkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuODg3IDkuNjU3YS4xNDMuMTQzIDAgMCAwIC4yMjUgMGwyLTIuNTNBLjE0Mi4xNDIgMCAwIDAgOSA2Ljg5N0g3LjY3N1YuODU0QS4xNDMuMTQzIDAgMCAwIDcuNTM0LjcxSDYuNDYyYS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjYuMDQxSDVhLjE0Mi4xNDIgMCAwIDAtLjExMi4yM2wyIDIuNTMyWm02LjY0OS0uNjI1aC0xLjA3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YyLjc1SDEuNjc4di0yLjc1YS4xNDMuMTQzIDAgMCAwLS4xNDItLjE0M0guNDY0YS4xNDMuMTQzIDAgMCAwLS4xNDMuMTQzdjMuNTM2YS41Ny41NyAwIDAgMCAuNTcyLjU3MmgxMi4yMTRhLjU3LjU3IDAgMCAwIC41NzEtLjU3MlY5LjE3NWEuMTQzLjE0MyAwIDAgMC0uMTQyLS4xNDNaIi8+PC9zdmc+\";\n","import React, { useCallback, useEffect, useRef, useState } from 'react';\nimport {\n AnnotationType,\n DisplayOption,\n EElementType,\n MAX_SCALE,\n MIN_SCALE,\n} from './constants';\nimport { useImmer } from 'use-immer';\nimport TopTools from './components/TopTools';\nimport PopoverMenu from './components/PopoverMenu';\nimport {\n CloseOutlined,\n LeftOutlined,\n RightOutlined,\n ZoomInOutlined,\n ZoomOutOutlined,\n} from '@ant-design/icons';\nimport useHistory from './hooks/useHistory';\nimport useObjects from './hooks/useObjects';\nimport useCanvasContainer from './hooks/useCanvasContainer';\nimport usePreviousState from './hooks/usePreviousState';\nimport { cloneDeep, isEmpty } from 'lodash';\nimport {\n BaseObject,\n Category,\n DEFAULT_DRAW_DATA,\n DEFAULT_EDIT_STATE,\n DrawData,\n DrawImageData,\n DrawObject,\n EditState,\n EditorMode,\n IAnnotationObject,\n} from './type';\nimport useColor from './hooks/useColor';\nimport useMouseCursor from './hooks/useMouseCursor';\nimport useMouseEvents from './hooks/useMouseEvents';\nimport useCanvasRender from './hooks/useCanvasRender';\nimport useDataEffect from './hooks/useDataEffect';\nimport { RenderStyles, useToolInstances } from './tools/base';\nimport classNames from 'classnames';\nimport { ReactComponent as DoubleRightIcon } from './assets/doubleRight.svg';\nimport { ReactComponent as DownloadIcon } from './assets/download.svg';\nimport { useKeyPress } from 'ahooks';\nimport { EDITOR_SHORTCUTS, EShortcuts } from './constants/shortcuts';\nimport { message } from 'antd';\nimport { ImageView } from './components/ImageView';\nimport './index.less';\n\nexport interface PreviewProps {\n visible: boolean;\n categories: Category[];\n list: DrawImageData[];\n current: number;\n objectsFilter?: (imageData: any) => BaseObject[];\n getCustomObjectStyles?: (\n object: IAnnotationObject,\n color: string,\n ) => Partial;\n onCancel?: () => void;\n onPrev?: () => Promise;\n onNext?: () => Promise;\n displayAnnotationType?: AnnotationType;\n displayOptionsResult: { [key in DisplayOption]?: boolean };\n}\n\nconst Preview: React.FC = (props) => {\n const {\n visible,\n categories,\n list,\n current,\n onPrev,\n onNext,\n onCancel,\n objectsFilter,\n getCustomObjectStyles,\n displayAnnotationType,\n displayOptionsResult,\n } = props;\n\n const [annotations, setAnnotations] = useImmer([]);\n\n const [editState, setEditState] = useImmer(\n cloneDeep(DEFAULT_EDIT_STATE),\n );\n\n const [drawData, setDrawData] = useImmer(\n cloneDeep(DEFAULT_DRAW_DATA),\n );\n\n const canvasRef = useRef(null);\n const activeCanvasRef = useRef(null);\n const imgRef = useRef(null);\n\n const {\n scale,\n naturalSize,\n clientSize,\n containerMouse,\n contentMouse,\n imagePos,\n onLoadImg,\n onZoomIn,\n onZoomOut,\n CanvasContainer,\n } = useCanvasContainer({\n visible,\n allowMove: editState.allowMove,\n isRequiring: editState.isRequiring,\n minPadding: {\n top: 120,\n left: 300,\n },\n cursorSize: drawData.brushSize,\n showReferenceLine: false,\n isCustomCursorActive: false,\n onClickMaskBg: onCancel,\n });\n\n const [preClientSize, clearPreClientSize] =\n usePreviousState(clientSize);\n\n const { clearHistory, updateHistory, setDrawDataWithHistory } = useHistory({\n clientSize,\n naturalSize,\n setDrawData,\n });\n\n const { addObject, initObjectList, updateObject } = useObjects({\n annotations,\n setAnnotations,\n clientSize,\n naturalSize,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n editState,\n setEditState,\n mode: EditorMode.View,\n displayAnnotationType,\n });\n\n const { labelColors, getAnnotColor } = useColor({\n categories,\n editState,\n });\n\n const { updateMouseCursor } = useMouseCursor({\n topCanvas: activeCanvasRef.current,\n editState,\n drawData,\n });\n\n const { objectHooksMap } = useToolInstances({\n imgRef,\n editState,\n clientSize,\n naturalSize,\n contentMouse,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n setEditState,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n updateHistory,\n updateObject,\n addObject,\n updateMouseCursor,\n displayOptionsResult,\n getAnnotColor,\n });\n\n const { updateRender } = useCanvasRender({\n visible,\n drawData,\n editState,\n clientSize,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n imgRef,\n objectHooksMap,\n getCustomObjectStyles,\n });\n\n useMouseEvents({\n visible,\n mode: EditorMode.View,\n drawData,\n setDrawData,\n editState,\n setEditState,\n clientSize,\n contentMouse,\n categories,\n updateRender,\n updateMouseCursor,\n objectHooksMap,\n imagePos,\n containerMouse,\n getAnnotColor,\n limitActiveObject: true,\n });\n\n // =================================================================================================================\n // Effects\n // =================================================================================================================\n\n /** Limit bottom layer body scroll */\n useEffect(() => {\n document.body.style.overflow = visible ? 'hidden' : 'overlay';\n }, [visible]);\n\n const { resetDataWithImageData, rebuildDrawData } = useDataEffect({\n imagePos,\n clientSize,\n preClientSize,\n clearPreClientSize,\n naturalSize,\n annotations,\n setAnnotations,\n labelColors,\n drawData,\n setDrawData,\n editState,\n setEditState,\n initObjectList,\n updateRender,\n clearHistory,\n objectsFilter,\n });\n\n /** Reset data when hiding the editor or switching images */\n useEffect(() => {\n resetDataWithImageData(list[current], visible);\n }, [visible, list[current], objectsFilter]);\n\n /** Custom options changed */\n useEffect(() => {\n rebuildDrawData(true);\n }, [displayAnnotationType, displayOptionsResult, getCustomObjectStyles]);\n\n // =================================================================================================================\n // Preview\n // =================================================================================================================\n\n const [showInfo, setShowInfo] = useState(true);\n const changeShowInfo = useCallback(() => {\n setShowInfo((s) => {\n return !s;\n });\n }, []);\n\n /** Snapshot image */\n const onDownload: React.MouseEventHandler = async (event) => {\n event.preventDefault();\n event.stopPropagation();\n\n const hide = message.loading('Creating image...', 60000);\n const loadDataUrl = () => {\n return new Promise((resolve, reject) => {\n setTimeout(function () {\n try {\n if (!canvasRef.current) return;\n const dataUrl = canvasRef.current.toDataURL();\n let a = document.createElement('a');\n a.setAttribute('download', `${list[current].id}.png`);\n a.setAttribute('href', dataUrl);\n a.click();\n hide();\n resolve(null);\n } catch (e) {\n reject(e);\n }\n }, 500);\n });\n };\n\n try {\n setEditState((s) => {\n s.focusObjectIndex = -1;\n });\n updateRender();\n await loadDataUrl();\n } catch (error) {\n console.error(error);\n hide();\n message.error('Create image fail, please try again');\n }\n };\n\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.PreviousImage].shortcut,\n () => {\n if (visible) onPrev?.();\n },\n {\n exactMatch: true,\n },\n );\n\n useKeyPress(\n EDITOR_SHORTCUTS[EShortcuts.NextImage].shortcut,\n () => {\n if (visible) onNext?.();\n },\n {\n exactMatch: true,\n },\n );\n\n // =================================================================================================================\n // Render\n // =================================================================================================================\n\n const renderPopoverMenu = () => {\n if (\n editState.focusObjectIndex > -1 &&\n drawData.objectList[editState.focusObjectIndex] &&\n !drawData.objectList[editState.focusObjectIndex].hidden &&\n editState.focusEleIndex > -1 &&\n editState.focusEleType === EElementType.Circle\n ) {\n const target =\n drawData.objectList[editState.focusObjectIndex].keypoints?.points?.[\n editState.focusEleIndex\n ];\n if (target) {\n return (\n \n );\n }\n }\n return <>;\n };\n\n if (!visible) {\n return <>;\n }\n\n const metadata = !isEmpty(list[current]?.metadata)\n ? list[current].metadata\n : undefined;\n\n return (\n
\n ,\n onClick: onZoomIn,\n disabled: scale >= MAX_SCALE,\n },\n {\n icon: ,\n onClick: onZoomOut,\n disabled: scale <= MIN_SCALE,\n },\n {\n icon: ,\n onClick: onDownload,\n },\n ]}\n rightTools={[\n {\n icon: ,\n onClick: onCancel,\n },\n ]}\n >\n {`${current + 1} / ${list.length}`}\n \n {CanvasContainer({\n className: 'edit-wrap',\n children: (\n <>\n \n {renderPopoverMenu()}\n \n ),\n })}\n {\n \n \n
\n }\n {\n \n \n \n }\n {showInfo && metadata && (\n
\n
\n {Object.keys(metadata).map((key) => (\n
\n {key}\n
\n {typeof metadata[key] === 'object'\n ? JSON.stringify(metadata[key])\n : metadata[key]}\n
\n ))}\n
\n
\n
\n \n
\n
\n )}\n {!showInfo && (\n
\n \n
\n )}\n
\n );\n};\n\nexport default Preview;\n","import React, { useEffect, useMemo, useRef, useState } from 'react';\nimport { AnnotationType, DisplayOption } from './constants';\nimport { useImmer } from 'use-immer';\nimport { cloneDeep } from 'lodash';\nimport useHistory from './hooks/useHistory';\nimport useObjects from './hooks/useObjects';\nimport usePreviousState from './hooks/usePreviousState';\nimport {\n BaseObject,\n Category,\n DEFAULT_DRAW_DATA,\n DEFAULT_EDIT_STATE,\n DrawData,\n EditState,\n EditorMode,\n IAnnotationObject,\n DrawImageData,\n DrawObject,\n} from './type';\nimport useColor from './hooks/useColor';\nimport useMouseCursor from './hooks/useMouseCursor';\nimport useCanvasRender from './hooks/useCanvasRender';\nimport useDataEffect from './hooks/useDataEffect';\nimport { RenderStyles, useToolInstances } from './tools/base';\nimport { zoomImgSize } from './utils/compute';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport { ImageView } from './components/ImageView';\nimport './index.less';\n\nexport interface ViewProps {\n categories: Category[];\n data: DrawImageData;\n objectsFilter?: (imageData: any) => BaseObject[];\n getCustomObjectStyles?: (\n object: IAnnotationObject,\n color: string,\n ) => Partial;\n currentSize?: ISize;\n wrapWidth?: number;\n wrapHeight?: number;\n minHeight?: number;\n displayAnnotationType?: AnnotationType;\n displayOptionsResult?: { [key in DisplayOption]?: boolean };\n}\n\nconst View: React.FC = (props) => {\n const {\n categories,\n data,\n currentSize,\n wrapWidth,\n wrapHeight,\n minHeight,\n objectsFilter,\n getCustomObjectStyles,\n displayAnnotationType,\n displayOptionsResult,\n } = props;\n\n const [annotations, setAnnotations] = useImmer([]);\n\n const [editState, setEditState] = useImmer(\n cloneDeep(DEFAULT_EDIT_STATE),\n );\n\n const [drawData, setDrawData] = useImmer(\n cloneDeep(DEFAULT_DRAW_DATA),\n );\n\n const canvasRef = useRef(null);\n const activeCanvasRef = useRef(null);\n const imgRef = useRef(null);\n\n const imagePos = useRef({ x: 0, y: 0 });\n const [naturalSize, setNaturalSize] = useState({\n width: 0,\n height: minHeight || 0,\n });\n\n const clientSize: ISize = useMemo(() => {\n // Exact size passed in from outside.\n if (currentSize) {\n return currentSize;\n }\n if (!naturalSize.width) {\n // Init default size\n return {\n width: wrapWidth || 0,\n height: wrapHeight || minHeight || 0,\n };\n }\n const [width, height] = zoomImgSize(\n naturalSize.width,\n naturalSize.height,\n wrapWidth,\n wrapHeight,\n );\n return { width, height };\n }, [wrapWidth, wrapHeight, minHeight, naturalSize, currentSize]);\n\n const [contentMouse, containerMouse] = useMemo(() => {\n const mouse: CursorState = {\n screenX: 0,\n screenY: 0,\n clientX: 0,\n clientY: 0,\n pageX: 0,\n pageY: 0,\n elementX: 0,\n elementY: 0,\n elementPosX: 0,\n elementPosY: 0,\n elementW: clientSize.width,\n elementH: clientSize.height,\n };\n return [mouse, mouse];\n }, [clientSize]);\n\n const [preClientSize, clearPreClientSize] =\n usePreviousState(clientSize);\n\n const { labelColors, getAnnotColor } = useColor({\n categories,\n editState,\n });\n\n const { clearHistory, updateHistory, setDrawDataWithHistory } = useHistory({\n clientSize,\n naturalSize,\n setDrawData,\n });\n\n const { addObject, initObjectList, updateObject } = useObjects({\n annotations,\n setAnnotations,\n clientSize,\n naturalSize,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n editState,\n setEditState,\n mode: EditorMode.View,\n displayAnnotationType,\n });\n\n const { updateMouseCursor } = useMouseCursor({\n topCanvas: activeCanvasRef.current,\n editState,\n drawData,\n });\n\n const { objectHooksMap } = useToolInstances({\n imgRef,\n editState,\n clientSize,\n naturalSize,\n contentMouse,\n containerMouse,\n imagePos,\n canvasRef,\n activeCanvasRef,\n setEditState,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n updateHistory,\n updateObject,\n addObject,\n updateMouseCursor,\n displayOptionsResult,\n getAnnotColor,\n });\n\n const { updateRender } = useCanvasRender({\n visible: true,\n drawData,\n editState,\n clientSize,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n imgRef,\n objectHooksMap,\n getCustomObjectStyles,\n });\n\n // =================================================================================================================\n // Effects\n // =================================================================================================================\n\n const { resetDataWithImageData, rebuildDrawData } = useDataEffect({\n imagePos,\n clientSize,\n preClientSize,\n clearPreClientSize,\n naturalSize,\n annotations,\n setAnnotations,\n labelColors,\n drawData,\n setDrawData,\n editState,\n setEditState,\n initObjectList,\n updateRender,\n clearHistory,\n objectsFilter,\n });\n\n /** Reset data when hiding the editor or switching images */\n useEffect(() => {\n resetDataWithImageData(data, true);\n }, [data, objectsFilter]);\n\n /** Custom options changed */\n useEffect(() => {\n rebuildDrawData(true);\n }, [displayAnnotationType, displayOptionsResult, getCustomObjectStyles]);\n\n const onLoadImg = (e: React.UIEvent) => {\n // Set natural size.\n const img = e.target as HTMLImageElement;\n const size = {\n width: img.naturalWidth,\n height: img.naturalHeight,\n };\n setNaturalSize(size);\n };\n\n // =================================================================================================================\n // Render\n // =================================================================================================================\n\n return (\n
\n \n
\n );\n};\n\nexport default View;\n","import { drawRect, drawText, shadeEverythingButRect } from '../utils/draw';\nimport { EObjectType } from '../constants';\nimport { getRectFromPoints, translateRectCoord } from '../utils/compute';\nimport {\n ToolInstanceHook,\n ToolHooksFunc,\n renderActiveRect,\n editBaseElementWhenMouseDown,\n updateEditingRectWhenMouseMove,\n} from './base';\nimport { EObjectStatus } from '../type';\nimport { hexToRgba } from '../utils/color';\nimport { ANNO_FILL_ALPHA } from '../constants/render';\n\nconst useRectangle: ToolInstanceHook = ({\n contentMouse,\n imagePos,\n canvasRef,\n activeCanvasRef,\n editState,\n setEditState,\n drawData,\n setDrawData,\n updateMouseCursor,\n updateObject,\n addObject,\n getAnnotColor,\n displayOptionsResult,\n}) => {\n const renderObject: ToolHooksFunc.RenderObject = ({\n object,\n color,\n styles,\n isFocus,\n }) => {\n const { rect } = object;\n if (rect && rect.visible) {\n let strokeDash = styles.strokeDash;\n let strokeColor = styles.strokeColor;\n let fillColor = styles.fillColor;\n let thickness = styles.thickness;\n if (drawData.isBatchEditing) {\n if (\n object.status === EObjectStatus.Unchecked &&\n !editState.isCtrlPressed\n )\n return;\n if (editState.isCtrlPressed) {\n if (object.status !== EObjectStatus.Unchecked) {\n strokeColor = hexToRgba(color, 0.8);\n strokeDash = [2];\n thickness = 1.5;\n } else {\n fillColor = isFocus\n ? hexToRgba(color, ANNO_FILL_ALPHA.DEFAULT)\n : hexToRgba(color, ANNO_FILL_ALPHA.CTRL_TO_SELECT);\n }\n }\n }\n\n drawRect(\n canvasRef.current!,\n rect,\n strokeColor,\n thickness,\n strokeDash,\n fillColor,\n );\n\n // draw text\n if (displayOptionsResult?.showBoxText) {\n const label =\n object?.conf && object.conf > 0 && object.conf < 1\n ? `${object.label}(${object.conf.toFixed(3)})`\n : object.label;\n drawText(\n canvasRef.current!,\n label || '',\n 13,\n { x: rect.x + 2, y: rect.y + 2 },\n color,\n false,\n 'left',\n );\n }\n\n // draw ctrlpressed rect mask\n if (drawData.isBatchEditing && editState.isCtrlPressed && isFocus) {\n shadeEverythingButRect(activeCanvasRef.current!, rect, '#000', 0.6);\n }\n }\n };\n\n const renderCreatingObject: ToolHooksFunc.RenderCreatingObject = ({\n object,\n styles,\n }) => {\n const { startPoint } = object;\n if (startPoint) {\n // creating\n const rect = getRectFromPoints(\n startPoint,\n {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n },\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const canvasCoordRect = translateRectCoord(rect, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n drawRect(\n activeCanvasRef.current,\n canvasCoordRect,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n styles.fillColor,\n );\n }\n };\n\n const renderEditingObject: ToolHooksFunc.RenderEditingObject = ({\n object,\n styles,\n }) => {\n const { rect } = object;\n if (rect && rect.visible) {\n drawRect(\n activeCanvasRef.current!,\n rect,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n styles.fillColor,\n );\n renderActiveRect(activeCanvasRef.current!, rect);\n }\n };\n\n const renderPrompt: ToolHooksFunc.RenderPrompt = () => {\n // nothing in rect\n };\n\n const startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown = ({\n object,\n event,\n }) => {\n if (event?.button === 2) return false;\n if (\n editBaseElementWhenMouseDown({\n object,\n contentMouse,\n setEditState,\n setDrawData,\n })\n ) {\n return true;\n }\n return false;\n };\n\n const startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown =\n ({ point, basic }) => {\n setDrawData((s) => {\n s.activeObjectIndex = -1;\n s.creatingObject = {\n type: EObjectType.Rectangle,\n startPoint: point,\n ...basic,\n };\n });\n return true;\n };\n\n const updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove =\n ({ object }) => {\n return updateEditingRectWhenMouseMove({\n object,\n editState,\n contentMouse,\n drawData,\n setDrawData,\n updateMouseCursor,\n });\n };\n\n const updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove =\n ({ object }) => {\n return !!object;\n };\n\n const finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp = ({\n object,\n }) => {\n const isResizingOrMoving =\n editState.startRectResizeAnchor || editState.startElementMovePoint;\n if (isResizingOrMoving) {\n updateObject(object, drawData.activeObjectIndex);\n }\n setEditState((s) => {\n s.startRectResizeAnchor = undefined;\n s.startElementMovePoint = undefined;\n });\n return true;\n };\n\n const finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp = ({\n object,\n }) => {\n if (!object || !object.startPoint) return false;\n // Need to check if it can form a rectangle\n if (\n contentMouse.elementX === object.startPoint.x ||\n contentMouse.elementY === object.startPoint.y\n ) {\n setDrawData((s) => {\n s.creatingObject = undefined;\n });\n return true;\n }\n const newRect = getRectFromPoints(\n object.startPoint,\n { x: contentMouse.elementX, y: contentMouse.elementY },\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const newObject = {\n type: EObjectType.Rectangle,\n label: object.label,\n hidden: false,\n rect: { visible: true, ...newRect },\n conf: 1,\n status: EObjectStatus.Commited,\n color: getAnnotColor(object.label),\n };\n addObject(newObject);\n return true;\n };\n\n return {\n renderObject,\n renderCreatingObject,\n renderEditingObject,\n renderPrompt,\n startEditingWhenMouseDown,\n startCreatingWhenMouseDown,\n updateEditingWhenMouseMove,\n updateCreatingWhenMouseMove,\n finishEditingWhenMouseUp,\n finishCreatingWhenMouseUp,\n };\n};\n\nexport default useRectangle;\n","import {\n drawCircleWithFill,\n drawLine,\n drawPolygonWithFill,\n} from '../utils/draw';\nimport { EElementType, EObjectType } from '../constants';\nimport {\n getClosestPointOnLineSegment,\n getInnerPolygonIndexFromGroup,\n getLinesFromPolygon,\n getRectFromPoints,\n getReferencePointsFromRect,\n isInCanvas,\n isPointOnPoint,\n movePoint,\n movePolygon,\n translateAnnotCoord,\n translatePointCoord,\n} from '../utils/compute';\nimport {\n ToolInstanceHook,\n ToolHooksFunc,\n editBaseElementWhenMouseDown,\n getPromptBoolean,\n} from './base';\nimport { hexToRgba } from '../utils/color';\nimport {\n ANNO_FILL_ALPHA,\n ANNO_STROKE_ALPHA,\n PROMPT_FILL_COLOR,\n} from '../constants/render';\nimport { cloneDeep } from 'lodash';\n\nconst usePolygon: ToolInstanceHook = ({\n editState,\n clientSize,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n contentMouse,\n setEditState,\n drawData,\n setDrawData,\n updateHistory,\n updateMouseCursor,\n updateObject,\n addObject,\n onAiAnnotation,\n displayOptionsResult,\n}) => {\n const renderObject: ToolHooksFunc.RenderObject = ({\n object,\n color,\n styles,\n isFocus,\n }) => {\n const { polygon } = object;\n if (polygon && polygon.visible) {\n let fiilColor = !isFocus\n ? hexToRgba(color, ANNO_FILL_ALPHA.SHAPE)\n : styles.fillColor;\n let thickness = styles.thickness;\n if (displayOptionsResult) {\n if (!displayOptionsResult.showSegFilling && !isFocus) {\n fiilColor = 'transparent';\n }\n if (!displayOptionsResult.showSegContour) {\n thickness = 0;\n }\n }\n\n polygon?.group.forEach((polygon) => {\n drawPolygonWithFill(\n canvasRef.current,\n polygon,\n fiilColor,\n styles.strokeColor,\n thickness,\n styles.strokeDash,\n );\n });\n }\n };\n\n const renderCreatingObject: ToolHooksFunc.RenderCreatingObject = ({\n object,\n styles,\n }) => {\n // draw unfinished points and lines\n const { currIndex } = object;\n const annotObject = translateAnnotCoord(object, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n const { polygon } = annotObject;\n if (polygon && polygon.visible) {\n const innerPolygonIdx = getInnerPolygonIndexFromGroup(polygon.group);\n // draw creating polygon\n polygon.group.forEach((polygon, polygonIdx) => {\n if (currIndex === polygonIdx) {\n polygon.forEach((point, pointIdx) => {\n // draw points\n drawCircleWithFill(\n activeCanvasRef.current!,\n point,\n pointIdx === 0 ? 6 : 4,\n styles.strokeColor,\n 3,\n '#1f4dd8',\n );\n // draw lines\n if (polygon.length > 1 && pointIdx < polygon.length - 1) {\n drawLine(\n activeCanvasRef.current!,\n polygon[pointIdx],\n polygon[pointIdx + 1],\n hexToRgba(styles.strokeColor, ANNO_STROKE_ALPHA.CREATING),\n 2.5,\n [0],\n );\n } else if (pointIdx === polygon.length - 1) {\n drawLine(\n activeCanvasRef.current!,\n polygon[pointIdx],\n {\n x: containerMouse.elementX,\n y: containerMouse.elementY,\n },\n hexToRgba(styles.strokeColor, ANNO_STROKE_ALPHA.CREATING_LINE),\n 2.5,\n [5],\n );\n }\n });\n } else {\n if (!innerPolygonIdx.includes(polygonIdx)) {\n drawPolygonWithFill(\n activeCanvasRef.current,\n polygon,\n hexToRgba('#1f4dd8', 0.5),\n '#1f4dd8',\n 2,\n [0],\n );\n }\n }\n });\n innerPolygonIdx.forEach((index) => {\n drawPolygonWithFill(\n activeCanvasRef.current,\n polygon.group[index],\n 'rgba(255, 255, 255, 0.8)',\n '#1f4dd8',\n 2,\n [0],\n );\n });\n }\n };\n\n const renderEditingObject: ToolHooksFunc.RenderEditingObject = ({\n object,\n color,\n styles,\n isFocus,\n }) => {\n const { polygon } = object;\n if (polygon && polygon.visible) {\n const innerPolygonIdx = getInnerPolygonIndexFromGroup(polygon.group);\n const isFocusOnPolygon =\n isFocus &&\n editState.focusEleType === EElementType.Polygon &&\n editState.focusEleIndex === 0;\n\n polygon.group.forEach((polygon, index) => {\n if (!innerPolygonIdx.includes(index)) {\n const fillColor = isFocusOnPolygon\n ? hexToRgba(color, 0.2)\n : 'transparent';\n drawPolygonWithFill(\n activeCanvasRef.current,\n polygon,\n fillColor,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n );\n }\n });\n\n innerPolygonIdx.forEach((index) => {\n const fillColor = isFocusOnPolygon\n ? 'rgba(255, 255, 255, 0.8)'\n : 'transparent';\n drawPolygonWithFill(\n activeCanvasRef.current,\n polygon.group[index],\n fillColor,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n );\n });\n\n // draw points when actived\n polygon.group.forEach((points) => {\n points.forEach((point) => {\n drawCircleWithFill(\n activeCanvasRef.current!,\n point,\n 4,\n color,\n 2,\n '#fff',\n );\n });\n });\n\n // drawHighlight point when foucs\n const { index, pointIndex, lineIndex } = editState.focusPolygonInfo;\n if (index > -1 && pointIndex > -1) {\n const focusPoint = polygon.group[index][pointIndex];\n if (focusPoint) {\n drawCircleWithFill(\n activeCanvasRef.current!,\n focusPoint,\n 4,\n '#fff',\n 5,\n color,\n );\n }\n } else if (index > -1 && lineIndex > -1) {\n const lines = getLinesFromPolygon(polygon.group[index]);\n if (lines[lineIndex]) {\n const { start, end } = lines[lineIndex];\n const midPoint = getClosestPointOnLineSegment(\n {\n x: contentMouse.elementX + imagePos.current.x,\n y: contentMouse.elementY + imagePos.current.y,\n },\n start,\n end,\n );\n if (midPoint) {\n drawCircleWithFill(\n activeCanvasRef.current!,\n midPoint,\n 4,\n '#fff',\n 5,\n color,\n );\n }\n }\n }\n }\n };\n\n const renderPrompt: ToolHooksFunc.RenderPrompt = ({ prompt }) => {\n // draw segmentation reference points\n if (prompt.segmentationClicks) {\n prompt.segmentationClicks.forEach((click) => {\n const canvasCoordPoint = translatePointCoord(click.point, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n drawCircleWithFill(\n activeCanvasRef.current!,\n canvasCoordPoint,\n 4,\n click.isPositive\n ? PROMPT_FILL_COLOR.POSITIVE\n : PROMPT_FILL_COLOR.NEGATIVE,\n 2,\n '#fff',\n );\n });\n }\n };\n\n const startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown = ({\n object,\n event,\n }) => {\n if (event?.button === 2) return false;\n if (\n editBaseElementWhenMouseDown({\n object,\n contentMouse,\n setEditState,\n setDrawData,\n })\n ) {\n return true;\n }\n return false;\n };\n\n const startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown =\n ({ point, basic }) => {\n setDrawData((s) => {\n if (!s.creatingObject || s.activeObjectIndex > -1) {\n s.activeObjectIndex = -1;\n if (s.AIAnnotation) {\n // by drawing rectangle under AI mode\n s.creatingObject = {\n type: EObjectType.Rectangle,\n startPoint: point,\n ...basic,\n color: '#fff',\n };\n } else {\n // create a new polygon manually\n s.creatingObject = {\n type: EObjectType.Polygon,\n polygon: {\n visible: true,\n group: [[point]],\n },\n currIndex: 0,\n ...basic,\n };\n updateHistory(\n cloneDeep({\n drawData: s,\n clientSize,\n }),\n );\n }\n } else {\n if (!s.AIAnnotation) {\n const currIndex = s.creatingObject.currIndex as number;\n const polygon = s.creatingObject.polygon as IElement;\n if (currIndex > -1) {\n const startPoint = polygon.group[currIndex][0];\n // finish creating polygon when click on startpoint\n if (isPointOnPoint(startPoint, contentMouse)) {\n s.creatingObject.currIndex = -1;\n } else if (s.creatingObject.polygon) {\n polygon.group[currIndex].push(point);\n updateHistory(\n cloneDeep({\n drawData: s,\n clientSize,\n }),\n );\n }\n } else {\n polygon.group.push([point]);\n s.creatingObject.currIndex = polygon.group.length - 1;\n updateHistory(\n cloneDeep({\n drawData: s,\n clientSize,\n }),\n );\n }\n }\n }\n });\n return true;\n };\n\n const updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove =\n () => {\n const {\n focusEleType,\n focusEleIndex,\n focusObjectIndex,\n focusPolygonInfo,\n } = editState;\n if (\n focusObjectIndex === drawData.activeObjectIndex &&\n focusEleType === EElementType.Polygon\n ) {\n if (focusPolygonInfo.pointIndex > -1) {\n updateMouseCursor('pointer');\n } else if (focusPolygonInfo.lineIndex > -1) {\n updateMouseCursor('crosshair');\n } else {\n updateMouseCursor('move');\n }\n }\n if (focusEleType === EElementType.Polygon && focusEleIndex === 0) {\n const { index, pointIndex } = editState.focusPolygonInfo;\n if (editState.startElementMovePoint && index > -1) {\n if (pointIndex > -1) {\n // move single point\n setDrawData((s) => {\n if (\n s.activeObjectIndex > -1 &&\n editState.focusEleIndex > -1 &&\n editState.startElementMovePoint &&\n s.creatingObject?.polygon?.group[index]\n ) {\n const polygon = s.creatingObject?.polygon?.group[index];\n polygon[pointIndex] = movePoint(contentMouse);\n }\n });\n return true;\n } else {\n // move polygon\n setDrawData((s) => {\n if (\n s.activeObjectIndex > -1 &&\n editState.focusEleIndex > -1 &&\n editState.startElementMovePoint &&\n s.creatingObject?.polygon?.group[index]\n ) {\n const polygon = s.creatingObject?.polygon?.group[index];\n const newPolygon = movePolygon(\n polygon,\n editState.startElementMovePoint,\n contentMouse,\n );\n s.creatingObject.polygon.group[index] = newPolygon;\n // TODO: fix move offset\n // console.log(\n // '>>> move polygon',\n // editState.startElementMovePoint.mousePoint,\n // 'to', {\n // x: contentMouse.elementX,\n // y: contentMouse.elementY,\n // }\n // );\n setEditState((s) => {\n if (s.startElementMovePoint)\n s.startElementMovePoint.mousePoint = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n });\n }\n });\n return true;\n }\n }\n }\n return false;\n };\n\n const updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove =\n ({ object }) => {\n return !!object;\n };\n\n const finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp = ({\n object,\n }) => {\n const isResizingOrMoving =\n editState.startRectResizeAnchor || editState.startElementMovePoint;\n\n const isMouseStand =\n editState.startElementMovePoint &&\n editState.startElementMovePoint.initPoint?.x === contentMouse.elementX &&\n editState.startElementMovePoint.initPoint?.y === contentMouse.elementY;\n\n const isRemovePolygonPoints =\n isMouseStand &&\n editState.focusPolygonInfo.index > -1 &&\n editState.focusPolygonInfo.pointIndex > -1;\n\n if (isRemovePolygonPoints) {\n const copyObject = cloneDeep(object);\n const { index, pointIndex } = editState.focusPolygonInfo;\n const polygon = copyObject.polygon?.group[index];\n if (polygon && index > -1 && pointIndex > -1 && polygon.length >= 3) {\n polygon.splice(pointIndex, 1);\n }\n updateObject(copyObject, drawData.activeObjectIndex);\n } else if (isResizingOrMoving) {\n updateObject(object, drawData.activeObjectIndex);\n }\n\n setEditState((s) => {\n s.startRectResizeAnchor = undefined;\n s.startElementMovePoint = undefined;\n });\n return true;\n };\n\n const finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp = ({\n event,\n object,\n }) => {\n if (!object) return false;\n\n const mouse = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n if (drawData.AIAnnotation) {\n if (object.type === EObjectType.Polygon) {\n if (!isInCanvas(contentMouse) || !isInCanvas(containerMouse))\n return false;\n // add reference points\n const click = {\n isPositive: getPromptBoolean(event),\n point: mouse,\n };\n const existClicks = drawData.prompt.segmentationClicks || [];\n setDrawData((s) => {\n s.prompt.segmentationClicks = [...existClicks, click];\n });\n onAiAnnotation?.({\n type: EObjectType.Polygon,\n drawData,\n segmentationClicks: [...existClicks, click],\n aiLabels: [object.label],\n });\n } else {\n // first click\n if (\n contentMouse.elementX === object.startPoint?.x &&\n contentMouse.elementY === object.startPoint?.y\n ) {\n if (!isInCanvas(contentMouse)) return false;\n // draw point\n const firstClick = {\n isPositive: true,\n point: mouse,\n };\n setDrawData((s) => {\n s.prompt.segmentationClicks = [firstClick];\n });\n onAiAnnotation?.({\n type: EObjectType.Polygon,\n drawData,\n segmentationClicks: [firstClick],\n });\n } else {\n // draw bbox\n const rect = getRectFromPoints(object.startPoint as IPoint, mouse, {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n });\n const points = getReferencePointsFromRect(rect);\n const bbox = {\n xmin: rect.x,\n ymin: rect.y,\n xmax: rect.x + rect.width,\n ymax: rect.y + rect.height,\n };\n const clicks = points.map((point, index) => {\n return {\n // Only the center point is positive\n isPositive: index === points.length - 1 ? true : false,\n point,\n };\n });\n setDrawData((s) => {\n s.prompt.segmentationClicks = [...clicks];\n });\n onAiAnnotation?.({\n type: EObjectType.Polygon,\n drawData,\n segmentationClicks: clicks,\n bbox,\n });\n }\n setDrawData((s) => (s.creatingObject = undefined));\n }\n } else {\n if (object.currIndex === -1) {\n const { polygon, type, hidden, label, status, color } = object;\n const newObject = {\n polygon,\n type,\n hidden,\n label,\n status,\n color,\n };\n addObject(newObject);\n }\n }\n return true;\n };\n\n return {\n renderObject,\n renderCreatingObject,\n renderEditingObject,\n renderPrompt,\n startEditingWhenMouseDown,\n startCreatingWhenMouseDown,\n updateEditingWhenMouseMove,\n updateCreatingWhenMouseMove,\n finishEditingWhenMouseUp,\n finishCreatingWhenMouseUp,\n };\n};\n\nexport default usePolygon;\n","import { drawCircleWithFill, drawLine, drawRect } from '../utils/draw';\nimport {\n BODY_TEMPLATE,\n EElementType,\n EObjectType,\n KEYPOINTS_VISIBLE_TYPE,\n} from '../constants';\nimport {\n getKeypointsFromRect,\n getRectFromPoints,\n movePoint,\n translatePointsToPointObjs,\n translateRectCoord,\n} from '../utils/compute';\nimport {\n ToolInstanceHook,\n ToolHooksFunc,\n renderActiveRect,\n editBaseElementWhenMouseDown,\n updateEditingRectWhenMouseMove,\n RenderStyles,\n} from './base';\nimport { EObjectStatus } from '../type';\n\nconst renderKeypoints = (\n canvas: HTMLCanvasElement,\n keypoints: {\n points: IElement[];\n lines: number[];\n },\n color: string,\n styles: RenderStyles,\n hideLine?: boolean,\n pointThickness = 4,\n) => {\n const { lines, points } = keypoints;\n\n // draw line\n if (!hideLine) {\n for (let i = 0; i * 2 < lines.length; i++) {\n const [index1, index2] = [lines[i * 2], lines[i * 2 + 1]];\n if (\n points[index1].visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible &&\n points[index2].visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible\n ) {\n drawLine(\n canvas,\n points[index1],\n points[index2],\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n );\n }\n }\n }\n\n // draw circle\n points.forEach((point) => {\n const { x, y, visible, color } = point;\n if (visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible) {\n drawCircleWithFill(canvas, { x, y }, pointThickness, color, 2, '#000');\n }\n });\n};\n\nconst useSkeleton: ToolInstanceHook = ({\n editState,\n clientSize,\n naturalSize,\n contentMouse,\n imagePos,\n canvasRef,\n activeCanvasRef,\n setEditState,\n drawData,\n setDrawData,\n updateMouseCursor,\n addObject,\n updateObject,\n aiLabels,\n onAiAnnotation,\n displayOptionsResult,\n}) => {\n const renderObject: ToolHooksFunc.RenderObject = ({\n object,\n color,\n styles,\n }) => {\n if (object.status === EObjectStatus.Unchecked) return;\n const { rect, keypoints } = object;\n if (rect && rect.visible) {\n if (!displayOptionsResult || displayOptionsResult.showKeyPointsBox) {\n drawRect(\n canvasRef.current!,\n rect,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n styles.fillColor,\n );\n }\n }\n if (keypoints) {\n renderKeypoints(\n canvasRef.current!,\n keypoints,\n color,\n styles,\n displayOptionsResult && !displayOptionsResult.showKeyPointsLine,\n clientSize.width > 400 ? 4 : 2,\n );\n }\n };\n\n const renderCreatingObject: ToolHooksFunc.RenderCreatingObject = ({\n object,\n styles,\n }) => {\n const { startPoint } = object;\n if (startPoint) {\n // creating\n const rect = getRectFromPoints(\n startPoint!,\n {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n },\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const canvasCoordRect = translateRectCoord(rect, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n const { points, lines, pointColors, pointNames } = BODY_TEMPLATE;\n const pointObjs = translatePointsToPointObjs(\n points,\n pointNames,\n pointColors,\n naturalSize,\n clientSize,\n );\n const updatedKeypoints = getKeypointsFromRect(pointObjs, canvasCoordRect);\n\n // draw rect\n drawRect(\n activeCanvasRef.current,\n canvasCoordRect,\n styles.strokeColor,\n styles.thickness,\n );\n\n // draw circles\n updatedKeypoints.forEach((p) => {\n drawCircleWithFill(\n activeCanvasRef.current!,\n { x: p.x, y: p.y },\n 4,\n styles.strokeColor,\n 3,\n '#1f4dd8',\n );\n });\n\n // draw lines\n for (let i = 0; i * 2 < lines.length; i++) {\n const [index1, index2] = [lines[i * 2], lines[i * 2 + 1]];\n drawLine(\n activeCanvasRef.current!,\n updatedKeypoints[index1],\n updatedKeypoints[index2],\n styles.strokeColor,\n 2.5,\n [0],\n );\n }\n }\n };\n\n const renderEditingObject: ToolHooksFunc.RenderEditingObject = ({\n object,\n color,\n styles,\n isFocus,\n }) => {\n const { rect, keypoints } = object;\n if (rect && rect.visible) {\n // editing\n drawRect(\n activeCanvasRef.current!,\n rect,\n styles.strokeColor,\n styles.thickness,\n styles.strokeDash,\n styles.fillColor,\n );\n renderActiveRect(activeCanvasRef.current!, rect);\n }\n if (keypoints) {\n renderKeypoints(activeCanvasRef.current!, keypoints, color, styles);\n\n // draw hightlight circle\n if (\n isFocus &&\n editState.focusEleType === EElementType.Circle &&\n keypoints.points[editState.focusEleIndex]\n ) {\n const { x, y, visible, color } =\n keypoints.points[editState.focusEleIndex];\n if (visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible) {\n drawCircleWithFill(\n activeCanvasRef.current!,\n { x, y },\n 4,\n color,\n 5,\n '#fff',\n );\n }\n }\n }\n };\n\n const renderPrompt: ToolHooksFunc.RenderPrompt = () => {\n // nothing in skeleton\n };\n\n const startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown = ({\n object,\n event,\n }) => {\n if (event?.button === 2) return false;\n if (\n editBaseElementWhenMouseDown({\n object,\n contentMouse,\n setEditState,\n setDrawData,\n })\n ) {\n return true;\n }\n return false;\n };\n\n const startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown =\n ({ point, basic }) => {\n setDrawData((s) => {\n s.activeObjectIndex = -1;\n s.creatingObject = {\n type: EObjectType.Skeleton,\n startPoint: point,\n ...basic,\n };\n });\n return true;\n };\n\n const updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove =\n ({ object }) => {\n // change rect\n if (\n updateEditingRectWhenMouseMove({\n object,\n editState,\n contentMouse,\n drawData,\n setDrawData,\n updateMouseCursor,\n })\n )\n return true;\n\n if (\n editState.focusObjectIndex === drawData.activeObjectIndex &&\n editState.focusEleType === EElementType.Circle\n ) {\n updateMouseCursor('pointer');\n }\n if (editState.focusEleType === EElementType.Circle) {\n // move point\n if (editState.startElementMovePoint) {\n setDrawData((s) => {\n if (\n s.activeObjectIndex > -1 &&\n editState.focusEleIndex > -1 &&\n editState.startElementMovePoint &&\n s.creatingObject?.keypoints?.points?.[editState.focusEleIndex]\n ) {\n const point =\n s.creatingObject?.keypoints?.points?.[editState.focusEleIndex];\n const { x: newX, y: newY } = movePoint(contentMouse);\n point.x = newX;\n point.y = newY;\n }\n });\n return true;\n }\n }\n return false;\n };\n\n const updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove =\n ({ object }) => {\n return !!object;\n };\n\n const finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp = ({\n object,\n }) => {\n const isResizingOrMoving =\n editState.startRectResizeAnchor || editState.startElementMovePoint;\n if (isResizingOrMoving) {\n updateObject(object, drawData.activeObjectIndex);\n }\n\n if (drawData.AIAnnotation) {\n if (\n editState.startElementMovePoint &&\n (editState.startElementMovePoint.mousePoint?.x !==\n contentMouse.elementX ||\n editState.startElementMovePoint.mousePoint?.y !==\n contentMouse.elementY)\n ) {\n onAiAnnotation?.({ type: EObjectType.Skeleton, drawData, aiLabels });\n }\n }\n\n setEditState((s) => {\n s.startRectResizeAnchor = undefined;\n s.startElementMovePoint = undefined;\n });\n return true;\n };\n\n const finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp = ({\n object,\n }) => {\n if (!object || !object.startPoint) return false;\n // Need to check if it can form a rectangle\n if (\n contentMouse.elementX === object.startPoint?.x ||\n contentMouse.elementY === object.startPoint?.y\n ) {\n setDrawData((s) => (s.creatingObject = undefined));\n return true;\n }\n const newRect = getRectFromPoints(\n object.startPoint,\n { x: contentMouse.elementX, y: contentMouse.elementY },\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const { points, lines, pointColors, pointNames } = BODY_TEMPLATE;\n const pointObjs = translatePointsToPointObjs(\n points,\n pointNames,\n pointColors,\n naturalSize,\n clientSize,\n );\n const updatedObjs = getKeypointsFromRect(pointObjs, newRect);\n const newObject = {\n type: EObjectType.Skeleton,\n label: object.label,\n hidden: false,\n color: object.color,\n rect: { visible: true, ...newRect },\n keypoints: {\n points: updatedObjs,\n lines: lines,\n },\n conf: 1,\n status: EObjectStatus.Commited,\n };\n addObject(newObject);\n return true;\n };\n\n return {\n renderObject,\n renderCreatingObject,\n renderEditingObject,\n renderPrompt,\n startEditingWhenMouseDown,\n startCreatingWhenMouseDown,\n updateEditingWhenMouseMove,\n updateCreatingWhenMouseMove,\n finishEditingWhenMouseUp,\n finishCreatingWhenMouseUp,\n };\n};\n\nexport default useSkeleton;\n","import { clearCanvas, drawImage, drawRectWithFill } from '../utils/draw';\nimport { ToolInstanceHook, ToolHooksFunc } from './base';\n\nconst useMatting: ToolInstanceHook = ({\n imgRef,\n imagePos,\n canvasRef,\n clientSize,\n displayOptionsResult,\n}) => {\n const displayMattingImg = (alphaImg: HTMLImageElement) => {\n if (!alphaImg || !canvasRef.current || !imgRef.current) return;\n const { showMattingColorFill } = displayOptionsResult || {};\n const ctx = canvasRef.current!.getContext('2d') as CanvasRenderingContext2D;\n const rect = {\n x: imagePos.current.x,\n y: imagePos.current.y,\n ...clientSize,\n };\n clearCanvas(canvasRef.current);\n drawImage(canvasRef.current, alphaImg, rect);\n if (showMattingColorFill) {\n // Background fill.\n ctx.globalCompositeOperation = 'source-out';\n drawRectWithFill(canvasRef.current, rect, '#000');\n // Core fill.\n ctx.globalCompositeOperation = 'destination-atop';\n drawRectWithFill(canvasRef.current, rect, '#fff');\n } else {\n // Original image fill.\n ctx.globalCompositeOperation = 'source-in';\n drawImage(canvasRef.current, imgRef.current, rect);\n // Background blank.\n ctx.globalCompositeOperation = 'destination-over';\n drawRectWithFill(canvasRef.current, rect, '#fff');\n }\n };\n\n const renderObject: ToolHooksFunc.RenderObject = ({ object }) => {\n const { alphaImageElement } = object;\n if (alphaImageElement) {\n displayMattingImg(alphaImageElement);\n alphaImageElement.onload = () => {\n displayMattingImg(alphaImageElement);\n };\n }\n };\n\n const renderCreatingObject: ToolHooksFunc.RenderCreatingObject = () => {\n // todo\n };\n\n const renderEditingObject: ToolHooksFunc.RenderEditingObject = () => {\n // todo\n };\n\n const renderPrompt: ToolHooksFunc.RenderPrompt = () => {\n // nothing in matting\n };\n\n const startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown =\n () => {\n return false;\n };\n\n const startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown =\n () => {\n return false;\n };\n\n const updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove =\n () => {\n return false;\n };\n\n const updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove =\n () => {\n return false;\n };\n\n const finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp =\n () => {\n return false;\n };\n\n const finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp =\n () => {\n return false;\n };\n\n return {\n renderObject,\n renderCreatingObject,\n renderEditingObject,\n renderPrompt,\n startEditingWhenMouseDown,\n startCreatingWhenMouseDown,\n updateEditingWhenMouseMove,\n updateCreatingWhenMouseMove,\n finishEditingWhenMouseUp,\n finishCreatingWhenMouseUp,\n };\n};\n\nexport default useMatting;\n","/* eslint-disable @typescript-eslint/no-namespace */\nimport { drawRect } from '../utils/draw';\nimport { DisplayOption, EElementType, EObjectType } from '../constants';\nimport {\n Direction,\n getAnchorFixRectPoint,\n getAnchorUnderMouseByRect,\n getClosestPointOnLineSegment,\n getLinesFromPolygon,\n getRectWithCenterAndSize,\n judgeFocusOnElement,\n mapRectToAnchors,\n moveRect,\n resizeRect,\n setRectBetweenPixels,\n} from '../utils/compute';\nimport {\n DrawData,\n EditState,\n EObjectStatus,\n IAnnotationObject,\n ICreatingObject,\n IPrompt,\n} from '../type';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport { Updater } from 'use-immer';\nimport { HistoryItem } from '../hooks/useHistory';\nimport { OnAiAnnotationFunc } from '../hooks/useActions';\nimport useRectangle from './useRectangle';\nimport usePolygon from './usePolygon';\nimport useSkeleton from './useSkeleton';\nimport useMask from './useMask';\nimport useMatting from './useMatting';\n\nexport type RenderStyles = {\n strokeColor: string;\n fillColor: string;\n maskAlpha: number;\n strokeDash: Array;\n thickness: number;\n pointAplha: number;\n};\n\nexport namespace ToolHooksFunc {\n export type RenderObject = (params: {\n object: IAnnotationObject;\n color: string;\n styles: RenderStyles;\n isFocus: boolean;\n }) => void;\n\n export type RenderCreatingObject = (params: {\n object: ICreatingObject;\n color: string;\n styles: RenderStyles;\n }) => void;\n\n export type RenderEditingObject = (params: {\n object: ICreatingObject;\n color: string;\n styles: RenderStyles;\n isFocus: boolean;\n }) => void;\n\n export type RenderPrompt = (params: { prompt: IPrompt }) => void;\n\n export type StartCreatingWhenMouseDown = (params: {\n event: MouseEvent;\n object?: ICreatingObject;\n point: { x: number; y: number };\n basic: {\n hidden: boolean;\n label: string;\n status: EObjectStatus;\n color: string;\n };\n }) => boolean;\n\n export type StartEditingWhenMouseDown = (params: {\n event: MouseEvent;\n object: ICreatingObject;\n }) => boolean;\n\n export type UpdateCreatingWhenMouseMove = (params: {\n event: MouseEvent;\n object?: ICreatingObject;\n }) => boolean;\n\n export type UpdateEditingWhenMouseMove = (params: {\n event: MouseEvent;\n object: ICreatingObject;\n }) => boolean;\n\n export type FinishCreatingWhenMouseUp = (params: {\n event: MouseEvent;\n object?: ICreatingObject;\n }) => boolean;\n\n export type FinishEditingWhenMouseUp = (params: {\n event: MouseEvent;\n object: ICreatingObject;\n }) => boolean;\n}\n\nexport type ToolInstanceHookReturn = {\n renderObject: ToolHooksFunc.RenderObject;\n renderCreatingObject: ToolHooksFunc.RenderCreatingObject;\n renderEditingObject: ToolHooksFunc.RenderEditingObject;\n renderPrompt: ToolHooksFunc.RenderPrompt;\n startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown;\n startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown;\n updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove;\n updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove;\n finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp;\n finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp;\n};\nexport interface ToolInstanceHookProps {\n imgRef: React.RefObject;\n editState: EditState;\n setEditState: Updater;\n drawData: DrawData;\n setDrawData: Updater;\n setDrawDataWithHistory: Updater;\n updateHistory: (item: HistoryItem) => void;\n updateObject: (object: IAnnotationObject, index: number) => void;\n addObject: (object: IAnnotationObject, notActive?: boolean) => void;\n clientSize: ISize;\n naturalSize: ISize;\n contentMouse: CursorState;\n imagePos: React.MutableRefObject;\n containerMouse: CursorState;\n canvasRef: React.RefObject;\n activeCanvasRef: React.RefObject;\n updateMouseCursor: (value: string, position?: Direction) => void;\n getAnnotColor: (category: string) => string;\n aiLabels?: string[];\n onAiAnnotation?: OnAiAnnotationFunc;\n displayOptionsResult?: { [key in DisplayOption]?: boolean };\n}\n\nexport type ToolInstanceHook = (\n props: ToolInstanceHookProps,\n) => ToolInstanceHookReturn;\n\nexport const useToolInstances = (props: ToolInstanceHookProps) => {\n const rectangleHooks = useRectangle(props);\n const polygenHooks = usePolygon(props);\n const skeletonHooks = useSkeleton(props);\n const maskHooks = useMask(props);\n const mattingHooks = useMatting(props);\n\n const objectHooksMap: Record = {\n [EObjectType.Rectangle]: rectangleHooks,\n [EObjectType.Polygon]: polygenHooks,\n [EObjectType.Skeleton]: skeletonHooks,\n [EObjectType.Mask]: maskHooks,\n [EObjectType.Matting]: mattingHooks,\n [EObjectType.Custom]: rectangleHooks, // todo\n };\n\n return {\n objectHooksMap,\n };\n};\n\nexport const getPromptBoolean = (event: MouseEvent): boolean => {\n // Right Mouse Click / Lift Mouse Click + (Alt/Option) -> false\n if (event.button === 2 || (event.button === 0 && event.altKey)) return false;\n return true;\n};\n\nexport const renderActiveRect = (\n canvas: HTMLCanvasElement,\n rect: IElement,\n) => {\n const handleCenters: IPoint[] = mapRectToAnchors(rect).map(\n (rectAnchor) => rectAnchor.position,\n );\n handleCenters.forEach((center: IPoint) => {\n const handleRect: IRect = getRectWithCenterAndSize(center, {\n width: 10,\n height: 10,\n });\n const handleRectBetweenPixels: IRect = setRectBetweenPixels(handleRect);\n drawRect(\n canvas,\n handleRectBetweenPixels,\n 'rgba(0, 0, 0, 0.8)',\n 3,\n [0],\n '#fff',\n );\n });\n};\n\nexport const editBaseElementWhenMouseDown = ({\n object,\n contentMouse,\n setEditState,\n setDrawData,\n}: {\n object: ICreatingObject;\n contentMouse: CursorState;\n setEditState: Updater;\n setDrawData: Updater;\n}) => {\n const { focusEleIndex, focusEleType, focusPolygonInfo } = judgeFocusOnElement(\n contentMouse,\n object,\n );\n if (focusEleType === EElementType.None) return false;\n\n const { rect, keypoints, polygon } = object;\n const mouse = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n setEditState((s) => {\n switch (focusEleType) {\n case EElementType.Rect: {\n if (rect) {\n const anchorUnderMouse = getAnchorUnderMouseByRect(rect, mouse);\n if (anchorUnderMouse) {\n // resize\n s.startRectResizeAnchor = {\n type: anchorUnderMouse.type,\n position: getAnchorFixRectPoint(rect, anchorUnderMouse.type),\n };\n } else {\n // move\n s.startElementMovePoint = {\n topLeftPoint: {\n x: rect.x,\n y: rect.y,\n },\n mousePoint: mouse,\n };\n }\n }\n break;\n }\n case EElementType.Circle: {\n // move circle\n if (keypoints) {\n const point = keypoints.points[focusEleIndex];\n s.startElementMovePoint = {\n topLeftPoint: {\n x: point.x,\n y: point.y,\n },\n mousePoint: mouse,\n };\n }\n break;\n }\n case EElementType.Polygon: {\n const { lineIndex, index } = focusPolygonInfo;\n if (polygon) {\n if (lineIndex > -1) {\n // add point\n const line = getLinesFromPolygon(polygon.group[index])[lineIndex];\n if (line) {\n const midPoint = getClosestPointOnLineSegment(\n mouse,\n line.start,\n line.end,\n );\n setDrawData((s) => {\n const activeObject = s.objectList[s.activeObjectIndex];\n if (activeObject.polygon) {\n activeObject.polygon.group[index].splice(\n lineIndex + 1,\n 0,\n midPoint,\n );\n }\n s.creatingObject = { ...activeObject };\n });\n s.focusPolygonInfo.pointIndex = lineIndex + 1;\n s.startElementMovePoint = {\n topLeftPoint: {\n x: 0,\n y: 0,\n },\n mousePoint: midPoint,\n initPoint: midPoint,\n };\n }\n } else {\n s.startElementMovePoint = {\n topLeftPoint: {\n x: 0,\n y: 0,\n },\n mousePoint: mouse,\n initPoint: mouse,\n };\n }\n }\n break;\n }\n }\n });\n return true;\n};\n\nexport const updateEditingRectWhenMouseMove = ({\n object,\n editState,\n contentMouse,\n drawData,\n setDrawData,\n updateMouseCursor,\n}: {\n object: ICreatingObject;\n editState: EditState;\n contentMouse: CursorState;\n drawData: DrawData;\n setDrawData: Updater;\n updateMouseCursor: (value: string, position?: Direction) => void;\n}) => {\n const {\n focusObjectIndex,\n focusEleIndex,\n focusEleType,\n startRectResizeAnchor,\n } = editState;\n // update mouse cursor\n if (\n focusObjectIndex === drawData.activeObjectIndex &&\n focusEleType === EElementType.Rect &&\n object.rect\n ) {\n const anchorUnderMouse = getAnchorUnderMouseByRect(object.rect, {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n });\n if (anchorUnderMouse) {\n updateMouseCursor('resize', anchorUnderMouse.type);\n } else {\n updateMouseCursor('move');\n }\n }\n if (focusEleType === EElementType.Rect && focusEleIndex === 0) {\n // resize rectangle\n if (startRectResizeAnchor) {\n setDrawData((s) => {\n if (\n s.activeObjectIndex > -1 &&\n editState.startRectResizeAnchor &&\n s.creatingObject &&\n s.creatingObject.rect\n ) {\n const newRect = resizeRect(\n s.creatingObject.rect,\n editState.startRectResizeAnchor,\n contentMouse,\n );\n s.creatingObject.rect = { ...s.creatingObject.rect, ...newRect };\n }\n });\n return true;\n }\n // move rectangle\n if (editState.startElementMovePoint) {\n setDrawData((s) => {\n if (\n s.activeObjectIndex > -1 &&\n editState.startElementMovePoint &&\n s.creatingObject &&\n s.creatingObject.rect\n ) {\n const newRect = moveRect(\n s.creatingObject.rect,\n editState.startElementMovePoint,\n contentMouse,\n );\n s.creatingObject.rect = { ...s.creatingObject.rect, ...newRect };\n }\n });\n return true;\n }\n }\n return false;\n};\n","import {\n clearCanvas,\n drawBooleanBrush,\n drawBooleanPolygon,\n drawCircleWithFill,\n drawImage,\n drawLine,\n drawPath,\n drawQuadraticPath,\n drawRect,\n shadeEverythingButRect,\n} from '../utils/draw';\nimport { EObjectType, ESubToolItem } from '../constants';\nimport {\n getRectFromPoints,\n isInCanvas,\n isPointOnPoint,\n translatePointCoord,\n translatePointZoom,\n translatePolygonCoord,\n translateRectCoord,\n} from '../utils/compute';\nimport { ToolInstanceHook, ToolHooksFunc, getPromptBoolean } from './base';\nimport {\n ANNO_FILL_COLOR,\n ANNO_MASK_ALPHA,\n ANNO_STROKE_ALPHA,\n ANNO_STROKE_COLOR,\n PROMPT_FILL_COLOR,\n} from '../constants/render';\nimport {\n EMaskPromptType,\n ICreatingMaskStep,\n ICreatingObject,\n MaskPromptItem,\n} from '../type';\nimport { hexToRgbArray, hexToRgba } from '../utils/color';\nimport { cloneDeep } from 'lodash';\n\n/**\n * only [0,1] array with rle decode\n * example:\n * [2,3,8,1,....] to [0,0,1,1,1,0,0,0,1,0,....]\n */\nconst decodeRle = (arr: number[], length: number) => {\n const result = new Array(length).fill(0);\n for (let i = 0; i < arr.length; i += 2) {\n const spliceLen = Math.min(arr[i + 1], length - arr[i]);\n for (let j = 0; j < spliceLen; j++) {\n result[arr[i] + j] = 1;\n }\n }\n return result;\n};\n\n/**\n * only [0,1] array with rle encode\n * example:\n * [0,0,1,1,1,0,0,0,1,0,....] to [2,3,8,1,....]\n */\nconst encodeRle = (arr: number[]) => {\n const result = [];\n let curLen = 0;\n let len = arr.length;\n for (let i = 0; i < len; i++) {\n const value = arr[i];\n if (curLen !== 0) {\n if (value === 1) {\n curLen++;\n } else {\n result.push(curLen);\n curLen = 0;\n }\n } else if (value === 1) {\n result.push(i);\n curLen = 1;\n }\n }\n if (curLen !== 0) {\n result.push(curLen);\n }\n return result;\n};\n\nexport const renderMaskSteps = (\n maskCanvas: HTMLCanvasElement,\n imagePos: IPoint,\n clientSize: ISize,\n naturalSize: ISize,\n strokeColor: string,\n tempMaskSteps?: ICreatingMaskStep[],\n) => {\n const ctx = maskCanvas.getContext('2d');\n if (!ctx) return null;\n\n // prevent the mask from exceeding the image boundaries.\n ctx.save();\n ctx.beginPath();\n ctx.rect(imagePos.x, imagePos.y, clientSize.width, clientSize.height);\n ctx.clip();\n\n // draw temp mask according to step queue\n if (tempMaskSteps && tempMaskSteps?.length > 0) {\n tempMaskSteps.forEach((step) => {\n const canvasCoordPoints = translatePolygonCoord(step.points, {\n x: -imagePos.x,\n y: -imagePos.y,\n });\n\n if (\n step.tool === ESubToolItem.PenAdd ||\n step.tool === ESubToolItem.PenErase\n ) {\n drawBooleanPolygon(\n maskCanvas!,\n canvasCoordPoints,\n step.positive,\n hexToRgba(strokeColor, ANNO_MASK_ALPHA.CREATING),\n 'transparent',\n );\n }\n\n if (\n step.tool === ESubToolItem.BrushAdd ||\n step.tool === ESubToolItem.BrushErase\n ) {\n drawBooleanBrush(\n maskCanvas!,\n canvasCoordPoints,\n step.positive,\n strokeColor,\n ANNO_MASK_ALPHA.CREATING,\n (step.radius * clientSize.width) / naturalSize.width,\n );\n }\n });\n }\n\n ctx.restore();\n};\n\nexport const renderMask = (\n maskCanvas: HTMLCanvasElement,\n creatingObject: ICreatingObject,\n imagePos: IPoint,\n strokeColor: string,\n mousePoint: IPoint,\n clientSize: ISize,\n naturalSize: ISize,\n) => {\n if (!maskCanvas) return;\n\n const { maskStep, tempMaskSteps, maskCanvasElement } = creatingObject;\n const ctx = maskCanvas.getContext('2d');\n if (!ctx) return null;\n\n // draw mask image\n if (maskCanvasElement) {\n ctx.globalAlpha = ANNO_MASK_ALPHA.CREATING;\n drawImage(maskCanvas, maskCanvasElement, {\n x: imagePos.x,\n y: imagePos.y,\n width: clientSize.width,\n height: clientSize.height,\n });\n ctx.globalAlpha = 1;\n }\n\n // draw temp mask according to step queue\n renderMaskSteps(\n maskCanvas,\n imagePos,\n clientSize,\n naturalSize,\n strokeColor,\n tempMaskSteps,\n );\n\n // draw currently step when mouse move\n if (maskStep && maskStep.points.length > 0) {\n const color =\n maskStep.tool === ESubToolItem.PenAdd ||\n maskStep.tool === ESubToolItem.BrushAdd\n ? ANNO_FILL_COLOR.CREATING_POSITIVE\n : ANNO_FILL_COLOR.CREATING_NEGATIVE;\n const canvasCoordPath = translatePolygonCoord(maskStep.points, {\n x: -imagePos.x,\n y: -imagePos.y,\n });\n\n if (\n maskStep.tool === ESubToolItem.PenAdd ||\n maskStep.tool === ESubToolItem.PenErase\n ) {\n // draw start point\n drawCircleWithFill(\n maskCanvas!,\n canvasCoordPath[0],\n 6,\n hexToRgba(color, ANNO_STROKE_ALPHA.CREATING),\n 3,\n ANNO_STROKE_COLOR.CREATING,\n );\n\n if (canvasCoordPath.length > 0) {\n // draw path\n drawPath(\n maskCanvas!,\n canvasCoordPath,\n hexToRgba(color, ANNO_STROKE_ALPHA.CREATING),\n 2.5,\n [0],\n );\n\n // draw dash line for mouse\n drawLine(\n maskCanvas!,\n canvasCoordPath[canvasCoordPath.length - 1],\n mousePoint,\n hexToRgba(color, ANNO_STROKE_ALPHA.CREATING_LINE),\n 2.5,\n [5],\n );\n }\n }\n\n if (\n maskStep.tool === ESubToolItem.BrushAdd ||\n maskStep.tool === ESubToolItem.BrushErase ||\n maskStep.tool === ESubToolItem.AutoSegmentByStroke\n ) {\n if (canvasCoordPath.length > 1) {\n drawQuadraticPath(\n maskCanvas!,\n canvasCoordPath,\n hexToRgba(color, ANNO_MASK_ALPHA.CREATING),\n (maskStep.radius * clientSize.width) / naturalSize.width,\n );\n }\n }\n }\n};\n\nexport const changeMaskCanvasColor = (\n maskCanvas: HTMLCanvasElement,\n color: string,\n) => {\n const imageCtx = maskCanvas.getContext('2d', { willReadFrequently: true });\n\n if (!imageCtx) {\n return null;\n }\n const nImageData = imageCtx.getImageData(\n 0,\n 0,\n maskCanvas.width,\n maskCanvas.height,\n );\n\n // Change color by pixel\n const rgb = hexToRgbArray(color);\n for (let i = nImageData.data.length / 4; i--; ) {\n if (nImageData.data[i * 4 + 3] > 0) {\n nImageData.data[i * 4] = rgb[0];\n nImageData.data[i * 4 + 1] = rgb[1];\n nImageData.data[i * 4 + 2] = rgb[2];\n nImageData.data[i * 4 + 3] = 255;\n }\n }\n clearCanvas(maskCanvas);\n imageCtx.putImageData(nImageData, 0, 0);\n\n return maskCanvas;\n};\n\nexport const objectToRle = (\n clientSize: ISize,\n naturalSize: ISize,\n maskSteps?: ICreatingMaskStep[],\n maskCanvasElement?: HTMLCanvasElement,\n) => {\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n if (!ctx || !maskSteps) return null;\n\n canvas.width = naturalSize.width;\n canvas.height = naturalSize.height;\n\n // translate size\n const newSteps = maskSteps.map((step) => {\n return {\n ...step,\n points: step.points.map((point) =>\n translatePointZoom(point, clientSize, naturalSize),\n ),\n };\n });\n\n // render edit maskImage\n if (maskCanvasElement) {\n drawImage(canvas, maskCanvasElement, {\n x: 0,\n y: 0,\n width: naturalSize.width,\n height: naturalSize.height,\n });\n }\n\n // render new mask object\n renderMaskSteps(\n canvas,\n { x: 0, y: 0 },\n naturalSize, // target clientsize\n naturalSize,\n '#fff',\n newSteps,\n );\n\n // getImageData\n const maskData = ctx.getImageData(\n 0,\n 0,\n naturalSize.width,\n naturalSize.height,\n );\n\n // Grayscale pixels respecting the opacity\n let maskPixelCount = 0;\n // custom encode rle\n const arr = new Array(maskData.data.length / 4).fill(0);\n for (let i = maskData.data.length / 4; i--; ) {\n let maskAplha = 0;\n if (maskData.data[i * 4 + 3] > 0) {\n maskPixelCount++;\n maskAplha = 1;\n arr[i] = 1;\n }\n maskData.data[i * 4] =\n maskData.data[i * 4 + 1] =\n maskData.data[i * 4 + 2] =\n maskData.data[i * 4 + 3] =\n maskAplha;\n }\n\n // @thi.ng/rle-pack encode\n // const arr = encode(maskData.data, maskData.data.length);\n // return maskPixelCount > 0 ? Array.from(arr) : [];\n\n // console.log('>>>> output', encodeRle(arr));\n return maskPixelCount > 0 ? encodeRle(arr) : [];\n};\n\nexport const rleToCanvas = (rle: number[], size: ISize, color: string) => {\n const { width, height } = size;\n\n const canvas = document.createElement('canvas');\n const ctx = canvas.getContext('2d');\n\n canvas.width = width;\n canvas.height = height;\n\n if (!ctx) return null;\n\n const newdata = ctx.createImageData(width, height);\n const rgb = hexToRgbArray(color);\n\n // @thi.ng/rle-pack decode\n // const decoded = decode(rle as unknown as Uint8Array);\n // newdata.data.set(decoded, 0);\n // for (let i = newdata.data.length / 4; i--; ) {\n // if (newdata.data[i * 4 + 3] > 0) {\n // newdata.data[i * 4] = rgb[0];\n // newdata.data[i * 4 + 1] = rgb[1];\n // newdata.data[i * 4 + 2] = rgb[2];\n // newdata.data[i * 4 + 3] = 255;\n // }\n // }\n\n // custom rle decode\n const maskArr = decodeRle(rle, Math.ceil(width) * Math.ceil(height));\n for (let i = newdata.data.length / 4; i--; ) {\n if (maskArr[i] > 0) {\n newdata.data[i * 4] = rgb[0];\n newdata.data[i * 4 + 1] = rgb[1];\n newdata.data[i * 4 + 2] = rgb[2];\n newdata.data[i * 4 + 3] = 255;\n }\n }\n\n ctx.putImageData(newdata, 0, 0);\n\n return canvas;\n};\n\nconst useMask: ToolInstanceHook = ({\n editState,\n clientSize,\n naturalSize,\n contentMouse,\n imagePos,\n containerMouse,\n canvasRef,\n activeCanvasRef,\n drawData,\n setDrawData,\n setDrawDataWithHistory,\n updateHistory,\n onAiAnnotation,\n updateMouseCursor,\n}) => {\n const renderObject: ToolHooksFunc.RenderObject = ({ object, styles }) => {\n const { maskCanvasElement } = object;\n const ctx = canvasRef.current!.getContext('2d') as CanvasRenderingContext2D;\n const tempAlpha = ctx.globalAlpha;\n ctx.globalAlpha = ctx.globalAlpha * styles.maskAlpha;\n drawImage(canvasRef.current!, maskCanvasElement, {\n x: imagePos.current.x,\n y: imagePos.current.y,\n width: clientSize.width,\n height: clientSize.height,\n });\n // restore\n ctx.globalAlpha = tempAlpha;\n };\n\n const renderCreatingObject: ToolHooksFunc.RenderCreatingObject = ({\n object,\n color,\n }) => {\n if (editState.hideCreatingObject) {\n return;\n }\n renderMask(\n activeCanvasRef.current!,\n object,\n imagePos.current,\n color,\n {\n x: containerMouse.elementX,\n y: containerMouse.elementY,\n },\n clientSize,\n naturalSize,\n );\n };\n\n const renderEditingObject: ToolHooksFunc.RenderEditingObject = ({\n object,\n color,\n }) => {\n if (editState.hideCreatingObject) {\n return;\n }\n renderMask(\n activeCanvasRef.current!,\n object,\n imagePos.current,\n color,\n {\n x: containerMouse.elementX,\n y: containerMouse.elementY,\n },\n clientSize,\n naturalSize,\n );\n };\n\n const renderPrompt: ToolHooksFunc.RenderPrompt = ({ prompt }) => {\n // draw creating prompt\n if (prompt.creatingMask) {\n const strokeColor = ANNO_STROKE_COLOR.CREATING;\n const fillColor = ANNO_FILL_COLOR.CREATING;\n switch (prompt.creatingMask.type) {\n case EMaskPromptType.Rect: {\n const { startPoint } = prompt.creatingMask;\n const rect = getRectFromPoints(\n startPoint!,\n {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n },\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const canvasCoordRect = translateRectCoord(rect, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n drawRect(\n activeCanvasRef.current,\n canvasCoordRect,\n strokeColor,\n 2,\n [0],\n fillColor,\n );\n break;\n }\n case EMaskPromptType.Point: {\n if (!prompt.creatingMask.point) break;\n const canvasCoordPoint = translatePointCoord(\n prompt.creatingMask.point,\n {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n },\n );\n drawCircleWithFill(\n activeCanvasRef.current!,\n canvasCoordPoint,\n 4,\n prompt.creatingMask.isPositive\n ? PROMPT_FILL_COLOR.POSITIVE\n : PROMPT_FILL_COLOR.NEGATIVE,\n 2,\n '#fff',\n );\n }\n case EMaskPromptType.EdgeStitch:\n case EMaskPromptType.Stroke: {\n if (!prompt.creatingMask.stroke || !prompt.creatingMask.radius) break;\n const canvasCoordStroke = translatePolygonCoord(\n prompt.creatingMask.stroke,\n {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n },\n );\n const radius =\n (prompt.creatingMask.radius * clientSize.width) / naturalSize.width;\n const color =\n prompt.creatingMask.type === EMaskPromptType.EdgeStitch\n ? hexToRgba(strokeColor, ANNO_MASK_ALPHA.CREATING)\n : prompt.creatingMask.isPositive\n ? PROMPT_FILL_COLOR.POSITIVE\n : PROMPT_FILL_COLOR.NEGATIVE;\n drawQuadraticPath(\n activeCanvasRef.current!,\n canvasCoordStroke,\n color,\n radius,\n );\n break;\n }\n default:\n break;\n }\n\n // draw active area while loading ai annotations\n if (editState.isRequiring && prompt.activeRectWhileLoading) {\n const canvasCoordRect = translateRectCoord(\n prompt.activeRectWhileLoading,\n {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n },\n );\n shadeEverythingButRect(activeCanvasRef.current!, canvasCoordRect);\n }\n }\n\n // draw existing prompts\n if (prompt.maskPrompts) {\n prompt.maskPrompts.forEach((item) => {\n if (item.type === EMaskPromptType.Point) {\n const canvasCoordPoint = translatePointCoord(item.point!, {\n x: -imagePos.current.x,\n y: -imagePos.current.y,\n });\n drawCircleWithFill(\n activeCanvasRef.current!,\n canvasCoordPoint,\n 4,\n item.isPositive\n ? PROMPT_FILL_COLOR.POSITIVE\n : PROMPT_FILL_COLOR.NEGATIVE,\n 2,\n '#fff',\n );\n }\n });\n }\n };\n\n const updateMaskWhenMouseDown = (event: MouseEvent) => {\n const mouse = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n setDrawData((s) => {\n switch (s.selectedSubTool) {\n case ESubToolItem.PenAdd:\n case ESubToolItem.PenErase:\n case ESubToolItem.BrushAdd:\n case ESubToolItem.BrushErase:\n if (s.creatingObject) {\n if (s.creatingObject.maskStep) {\n // add points for currently path\n s.creatingObject.maskStep.points.push(mouse);\n // judege to close path\n if (\n [ESubToolItem.PenAdd, ESubToolItem.PenErase].includes(\n s.selectedSubTool,\n ) &&\n isPointOnPoint(\n s.creatingObject.maskStep.points[0],\n contentMouse,\n )\n ) {\n s.creatingObject.tempMaskSteps?.push(s.creatingObject.maskStep);\n s.creatingObject.maskStep = undefined;\n }\n } else {\n // init new step for creating points\n s.creatingObject.maskStep = {\n tool: s.selectedSubTool,\n positive:\n s.selectedSubTool === ESubToolItem.PenAdd ||\n s.selectedSubTool === ESubToolItem.BrushAdd,\n points: [mouse],\n radius: s.brushSize,\n };\n }\n if (\n ![ESubToolItem.BrushAdd, ESubToolItem.BrushErase].includes(\n s.selectedSubTool,\n )\n ) {\n // Brush tool need not push history when mousedown\n updateHistory(\n cloneDeep({\n drawData: s,\n clientSize,\n }),\n );\n }\n }\n s.prompt.segmentationMask = undefined;\n break;\n case ESubToolItem.AutoSegmentByBox:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Rect,\n startPoint: mouse,\n isPositive: true,\n };\n break;\n case ESubToolItem.AutoSegmentByClick:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Point,\n startPoint: mouse,\n point: mouse,\n isPositive: getPromptBoolean(event),\n };\n break;\n case ESubToolItem.AutoSegmentByStroke:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Stroke,\n startPoint: mouse,\n stroke: [mouse],\n radius: s.brushSize,\n isPositive: getPromptBoolean(event),\n };\n break;\n case ESubToolItem.AutoEdgeStitching:\n s.prompt.creatingMask = {\n type: EMaskPromptType.EdgeStitch,\n startPoint: mouse,\n stroke: [mouse],\n radius: s.brushSize,\n isPositive: true,\n };\n default:\n break;\n }\n });\n };\n\n const startEditingWhenMouseDown: ToolHooksFunc.StartEditingWhenMouseDown = ({\n event,\n }) => {\n updateMaskWhenMouseDown(event);\n return true;\n };\n\n const startCreatingWhenMouseDown: ToolHooksFunc.StartCreatingWhenMouseDown =\n ({ event, object, point, basic }) => {\n if (!object) {\n setDrawData((s) => {\n s.activeObjectIndex = -1;\n switch (s.selectedSubTool) {\n case ESubToolItem.PenAdd:\n case ESubToolItem.PenErase:\n case ESubToolItem.BrushAdd:\n case ESubToolItem.BrushErase:\n s.creatingObject = {\n ...basic,\n type: EObjectType.Mask,\n startPoint: point,\n maskStep: {\n tool: s.selectedSubTool,\n positive:\n s.selectedSubTool === ESubToolItem.PenAdd ||\n s.selectedSubTool === ESubToolItem.BrushAdd,\n points: [point],\n radius: s.brushSize,\n },\n tempMaskSteps: [],\n };\n s.prompt.segmentationMask = undefined;\n break;\n case ESubToolItem.AutoSegmentByBox:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Rect,\n startPoint: point,\n isPositive: true,\n };\n break;\n case ESubToolItem.AutoSegmentByClick:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Point,\n startPoint: point,\n point: point,\n isPositive: getPromptBoolean(event),\n };\n break;\n case ESubToolItem.AutoSegmentByStroke:\n s.prompt.creatingMask = {\n type: EMaskPromptType.Stroke,\n startPoint: point,\n stroke: [point],\n radius: s.brushSize,\n isPositive: getPromptBoolean(event),\n };\n break;\n case ESubToolItem.AutoEdgeStitching:\n s.prompt.creatingMask = {\n type: EMaskPromptType.EdgeStitch,\n startPoint: point,\n stroke: [point],\n radius: s.brushSize,\n isPositive: true,\n };\n break;\n default:\n break;\n }\n });\n } else {\n updateMaskWhenMouseDown(event);\n }\n return true;\n };\n\n const updateMaskWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove = ({\n event,\n object,\n }) => {\n if (object || drawData.prompt.creatingMask) {\n updateMouseCursor('crosshair');\n const allowRecordMousePath = [\n ESubToolItem.BrushAdd,\n ESubToolItem.BrushErase,\n ESubToolItem.PenAdd,\n ESubToolItem.PenErase,\n ESubToolItem.AutoSegmentByStroke,\n ESubToolItem.AutoEdgeStitching,\n ].includes(drawData.selectedSubTool);\n\n // Left/Right button is pressed while mousemove\n const isMousePress = event.buttons === 1 || event.buttons === 2;\n if (allowRecordMousePath && isMousePress) {\n // checkContainerVisibleArea();\n const mouse = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n const isCreatingPrompt = [\n ESubToolItem.AutoSegmentByStroke,\n ESubToolItem.AutoEdgeStitching,\n ].includes(drawData.selectedSubTool);\n setDrawData((s) => {\n if (isCreatingPrompt) {\n s.prompt.creatingMask?.stroke?.push(mouse);\n } else {\n s.creatingObject?.maskStep?.points.push(mouse);\n }\n });\n }\n return true;\n }\n return false;\n };\n\n const updateEditingWhenMouseMove: ToolHooksFunc.UpdateEditingWhenMouseMove =\n ({ object, event }) => {\n return updateMaskWhenMouseMove({\n object,\n event,\n });\n };\n\n const updateCreatingWhenMouseMove: ToolHooksFunc.UpdateCreatingWhenMouseMove =\n ({ object, event }) => {\n return updateMaskWhenMouseMove({\n object,\n event,\n });\n };\n\n const finishMaskWhenMouseUp = () => {\n if (!drawData.creatingObject && !drawData.prompt.creatingMask) return;\n const mouse = {\n x: contentMouse.elementX,\n y: contentMouse.elementY,\n };\n switch (drawData.selectedSubTool) {\n case ESubToolItem.BrushAdd:\n case ESubToolItem.BrushErase:\n case ESubToolItem.PenAdd:\n case ESubToolItem.PenErase: {\n setDrawDataWithHistory((s) => {\n if (\n s.creatingObject &&\n s.creatingObject.tempMaskSteps &&\n s.creatingObject.maskStep &&\n s.creatingObject.maskStep.points.length > 1\n ) {\n if (\n [ESubToolItem.BrushAdd, ESubToolItem.BrushErase].includes(\n s.selectedSubTool,\n ) ||\n ([ESubToolItem.PenAdd, ESubToolItem.PenErase].includes(\n s.selectedSubTool,\n ) &&\n isPointOnPoint(\n s.creatingObject.maskStep.points[0],\n contentMouse,\n ))\n ) {\n s.creatingObject.tempMaskSteps?.push(s.creatingObject.maskStep);\n s.creatingObject.maskStep = undefined;\n }\n }\n s.prompt.segmentationMask = undefined;\n });\n break;\n }\n case ESubToolItem.AutoSegmentByBox: {\n if (!drawData.prompt.creatingMask?.startPoint) break;\n if (\n mouse.x === drawData.prompt.creatingMask.startPoint?.x ||\n mouse.y === drawData.prompt.creatingMask.startPoint?.y\n ) {\n setDrawData((s) => (s.prompt.creatingMask = undefined));\n break;\n }\n const rect = getRectFromPoints(\n drawData.prompt.creatingMask.startPoint as IPoint,\n mouse,\n {\n width: contentMouse.elementW,\n height: contentMouse.elementH,\n },\n );\n const promptItem: MaskPromptItem = {\n type: EMaskPromptType.Rect,\n isPositive: true,\n rect,\n };\n setDrawDataWithHistory((s) => {\n s.prompt.activeRectWhileLoading = rect;\n });\n const maskPrompts = drawData.prompt.maskPrompts\n ? [...drawData.prompt.maskPrompts, promptItem]\n : [promptItem];\n onAiAnnotation?.({ type: EObjectType.Mask, drawData, maskPrompts });\n break;\n }\n case ESubToolItem.AutoSegmentByClick: {\n if (\n !isInCanvas(contentMouse) ||\n !isInCanvas(containerMouse) ||\n !drawData.prompt.creatingMask?.point\n )\n break;\n const promptItem: MaskPromptItem = {\n type: EMaskPromptType.Point,\n isPositive: drawData.prompt.creatingMask.isPositive,\n point: drawData.prompt.creatingMask.point,\n };\n const maskPrompts = drawData.prompt.maskPrompts\n ? [...drawData.prompt.maskPrompts, promptItem]\n : [promptItem];\n onAiAnnotation?.({ type: EObjectType.Mask, drawData, maskPrompts });\n break;\n }\n case ESubToolItem.AutoSegmentByStroke: {\n if (!drawData.prompt.creatingMask?.stroke) break;\n const promptItem: MaskPromptItem = {\n type: EMaskPromptType.Stroke,\n isPositive: drawData.prompt.creatingMask.isPositive,\n stroke: drawData.prompt.creatingMask.stroke,\n radius: drawData.brushSize,\n };\n const maskPrompts = drawData.prompt.maskPrompts\n ? [...drawData.prompt.maskPrompts, promptItem]\n : [promptItem];\n onAiAnnotation?.({ type: EObjectType.Mask, drawData, maskPrompts });\n break;\n }\n case ESubToolItem.AutoEdgeStitching: {\n if (!drawData.prompt.creatingMask?.stroke) break;\n onAiAnnotation?.({ type: EObjectType.Mask, drawData });\n break;\n }\n }\n };\n\n const finishEditingWhenMouseUp: ToolHooksFunc.FinishEditingWhenMouseUp =\n () => {\n finishMaskWhenMouseUp();\n return true;\n };\n\n const finishCreatingWhenMouseUp: ToolHooksFunc.FinishCreatingWhenMouseUp =\n () => {\n finishMaskWhenMouseUp();\n return true;\n };\n\n return {\n renderObject,\n renderCreatingObject,\n renderEditingObject,\n renderPrompt,\n startEditingWhenMouseDown,\n startCreatingWhenMouseDown,\n updateEditingWhenMouseMove,\n updateCreatingWhenMouseMove,\n finishEditingWhenMouseUp,\n finishCreatingWhenMouseUp,\n };\n};\n\nexport default useMask;\n","import {\n EBasicToolItem,\n EElementType,\n EObjectType,\n ESubToolItem,\n EToolType,\n} from './constants';\nimport { RectAnchor } from './utils/compute';\n\nexport interface Category {\n id: string;\n name: string;\n}\n\nexport interface BaseObject {\n /** catagory */\n categoryId?: string;\n categoryName?: string;\n boundingBox?: IBoundingBox;\n /** y1,x1,y2,x2 -> x1,y1 */\n segmentation?: string;\n /** matting url */\n alpha?: string;\n /**\n * keypoints:[x, y, z, w, visible, conf, ...]. (Needs to be split manually.)\n * visible 0: not labeled, v=1: labeled but not visible, and v=2: labeled and visible.\n */\n points?: number[];\n /** [r, g, b, ...] */\n pointColors?: string[];\n pointNames?: string[];\n /** Keypoint connection. [start point index, end point index, ...] */\n lines?: number[];\n /** mask */\n mask?: number[];\n}\n\nexport interface DrawObject extends BaseObject {\n conf?: number;\n labelId?: string;\n compareResult?: string;\n}\n\nexport interface DrawImageData {\n id: string;\n url: string;\n urlFullRes: string;\n objects: DrawObject[];\n metadata?: Record;\n}\n\nexport enum EObjectStatus {\n Unchecked,\n Checked,\n Commited,\n}\n\nexport interface IAnnotationObject {\n type: EObjectType;\n label: string;\n hidden: boolean;\n color: string; // hex\n rect?: IElement;\n polygon?: IElement;\n keypoints?: {\n points: IElement[];\n lines: number[];\n };\n maskRle?: number[];\n maskCanvasElement?: any;\n alpha?: string;\n alphaImageElement?: any;\n conf?: number;\n labelId?: string;\n compareResult?: string;\n status: EObjectStatus;\n}\n\nexport interface ICreatingMaskStep {\n tool: ESubToolItem;\n /** Add / Erase an area for Mask */\n positive: boolean;\n /** The points stroked by Pen Tool or Brush Tool */\n points: IPoint[];\n radius: number;\n}\n\nexport interface ICreatingObject extends IAnnotationObject {\n /** To determine Which polygon corresponds to the creation of a new polygon */\n currIndex?: number;\n /** Starting stretching point when creating a new Rect/Skeleton object */\n startPoint?: IPoint;\n /** Currently drawing path creating by Pen Tool or Brush Tool */\n maskStep?: ICreatingMaskStep;\n /** Steps for creating mask object */\n tempMaskSteps?: ICreatingMaskStep[];\n}\n\nexport enum EMaskPromptType {\n Rect = 'rect',\n Point = 'point',\n Stroke = 'stroke',\n EdgeStitch = 'edgeStitch',\n}\n\nexport type MaskPromptItem = {\n type: EMaskPromptType;\n isPositive: boolean;\n startPoint?: IPoint;\n rect?: IRect;\n point?: IPoint;\n stroke?: IPoint[];\n radius?: number;\n};\n\nexport interface IPrompt {\n creatingMask?: MaskPromptItem;\n maskPrompts?: MaskPromptItem[];\n segmentationClicks?: {\n point: IPoint;\n isPositive: boolean;\n }[];\n segmentationMask?: string;\n activeRectWhileLoading?: IRect;\n}\n\n/**\n * Need to be saved in history\n */\nexport interface DrawData {\n initialized: boolean;\n\n /** Selected tool */\n selectedTool: EToolType;\n selectedSubTool: ESubToolItem;\n AIAnnotation: boolean;\n brushSize: number;\n\n /** drawed */\n objectList: IAnnotationObject[];\n\n /** drawing */\n activeClassName: string;\n activeObjectIndex: number;\n creatingObject?: ICreatingObject; // - editing / creating\n isBatchEditing: boolean; // active while handle batch predictions by model\n limitConf: number;\n\n /** prompt actions */\n prompt: IPrompt;\n}\n\nexport interface IImageDisplayOptions {\n brightness: number;\n contrast: number;\n saturate: number;\n}\n\nexport interface IAnnotsDisplayOptions {\n colorByCategory: boolean; // color by category by instance\n}\n\nexport interface EditState {\n isLoading: boolean;\n isLoadingError: boolean;\n isRequiring: boolean;\n allowMove: boolean;\n latestLabel: string;\n startRectResizeAnchor?: RectAnchor;\n startElementMovePoint?: {\n topLeftPoint: IPoint;\n mousePoint: IPoint;\n initPoint?: IPoint;\n };\n focusObjectIndex: number;\n foucsObjectAllIndexs: number[];\n focusEleType: EElementType;\n focusEleIndex: number;\n focusPolygonInfo: {\n index: number;\n pointIndex: number;\n lineIndex: number;\n };\n imageCacheId?: string;\n isCtrlPressed: boolean;\n hideCreatingObject: boolean;\n imageDisplayOptions: IImageDisplayOptions;\n annotsDisplayOptions: IAnnotsDisplayOptions;\n}\n\nexport const enum EditorMode {\n View,\n Edit,\n Review,\n}\n\nexport enum EQaAction {\n Accept = 'accept',\n Reject = 'reject',\n ForceAccept = 'force_accept',\n}\n\nexport const DEFAULT_DRAW_DATA: DrawData = {\n initialized: false,\n\n /** Selected tool */\n selectedTool: EBasicToolItem.Drag,\n selectedSubTool: ESubToolItem.PenAdd,\n AIAnnotation: false,\n\n /** drawed */\n objectList: [],\n activeObjectIndex: -1,\n activeClassName: '',\n creatingObject: undefined,\n brushSize: 20,\n prompt: {},\n isBatchEditing: false,\n limitConf: 0,\n};\n\nexport const DEFAULT_IMG_DISPLAY_OPTIONS: IImageDisplayOptions = {\n brightness: 100,\n contrast: 100,\n saturate: 100,\n};\n\nexport const DEFAULT_ANNOTS_DISPLAY_OPTIONS: IAnnotsDisplayOptions = {\n colorByCategory: true,\n};\n\nexport const DEFAULT_EDIT_STATE: EditState = {\n isLoading: false,\n isLoadingError: false,\n isRequiring: false,\n allowMove: false,\n latestLabel: '',\n startRectResizeAnchor: undefined,\n startElementMovePoint: undefined,\n focusObjectIndex: -1,\n foucsObjectAllIndexs: [],\n focusEleType: EElementType.Rect,\n focusEleIndex: -1,\n focusPolygonInfo: {\n index: -1,\n pointIndex: -1,\n lineIndex: -1,\n },\n isCtrlPressed: false,\n hideCreatingObject: false,\n imageDisplayOptions: DEFAULT_IMG_DISPLAY_OPTIONS,\n annotsDisplayOptions: DEFAULT_ANNOTS_DISPLAY_OPTIONS,\n};\n","/** Convert RGB array to hexadecimal. */\nexport const rgbArrayToHex = (rgb: (number | string)[]) => {\n if (rgb.length !== 3) return 'transparent';\n return `#${rgb[0].toString(16).padStart(2, '0')}${rgb[1]\n .toString(16)\n .padStart(2, '0')}${rgb[2].toString(16).padStart(2, '0')}`.toUpperCase();\n};\n\n/** Convert RGB string to hexadecimal. */\nexport const rgbToHex = (rgb: string) => {\n const arr = /^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)\\)$/i.exec(rgb);\n if (!arr) return 'transparent';\n return rgbArrayToHex(arr);\n};\n\n/** Convert hexadecimal to RGB array. */\nexport const hexToRgbArray = (hex: string) => {\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const formatHex = hex.replace(shorthandRegex, (m, r, g, b) => {\n return r + r + g + g + b + b;\n });\n const arr = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(formatHex);\n if (!arr) {\n return [0, 0, 0];\n }\n return [parseInt(arr[1], 16), parseInt(arr[2], 16), parseInt(arr[3], 16)];\n};\n\n/** Convert hexadecimal to RGBA string. */\nexport const hexToRgba = (hex: string, opacity = 1) => {\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n const formatHex = hex.replace(shorthandRegex, (m, r, g, b) => {\n return r + r + g + g + b + b;\n });\n const arr = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(formatHex);\n const op = opacity < 0 || opacity > 1 ? 1 : opacity;\n if (!arr) {\n return 'transparent';\n }\n return `rgba(${parseInt(arr[1], 16)},${parseInt(arr[2], 16)},${parseInt(\n arr[3],\n 16,\n )},${op})`;\n};\n\n/** Generate a color list based on the number of categories. */\nexport const createColorList = (count: number) => {\n const colors = [\n '#FFFF00',\n '#FF0000',\n '#0000FF',\n '#00FF00',\n '#FF00FF',\n '#00FFFF',\n ];\n const preList = [255, 128, 64, 32, 16, 8, 4, 2, 1];\n for (let cur = colors.length + 1; colors.length < count; cur++) {\n let rgb = [0, 0, 0];\n let flag = 1;\n let finded = true;\n for (let i = 0; flag <= cur; i++) {\n if ((cur & flag) > 0) {\n if (rgb[i % 3] + preList[Math.floor(i / 3)] <= 255) {\n rgb[i % 3] += preList[Math.floor(i / 3)];\n } else {\n finded = false;\n break;\n }\n }\n flag <<= 1;\n }\n if (finded) {\n const hexColor = `#${rgb[0].toString(16).padStart(2, '0')}${rgb[1]\n .toString(16)\n .padStart(2, '0')}${rgb[2]\n .toString(16)\n .padStart(2, '0')}`.toUpperCase();\n if (!colors.includes(hexColor)) {\n colors.push(hexColor);\n }\n }\n }\n return colors;\n};\n\nexport const getCategoryColors = (list: string[], cur?: string) => {\n if (!list.length) return {};\n\n const sortList = [...list];\n if (cur === 'All') {\n sortList.shift();\n } else if (cur) {\n // Move cur to the first position in the array.\n const curIndex = sortList.findIndex((item) => item === cur);\n sortList.splice(curIndex, 1);\n sortList[0] = cur;\n }\n\n const colors = createColorList(sortList.length);\n const result: Record = {};\n sortList.forEach((item, index) => {\n result[item] = colors[index];\n });\n return result;\n};\n\n/** Convert RGB array to RGBA string. */\nexport const rgbArrayToRgba = (rgb: (number | string)[], alpha: number) => {\n if (rgb.length !== 3) return 'transparent';\n return `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, ${alpha})`;\n};\n\n/** Convert RGBA string to RGB array. */\nexport const rgbaToRgbArray = (rgba: string): string[] => {\n const rgbaValues = rgba\n .slice(5, -1)\n .split(',')\n .map((value) => value.trim());\n if (rgbaValues.length !== 4 || isNaN(parseFloat(rgbaValues[3]))) {\n return [];\n }\n return rgbaValues.slice(0, 3);\n};\n\n/** Modify the transparency of the RGBA format. */\nexport const changeRgbaOpacity = (rgba: string, opacity: number): string => {\n if (!rgba) return 'rgba(0,0,0,0)';\n const rgbaArray = rgba\n .substring(5, rgba.length - 1)\n .split(',')\n .map((value) => parseInt(value.trim()));\n const newRgbaArray = [...rgbaArray.slice(0, 3), opacity];\n const newRgbaString = `rgba(${newRgbaArray.join(',')})`;\n return newRgbaString;\n};\n\n/** HSV to RGB */\nexport const hsvToRgb = (\n h: number,\n s: number,\n v: number,\n): [number, number, number] => {\n const c = v * s;\n const x = c * (1 - Math.abs(((h * 6) % 2) - 1));\n const m = v - c;\n\n let r = 0,\n g = 0,\n b = 0;\n if (h < 1 / 6) {\n r = c;\n g = x;\n } else if (h < 2 / 6) {\n r = x;\n g = c;\n } else if (h < 3 / 6) {\n g = c;\n b = x;\n } else if (h < 4 / 6) {\n g = x;\n b = c;\n } else if (h < 5 / 6) {\n r = x;\n b = c;\n } else {\n r = c;\n b = x;\n }\n\n return [\n Math.round((r + m) * 255),\n Math.round((g + m) * 255),\n Math.round((b + m) * 255),\n ];\n};\n\nexport const generateUniformHexColor = (() => {\n const goldenRatio = 0.618033988749895; // Golden ratio for even color distribution\n let hue = 0;\n return (): string => {\n hue = (hue + goldenRatio) % 1;\n const rgbColor = hsvToRgb(hue, 0.8, 0.95);\n return rgbArrayToHex(rgbColor);\n };\n})();\n","import {\n AnnotationType,\n EElementType,\n EObjectType,\n KEYPOINTS_VISIBLE_TYPE,\n} from '../constants';\nimport {\n BaseObject,\n DrawData,\n IAnnotationObject,\n MaskPromptItem,\n} from '../type';\nimport { CursorState } from 'ahooks/lib/useMouse';\nimport { rgbArrayToRgba, rgbaToRgbArray } from './color';\nimport { cloneDeep, isNumber } from 'lodash';\n\n/**\n * Calculate the scaled width and height.\n * @param imgWidth\n * @param imgHeight\n * @param maxWidth\n * @param maxHeight\n * @returns [number,number] [width, height]\n */\nexport const zoomImgSize = (\n imgWidth: number,\n imgHeight: number,\n contianerWidth?: number,\n contianerHeight?: number,\n): [number, number, number] => {\n if (!imgWidth || !imgHeight) return [0, 0, 1];\n // Only restrict the container width or height.\n if (!contianerWidth) {\n return [\n (imgWidth / imgHeight) * (contianerHeight || 0),\n contianerHeight || 0,\n 1,\n ];\n }\n if (!contianerHeight) {\n return [\n contianerWidth || 0,\n (imgHeight / imgWidth) * (contianerWidth || 0),\n 1,\n ];\n }\n let newWidth = imgWidth,\n newHeight = imgHeight,\n scale = 1;\n if (imgWidth / imgHeight >= contianerWidth / contianerHeight) {\n // Scale based on container width.\n newWidth = contianerWidth;\n newHeight = (imgHeight * contianerWidth) / imgWidth;\n scale = contianerWidth / imgWidth;\n } else {\n // Scale based on container height.\n newHeight = contianerHeight;\n newWidth = (imgWidth * contianerHeight) / imgHeight;\n scale = contianerHeight / imgHeight;\n }\n return [newWidth || 0, newHeight || 0, scale];\n};\n\n/** translate points */\nexport const getCanvasPoint = (\n [x = 0, y = 0]: number[],\n naturalSize: ISize,\n clientSize: ISize,\n) => {\n return {\n x: (x / naturalSize.width) * clientSize.width,\n y: (y / naturalSize.height) * clientSize.height,\n };\n};\n\n/** Convert to coordinates in image coordinate system. */\nexport const getNaturalPoint = (\n [x = 0, y = 0]: number[],\n naturalSize: ISize,\n clientSize: ISize,\n): IPoint => {\n return {\n x: (x / clientSize.width) * naturalSize.width,\n y: (y / clientSize.height) * naturalSize.height,\n };\n};\n\n/**\n * Generate corresponding canvas coordinates based on the segmentation data returned by the API.\n * @param seg\n * @param naturalSize\n * @param clientSize\n * @returns\n */\nexport const getSegmentationPoints = (\n seg: string,\n naturalSize: ISize,\n clientSize: ISize,\n): IPoint[][] => {\n const groups: IPoint[][] = [];\n if (!seg) return groups;\n const paths = seg.split('/');\n paths?.forEach((item) => {\n const points = [];\n const nums = item.split(',').map(Number);\n for (let i = 0; i < nums.length; i += 2) {\n const point = getCanvasPoint(\n [nums[i], nums[i + 1]],\n naturalSize,\n clientSize,\n );\n points.push(point);\n }\n groups.push(points);\n });\n return groups;\n};\n\n/**\n * translate points to rect\n * @param startPoint\n * @param endPoint\n * @param canvasSize\n */\nexport const getRectFromPoints = (\n startPoint: IPoint,\n endPoint: IPoint,\n canvasSize: ISize,\n): IRect => {\n const realEndPoint = {\n x:\n endPoint.x < 0\n ? 0\n : endPoint.x > canvasSize.width\n ? canvasSize.width\n : endPoint.x,\n y:\n endPoint.y < 0\n ? 0\n : endPoint.y > canvasSize.height\n ? canvasSize.height\n : endPoint.y,\n };\n return {\n x: Math.min(startPoint.x, realEndPoint.x),\n y: Math.min(startPoint.y, realEndPoint.y),\n width: Math.abs(startPoint.x - realEndPoint.x),\n height: Math.abs(startPoint.y - realEndPoint.y),\n };\n};\n\n/**\n * Calculate the polar coordinates of a set of points.\n * @param points\n * @returns\n */\nexport const getLimitCoordsFromPoints = (\n points: IPoint[],\n): { minX: number; minY: number; maxX: number; maxY: number } => {\n let minX = Infinity;\n let minY = Infinity;\n let maxX = -Infinity;\n let maxY = -Infinity;\n for (const p of points) {\n minX = Math.min(minX, p.x);\n minY = Math.min(minY, p.y);\n maxX = Math.max(maxX, p.x);\n maxY = Math.max(maxY, p.y);\n }\n return { minX, minY, maxX, maxY };\n};\n\n/**\n * Calculate the coordinates of a point after scaling transformation.\n * @param point\n * @param scaleX\n * @param scaleY\n * @returns\n */\nexport const getScaledPointCoord = (\n point: IPoint,\n scaleX: number,\n scaleY: number,\n): IPoint => {\n return {\n x: scaleX * point.x,\n y: scaleY * point.y,\n };\n};\n\n/**\n * Calculate the coordinates of a point after translation transformation.\n * @param point\n * @param translateX\n * @param translateY\n * @returns\n */\nexport const getTranslatedPointCoord = (\n point: IPoint,\n translateX: number,\n translateY: number,\n): IPoint => {\n return {\n x: point.x + translateX,\n y: point.y + translateY,\n };\n};\n\n/**\n * Calculate the position of a set of keypoint templates after coordinate transformation.\n * @param startPoint Must be inside the canvas.\n * @param endPoint Can be outside the canvas.\n * @param canvasSize\n */\nexport const getKeypointsFromRect = (\n points: IElement[],\n rect: IRect,\n): IElement[] => {\n const { minX, minY, maxX, maxY } = getLimitCoordsFromPoints(points);\n const scaleX = rect.width / (maxX - minX);\n const scaleY = rect.height / (maxY - minY);\n\n const newPoints = points.map((point) => {\n const translatedPoint = getTranslatedPointCoord(point, -minX, -minY);\n const scaledPoint = getScaledPointCoord(translatedPoint, scaleX, scaleY);\n const updatedPoint = getTranslatedPointCoord(scaledPoint, rect.x, rect.y);\n return { ...point, ...updatedPoint };\n });\n\n return newPoints;\n};\n\n/**\n * translate rect to bounding box\n * @param rect\n * @param size\n * @returns\n */\nexport const translateRectToBoundingBox = (\n rect: IRect,\n size: ISize,\n): IBoundingBox => ({\n xmin: rect.x / size.width,\n ymin: rect.y / size.height,\n xmax: (rect.x + rect.width) / size.width,\n ymax: (rect.y + rect.height) / size.height,\n});\n\nexport const translateRectToAbsBbox = (rect: IRect): IBoundingBox => ({\n xmin: rect.x,\n ymin: rect.y,\n xmax: rect.x + rect.width,\n ymax: rect.y + rect.height,\n});\n\n/**\n * zoom rect size\n * @param rect\n * @param size\n * @returns\n */\nexport const translateRectZoom = (\n rect: IRect,\n fromSize: ISize,\n toSize: ISize,\n): IRect => ({\n x: (rect.x * toSize.width) / fromSize.width,\n y: (rect.y * toSize.height) / fromSize.height,\n width: (rect.width * toSize.width) / fromSize.width,\n height: (rect.height * toSize.height) / fromSize.height,\n});\n\n/**\n * zoom point size\n * @param point\n * @param size\n * @returns\n */\nexport const translatePointZoom = (\n point: IPoint,\n formSize: ISize,\n toSize: ISize,\n): IPoint => ({\n x: (point.x * toSize.width) / formSize.width,\n y: (point.y * toSize.height) / formSize.height,\n});\n\n/**\n * transtlate bounding box to rect\n * @param box\n * @param size\n * @returns\n */\nexport const translateBoundingBoxToRect = (\n box: IBoundingBox,\n size: ISize,\n): IRect => ({\n x: (box.xmin || 0) * size.width,\n y: (box.ymin || 0) * size.height,\n width: ((box.xmax || 0) - (box.xmin || 0)) * size.width,\n height: ((box.ymax || 0) - (box.ymin || 0)) * size.height,\n});\n\nexport const translateAbsBBoxToRect = (box: IBoundingBox): IRect => ({\n x: box.xmin,\n y: box.ymin,\n width: box.xmax - box.xmin,\n height: box.ymax - box.ymin,\n});\n\n/**\n * format points\n * @param box\n * @param size\n * @returns\n */\nexport const translatePointsToPointObjs = (\n points: number[],\n pointNames: string[],\n pointColors: string[],\n naturalSize: ISize,\n clientSize: ISize,\n): IElement[] => {\n const pointList = [];\n for (let i = 0; i * 6 < points.length; i++) {\n const { x, y } = getCanvasPoint(\n [points[i * 6], points[i * 6 + 1]],\n naturalSize,\n clientSize,\n );\n const color = rgbArrayToRgba(pointColors.slice(i * 3, i * 3 + 3), 1);\n const point = {\n x,\n y,\n visible: points[i * 6 + 4],\n color,\n name: pointNames[i],\n };\n pointList.push(point);\n }\n return pointList;\n};\n\nexport const translatePointObjsToPointAttrs = (\n pointObjs: IElement[],\n naturalSize: ISize,\n clientSize: ISize,\n): {\n points: number[];\n pointNames: string[];\n pointColors: string[];\n} => {\n const points = [];\n const pointNames = [];\n const pointColors = [];\n\n for (let i = 0; i < pointObjs.length; i++) {\n const point = pointObjs[i];\n const { x, y } = point;\n const rgb = rgbaToRgbArray(point.color!);\n const naturalPoint = getNaturalPoint([x, y], naturalSize, clientSize);\n points.push(naturalPoint.x, naturalPoint.y, 0, 1, point.visible, 1);\n pointNames.push(point.name!);\n pointColors.push(rgb[0] || '255', rgb[1] || '255', rgb[2] || '255');\n }\n\n return {\n points,\n pointNames,\n pointColors,\n };\n};\n\n/**\n * Determine if two rects are the same.(Only compare the decimal places after the second digit)\n * @param aRect\n * @param bRect\n * @returns\n */\nexport const isEqualRect = (aRect: IRect, bRect: IRect): boolean => {\n return (\n Object.keys(aRect).findIndex(\n (key) =>\n aRect[key as keyof IRect].toFixed(2) !==\n bRect[key as keyof IRect].toFixed(2),\n ) < 0\n );\n};\n\n/**\n * Whether it is inside the canvas.\n * @param mouse\n * @returns\n */\nexport const isInCanvas = (mouse: CursorState): boolean =>\n mouse.elementX >= 0 &&\n mouse.elementX <= mouse.elementW &&\n mouse.elementY >= 0 &&\n mouse.elementY <= mouse.elementH;\n\n/**\n * Expand / shrink rect\n * @param rect\n * @param delta\n * @returns\n */\nexport const expandRect = (rect: IRect, delta: IPoint): IRect => {\n return {\n x: rect.x - delta.x,\n y: rect.y - delta.y,\n width: rect.width + 2 * delta.x,\n height: rect.height + 2 * delta.y,\n };\n};\n\nexport const expandPointToCircle = (point: IPoint, radius: number): ICircle => {\n return {\n ...point,\n radius,\n };\n};\n\nfunction crossProduct(p1: IPoint, p2: IPoint, p3: IPoint) {\n const v1 = { x: p2.x - p1.x, y: p2.y - p1.y };\n const v2 = { x: p3.x - p1.x, y: p3.y - p1.y };\n return v1.x * v2.y - v1.y * v2.x;\n}\n\n/**\n * Determine if a point is inside a shape.\n * @param shape\n * @param point\n * @param type\n * @returns\n */\nexport const isPointInside = (\n shape: IRect | ICircle | IPolygon,\n point: IPoint,\n type: EElementType,\n): boolean => {\n if (!shape || !point) return false;\n switch (type) {\n case EElementType.Rect: {\n const rect = shape as IRect;\n return (\n rect.x <= point.x &&\n rect.x + rect.width >= point.x &&\n rect.y <= point.y &&\n rect.y + rect.height >= point.y\n );\n }\n case EElementType.Circle: {\n const circle = shape as ICircle;\n return (\n Math.sqrt(\n Math.pow(point.x - circle.x, 2) + Math.pow(point.y - circle.y, 2),\n ) <= circle.radius\n );\n }\n case EElementType.Polygon: {\n const polygon = shape as IPolygon;\n // Divide a polygon into several triangles.\n for (let i = 1; i < polygon.length - 1; i++) {\n // Calculate the cross product of the three vertices of a triangle and point P.\n const cross1 = crossProduct(polygon[0], polygon[i], point);\n const cross2 = crossProduct(polygon[i], polygon[i + 1], point);\n const cross3 = crossProduct(polygon[i + 1], polygon[0], point);\n // If the signs of all three cross products are the same, then the point is inside the triangle.\n if (cross1 * cross2 > 0 && cross1 * cross3 > 0) {\n return true;\n }\n }\n return false;\n }\n default:\n return false;\n }\n};\n\n// const isPointInsideRect = (rect: IRect, mouse: CursorState): boolean => {\n// const outerRect = expandRect(rect, { x: 8, y: 8 });\n// const innerRect = expandRect(rect, { x: -8, y: -8 });\n// const point = { x: mouse.elementX, y: mouse.elementY };\n// return (\n// isPointInside(outerRect, point, EElementType.Rect) &&\n// !isPointInside(innerRect, point, EElementType.Rect)\n// );\n// };\n\nexport const isPointOnPoint = (\n point: IPoint,\n mouse: CursorState,\n redius: number = 5,\n): boolean => {\n const circle = expandPointToCircle(point, redius);\n const focusPoint = { x: mouse.elementX, y: mouse.elementY };\n return isPointInside(circle, focusPoint, EElementType.Circle);\n};\n\nconst isPointOnLine = (line: ILine, mouse: CursorState): boolean => {\n const { elementX: x, elementY: y } = mouse;\n const distanceFromStart = Math.sqrt(\n Math.pow(x - line.start.x, 2) + Math.pow(y - line.start.y, 2),\n );\n const distanceFromEnd = Math.sqrt(\n Math.pow(x - line.end.x, 2) + Math.pow(y - line.end.y, 2),\n );\n const lineLength = Math.sqrt(\n Math.pow(line.end.x - line.start.x, 2) +\n Math.pow(line.end.y - line.start.y, 2),\n );\n const buffer = 0.75;\n return (\n distanceFromStart + distanceFromEnd >= lineLength - buffer &&\n distanceFromStart + distanceFromEnd <= lineLength + buffer\n );\n};\n\nexport const getLimitRectFromPoints = (points: IPoint[]): IRect => {\n const { maxX, minX, maxY, minY } = getLimitCoordsFromPoints(points);\n return {\n x: minX,\n y: minY,\n width: maxX - minX,\n height: maxY - minY,\n };\n};\n\nexport const getLinesFromPolygon = (polygon: IPolygon): ILine[] => {\n const lines: ILine[] = [];\n for (let i = 0; i < polygon.length; i++) {\n const startPoint = polygon[i];\n const endPoint = polygon[(i + 1) % polygon.length];\n lines.push({ start: startPoint, end: endPoint });\n }\n return lines;\n};\n\nexport const judgeFocusOnSingleObject = (\n mouse: CursorState,\n object: IAnnotationObject,\n clientSize?: ISize,\n): boolean => {\n if (object.hidden) {\n return false;\n }\n\n const mousePoint = {\n x: mouse.elementX,\n y: mouse.elementY,\n };\n\n switch (object.type) {\n case EObjectType.Rectangle: {\n if (\n object.rect &&\n isPointInside(\n expandRect(object.rect, { x: 8, y: 8 }),\n mousePoint,\n EElementType.Rect,\n )\n ) {\n return true;\n }\n break;\n }\n case EObjectType.Polygon: {\n if (object.polygon) {\n const { group } = object.polygon!;\n const isInside = group.some((polygon) =>\n isPointInside(polygon, mousePoint, EElementType.Polygon),\n );\n if (isInside) return true;\n const isInsidePoints = group.some((polygon) => {\n return polygon.some((point) => {\n return isPointOnPoint(point, mouse);\n });\n });\n if (isInsidePoints) return true;\n const isOnLines = group.some((polygon) => {\n const lines = getLinesFromPolygon(polygon);\n return lines.some((line) => {\n return isPointOnLine(line, mouse);\n });\n });\n if (isOnLines) return true;\n }\n break;\n }\n case EObjectType.Skeleton: {\n if (object.keypoints?.points) {\n const validPoints = object.keypoints?.points.filter(\n (point) => point.visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible,\n );\n const limitRect = getLimitRectFromPoints(validPoints);\n const isInside = isPointInside(\n limitRect,\n mousePoint,\n EElementType.Rect,\n );\n if (isInside) return true;\n }\n if (object.rect) {\n if (isPointInside(object.rect, mousePoint, EElementType.Rect)) {\n return true;\n }\n }\n break;\n }\n case EObjectType.Custom: {\n if (object.keypoints?.points) {\n const validPoints = object.keypoints?.points.filter(\n (point) => point.visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible,\n );\n const limitRect = getLimitRectFromPoints(validPoints);\n const isInside = isPointInside(\n limitRect,\n mousePoint,\n EElementType.Rect,\n );\n if (isInside) {\n return true;\n }\n }\n if (object.polygon) {\n const { group } = object.polygon;\n const isInside = group.some((polygon) =>\n isPointInside(polygon, mousePoint, EElementType.Polygon),\n );\n if (isInside) {\n return true;\n }\n }\n if (object.rect) {\n if (isPointInside(object.rect, mousePoint, EElementType.Rect)) {\n return true;\n }\n }\n break;\n }\n case EObjectType.Mask: {\n if (object.maskCanvasElement) {\n const tempCtx = object.maskCanvasElement.getContext('2d', {\n willReadFrequently: true,\n });\n if (!tempCtx || !clientSize) break;\n\n // get target pixel data\n const pixelData = tempCtx.getImageData(\n (mousePoint.x * object.maskCanvasElement.width) / clientSize.width,\n (mousePoint.y * object.maskCanvasElement.height) / clientSize.height,\n 1,\n 1,\n ).data;\n if (pixelData[3] > 0) {\n return true;\n }\n }\n break;\n }\n }\n return false;\n};\n\nexport const judgeFocusOnElement = (\n mouse: CursorState,\n object: IAnnotationObject,\n): {\n focusEleIndex: number;\n focusEleType: EElementType;\n focusPolygonInfo: {\n index: number;\n pointIndex: number;\n lineIndex: number;\n };\n} => {\n let focusEleType = EElementType.None;\n let focusEleIndex = -1;\n let focusPolygonInfo = {\n index: -1,\n pointIndex: -1,\n lineIndex: -1,\n };\n\n if (!isInCanvas(mouse) || object.hidden) {\n return { focusEleType, focusEleIndex, focusPolygonInfo };\n }\n\n if (object.keypoints?.points) {\n const { points } = object.keypoints;\n for (let j = 0; j < points.length; j++) {\n const { visible, x, y } = points[j];\n if (\n visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible &&\n isPointOnPoint({ x, y }, mouse)\n ) {\n focusEleType = EElementType.Circle;\n focusEleIndex = j;\n\n return { focusEleType, focusEleIndex, focusPolygonInfo };\n }\n }\n }\n\n if (object.polygon && object.polygon.visible) {\n const { group } = object.polygon;\n // find point in polygon\n for (let i = 0; i < group.length; i++) {\n const pointIndex = group[i].findIndex((point) => {\n return isPointOnPoint(point, mouse);\n });\n if (pointIndex > -1) {\n focusPolygonInfo.index = i;\n focusPolygonInfo.pointIndex = pointIndex;\n return {\n focusEleType: EElementType.Polygon,\n focusEleIndex: 0,\n focusPolygonInfo,\n };\n }\n }\n // find line in polygon\n for (let i = 0; i < group.length; i++) {\n const lines = getLinesFromPolygon(group[i]);\n const lineIndex = lines.findIndex((line) => isPointOnLine(line, mouse));\n if (lineIndex > -1) {\n focusPolygonInfo.index = i;\n focusPolygonInfo.lineIndex = lineIndex;\n return {\n focusEleType: EElementType.Polygon,\n focusEleIndex: 0,\n focusPolygonInfo,\n };\n }\n }\n const polygonIdx = group.findIndex((polygon) =>\n isPointInside(\n polygon,\n {\n x: mouse.elementX,\n y: mouse.elementY,\n },\n EElementType.Polygon,\n ),\n );\n if (polygonIdx > -1) {\n focusPolygonInfo.index = polygonIdx;\n return {\n focusEleType: EElementType.Polygon,\n focusEleIndex: 0,\n focusPolygonInfo,\n };\n }\n }\n\n if (\n object.rect &&\n isPointInside(\n expandRect(object.rect, { x: 8, y: 8 }),\n {\n x: mouse.elementX,\n y: mouse.elementY,\n },\n EElementType.Rect,\n )\n ) {\n focusEleType = EElementType.Rect;\n focusEleIndex = 0;\n return { focusEleType, focusEleIndex, focusPolygonInfo };\n }\n\n return { focusEleType, focusEleIndex, focusPolygonInfo };\n};\n\nexport const judgeFocusOnObject = (\n clientSize: ISize,\n mouse: CursorState,\n activeObjectIndex: number,\n objects: IAnnotationObject[],\n focusFilter: (obj: IAnnotationObject) => boolean = () => true,\n): number => {\n if (!isInCanvas(mouse)) {\n return -1;\n }\n\n // Judge focus on active object.\n if (\n objects[activeObjectIndex] &&\n focusFilter(objects[activeObjectIndex]) &&\n judgeFocusOnSingleObject(mouse, objects[activeObjectIndex], clientSize)\n ) {\n return activeObjectIndex;\n }\n\n // Find the topmost instance by searching the objectList in reverse order.\n for (let index = objects.length - 1; index >= 0; index--) {\n if (\n focusFilter(objects[index]) &&\n judgeFocusOnSingleObject(mouse, objects[index], clientSize)\n ) {\n return index;\n }\n }\n\n return -1;\n};\n\nexport const judgeFocusOnPointAllObject = (\n clientSize: ISize,\n mouse: CursorState,\n objects: IAnnotationObject[],\n focusFilter: (obj: IAnnotationObject) => boolean = () => true,\n): number[] => {\n if (!isInCanvas(mouse)) {\n return [];\n }\n\n const results = [];\n // Find the topmost instance by searching the objectList in reverse order.\n for (let index = objects.length - 1; index >= 0; index--) {\n if (\n focusFilter(objects[index]) &&\n judgeFocusOnSingleObject(mouse, objects[index], clientSize)\n ) {\n results.push(index);\n }\n }\n\n return results;\n};\n\nexport enum Direction {\n TOP = 'TOP',\n BOTTOM = 'BOTTOM',\n LEFT = 'LEFT',\n RIGHT = 'RIGHT',\n TOP_RIGHT = 'TOP_RIGHT',\n TOP_LEFT = 'TOP_LEFT',\n BOTTOM_RIGHT = 'BOTTOM_RIGHT',\n BOTTOM_LEFT = 'BOTTOM_LEFT',\n CENTER = 'CENTER',\n}\n\nexport interface RectAnchor {\n type: Direction;\n position: IPoint;\n}\n\nconst setValueBetweenPixels = (value: number): number => {\n return Math.floor(value) + 0.5;\n};\n\nconst setPointBetweenPixels = (point: IPoint): IPoint => {\n return {\n x: setValueBetweenPixels(point.x),\n y: setValueBetweenPixels(point.y),\n };\n};\n\nexport const setRectBetweenPixels = (rect: IRect): IRect => {\n const topLeft: IPoint = {\n x: rect.x,\n y: rect.y,\n };\n const bottomRight: IPoint = {\n x: rect.x + rect.width,\n y: rect.y + rect.height,\n };\n const topLeftBetweenPixels = setPointBetweenPixels(topLeft);\n const bottomRightBetweenPixels = setPointBetweenPixels(bottomRight);\n return {\n x: topLeftBetweenPixels.x,\n y: topLeftBetweenPixels.y,\n width: bottomRightBetweenPixels.x - topLeftBetweenPixels.x,\n height: bottomRightBetweenPixels.y - topLeftBetweenPixels.y,\n };\n};\n\nexport const mapRectToAnchors = (rect: IRect): RectAnchor[] => {\n return [\n { type: Direction.TOP_LEFT, position: { x: rect.x, y: rect.y } },\n {\n type: Direction.TOP,\n position: { x: rect.x + 0.5 * rect.width, y: rect.y },\n },\n {\n type: Direction.TOP_RIGHT,\n position: { x: rect.x + rect.width, y: rect.y },\n },\n {\n type: Direction.LEFT,\n position: { x: rect.x, y: rect.y + 0.5 * rect.height },\n },\n {\n type: Direction.RIGHT,\n position: { x: rect.x + rect.width, y: rect.y + 0.5 * rect.height },\n },\n {\n type: Direction.BOTTOM_LEFT,\n position: { x: rect.x, y: rect.y + rect.height },\n },\n {\n type: Direction.BOTTOM,\n position: { x: rect.x + 0.5 * rect.width, y: rect.y + rect.height },\n },\n {\n type: Direction.BOTTOM_RIGHT,\n position: { x: rect.x + rect.width, y: rect.y + rect.height },\n },\n ];\n};\n\nexport const getRectWithCenterAndSize = (\n centerPoint: IPoint,\n size: ISize,\n): IRect => {\n return {\n x: centerPoint.x - 0.5 * size.width,\n y: centerPoint.y - 0.5 * size.height,\n ...size,\n };\n};\n\nexport const getAnchorUnderMouseByRect = (\n rect: IRect,\n mousePosition: IPoint,\n): RectAnchor | null => {\n const rectAnchors: RectAnchor[] = mapRectToAnchors(rect);\n for (let i = 0; i < rectAnchors.length; i++) {\n const anchorRect: IRect = getRectWithCenterAndSize(\n rectAnchors[i].position,\n { width: 16, height: 16 },\n );\n if (\n !!mousePosition &&\n isPointInside(anchorRect, mousePosition, EElementType.Rect)\n ) {\n return rectAnchors[i];\n }\n }\n return null;\n};\n\nexport const getAnchorFixRectPoint = (\n rect: IRect,\n direction: Direction,\n): IPoint => {\n switch (direction) {\n case Direction.RIGHT:\n case Direction.BOTTOM:\n case Direction.BOTTOM_RIGHT:\n return { x: rect.x, y: rect.y };\n case Direction.LEFT:\n case Direction.TOP:\n case Direction.TOP_LEFT:\n return { x: rect.x + rect.width, y: rect.y + rect.height };\n case Direction.BOTTOM_LEFT:\n return { x: rect.x + rect.width, y: rect.y };\n case Direction.TOP_RIGHT:\n return { x: rect.x, y: rect.y + rect.height };\n }\n return { x: rect.x, y: rect.y };\n};\n\nexport const resizeRect = (\n rect: IRect,\n anchor: RectAnchor,\n mouse: CursorState,\n): IRect => {\n const { type, position } = anchor;\n const limitMouseX =\n mouse.elementX < 0\n ? 0\n : mouse.elementX > mouse.elementW\n ? mouse.elementW\n : mouse.elementX;\n const limitMouseY =\n mouse.elementY < 0\n ? 0\n : mouse.elementY > mouse.elementH\n ? mouse.elementH\n : mouse.elementY;\n const endPoint = { x: limitMouseX, y: limitMouseY };\n switch (type) {\n case Direction.RIGHT:\n endPoint.y = rect.y + rect.height;\n break;\n case Direction.BOTTOM:\n endPoint.x = rect.x + rect.width;\n break;\n case Direction.LEFT:\n endPoint.y = rect.y;\n break;\n case Direction.TOP:\n endPoint.x = rect.x;\n break;\n }\n return getRectFromPoints(position, endPoint, {\n width: mouse.elementW,\n height: mouse.elementH,\n });\n};\n\nexport const moveRect = (\n rect: IRect,\n startPoints: { topLeftPoint: IPoint; mousePoint: IPoint },\n mouse: CursorState,\n): IRect => {\n const { width, height } = rect;\n const { topLeftPoint, mousePoint } = startPoints;\n const offsetX = mouse.elementX - mousePoint.x;\n const offsetY = mouse.elementY - mousePoint.y;\n const x = topLeftPoint.x + offsetX;\n const y = topLeftPoint.y + offsetY;\n\n return {\n x: x < 0 ? 0 : x + width > mouse.elementW ? mouse.elementW - width : x,\n y: y < 0 ? 0 : y + height > mouse.elementH ? mouse.elementH - height : y,\n width,\n height,\n };\n};\n\nexport const movePolygon = (\n polygon: IPolygon,\n startPoints: { mousePoint: IPoint },\n mouse: CursorState,\n): IPolygon => {\n const { mousePoint } = startPoints;\n const { elementX, elementY, elementW, elementH } = mouse;\n const { minX, minY, maxX, maxY } = getLimitCoordsFromPoints(polygon);\n let offsetX = elementX - mousePoint.x;\n let offsetY = elementY - mousePoint.y;\n offsetX =\n offsetX + maxX > elementW\n ? elementW - maxX\n : offsetX + minX < 0\n ? 0\n : offsetX;\n offsetY =\n offsetY + maxY > elementH\n ? elementH - maxY\n : offsetY + minY < 0\n ? 0\n : offsetY;\n const newPolygon = polygon.map((point) => ({\n x: point.x + offsetX,\n y: point.y + offsetY,\n }));\n return newPolygon;\n};\n\nexport const movePoint = (mouse: CursorState): IPoint => {\n const { elementX, elementY } = mouse;\n return {\n x: elementX < 0 ? 0 : elementX > mouse.elementW ? mouse.elementW : elementX,\n y: elementY < 0 ? 0 : elementY > mouse.elementH ? mouse.elementH : elementY,\n };\n};\n\nexport const isValidRect = (rect: IRect) => {\n if (\n !isNumber(rect.x) ||\n !isNumber(rect.y) ||\n !isNumber(rect.width) ||\n !isNumber(rect.height)\n ) {\n return false;\n }\n if (rect.x === 0 && rect.y === 0 && rect.width === 0 && rect.height === 0) {\n return false;\n }\n return true;\n};\n\n// TODO: How to confirm ObjectType\nexport const getObjectType = (\n obj: IAnnotationObject,\n displayType?: AnnotationType,\n): EObjectType => {\n if (obj.maskRle && (!displayType || displayType === AnnotationType.Mask)) {\n return EObjectType.Mask;\n }\n if (obj.alpha && (!displayType || displayType === AnnotationType.Matting)) {\n return EObjectType.Matting;\n }\n if (\n obj.keypoints &&\n (!displayType || displayType === AnnotationType.KeyPoints)\n ) {\n return EObjectType.Skeleton;\n }\n if (\n obj.polygon &&\n (!displayType || displayType === AnnotationType.Segmentation)\n ) {\n return EObjectType.Polygon;\n }\n if (\n obj.rect &&\n isValidRect(obj.rect) &&\n (!displayType || displayType === AnnotationType.Detection)\n ) {\n return EObjectType.Rectangle;\n }\n return EObjectType.Custom;\n};\n\nexport const translatePolygonsToSegmentation = (\n polygons: IElement,\n naturalSize: ISize,\n clientSize: ISize,\n): string => {\n const arr = polygons.group.map((polygon) => {\n return polygon.reduce((acc: number[], point: IPoint) => {\n const { x, y } = point;\n const naturalPoint = getNaturalPoint([x, y], naturalSize, clientSize);\n return acc.concat([naturalPoint.x, naturalPoint.y]);\n }, []);\n });\n\n const res =\n arr\n .map((polygon) => {\n return polygon.join(',');\n })\n .join('/') || '';\n\n return res;\n};\n\nexport const translateObjectsToAnnotations = (\n objectList: IAnnotationObject[],\n naturalSize: ISize,\n clientSize: ISize,\n needNormalizeBbox: boolean = true,\n): BaseObject[] => {\n const annotations = objectList.map((obj) => {\n const { label, rect, keypoints, polygon, maskRle } = obj;\n const annoObj = {\n categoryName: label,\n };\n if (rect) {\n Object.assign(annoObj, {\n boundingBox: needNormalizeBbox\n ? translateRectToBoundingBox(rect, clientSize)\n : translateRectToAbsBbox(rect),\n });\n }\n if (keypoints) {\n Object.assign(annoObj, {\n lines: keypoints.lines,\n ...translatePointObjsToPointAttrs(\n keypoints.points,\n naturalSize,\n clientSize,\n ),\n });\n }\n if (polygon) {\n const segmentation = translatePolygonsToSegmentation(\n polygon,\n naturalSize,\n clientSize,\n );\n Object.assign(annoObj, {\n segmentation,\n });\n }\n if (maskRle) {\n Object.assign(annoObj, {\n mask: maskRle,\n });\n }\n return annoObj;\n });\n\n return annotations;\n};\n\nexport const getClosestPointOnLineSegment = (\n point: IPoint,\n lineStart: IPoint,\n lineEnd: IPoint,\n) => {\n const ap = { x: point.x - lineStart.x, y: point.y - lineStart.y };\n const ab = { x: lineEnd.x - lineStart.x, y: lineEnd.y - lineStart.y };\n const ab2: number = ab.x * ab.x + ab.y * ab.y;\n const ap_ab: number = ap.x * ab.x + ap.y * ab.y;\n let t: number = ap_ab / ab2;\n if (t < 0 || isNaN(t)) {\n t = 0;\n } else if (t > 1) {\n t = 1;\n }\n return { x: lineStart.x + ab.x * t, y: lineStart.y + ab.y * t };\n};\n\nexport const getMidPointFromTwoPoints = (p1: IPoint, p2: IPoint): IPoint => {\n return {\n x: (p1.x + p2.x) / 2,\n y: (p1.y + p2.y) / 2,\n };\n};\n\n/**\n * Get the corner points, edge midpoints, and center point of a rectangle.\n */\nexport const getReferencePointsFromRect = (rect: IRect): IPoint[] => {\n const { x, y, width, height } = rect;\n\n const topLeft: IPoint = { x, y };\n const topRight: IPoint = { x: x + width, y };\n const bottomLeft: IPoint = { x, y: y + height };\n const bottomRight: IPoint = { x: x + width, y: y + height };\n\n const topMidpoint: IPoint = { x: x + width / 2, y };\n const bottomMidpoint: IPoint = { x: x + width / 2, y: y + height };\n const leftMidpoint: IPoint = { x, y: y + height / 2 };\n const rightMidpoint: IPoint = { x: x + width, y: y + height / 2 };\n\n const center: IPoint = { x: x + width / 2, y: y + height / 2 };\n\n return [\n topLeft,\n topRight,\n bottomLeft,\n bottomRight,\n topMidpoint,\n bottomMidpoint,\n leftMidpoint,\n rightMidpoint,\n center,\n ];\n};\n\n/**\n * Determine if polygon p1 is surrounded by p2.\n * @param p1\n * @param p2\n * @returns\n */\nexport const isPolygonInsidePolygon = (p1: IPolygon, p2: IPolygon) => {\n const box1 = getLimitCoordsFromPoints(p1);\n const box2 = getLimitCoordsFromPoints(p2);\n if (\n box2.minX >= box1.maxX ||\n box2.maxX <= box1.minX ||\n box2.minY >= box1.maxY ||\n box2.maxY <= box1.minY\n ) {\n return false;\n }\n for (const point of p1) {\n if (!isPointInside(p2, point, EElementType.Polygon)) {\n return false;\n }\n }\n return true;\n};\n\n/**\n * Find the polygons in a set of polygons that are completely surrounded and return their indexs.\n * @param polygons\n * @returns\n */\nexport const getInnerPolygonIndexFromGroup = (\n polygons: IPolygon[],\n): number[] => {\n const innerPolygonIdx: number[] = [];\n for (let i = 0; i < polygons.length; i++) {\n const polygon = polygons[i];\n let isInnerPolygon = false;\n for (let j = 0; j < polygons.length; j++) {\n if (i !== j && isPolygonInsidePolygon(polygon, polygons[j])) {\n isInnerPolygon = true;\n break;\n }\n }\n if (isInnerPolygon) {\n innerPolygonIdx.push(i);\n }\n }\n return innerPolygonIdx;\n};\n\nexport const calculatePolygonArea = (vertices: [number, number][]): number => {\n const n = vertices.length;\n let area = 0;\n for (let i = 0; i < n; i++) {\n const [x1, y1] = vertices[i];\n const [x2, y2] = vertices[(i + 1) % n];\n area += x1 * y2 - x2 * y1;\n }\n return Math.abs(area / 2);\n};\n\nexport const convertToVerticesArray = (\n numbers: number[],\n): [number, number][] => {\n const vertices: [number, number][] = [];\n\n for (let i = 0; i < numbers.length; i += 2) {\n const x = numbers[i];\n const y = numbers[i + 1];\n vertices.push([x, y]);\n }\n\n return vertices;\n};\n\nexport const translateRectCoord = (\n rect: IRect,\n newCoordOrigin: IPoint,\n): IRect => {\n return {\n ...rect,\n x: rect.x - newCoordOrigin.x,\n y: rect.y - newCoordOrigin.y,\n };\n};\n\nexport const translatePolygonCoord = (\n polygon: IPolygon,\n newCoordOrigin: IPoint,\n): IPolygon => {\n return polygon.map((point) => {\n return {\n x: point.x - newCoordOrigin.x,\n y: point.y - newCoordOrigin.y,\n };\n });\n};\n\nexport const translatePointCoord = (\n point: IPoint,\n newCoordOrigin: IPoint,\n): IPoint => {\n return {\n x: point.x - newCoordOrigin.x,\n y: point.y - newCoordOrigin.y,\n };\n};\n\nexport const translateAnnotCoord = (\n annoObj: IAnnotationObject,\n newCoordOrigin: IPoint,\n): IAnnotationObject => {\n const { rect, polygon, keypoints } = annoObj;\n const newAnnoObj = { ...annoObj };\n\n if (rect) {\n newAnnoObj.rect = {\n ...rect,\n ...translateRectCoord(rect, newCoordOrigin),\n };\n }\n\n if (polygon) {\n const newGroup = polygon.group.map((polyItem) => {\n return translatePolygonCoord(polyItem, newCoordOrigin);\n });\n newAnnoObj.polygon = {\n ...polygon,\n group: newGroup,\n };\n }\n\n if (keypoints) {\n const newPoints = keypoints.points.map((point) => {\n return {\n ...point,\n ...translatePointCoord(point, newCoordOrigin),\n };\n });\n newAnnoObj.keypoints = {\n ...keypoints,\n points: newPoints,\n };\n }\n\n return newAnnoObj;\n};\n\n/**\n * Scale obj to curSize\n * @param obj\n * @param preSize\n * @param curSize\n * @returns\n */\nexport const scaleObject = (\n obj: IAnnotationObject,\n preSize: ISize,\n curSize: ISize,\n) => {\n const newObj = { ...obj };\n\n if (newObj.rect) {\n const newRect = translateRectZoom(newObj.rect, preSize, curSize);\n newObj.rect = { ...newObj.rect, ...newRect };\n }\n if (newObj.keypoints) {\n const { points, lines } = newObj.keypoints;\n const newPoints = points.map((point) => {\n const newPoint = translatePointZoom(point, preSize, curSize);\n return { ...point, ...newPoint };\n });\n newObj.keypoints = { points: newPoints, lines };\n }\n if (newObj.polygon) {\n const newGroups = newObj.polygon.group.map((polygon) => {\n return polygon.map((point) => {\n return translatePointZoom(point, preSize, curSize);\n });\n });\n newObj.polygon = { ...newObj.polygon, group: newGroups };\n }\n return newObj;\n};\n\nconst scalePromptItem = (\n promptItem: MaskPromptItem,\n preSize: ISize,\n curSize: ISize,\n): MaskPromptItem => {\n const { point, startPoint, rect, stroke } = promptItem;\n const scaledPromptItem = { ...promptItem };\n if (point) {\n Object.assign(scaledPromptItem, {\n point: translatePointZoom(point, preSize, curSize),\n });\n }\n if (startPoint) {\n Object.assign(scaledPromptItem, {\n startPoint: translatePointZoom(startPoint, preSize, curSize),\n });\n }\n if (rect) {\n Object.assign(scaledPromptItem, {\n rect: translateRectZoom(rect, preSize, curSize),\n });\n }\n if (stroke) {\n Object.assign(scaledPromptItem, {\n stroke: stroke.map((point) => {\n return translatePointZoom(point, preSize, curSize);\n }),\n });\n }\n return scaledPromptItem;\n};\n\n/**\n * Scale draw data\n * @param preSize\n * @param curSize\n */\nexport const scaleDrawData = (\n theDrawData: DrawData,\n preSize: ISize,\n curSize: ISize,\n) => {\n const updateDrawData = cloneDeep(theDrawData);\n updateDrawData.objectList = updateDrawData.objectList.map((obj) => {\n return scaleObject(obj, preSize, curSize);\n });\n\n if (updateDrawData.creatingObject) {\n updateDrawData.creatingObject = scaleObject(\n updateDrawData.creatingObject,\n preSize,\n curSize,\n );\n if (updateDrawData.creatingObject.startPoint) {\n updateDrawData.creatingObject.startPoint = translatePointZoom(\n updateDrawData.creatingObject.startPoint,\n preSize,\n curSize,\n );\n }\n if (updateDrawData.creatingObject.maskStep) {\n const newPoints = updateDrawData.creatingObject.maskStep.points.map(\n (point) => {\n return translatePointZoom(point, preSize, curSize);\n },\n );\n updateDrawData.creatingObject = {\n ...updateDrawData.creatingObject,\n maskStep: {\n ...updateDrawData.creatingObject.maskStep,\n points: newPoints,\n },\n };\n }\n if (updateDrawData.creatingObject.tempMaskSteps) {\n const newSteps = updateDrawData.creatingObject.tempMaskSteps.map(\n (step) => {\n return {\n ...step,\n points: step.points.map((point) =>\n translatePointZoom(point, preSize, curSize),\n ),\n };\n },\n );\n updateDrawData.creatingObject = {\n ...updateDrawData.creatingObject,\n tempMaskSteps: newSteps,\n };\n }\n }\n\n if (updateDrawData.prompt.segmentationClicks) {\n updateDrawData.prompt.segmentationClicks =\n updateDrawData.prompt.segmentationClicks.map((click) => {\n if (click.point) {\n const newPoint = translatePointZoom(click.point, preSize, curSize);\n return {\n ...click,\n point: newPoint,\n };\n }\n return click;\n });\n }\n\n if (updateDrawData.prompt.creatingMask) {\n updateDrawData.prompt.creatingMask = scalePromptItem(\n updateDrawData.prompt.creatingMask,\n preSize,\n curSize,\n );\n }\n\n if (updateDrawData.prompt.maskPrompts) {\n updateDrawData.prompt.maskPrompts = updateDrawData.prompt.maskPrompts?.map(\n (item) => {\n return scalePromptItem(item, preSize, curSize);\n },\n );\n }\n\n if (updateDrawData.prompt.activeRectWhileLoading) {\n updateDrawData.prompt.activeRectWhileLoading = translateRectZoom(\n updateDrawData.prompt.activeRectWhileLoading,\n preSize,\n curSize,\n );\n }\n\n return updateDrawData;\n};\n\nexport const getVisibleAreaForImage = (\n imagePos: IPoint,\n clientSize: ISize,\n containerMouse: CursorState,\n) => {\n const { x: imageX, y: imageY } = imagePos;\n const { width: imageWidth, height: imageHeight } = clientSize;\n const { elementW: containerWidth, elementH: containerHeight } =\n containerMouse;\n\n if (\n imageX > containerWidth ||\n imageY > containerHeight ||\n imageX + imageWidth <= 0 ||\n imageY + imageHeight <= 0\n ) {\n return {\n xmin: 0,\n ymin: 0,\n xmax: 0,\n ymax: 0,\n };\n }\n\n const leftTopPoint = {\n x: Math.max(0, imageX),\n y: Math.max(0, imageY),\n };\n const rightBottonPoint = {\n x: Math.min(imageX + imageWidth, containerWidth),\n y: Math.min(imageY + imageHeight, containerHeight),\n };\n\n const newCoordOrigin = {\n x: imagePos.x,\n y: imagePos.y,\n };\n const { x: xmin, y: ymin } = translatePointCoord(\n leftTopPoint,\n newCoordOrigin,\n );\n const { x: xmax, y: ymax } = translatePointCoord(\n rightBottonPoint,\n newCoordOrigin,\n );\n\n return {\n xmin,\n ymin,\n xmax,\n ymax,\n };\n};\n\nexport const getMaskInfoByCanvas = (\n canvas: HTMLCanvasElement,\n): {\n area: number;\n bbox: IBoundingBox;\n} => {\n const ctx = canvas.getContext('2d', { willReadFrequently: true });\n\n const imageData = ctx!.getImageData(0, 0, canvas.width, canvas.height);\n const data = imageData.data;\n const width = imageData.width;\n const height = imageData.height;\n\n let xmin = width;\n let ymin = height;\n let xmax = 0;\n let ymax = 0;\n let area = 0;\n\n for (let i = 0; i < data.length; i += 4) {\n const alpha = data[i + 3];\n if (alpha > 0) {\n const x = (i / 4) % width;\n const y = Math.floor(i / 4 / width);\n area++;\n xmin = Math.min(xmin, x);\n ymin = Math.min(ymin, y);\n xmax = Math.max(xmax, x);\n ymax = Math.max(ymax, y);\n }\n }\n\n const bbox = { xmin, ymin, xmax, ymax };\n\n return {\n area,\n bbox,\n };\n};\n","import { hexToRgba } from './color';\n\nfunction deg2rad(angleDeg: number) {\n return (angleDeg * Math.PI) / 180;\n}\n\nexport function clearCanvas(canvas: HTMLCanvasElement): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n}\n\nexport function resizeSmoothCanvas(\n canvas: HTMLCanvasElement,\n clientSize: ISize,\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n if (window.devicePixelRatio) {\n canvas.style.width = clientSize.width + 'px';\n canvas.style.height = clientSize.height + 'px';\n canvas.height = clientSize.height * window.devicePixelRatio;\n canvas.width = clientSize.width * window.devicePixelRatio;\n ctx.scale(window.devicePixelRatio, window.devicePixelRatio);\n }\n}\n\nexport function setCanvasGlobalAlpha(\n canvas: HTMLCanvasElement,\n alpha: number,\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.globalAlpha = alpha;\n}\n\nexport function drawImage(\n canvas: HTMLCanvasElement,\n image: HTMLImageElement | HTMLCanvasElement,\n imageRect: IRect,\n) {\n if (!!image && !!canvas) {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n try {\n ctx.drawImage(\n image,\n imageRect.x,\n imageRect.y,\n imageRect.width,\n imageRect.height,\n );\n } catch (error) {\n console.error('Load image error:', error);\n }\n }\n}\n\nexport function addFilter(\n canvas: HTMLCanvasElement,\n brightness: number,\n contrast: number,\n saturate: number,\n) {\n if (!!canvas) {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.filter =\n 'brightness(' +\n brightness +\n '%) contrast(' +\n contrast +\n '%) saturate(' +\n saturate +\n '%)';\n }\n}\n\nexport function removeFilter(canvas: HTMLCanvasElement) {\n if (!!canvas) {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.filter = 'none';\n }\n}\n\nexport function putImageData(\n canvas: HTMLCanvasElement,\n imageData: ImageData,\n imageRect: IRect,\n) {\n if (!!imageData && !!canvas) {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.putImageData(\n imageData,\n 0,\n 0,\n imageRect.x,\n imageRect.y,\n imageRect.width,\n imageRect.height,\n );\n }\n}\n\nexport function drawLine(\n canvas: HTMLCanvasElement,\n startPoint: IPoint,\n endPoint: IPoint,\n color = '#111111',\n thickness = 1,\n lineDash?: number[],\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.lineCap = 'round';\n ctx.beginPath();\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n ctx.moveTo(startPoint.x, startPoint.y);\n ctx.lineTo(endPoint.x + 1, endPoint.y + 1);\n ctx.stroke();\n ctx.restore();\n}\n\nexport function drawPath(\n canvas: HTMLCanvasElement,\n points: IPoint[],\n color = '#111111',\n thickness = 1,\n lineDash?: number[],\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.lineCap = 'round';\n ctx.lineJoin = 'round';\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n ctx.beginPath();\n ctx.moveTo(points[0].x, points[0].y);\n for (let i = 1, len = points.length; i < len; i++) {\n ctx.lineTo(points[i].x, points[i].y);\n }\n ctx.stroke();\n ctx.restore();\n}\n\nconst midPointBtw = (p1: any, p2: any) => {\n return {\n x: p1.x + (p2.x - p1.x) / 2,\n y: p1.y + (p2.y - p1.y) / 2,\n };\n};\n\nexport function drawQuadraticPath(\n canvas: HTMLCanvasElement,\n points: IPoint[],\n color = '#111111',\n thickness = 20,\n lineDash?: number[],\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.lineCap = 'round';\n ctx.lineJoin = 'round';\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n ctx.beginPath();\n\n let p1 = points[0];\n let p2 = points[1];\n\n ctx.moveTo(p1.x, p1.y);\n\n for (let i = 1, len = points.length; i < len; i++) {\n let midPoint = midPointBtw(p1, p2);\n ctx.quadraticCurveTo(p1.x, p1.y, midPoint.x, midPoint.y);\n p1 = points[i];\n p2 = points[i + 1];\n }\n ctx.lineTo(p1.x, p1.y);\n ctx.stroke();\n ctx.restore();\n}\n\nexport function drawRect(\n canvas: HTMLCanvasElement | null,\n rect: IRect,\n color = '#fff',\n thickness = 1,\n lineDash?: number[],\n fillColor?: string,\n): void {\n if (!canvas) return;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.beginPath();\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n ctx.rect(rect.x, rect.y, rect.width, rect.height);\n ctx.stroke();\n if (fillColor) {\n ctx.fillStyle = fillColor;\n ctx.fill();\n }\n ctx.restore();\n}\n\nexport function drawRectWithFill(\n canvas: HTMLCanvasElement | null,\n rect: IRect,\n color = '#fff',\n): void {\n if (!canvas) return;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.fillStyle = color;\n ctx.beginPath();\n ctx.rect(rect.x, rect.y, rect.width, rect.height);\n ctx.fill();\n ctx.restore();\n}\n\nexport function shadeEverythingButRect(\n canvas: HTMLCanvasElement,\n rect: IRect,\n color = '#000',\n alpha = 0.5,\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.fillStyle = color;\n ctx.globalAlpha = alpha;\n ctx.fillRect(0, 0, canvas.width, canvas.height);\n ctx.globalCompositeOperation = 'destination-out';\n ctx.globalAlpha = 1;\n ctx.fillRect(rect.x, rect.y, rect.width, rect.height);\n ctx.restore();\n}\n\nexport function drawPolygon(\n canvas: HTMLCanvasElement | null,\n offset: IPoint = { x: 0, y: 0 },\n anchors: IPoint[],\n color = '#fff',\n thickness = 1,\n): void {\n if (!canvas) return;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.beginPath();\n const { x: offsetX, y: offsetY } = offset;\n ctx.moveTo(anchors[0].x + offsetX, anchors[0].y + offsetY);\n for (let i = 1; i < anchors.length; i++) {\n ctx.lineTo(anchors[i].x + offsetX, anchors[i].y + offsetX);\n }\n ctx.closePath();\n ctx.stroke();\n ctx.restore();\n}\n\nexport function drawPolygonWithFill(\n canvas: HTMLCanvasElement | null,\n anchors: IPoint[],\n fillColor = '#fff',\n strokeColor = '#fff',\n thickness = 1,\n lineDash?: number[],\n): void {\n if (!canvas) return;\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.fillStyle = fillColor;\n ctx.strokeStyle = strokeColor;\n ctx.lineWidth = thickness;\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n ctx.beginPath();\n ctx.moveTo(anchors[0].x, anchors[0].y);\n for (let i = 1; i < anchors.length; i++) {\n ctx.lineTo(anchors[i].x, anchors[i].y);\n }\n ctx.closePath();\n if (thickness > 0) {\n ctx.stroke();\n }\n ctx.fill();\n ctx.restore();\n}\n\nexport function drawText(\n canvas: HTMLCanvasElement,\n text: string,\n textSize: number,\n anchorPoint: IPoint,\n color = '#ffffff',\n bold = false,\n align = 'center',\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.fillStyle = color;\n ctx.textAlign = align as CanvasTextAlign;\n ctx.textBaseline = 'top';\n ctx.font = (bold ? 'bold ' : '') + textSize + 'px Arial';\n ctx.fillText(text, anchorPoint.x, anchorPoint.y);\n ctx.restore();\n}\n\nexport function drawCircleWithFill(\n canvas: HTMLCanvasElement,\n anchorPoint: IPoint,\n radius: number,\n color = '#ffffff',\n strokeWidth: number,\n strokeColor = '#000',\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n const startAngleRad = deg2rad(0);\n const endAngleRad = deg2rad(360);\n ctx.lineWidth = strokeWidth || 0;\n ctx.strokeStyle = strokeColor;\n ctx.fillStyle = color;\n ctx.beginPath();\n ctx.arc(\n anchorPoint.x,\n anchorPoint.y,\n radius,\n startAngleRad,\n endAngleRad,\n false,\n );\n ctx.stroke();\n ctx.fill();\n ctx.restore();\n}\n\nexport function drawCircle(\n canvas: HTMLCanvasElement,\n anchorPoint: IPoint,\n radius: number,\n startAngleDeg: number,\n endAngleDeg: number,\n thickness = 20,\n color = '#ffffff',\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n const startAngleRad = deg2rad(startAngleDeg);\n const endAngleRad = deg2rad(endAngleDeg);\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.beginPath();\n ctx.arc(\n anchorPoint.x,\n anchorPoint.y,\n radius,\n startAngleRad,\n endAngleRad,\n false,\n );\n ctx.stroke();\n ctx.restore();\n}\n\nexport function drawBooleanPolygon(\n canvas: HTMLCanvasElement,\n anchors: IPoint[],\n addPolygon = true,\n fillColor = '#fff',\n strokeColor = '#fff',\n thickness = 1,\n lineDash?: number[],\n) {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.fillStyle = fillColor;\n ctx.strokeStyle = strokeColor;\n ctx.lineWidth = thickness;\n ctx.lineCap = 'round';\n ctx.lineJoin = 'round';\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n ctx.beginPath();\n ctx.moveTo(anchors[0].x, anchors[0].y);\n for (let i = 1; i < anchors.length; i++) {\n ctx.lineTo(anchors[i].x, anchors[i].y);\n }\n ctx.closePath();\n ctx.clip();\n ctx.clearRect(0, 0, canvas.width, canvas.height);\n if (addPolygon) {\n if (thickness > 0) {\n ctx.stroke();\n }\n ctx.fill();\n }\n ctx.restore();\n}\n\nexport function drawBooleanBrush(\n canvas: HTMLCanvasElement,\n points: IPoint[],\n addBrush = true,\n color = '#111111',\n alpha = 1,\n thickness = 20,\n lineDash?: number[],\n): void {\n const ctx = canvas.getContext('2d') as CanvasRenderingContext2D;\n ctx.save();\n ctx.strokeStyle = color;\n ctx.lineWidth = thickness;\n ctx.lineCap = 'round';\n ctx.lineJoin = 'round';\n ctx.beginPath();\n if (lineDash) {\n ctx.setLineDash(lineDash);\n }\n\n let p1 = points[0];\n let p2 = points[1];\n\n ctx.moveTo(p1.x, p1.y);\n\n for (let i = 1, len = points.length; i < len; i++) {\n let midPoint = midPointBtw(p1, p2);\n ctx.quadraticCurveTo(p1.x, p1.y, midPoint.x, midPoint.y);\n p1 = points[i];\n p2 = points[i + 1];\n }\n ctx.lineTo(p1.x, p1.y);\n\n if (addBrush) {\n if (thickness > 0) {\n // remove overlap area firstly to avoid color blending\n ctx.globalCompositeOperation = 'destination-out';\n ctx.strokeStyle = color;\n ctx.stroke();\n // draw new stroke path\n ctx.strokeStyle = hexToRgba(color, alpha);\n ctx.globalCompositeOperation = 'source-over';\n ctx.stroke();\n }\n } else {\n ctx.globalCompositeOperation = 'destination-out';\n ctx.stroke();\n }\n ctx.restore();\n}\n","import { Spin } from 'antd';\nimport React from 'react';\ninterface IGlobalLoadingProps {\n children: React.ReactNode;\n active: boolean;\n tip?: string;\n}\n\nconst GlobalLoading: React.FC = ({\n children,\n active,\n tip,\n}) => {\n return (\n \n {children}\n
\n );\n};\n\nexport default GlobalLoading;\n","import { Button, Tooltip } from 'antd';\nimport { TooltipPlacement } from 'antd/es/tooltip';\nimport React, { useMemo } from 'react';\nimport './index.less';\n\nexport enum LocaleLang {\n en = 'en-US',\n zh = 'zh-CN',\n}\n\ninterface IProps {\n getLocale: () => LocaleLang;\n setLocale: (targetLocale: LocaleLang) => void;\n tooltipPlacement?: TooltipPlacement;\n theme?: 'light' | 'dark';\n className?: string;\n}\n\nconst LangSelector: React.FC = ({\n getLocale,\n setLocale,\n tooltipPlacement = 'right',\n theme = 'light',\n className,\n}) => {\n const curLocale: LocaleLang = getLocale();\n const changelocaleLang = () => {\n const targetLocale =\n curLocale === LocaleLang.zh ? LocaleLang.en : LocaleLang.zh;\n setLocale(targetLocale);\n };\n\n const [enClassName, zhClassName] = useMemo(() => {\n if (curLocale === LocaleLang.zh) {\n return [`change-lang change-lang-${theme}`, `cur-lang cur-lang-${theme}`];\n } else {\n return [`cur-lang cur-lang-${theme}`, `change-lang change-lang-${theme}`];\n }\n }, [theme, curLocale]);\n return (\n \n \n
\n \n En\n
\n \n \n );\n};\n\nexport default LangSelector;\n","import { Button, Modal, Result } from 'antd';\nimport React from 'react';\n\ninterface IProps {\n error: Error;\n componentStack: string;\n resetError: () => void;\n}\n\nconst RunningErrorTip: React.FC = ({\n error,\n componentStack,\n resetError,\n}) => {\n const showErrorDetail = () => {\n Modal.error({\n title: error.toString(),\n content: (\n
\n

{componentStack}

\n
\n ),\n onOk() {},\n maskClosable: true,\n width: '80vw',\n });\n };\n\n return (\n \n \n Click here to reset\n ,\n ,\n ]}\n />\n \n );\n};\n\nexport default RunningErrorTip;\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgSettings = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 24, height: 24, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { fillRule: \"evenodd\", clipRule: \"evenodd\", d: \"M16 4.4c0-.22.18-.4.4-.4h1.2c.22 0 .4.18.4.4V6h3.6c.22 0 .4.18.4.4v1.2a.4.4 0 0 1-.4.4H18v1.6a.4.4 0 0 1-.4.4h-1.2a.4.4 0 0 1-.4-.4V4.4ZM2.4 6a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4V6.4a.4.4 0 0 0-.4-.4H2.4Zm8 10a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4h11.2a.4.4 0 0 0 .4-.4v-1.2a.4.4 0 0 0-.4-.4H10.4Zm-8 0a.4.4 0 0 0-.4.4v1.2c0 .22.18.4.4.4H6v1.6c0 .22.18.4.4.4h1.2a.4.4 0 0 0 .4-.4v-5.2a.4.4 0 0 0-.4-.4H6.4a.4.4 0 0 0-.4.4V16H2.4Z\", fill: \"#434343\" }));\nexport { SvgSettings as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNiA0LjRjMC0uMjIuMTgtLjQuNC0uNGgxLjJjLjIyIDAgLjQuMTguNC40VjZoMy42Yy4yMiAwIC40LjE4LjQuNHYxLjJhLjQuNCAwIDAgMS0uNC40SDE4djEuNmEuNC40IDAgMCAxLS40LjRoLTEuMmEuNC40IDAgMCAxLS40LS40VjQuNFpNMi40IDZhLjQuNCAwIDAgMC0uNC40djEuMmMwIC4yMi4xOC40LjQuNGgxMS4yYS40LjQgMCAwIDAgLjQtLjRWNi40YS40LjQgMCAwIDAtLjQtLjRIMi40Wm04IDEwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRoMTEuMmEuNC40IDAgMCAwIC40LS40di0xLjJhLjQuNCAwIDAgMC0uNC0uNEgxMC40Wm0tOCAwYS40LjQgMCAwIDAtLjQuNHYxLjJjMCAuMjIuMTguNC40LjRINnYxLjZjMCAuMjIuMTguNC40LjRoMS4yYS40LjQgMCAwIDAgLjQtLjR2LTUuMmEuNC40IDAgMCAwLS40LS40SDYuNGEuNC40IDAgMCAwLS40LjRWMTZIMi40WiIgZmlsbD0iIzQzNDM0MyIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgPlus = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M8.536 1.572H7.464c-.095 0-.143.048-.143.143v5.607h-5.32c-.096 0-.144.048-.144.143v1.072c0 .095.048.142.143.142h5.321v5.608c0 .095.048.142.143.142h1.072c.095 0 .142-.047.142-.142V8.679H14c.095 0 .143-.047.143-.142V7.465c0-.095-.048-.143-.143-.143H8.678V1.715c0-.095-.047-.143-.142-.143Z\", fill: \"#595959\" }));\nexport { SvgPlus as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTguNTM2IDEuNTcySDcuNDY0Yy0uMDk1IDAtLjE0My4wNDgtLjE0My4xNDN2NS42MDdoLTUuMzJjLS4wOTYgMC0uMTQ0LjA0OC0uMTQ0LjE0M3YxLjA3MmMwIC4wOTUuMDQ4LjE0Mi4xNDMuMTQyaDUuMzIxdjUuNjA4YzAgLjA5NS4wNDguMTQyLjE0My4xNDJoMS4wNzJjLjA5NSAwIC4xNDItLjA0Ny4xNDItLjE0MlY4LjY3OUgxNGMuMDk1IDAgLjE0My0uMDQ3LjE0My0uMTQyVjcuNDY1YzAtLjA5NS0uMDQ4LS4xNDMtLjE0My0uMTQzSDguNjc4VjEuNzE1YzAtLjA5NS0uMDQ3LS4xNDMtLjE0Mi0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==\";\n","var __defProp = Object.defineProperty;\nvar __getOwnPropSymbols = Object.getOwnPropertySymbols;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __propIsEnum = Object.prototype.propertyIsEnumerable;\nvar __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;\nvar __spreadValues = (a, b) => {\n for (var prop in b || (b = {}))\n if (__hasOwnProp.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n if (__getOwnPropSymbols)\n for (var prop of __getOwnPropSymbols(b)) {\n if (__propIsEnum.call(b, prop))\n __defNormalProp(a, prop, b[prop]);\n }\n return a;\n};\nimport * as React from \"react\";\nconst SvgMinus = (props) => /* @__PURE__ */ React.createElement(\"svg\", __spreadValues({ width: 16, height: 16, fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\" }, props), /* @__PURE__ */ React.createElement(\"path\", { d: \"M14.429 7.322H1.572a.143.143 0 0 0-.143.143v1.072c0 .078.064.142.143.142h12.857a.143.143 0 0 0 .143-.142V7.465a.143.143 0 0 0-.143-.143Z\", fill: \"#595959\" }));\nexport { SvgMinus as ReactComponent };\nexport default \"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjQyOSA3LjMyMkgxLjU3MmEuMTQzLjE0MyAwIDAgMC0uMTQzLjE0M3YxLjA3MmMwIC4wNzguMDY0LjE0Mi4xNDMuMTQyaDEyLjg1N2EuMTQzLjE0MyAwIDAgMCAuMTQzLS4xNDJWNy40NjVhLjE0My4xNDMgMCAwIDAtLjE0My0uMTQzWiIgZmlsbD0iIzU5NTk1OSIvPjwvc3ZnPg==\";\n","import React from 'react';\nimport { Dropdown, Slider } from 'antd';\nimport { ReactComponent as SettingsIcon } from './assets/settings.svg';\nimport { ReactComponent as PlusIcon } from './assets/plus.svg';\nimport { ReactComponent as MinusIcon } from './assets/minus.svg';\nimport { useLocale } from 'dds-utils/locale';\nimport './index.less';\n\nexport interface IProps {\n cloumnCount: number;\n maxCloumnCount?: number;\n onColumnCountChange: (countState: number | boolean) => void;\n getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;\n}\n\nconst ColumnSettings: React.FC = (props) => {\n const { localeText } = useLocale();\n const {\n cloumnCount,\n maxCloumnCount = 8,\n onColumnCountChange,\n getPopupContainer,\n } = props;\n\n return (\n (\n
\n
{localeText('ColumnSettings.title')}
\n
\n onColumnCountChange(value)}\n value={cloumnCount}\n className=\"slider\"\n />\n
\n onColumnCountChange(false)} />\n
{cloumnCount}
\n onColumnCountChange(true)} />\n
\n
\n
\n )}\n >\n
\n \n
\n \n );\n};\n\nexport default ColumnSettings;\n","import React from 'react';\nimport { Result } from 'antd';\nimport { globalLocaleText } from 'dds-utils/locale';\n\nconst MobileAlert: React.FC = () => (\n \n \n \n);\n\nexport default MobileAlert;\n","import React, { useState } from 'react';\nimport { Pagination, InputNumber } from 'antd';\nimport { useLocale } from 'dds-utils/locale';\nimport { isNaN } from 'lodash';\nimport './index.less';\n\nexport interface IProps {\n current: number;\n size: number;\n total: number;\n onPageChange: (page: number) => void;\n onPageSizeChange: (current: number, size: number) => void;\n}\n\nconst DynamicPagination: React.FC = (props) => {\n const { current, size, total, onPageChange, onPageSizeChange } = props;\n const [customPageSize, setCustomPageSize] = useState(size);\n const { localeText } = useLocale();\n\n return (\n
\n onPageChange(page)}\n />\n
\n
\n {localeText('DynamicPagination.label')}\n
\n {\n setCustomPageSize(Number(e));\n }}\n onBlur={(e) => {\n if (isNaN(Number(e.target.value)) || Number(e.target.value) <= 0) {\n onPageSizeChange(current, 1);\n } else {\n onPageSizeChange(current, Number(e.target.value));\n }\n }}\n onPressEnter={(e) => {\n (e.target as any).blur(e);\n }}\n />\n
\n
\n );\n};\n\nexport default DynamicPagination;\n","import { useMemoizedFn, useUpdate } from 'ahooks';\nimport { parse, stringify } from 'query-string';\nimport { useMemo, useRef } from 'react';\nimport * as tmp from 'react-router';\n// ignore waring `\"export 'useNavigate' (imported as 'rc') was not found in 'react-router'`\nconst rc = tmp;\nconst baseParseConfig = {\n parseNumbers: false,\n parseBooleans: false\n};\nconst baseStringifyConfig = {\n skipNull: false,\n skipEmptyString: false\n};\nconst useUrlState = (initialState, options) => {\n var _a, _b;\n const {\n navigateMode = 'push',\n parseOptions,\n stringifyOptions\n } = options || {};\n const mergedParseOptions = Object.assign(Object.assign({}, baseParseConfig), parseOptions);\n const mergedStringifyOptions = Object.assign(Object.assign({}, baseStringifyConfig), stringifyOptions);\n const location = rc.useLocation();\n // react-router v5\n const history = (_a = rc.useHistory) === null || _a === void 0 ? void 0 : _a.call(rc);\n // react-router v6\n const navigate = (_b = rc.useNavigate) === null || _b === void 0 ? void 0 : _b.call(rc);\n const update = useUpdate();\n const initialStateRef = useRef(typeof initialState === 'function' ? initialState() : initialState || {});\n const queryFromUrl = useMemo(() => {\n return parse(location.search, mergedParseOptions);\n }, [location.search]);\n const targetQuery = useMemo(() => Object.assign(Object.assign({}, initialStateRef.current), queryFromUrl), [queryFromUrl]);\n const setState = s => {\n const newQuery = typeof s === 'function' ? s(targetQuery) : s;\n // 1. 如果 setState 后,search 没变化,就需要 update 来触发一次更新。比如 demo1 直接点击 clear,就需要 update 来触发更新。\n // 2. update 和 history 的更新会合并,不会造成多次更新\n update();\n if (history) {\n history[navigateMode]({\n hash: location.hash,\n search: stringify(Object.assign(Object.assign({}, queryFromUrl), newQuery), mergedStringifyOptions) || '?'\n }, location.state);\n }\n if (navigate) {\n navigate({\n hash: location.hash,\n search: stringify(Object.assign(Object.assign({}, queryFromUrl), newQuery), mergedStringifyOptions) || '?'\n }, {\n replace: navigateMode === 'replace',\n state: location.state\n });\n }\n };\n return [targetQuery, useMemoizedFn(setState)];\n};\nexport default useUrlState;","import { useEffect } from 'react';\nimport useUrlState from '@ahooksjs/use-url-state';\n\n/**\n * Page lifecycle hooks\n * - Route-related operations need to be implemented through the page\n * - Direct invocation of related hooks is not supported within the model.\n */\nexport default function usePageModelLifeCycle(object: {\n /** Bind with the page query, and update the URL parameters correspondingly when modified. */\n pageState?: T;\n /** Initialize page data based on URL when entering the page. */\n onInitPageState?: (urlPageState: T, query: Record) => void;\n /** Entering page */\n onPageDidMount?: (query: Record) => void;\n /** Leaving page */\n onPageWillUnmount?: () => void;\n}) {\n const { pageState, onInitPageState, onPageDidMount, onPageWillUnmount } =\n object;\n\n // Real url query.\n // @ts-ignore\n const [query, updateQuery] = useUrlState>(\n {},\n { navigateMode: 'replace' },\n );\n\n useEffect(() => {\n // Trigger initialization of page state.\n if (onInitPageState) {\n let urlPageState = {};\n try {\n urlPageState = query.pageState ? JSON.parse(query.pageState) : {};\n } catch (error) {\n console.error('get urlPageState error: ', error);\n }\n onInitPageState(urlPageState as T, query);\n }\n // Trigger entering page lifecycle.\n if (onPageDidMount) {\n onPageDidMount(query);\n }\n return () => {\n // Trigger leaving page lifecycle.\n if (onPageWillUnmount) onPageWillUnmount();\n };\n }, []);\n\n // Bind pageState to update URL in real time.\n useEffect(() => {\n updateQuery({\n ...query,\n pageState: JSON.stringify(pageState),\n });\n }, [pageState]);\n\n return;\n}\n","import { useState, useEffect } from 'react';\n\nexport default function useWindowResize() {\n const [width, setWidth] = useState(window.innerWidth);\n const [height, setHeight] = useState(window.innerHeight);\n\n const listener = () => {\n setWidth(window.innerWidth);\n setHeight(window.innerHeight);\n };\n\n useEffect(() => {\n window.addEventListener('resize', listener);\n return () => {\n window.removeEventListener('resize', listener);\n };\n }, []);\n\n return {\n width,\n height,\n };\n}\n","/**\n * Round the decimal to n digits (take the first few digits)\n * @param value\n * @param n\n * @returns\n */\nexport const floorFloatNum = (value: number, n: number = 2) => {\n return Math.floor(value * Math.pow(10, n)) / Math.pow(10, n);\n};\n\n/**\n * Round the decimal to n digits (rounding off)\n * @param value\n * @param n\n * @returns\n */\nexport const fixedFloatNum = (value: number, n: number = 2) => {\n return Number(value.toFixed(n));\n};\n","import { FormattedMessage, formatMessage, useIntl } from '@umijs/max';\n\n/**\n * Use For: single function / global model / layout / app.tsx\n * The corresponding multilingual only takes effect after refreshing the page.\n * @param id\n * @param templateParams\n * @returns\n */\n\nexport const globalLocaleText = (\n id: string,\n templateParams: Record = {},\n) => {\n return formatMessage({ id }, templateParams);\n};\n\n/**\n * Use For: Render function\n * id\n * values\n */\nexport const LocaleText = FormattedMessage;\n\n/**\n * Use For: Fuction Components\n */\nexport const useLocale = () => {\n const intl = useIntl();\n const localeText = (id: string, templateParams: Record = {}) => {\n return intl.formatMessage({ id }, templateParams);\n };\n return {\n localeText,\n };\n};\n","// @ts-ignore typings to rediect src/.umi\nimport { history } from '@umijs/max';\n\nexport const getUrlQueryVal = (name: string) => {\n let reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');\n let r = window.location.search.substr(1).match(reg);\n if (r !== null) {\n return decodeURIComponent(r[2]);\n }\n return null;\n};\n\nexport const getUrlPathnameLastKey = () => {\n const keys = window.location.pathname.split('/');\n return keys[keys.length - 1];\n};\n\nexport const backPath = (backPath: string) => {\n if (document.referrer.includes(backPath)) {\n window.history.back();\n } else {\n history.push(backPath);\n }\n};\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\nconst filterObject = require('filter-obj');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tif (param === '') {\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${encode(object.fragmentIdentifier, options)}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n\nexports.pick = (input, filter, options) => {\n\toptions = Object.assign({\n\t\tparseFragmentIdentifier: true\n\t}, options);\n\n\tconst {url, query, fragmentIdentifier} = exports.parseUrl(input, options);\n\treturn exports.stringifyUrl({\n\t\turl,\n\t\tquery: filterObject(query, filter),\n\t\tfragmentIdentifier\n\t}, options);\n};\n\nexports.exclude = (input, filter, options) => {\n\tconst exclusionFilter = Array.isArray(filter) ? key => !filter.includes(key) : (key, value) => !filter(key, value);\n\n\treturn exports.pick(input, exclusionFilter, options);\n};\n","'use strict';\n\nmodule.exports = (string, separator) => {\n\tif (!(typeof string === 'string' && typeof separator === 'string')) {\n\t\tthrow new TypeError('Expected the arguments to be of type `string`');\n\t}\n\n\tif (separator === '') {\n\t\treturn [string];\n\t}\n\n\tconst separatorIndex = string.indexOf(separator);\n\n\tif (separatorIndex === -1) {\n\t\treturn [string];\n\t}\n\n\treturn [\n\t\tstring.slice(0, separatorIndex),\n\t\tstring.slice(separatorIndex + separator.length)\n\t];\n};\n","'use strict';\nmodule.exports = str => encodeURIComponent(str).replace(/[!'()*]/g, x => `%${x.charCodeAt(0).toString(16).toUpperCase()}`);\n","import _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"element\"];\nimport React from 'react';\nimport { matchRoutes, useLocation } from 'react-router-dom';\nimport { useRouteData } from \"./routeContext\";\nexport var AppContext = /*#__PURE__*/React.createContext({});\nexport function useAppData() {\n return React.useContext(AppContext);\n}\nexport function useSelectedRoutes() {\n var location = useLocation();\n\n var _useAppData = useAppData(),\n clientRoutes = _useAppData.clientRoutes; // use `useLocation` get location without `basename`, not need `basename` param\n\n\n var routes = matchRoutes(clientRoutes, location.pathname);\n return routes || [];\n}\nexport function useRouteProps() {\n var _currentRoute$;\n\n var currentRoute = useSelectedRoutes().slice(-1);\n\n var _ref = ((_currentRoute$ = currentRoute[0]) === null || _currentRoute$ === void 0 ? void 0 : _currentRoute$.route) || {},\n _ = _ref.element,\n props = _objectWithoutProperties(_ref, _excluded);\n\n return props;\n}\nexport function useServerLoaderData() {\n var route = useRouteData();\n var appData = useAppData();\n return {\n data: appData.serverLoaderData[route.route.id]\n };\n}\nexport function useClientLoaderData() {\n var route = useRouteData();\n var appData = useAppData();\n return {\n data: appData.clientLoaderData[route.route.id]\n };\n}","import useLatest from '../useLatest';\nimport { getTargetElement } from '../utils/domTarget';\nimport useEffectWithTarget from '../utils/useEffectWithTarget';\nfunction useEventListener(eventName, handler, options) {\n if (options === void 0) {\n options = {};\n }\n var handlerRef = useLatest(handler);\n useEffectWithTarget(function () {\n var targetElement = getTargetElement(options.target, window);\n if (!(targetElement === null || targetElement === void 0 ? void 0 : targetElement.addEventListener)) {\n return;\n }\n var eventListener = function (event) {\n return handlerRef.current(event);\n };\n targetElement.addEventListener(eventName, eventListener, {\n capture: options.capture,\n once: options.once,\n passive: options.passive\n });\n return function () {\n targetElement.removeEventListener(eventName, eventListener, {\n capture: options.capture\n });\n };\n }, [eventName, options.capture, options.once, options.passive], options.target);\n}\nexport default useEventListener;","import isEqual from 'lodash/isEqual';\nexport var depsEqual = function (aDeps, bDeps) {\n if (aDeps === void 0) {\n aDeps = [];\n }\n if (bDeps === void 0) {\n bDeps = [];\n }\n return isEqual(aDeps, bDeps);\n};","import { useRef } from 'react';\nimport useEffectWithTarget from './useEffectWithTarget';\nimport { depsEqual } from './depsEqual';\nvar useDeepCompareEffectWithTarget = function (effect, deps, target) {\n var ref = useRef();\n var signalRef = useRef(0);\n if (!depsEqual(deps, ref.current)) {\n ref.current = deps;\n signalRef.current += 1;\n }\n useEffectWithTarget(effect, [signalRef.current], target);\n};\nexport default useDeepCompareEffectWithTarget;","var isAppleDevice = /(mac|iphone|ipod|ipad)/i.test(typeof navigator !== 'undefined' ? navigator === null || navigator === void 0 ? void 0 : navigator.platform : '');\nexport default isAppleDevice;","import { __values } from \"tslib\";\nimport useLatest from '../useLatest';\nimport { isFunction, isNumber, isString } from '../utils';\nimport { getTargetElement } from '../utils/domTarget';\nimport useDeepCompareEffectWithTarget from '../utils/useDeepCompareWithTarget';\nimport isAppleDevice from '../utils/isAppleDevice';\n// 键盘事件 keyCode 别名\nvar aliasKeyCodeMap = {\n '0': 48,\n '1': 49,\n '2': 50,\n '3': 51,\n '4': 52,\n '5': 53,\n '6': 54,\n '7': 55,\n '8': 56,\n '9': 57,\n backspace: 8,\n tab: 9,\n enter: 13,\n shift: 16,\n ctrl: 17,\n alt: 18,\n pausebreak: 19,\n capslock: 20,\n esc: 27,\n space: 32,\n pageup: 33,\n pagedown: 34,\n end: 35,\n home: 36,\n leftarrow: 37,\n uparrow: 38,\n rightarrow: 39,\n downarrow: 40,\n insert: 45,\n delete: 46,\n a: 65,\n b: 66,\n c: 67,\n d: 68,\n e: 69,\n f: 70,\n g: 71,\n h: 72,\n i: 73,\n j: 74,\n k: 75,\n l: 76,\n m: 77,\n n: 78,\n o: 79,\n p: 80,\n q: 81,\n r: 82,\n s: 83,\n t: 84,\n u: 85,\n v: 86,\n w: 87,\n x: 88,\n y: 89,\n z: 90,\n leftwindowkey: 91,\n rightwindowkey: 92,\n meta: isAppleDevice ? [91, 93] : [91, 92],\n selectkey: 93,\n numpad0: 96,\n numpad1: 97,\n numpad2: 98,\n numpad3: 99,\n numpad4: 100,\n numpad5: 101,\n numpad6: 102,\n numpad7: 103,\n numpad8: 104,\n numpad9: 105,\n multiply: 106,\n add: 107,\n subtract: 109,\n decimalpoint: 110,\n divide: 111,\n f1: 112,\n f2: 113,\n f3: 114,\n f4: 115,\n f5: 116,\n f6: 117,\n f7: 118,\n f8: 119,\n f9: 120,\n f10: 121,\n f11: 122,\n f12: 123,\n numlock: 144,\n scrolllock: 145,\n semicolon: 186,\n equalsign: 187,\n comma: 188,\n dash: 189,\n period: 190,\n forwardslash: 191,\n graveaccent: 192,\n openbracket: 219,\n backslash: 220,\n closebracket: 221,\n singlequote: 222\n};\n// 修饰键\nvar modifierKey = {\n ctrl: function (event) {\n return event.ctrlKey;\n },\n shift: function (event) {\n return event.shiftKey;\n },\n alt: function (event) {\n return event.altKey;\n },\n meta: function (event) {\n if (event.type === 'keyup') {\n return aliasKeyCodeMap.meta.includes(event.keyCode);\n }\n return event.metaKey;\n }\n};\n// 根据 event 计算激活键数量\nfunction countKeyByEvent(event) {\n var countOfModifier = Object.keys(modifierKey).reduce(function (total, key) {\n if (modifierKey[key](event)) {\n return total + 1;\n }\n return total;\n }, 0);\n // 16 17 18 91 92 是修饰键的 keyCode,如果 keyCode 是修饰键,那么激活数量就是修饰键的数量,如果不是,那么就需要 +1\n return [16, 17, 18, 91, 92].includes(event.keyCode) ? countOfModifier : countOfModifier + 1;\n}\n/**\n * 判断按键是否激活\n * @param [event: KeyboardEvent]键盘事件\n * @param [keyFilter: any] 当前键\n * @returns Boolean\n */\nfunction genFilterKey(event, keyFilter, exactMatch) {\n var e_1, _a;\n // 浏览器自动补全 input 的时候,会触发 keyDown、keyUp 事件,但此时 event.key 等为空\n if (!event.key) {\n return false;\n }\n // 数字类型直接匹配事件的 keyCode\n if (isNumber(keyFilter)) {\n return event.keyCode === keyFilter;\n }\n // 字符串依次判断是否有组合键\n var genArr = keyFilter.split('.');\n var genLen = 0;\n try {\n for (var genArr_1 = __values(genArr), genArr_1_1 = genArr_1.next(); !genArr_1_1.done; genArr_1_1 = genArr_1.next()) {\n var key = genArr_1_1.value;\n // 组合键\n var genModifier = modifierKey[key];\n // keyCode 别名\n var aliasKeyCode = aliasKeyCodeMap[key.toLowerCase()];\n if (genModifier && genModifier(event) || aliasKeyCode && aliasKeyCode === event.keyCode) {\n genLen++;\n }\n }\n } catch (e_1_1) {\n e_1 = {\n error: e_1_1\n };\n } finally {\n try {\n if (genArr_1_1 && !genArr_1_1.done && (_a = genArr_1.return)) _a.call(genArr_1);\n } finally {\n if (e_1) throw e_1.error;\n }\n }\n /**\n * 需要判断触发的键位和监听的键位完全一致,判断方法就是触发的键位里有且等于监听的键位\n * genLen === genArr.length 能判断出来触发的键位里有监听的键位\n * countKeyByEvent(event) === genArr.length 判断出来触发的键位数量里有且等于监听的键位数量\n * 主要用来防止按组合键其子集也会触发的情况,例如监听 ctrl+a 会触发监听 ctrl 和 a 两个键的事件。\n */\n if (exactMatch) {\n return genLen === genArr.length && countKeyByEvent(event) === genArr.length;\n }\n return genLen === genArr.length;\n}\n/**\n * 键盘输入预处理方法\n * @param [keyFilter: any] 当前键\n * @returns () => Boolean\n */\nfunction genKeyFormatter(keyFilter, exactMatch) {\n if (isFunction(keyFilter)) {\n return keyFilter;\n }\n if (isString(keyFilter) || isNumber(keyFilter)) {\n return function (event) {\n return genFilterKey(event, keyFilter, exactMatch);\n };\n }\n if (Array.isArray(keyFilter)) {\n return function (event) {\n return keyFilter.some(function (item) {\n return genFilterKey(event, item, exactMatch);\n });\n };\n }\n return function () {\n return Boolean(keyFilter);\n };\n}\nvar defaultEvents = ['keydown'];\nfunction useKeyPress(keyFilter, eventHandler, option) {\n var _a = option || {},\n _b = _a.events,\n events = _b === void 0 ? defaultEvents : _b,\n target = _a.target,\n _c = _a.exactMatch,\n exactMatch = _c === void 0 ? false : _c,\n _d = _a.useCapture,\n useCapture = _d === void 0 ? false : _d;\n var eventHandlerRef = useLatest(eventHandler);\n var keyFilterRef = useLatest(keyFilter);\n useDeepCompareEffectWithTarget(function () {\n var e_2, _a;\n var _b;\n var el = getTargetElement(target, window);\n if (!el) {\n return;\n }\n var callbackHandler = function (event) {\n var _a;\n var genGuard = genKeyFormatter(keyFilterRef.current, exactMatch);\n if (genGuard(event)) {\n return (_a = eventHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(eventHandlerRef, event);\n }\n };\n try {\n for (var events_1 = __values(events), events_1_1 = events_1.next(); !events_1_1.done; events_1_1 = events_1.next()) {\n var eventName = events_1_1.value;\n (_b = el === null || el === void 0 ? void 0 : el.addEventListener) === null || _b === void 0 ? void 0 : _b.call(el, eventName, callbackHandler, useCapture);\n }\n } catch (e_2_1) {\n e_2 = {\n error: e_2_1\n };\n } finally {\n try {\n if (events_1_1 && !events_1_1.done && (_a = events_1.return)) _a.call(events_1);\n } finally {\n if (e_2) throw e_2.error;\n }\n }\n return function () {\n var e_3, _a;\n var _b;\n try {\n for (var events_2 = __values(events), events_2_1 = events_2.next(); !events_2_1.done; events_2_1 = events_2.next()) {\n var eventName = events_2_1.value;\n (_b = el === null || el === void 0 ? void 0 : el.removeEventListener) === null || _b === void 0 ? void 0 : _b.call(el, eventName, callbackHandler, useCapture);\n }\n } catch (e_3_1) {\n e_3 = {\n error: e_3_1\n };\n } finally {\n try {\n if (events_2_1 && !events_2_1.done && (_a = events_2.return)) _a.call(events_2);\n } finally {\n if (e_3) throw e_3.error;\n }\n }\n };\n }, [events], target);\n}\nexport default useKeyPress;","import { useRef } from 'react';\nfunction useLatest(value) {\n var ref = useRef(value);\n ref.current = value;\n return ref;\n}\nexport default useLatest;","import { useMemo, useRef } from 'react';\nimport { isFunction } from '../utils';\nimport isDev from '../utils/isDev';\nfunction useMemoizedFn(fn) {\n if (isDev) {\n if (!isFunction(fn)) {\n console.error(\"useMemoizedFn expected parameter is a function, got \".concat(typeof fn));\n }\n }\n var fnRef = useRef(fn);\n // why not write `fnRef.current = fn`?\n // https://github.com/alibaba/hooks/issues/728\n fnRef.current = useMemo(function () {\n return fn;\n }, [fn]);\n var memoizedFn = useRef();\n if (!memoizedFn.current) {\n memoizedFn.current = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return fnRef.current.apply(this, args);\n };\n }\n return memoizedFn.current;\n}\nexport default useMemoizedFn;","import { __read } from \"tslib\";\nimport { useCallback, useRef, useState } from 'react';\nimport useUnmount from '../useUnmount';\nfunction useRafState(initialState) {\n var ref = useRef(0);\n var _a = __read(useState(initialState), 2),\n state = _a[0],\n setState = _a[1];\n var setRafState = useCallback(function (value) {\n cancelAnimationFrame(ref.current);\n ref.current = requestAnimationFrame(function () {\n setState(value);\n });\n }, []);\n useUnmount(function () {\n cancelAnimationFrame(ref.current);\n });\n return [state, setRafState];\n}\nexport default useRafState;","import { useRef } from 'react';\nexport var createUpdateEffect = function (hook) {\n return function (effect, deps) {\n var isMounted = useRef(false);\n // for react-refresh\n hook(function () {\n return function () {\n isMounted.current = false;\n };\n }, []);\n hook(function () {\n if (!isMounted.current) {\n isMounted.current = true;\n } else {\n return effect();\n }\n }, deps);\n };\n};\nexport default createUpdateEffect;","import { useEffect } from 'react';\nimport { createUpdateEffect } from '../createUpdateEffect';\nexport default createUpdateEffect(useEffect);","import { __read, __spreadArray } from \"tslib\";\nimport { useRef } from 'react';\nimport useUpdateEffect from '../../../useUpdateEffect';\n// support refreshDeps & ready\nvar useAutoRunPlugin = function (fetchInstance, _a) {\n var manual = _a.manual,\n _b = _a.ready,\n ready = _b === void 0 ? true : _b,\n _c = _a.defaultParams,\n defaultParams = _c === void 0 ? [] : _c,\n _d = _a.refreshDeps,\n refreshDeps = _d === void 0 ? [] : _d,\n refreshDepsAction = _a.refreshDepsAction;\n var hasAutoRun = useRef(false);\n hasAutoRun.current = false;\n useUpdateEffect(function () {\n if (!manual && ready) {\n hasAutoRun.current = true;\n fetchInstance.run.apply(fetchInstance, __spreadArray([], __read(defaultParams), false));\n }\n }, [ready]);\n useUpdateEffect(function () {\n if (hasAutoRun.current) {\n return;\n }\n if (!manual) {\n hasAutoRun.current = true;\n if (refreshDepsAction) {\n refreshDepsAction();\n } else {\n fetchInstance.refresh();\n }\n }\n }, __spreadArray([], __read(refreshDeps), false));\n return {\n onBefore: function () {\n if (!ready) {\n return {\n stopNow: true\n };\n }\n }\n };\n};\nuseAutoRunPlugin.onInit = function (_a) {\n var _b = _a.ready,\n ready = _b === void 0 ? true : _b,\n manual = _a.manual;\n return {\n loading: !manual && ready\n };\n};\nexport default useAutoRunPlugin;","import { useRef } from 'react';\nimport depsAreSame from '../utils/depsAreSame';\nexport default function useCreation(factory, deps) {\n var current = useRef({\n deps: deps,\n obj: undefined,\n initialized: false\n }).current;\n if (current.initialized === false || !depsAreSame(current.deps, deps)) {\n current.deps = deps;\n current.obj = factory();\n current.initialized = true;\n }\n return current.obj;\n}","import { __assign } from \"tslib\";\nvar cache = new Map();\nvar setCache = function (key, cacheTime, cachedData) {\n var currentCache = cache.get(key);\n if (currentCache === null || currentCache === void 0 ? void 0 : currentCache.timer) {\n clearTimeout(currentCache.timer);\n }\n var timer = undefined;\n if (cacheTime > -1) {\n // if cache out, clear it\n timer = setTimeout(function () {\n cache.delete(key);\n }, cacheTime);\n }\n cache.set(key, __assign(__assign({}, cachedData), {\n timer: timer\n }));\n};\nvar getCache = function (key) {\n return cache.get(key);\n};\nvar clearCache = function (key) {\n if (key) {\n var cacheKeys = Array.isArray(key) ? key : [key];\n cacheKeys.forEach(function (cacheKey) {\n return cache.delete(cacheKey);\n });\n } else {\n cache.clear();\n }\n};\nexport { getCache, setCache, clearCache };","var cachePromise = new Map();\nvar getCachePromise = function (cacheKey) {\n return cachePromise.get(cacheKey);\n};\nvar setCachePromise = function (cacheKey, promise) {\n // Should cache the same promise, cannot be promise.finally\n // Because the promise.finally will change the reference of the promise\n cachePromise.set(cacheKey, promise);\n // no use promise.finally for compatibility\n promise.then(function (res) {\n cachePromise.delete(cacheKey);\n return res;\n }).catch(function () {\n cachePromise.delete(cacheKey);\n });\n};\nexport { getCachePromise, setCachePromise };","var listeners = {};\nvar trigger = function (key, data) {\n if (listeners[key]) {\n listeners[key].forEach(function (item) {\n return item(data);\n });\n }\n};\nvar subscribe = function (key, listener) {\n if (!listeners[key]) {\n listeners[key] = [];\n }\n listeners[key].push(listener);\n return function unsubscribe() {\n var index = listeners[key].indexOf(listener);\n listeners[key].splice(index, 1);\n };\n};\nexport { trigger, subscribe };","import { __read, __spreadArray } from \"tslib\";\nimport { useRef } from 'react';\nimport useCreation from '../../../useCreation';\nimport useUnmount from '../../../useUnmount';\nimport * as cache from '../utils/cache';\nimport * as cachePromise from '../utils/cachePromise';\nimport * as cacheSubscribe from '../utils/cacheSubscribe';\nvar useCachePlugin = function (fetchInstance, _a) {\n var cacheKey = _a.cacheKey,\n _b = _a.cacheTime,\n cacheTime = _b === void 0 ? 5 * 60 * 1000 : _b,\n _c = _a.staleTime,\n staleTime = _c === void 0 ? 0 : _c,\n customSetCache = _a.setCache,\n customGetCache = _a.getCache;\n var unSubscribeRef = useRef();\n var currentPromiseRef = useRef();\n var _setCache = function (key, cachedData) {\n if (customSetCache) {\n customSetCache(cachedData);\n } else {\n cache.setCache(key, cacheTime, cachedData);\n }\n cacheSubscribe.trigger(key, cachedData.data);\n };\n var _getCache = function (key, params) {\n if (params === void 0) {\n params = [];\n }\n if (customGetCache) {\n return customGetCache(params);\n }\n return cache.getCache(key);\n };\n useCreation(function () {\n if (!cacheKey) {\n return;\n }\n // get data from cache when init\n var cacheData = _getCache(cacheKey);\n if (cacheData && Object.hasOwnProperty.call(cacheData, 'data')) {\n fetchInstance.state.data = cacheData.data;\n fetchInstance.state.params = cacheData.params;\n if (staleTime === -1 || new Date().getTime() - cacheData.time <= staleTime) {\n fetchInstance.state.loading = false;\n }\n }\n // subscribe same cachekey update, trigger update\n unSubscribeRef.current = cacheSubscribe.subscribe(cacheKey, function (data) {\n fetchInstance.setState({\n data: data\n });\n });\n }, []);\n useUnmount(function () {\n var _a;\n (_a = unSubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unSubscribeRef);\n });\n if (!cacheKey) {\n return {};\n }\n return {\n onBefore: function (params) {\n var cacheData = _getCache(cacheKey, params);\n if (!cacheData || !Object.hasOwnProperty.call(cacheData, 'data')) {\n return {};\n }\n // If the data is fresh, stop request\n if (staleTime === -1 || new Date().getTime() - cacheData.time <= staleTime) {\n return {\n loading: false,\n data: cacheData === null || cacheData === void 0 ? void 0 : cacheData.data,\n error: undefined,\n returnNow: true\n };\n } else {\n // If the data is stale, return data, and request continue\n return {\n data: cacheData === null || cacheData === void 0 ? void 0 : cacheData.data,\n error: undefined\n };\n }\n },\n onRequest: function (service, args) {\n var servicePromise = cachePromise.getCachePromise(cacheKey);\n // If has servicePromise, and is not trigger by self, then use it\n if (servicePromise && servicePromise !== currentPromiseRef.current) {\n return {\n servicePromise: servicePromise\n };\n }\n servicePromise = service.apply(void 0, __spreadArray([], __read(args), false));\n currentPromiseRef.current = servicePromise;\n cachePromise.setCachePromise(cacheKey, servicePromise);\n return {\n servicePromise: servicePromise\n };\n },\n onSuccess: function (data, params) {\n var _a;\n if (cacheKey) {\n // cancel subscribe, avoid trgger self\n (_a = unSubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unSubscribeRef);\n _setCache(cacheKey, {\n data: data,\n params: params,\n time: new Date().getTime()\n });\n // resubscribe\n unSubscribeRef.current = cacheSubscribe.subscribe(cacheKey, function (d) {\n fetchInstance.setState({\n data: d\n });\n });\n }\n },\n onMutate: function (data) {\n var _a;\n if (cacheKey) {\n // cancel subscribe, avoid trigger self\n (_a = unSubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unSubscribeRef);\n _setCache(cacheKey, {\n data: data,\n params: fetchInstance.state.params,\n time: new Date().getTime()\n });\n // resubscribe\n unSubscribeRef.current = cacheSubscribe.subscribe(cacheKey, function (d) {\n fetchInstance.setState({\n data: d\n });\n });\n }\n }\n };\n};\nexport default useCachePlugin;","import { __read, __spreadArray } from \"tslib\";\nimport debounce from 'lodash/debounce';\nimport { useEffect, useMemo, useRef } from 'react';\nvar useDebouncePlugin = function (fetchInstance, _a) {\n var debounceWait = _a.debounceWait,\n debounceLeading = _a.debounceLeading,\n debounceTrailing = _a.debounceTrailing,\n debounceMaxWait = _a.debounceMaxWait;\n var debouncedRef = useRef();\n var options = useMemo(function () {\n var ret = {};\n if (debounceLeading !== undefined) {\n ret.leading = debounceLeading;\n }\n if (debounceTrailing !== undefined) {\n ret.trailing = debounceTrailing;\n }\n if (debounceMaxWait !== undefined) {\n ret.maxWait = debounceMaxWait;\n }\n return ret;\n }, [debounceLeading, debounceTrailing, debounceMaxWait]);\n useEffect(function () {\n if (debounceWait) {\n var _originRunAsync_1 = fetchInstance.runAsync.bind(fetchInstance);\n debouncedRef.current = debounce(function (callback) {\n callback();\n }, debounceWait, options);\n // debounce runAsync should be promise\n // https://github.com/lodash/lodash/issues/4400#issuecomment-834800398\n fetchInstance.runAsync = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return new Promise(function (resolve, reject) {\n var _a;\n (_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.call(debouncedRef, function () {\n _originRunAsync_1.apply(void 0, __spreadArray([], __read(args), false)).then(resolve).catch(reject);\n });\n });\n };\n return function () {\n var _a;\n (_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.cancel();\n fetchInstance.runAsync = _originRunAsync_1;\n };\n }\n }, [debounceWait, options]);\n if (!debounceWait) {\n return {};\n }\n return {\n onCancel: function () {\n var _a;\n (_a = debouncedRef.current) === null || _a === void 0 ? void 0 : _a.cancel();\n }\n };\n};\nexport default useDebouncePlugin;","import { useRef } from 'react';\nvar useLoadingDelayPlugin = function (fetchInstance, _a) {\n var loadingDelay = _a.loadingDelay,\n ready = _a.ready;\n var timerRef = useRef();\n if (!loadingDelay) {\n return {};\n }\n var cancelTimeout = function () {\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n };\n return {\n onBefore: function () {\n cancelTimeout();\n // Two cases:\n // 1. ready === undefined\n // 2. ready === true\n if (ready !== false) {\n timerRef.current = setTimeout(function () {\n fetchInstance.setState({\n loading: true\n });\n }, loadingDelay);\n }\n return {\n loading: false\n };\n },\n onFinally: function () {\n cancelTimeout();\n },\n onCancel: function () {\n cancelTimeout();\n }\n };\n};\nexport default useLoadingDelayPlugin;","import isBrowser from '../../../utils/isBrowser';\nexport default function isDocumentVisible() {\n if (isBrowser) {\n return document.visibilityState !== 'hidden';\n }\n return true;\n}","import isBrowser from '../../../utils/isBrowser';\nimport isDocumentVisible from './isDocumentVisible';\nvar listeners = [];\nfunction subscribe(listener) {\n listeners.push(listener);\n return function unsubscribe() {\n var index = listeners.indexOf(listener);\n listeners.splice(index, 1);\n };\n}\nif (isBrowser) {\n var revalidate = function () {\n if (!isDocumentVisible()) return;\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n };\n window.addEventListener('visibilitychange', revalidate, false);\n}\nexport default subscribe;","import { useRef } from 'react';\nimport useUpdateEffect from '../../../useUpdateEffect';\nimport isDocumentVisible from '../utils/isDocumentVisible';\nimport subscribeReVisible from '../utils/subscribeReVisible';\nvar usePollingPlugin = function (fetchInstance, _a) {\n var pollingInterval = _a.pollingInterval,\n _b = _a.pollingWhenHidden,\n pollingWhenHidden = _b === void 0 ? true : _b,\n _c = _a.pollingErrorRetryCount,\n pollingErrorRetryCount = _c === void 0 ? -1 : _c;\n var timerRef = useRef();\n var unsubscribeRef = useRef();\n var countRef = useRef(0);\n var stopPolling = function () {\n var _a;\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n (_a = unsubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unsubscribeRef);\n };\n useUpdateEffect(function () {\n if (!pollingInterval) {\n stopPolling();\n }\n }, [pollingInterval]);\n if (!pollingInterval) {\n return {};\n }\n return {\n onBefore: function () {\n stopPolling();\n },\n onError: function () {\n countRef.current += 1;\n },\n onSuccess: function () {\n countRef.current = 0;\n },\n onFinally: function () {\n if (pollingErrorRetryCount === -1 ||\n // When an error occurs, the request is not repeated after pollingErrorRetryCount retries\n pollingErrorRetryCount !== -1 && countRef.current <= pollingErrorRetryCount) {\n timerRef.current = setTimeout(function () {\n // if pollingWhenHidden = false && document is hidden, then stop polling and subscribe revisible\n if (!pollingWhenHidden && !isDocumentVisible()) {\n unsubscribeRef.current = subscribeReVisible(function () {\n fetchInstance.refresh();\n });\n } else {\n fetchInstance.refresh();\n }\n }, pollingInterval);\n } else {\n countRef.current = 0;\n }\n },\n onCancel: function () {\n stopPolling();\n }\n };\n};\nexport default usePollingPlugin;","import { __read, __spreadArray } from \"tslib\";\nexport default function limit(fn, timespan) {\n var pending = false;\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n if (pending) return;\n pending = true;\n fn.apply(void 0, __spreadArray([], __read(args), false));\n setTimeout(function () {\n pending = false;\n }, timespan);\n };\n}","import isBrowser from '../../../utils/isBrowser';\nexport default function isOnline() {\n if (isBrowser && typeof navigator.onLine !== 'undefined') {\n return navigator.onLine;\n }\n return true;\n}","// from swr\nimport isBrowser from '../../../utils/isBrowser';\nimport isDocumentVisible from './isDocumentVisible';\nimport isOnline from './isOnline';\nvar listeners = [];\nfunction subscribe(listener) {\n listeners.push(listener);\n return function unsubscribe() {\n var index = listeners.indexOf(listener);\n if (index > -1) {\n listeners.splice(index, 1);\n }\n };\n}\nif (isBrowser) {\n var revalidate = function () {\n if (!isDocumentVisible() || !isOnline()) return;\n for (var i = 0; i < listeners.length; i++) {\n var listener = listeners[i];\n listener();\n }\n };\n window.addEventListener('visibilitychange', revalidate, false);\n window.addEventListener('focus', revalidate, false);\n}\nexport default subscribe;","import { useEffect, useRef } from 'react';\nimport useUnmount from '../../../useUnmount';\nimport limit from '../utils/limit';\nimport subscribeFocus from '../utils/subscribeFocus';\nvar useRefreshOnWindowFocusPlugin = function (fetchInstance, _a) {\n var refreshOnWindowFocus = _a.refreshOnWindowFocus,\n _b = _a.focusTimespan,\n focusTimespan = _b === void 0 ? 5000 : _b;\n var unsubscribeRef = useRef();\n var stopSubscribe = function () {\n var _a;\n (_a = unsubscribeRef.current) === null || _a === void 0 ? void 0 : _a.call(unsubscribeRef);\n };\n useEffect(function () {\n if (refreshOnWindowFocus) {\n var limitRefresh_1 = limit(fetchInstance.refresh.bind(fetchInstance), focusTimespan);\n unsubscribeRef.current = subscribeFocus(function () {\n limitRefresh_1();\n });\n }\n return function () {\n stopSubscribe();\n };\n }, [refreshOnWindowFocus, focusTimespan]);\n useUnmount(function () {\n stopSubscribe();\n });\n return {};\n};\nexport default useRefreshOnWindowFocusPlugin;","import { useRef } from 'react';\nvar useRetryPlugin = function (fetchInstance, _a) {\n var retryInterval = _a.retryInterval,\n retryCount = _a.retryCount;\n var timerRef = useRef();\n var countRef = useRef(0);\n var triggerByRetry = useRef(false);\n if (!retryCount) {\n return {};\n }\n return {\n onBefore: function () {\n if (!triggerByRetry.current) {\n countRef.current = 0;\n }\n triggerByRetry.current = false;\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n },\n onSuccess: function () {\n countRef.current = 0;\n },\n onError: function () {\n countRef.current += 1;\n if (retryCount === -1 || countRef.current <= retryCount) {\n // Exponential backoff\n var timeout = retryInterval !== null && retryInterval !== void 0 ? retryInterval : Math.min(1000 * Math.pow(2, countRef.current), 30000);\n timerRef.current = setTimeout(function () {\n triggerByRetry.current = true;\n fetchInstance.refresh();\n }, timeout);\n } else {\n countRef.current = 0;\n }\n },\n onCancel: function () {\n countRef.current = 0;\n if (timerRef.current) {\n clearTimeout(timerRef.current);\n }\n }\n };\n};\nexport default useRetryPlugin;","import { __read, __spreadArray } from \"tslib\";\nimport throttle from 'lodash/throttle';\nimport { useEffect, useRef } from 'react';\nvar useThrottlePlugin = function (fetchInstance, _a) {\n var throttleWait = _a.throttleWait,\n throttleLeading = _a.throttleLeading,\n throttleTrailing = _a.throttleTrailing;\n var throttledRef = useRef();\n var options = {};\n if (throttleLeading !== undefined) {\n options.leading = throttleLeading;\n }\n if (throttleTrailing !== undefined) {\n options.trailing = throttleTrailing;\n }\n useEffect(function () {\n if (throttleWait) {\n var _originRunAsync_1 = fetchInstance.runAsync.bind(fetchInstance);\n throttledRef.current = throttle(function (callback) {\n callback();\n }, throttleWait, options);\n // throttle runAsync should be promise\n // https://github.com/lodash/lodash/issues/4400#issuecomment-834800398\n fetchInstance.runAsync = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return new Promise(function (resolve, reject) {\n var _a;\n (_a = throttledRef.current) === null || _a === void 0 ? void 0 : _a.call(throttledRef, function () {\n _originRunAsync_1.apply(void 0, __spreadArray([], __read(args), false)).then(resolve).catch(reject);\n });\n });\n };\n return function () {\n var _a;\n fetchInstance.runAsync = _originRunAsync_1;\n (_a = throttledRef.current) === null || _a === void 0 ? void 0 : _a.cancel();\n };\n }\n }, [throttleWait, throttleLeading, throttleTrailing]);\n if (!throttleWait) {\n return {};\n }\n return {\n onCancel: function () {\n var _a;\n (_a = throttledRef.current) === null || _a === void 0 ? void 0 : _a.cancel();\n }\n };\n};\nexport default useThrottlePlugin;","import { useEffect } from 'react';\nimport { isFunction } from '../utils';\nimport isDev from '../utils/isDev';\nvar useMount = function (fn) {\n if (isDev) {\n if (!isFunction(fn)) {\n console.error(\"useMount: parameter `fn` expected to be a function, but got \\\"\".concat(typeof fn, \"\\\".\"));\n }\n }\n useEffect(function () {\n fn === null || fn === void 0 ? void 0 : fn();\n }, []);\n};\nexport default useMount;","import { __assign, __awaiter, __generator, __read, __rest, __spreadArray } from \"tslib\";\n/* eslint-disable @typescript-eslint/no-parameter-properties */\nimport { isFunction } from '../../utils';\nvar Fetch = /** @class */function () {\n function Fetch(serviceRef, options, subscribe, initState) {\n if (initState === void 0) {\n initState = {};\n }\n this.serviceRef = serviceRef;\n this.options = options;\n this.subscribe = subscribe;\n this.initState = initState;\n this.count = 0;\n this.state = {\n loading: false,\n params: undefined,\n data: undefined,\n error: undefined\n };\n this.state = __assign(__assign(__assign({}, this.state), {\n loading: !options.manual\n }), initState);\n }\n Fetch.prototype.setState = function (s) {\n if (s === void 0) {\n s = {};\n }\n this.state = __assign(__assign({}, this.state), s);\n this.subscribe();\n };\n Fetch.prototype.runPluginHandler = function (event) {\n var rest = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n rest[_i - 1] = arguments[_i];\n }\n // @ts-ignore\n var r = this.pluginImpls.map(function (i) {\n var _a;\n return (_a = i[event]) === null || _a === void 0 ? void 0 : _a.call.apply(_a, __spreadArray([i], __read(rest), false));\n }).filter(Boolean);\n return Object.assign.apply(Object, __spreadArray([{}], __read(r), false));\n };\n Fetch.prototype.runAsync = function () {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n return __awaiter(this, void 0, void 0, function () {\n var currentCount, _l, _m, stopNow, _o, returnNow, state, servicePromise, res, error_1;\n var _p;\n return __generator(this, function (_q) {\n switch (_q.label) {\n case 0:\n this.count += 1;\n currentCount = this.count;\n _l = this.runPluginHandler('onBefore', params), _m = _l.stopNow, stopNow = _m === void 0 ? false : _m, _o = _l.returnNow, returnNow = _o === void 0 ? false : _o, state = __rest(_l, [\"stopNow\", \"returnNow\"]);\n // stop request\n if (stopNow) {\n return [2 /*return*/, new Promise(function () {})];\n }\n this.setState(__assign({\n loading: true,\n params: params\n }, state));\n // return now\n if (returnNow) {\n return [2 /*return*/, Promise.resolve(state.data)];\n }\n (_b = (_a = this.options).onBefore) === null || _b === void 0 ? void 0 : _b.call(_a, params);\n _q.label = 1;\n case 1:\n _q.trys.push([1, 3,, 4]);\n servicePromise = this.runPluginHandler('onRequest', this.serviceRef.current, params).servicePromise;\n if (!servicePromise) {\n servicePromise = (_p = this.serviceRef).current.apply(_p, __spreadArray([], __read(params), false));\n }\n return [4 /*yield*/, servicePromise];\n case 2:\n res = _q.sent();\n if (currentCount !== this.count) {\n // prevent run.then when request is canceled\n return [2 /*return*/, new Promise(function () {})];\n }\n // const formattedResult = this.options.formatResultRef.current ? this.options.formatResultRef.current(res) : res;\n this.setState({\n data: res,\n error: undefined,\n loading: false\n });\n (_d = (_c = this.options).onSuccess) === null || _d === void 0 ? void 0 : _d.call(_c, res, params);\n this.runPluginHandler('onSuccess', res, params);\n (_f = (_e = this.options).onFinally) === null || _f === void 0 ? void 0 : _f.call(_e, params, res, undefined);\n if (currentCount === this.count) {\n this.runPluginHandler('onFinally', params, res, undefined);\n }\n return [2 /*return*/, res];\n case 3:\n error_1 = _q.sent();\n if (currentCount !== this.count) {\n // prevent run.then when request is canceled\n return [2 /*return*/, new Promise(function () {})];\n }\n this.setState({\n error: error_1,\n loading: false\n });\n (_h = (_g = this.options).onError) === null || _h === void 0 ? void 0 : _h.call(_g, error_1, params);\n this.runPluginHandler('onError', error_1, params);\n (_k = (_j = this.options).onFinally) === null || _k === void 0 ? void 0 : _k.call(_j, params, undefined, error_1);\n if (currentCount === this.count) {\n this.runPluginHandler('onFinally', params, undefined, error_1);\n }\n throw error_1;\n case 4:\n return [2 /*return*/];\n }\n });\n });\n };\n\n Fetch.prototype.run = function () {\n var _this = this;\n var params = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n params[_i] = arguments[_i];\n }\n this.runAsync.apply(this, __spreadArray([], __read(params), false)).catch(function (error) {\n if (!_this.options.onError) {\n console.error(error);\n }\n });\n };\n Fetch.prototype.cancel = function () {\n this.count += 1;\n this.setState({\n loading: false\n });\n this.runPluginHandler('onCancel');\n };\n Fetch.prototype.refresh = function () {\n // @ts-ignore\n this.run.apply(this, __spreadArray([], __read(this.state.params || []), false));\n };\n Fetch.prototype.refreshAsync = function () {\n // @ts-ignore\n return this.runAsync.apply(this, __spreadArray([], __read(this.state.params || []), false));\n };\n Fetch.prototype.mutate = function (data) {\n var targetData = isFunction(data) ? data(this.state.data) : data;\n this.runPluginHandler('onMutate', targetData);\n this.setState({\n data: targetData\n });\n };\n return Fetch;\n}();\nexport default Fetch;","import { __assign, __read, __rest, __spreadArray } from \"tslib\";\nimport useCreation from '../../useCreation';\nimport useLatest from '../../useLatest';\nimport useMemoizedFn from '../../useMemoizedFn';\nimport useMount from '../../useMount';\nimport useUnmount from '../../useUnmount';\nimport useUpdate from '../../useUpdate';\nimport isDev from '../../utils/isDev';\nimport Fetch from './Fetch';\nfunction useRequestImplement(service, options, plugins) {\n if (options === void 0) {\n options = {};\n }\n if (plugins === void 0) {\n plugins = [];\n }\n var _a = options.manual,\n manual = _a === void 0 ? false : _a,\n rest = __rest(options, [\"manual\"]);\n if (isDev) {\n if (options.defaultParams && !Array.isArray(options.defaultParams)) {\n console.warn(\"expected defaultParams is array, got \".concat(typeof options.defaultParams));\n }\n }\n var fetchOptions = __assign({\n manual: manual\n }, rest);\n var serviceRef = useLatest(service);\n var update = useUpdate();\n var fetchInstance = useCreation(function () {\n var initState = plugins.map(function (p) {\n var _a;\n return (_a = p === null || p === void 0 ? void 0 : p.onInit) === null || _a === void 0 ? void 0 : _a.call(p, fetchOptions);\n }).filter(Boolean);\n return new Fetch(serviceRef, fetchOptions, update, Object.assign.apply(Object, __spreadArray([{}], __read(initState), false)));\n }, []);\n fetchInstance.options = fetchOptions;\n // run all plugins hooks\n fetchInstance.pluginImpls = plugins.map(function (p) {\n return p(fetchInstance, fetchOptions);\n });\n useMount(function () {\n if (!manual) {\n // useCachePlugin can set fetchInstance.state.params from cache when init\n var params = fetchInstance.state.params || options.defaultParams || [];\n // @ts-ignore\n fetchInstance.run.apply(fetchInstance, __spreadArray([], __read(params), false));\n }\n });\n useUnmount(function () {\n fetchInstance.cancel();\n });\n return {\n loading: fetchInstance.state.loading,\n data: fetchInstance.state.data,\n error: fetchInstance.state.error,\n params: fetchInstance.state.params || [],\n cancel: useMemoizedFn(fetchInstance.cancel.bind(fetchInstance)),\n refresh: useMemoizedFn(fetchInstance.refresh.bind(fetchInstance)),\n refreshAsync: useMemoizedFn(fetchInstance.refreshAsync.bind(fetchInstance)),\n run: useMemoizedFn(fetchInstance.run.bind(fetchInstance)),\n runAsync: useMemoizedFn(fetchInstance.runAsync.bind(fetchInstance)),\n mutate: useMemoizedFn(fetchInstance.mutate.bind(fetchInstance))\n };\n}\nexport default useRequestImplement;","import { __read, __spreadArray } from \"tslib\";\nimport useAutoRunPlugin from './plugins/useAutoRunPlugin';\nimport useCachePlugin from './plugins/useCachePlugin';\nimport useDebouncePlugin from './plugins/useDebouncePlugin';\nimport useLoadingDelayPlugin from './plugins/useLoadingDelayPlugin';\nimport usePollingPlugin from './plugins/usePollingPlugin';\nimport useRefreshOnWindowFocusPlugin from './plugins/useRefreshOnWindowFocusPlugin';\nimport useRetryPlugin from './plugins/useRetryPlugin';\nimport useThrottlePlugin from './plugins/useThrottlePlugin';\nimport useRequestImplement from './useRequestImplement';\n// function useRequest(\n// service: Service,\n// options: OptionsWithFormat,\n// plugins?: Plugin[],\n// ): Result\n// function useRequest(\n// service: Service,\n// options?: OptionsWithoutFormat,\n// plugins?: Plugin[],\n// ): Result\nfunction useRequest(service, options, plugins) {\n return useRequestImplement(service, options, __spreadArray(__spreadArray([], __read(plugins || []), false), [useDebouncePlugin, useLoadingDelayPlugin, usePollingPlugin, useRefreshOnWindowFocusPlugin, useThrottlePlugin, useAutoRunPlugin, useCachePlugin, useRetryPlugin], false));\n}\nexport default useRequest;","import useRequest from './src/useRequest';\nimport { clearCache } from './src/utils/cache';\nexport { clearCache };\nexport default useRequest;","import { useLayoutEffect } from 'react';\nimport createEffectWithTarget from './createEffectWithTarget';\nvar useEffectWithTarget = createEffectWithTarget(useLayoutEffect);\nexport default useEffectWithTarget;","import isBrowser from './isBrowser';\nimport useEffectWithTarget from './useEffectWithTarget';\nimport useLayoutEffectWithTarget from './useLayoutEffectWithTarget';\nvar useIsomorphicLayoutEffectWithTarget = isBrowser ? useLayoutEffectWithTarget : useEffectWithTarget;\nexport default useIsomorphicLayoutEffectWithTarget;","import { __read } from \"tslib\";\nimport ResizeObserver from 'resize-observer-polyfill';\nimport useRafState from '../useRafState';\nimport { getTargetElement } from '../utils/domTarget';\nimport useIsomorphicLayoutEffectWithTarget from '../utils/useIsomorphicLayoutEffectWithTarget';\nfunction useSize(target) {\n var _a = __read(useRafState(function () {\n var el = getTargetElement(target);\n return el ? {\n width: el.clientWidth,\n height: el.clientHeight\n } : undefined;\n }), 2),\n state = _a[0],\n setState = _a[1];\n useIsomorphicLayoutEffectWithTarget(function () {\n var el = getTargetElement(target);\n if (!el) {\n return;\n }\n var resizeObserver = new ResizeObserver(function (entries) {\n entries.forEach(function (entry) {\n var _a = entry.target,\n clientWidth = _a.clientWidth,\n clientHeight = _a.clientHeight;\n setState({\n width: clientWidth,\n height: clientHeight\n });\n });\n });\n resizeObserver.observe(el);\n return function () {\n resizeObserver.disconnect();\n };\n }, [], target);\n return state;\n}\nexport default useSize;","import { useEffect } from 'react';\nimport useLatest from '../useLatest';\nimport { isFunction } from '../utils';\nimport isDev from '../utils/isDev';\nvar useUnmount = function (fn) {\n if (isDev) {\n if (!isFunction(fn)) {\n console.error(\"useUnmount expected parameter is a function, got \".concat(typeof fn));\n }\n }\n var fnRef = useLatest(fn);\n useEffect(function () {\n return function () {\n fnRef.current();\n };\n }, []);\n};\nexport default useUnmount;","import { __read } from \"tslib\";\nimport { useCallback, useState } from 'react';\nvar useUpdate = function () {\n var _a = __read(useState({}), 2),\n setState = _a[1];\n return useCallback(function () {\n return setState({});\n }, []);\n};\nexport default useUpdate;","import { useRef } from 'react';\nimport useUnmount from '../useUnmount';\nimport depsAreSame from './depsAreSame';\nimport { getTargetElement } from './domTarget';\nvar createEffectWithTarget = function (useEffectType) {\n /**\n *\n * @param effect\n * @param deps\n * @param target target should compare ref.current vs ref.current, dom vs dom, ()=>dom vs ()=>dom\n */\n var useEffectWithTarget = function (effect, deps, target) {\n var hasInitRef = useRef(false);\n var lastElementRef = useRef([]);\n var lastDepsRef = useRef([]);\n var unLoadRef = useRef();\n useEffectType(function () {\n var _a;\n var targets = Array.isArray(target) ? target : [target];\n var els = targets.map(function (item) {\n return getTargetElement(item);\n });\n // init run\n if (!hasInitRef.current) {\n hasInitRef.current = true;\n lastElementRef.current = els;\n lastDepsRef.current = deps;\n unLoadRef.current = effect();\n return;\n }\n if (els.length !== lastElementRef.current.length || !depsAreSame(els, lastElementRef.current) || !depsAreSame(deps, lastDepsRef.current)) {\n (_a = unLoadRef.current) === null || _a === void 0 ? void 0 : _a.call(unLoadRef);\n lastElementRef.current = els;\n lastDepsRef.current = deps;\n unLoadRef.current = effect();\n }\n });\n useUnmount(function () {\n var _a;\n (_a = unLoadRef.current) === null || _a === void 0 ? void 0 : _a.call(unLoadRef);\n // for react-refresh\n hasInitRef.current = false;\n });\n };\n return useEffectWithTarget;\n};\nexport default createEffectWithTarget;","export default function depsAreSame(oldDeps, deps) {\n if (oldDeps === deps) return true;\n for (var i = 0; i < oldDeps.length; i++) {\n if (!Object.is(oldDeps[i], deps[i])) return false;\n }\n return true;\n}","import { isFunction } from './index';\nimport isBrowser from './isBrowser';\nexport function getTargetElement(target, defaultElement) {\n if (!isBrowser) {\n return undefined;\n }\n if (!target) {\n return defaultElement;\n }\n var targetElement;\n if (isFunction(target)) {\n targetElement = target();\n } else if ('current' in target) {\n targetElement = target.current;\n } else {\n targetElement = target;\n }\n return targetElement;\n}","export var isObject = function (value) {\n return value !== null && typeof value === 'object';\n};\nexport var isFunction = function (value) {\n return typeof value === 'function';\n};\nexport var isString = function (value) {\n return typeof value === 'string';\n};\nexport var isBoolean = function (value) {\n return typeof value === 'boolean';\n};\nexport var isNumber = function (value) {\n return typeof value === 'number';\n};\nexport var isUndef = function (value) {\n return typeof value === 'undefined';\n};","var isBrowser = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\nexport default isBrowser;","var isDev = process.env.NODE_ENV === 'development' || process.env.NODE_ENV === 'test';\nexport default isDev;","import { useEffect } from 'react';\nimport createEffectWithTarget from './createEffectWithTarget';\nvar useEffectWithTarget = createEffectWithTarget(useEffect);\nexport default useEffectWithTarget;","import useState from \"rc-util/es/hooks/useState\";\nimport * as React from 'react';\nimport Button from '../button';\nimport { convertLegacyProps } from '../button/button';\nfunction isThenable(thing) {\n return !!(thing && thing.then);\n}\nconst ActionButton = props => {\n const {\n type,\n children,\n prefixCls,\n buttonProps,\n close,\n autoFocus,\n emitEvent,\n isSilent,\n quitOnNullishReturnValue,\n actionFn\n } = props;\n const clickedRef = React.useRef(false);\n const buttonRef = React.useRef(null);\n const [loading, setLoading] = useState(false);\n const onInternalClose = function () {\n close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);\n };\n React.useEffect(() => {\n let timeoutId = null;\n if (autoFocus) {\n timeoutId = setTimeout(() => {\n var _a;\n (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n });\n }\n return () => {\n if (timeoutId) {\n clearTimeout(timeoutId);\n }\n };\n }, []);\n const handlePromiseOnOk = returnValueOfOnOk => {\n if (!isThenable(returnValueOfOnOk)) {\n return;\n }\n setLoading(true);\n returnValueOfOnOk.then(function () {\n setLoading(false, true);\n onInternalClose.apply(void 0, arguments);\n clickedRef.current = false;\n }, e => {\n // See: https://github.com/ant-design/ant-design/issues/6183\n setLoading(false, true);\n clickedRef.current = false;\n // Do not throw if is `await` mode\n if (isSilent === null || isSilent === void 0 ? void 0 : isSilent()) {\n return;\n }\n return Promise.reject(e);\n });\n };\n const onClick = e => {\n if (clickedRef.current) {\n return;\n }\n clickedRef.current = true;\n if (!actionFn) {\n onInternalClose();\n return;\n }\n let returnValueOfOnOk;\n if (emitEvent) {\n returnValueOfOnOk = actionFn(e);\n if (quitOnNullishReturnValue && !isThenable(returnValueOfOnOk)) {\n clickedRef.current = false;\n onInternalClose(e);\n return;\n }\n } else if (actionFn.length) {\n returnValueOfOnOk = actionFn(close);\n // https://github.com/ant-design/ant-design/issues/23358\n clickedRef.current = false;\n } else {\n returnValueOfOnOk = actionFn();\n if (!returnValueOfOnOk) {\n onInternalClose();\n return;\n }\n }\n handlePromiseOnOk(returnValueOfOnOk);\n };\n return /*#__PURE__*/React.createElement(Button, Object.assign({}, convertLegacyProps(type), {\n onClick: onClick,\n loading: loading,\n prefixCls: prefixCls\n }, buttonProps, {\n ref: buttonRef\n }), children);\n};\nexport default ActionButton;","import useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport ConfigProvider, { ConfigContext } from '../config-provider';\nexport function withPureRenderTheme(Component) {\n return function PureRenderThemeComponent(props) {\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n theme: {\n token: {\n motion: false,\n zIndexPopupBase: 0\n }\n }\n }, /*#__PURE__*/React.createElement(Component, Object.assign({}, props)));\n };\n}\n/* istanbul ignore next */\nexport default function genPurePanel(Component, defaultPrefixCls, getDropdownCls, postProps) {\n function PurePanel(props) {\n const {\n prefixCls: customizePrefixCls,\n style\n } = props;\n const holderRef = React.useRef(null);\n const [popupHeight, setPopupHeight] = React.useState(0);\n const [popupWidth, setPopupWidth] = React.useState(0);\n const [open, setOpen] = useMergedState(false, {\n value: props.open\n });\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls(defaultPrefixCls || 'select', customizePrefixCls);\n React.useEffect(() => {\n // We do not care about ssr\n setOpen(true);\n if (typeof ResizeObserver !== 'undefined') {\n const resizeObserver = new ResizeObserver(entries => {\n const element = entries[0].target;\n setPopupHeight(element.offsetHeight + 8);\n setPopupWidth(element.offsetWidth);\n });\n const interval = setInterval(() => {\n var _a;\n const dropdownCls = getDropdownCls ? `.${getDropdownCls(prefixCls)}` : `.${prefixCls}-dropdown`;\n const popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls);\n if (popup) {\n clearInterval(interval);\n resizeObserver.observe(popup);\n }\n }, 10);\n return () => {\n clearInterval(interval);\n resizeObserver.disconnect();\n };\n }\n }, []);\n let mergedProps = Object.assign(Object.assign({}, props), {\n style: Object.assign(Object.assign({}, style), {\n margin: 0\n }),\n open,\n visible: open,\n getPopupContainer: () => holderRef.current\n });\n if (postProps) {\n mergedProps = postProps(mergedProps);\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: holderRef,\n style: {\n paddingBottom: popupHeight,\n position: 'relative',\n minWidth: popupWidth\n }\n }, /*#__PURE__*/React.createElement(Component, Object.assign({}, mergedProps)));\n }\n return withPureRenderTheme(PurePanel);\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport { PresetColors } from '../theme/interface';\nconst inverseColors = PresetColors.map(color => `${color}-inverse`);\nexport const PresetStatusColorTypes = ['success', 'processing', 'error', 'default', 'warning'];\n/**\n * determine if the color keyword belongs to the `Ant Design` {@link PresetColors}.\n * @param color color to be judged\n * @param includeInverse whether to include reversed colors\n */\nexport function isPresetColor(color) {\n let includeInverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (includeInverse) {\n return [].concat(_toConsumableArray(inverseColors), _toConsumableArray(PresetColors)).includes(color);\n }\n return PresetColors.includes(color);\n}\nexport function isPresetStatusColor(color) {\n return PresetStatusColorTypes.includes(color);\n}","function extendsObject() {\n const result = Object.assign({}, arguments.length <= 0 ? undefined : arguments[0]);\n for (let i = 1; i < arguments.length; i++) {\n const obj = i < 0 || arguments.length <= i ? undefined : arguments[i];\n if (obj) {\n Object.keys(obj).forEach(key => {\n const val = obj[key];\n if (val !== undefined) {\n result[key] = val;\n }\n });\n }\n }\n return result;\n}\nexport default extendsObject;","export const getRenderPropValue = propValue => {\n if (!propValue) {\n return null;\n }\n if (typeof propValue === 'function') {\n return propValue();\n }\n return propValue;\n};","import CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport React from 'react';\nfunction useInnerClosable(closable, closeIcon, defaultClosable) {\n if (typeof closable === 'boolean') {\n return closable;\n }\n if (closeIcon === undefined) {\n return !!defaultClosable;\n }\n return closeIcon !== false && closeIcon !== null;\n}\nexport default function useClosable(closable, closeIcon, customCloseIconRender) {\n let defaultCloseIcon = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : /*#__PURE__*/React.createElement(CloseOutlined, null);\n let defaultClosable = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n const mergedClosable = useInnerClosable(closable, closeIcon, defaultClosable);\n if (!mergedClosable) {\n return [false, null];\n }\n const mergedCloseIcon = typeof closeIcon === 'boolean' || closeIcon === undefined || closeIcon === null ? defaultCloseIcon : closeIcon;\n return [true, customCloseIconRender ? customCloseIconRender(mergedCloseIcon) : mergedCloseIcon];\n}","import * as React from 'react';\nimport { detectFlexGapSupported } from '../styleChecker';\nexport default (() => {\n const [flexible, setFlexible] = React.useState(false);\n React.useEffect(() => {\n setFlexible(detectFlexGapSupported());\n }, []);\n return flexible;\n});","import * as React from 'react';\nexport default function useForceUpdate() {\n const [, forceUpdate] = React.useReducer(x => x + 1, 0);\n return forceUpdate;\n}","// ================== Collapse Motion ==================\nconst getCollapsedHeight = () => ({\n height: 0,\n opacity: 0\n});\nconst getRealHeight = node => {\n const {\n scrollHeight\n } = node;\n return {\n height: scrollHeight,\n opacity: 1\n };\n};\nconst getCurrentHeight = node => ({\n height: node ? node.offsetHeight : 0\n});\nconst skipOpacityTransition = (_, event) => (event === null || event === void 0 ? void 0 : event.deadline) === true || event.propertyName === 'height';\nconst initCollapseMotion = function () {\n let rootCls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'ant';\n return {\n motionName: `${rootCls}-motion-collapse`,\n onAppearStart: getCollapsedHeight,\n onEnterStart: getCollapsedHeight,\n onAppearActive: getRealHeight,\n onEnterActive: getRealHeight,\n onLeaveStart: getCurrentHeight,\n onLeaveActive: getCollapsedHeight,\n onAppearEnd: skipOpacityTransition,\n onEnterEnd: skipOpacityTransition,\n onLeaveEnd: skipOpacityTransition,\n motionDeadline: 500\n };\n};\nconst SelectPlacements = ['bottomLeft', 'bottomRight', 'topLeft', 'topRight'];\nconst getTransitionName = (rootPrefixCls, motion, transitionName) => {\n if (transitionName !== undefined) {\n return transitionName;\n }\n return `${rootPrefixCls}-${motion}`;\n};\nexport { getTransitionName };\nexport default initCollapseMotion;","import { getArrowOffset } from '../style/placementArrow';\nexport function getOverflowOptions(placement, arrowOffset, arrowWidth, autoAdjustOverflow) {\n if (autoAdjustOverflow === false) {\n return {\n adjustX: false,\n adjustY: false\n };\n }\n const overflow = autoAdjustOverflow && typeof autoAdjustOverflow === 'object' ? autoAdjustOverflow : {};\n const baseOverflow = {};\n switch (placement) {\n case 'top':\n case 'bottom':\n baseOverflow.shiftX = arrowOffset.dropdownArrowOffset * 2 + arrowWidth;\n break;\n case 'left':\n case 'right':\n baseOverflow.shiftY = arrowOffset.dropdownArrowOffsetVertical * 2 + arrowWidth;\n break;\n }\n const mergedOverflow = Object.assign(Object.assign({}, baseOverflow), overflow);\n // Support auto shift\n if (!mergedOverflow.shiftX) {\n mergedOverflow.adjustX = true;\n }\n if (!mergedOverflow.shiftY) {\n mergedOverflow.adjustY = true;\n }\n return mergedOverflow;\n}\nconst PlacementAlignMap = {\n left: {\n points: ['cr', 'cl']\n },\n right: {\n points: ['cl', 'cr']\n },\n top: {\n points: ['bc', 'tc']\n },\n bottom: {\n points: ['tc', 'bc']\n },\n topLeft: {\n points: ['bl', 'tl']\n },\n leftTop: {\n points: ['tr', 'tl']\n },\n topRight: {\n points: ['br', 'tr']\n },\n rightTop: {\n points: ['tl', 'tr']\n },\n bottomRight: {\n points: ['tr', 'br']\n },\n rightBottom: {\n points: ['bl', 'br']\n },\n bottomLeft: {\n points: ['tl', 'bl']\n },\n leftBottom: {\n points: ['br', 'bl']\n }\n};\nconst ArrowCenterPlacementAlignMap = {\n topLeft: {\n points: ['bl', 'tc']\n },\n leftTop: {\n points: ['tr', 'cl']\n },\n topRight: {\n points: ['br', 'tc']\n },\n rightTop: {\n points: ['tl', 'cr']\n },\n bottomRight: {\n points: ['tr', 'bc']\n },\n rightBottom: {\n points: ['bl', 'cr']\n },\n bottomLeft: {\n points: ['tl', 'bc']\n },\n leftBottom: {\n points: ['br', 'cl']\n }\n};\nconst DisableAutoArrowList = new Set(['topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'leftBottom', 'rightTop', 'rightBottom']);\nexport default function getPlacements(config) {\n const {\n arrowWidth,\n autoAdjustOverflow,\n arrowPointAtCenter,\n offset,\n borderRadius,\n visibleFirst\n } = config;\n const halfArrowWidth = arrowWidth / 2;\n const placementMap = {};\n Object.keys(PlacementAlignMap).forEach(key => {\n const template = arrowPointAtCenter && ArrowCenterPlacementAlignMap[key] || PlacementAlignMap[key];\n const placementInfo = Object.assign(Object.assign({}, template), {\n offset: [0, 0]\n });\n placementMap[key] = placementInfo;\n // Disable autoArrow since design is fixed position\n if (DisableAutoArrowList.has(key)) {\n placementInfo.autoArrow = false;\n }\n // Static offset\n switch (key) {\n case 'top':\n case 'topLeft':\n case 'topRight':\n placementInfo.offset[1] = -halfArrowWidth - offset;\n break;\n case 'bottom':\n case 'bottomLeft':\n case 'bottomRight':\n placementInfo.offset[1] = halfArrowWidth + offset;\n break;\n case 'left':\n case 'leftTop':\n case 'leftBottom':\n placementInfo.offset[0] = -halfArrowWidth - offset;\n break;\n case 'right':\n case 'rightTop':\n case 'rightBottom':\n placementInfo.offset[0] = halfArrowWidth + offset;\n break;\n }\n // Dynamic offset\n const arrowOffset = getArrowOffset({\n contentRadius: borderRadius,\n limitVerticalRadius: true\n });\n if (arrowPointAtCenter) {\n switch (key) {\n case 'topLeft':\n case 'bottomLeft':\n placementInfo.offset[0] = -arrowOffset.dropdownArrowOffset - halfArrowWidth;\n break;\n case 'topRight':\n case 'bottomRight':\n placementInfo.offset[0] = arrowOffset.dropdownArrowOffset + halfArrowWidth;\n break;\n case 'leftTop':\n case 'rightTop':\n placementInfo.offset[1] = -arrowOffset.dropdownArrowOffset - halfArrowWidth;\n break;\n case 'leftBottom':\n case 'rightBottom':\n placementInfo.offset[1] = arrowOffset.dropdownArrowOffset + halfArrowWidth;\n break;\n }\n }\n // Overflow\n placementInfo.overflow = getOverflowOptions(key, arrowOffset, arrowWidth, autoAdjustOverflow);\n // VisibleFirst\n if (visibleFirst) {\n placementInfo.htmlRegion = 'visibleFirst';\n }\n });\n return placementMap;\n}","import * as React from 'react';\nexport const {\n isValidElement\n} = React;\nexport function isFragment(child) {\n return child && isValidElement(child) && child.type === React.Fragment;\n}\nexport function replaceElement(element, replacement, props) {\n if (!isValidElement(element)) {\n return replacement;\n }\n return /*#__PURE__*/React.cloneElement(element, typeof props === 'function' ? props(element.props || {}) : props);\n}\nexport function cloneElement(element, props) {\n return replaceElement(element, element, props);\n}","import React from 'react';\nimport { useToken } from '../theme/internal';\nexport const responsiveArray = ['xxl', 'xl', 'lg', 'md', 'sm', 'xs'];\nconst getResponsiveMap = token => ({\n xs: `(max-width: ${token.screenXSMax}px)`,\n sm: `(min-width: ${token.screenSM}px)`,\n md: `(min-width: ${token.screenMD}px)`,\n lg: `(min-width: ${token.screenLG}px)`,\n xl: `(min-width: ${token.screenXL}px)`,\n xxl: `(min-width: ${token.screenXXL}px)`\n});\n/**\n * Ensures that the breakpoints token are valid, in good order\n * For each breakpoint : screenMin <= screen <= screenMax and screenMax <= nextScreenMin\n */\nconst validateBreakpoints = token => {\n const indexableToken = token;\n const revBreakpoints = [].concat(responsiveArray).reverse();\n revBreakpoints.forEach((breakpoint, i) => {\n const breakpointUpper = breakpoint.toUpperCase();\n const screenMin = `screen${breakpointUpper}Min`;\n const screen = `screen${breakpointUpper}`;\n if (!(indexableToken[screenMin] <= indexableToken[screen])) {\n throw new Error(`${screenMin}<=${screen} fails : !(${indexableToken[screenMin]}<=${indexableToken[screen]})`);\n }\n if (i < revBreakpoints.length - 1) {\n const screenMax = `screen${breakpointUpper}Max`;\n if (!(indexableToken[screen] <= indexableToken[screenMax])) {\n throw new Error(`${screen}<=${screenMax} fails : !(${indexableToken[screen]}<=${indexableToken[screenMax]})`);\n }\n const nextBreakpointUpperMin = revBreakpoints[i + 1].toUpperCase();\n const nextScreenMin = `screen${nextBreakpointUpperMin}Min`;\n if (!(indexableToken[screenMax] <= indexableToken[nextScreenMin])) {\n throw new Error(`${screenMax}<=${nextScreenMin} fails : !(${indexableToken[screenMax]}<=${indexableToken[nextScreenMin]})`);\n }\n }\n });\n return token;\n};\nexport default function useResponsiveObserver() {\n const [, token] = useToken();\n const responsiveMap = getResponsiveMap(validateBreakpoints(token));\n // To avoid repeat create instance, we add `useMemo` here.\n return React.useMemo(() => {\n const subscribers = new Map();\n let subUid = -1;\n let screens = {};\n return {\n matchHandlers: {},\n dispatch(pointMap) {\n screens = pointMap;\n subscribers.forEach(func => func(screens));\n return subscribers.size >= 1;\n },\n subscribe(func) {\n if (!subscribers.size) this.register();\n subUid += 1;\n subscribers.set(subUid, func);\n func(screens);\n return subUid;\n },\n unsubscribe(paramToken) {\n subscribers.delete(paramToken);\n if (!subscribers.size) this.unregister();\n },\n unregister() {\n Object.keys(responsiveMap).forEach(screen => {\n const matchMediaQuery = responsiveMap[screen];\n const handler = this.matchHandlers[matchMediaQuery];\n handler === null || handler === void 0 ? void 0 : handler.mql.removeListener(handler === null || handler === void 0 ? void 0 : handler.listener);\n });\n subscribers.clear();\n },\n register() {\n Object.keys(responsiveMap).forEach(screen => {\n const matchMediaQuery = responsiveMap[screen];\n const listener = _ref => {\n let {\n matches\n } = _ref;\n this.dispatch(Object.assign(Object.assign({}, screens), {\n [screen]: matches\n }));\n };\n const mql = window.matchMedia(matchMediaQuery);\n mql.addListener(listener);\n this.matchHandlers[matchMediaQuery] = {\n mql,\n listener\n };\n listener(mql);\n });\n },\n responsiveMap\n };\n }, [token]);\n}","import classNames from 'classnames';\nconst InputStatuses = ['warning', 'error', ''];\nexport function getStatusClassNames(prefixCls, status, hasFeedback) {\n return classNames({\n [`${prefixCls}-status-success`]: status === 'success',\n [`${prefixCls}-status-warning`]: status === 'warning',\n [`${prefixCls}-status-error`]: status === 'error',\n [`${prefixCls}-status-validating`]: status === 'validating',\n [`${prefixCls}-has-feedback`]: hasFeedback\n });\n}\nexport const getMergedStatus = (contextStatus, customStatus) => customStatus || contextStatus;","import canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { isStyleSupport } from \"rc-util/es/Dom/styleChecker\";\nexport const canUseDocElement = () => canUseDom() && window.document.documentElement;\nexport { isStyleSupport };\nlet flexGapSupported;\nexport const detectFlexGapSupported = () => {\n if (!canUseDocElement()) {\n return false;\n }\n if (flexGapSupported !== undefined) {\n return flexGapSupported;\n }\n // create flex container with row-gap set\n const flex = document.createElement('div');\n flex.style.display = 'flex';\n flex.style.flexDirection = 'column';\n flex.style.rowGap = '1px';\n // create two, elements inside it\n flex.appendChild(document.createElement('div'));\n flex.appendChild(document.createElement('div'));\n // some browser may not repaint when remove nodes, so we need create a new layer to detect.\n const container = document.createElement('div');\n container.style.position = 'absolute';\n container.style.zIndex = '-9999';\n container.appendChild(flex);\n // append to the DOM (needed to obtain scrollHeight)\n document.body.appendChild(container);\n flexGapSupported = flex.scrollHeight === 1; // flex container should be 1px high from the row-gap\n document.body.removeChild(container);\n return flexGapSupported;\n};","import { genComponentStyleHook } from '../../theme/internal';\nconst genWaveStyle = token => {\n const {\n componentCls,\n colorPrimary\n } = token;\n return {\n [componentCls]: {\n position: 'absolute',\n background: 'transparent',\n pointerEvents: 'none',\n boxSizing: 'border-box',\n color: `var(--wave-color, ${colorPrimary})`,\n boxShadow: `0 0 0 0 currentcolor`,\n opacity: 0.2,\n // =================== Motion ===================\n '&.wave-motion-appear': {\n transition: [`box-shadow 0.4s ${token.motionEaseOutCirc}`, `opacity 2s ${token.motionEaseOutCirc}`].join(','),\n '&-active': {\n boxShadow: `0 0 0 6px currentcolor`,\n opacity: 0\n },\n '&.wave-quick': {\n transition: [`box-shadow 0.3s ${token.motionEaseInOut}`, `opacity 0.35s ${token.motionEaseInOut}`].join(',')\n }\n }\n }\n };\n};\nexport default genComponentStyleHook('Wave', token => [genWaveStyle(token)]);","export function isNotGrey(color) {\n // eslint-disable-next-line no-useless-escape\n const match = (color || '').match(/rgba?\\((\\d*), (\\d*), (\\d*)(, [\\d.]*)?\\)/);\n if (match && match[1] && match[2] && match[3]) {\n return !(match[1] === match[2] && match[2] === match[3]);\n }\n return true;\n}\nexport function isValidWaveColor(color) {\n return color && color !== '#fff' && color !== '#ffffff' && color !== 'rgb(255, 255, 255)' && color !== 'rgba(255, 255, 255, 1)' && isNotGrey(color) && !/rgba\\((?:\\d*, ){3}0\\)/.test(color) &&\n // any transparent rgba color\n color !== 'transparent';\n}\nexport function getTargetWaveColor(node) {\n const {\n borderTopColor,\n borderColor,\n backgroundColor\n } = getComputedStyle(node);\n if (isValidWaveColor(borderTopColor)) {\n return borderTopColor;\n }\n if (isValidWaveColor(borderColor)) {\n return borderColor;\n }\n if (isValidWaveColor(backgroundColor)) {\n return backgroundColor;\n }\n return null;\n}","import classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport { render, unmount } from \"rc-util/es/React/render\";\nimport raf from \"rc-util/es/raf\";\nimport * as React from 'react';\nimport { getTargetWaveColor } from './util';\nimport { TARGET_CLS } from './interface';\nfunction validateNum(value) {\n return Number.isNaN(value) ? 0 : value;\n}\nconst WaveEffect = props => {\n const {\n className,\n target,\n component\n } = props;\n const divRef = React.useRef(null);\n const [color, setWaveColor] = React.useState(null);\n const [borderRadius, setBorderRadius] = React.useState([]);\n const [left, setLeft] = React.useState(0);\n const [top, setTop] = React.useState(0);\n const [width, setWidth] = React.useState(0);\n const [height, setHeight] = React.useState(0);\n const [enabled, setEnabled] = React.useState(false);\n const waveStyle = {\n left,\n top,\n width,\n height,\n borderRadius: borderRadius.map(radius => `${radius}px`).join(' ')\n };\n if (color) {\n waveStyle['--wave-color'] = color;\n }\n function syncPos() {\n const nodeStyle = getComputedStyle(target);\n // Get wave color from target\n setWaveColor(getTargetWaveColor(target));\n const isStatic = nodeStyle.position === 'static';\n // Rect\n const {\n borderLeftWidth,\n borderTopWidth\n } = nodeStyle;\n setLeft(isStatic ? target.offsetLeft : validateNum(-parseFloat(borderLeftWidth)));\n setTop(isStatic ? target.offsetTop : validateNum(-parseFloat(borderTopWidth)));\n setWidth(target.offsetWidth);\n setHeight(target.offsetHeight);\n // Get border radius\n const {\n borderTopLeftRadius,\n borderTopRightRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius\n } = nodeStyle;\n setBorderRadius([borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map(radius => validateNum(parseFloat(radius))));\n }\n React.useEffect(() => {\n if (target) {\n // We need delay to check position here\n // since UI may change after click\n const id = raf(() => {\n syncPos();\n setEnabled(true);\n });\n // Add resize observer to follow size\n let resizeObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(syncPos);\n resizeObserver.observe(target);\n }\n return () => {\n raf.cancel(id);\n resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect();\n };\n }\n }, []);\n if (!enabled) {\n return null;\n }\n const isSmallComponent = (component === 'Checkbox' || component === 'Radio') && (target === null || target === void 0 ? void 0 : target.classList.contains(TARGET_CLS));\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: true,\n motionAppear: true,\n motionName: \"wave-motion\",\n motionDeadline: 5000,\n onAppearEnd: (_, event) => {\n var _a;\n if (event.deadline || event.propertyName === 'opacity') {\n const holder = (_a = divRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;\n unmount(holder).then(() => {\n holder === null || holder === void 0 ? void 0 : holder.remove();\n });\n }\n return false;\n }\n }, _ref => {\n let {\n className: motionClassName\n } = _ref;\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: divRef,\n className: classNames(className, {\n 'wave-quick': isSmallComponent\n }, motionClassName),\n style: waveStyle\n });\n });\n};\nconst showWaveEffect = (target, info) => {\n var _a;\n const {\n component\n } = info;\n // Skip for unchecked checkbox\n if (component === 'Checkbox' && !((_a = target.querySelector('input')) === null || _a === void 0 ? void 0 : _a.checked)) {\n return;\n }\n // Create holder\n const holder = document.createElement('div');\n holder.style.position = 'absolute';\n holder.style.left = '0px';\n holder.style.top = '0px';\n target === null || target === void 0 ? void 0 : target.insertBefore(holder, target === null || target === void 0 ? void 0 : target.firstChild);\n render( /*#__PURE__*/React.createElement(WaveEffect, Object.assign({}, info, {\n target: target\n })), holder);\n};\nexport default showWaveEffect;","import * as React from 'react';\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport raf from \"rc-util/es/raf\";\nimport showWaveEffect from './WaveEffect';\nimport { ConfigContext } from '../../config-provider';\nimport useToken from '../../theme/useToken';\nimport { TARGET_CLS } from './interface';\nexport default function useWave(nodeRef, className, component) {\n const {\n wave\n } = React.useContext(ConfigContext);\n const [, token, hashId] = useToken();\n const showWave = useEvent(event => {\n const node = nodeRef.current;\n if ((wave === null || wave === void 0 ? void 0 : wave.disabled) || !node) {\n return;\n }\n const targetNode = node.querySelector(`.${TARGET_CLS}`) || node;\n const {\n showEffect\n } = wave || {};\n // Customize wave effect\n (showEffect || showWaveEffect)(targetNode, {\n className,\n token,\n component,\n event,\n hashId\n });\n });\n const rafId = React.useRef();\n // Merge trigger event into one for each frame\n const showDebounceWave = event => {\n raf.cancel(rafId.current);\n rafId.current = raf(() => {\n showWave(event);\n });\n };\n return showDebounceWave;\n}","import classNames from 'classnames';\nimport { composeRef, supportRef } from \"rc-util/es/ref\";\nimport isVisible from \"rc-util/es/Dom/isVisible\";\nimport React, { useContext, useRef } from 'react';\nimport { ConfigContext } from '../../config-provider';\nimport { cloneElement } from '../reactNode';\nimport useStyle from './style';\nimport useWave from './useWave';\nconst Wave = props => {\n const {\n children,\n disabled,\n component\n } = props;\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const containerRef = useRef(null);\n // ============================== Style ===============================\n const prefixCls = getPrefixCls('wave');\n const [, hashId] = useStyle(prefixCls);\n // =============================== Wave ===============================\n const showWave = useWave(containerRef, classNames(prefixCls, hashId), component);\n // ============================== Effect ==============================\n React.useEffect(() => {\n const node = containerRef.current;\n if (!node || node.nodeType !== 1 || disabled) {\n return;\n }\n // Click handler\n const onClick = e => {\n // Fix radio button click twice\n if (!isVisible(e.target) ||\n // No need wave\n !node.getAttribute || node.getAttribute('disabled') || node.disabled || node.className.includes('disabled') || node.className.includes('-leave')) {\n return;\n }\n showWave(e);\n };\n // Bind events\n node.addEventListener('click', onClick, true);\n return () => {\n node.removeEventListener('click', onClick, true);\n };\n }, [disabled]);\n // ============================== Render ==============================\n if (! /*#__PURE__*/React.isValidElement(children)) {\n return children !== null && children !== void 0 ? children : null;\n }\n const ref = supportRef(children) ? composeRef(children.ref, containerRef) : containerRef;\n return cloneElement(children, {\n ref\n });\n};\nif (process.env.NODE_ENV !== 'production') {\n Wave.displayName = 'Wave';\n}\nexport default Wave;","export const TARGET_CLS = 'ant-wave-target';","import React, { forwardRef } from 'react';\nimport classNames from 'classnames';\nconst IconWrapper = /*#__PURE__*/forwardRef((props, ref) => {\n const {\n className,\n style,\n children,\n prefixCls\n } = props;\n const iconWrapperCls = classNames(`${prefixCls}-icon`, className);\n return /*#__PURE__*/React.createElement(\"span\", {\n ref: ref,\n className: iconWrapperCls,\n style: style\n }, children);\n});\nexport default IconWrapper;","import LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport React, { forwardRef } from 'react';\nimport IconWrapper from './IconWrapper';\nconst InnerLoadingIcon = /*#__PURE__*/forwardRef((_ref, ref) => {\n let {\n prefixCls,\n className,\n style,\n iconClassName\n } = _ref;\n const mergedIconCls = classNames(`${prefixCls}-loading-icon`, className);\n return /*#__PURE__*/React.createElement(IconWrapper, {\n prefixCls: prefixCls,\n className: mergedIconCls,\n style: style,\n ref: ref\n }, /*#__PURE__*/React.createElement(LoadingOutlined, {\n className: iconClassName\n }));\n});\nconst getCollapsedWidth = () => ({\n width: 0,\n opacity: 0,\n transform: 'scale(0)'\n});\nconst getRealWidth = node => ({\n width: node.scrollWidth,\n opacity: 1,\n transform: 'scale(1)'\n});\nconst LoadingIcon = props => {\n const {\n prefixCls,\n loading,\n existIcon,\n className,\n style\n } = props;\n const visible = !!loading;\n if (existIcon) {\n return /*#__PURE__*/React.createElement(InnerLoadingIcon, {\n prefixCls: prefixCls,\n className: className,\n style: style\n });\n }\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: visible,\n // We do not really use this motionName\n motionName: `${prefixCls}-loading-icon-motion`,\n removeOnLeave: true,\n onAppearStart: getCollapsedWidth,\n onAppearActive: getRealWidth,\n onEnterStart: getCollapsedWidth,\n onEnterActive: getRealWidth,\n onLeaveStart: getRealWidth,\n onLeaveActive: getCollapsedWidth\n }, (_ref2, ref) => {\n let {\n className: motionCls,\n style: motionStyle\n } = _ref2;\n return /*#__PURE__*/React.createElement(InnerLoadingIcon, {\n prefixCls: prefixCls,\n className: className,\n style: Object.assign(Object.assign({}, style), motionStyle),\n ref: ref,\n iconClassName: motionCls\n });\n });\n};\nexport default LoadingIcon;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nexport const GroupSizeContext = /*#__PURE__*/React.createContext(undefined);\nconst ButtonGroup = props => {\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n size,\n className\n } = props,\n others = __rest(props, [\"prefixCls\", \"size\", \"className\"]);\n const prefixCls = getPrefixCls('btn-group', customizePrefixCls);\n const [,, hashId] = useToken();\n let sizeCls = '';\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n case 'small':\n sizeCls = 'sm';\n break;\n case 'middle':\n case undefined:\n break;\n default:\n process.env.NODE_ENV !== \"production\" ? warning(!size, 'Button.Group', 'Invalid prop `size`.') : void 0;\n }\n const classes = classNames(prefixCls, {\n [`${prefixCls}-${sizeCls}`]: sizeCls,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, hashId);\n return /*#__PURE__*/React.createElement(GroupSizeContext.Provider, {\n value: size\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({}, others, {\n className: classes\n })));\n};\nexport default ButtonGroup;","import React from 'react';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nconst rxTwoCNChar = /^[\\u4e00-\\u9fa5]{2}$/;\nexport const isTwoCNChar = rxTwoCNChar.test.bind(rxTwoCNChar);\nexport function isString(str) {\n return typeof str === 'string';\n}\nexport function isUnBorderedButtonType(type) {\n return type === 'text' || type === 'link';\n}\nfunction splitCNCharsBySpace(child, needInserted) {\n if (child === null || child === undefined) {\n return;\n }\n const SPACE = needInserted ? ' ' : '';\n if (typeof child !== 'string' && typeof child !== 'number' && isString(child.type) && isTwoCNChar(child.props.children)) {\n return cloneElement(child, {\n children: child.props.children.split('').join(SPACE)\n });\n }\n if (isString(child)) {\n return isTwoCNChar(child) ? /*#__PURE__*/React.createElement(\"span\", null, child.split('').join(SPACE)) : /*#__PURE__*/React.createElement(\"span\", null, child);\n }\n if (isFragment(child)) {\n return /*#__PURE__*/React.createElement(\"span\", null, child);\n }\n return child;\n}\nexport function spaceChildren(children, needInserted) {\n let isPrevChildPure = false;\n const childList = [];\n React.Children.forEach(children, child => {\n const type = typeof child;\n const isCurrentChildPure = type === 'string' || type === 'number';\n if (isPrevChildPure && isCurrentChildPure) {\n const lastIndex = childList.length - 1;\n const lastChild = childList[lastIndex];\n childList[lastIndex] = `${lastChild}${child}`;\n } else {\n childList.push(child);\n }\n isPrevChildPure = isCurrentChildPure;\n });\n return React.Children.map(childList, child => splitCNCharsBySpace(child, needInserted));\n}\nconst ButtonTypes = ['default', 'primary', 'dashed', 'link', 'text'];\nconst ButtonShapes = ['default', 'circle', 'round'];\nconst ButtonHTMLTypes = ['submit', 'button', 'reset'];","function compactItemVerticalBorder(token, parentCls) {\n return {\n // border collapse\n [`&-item:not(${parentCls}-last-item)`]: {\n marginBottom: -token.lineWidth\n },\n '&-item': {\n '&:hover,&:focus,&:active': {\n zIndex: 2\n },\n '&[disabled]': {\n zIndex: 0\n }\n }\n };\n}\nfunction compactItemBorderVerticalRadius(prefixCls, parentCls) {\n return {\n [`&-item:not(${parentCls}-first-item):not(${parentCls}-last-item)`]: {\n borderRadius: 0\n },\n [`&-item${parentCls}-first-item:not(${parentCls}-last-item)`]: {\n [`&, &${prefixCls}-sm, &${prefixCls}-lg`]: {\n borderEndEndRadius: 0,\n borderEndStartRadius: 0\n }\n },\n [`&-item${parentCls}-last-item:not(${parentCls}-first-item)`]: {\n [`&, &${prefixCls}-sm, &${prefixCls}-lg`]: {\n borderStartStartRadius: 0,\n borderStartEndRadius: 0\n }\n }\n };\n}\nexport function genCompactItemVerticalStyle(token) {\n const compactCls = `${token.componentCls}-compact-vertical`;\n return {\n [compactCls]: Object.assign(Object.assign({}, compactItemVerticalBorder(token, compactCls)), compactItemBorderVerticalRadius(token.componentCls, compactCls))\n };\n}","const genButtonBorderStyle = (buttonTypeCls, borderColor) => ({\n // Border\n [`> span, > ${buttonTypeCls}`]: {\n '&:not(:last-child)': {\n [`&, & > ${buttonTypeCls}`]: {\n '&:not(:disabled)': {\n borderInlineEndColor: borderColor\n }\n }\n },\n '&:not(:first-child)': {\n [`&, & > ${buttonTypeCls}`]: {\n '&:not(:disabled)': {\n borderInlineStartColor: borderColor\n }\n }\n }\n }\n});\nconst genGroupStyle = token => {\n const {\n componentCls,\n fontSize,\n lineWidth,\n colorPrimaryHover,\n colorErrorHover\n } = token;\n return {\n [`${componentCls}-group`]: [{\n position: 'relative',\n display: 'inline-flex',\n // Border\n [`> span, > ${componentCls}`]: {\n '&:not(:last-child)': {\n [`&, & > ${componentCls}`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0\n }\n },\n '&:not(:first-child)': {\n marginInlineStart: -lineWidth,\n [`&, & > ${componentCls}`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n }\n }\n },\n [componentCls]: {\n position: 'relative',\n zIndex: 1,\n [`&:hover,\n &:focus,\n &:active`]: {\n zIndex: 2\n },\n '&[disabled]': {\n zIndex: 0\n }\n },\n [`${componentCls}-icon-only`]: {\n fontSize\n }\n },\n // Border Color\n genButtonBorderStyle(`${componentCls}-primary`, colorPrimaryHover), genButtonBorderStyle(`${componentCls}-danger`, colorErrorHover)]\n };\n};\nexport default genGroupStyle;","import { genFocusStyle } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genCompactItemVerticalStyle } from '../../style/compact-item-vertical';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genGroupStyle from './group';\n// ============================== Shared ==============================\nconst genSharedButtonStyle = token => {\n const {\n componentCls,\n iconCls,\n buttonFontWeight\n } = token;\n return {\n [componentCls]: {\n outline: 'none',\n position: 'relative',\n display: 'inline-block',\n fontWeight: buttonFontWeight,\n whiteSpace: 'nowrap',\n textAlign: 'center',\n backgroundImage: 'none',\n backgroundColor: 'transparent',\n border: `${token.lineWidth}px ${token.lineType} transparent`,\n cursor: 'pointer',\n transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,\n userSelect: 'none',\n touchAction: 'manipulation',\n lineHeight: token.lineHeight,\n color: token.colorText,\n '&:disabled > *': {\n pointerEvents: 'none'\n },\n '> span': {\n display: 'inline-block'\n },\n [`${componentCls}-icon`]: {\n lineHeight: 0\n },\n // Leave a space between icon and text.\n [`> ${iconCls} + span, > span + ${iconCls}`]: {\n marginInlineStart: token.marginXS\n },\n [`&:not(${componentCls}-icon-only) > ${componentCls}-icon`]: {\n [`&${componentCls}-loading-icon, &:not(:last-child)`]: {\n marginInlineEnd: token.marginXS\n }\n },\n '> a': {\n color: 'currentColor'\n },\n '&:not(:disabled)': Object.assign({}, genFocusStyle(token)),\n // make `btn-icon-only` not too narrow\n [`&-icon-only${componentCls}-compact-item`]: {\n flex: 'none'\n },\n // Special styles for Primary Button\n [`&-compact-item${componentCls}-primary`]: {\n [`&:not([disabled]) + ${componentCls}-compact-item${componentCls}-primary:not([disabled])`]: {\n position: 'relative',\n '&:before': {\n position: 'absolute',\n top: -token.lineWidth,\n insetInlineStart: -token.lineWidth,\n display: 'inline-block',\n width: token.lineWidth,\n height: `calc(100% + ${token.lineWidth * 2}px)`,\n backgroundColor: token.colorPrimaryHover,\n content: '\"\"'\n }\n }\n },\n // Special styles for Primary Button\n '&-compact-vertical-item': {\n [`&${componentCls}-primary`]: {\n [`&:not([disabled]) + ${componentCls}-compact-vertical-item${componentCls}-primary:not([disabled])`]: {\n position: 'relative',\n '&:before': {\n position: 'absolute',\n top: -token.lineWidth,\n insetInlineStart: -token.lineWidth,\n display: 'inline-block',\n width: `calc(100% + ${token.lineWidth * 2}px)`,\n height: token.lineWidth,\n backgroundColor: token.colorPrimaryHover,\n content: '\"\"'\n }\n }\n }\n }\n }\n };\n};\nconst genHoverActiveButtonStyle = (btnCls, hoverStyle, activeStyle) => ({\n [`&:not(:disabled):not(${btnCls}-disabled)`]: {\n '&:hover': hoverStyle,\n '&:active': activeStyle\n }\n});\n// ============================== Shape ===============================\nconst genCircleButtonStyle = token => ({\n minWidth: token.controlHeight,\n paddingInlineStart: 0,\n paddingInlineEnd: 0,\n borderRadius: '50%'\n});\nconst genRoundButtonStyle = token => ({\n borderRadius: token.controlHeight,\n paddingInlineStart: token.controlHeight / 2,\n paddingInlineEnd: token.controlHeight / 2\n});\n// =============================== Type ===============================\nconst genDisabledStyle = token => ({\n cursor: 'not-allowed',\n borderColor: token.colorBorder,\n color: token.colorTextDisabled,\n backgroundColor: token.colorBgContainerDisabled,\n boxShadow: 'none'\n});\nconst genGhostButtonStyle = (btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) => ({\n [`&${btnCls}-background-ghost`]: Object.assign(Object.assign({\n color: textColor || undefined,\n backgroundColor: 'transparent',\n borderColor: borderColor || undefined,\n boxShadow: 'none'\n }, genHoverActiveButtonStyle(btnCls, Object.assign({\n backgroundColor: 'transparent'\n }, hoverStyle), Object.assign({\n backgroundColor: 'transparent'\n }, activeStyle))), {\n '&:disabled': {\n cursor: 'not-allowed',\n color: textColorDisabled || undefined,\n borderColor: borderColorDisabled || undefined\n }\n })\n});\nconst genSolidDisabledButtonStyle = token => ({\n [`&:disabled, &${token.componentCls}-disabled`]: Object.assign({}, genDisabledStyle(token))\n});\nconst genSolidButtonStyle = token => Object.assign({}, genSolidDisabledButtonStyle(token));\nconst genPureDisabledButtonStyle = token => ({\n [`&:disabled, &${token.componentCls}-disabled`]: {\n cursor: 'not-allowed',\n color: token.colorTextDisabled\n }\n});\n// Type: Default\nconst genDefaultButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n backgroundColor: token.colorBgContainer,\n borderColor: token.colorBorder,\n boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlTmpOutline}`\n}), genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorPrimaryHover,\n borderColor: token.colorPrimaryHover\n}, {\n color: token.colorPrimaryActive,\n borderColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), {\n [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n color: token.colorError,\n borderColor: token.colorError\n }, genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorErrorHover,\n borderColor: token.colorErrorBorderHover\n }, {\n color: token.colorErrorActive,\n borderColor: token.colorErrorActive\n })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder)), genSolidDisabledButtonStyle(token))\n});\n// Type: Primary\nconst genPrimaryButtonStyle = token => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genSolidButtonStyle(token)), {\n color: token.colorTextLightSolid,\n backgroundColor: token.colorPrimary,\n boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.controlOutline}`\n}), genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorTextLightSolid,\n backgroundColor: token.colorPrimaryHover\n}, {\n color: token.colorTextLightSolid,\n backgroundColor: token.colorPrimaryActive\n})), genGhostButtonStyle(token.componentCls, token.colorPrimary, token.colorPrimary, token.colorTextDisabled, token.colorBorder, {\n color: token.colorPrimaryHover,\n borderColor: token.colorPrimaryHover\n}, {\n color: token.colorPrimaryActive,\n borderColor: token.colorPrimaryActive\n})), {\n [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign(Object.assign({\n backgroundColor: token.colorError,\n boxShadow: `0 ${token.controlOutlineWidth}px 0 ${token.colorErrorOutline}`\n }, genHoverActiveButtonStyle(token.componentCls, {\n backgroundColor: token.colorErrorHover\n }, {\n backgroundColor: token.colorErrorActive\n })), genGhostButtonStyle(token.componentCls, token.colorError, token.colorError, token.colorTextDisabled, token.colorBorder, {\n color: token.colorErrorHover,\n borderColor: token.colorErrorHover\n }, {\n color: token.colorErrorActive,\n borderColor: token.colorErrorActive\n })), genSolidDisabledButtonStyle(token))\n});\n// Type: Dashed\nconst genDashedButtonStyle = token => Object.assign(Object.assign({}, genDefaultButtonStyle(token)), {\n borderStyle: 'dashed'\n});\n// Type: Link\nconst genLinkButtonStyle = token => Object.assign(Object.assign(Object.assign({\n color: token.colorLink\n}, genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorLinkHover\n}, {\n color: token.colorLinkActive\n})), genPureDisabledButtonStyle(token)), {\n [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n color: token.colorError\n }, genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorErrorHover\n }, {\n color: token.colorErrorActive\n })), genPureDisabledButtonStyle(token))\n});\n// Type: Text\nconst genTextButtonStyle = token => Object.assign(Object.assign(Object.assign({}, genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorText,\n backgroundColor: token.colorBgTextHover\n}, {\n color: token.colorText,\n backgroundColor: token.colorBgTextActive\n})), genPureDisabledButtonStyle(token)), {\n [`&${token.componentCls}-dangerous`]: Object.assign(Object.assign({\n color: token.colorError\n }, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle(token.componentCls, {\n color: token.colorErrorHover,\n backgroundColor: token.colorErrorBg\n }, {\n color: token.colorErrorHover,\n backgroundColor: token.colorErrorBg\n }))\n});\nconst genTypeButtonStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-default`]: genDefaultButtonStyle(token),\n [`${componentCls}-primary`]: genPrimaryButtonStyle(token),\n [`${componentCls}-dashed`]: genDashedButtonStyle(token),\n [`${componentCls}-link`]: genLinkButtonStyle(token),\n [`${componentCls}-text`]: genTextButtonStyle(token),\n [`${componentCls}-ghost`]: genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)\n };\n};\n// =============================== Size ===============================\nconst genSizeButtonStyle = function (token) {\n let sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n const {\n componentCls,\n controlHeight,\n fontSize,\n lineHeight,\n lineWidth,\n borderRadius,\n buttonPaddingHorizontal,\n iconCls\n } = token;\n const paddingVertical = Math.max(0, (controlHeight - fontSize * lineHeight) / 2 - lineWidth);\n const paddingHorizontal = buttonPaddingHorizontal - lineWidth;\n const iconOnlyCls = `${componentCls}-icon-only`;\n return [\n // Size\n {\n [`${componentCls}${sizePrefixCls}`]: {\n fontSize,\n height: controlHeight,\n padding: `${paddingVertical}px ${paddingHorizontal}px`,\n borderRadius,\n [`&${iconOnlyCls}`]: {\n width: controlHeight,\n paddingInlineStart: 0,\n paddingInlineEnd: 0,\n [`&${componentCls}-round`]: {\n width: 'auto'\n },\n [iconCls]: {\n fontSize: token.buttonIconOnlyFontSize\n }\n },\n // Loading\n [`&${componentCls}-loading`]: {\n opacity: token.opacityLoading,\n cursor: 'default'\n },\n [`${componentCls}-loading-icon`]: {\n transition: `width ${token.motionDurationSlow} ${token.motionEaseInOut}, opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`\n }\n }\n },\n // Shape - patch prefixCls again to override solid border radius style\n {\n [`${componentCls}${componentCls}-circle${sizePrefixCls}`]: genCircleButtonStyle(token)\n }, {\n [`${componentCls}${componentCls}-round${sizePrefixCls}`]: genRoundButtonStyle(token)\n }];\n};\nconst genSizeBaseButtonStyle = token => genSizeButtonStyle(token);\nconst genSizeSmallButtonStyle = token => {\n const smallToken = mergeToken(token, {\n controlHeight: token.controlHeightSM,\n padding: token.paddingXS,\n buttonPaddingHorizontal: 8,\n borderRadius: token.borderRadiusSM,\n buttonIconOnlyFontSize: token.fontSizeLG - 2\n });\n return genSizeButtonStyle(smallToken, `${token.componentCls}-sm`);\n};\nconst genSizeLargeButtonStyle = token => {\n const largeToken = mergeToken(token, {\n controlHeight: token.controlHeightLG,\n fontSize: token.fontSizeLG,\n borderRadius: token.borderRadiusLG,\n buttonIconOnlyFontSize: token.fontSizeLG + 2\n });\n return genSizeButtonStyle(largeToken, `${token.componentCls}-lg`);\n};\nconst genBlockButtonStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n [`&${componentCls}-block`]: {\n width: '100%'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Button', token => {\n const {\n controlTmpOutline,\n paddingContentHorizontal\n } = token;\n const buttonToken = mergeToken(token, {\n colorOutlineDefault: controlTmpOutline,\n buttonPaddingHorizontal: paddingContentHorizontal,\n buttonIconOnlyFontSize: token.fontSizeLG,\n buttonFontWeight: 400\n });\n return [\n // Shared\n genSharedButtonStyle(buttonToken),\n // Size\n genSizeSmallButtonStyle(buttonToken), genSizeBaseButtonStyle(buttonToken), genSizeLargeButtonStyle(buttonToken),\n // Block\n genBlockButtonStyle(buttonToken),\n // Group (type, ghost, danger, loading)\n genTypeButtonStyle(buttonToken),\n // Button Group\n genGroupStyle(buttonToken),\n // Space Compact\n genCompactItemStyle(token), genCompactItemVerticalStyle(token)];\n});","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n/* eslint-disable react/button-has-type */\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport React, { Children, createRef, forwardRef, useContext, useEffect, useMemo, useState } from 'react';\nimport warning from '../_util/warning';\nimport Wave from '../_util/wave';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { useCompactItemContext } from '../space/Compact';\nimport IconWrapper from './IconWrapper';\nimport LoadingIcon from './LoadingIcon';\nimport Group, { GroupSizeContext } from './button-group';\nimport { isTwoCNChar, isUnBorderedButtonType, spaceChildren } from './buttonHelpers';\nimport useStyle from './style';\nexport function convertLegacyProps(type) {\n if (type === 'danger') {\n return {\n danger: true\n };\n }\n return {\n type\n };\n}\nfunction getLoadingConfig(loading) {\n if (typeof loading === 'object' && loading) {\n const delay = loading === null || loading === void 0 ? void 0 : loading.delay;\n const isDelay = !Number.isNaN(delay) && typeof delay === 'number';\n return {\n loading: false,\n delay: isDelay ? delay : 0\n };\n }\n return {\n loading: !!loading,\n delay: 0\n };\n}\nconst InternalButton = (props, ref) => {\n var _a, _b;\n const {\n loading = false,\n prefixCls: customizePrefixCls,\n type = 'default',\n danger,\n shape = 'default',\n size: customizeSize,\n styles,\n disabled: customDisabled,\n className,\n rootClassName,\n children,\n icon,\n ghost = false,\n block = false,\n // React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.\n htmlType = 'button',\n classNames: customClassNames,\n style: customStyle = {}\n } = props,\n rest = __rest(props, [\"loading\", \"prefixCls\", \"type\", \"danger\", \"shape\", \"size\", \"styles\", \"disabled\", \"className\", \"rootClassName\", \"children\", \"icon\", \"ghost\", \"block\", \"htmlType\", \"classNames\", \"style\"]);\n const {\n getPrefixCls,\n autoInsertSpaceInButton,\n direction,\n button\n } = useContext(ConfigContext);\n const prefixCls = getPrefixCls('btn', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const disabled = useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n const groupSize = useContext(GroupSizeContext);\n const loadingOrDelay = useMemo(() => getLoadingConfig(loading), [loading]);\n const [innerLoading, setLoading] = useState(loadingOrDelay.loading);\n const [hasTwoCNChar, setHasTwoCNChar] = useState(false);\n const internalRef = /*#__PURE__*/createRef();\n const buttonRef = composeRef(ref, internalRef);\n const needInserted = Children.count(children) === 1 && !icon && !isUnBorderedButtonType(type);\n useEffect(() => {\n let delayTimer = null;\n if (loadingOrDelay.delay > 0) {\n delayTimer = setTimeout(() => {\n delayTimer = null;\n setLoading(true);\n }, loadingOrDelay.delay);\n } else {\n setLoading(loadingOrDelay.loading);\n }\n function cleanupTimer() {\n if (delayTimer) {\n clearTimeout(delayTimer);\n delayTimer = null;\n }\n }\n return cleanupTimer;\n }, [loadingOrDelay]);\n useEffect(() => {\n // FIXME: for HOC usage like \n if (!buttonRef || !buttonRef.current || autoInsertSpaceInButton === false) {\n return;\n }\n const buttonText = buttonRef.current.textContent;\n if (needInserted && isTwoCNChar(buttonText)) {\n if (!hasTwoCNChar) {\n setHasTwoCNChar(true);\n }\n } else if (hasTwoCNChar) {\n setHasTwoCNChar(false);\n }\n }, [buttonRef]);\n const handleClick = e => {\n const {\n onClick\n } = props;\n // FIXME: https://github.com/ant-design/ant-design/issues/30207\n if (innerLoading || mergedDisabled) {\n e.preventDefault();\n return;\n }\n onClick === null || onClick === void 0 ? void 0 : onClick(e);\n };\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Button', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(ghost && isUnBorderedButtonType(type)), 'Button', \"`link` or `text` button can't be a `ghost` button.\") : void 0;\n const autoInsertSpace = autoInsertSpaceInButton !== false;\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n const sizeClassNameMap = {\n large: 'lg',\n small: 'sm',\n middle: undefined\n };\n const sizeFullName = useSize(ctxSize => {\n var _a, _b;\n return (_b = (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : groupSize) !== null && _b !== void 0 ? _b : ctxSize;\n });\n const sizeCls = sizeFullName ? sizeClassNameMap[sizeFullName] || '' : '';\n const iconType = innerLoading ? 'loading' : icon;\n const linkButtonRestProps = omit(rest, ['navigate']);\n const classes = classNames(prefixCls, hashId, {\n [`${prefixCls}-${shape}`]: shape !== 'default' && shape,\n [`${prefixCls}-${type}`]: type,\n [`${prefixCls}-${sizeCls}`]: sizeCls,\n [`${prefixCls}-icon-only`]: !children && children !== 0 && !!iconType,\n [`${prefixCls}-background-ghost`]: ghost && !isUnBorderedButtonType(type),\n [`${prefixCls}-loading`]: innerLoading,\n [`${prefixCls}-two-chinese-chars`]: hasTwoCNChar && autoInsertSpace && !innerLoading,\n [`${prefixCls}-block`]: block,\n [`${prefixCls}-dangerous`]: !!danger,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, compactItemClassnames, className, rootClassName, button === null || button === void 0 ? void 0 : button.className);\n const fullStyle = Object.assign(Object.assign({}, button === null || button === void 0 ? void 0 : button.style), customStyle);\n const iconClasses = classNames(customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.icon, (_a = button === null || button === void 0 ? void 0 : button.classNames) === null || _a === void 0 ? void 0 : _a.icon);\n const iconStyle = Object.assign(Object.assign({}, (styles === null || styles === void 0 ? void 0 : styles.icon) || {}), ((_b = button === null || button === void 0 ? void 0 : button.styles) === null || _b === void 0 ? void 0 : _b.icon) || {});\n const iconNode = icon && !innerLoading ? /*#__PURE__*/React.createElement(IconWrapper, {\n prefixCls: prefixCls,\n className: iconClasses,\n style: iconStyle\n }, icon) : /*#__PURE__*/React.createElement(LoadingIcon, {\n existIcon: !!icon,\n prefixCls: prefixCls,\n loading: !!innerLoading\n });\n const kids = children || children === 0 ? spaceChildren(children, needInserted && autoInsertSpace) : null;\n if (linkButtonRestProps.href !== undefined) {\n return wrapSSR( /*#__PURE__*/React.createElement(\"a\", Object.assign({}, linkButtonRestProps, {\n className: classNames(classes, {\n [`${prefixCls}-disabled`]: mergedDisabled\n }),\n style: fullStyle,\n onClick: handleClick,\n ref: buttonRef\n }), iconNode, kids));\n }\n let buttonNode = /*#__PURE__*/React.createElement(\"button\", Object.assign({}, rest, {\n type: htmlType,\n className: classes,\n style: fullStyle,\n onClick: handleClick,\n disabled: mergedDisabled,\n ref: buttonRef\n }), iconNode, kids);\n if (!isUnBorderedButtonType(type)) {\n buttonNode = /*#__PURE__*/React.createElement(Wave, {\n component: \"Button\",\n disabled: !!innerLoading\n }, buttonNode);\n }\n return wrapSSR(buttonNode);\n};\nconst Button = /*#__PURE__*/forwardRef(InternalButton);\nif (process.env.NODE_ENV !== 'production') {\n Button.displayName = 'Button';\n}\nButton.Group = Group;\nButton.__ANT_BUTTON = true;\nexport default Button;","'use client';\n\nimport Button from './button';\nexport * from './buttonHelpers';\nexport default Button;","import enUS from '../../date-picker/locale/en_US';\nexport default enUS;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst Grid = _a => {\n var {\n prefixCls,\n className,\n hoverable = true\n } = _a,\n props = __rest(_a, [\"prefixCls\", \"className\", \"hoverable\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefix = getPrefixCls('card', prefixCls);\n const classString = classNames(`${prefix}-grid`, className, {\n [`${prefix}-grid-hoverable`]: hoverable\n });\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, props, {\n className: classString\n }));\n};\nexport default Grid;","import { clearFix, resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\n// ============================== Head ==============================\nconst genCardHeadStyle = token => {\n const {\n antCls,\n componentCls,\n headerHeight,\n cardPaddingBase,\n tabsMarginBottom\n } = token;\n return Object.assign(Object.assign({\n display: 'flex',\n justifyContent: 'center',\n flexDirection: 'column',\n minHeight: headerHeight,\n marginBottom: -1,\n padding: `0 ${cardPaddingBase}px`,\n color: token.colorTextHeading,\n fontWeight: token.fontWeightStrong,\n fontSize: token.headerFontSize,\n background: token.headerBg,\n borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`,\n borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`\n }, clearFix()), {\n '&-wrapper': {\n width: '100%',\n display: 'flex',\n alignItems: 'center'\n },\n '&-title': Object.assign(Object.assign({\n display: 'inline-block',\n flex: 1\n }, textEllipsis), {\n [`\n > ${componentCls}-typography,\n > ${componentCls}-typography-edit-content\n `]: {\n insetInlineStart: 0,\n marginTop: 0,\n marginBottom: 0\n }\n }),\n [`${antCls}-tabs-top`]: {\n clear: 'both',\n marginBottom: tabsMarginBottom,\n color: token.colorText,\n fontWeight: 'normal',\n fontSize: token.fontSize,\n '&-bar': {\n borderBottom: `${token.lineWidth}px ${token.lineType} ${token.colorBorderSecondary}`\n }\n }\n });\n};\n// ============================== Grid ==============================\nconst genCardGridStyle = token => {\n const {\n cardPaddingBase,\n colorBorderSecondary,\n cardShadow,\n lineWidth\n } = token;\n return {\n width: '33.33%',\n padding: cardPaddingBase,\n border: 0,\n borderRadius: 0,\n boxShadow: `\n ${lineWidth}px 0 0 0 ${colorBorderSecondary},\n 0 ${lineWidth}px 0 0 ${colorBorderSecondary},\n ${lineWidth}px ${lineWidth}px 0 0 ${colorBorderSecondary},\n ${lineWidth}px 0 0 0 ${colorBorderSecondary} inset,\n 0 ${lineWidth}px 0 0 ${colorBorderSecondary} inset;\n `,\n transition: `all ${token.motionDurationMid}`,\n '&-hoverable:hover': {\n position: 'relative',\n zIndex: 1,\n boxShadow: cardShadow\n }\n };\n};\n// ============================== Actions ==============================\nconst genCardActionsStyle = token => {\n const {\n componentCls,\n iconCls,\n actionsLiMargin,\n cardActionsIconSize,\n colorBorderSecondary,\n actionsBg\n } = token;\n return Object.assign(Object.assign({\n margin: 0,\n padding: 0,\n listStyle: 'none',\n background: actionsBg,\n borderTop: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,\n display: 'flex',\n borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px `\n }, clearFix()), {\n '& > li': {\n margin: actionsLiMargin,\n color: token.colorTextDescription,\n textAlign: 'center',\n '> span': {\n position: 'relative',\n display: 'block',\n minWidth: token.cardActionsIconSize * 2,\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n cursor: 'pointer',\n '&:hover': {\n color: token.colorPrimary,\n transition: `color ${token.motionDurationMid}`\n },\n [`a:not(${componentCls}-btn), > ${iconCls}`]: {\n display: 'inline-block',\n width: '100%',\n color: token.colorTextDescription,\n lineHeight: `${token.fontSize * token.lineHeight}px`,\n transition: `color ${token.motionDurationMid}`,\n '&:hover': {\n color: token.colorPrimary\n }\n },\n [`> ${iconCls}`]: {\n fontSize: cardActionsIconSize,\n lineHeight: `${cardActionsIconSize * token.lineHeight}px`\n }\n },\n '&:not(:last-child)': {\n borderInlineEnd: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`\n }\n }\n });\n};\n// ============================== Meta ==============================\nconst genCardMetaStyle = token => Object.assign(Object.assign({\n margin: `-${token.marginXXS}px 0`,\n display: 'flex'\n}, clearFix()), {\n '&-avatar': {\n paddingInlineEnd: token.padding\n },\n '&-detail': {\n overflow: 'hidden',\n flex: 1,\n '> div:not(:last-child)': {\n marginBottom: token.marginXS\n }\n },\n '&-title': Object.assign({\n color: token.colorTextHeading,\n fontWeight: token.fontWeightStrong,\n fontSize: token.fontSizeLG\n }, textEllipsis),\n '&-description': {\n color: token.colorTextDescription\n }\n});\n// ============================== Inner ==============================\nconst genCardTypeInnerStyle = token => {\n const {\n componentCls,\n cardPaddingBase,\n colorFillAlter\n } = token;\n return {\n [`${componentCls}-head`]: {\n padding: `0 ${cardPaddingBase}px`,\n background: colorFillAlter,\n '&-title': {\n fontSize: token.fontSize\n }\n },\n [`${componentCls}-body`]: {\n padding: `${token.padding}px ${cardPaddingBase}px`\n }\n };\n};\n// ============================== Loading ==============================\nconst genCardLoadingStyle = token => {\n const {\n componentCls\n } = token;\n return {\n overflow: 'hidden',\n [`${componentCls}-body`]: {\n userSelect: 'none'\n }\n };\n};\n// ============================== Basic ==============================\nconst genCardStyle = token => {\n const {\n antCls,\n componentCls,\n cardShadow,\n cardHeadPadding,\n colorBorderSecondary,\n boxShadowTertiary,\n cardPaddingBase,\n extraColor\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n background: token.colorBgContainer,\n borderRadius: token.borderRadiusLG,\n [`&:not(${componentCls}-bordered)`]: {\n boxShadow: boxShadowTertiary\n },\n [`${componentCls}-head`]: genCardHeadStyle(token),\n [`${componentCls}-extra`]: {\n // https://stackoverflow.com/a/22429853/3040605\n marginInlineStart: 'auto',\n color: extraColor,\n fontWeight: 'normal',\n fontSize: token.fontSize\n },\n [`${componentCls}-body`]: Object.assign({\n padding: cardPaddingBase,\n borderRadius: ` 0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px`\n }, clearFix()),\n [`${componentCls}-grid`]: genCardGridStyle(token),\n [`${componentCls}-cover`]: {\n '> *': {\n display: 'block',\n width: '100%'\n },\n [`img, img + ${antCls}-image-mask`]: {\n borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`\n }\n },\n [`${componentCls}-actions`]: genCardActionsStyle(token),\n [`${componentCls}-meta`]: genCardMetaStyle(token)\n }),\n [`${componentCls}-bordered`]: {\n border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,\n [`${componentCls}-cover`]: {\n marginTop: -1,\n marginInlineStart: -1,\n marginInlineEnd: -1\n }\n },\n [`${componentCls}-hoverable`]: {\n cursor: 'pointer',\n transition: `box-shadow ${token.motionDurationMid}, border-color ${token.motionDurationMid}`,\n '&:hover': {\n borderColor: 'transparent',\n boxShadow: cardShadow\n }\n },\n [`${componentCls}-contain-grid`]: {\n [`${componentCls}-body`]: {\n display: 'flex',\n flexWrap: 'wrap'\n },\n [`&:not(${componentCls}-loading) ${componentCls}-body`]: {\n marginBlockStart: -token.lineWidth,\n marginInlineStart: -token.lineWidth,\n padding: 0\n }\n },\n [`${componentCls}-contain-tabs`]: {\n [`> ${componentCls}-head`]: {\n [`${componentCls}-head-title, ${componentCls}-extra`]: {\n paddingTop: cardHeadPadding\n }\n }\n },\n [`${componentCls}-type-inner`]: genCardTypeInnerStyle(token),\n [`${componentCls}-loading`]: genCardLoadingStyle(token),\n [`${componentCls}-rtl`]: {\n direction: 'rtl'\n }\n };\n};\n// ============================== Size ==============================\nconst genCardSizeStyle = token => {\n const {\n componentCls,\n cardPaddingSM,\n headerHeightSM,\n headerFontSizeSM\n } = token;\n return {\n [`${componentCls}-small`]: {\n [`> ${componentCls}-head`]: {\n minHeight: headerHeightSM,\n padding: `0 ${cardPaddingSM}px`,\n fontSize: headerFontSizeSM,\n [`> ${componentCls}-head-wrapper`]: {\n [`> ${componentCls}-extra`]: {\n fontSize: token.fontSize\n }\n }\n },\n [`> ${componentCls}-body`]: {\n padding: cardPaddingSM\n }\n },\n [`${componentCls}-small${componentCls}-contain-tabs`]: {\n [`> ${componentCls}-head`]: {\n [`${componentCls}-head-title, ${componentCls}-extra`]: {\n minHeight: headerHeightSM,\n paddingTop: 0,\n display: 'flex',\n alignItems: 'center'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Card', token => {\n const cardToken = mergeToken(token, {\n cardShadow: token.boxShadowCard,\n cardHeadPadding: token.padding,\n cardPaddingBase: token.paddingLG,\n cardActionsIconSize: token.fontSize,\n cardPaddingSM: 12 // Fixed padding.\n });\n\n return [\n // Style\n genCardStyle(cardToken),\n // Size\n genCardSizeStyle(cardToken)];\n}, token => ({\n headerBg: 'transparent',\n headerFontSize: token.fontSizeLG,\n headerFontSizeSM: token.fontSize,\n headerHeight: token.fontSizeLG * token.lineHeightLG + token.padding * 2,\n headerHeightSM: token.fontSize * token.lineHeight + token.paddingXS * 2,\n actionsBg: token.colorBgContainer,\n actionsLiMargin: `${token.paddingSM}px 0`,\n tabsMarginBottom: -token.padding - token.lineWidth,\n extraColor: token.colorText\n}));","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport Skeleton from '../skeleton';\nimport Tabs from '../tabs';\nimport Grid from './Grid';\nimport useStyle from './style';\nfunction getAction(actions) {\n return actions.map((action, index) =>\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n style: {\n width: `${100 / actions.length}%`\n },\n key: `action-${index}`\n }, /*#__PURE__*/React.createElement(\"span\", null, action)));\n}\nconst Card = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n style,\n extra,\n headStyle = {},\n bodyStyle = {},\n title,\n loading,\n bordered = true,\n size: customizeSize,\n type,\n cover,\n actions,\n tabList,\n children,\n activeTabKey,\n defaultActiveTabKey,\n tabBarExtraContent,\n hoverable,\n tabProps = {}\n } = props,\n others = __rest(props, [\"prefixCls\", \"className\", \"rootClassName\", \"style\", \"extra\", \"headStyle\", \"bodyStyle\", \"title\", \"loading\", \"bordered\", \"size\", \"type\", \"cover\", \"actions\", \"tabList\", \"children\", \"activeTabKey\", \"defaultActiveTabKey\", \"tabBarExtraContent\", \"hoverable\", \"tabProps\"]);\n const {\n getPrefixCls,\n direction,\n card\n } = React.useContext(ConfigContext);\n const onTabChange = key => {\n var _a;\n (_a = props.onTabChange) === null || _a === void 0 ? void 0 : _a.call(props, key);\n };\n const isContainGrid = React.useMemo(() => {\n let containGrid = false;\n React.Children.forEach(children, element => {\n if (element && element.type && element.type === Grid) {\n containGrid = true;\n }\n });\n return containGrid;\n }, [children]);\n const prefixCls = getPrefixCls('card', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const loadingBlock = /*#__PURE__*/React.createElement(Skeleton, {\n loading: true,\n active: true,\n paragraph: {\n rows: 4\n },\n title: false\n }, children);\n const hasActiveTabKey = activeTabKey !== undefined;\n const extraProps = Object.assign(Object.assign({}, tabProps), {\n [hasActiveTabKey ? 'activeKey' : 'defaultActiveKey']: hasActiveTabKey ? activeTabKey : defaultActiveTabKey,\n tabBarExtraContent\n });\n let head;\n const mergedSize = useSize(customizeSize);\n const tabSize = !mergedSize || mergedSize === 'default' ? 'large' : mergedSize;\n const tabs = tabList ? /*#__PURE__*/React.createElement(Tabs, Object.assign({\n size: tabSize\n }, extraProps, {\n className: `${prefixCls}-head-tabs`,\n onChange: onTabChange,\n items: tabList.map(_a => {\n var {\n tab\n } = _a,\n item = __rest(_a, [\"tab\"]);\n return Object.assign({\n label: tab\n }, item);\n })\n })) : null;\n if (title || extra || tabs) {\n head = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-head`,\n style: headStyle\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-head-wrapper`\n }, title && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-head-title`\n }, title), extra && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-extra`\n }, extra)), tabs);\n }\n const coverDom = cover ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-cover`\n }, cover) : null;\n const body = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-body`,\n style: bodyStyle\n }, loading ? loadingBlock : children);\n const actionDom = actions && actions.length ? /*#__PURE__*/React.createElement(\"ul\", {\n className: `${prefixCls}-actions`\n }, getAction(actions)) : null;\n const divProps = omit(others, ['onTabChange']);\n const classString = classNames(prefixCls, card === null || card === void 0 ? void 0 : card.className, {\n [`${prefixCls}-loading`]: loading,\n [`${prefixCls}-bordered`]: bordered,\n [`${prefixCls}-hoverable`]: hoverable,\n [`${prefixCls}-contain-grid`]: isContainGrid,\n [`${prefixCls}-contain-tabs`]: tabList && tabList.length,\n [`${prefixCls}-${mergedSize}`]: mergedSize,\n [`${prefixCls}-type-${type}`]: !!type,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, rootClassName, hashId);\n const mergedStyle = Object.assign(Object.assign({}, card === null || card === void 0 ? void 0 : card.style), style);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({\n ref: ref\n }, divProps, {\n className: classString,\n style: mergedStyle\n }), head, coverDom, body, actionDom));\n});\nexport default Card;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst Meta = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n avatar,\n title,\n description\n } = props,\n others = __rest(props, [\"prefixCls\", \"className\", \"avatar\", \"title\", \"description\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('card', customizePrefixCls);\n const classString = classNames(`${prefixCls}-meta`, className);\n const avatarDom = avatar ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-meta-avatar`\n }, avatar) : null;\n const titleDom = title ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-meta-title`\n }, title) : null;\n const descriptionDom = description ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-meta-description`\n }, description) : null;\n const MetaDetail = titleDom || descriptionDom ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-meta-detail`\n }, titleDom, descriptionDom) : null;\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, others, {\n className: classString\n }), avatarDom, MetaDetail);\n};\nexport default Meta;","'use client';\n\nimport InternalCard from './Card';\nimport Grid from './Grid';\nimport Meta from './Meta';\nconst Card = InternalCard;\nCard.Grid = Grid;\nCard.Meta = Meta;\nif (process.env.NODE_ENV !== 'production') {\n Card.displayName = 'Card';\n}\nexport default Card;","import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport classnames from 'classnames';\nimport React from 'react';\nvar PanelContent = /*#__PURE__*/ React.forwardRef(function (props, ref) {\n var _classnames;\n var prefixCls = props.prefixCls,\n forceRender = props.forceRender,\n className = props.className,\n style = props.style,\n children = props.children,\n isActive = props.isActive,\n role = props.role;\n var _React$useState = React.useState(isActive || forceRender),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n rendered = _React$useState2[0],\n setRendered = _React$useState2[1];\n React.useEffect(\n function () {\n if (forceRender || isActive) {\n setRendered(true);\n }\n },\n [forceRender, isActive],\n );\n if (!rendered) {\n return null;\n }\n return /*#__PURE__*/ React.createElement(\n 'div',\n {\n ref: ref,\n className: classnames(\n ''.concat(prefixCls, '-content'),\n ((_classnames = {}),\n _defineProperty(_classnames, ''.concat(prefixCls, '-content-active'), isActive),\n _defineProperty(_classnames, ''.concat(prefixCls, '-content-inactive'), !isActive),\n _classnames),\n className,\n ),\n style: style,\n role: role,\n },\n /*#__PURE__*/ React.createElement(\n 'div',\n {\n className: ''.concat(prefixCls, '-content-box'),\n },\n children,\n ),\n );\n});\nPanelContent.displayName = 'PanelContent';\nexport default PanelContent;\n","import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport KeyCode from 'rc-util/es/KeyCode';\nimport React from 'react';\nimport PanelContent from './PanelContent';\nvar _excluded = [\n 'showArrow',\n 'headerClass',\n 'isActive',\n 'onItemClick',\n 'forceRender',\n 'className',\n 'prefixCls',\n 'collapsible',\n 'accordion',\n 'panelKey',\n 'extra',\n 'header',\n 'expandIcon',\n 'openMotion',\n 'destroyInactivePanel',\n 'children',\n];\nvar CollapsePanel = /*#__PURE__*/ React.forwardRef(function (props, ref) {\n var _classNames, _classNames2;\n var _props$showArrow = props.showArrow,\n showArrow = _props$showArrow === void 0 ? true : _props$showArrow,\n headerClass = props.headerClass,\n isActive = props.isActive,\n onItemClick = props.onItemClick,\n forceRender = props.forceRender,\n className = props.className,\n prefixCls = props.prefixCls,\n collapsible = props.collapsible,\n accordion = props.accordion,\n panelKey = props.panelKey,\n extra = props.extra,\n header = props.header,\n expandIcon = props.expandIcon,\n openMotion = props.openMotion,\n destroyInactivePanel = props.destroyInactivePanel,\n children = props.children,\n resetProps = _objectWithoutProperties(props, _excluded);\n var disabled = collapsible === 'disabled';\n var collapsibleHeader = collapsible === 'header';\n var collapsibleIcon = collapsible === 'icon';\n var ifExtraExist = extra !== null && extra !== undefined && typeof extra !== 'boolean';\n var handleItemClick = function handleItemClick() {\n onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(panelKey);\n };\n var handleKeyDown = function handleKeyDown(e) {\n if (e.key === 'Enter' || e.keyCode === KeyCode.ENTER || e.which === KeyCode.ENTER) {\n handleItemClick();\n }\n };\n\n // ======================== Icon ========================\n var iconNode =\n typeof expandIcon === 'function'\n ? expandIcon(props)\n : /*#__PURE__*/ React.createElement('i', {\n className: 'arrow',\n });\n if (iconNode) {\n iconNode = /*#__PURE__*/ React.createElement(\n 'div',\n {\n className: ''.concat(prefixCls, '-expand-icon'),\n onClick: ['header', 'icon'].includes(collapsible) ? handleItemClick : undefined,\n },\n iconNode,\n );\n }\n var collapsePanelClassNames = classNames(\n ((_classNames = {}),\n _defineProperty(_classNames, ''.concat(prefixCls, '-item'), true),\n _defineProperty(_classNames, ''.concat(prefixCls, '-item-active'), isActive),\n _defineProperty(_classNames, ''.concat(prefixCls, '-item-disabled'), disabled),\n _classNames),\n className,\n );\n var headerClassName = classNames(\n headerClass,\n ((_classNames2 = {}),\n _defineProperty(_classNames2, ''.concat(prefixCls, '-header'), true),\n _defineProperty(\n _classNames2,\n ''.concat(prefixCls, '-header-collapsible-only'),\n collapsibleHeader,\n ),\n _defineProperty(_classNames2, ''.concat(prefixCls, '-icon-collapsible-only'), collapsibleIcon),\n _classNames2),\n );\n\n // ======================== HeaderProps ========================\n var headerProps = {\n className: headerClassName,\n 'aria-expanded': isActive,\n 'aria-disabled': disabled,\n onKeyDown: handleKeyDown,\n };\n if (!collapsibleHeader && !collapsibleIcon) {\n headerProps.onClick = handleItemClick;\n headerProps.role = accordion ? 'tab' : 'button';\n headerProps.tabIndex = disabled ? -1 : 0;\n }\n\n // ======================== Render ========================\n return /*#__PURE__*/ React.createElement(\n 'div',\n _extends({}, resetProps, {\n ref: ref,\n className: collapsePanelClassNames,\n }),\n /*#__PURE__*/ React.createElement(\n 'div',\n headerProps,\n showArrow && iconNode,\n /*#__PURE__*/ React.createElement(\n 'span',\n {\n className: ''.concat(prefixCls, '-header-text'),\n onClick: collapsible === 'header' ? handleItemClick : undefined,\n },\n header,\n ),\n ifExtraExist &&\n /*#__PURE__*/ React.createElement(\n 'div',\n {\n className: ''.concat(prefixCls, '-extra'),\n },\n extra,\n ),\n ),\n /*#__PURE__*/ React.createElement(\n CSSMotion,\n _extends(\n {\n visible: isActive,\n leavedClassName: ''.concat(prefixCls, '-content-hidden'),\n },\n openMotion,\n {\n forceRender: forceRender,\n removeOnLeave: destroyInactivePanel,\n },\n ),\n function (_ref, motionRef) {\n var motionClassName = _ref.className,\n motionStyle = _ref.style;\n return /*#__PURE__*/ React.createElement(\n PanelContent,\n {\n ref: motionRef,\n prefixCls: prefixCls,\n className: motionClassName,\n style: motionStyle,\n isActive: isActive,\n forceRender: forceRender,\n role: accordion ? 'tabpanel' : void 0,\n },\n children,\n );\n },\n ),\n );\n});\nexport default CollapsePanel;\n","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutProperties';\nimport toArray from 'rc-util/es/Children/toArray';\nimport React from 'react';\nimport CollapsePanel from '../Panel';\nvar _excluded = ['children', 'label', 'key', 'collapsible', 'onItemClick', 'destroyInactivePanel'];\nvar convertItemsToNodes = function convertItemsToNodes(items, props) {\n var prefixCls = props.prefixCls,\n accordion = props.accordion,\n collapsible = props.collapsible,\n destroyInactivePanel = props.destroyInactivePanel,\n onItemClick = props.onItemClick,\n activeKey = props.activeKey,\n openMotion = props.openMotion,\n expandIcon = props.expandIcon;\n return items.map(function (item, index) {\n var children = item.children,\n label = item.label,\n rawKey = item.key,\n rawCollapsible = item.collapsible,\n rawOnItemClick = item.onItemClick,\n rawDestroyInactivePanel = item.destroyInactivePanel,\n restProps = _objectWithoutProperties(item, _excluded);\n\n // You may be puzzled why you want to convert them all into strings, me too.\n // Maybe: https://github.com/react-component/collapse/blob/aac303a8b6ff30e35060b4f8fecde6f4556fcbe2/src/Collapse.tsx#L15\n var key = String(rawKey !== null && rawKey !== void 0 ? rawKey : index);\n var mergeCollapsible =\n rawCollapsible !== null && rawCollapsible !== void 0 ? rawCollapsible : collapsible;\n var mergeDestroyInactivePanel =\n rawDestroyInactivePanel !== null && rawDestroyInactivePanel !== void 0\n ? rawDestroyInactivePanel\n : destroyInactivePanel;\n var handleItemClick = function handleItemClick(value) {\n if (mergeCollapsible === 'disabled') return;\n onItemClick(value);\n rawOnItemClick === null || rawOnItemClick === void 0 ? void 0 : rawOnItemClick(value);\n };\n var isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n return /*#__PURE__*/ React.createElement(\n CollapsePanel,\n _extends({}, restProps, {\n prefixCls: prefixCls,\n key: key,\n panelKey: key,\n isActive: isActive,\n accordion: accordion,\n openMotion: openMotion,\n expandIcon: expandIcon,\n header: label,\n collapsible: mergeCollapsible,\n onItemClick: handleItemClick,\n destroyInactivePanel: mergeDestroyInactivePanel,\n }),\n children,\n );\n });\n};\n\n/**\n * @deprecated The next major version will be removed\n */\nvar getNewChild = function getNewChild(child, index, props) {\n if (!child) return null;\n var prefixCls = props.prefixCls,\n accordion = props.accordion,\n collapsible = props.collapsible,\n destroyInactivePanel = props.destroyInactivePanel,\n onItemClick = props.onItemClick,\n activeKey = props.activeKey,\n openMotion = props.openMotion,\n expandIcon = props.expandIcon;\n var key = child.key || String(index);\n var _child$props = child.props,\n header = _child$props.header,\n headerClass = _child$props.headerClass,\n childDestroyInactivePanel = _child$props.destroyInactivePanel,\n childCollapsible = _child$props.collapsible,\n childOnItemClick = _child$props.onItemClick;\n var isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n var mergeCollapsible =\n childCollapsible !== null && childCollapsible !== void 0 ? childCollapsible : collapsible;\n var handleItemClick = function handleItemClick(value) {\n if (mergeCollapsible === 'disabled') return;\n onItemClick(value);\n childOnItemClick === null || childOnItemClick === void 0 ? void 0 : childOnItemClick(value);\n };\n var childProps = {\n key: key,\n panelKey: key,\n header: header,\n headerClass: headerClass,\n isActive: isActive,\n prefixCls: prefixCls,\n destroyInactivePanel:\n childDestroyInactivePanel !== null && childDestroyInactivePanel !== void 0\n ? childDestroyInactivePanel\n : destroyInactivePanel,\n openMotion: openMotion,\n accordion: accordion,\n children: child.props.children,\n onItemClick: handleItemClick,\n expandIcon: expandIcon,\n collapsible: mergeCollapsible,\n };\n\n // https://github.com/ant-design/ant-design/issues/20479\n if (typeof child.type === 'string') {\n return child;\n }\n Object.keys(childProps).forEach(function (propName) {\n if (typeof childProps[propName] === 'undefined') {\n delete childProps[propName];\n }\n });\n return /*#__PURE__*/ React.cloneElement(child, childProps);\n};\nfunction useItems(items, rawChildren, props) {\n if (Array.isArray(items)) {\n return convertItemsToNodes(items, props);\n }\n return toArray(rawChildren).map(function (child, index) {\n return getNewChild(child, index, props);\n });\n}\nexport default useItems;\n","import _slicedToArray from '@babel/runtime/helpers/esm/slicedToArray';\nimport _toConsumableArray from '@babel/runtime/helpers/esm/toConsumableArray';\nimport _typeof from '@babel/runtime/helpers/esm/typeof';\nimport classNames from 'classnames';\nimport useMergedState from 'rc-util/es/hooks/useMergedState';\nimport warning from 'rc-util/es/warning';\nimport React from 'react';\nimport useItems from './hooks/useItems';\nimport CollapsePanel from './Panel';\nfunction getActiveKeysArray(activeKey) {\n var currentActiveKey = activeKey;\n if (!Array.isArray(currentActiveKey)) {\n var activeKeyType = _typeof(currentActiveKey);\n currentActiveKey =\n activeKeyType === 'number' || activeKeyType === 'string' ? [currentActiveKey] : [];\n }\n return currentActiveKey.map(function (key) {\n return String(key);\n });\n}\nvar Collapse = /*#__PURE__*/ React.forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-collapse' : _props$prefixCls,\n _props$destroyInactiv = props.destroyInactivePanel,\n destroyInactivePanel = _props$destroyInactiv === void 0 ? false : _props$destroyInactiv,\n style = props.style,\n accordion = props.accordion,\n className = props.className,\n children = props.children,\n collapsible = props.collapsible,\n openMotion = props.openMotion,\n expandIcon = props.expandIcon,\n rawActiveKey = props.activeKey,\n defaultActiveKey = props.defaultActiveKey,\n _onChange = props.onChange,\n items = props.items;\n var collapseClassName = classNames(prefixCls, className);\n var _useMergedState = useMergedState([], {\n value: rawActiveKey,\n onChange: function onChange(v) {\n return _onChange === null || _onChange === void 0 ? void 0 : _onChange(v);\n },\n defaultValue: defaultActiveKey,\n postState: getActiveKeysArray,\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n activeKey = _useMergedState2[0],\n setActiveKey = _useMergedState2[1];\n var onItemClick = function onItemClick(key) {\n return setActiveKey(function () {\n if (accordion) {\n return activeKey[0] === key ? [] : [key];\n }\n var index = activeKey.indexOf(key);\n var isActive = index > -1;\n if (isActive) {\n return activeKey.filter(function (item) {\n return item !== key;\n });\n }\n return [].concat(_toConsumableArray(activeKey), [key]);\n });\n };\n\n // ======================== Children ========================\n warning(\n !children,\n '`children` will be removed in next major version. Please use `items` instead.',\n );\n var mergedChildren = useItems(items, children, {\n prefixCls: prefixCls,\n accordion: accordion,\n openMotion: openMotion,\n expandIcon: expandIcon,\n collapsible: collapsible,\n destroyInactivePanel: destroyInactivePanel,\n onItemClick: onItemClick,\n activeKey: activeKey,\n });\n\n // ======================== Render ========================\n return /*#__PURE__*/ React.createElement(\n 'div',\n {\n ref: ref,\n className: collapseClassName,\n style: style,\n role: accordion ? 'tablist' : undefined,\n },\n mergedChildren,\n );\n});\nexport default Object.assign(Collapse, {\n /**\n * @deprecated use `items` instead, will be removed in `v4.0.0`\n */\n Panel: CollapsePanel,\n});\n","import Collapse from './Collapse';\nexport default Collapse;\n\n/**\n * @deprecated use `items` instead, will be removed in `v4.0.0`\n */\nvar Panel = Collapse.Panel;\nexport { Panel };\n","import classNames from 'classnames';\nimport RcCollapse from 'rc-collapse';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nconst CollapsePanel = /*#__PURE__*/React.forwardRef((props, ref) => {\n process.env.NODE_ENV !== \"production\" ? warning(!('disabled' in props), 'Collapse.Panel', '`disabled` is deprecated. Please use `collapsible=\"disabled\"` instead.') : void 0;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showArrow = true\n } = props;\n const prefixCls = getPrefixCls('collapse', customizePrefixCls);\n const collapsePanelClassName = classNames({\n [`${prefixCls}-no-arrow`]: !showArrow\n }, className);\n return /*#__PURE__*/React.createElement(RcCollapse.Panel, Object.assign({\n ref: ref\n }, props, {\n prefixCls: prefixCls,\n className: collapsePanelClassName\n }));\n});\nexport default CollapsePanel;","import { resetComponent, resetIcon } from '../../style';\nimport { genCollapseMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nexport const genBaseStyle = token => {\n const {\n componentCls,\n collapseContentBg,\n padding,\n collapseContentPaddingHorizontal,\n collapseHeaderBg,\n collapseHeaderPadding,\n collapseHeaderPaddingSM,\n collapseHeaderPaddingLG,\n collapsePanelBorderRadius,\n lineWidth,\n lineType,\n colorBorder,\n colorText,\n colorTextHeading,\n colorTextDisabled,\n fontSize,\n fontSizeLG,\n lineHeight,\n marginSM,\n paddingSM,\n paddingLG,\n paddingXS,\n motionDurationSlow,\n fontSizeIcon\n } = token;\n const borderBase = `${lineWidth}px ${lineType} ${colorBorder}`;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n backgroundColor: collapseHeaderBg,\n border: borderBase,\n borderBottom: 0,\n borderRadius: `${collapsePanelBorderRadius}px`,\n [`&-rtl`]: {\n direction: 'rtl'\n },\n [`& > ${componentCls}-item`]: {\n borderBottom: borderBase,\n [`&:last-child`]: {\n [`\n &,\n & > ${componentCls}-header`]: {\n borderRadius: `0 0 ${collapsePanelBorderRadius}px ${collapsePanelBorderRadius}px`\n }\n },\n [`> ${componentCls}-header`]: {\n position: 'relative',\n display: 'flex',\n flexWrap: 'nowrap',\n alignItems: 'flex-start',\n padding: collapseHeaderPadding,\n paddingInlineStart: paddingSM,\n color: colorTextHeading,\n lineHeight,\n cursor: 'pointer',\n transition: `all ${motionDurationSlow}, visibility 0s`,\n [`> ${componentCls}-header-text`]: {\n flex: 'auto'\n },\n '&:focus': {\n outline: 'none'\n },\n // >>>>> Arrow\n [`${componentCls}-expand-icon`]: {\n height: fontSize * lineHeight,\n display: 'flex',\n alignItems: 'center',\n paddingInlineEnd: marginSM,\n // Arrow offset\n marginInlineStart: padding - paddingSM\n },\n [`${componentCls}-arrow`]: Object.assign(Object.assign({}, resetIcon()), {\n fontSize: fontSizeIcon,\n svg: {\n transition: `transform ${motionDurationSlow}`\n }\n }),\n // >>>>> Text\n [`${componentCls}-header-text`]: {\n marginInlineEnd: 'auto'\n }\n },\n [`${componentCls}-header-collapsible-only`]: {\n cursor: 'default',\n [`${componentCls}-header-text`]: {\n flex: 'none',\n cursor: 'pointer'\n }\n },\n [`${componentCls}-icon-collapsible-only`]: {\n cursor: 'default',\n [`${componentCls}-expand-icon`]: {\n cursor: 'pointer'\n }\n }\n },\n [`${componentCls}-content`]: {\n color: colorText,\n backgroundColor: collapseContentBg,\n borderTop: borderBase,\n [`& > ${componentCls}-content-box`]: {\n padding: `${padding}px ${collapseContentPaddingHorizontal}px`\n },\n [`&-hidden`]: {\n display: 'none'\n }\n },\n [`&-small`]: {\n [`> ${componentCls}-item`]: {\n [`> ${componentCls}-header`]: {\n padding: collapseHeaderPaddingSM,\n paddingInlineStart: paddingXS,\n [`> ${componentCls}-expand-icon`]: {\n // Arrow offset\n marginInlineStart: paddingSM - paddingXS\n }\n },\n [`> ${componentCls}-content > ${componentCls}-content-box`]: {\n padding: paddingSM\n }\n }\n },\n [`&-large`]: {\n [`> ${componentCls}-item`]: {\n fontSize: fontSizeLG,\n [`> ${componentCls}-header`]: {\n padding: collapseHeaderPaddingLG,\n paddingInlineStart: padding,\n [`> ${componentCls}-expand-icon`]: {\n height: fontSizeLG * lineHeight,\n // Arrow offset\n marginInlineStart: paddingLG - padding\n }\n },\n [`> ${componentCls}-content > ${componentCls}-content-box`]: {\n padding: paddingLG\n }\n }\n },\n [`${componentCls}-item:last-child`]: {\n [`> ${componentCls}-content`]: {\n borderRadius: `0 0 ${collapsePanelBorderRadius}px ${collapsePanelBorderRadius}px`\n }\n },\n [`& ${componentCls}-item-disabled > ${componentCls}-header`]: {\n [`\n &,\n & > .arrow\n `]: {\n color: colorTextDisabled,\n cursor: 'not-allowed'\n }\n },\n // ========================== Icon Position ==========================\n [`&${componentCls}-icon-position-end`]: {\n [`& > ${componentCls}-item`]: {\n [`> ${componentCls}-header`]: {\n [`${componentCls}-expand-icon`]: {\n order: 1,\n paddingInlineEnd: 0,\n paddingInlineStart: marginSM\n }\n }\n }\n }\n })\n };\n};\nconst genArrowStyle = token => {\n const {\n componentCls\n } = token;\n const fixedSelector = `> ${componentCls}-item > ${componentCls}-header ${componentCls}-arrow svg`;\n return {\n [`${componentCls}-rtl`]: {\n [fixedSelector]: {\n transform: `rotate(180deg)`\n }\n }\n };\n};\nconst genBorderlessStyle = token => {\n const {\n componentCls,\n collapseHeaderBg,\n paddingXXS,\n colorBorder\n } = token;\n return {\n [`${componentCls}-borderless`]: {\n backgroundColor: collapseHeaderBg,\n border: 0,\n [`> ${componentCls}-item`]: {\n borderBottom: `1px solid ${colorBorder}`\n },\n [`\n > ${componentCls}-item:last-child,\n > ${componentCls}-item:last-child ${componentCls}-header\n `]: {\n borderRadius: 0\n },\n [`> ${componentCls}-item:last-child`]: {\n borderBottom: 0\n },\n [`> ${componentCls}-item > ${componentCls}-content`]: {\n backgroundColor: 'transparent',\n borderTop: 0\n },\n [`> ${componentCls}-item > ${componentCls}-content > ${componentCls}-content-box`]: {\n paddingTop: paddingXXS\n }\n }\n };\n};\nconst genGhostStyle = token => {\n const {\n componentCls,\n paddingSM\n } = token;\n return {\n [`${componentCls}-ghost`]: {\n backgroundColor: 'transparent',\n border: 0,\n [`> ${componentCls}-item`]: {\n borderBottom: 0,\n [`> ${componentCls}-content`]: {\n backgroundColor: 'transparent',\n border: 0,\n [`> ${componentCls}-content-box`]: {\n paddingBlock: paddingSM\n }\n }\n }\n }\n };\n};\nexport default genComponentStyleHook('Collapse', token => {\n const collapseToken = mergeToken(token, {\n collapseContentBg: token.colorBgContainer,\n collapseHeaderBg: token.colorFillAlter,\n collapseHeaderPadding: `${token.paddingSM}px ${token.padding}px`,\n collapseHeaderPaddingSM: `${token.paddingXS}px ${token.paddingSM}px`,\n collapseHeaderPaddingLG: `${token.padding}px ${token.paddingLG}px`,\n collapsePanelBorderRadius: token.borderRadiusLG,\n collapseContentPaddingHorizontal: 16 // Fixed value\n });\n\n return [genBaseStyle(collapseToken), genBorderlessStyle(collapseToken), genGhostStyle(collapseToken), genArrowStyle(collapseToken), genCollapseMotion(collapseToken)];\n});","import RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport RcCollapse from 'rc-collapse';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport initCollapseMotion from '../_util/motion';\nimport { cloneElement } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport CollapsePanel from './CollapsePanel';\nimport useStyle from './style';\nconst Collapse = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n getPrefixCls,\n direction,\n collapse\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n style,\n bordered = true,\n ghost,\n size: customizeSize,\n expandIconPosition = 'start',\n children,\n expandIcon\n } = props;\n const mergedSize = useSize(ctx => {\n var _a;\n return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : ctx) !== null && _a !== void 0 ? _a : 'middle';\n });\n const prefixCls = getPrefixCls('collapse', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const [wrapSSR, hashId] = useStyle(prefixCls);\n // Warning if use legacy type `expandIconPosition`\n process.env.NODE_ENV !== \"production\" ? warning(expandIconPosition !== 'left' && expandIconPosition !== 'right', 'Collapse', '`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.') : void 0;\n // Align with logic position\n const mergedExpandIconPosition = React.useMemo(() => {\n if (expandIconPosition === 'left') {\n return 'start';\n }\n return expandIconPosition === 'right' ? 'end' : expandIconPosition;\n }, [expandIconPosition]);\n const renderExpandIcon = function () {\n let panelProps = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n const icon = expandIcon ? expandIcon(panelProps) : /*#__PURE__*/React.createElement(RightOutlined, {\n rotate: panelProps.isActive ? 90 : undefined\n });\n return cloneElement(icon, () => ({\n className: classNames(icon.props.className, `${prefixCls}-arrow`)\n }));\n };\n const collapseClassName = classNames(`${prefixCls}-icon-position-${mergedExpandIconPosition}`, {\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-ghost`]: !!ghost,\n [`${prefixCls}-${mergedSize}`]: mergedSize !== 'middle'\n }, collapse === null || collapse === void 0 ? void 0 : collapse.className, className, rootClassName, hashId);\n const openMotion = Object.assign(Object.assign({}, initCollapseMotion(rootPrefixCls)), {\n motionAppear: false,\n leavedClassName: `${prefixCls}-content-hidden`\n });\n const items = React.useMemo(() => children ? toArray(children).map((child, index) => {\n var _a, _b;\n if ((_a = child.props) === null || _a === void 0 ? void 0 : _a.disabled) {\n const key = (_b = child.key) !== null && _b !== void 0 ? _b : String(index);\n const {\n disabled,\n collapsible\n } = child.props;\n const childProps = Object.assign(Object.assign({}, omit(child.props, ['disabled'])), {\n key,\n collapsible: collapsible !== null && collapsible !== void 0 ? collapsible : disabled ? 'disabled' : undefined\n });\n return cloneElement(child, childProps);\n }\n return child;\n }) : null, [children]);\n return wrapSSR( /*#__PURE__*/React.createElement(RcCollapse, Object.assign({\n ref: ref,\n openMotion: openMotion\n }, omit(props, ['rootClassName']), {\n expandIcon: renderExpandIcon,\n prefixCls: prefixCls,\n className: collapseClassName,\n style: Object.assign(Object.assign({}, collapse === null || collapse === void 0 ? void 0 : collapse.style), style)\n }), items));\n});\nif (process.env.NODE_ENV !== 'production') {\n Collapse.displayName = 'Collapse';\n}\nexport default Object.assign(Collapse, {\n Panel: CollapsePanel\n});","'use client';\n\nimport Collapse from './Collapse';\nexport default Collapse;","import * as React from 'react';\nconst DisabledContext = /*#__PURE__*/React.createContext(false);\nexport const DisabledContextProvider = _ref => {\n let {\n children,\n disabled\n } = _ref;\n const originDisabled = React.useContext(DisabledContext);\n return /*#__PURE__*/React.createElement(DisabledContext.Provider, {\n value: disabled !== null && disabled !== void 0 ? disabled : originDisabled\n }, children);\n};\nexport default DisabledContext;","import * as React from 'react';\nconst SizeContext = /*#__PURE__*/React.createContext(undefined);\nexport const SizeContextProvider = _ref => {\n let {\n children,\n size\n } = _ref;\n const originSize = React.useContext(SizeContext);\n return /*#__PURE__*/React.createElement(SizeContext.Provider, {\n value: size || originSize\n }, children);\n};\nexport default SizeContext;","import * as React from 'react';\nexport const defaultIconPrefixCls = 'anticon';\nconst defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {\n if (customizePrefixCls) {\n return customizePrefixCls;\n }\n return suffixCls ? `ant-${suffixCls}` : 'ant';\n};\n// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will cause circular dependency.\nexport const ConfigContext = /*#__PURE__*/React.createContext({\n // We provide a default function for Context without provider\n getPrefixCls: defaultGetPrefixCls,\n iconPrefixCls: defaultIconPrefixCls\n});\nexport const {\n Consumer: ConfigConsumer\n} = ConfigContext;","import React, { useContext } from 'react';\nimport { ConfigContext } from '.';\nimport Empty from '../empty';\nconst DefaultRenderEmpty = props => {\n const {\n componentName\n } = props;\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const prefix = getPrefixCls('empty');\n switch (componentName) {\n case 'Table':\n case 'List':\n return /*#__PURE__*/React.createElement(Empty, {\n image: Empty.PRESENTED_IMAGE_SIMPLE\n });\n case 'Select':\n case 'TreeSelect':\n case 'Cascader':\n case 'Transfer':\n case 'Mentions':\n return /*#__PURE__*/React.createElement(Empty, {\n image: Empty.PRESENTED_IMAGE_SIMPLE,\n className: `${prefix}-small`\n });\n /* istanbul ignore next */\n default:\n // Should never hit if we take all the component into consider.\n return /*#__PURE__*/React.createElement(Empty, null);\n }\n};\nexport default DefaultRenderEmpty;","import React from 'react';\nimport SizeContext from '../SizeContext';\nconst useSize = customSize => {\n const size = React.useContext(SizeContext);\n const mergedSize = React.useMemo(() => {\n if (!customSize) {\n return size;\n }\n if (typeof customSize === 'string') {\n return customSize !== null && customSize !== void 0 ? customSize : size;\n }\n if (customSize instanceof Function) {\n return customSize(size);\n }\n return size;\n }, [customSize, size]);\n return mergedSize;\n};\nexport default useSize;","'use client';\n\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { changeConfirmLocale } from '../modal/locale';\nimport LocaleContext from './context';\nexport { default as useLocale } from './useLocale';\nexport const ANT_MARK = 'internalMark';\nconst LocaleProvider = props => {\n const {\n locale = {},\n children,\n _ANT_MARK__\n } = props;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(_ANT_MARK__ === ANT_MARK, 'LocaleProvider', '`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale') : void 0;\n }\n React.useEffect(() => {\n const clearLocale = changeConfirmLocale(locale && locale.Modal);\n return clearLocale;\n }, [locale]);\n const getMemoizedContextValue = React.useMemo(() => Object.assign(Object.assign({}, locale), {\n exist: true\n }), [locale]);\n return /*#__PURE__*/React.createElement(LocaleContext.Provider, {\n value: getMemoizedContextValue\n }, children);\n};\nif (process.env.NODE_ENV !== 'production') {\n LocaleProvider.displayName = 'LocaleProvider';\n}\nexport default LocaleProvider;","/* eslint-disable import/prefer-default-export, prefer-destructuring */\nimport { generate } from '@ant-design/colors';\nimport { TinyColor } from '@ctrl/tinycolor';\nimport canUseDom from \"rc-util/es/Dom/canUseDom\";\nimport { updateCSS } from \"rc-util/es/Dom/dynamicCSS\";\nimport warning from '../_util/warning';\nconst dynamicStyleMark = `-ant-${Date.now()}-${Math.random()}`;\nexport function getStyle(globalPrefixCls, theme) {\n const variables = {};\n const formatColor = (color, updater) => {\n let clone = color.clone();\n clone = (updater === null || updater === void 0 ? void 0 : updater(clone)) || clone;\n return clone.toRgbString();\n };\n const fillColor = (colorVal, type) => {\n const baseColor = new TinyColor(colorVal);\n const colorPalettes = generate(baseColor.toRgbString());\n variables[`${type}-color`] = formatColor(baseColor);\n variables[`${type}-color-disabled`] = colorPalettes[1];\n variables[`${type}-color-hover`] = colorPalettes[4];\n variables[`${type}-color-active`] = colorPalettes[6];\n variables[`${type}-color-outline`] = baseColor.clone().setAlpha(0.2).toRgbString();\n variables[`${type}-color-deprecated-bg`] = colorPalettes[0];\n variables[`${type}-color-deprecated-border`] = colorPalettes[2];\n };\n // ================ Primary Color ================\n if (theme.primaryColor) {\n fillColor(theme.primaryColor, 'primary');\n const primaryColor = new TinyColor(theme.primaryColor);\n const primaryColors = generate(primaryColor.toRgbString());\n // Legacy - We should use semantic naming standard\n primaryColors.forEach((color, index) => {\n variables[`primary-${index + 1}`] = color;\n });\n // Deprecated\n variables['primary-color-deprecated-l-35'] = formatColor(primaryColor, c => c.lighten(35));\n variables['primary-color-deprecated-l-20'] = formatColor(primaryColor, c => c.lighten(20));\n variables['primary-color-deprecated-t-20'] = formatColor(primaryColor, c => c.tint(20));\n variables['primary-color-deprecated-t-50'] = formatColor(primaryColor, c => c.tint(50));\n variables['primary-color-deprecated-f-12'] = formatColor(primaryColor, c => c.setAlpha(c.getAlpha() * 0.12));\n const primaryActiveColor = new TinyColor(primaryColors[0]);\n variables['primary-color-active-deprecated-f-30'] = formatColor(primaryActiveColor, c => c.setAlpha(c.getAlpha() * 0.3));\n variables['primary-color-active-deprecated-d-02'] = formatColor(primaryActiveColor, c => c.darken(2));\n }\n // ================ Success Color ================\n if (theme.successColor) {\n fillColor(theme.successColor, 'success');\n }\n // ================ Warning Color ================\n if (theme.warningColor) {\n fillColor(theme.warningColor, 'warning');\n }\n // ================= Error Color =================\n if (theme.errorColor) {\n fillColor(theme.errorColor, 'error');\n }\n // ================= Info Color ==================\n if (theme.infoColor) {\n fillColor(theme.infoColor, 'info');\n }\n // Convert to css variables\n const cssList = Object.keys(variables).map(key => `--${globalPrefixCls}-${key}: ${variables[key]};`);\n return `\n :root {\n ${cssList.join('\\n')}\n }\n `.trim();\n}\nexport function registerTheme(globalPrefixCls, theme) {\n const style = getStyle(globalPrefixCls, theme);\n if (canUseDom()) {\n updateCSS(style, `${dynamicStyleMark}-dynamic-theme`);\n } else {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ConfigProvider', 'SSR do not support dynamic theme with css variables.') : void 0;\n }\n}","import { useContext } from 'react';\nimport DisabledContext from '../DisabledContext';\nimport SizeContext from '../SizeContext';\nfunction useConfig() {\n const componentDisabled = useContext(DisabledContext);\n const componentSize = useContext(SizeContext);\n return {\n componentDisabled,\n componentSize\n };\n}\nexport default useConfig;","import useMemo from \"rc-util/es/hooks/useMemo\";\nimport isEqual from \"rc-util/es/isEqual\";\nimport { defaultConfig } from '../../theme/internal';\nexport default function useTheme(theme, parentTheme) {\n const themeConfig = theme || {};\n const parentThemeConfig = themeConfig.inherit === false || !parentTheme ? defaultConfig : parentTheme;\n return useMemo(() => {\n if (!theme) {\n return parentTheme;\n }\n // Override\n const mergedComponents = Object.assign({}, parentThemeConfig.components);\n Object.keys(theme.components || {}).forEach(componentName => {\n mergedComponents[componentName] = Object.assign(Object.assign({}, mergedComponents[componentName]), theme.components[componentName]);\n });\n // Base token\n return Object.assign(Object.assign(Object.assign({}, parentThemeConfig), themeConfig), {\n token: Object.assign(Object.assign({}, parentThemeConfig.token), themeConfig.token),\n components: mergedComponents\n });\n }, [themeConfig, parentThemeConfig], (prev, next) => prev.some((prevTheme, index) => {\n const nextTheme = next[index];\n return !isEqual(prevTheme, nextTheme, true);\n }));\n}","import { Provider as MotionProvider } from 'rc-motion';\nimport * as React from 'react';\nimport { useToken } from '../theme/internal';\nexport default function MotionWrapper(props) {\n const {\n children\n } = props;\n const [, token] = useToken();\n const {\n motion\n } = token;\n const needWrapMotionProviderRef = React.useRef(false);\n needWrapMotionProviderRef.current = needWrapMotionProviderRef.current || motion === false;\n if (needWrapMotionProviderRef.current) {\n return /*#__PURE__*/React.createElement(MotionProvider, {\n motion: motion\n }, children);\n }\n return children;\n}","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { createTheme } from '@ant-design/cssinjs';\nimport IconContext from \"@ant-design/icons/es/components/Context\";\nimport useMemo from \"rc-util/es/hooks/useMemo\";\nimport { merge } from \"rc-util/es/utils/set\";\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport ValidateMessagesContext from '../form/validateMessagesContext';\nimport LocaleProvider, { ANT_MARK } from '../locale';\nimport LocaleContext from '../locale/context';\nimport defaultLocale from '../locale/en_US';\nimport { DesignTokenContext } from '../theme/internal';\nimport defaultSeedToken from '../theme/themes/seed';\nimport { ConfigConsumer, ConfigContext, defaultIconPrefixCls } from './context';\nimport { registerTheme } from './cssVariables';\nimport { DisabledContextProvider } from './DisabledContext';\nimport useConfig from './hooks/useConfig';\nimport useTheme from './hooks/useTheme';\nimport MotionWrapper from './MotionWrapper';\nimport SizeContext, { SizeContextProvider } from './SizeContext';\nimport useStyle from './style';\nimport { defaultTheme } from '../theme/context';\n/**\n * Since too many feedback using static method like `Modal.confirm` not getting theme, we record the\n * theme register info here to help developer get warning info.\n */\nlet existThemeConfig = false;\nexport const warnContext = process.env.NODE_ENV !== 'production' ? componentName => {\n process.env.NODE_ENV !== \"production\" ? warning(!existThemeConfig, componentName, `Static function can not consume context like dynamic theme. Please use 'App' component instead.`) : void 0;\n} : /* istanbul ignore next */\nnull;\nexport { ConfigConsumer, ConfigContext, defaultIconPrefixCls };\nexport const configConsumerProps = ['getTargetContainer', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader'];\n// These props is used by `useContext` directly in sub component\nconst PASSED_PROPS = ['getTargetContainer', 'getPopupContainer', 'renderEmpty', 'pageHeader', 'input', 'pagination', 'form', 'select', 'button'];\nexport const defaultPrefixCls = 'ant';\nlet globalPrefixCls;\nlet globalIconPrefixCls;\nlet globalTheme;\nfunction getGlobalPrefixCls() {\n return globalPrefixCls || defaultPrefixCls;\n}\nfunction getGlobalIconPrefixCls() {\n return globalIconPrefixCls || defaultIconPrefixCls;\n}\nfunction isLegacyTheme(theme) {\n return Object.keys(theme).some(key => key.endsWith('Color'));\n}\nconst setGlobalConfig = _ref => {\n let {\n prefixCls,\n iconPrefixCls,\n theme\n } = _ref;\n if (prefixCls !== undefined) {\n globalPrefixCls = prefixCls;\n }\n if (iconPrefixCls !== undefined) {\n globalIconPrefixCls = iconPrefixCls;\n }\n if (theme) {\n if (isLegacyTheme(theme)) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ConfigProvider', '`config` of css variable theme is not work in v5. Please use new `theme` config instead.') : void 0;\n registerTheme(getGlobalPrefixCls(), theme);\n } else {\n globalTheme = theme;\n }\n }\n};\nexport const globalConfig = () => ({\n getPrefixCls: (suffixCls, customizePrefixCls) => {\n if (customizePrefixCls) {\n return customizePrefixCls;\n }\n return suffixCls ? `${getGlobalPrefixCls()}-${suffixCls}` : getGlobalPrefixCls();\n },\n getIconPrefixCls: getGlobalIconPrefixCls,\n getRootPrefixCls: () => {\n // If Global prefixCls provided, use this\n if (globalPrefixCls) {\n return globalPrefixCls;\n }\n // Fallback to default prefixCls\n return getGlobalPrefixCls();\n },\n getTheme: () => globalTheme\n});\nconst ProviderChildren = props => {\n const {\n children,\n csp: customCsp,\n autoInsertSpaceInButton,\n alert,\n anchor,\n form,\n locale,\n componentSize,\n direction,\n space,\n virtual,\n dropdownMatchSelectWidth,\n popupMatchSelectWidth,\n popupOverflow,\n legacyLocale,\n parentContext,\n iconPrefixCls: customIconPrefixCls,\n theme,\n componentDisabled,\n segmented,\n statistic,\n spin,\n calendar,\n carousel,\n cascader,\n collapse,\n typography,\n checkbox,\n descriptions,\n divider,\n drawer,\n skeleton,\n steps,\n image,\n layout,\n list,\n mentions,\n modal,\n progress,\n result,\n slider,\n breadcrumb,\n menu,\n pagination,\n input,\n empty,\n badge,\n radio,\n rate,\n switch: SWITCH,\n transfer,\n avatar,\n message,\n tag,\n table,\n card,\n tabs,\n timeline,\n timePicker,\n upload,\n notification,\n tree,\n colorPicker,\n datePicker,\n wave\n } = props;\n // =================================== Warning ===================================\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(dropdownMatchSelectWidth === undefined, 'ConfigProvider', '`dropdownMatchSelectWidth` is deprecated. Please use `popupMatchSelectWidth` instead.') : void 0;\n }\n // =================================== Context ===================================\n const getPrefixCls = React.useCallback((suffixCls, customizePrefixCls) => {\n const {\n prefixCls\n } = props;\n if (customizePrefixCls) {\n return customizePrefixCls;\n }\n const mergedPrefixCls = prefixCls || parentContext.getPrefixCls('');\n return suffixCls ? `${mergedPrefixCls}-${suffixCls}` : mergedPrefixCls;\n }, [parentContext.getPrefixCls, props.prefixCls]);\n const iconPrefixCls = customIconPrefixCls || parentContext.iconPrefixCls || defaultIconPrefixCls;\n const shouldWrapSSR = iconPrefixCls !== parentContext.iconPrefixCls;\n const csp = customCsp || parentContext.csp;\n const wrapSSR = useStyle(iconPrefixCls, csp);\n const mergedTheme = useTheme(theme, parentContext.theme);\n if (process.env.NODE_ENV !== 'production') {\n existThemeConfig = existThemeConfig || !!mergedTheme;\n }\n const baseConfig = {\n csp,\n autoInsertSpaceInButton,\n alert,\n anchor,\n locale: locale || legacyLocale,\n direction,\n space,\n virtual,\n popupMatchSelectWidth: popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth,\n popupOverflow,\n getPrefixCls,\n iconPrefixCls,\n theme: mergedTheme,\n segmented,\n statistic,\n spin,\n calendar,\n carousel,\n cascader,\n collapse,\n typography,\n checkbox,\n descriptions,\n divider,\n drawer,\n skeleton,\n steps,\n image,\n input,\n layout,\n list,\n mentions,\n modal,\n progress,\n result,\n slider,\n breadcrumb,\n menu,\n pagination,\n empty,\n badge,\n radio,\n rate,\n switch: SWITCH,\n transfer,\n avatar,\n message,\n tag,\n table,\n card,\n tabs,\n timeline,\n timePicker,\n upload,\n notification,\n tree,\n colorPicker,\n datePicker,\n wave\n };\n const config = Object.assign({}, parentContext);\n Object.keys(baseConfig).forEach(key => {\n if (baseConfig[key] !== undefined) {\n config[key] = baseConfig[key];\n }\n });\n // Pass the props used by `useContext` directly with child component.\n // These props should merged into `config`.\n PASSED_PROPS.forEach(propName => {\n const propValue = props[propName];\n if (propValue) {\n config[propName] = propValue;\n }\n });\n // https://github.com/ant-design/ant-design/issues/27617\n const memoedConfig = useMemo(() => config, config, (prevConfig, currentConfig) => {\n const prevKeys = Object.keys(prevConfig);\n const currentKeys = Object.keys(currentConfig);\n return prevKeys.length !== currentKeys.length || prevKeys.some(key => prevConfig[key] !== currentConfig[key]);\n });\n const memoIconContextValue = React.useMemo(() => ({\n prefixCls: iconPrefixCls,\n csp\n }), [iconPrefixCls, csp]);\n let childNode = shouldWrapSSR ? wrapSSR(children) : children;\n const validateMessages = React.useMemo(() => {\n var _a, _b, _c, _d;\n return merge(((_a = defaultLocale.Form) === null || _a === void 0 ? void 0 : _a.defaultValidateMessages) || {}, ((_c = (_b = memoedConfig.locale) === null || _b === void 0 ? void 0 : _b.Form) === null || _c === void 0 ? void 0 : _c.defaultValidateMessages) || {}, ((_d = memoedConfig.form) === null || _d === void 0 ? void 0 : _d.validateMessages) || {}, (form === null || form === void 0 ? void 0 : form.validateMessages) || {});\n }, [memoedConfig, form === null || form === void 0 ? void 0 : form.validateMessages]);\n if (Object.keys(validateMessages).length > 0) {\n childNode = /*#__PURE__*/React.createElement(ValidateMessagesContext.Provider, {\n value: validateMessages\n }, children);\n }\n if (locale) {\n childNode = /*#__PURE__*/React.createElement(LocaleProvider, {\n locale: locale,\n _ANT_MARK__: ANT_MARK\n }, childNode);\n }\n if (iconPrefixCls || csp) {\n childNode = /*#__PURE__*/React.createElement(IconContext.Provider, {\n value: memoIconContextValue\n }, childNode);\n }\n if (componentSize) {\n childNode = /*#__PURE__*/React.createElement(SizeContextProvider, {\n size: componentSize\n }, childNode);\n }\n // =================================== Motion ===================================\n childNode = /*#__PURE__*/React.createElement(MotionWrapper, null, childNode);\n // ================================ Dynamic theme ================================\n const memoTheme = React.useMemo(() => {\n const _a = mergedTheme || {},\n {\n algorithm,\n token,\n components\n } = _a,\n rest = __rest(_a, [\"algorithm\", \"token\", \"components\"]);\n const themeObj = algorithm && (!Array.isArray(algorithm) || algorithm.length > 0) ? createTheme(algorithm) : defaultTheme;\n const parsedComponents = {};\n Object.entries(components || {}).forEach(_ref2 => {\n let [componentName, componentToken] = _ref2;\n const parsedToken = Object.assign({}, componentToken);\n if ('algorithm' in parsedToken) {\n if (parsedToken.algorithm === true) {\n parsedToken.theme = themeObj;\n } else if (Array.isArray(parsedToken.algorithm) || typeof parsedToken.algorithm === 'function') {\n parsedToken.theme = createTheme(parsedToken.algorithm);\n }\n delete parsedToken.algorithm;\n }\n parsedComponents[componentName] = parsedToken;\n });\n return Object.assign(Object.assign({}, rest), {\n theme: themeObj,\n token: Object.assign(Object.assign({}, defaultSeedToken), token),\n components: parsedComponents\n });\n }, [mergedTheme]);\n if (theme) {\n childNode = /*#__PURE__*/React.createElement(DesignTokenContext.Provider, {\n value: memoTheme\n }, childNode);\n }\n // =================================== Render ===================================\n if (componentDisabled !== undefined) {\n childNode = /*#__PURE__*/React.createElement(DisabledContextProvider, {\n disabled: componentDisabled\n }, childNode);\n }\n return /*#__PURE__*/React.createElement(ConfigContext.Provider, {\n value: memoedConfig\n }, childNode);\n};\nconst ConfigProvider = props => {\n const context = React.useContext(ConfigContext);\n const antLocale = React.useContext(LocaleContext);\n return /*#__PURE__*/React.createElement(ProviderChildren, Object.assign({\n parentContext: context,\n legacyLocale: antLocale\n }, props));\n};\nConfigProvider.ConfigContext = ConfigContext;\nConfigProvider.SizeContext = SizeContext;\nConfigProvider.config = setGlobalConfig;\nConfigProvider.useConfig = useConfig;\nObject.defineProperty(ConfigProvider, 'SizeContext', {\n get: () => {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'ConfigProvider', 'ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead.') : void 0;\n return SizeContext;\n }\n});\nif (process.env.NODE_ENV !== 'production') {\n ConfigProvider.displayName = 'ConfigProvider';\n}\nexport default ConfigProvider;","var locale = {\n locale: 'en_US',\n today: 'Today',\n now: 'Now',\n backToToday: 'Back to today',\n ok: 'OK',\n clear: 'Clear',\n month: 'Month',\n year: 'Year',\n timeSelect: 'select time',\n dateSelect: 'select date',\n weekSelect: 'Choose a week',\n monthSelect: 'Choose a month',\n yearSelect: 'Choose a year',\n decadeSelect: 'Choose a decade',\n yearFormat: 'YYYY',\n dateFormat: 'M/D/YYYY',\n dayFormat: 'D',\n dateTimeFormat: 'M/D/YYYY HH:mm:ss',\n monthBeforeYear: true,\n previousMonth: 'Previous month (PageUp)',\n nextMonth: 'Next month (PageDown)',\n previousYear: 'Last year (Control + left)',\n nextYear: 'Next year (Control + right)',\n previousDecade: 'Last decade',\n nextDecade: 'Next decade',\n previousCentury: 'Last century',\n nextCentury: 'Next century'\n};\nexport default locale;","import CalendarLocale from \"rc-picker/es/locale/en_US\";\nimport TimePickerLocale from '../../time-picker/locale/en_US';\n// Merge into a locale object\nconst locale = {\n lang: Object.assign({\n placeholder: 'Select date',\n yearPlaceholder: 'Select year',\n quarterPlaceholder: 'Select quarter',\n monthPlaceholder: 'Select month',\n weekPlaceholder: 'Select week',\n rangePlaceholder: ['Start date', 'End date'],\n rangeYearPlaceholder: ['Start year', 'End year'],\n rangeQuarterPlaceholder: ['Start quarter', 'End quarter'],\n rangeMonthPlaceholder: ['Start month', 'End month'],\n rangeWeekPlaceholder: ['Start week', 'End week']\n }, CalendarLocale),\n timePickerLocale: Object.assign({}, TimePickerLocale)\n};\n// All settings at:\n// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json\nexport default locale;","import { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Shared ==============================\nconst genSharedDividerStyle = token => {\n const {\n componentCls,\n sizePaddingEdgeHorizontal,\n colorSplit,\n lineWidth\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n borderBlockStart: `${lineWidth}px solid ${colorSplit}`,\n // vertical\n '&-vertical': {\n position: 'relative',\n top: '-0.06em',\n display: 'inline-block',\n height: '0.9em',\n margin: `0 ${token.dividerVerticalGutterMargin}px`,\n verticalAlign: 'middle',\n borderTop: 0,\n borderInlineStart: `${lineWidth}px solid ${colorSplit}`\n },\n '&-horizontal': {\n display: 'flex',\n clear: 'both',\n width: '100%',\n minWidth: '100%',\n margin: `${token.dividerHorizontalGutterMargin}px 0`\n },\n [`&-horizontal${componentCls}-with-text`]: {\n display: 'flex',\n alignItems: 'center',\n margin: `${token.dividerHorizontalWithTextGutterMargin}px 0`,\n color: token.colorTextHeading,\n fontWeight: 500,\n fontSize: token.fontSizeLG,\n whiteSpace: 'nowrap',\n textAlign: 'center',\n borderBlockStart: `0 ${colorSplit}`,\n '&::before, &::after': {\n position: 'relative',\n width: '50%',\n borderBlockStart: `${lineWidth}px solid transparent`,\n // Chrome not accept `inherit` in `border-top`\n borderBlockStartColor: 'inherit',\n borderBlockEnd: 0,\n transform: 'translateY(50%)',\n content: \"''\"\n }\n },\n [`&-horizontal${componentCls}-with-text-left`]: {\n '&::before': {\n width: '5%'\n },\n '&::after': {\n width: '95%'\n }\n },\n [`&-horizontal${componentCls}-with-text-right`]: {\n '&::before': {\n width: '95%'\n },\n '&::after': {\n width: '5%'\n }\n },\n [`${componentCls}-inner-text`]: {\n display: 'inline-block',\n padding: '0 1em'\n },\n '&-dashed': {\n background: 'none',\n borderColor: colorSplit,\n borderStyle: 'dashed',\n borderWidth: `${lineWidth}px 0 0`\n },\n [`&-horizontal${componentCls}-with-text${componentCls}-dashed`]: {\n '&::before, &::after': {\n borderStyle: 'dashed none none'\n }\n },\n [`&-vertical${componentCls}-dashed`]: {\n borderInlineStartWidth: lineWidth,\n borderInlineEnd: 0,\n borderBlockStart: 0,\n borderBlockEnd: 0\n },\n [`&-plain${componentCls}-with-text`]: {\n color: token.colorText,\n fontWeight: 'normal',\n fontSize: token.fontSize\n },\n [`&-horizontal${componentCls}-with-text-left${componentCls}-no-default-orientation-margin-left`]: {\n '&::before': {\n width: 0\n },\n '&::after': {\n width: '100%'\n },\n [`${componentCls}-inner-text`]: {\n paddingInlineStart: sizePaddingEdgeHorizontal\n }\n },\n [`&-horizontal${componentCls}-with-text-right${componentCls}-no-default-orientation-margin-right`]: {\n '&::before': {\n width: '100%'\n },\n '&::after': {\n width: 0\n },\n [`${componentCls}-inner-text`]: {\n paddingInlineEnd: sizePaddingEdgeHorizontal\n }\n }\n })\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Divider', token => {\n const dividerToken = mergeToken(token, {\n dividerVerticalGutterMargin: token.marginXS,\n dividerHorizontalWithTextGutterMargin: token.margin,\n dividerHorizontalGutterMargin: token.marginLG\n });\n return [genSharedDividerStyle(dividerToken)];\n}, {\n sizePaddingEdgeHorizontal: 0\n});","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst Divider = props => {\n const {\n getPrefixCls,\n direction,\n divider\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n type = 'horizontal',\n orientation = 'center',\n orientationMargin,\n className,\n rootClassName,\n children,\n dashed,\n plain,\n style\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"type\", \"orientation\", \"orientationMargin\", \"className\", \"rootClassName\", \"children\", \"dashed\", \"plain\", \"style\"]);\n const prefixCls = getPrefixCls('divider', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const orientationPrefix = orientation.length > 0 ? `-${orientation}` : orientation;\n const hasChildren = !!children;\n const hasCustomMarginLeft = orientation === 'left' && orientationMargin != null;\n const hasCustomMarginRight = orientation === 'right' && orientationMargin != null;\n const classString = classNames(prefixCls, divider === null || divider === void 0 ? void 0 : divider.className, hashId, `${prefixCls}-${type}`, {\n [`${prefixCls}-with-text`]: hasChildren,\n [`${prefixCls}-with-text${orientationPrefix}`]: hasChildren,\n [`${prefixCls}-dashed`]: !!dashed,\n [`${prefixCls}-plain`]: !!plain,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-no-default-orientation-margin-left`]: hasCustomMarginLeft,\n [`${prefixCls}-no-default-orientation-margin-right`]: hasCustomMarginRight\n }, className, rootClassName);\n const memoizedOrientationMargin = React.useMemo(() => {\n if (typeof orientationMargin === 'number') {\n return orientationMargin;\n }\n if (/^\\d+$/.test(orientationMargin)) {\n return Number(orientationMargin);\n }\n return orientationMargin;\n }, [orientationMargin]);\n const innerStyle = Object.assign(Object.assign({}, hasCustomMarginLeft && {\n marginLeft: memoizedOrientationMargin\n }), hasCustomMarginRight && {\n marginRight: memoizedOrientationMargin\n });\n // Warning children not work in vertical mode\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!children || type !== 'vertical', 'Divider', '`children` not working in `vertical` mode.') : void 0;\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: classString,\n style: Object.assign(Object.assign({}, divider === null || divider === void 0 ? void 0 : divider.style), style)\n }, restProps, {\n role: \"separator\"\n }), children && type !== 'vertical' && /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-inner-text`,\n style: innerStyle\n }, children)));\n};\nif (process.env.NODE_ENV !== 'production') {\n Divider.displayName = 'Divider';\n}\nexport default Divider;","import RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport RcDropdown from 'rc-dropdown';\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport genPurePanel from '../_util/PurePanel';\nimport getPlacements from '../_util/placements';\nimport { cloneElement } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport Menu from '../menu';\nimport { OverrideProvider } from '../menu/OverrideContext';\nimport theme from '../theme';\nimport useStyle from './style';\nconst Placements = ['topLeft', 'topCenter', 'topRight', 'bottomLeft', 'bottomCenter', 'bottomRight', 'top', 'bottom'];\nconst Dropdown = props => {\n const {\n menu,\n arrow,\n prefixCls: customizePrefixCls,\n children,\n trigger,\n disabled,\n dropdownRender,\n getPopupContainer,\n overlayClassName,\n rootClassName,\n open,\n onOpenChange,\n // Deprecated\n visible,\n onVisibleChange,\n mouseEnterDelay = 0.15,\n mouseLeaveDelay = 0.1,\n autoAdjustOverflow = true,\n placement = '',\n overlay,\n transitionName\n } = props;\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n // Warning for deprecated usage\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['onVisibleChange', 'onOpenChange']].forEach(_ref => {\n let [deprecatedName, newName] = _ref;\n process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Dropdown', `\\`${deprecatedName}\\` is deprecated which will be removed in next major version, please use \\`${newName}\\` instead.`) : void 0;\n });\n process.env.NODE_ENV !== \"production\" ? warning(!('overlay' in props), 'Dropdown', '`overlay` is deprecated. Please use `menu` instead.') : void 0;\n }\n const memoTransitionName = React.useMemo(() => {\n const rootPrefixCls = getPrefixCls();\n if (transitionName !== undefined) {\n return transitionName;\n }\n if (placement.includes('top')) {\n return `${rootPrefixCls}-slide-down`;\n }\n return `${rootPrefixCls}-slide-up`;\n }, [getPrefixCls, placement, transitionName]);\n const memoPlacement = React.useMemo(() => {\n if (!placement) {\n return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';\n }\n if (placement.includes('Center')) {\n const newPlacement = placement.slice(0, placement.indexOf('Center'));\n process.env.NODE_ENV !== \"production\" ? warning(!placement.includes('Center'), 'Dropdown', `You are using '${placement}' placement in Dropdown, which is deprecated. Try to use '${newPlacement}' instead.`) : void 0;\n return newPlacement;\n }\n return placement;\n }, [placement, direction]);\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['onVisibleChange', 'onOpenChange']].forEach(_ref2 => {\n let [deprecatedName, newName] = _ref2;\n process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Dropdown', `\\`${deprecatedName}\\` is deprecated, please use \\`${newName}\\` instead.`) : void 0;\n });\n }\n const prefixCls = getPrefixCls('dropdown', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const {\n token\n } = theme.useToken();\n const child = React.Children.only(children);\n const dropdownTrigger = cloneElement(child, {\n className: classNames(`${prefixCls}-trigger`, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, child.props.className),\n disabled\n });\n const triggerActions = disabled ? [] : trigger;\n let alignPoint;\n if (triggerActions && triggerActions.includes('contextMenu')) {\n alignPoint = true;\n }\n // =========================== Open ============================\n const [mergedOpen, setOpen] = useMergedState(false, {\n value: open !== null && open !== void 0 ? open : visible\n });\n const onInnerOpenChange = useEvent(nextOpen => {\n onOpenChange === null || onOpenChange === void 0 ? void 0 : onOpenChange(nextOpen);\n onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(nextOpen);\n setOpen(nextOpen);\n });\n // =========================== Overlay ============================\n const overlayClassNameCustomized = classNames(overlayClassName, rootClassName, hashId, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n });\n const builtinPlacements = getPlacements({\n arrowPointAtCenter: typeof arrow === 'object' && arrow.pointAtCenter,\n autoAdjustOverflow,\n offset: token.marginXXS,\n arrowWidth: arrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius\n });\n const onMenuClick = React.useCallback(() => {\n setOpen(false);\n }, []);\n const renderOverlay = () => {\n // rc-dropdown already can process the function of overlay, but we have check logic here.\n // So we need render the element to check and pass back to rc-dropdown.\n let overlayNode;\n if (menu === null || menu === void 0 ? void 0 : menu.items) {\n overlayNode = /*#__PURE__*/React.createElement(Menu, Object.assign({}, menu));\n } else if (typeof overlay === 'function') {\n overlayNode = overlay();\n } else {\n overlayNode = overlay;\n }\n if (dropdownRender) {\n overlayNode = dropdownRender(overlayNode);\n }\n overlayNode = React.Children.only(typeof overlayNode === 'string' ? /*#__PURE__*/React.createElement(\"span\", null, overlayNode) : overlayNode);\n return /*#__PURE__*/React.createElement(OverrideProvider, {\n prefixCls: `${prefixCls}-menu`,\n expandIcon: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-menu-submenu-arrow`\n }, /*#__PURE__*/React.createElement(RightOutlined, {\n className: `${prefixCls}-menu-submenu-arrow-icon`\n })),\n mode: \"vertical\",\n selectable: false,\n onClick: onMenuClick,\n validator: _ref3 => {\n let {\n mode\n } = _ref3;\n // Warning if use other mode\n process.env.NODE_ENV !== \"production\" ? warning(!mode || mode === 'vertical', 'Dropdown', `mode=\"${mode}\" is not supported for Dropdown's Menu.`) : void 0;\n }\n }, overlayNode);\n };\n // ============================ Render ============================\n return wrapSSR( /*#__PURE__*/React.createElement(RcDropdown, Object.assign({\n alignPoint: alignPoint\n }, omit(props, ['rootClassName']), {\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n visible: mergedOpen,\n builtinPlacements: builtinPlacements,\n arrow: !!arrow,\n overlayClassName: overlayClassNameCustomized,\n prefixCls: prefixCls,\n getPopupContainer: getPopupContainer || getContextPopupContainer,\n transitionName: memoTransitionName,\n trigger: triggerActions,\n overlay: renderOverlay,\n placement: memoPlacement,\n onVisibleChange: onInnerOpenChange\n }), dropdownTrigger));\n};\nfunction postPureProps(props) {\n return Object.assign(Object.assign({}, props), {\n align: {\n overflow: {\n adjustX: false,\n adjustY: false\n }\n }\n });\n}\n// We don't care debug panel\nconst PurePanel = genPurePanel(Dropdown, 'dropdown', prefixCls => prefixCls, postPureProps);\n/* istanbul ignore next */\nconst WrapPurePanel = props => /*#__PURE__*/React.createElement(PurePanel, Object.assign({}, props), /*#__PURE__*/React.createElement(\"span\", null));\nDropdown._InternalPanelDoNotUseOrYouWillBeFired = WrapPurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Dropdown.displayName = 'Dropdown';\n}\nexport default Dropdown;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport Button from '../button';\nimport { ConfigContext } from '../config-provider';\nimport Space from '../space';\nimport { useCompactItemContext } from '../space/Compact';\nimport Dropdown from './dropdown';\nimport useStyle from './style';\nconst DropdownButton = props => {\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n type = 'default',\n danger,\n disabled,\n loading,\n onClick,\n htmlType,\n children,\n className,\n menu,\n arrow,\n autoFocus,\n overlay,\n trigger,\n align,\n open,\n onOpenChange,\n placement,\n getPopupContainer,\n href,\n icon = /*#__PURE__*/React.createElement(EllipsisOutlined, null),\n title,\n buttonsRender = buttons => buttons,\n mouseEnterDelay,\n mouseLeaveDelay,\n overlayClassName,\n overlayStyle,\n destroyPopupOnHide,\n dropdownRender\n } = props,\n restProps = __rest(props, [\"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\"]);\n const prefixCls = getPrefixCls('dropdown', customizePrefixCls);\n const buttonPrefixCls = `${prefixCls}-button`;\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const dropdownProps = {\n menu,\n arrow,\n autoFocus,\n align,\n disabled,\n trigger: disabled ? [] : trigger,\n onOpenChange,\n getPopupContainer: getPopupContainer || getContextPopupContainer,\n mouseEnterDelay,\n mouseLeaveDelay,\n overlayClassName,\n overlayStyle,\n destroyPopupOnHide,\n dropdownRender\n };\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n const classes = classNames(buttonPrefixCls, compactItemClassnames, className, hashId);\n if ('overlay' in props) {\n dropdownProps.overlay = overlay;\n }\n if ('open' in props) {\n dropdownProps.open = open;\n }\n if ('placement' in props) {\n dropdownProps.placement = placement;\n } else {\n dropdownProps.placement = direction === 'rtl' ? 'bottomLeft' : 'bottomRight';\n }\n const leftButton = /*#__PURE__*/React.createElement(Button, {\n type: type,\n danger: danger,\n disabled: disabled,\n loading: loading,\n onClick: onClick,\n htmlType: htmlType,\n href: href,\n title: title\n }, children);\n const rightButton = /*#__PURE__*/React.createElement(Button, {\n type: type,\n danger: danger,\n icon: icon\n });\n const [leftButtonToRender, rightButtonToRender] = buttonsRender([leftButton, rightButton]);\n return wrapSSR( /*#__PURE__*/React.createElement(Space.Compact, Object.assign({\n className: classes,\n size: compactSize,\n block: true\n }, restProps), leftButtonToRender, /*#__PURE__*/React.createElement(Dropdown, Object.assign({}, dropdownProps), rightButtonToRender)));\n};\nDropdownButton.__ANT_BUTTON = true;\nexport default DropdownButton;","'use client';\n\nimport InternalDropdown from './dropdown';\nimport DropdownButton from './dropdown-button';\nconst Dropdown = InternalDropdown;\nDropdown.Button = DropdownButton;\nexport default Dropdown;","const genStatusStyle = token => {\n const {\n componentCls,\n menuCls,\n colorError,\n colorTextLightSolid\n } = token;\n const itemCls = `${menuCls}-item`;\n return {\n [`${componentCls}, ${componentCls}-menu-submenu`]: {\n [`${menuCls} ${itemCls}`]: {\n [`&${itemCls}-danger:not(${itemCls}-disabled)`]: {\n color: colorError,\n '&:hover': {\n color: colorTextLightSolid,\n backgroundColor: colorError\n }\n }\n }\n }\n };\n};\nexport default genStatusStyle;","import { genFocusStyle, resetComponent } from '../../style';\nimport { initMoveMotion, initSlideMotion, initZoomMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nimport getArrowStyle, { getArrowOffset } from '../../style/placementArrow';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genStatusStyle from './status';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n menuCls,\n zIndexPopup,\n dropdownArrowDistance,\n sizePopupArrow,\n antCls,\n iconCls,\n motionDurationMid,\n dropdownPaddingVertical,\n fontSize,\n dropdownEdgeChildPadding,\n colorTextDisabled,\n fontSizeIcon,\n controlPaddingHorizontal,\n colorBgElevated\n } = token;\n return [{\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n top: -9999,\n left: {\n _skip_check_: true,\n value: -9999\n },\n zIndex: zIndexPopup,\n display: 'block',\n // A placeholder out of dropdown visible range to avoid close when user moving\n '&::before': {\n position: 'absolute',\n insetBlock: -dropdownArrowDistance + sizePopupArrow / 2,\n // insetInlineStart: -7, // FIXME: Seems not work for hidden element\n zIndex: -9999,\n opacity: 0.0001,\n content: '\"\"'\n },\n [`&-trigger${antCls}-btn`]: {\n [`& > ${iconCls}-down, & > ${antCls}-btn-icon > ${iconCls}-down`]: {\n fontSize: fontSizeIcon\n }\n },\n [`${componentCls}-wrap`]: {\n position: 'relative',\n [`${antCls}-btn > ${iconCls}-down`]: {\n fontSize: fontSizeIcon\n },\n [`${iconCls}-down::before`]: {\n transition: `transform ${motionDurationMid}`\n }\n },\n [`${componentCls}-wrap-open`]: {\n [`${iconCls}-down::before`]: {\n transform: `rotate(180deg)`\n }\n },\n [`\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n `]: {\n display: 'none'\n },\n // =============================================================\n // == Motion ==\n // =============================================================\n // When position is not enough for dropdown, the placement will revert.\n // We will handle this with revert motion name.\n [`&${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottomLeft,\n &${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottomLeft,\n &${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottom,\n &${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottom,\n &${antCls}-slide-down-enter${antCls}-slide-down-enter-active${componentCls}-placement-bottomRight,\n &${antCls}-slide-down-appear${antCls}-slide-down-appear-active${componentCls}-placement-bottomRight`]: {\n animationName: slideUpIn\n },\n [`&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-topLeft,\n &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-topLeft,\n &${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-top,\n &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-top,\n &${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-placement-topRight,\n &${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-placement-topRight`]: {\n animationName: slideDownIn\n },\n [`&${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottomLeft,\n &${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottom,\n &${antCls}-slide-down-leave${antCls}-slide-down-leave-active${componentCls}-placement-bottomRight`]: {\n animationName: slideUpOut\n },\n [`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-topLeft,\n &${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-top,\n &${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-placement-topRight`]: {\n animationName: slideDownOut\n }\n })\n },\n // =============================================================\n // == Arrow style ==\n // =============================================================\n getArrowStyle(token, {\n colorBg: colorBgElevated,\n limitVerticalRadius: true,\n arrowPlacement: {\n top: true,\n bottom: true\n }\n }), {\n // =============================================================\n // == Menu ==\n // =============================================================\n [`${componentCls} ${menuCls}`]: {\n position: 'relative',\n margin: 0\n },\n [`${menuCls}-submenu-popup`]: {\n position: 'absolute',\n zIndex: zIndexPopup,\n background: 'transparent',\n boxShadow: 'none',\n transformOrigin: '0 0',\n 'ul, li': {\n listStyle: 'none',\n margin: 0\n }\n },\n [`${componentCls}, ${componentCls}-menu-submenu`]: {\n [menuCls]: Object.assign(Object.assign({\n padding: dropdownEdgeChildPadding,\n listStyleType: 'none',\n backgroundColor: colorBgElevated,\n backgroundClip: 'padding-box',\n borderRadius: token.borderRadiusLG,\n outline: 'none',\n boxShadow: token.boxShadowSecondary\n }, genFocusStyle(token)), {\n [`${menuCls}-item-group-title`]: {\n padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n color: token.colorTextDescription,\n transition: `all ${motionDurationMid}`\n },\n // ======================= Item Content =======================\n [`${menuCls}-item`]: {\n position: 'relative',\n display: 'flex',\n alignItems: 'center'\n },\n [`${menuCls}-item-icon`]: {\n minWidth: fontSize,\n marginInlineEnd: token.marginXS,\n fontSize: token.fontSizeSM\n },\n [`${menuCls}-title-content`]: {\n flex: 'auto',\n '> a': {\n color: 'inherit',\n transition: `all ${motionDurationMid}`,\n '&:hover': {\n color: 'inherit'\n },\n '&::after': {\n position: 'absolute',\n inset: 0,\n content: '\"\"'\n }\n }\n },\n // =========================== Item ===========================\n [`${menuCls}-item, ${menuCls}-submenu-title`]: Object.assign(Object.assign({\n clear: 'both',\n margin: 0,\n padding: `${dropdownPaddingVertical}px ${controlPaddingHorizontal}px`,\n color: token.colorText,\n fontWeight: 'normal',\n fontSize,\n lineHeight: token.lineHeight,\n cursor: 'pointer',\n transition: `all ${motionDurationMid}`,\n borderRadius: token.borderRadiusSM,\n [`&:hover, &-active`]: {\n backgroundColor: token.controlItemBgHover\n }\n }, genFocusStyle(token)), {\n '&-selected': {\n color: token.colorPrimary,\n backgroundColor: token.controlItemBgActive,\n '&:hover, &-active': {\n backgroundColor: token.controlItemBgActiveHover\n }\n },\n '&-disabled': {\n color: colorTextDisabled,\n cursor: 'not-allowed',\n '&:hover': {\n color: colorTextDisabled,\n backgroundColor: colorBgElevated,\n cursor: 'not-allowed'\n },\n a: {\n pointerEvents: 'none'\n }\n },\n '&-divider': {\n height: 1,\n margin: `${token.marginXXS}px 0`,\n overflow: 'hidden',\n lineHeight: 0,\n backgroundColor: token.colorSplit\n },\n [`${componentCls}-menu-submenu-expand-icon`]: {\n position: 'absolute',\n insetInlineEnd: token.paddingXS,\n [`${componentCls}-menu-submenu-arrow-icon`]: {\n marginInlineEnd: '0 !important',\n color: token.colorTextDescription,\n fontSize: fontSizeIcon,\n fontStyle: 'normal'\n }\n }\n }),\n [`${menuCls}-item-group-list`]: {\n margin: `0 ${token.marginXS}px`,\n padding: 0,\n listStyle: 'none'\n },\n [`${menuCls}-submenu-title`]: {\n paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM\n },\n [`${menuCls}-submenu-vertical`]: {\n position: 'relative'\n },\n [`${menuCls}-submenu${menuCls}-submenu-disabled ${componentCls}-menu-submenu-title`]: {\n [`&, ${componentCls}-menu-submenu-arrow-icon`]: {\n color: colorTextDisabled,\n backgroundColor: colorBgElevated,\n cursor: 'not-allowed'\n }\n },\n // https://github.com/ant-design/ant-design/issues/19264\n [`${menuCls}-submenu-selected ${componentCls}-menu-submenu-title`]: {\n color: token.colorPrimary\n }\n })\n }\n },\n // Follow code may reuse in other components\n [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down'), initZoomMotion(token, 'zoom-big')]];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Dropdown', (token, _ref) => {\n let {\n rootPrefixCls\n } = _ref;\n const {\n marginXXS,\n sizePopupArrow,\n controlHeight,\n fontSize,\n lineHeight,\n paddingXXS,\n componentCls,\n borderRadiusLG\n } = token;\n const dropdownPaddingVertical = (controlHeight - fontSize * lineHeight) / 2;\n const {\n dropdownArrowOffset\n } = getArrowOffset({\n contentRadius: borderRadiusLG\n });\n const dropdownToken = mergeToken(token, {\n menuCls: `${componentCls}-menu`,\n rootPrefixCls,\n dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,\n dropdownArrowOffset,\n dropdownPaddingVertical,\n dropdownEdgeChildPadding: paddingXXS\n });\n return [genBaseStyle(dropdownToken), genStatusStyle(dropdownToken)];\n}, token => ({\n zIndexPopup: token.zIndexPopupBase + 50\n}));","import { TinyColor } from '@ctrl/tinycolor';\nimport * as React from 'react';\nimport { useToken } from '../theme/internal';\nconst Empty = () => {\n const [, token] = useToken();\n const bgColor = new TinyColor(token.colorBgBase);\n // Dark Theme need more dark of this\n const themeStyle = bgColor.toHsl().l < 0.5 ? {\n opacity: 0.65\n } : {};\n return /*#__PURE__*/React.createElement(\"svg\", {\n style: themeStyle,\n width: \"184\",\n height: \"152\",\n viewBox: \"0 0 184 152\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(24 31.67)\"\n }, /*#__PURE__*/React.createElement(\"ellipse\", {\n fillOpacity: \".8\",\n fill: \"#F5F5F7\",\n cx: \"67.797\",\n cy: \"106.89\",\n rx: \"67.797\",\n ry: \"12.668\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: \"#AEB8C2\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: \"url(#linearGradient-1)\",\n transform: \"translate(13.56)\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: \"#F5F5F7\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: \"#DCE0E6\"\n })), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: \"#DCE0E6\"\n }), /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(149.65 15.383)\",\n fill: \"#FFF\"\n }, /*#__PURE__*/React.createElement(\"ellipse\", {\n cx: \"20.654\",\n cy: \"3.167\",\n rx: \"2.849\",\n ry: \"2.815\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z\"\n }))));\n};\nif (process.env.NODE_ENV !== 'production') {\n Empty.displayName = 'EmptyImage';\n}\nexport default Empty;","import { TinyColor } from '@ctrl/tinycolor';\nimport * as React from 'react';\nimport { useMemo } from 'react';\nimport { useToken } from '../theme/internal';\nconst Simple = () => {\n const [, token] = useToken();\n const {\n colorFill,\n colorFillTertiary,\n colorFillQuaternary,\n colorBgContainer\n } = token;\n const {\n borderColor,\n shadowColor,\n contentColor\n } = useMemo(() => ({\n borderColor: new TinyColor(colorFill).onBackground(colorBgContainer).toHexShortString(),\n shadowColor: new TinyColor(colorFillTertiary).onBackground(colorBgContainer).toHexShortString(),\n contentColor: new TinyColor(colorFillQuaternary).onBackground(colorBgContainer).toHexShortString()\n }), [colorFill, colorFillTertiary, colorFillQuaternary, colorBgContainer]);\n return /*#__PURE__*/React.createElement(\"svg\", {\n width: \"64\",\n height: \"41\",\n viewBox: \"0 0 64 41\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(0 1)\",\n fill: \"none\",\n fillRule: \"evenodd\"\n }, /*#__PURE__*/React.createElement(\"ellipse\", {\n fill: shadowColor,\n cx: \"32\",\n cy: \"33\",\n rx: \"32\",\n ry: \"7\"\n }), /*#__PURE__*/React.createElement(\"g\", {\n fillRule: \"nonzero\",\n stroke: borderColor\n }, /*#__PURE__*/React.createElement(\"path\", {\n 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\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n 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\",\n fill: contentColor\n }))));\n};\nif (process.env.NODE_ENV !== 'production') {\n Simple.displayName = 'SimpleImage';\n}\nexport default Simple;","import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Shared ==============================\nconst genSharedEmptyStyle = token => {\n const {\n componentCls,\n margin,\n marginXS,\n marginXL,\n fontSize,\n lineHeight\n } = token;\n return {\n [componentCls]: {\n marginInline: marginXS,\n fontSize,\n lineHeight,\n textAlign: 'center',\n // 原来 &-image 没有父子结构,现在为了外层承担我们的hashId,改成父子结果\n [`${componentCls}-image`]: {\n height: token.emptyImgHeight,\n marginBottom: marginXS,\n opacity: token.opacityImage,\n img: {\n height: '100%'\n },\n svg: {\n maxWidth: '100%',\n height: '100%',\n margin: 'auto'\n }\n },\n [`${componentCls}-description`]: {\n color: token.colorText\n },\n // 原来 &-footer 没有父子结构,现在为了外层承担我们的hashId,改成父子结果\n [`${componentCls}-footer`]: {\n marginTop: margin\n },\n '&-normal': {\n marginBlock: marginXL,\n color: token.colorTextDisabled,\n [`${componentCls}-description`]: {\n color: token.colorTextDisabled\n },\n [`${componentCls}-image`]: {\n height: token.emptyImgHeightMD\n }\n },\n '&-small': {\n marginBlock: marginXS,\n color: token.colorTextDisabled,\n [`${componentCls}-image`]: {\n height: token.emptyImgHeightSM\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Empty', token => {\n const {\n componentCls,\n controlHeightLG\n } = token;\n const emptyToken = mergeToken(token, {\n emptyImgCls: `${componentCls}-img`,\n emptyImgHeight: controlHeightLG * 2.5,\n emptyImgHeightMD: controlHeightLG,\n emptyImgHeightSM: controlHeightLG * 0.875\n });\n return [genSharedEmptyStyle(emptyToken)];\n});","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { useLocale } from '../locale';\nimport DefaultEmptyImg from './empty';\nimport SimpleEmptyImg from './simple';\nimport useStyle from './style';\nconst defaultEmptyImg = /*#__PURE__*/React.createElement(DefaultEmptyImg, null);\nconst simpleEmptyImg = /*#__PURE__*/React.createElement(SimpleEmptyImg, null);\nconst Empty = _a => {\n var {\n className,\n rootClassName,\n prefixCls: customizePrefixCls,\n image = defaultEmptyImg,\n description,\n children,\n imageStyle,\n style\n } = _a,\n restProps = __rest(_a, [\"className\", \"rootClassName\", \"prefixCls\", \"image\", \"description\", \"children\", \"imageStyle\", \"style\"]);\n const {\n getPrefixCls,\n direction,\n empty\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('empty', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const [locale] = useLocale('Empty');\n const des = typeof description !== 'undefined' ? description : locale === null || locale === void 0 ? void 0 : locale.description;\n const alt = typeof des === 'string' ? des : 'empty';\n let imageNode = null;\n if (typeof image === 'string') {\n imageNode = /*#__PURE__*/React.createElement(\"img\", {\n alt: alt,\n src: image\n });\n } else {\n imageNode = image;\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: classNames(hashId, prefixCls, empty === null || empty === void 0 ? void 0 : empty.className, {\n [`${prefixCls}-normal`]: image === simpleEmptyImg,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, rootClassName),\n style: Object.assign(Object.assign({}, empty === null || empty === void 0 ? void 0 : empty.style), style)\n }, restProps), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-image`,\n style: imageStyle\n }, imageNode), des && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-description`\n }, des), children && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-footer`\n }, children)));\n};\nEmpty.PRESENTED_IMAGE_DEFAULT = defaultEmptyImg;\nEmpty.PRESENTED_IMAGE_SIMPLE = simpleEmptyImg;\nif (process.env.NODE_ENV !== 'production') {\n Empty.displayName = 'Empty';\n}\nexport default Empty;","import { FormProvider as RcFormProvider } from 'rc-field-form';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nexport const FormContext = /*#__PURE__*/React.createContext({\n labelAlign: 'right',\n vertical: false,\n itemRef: () => {}\n});\nexport const NoStyleItemContext = /*#__PURE__*/React.createContext(null);\nexport const FormProvider = props => {\n const providerProps = omit(props, ['prefixCls']);\n return /*#__PURE__*/React.createElement(RcFormProvider, Object.assign({}, providerProps));\n};\nexport const FormItemPrefixContext = /*#__PURE__*/React.createContext({\n prefixCls: ''\n});\nexport const FormItemInputContext = /*#__PURE__*/React.createContext({});\nexport const NoFormStyle = _ref => {\n let {\n children,\n status,\n override\n } = _ref;\n const formItemInputContext = useContext(FormItemInputContext);\n const newFormItemInputContext = useMemo(() => {\n const newContext = Object.assign({}, formItemInputContext);\n if (override) {\n delete newContext.isFormItemInput;\n }\n if (status) {\n delete newContext.status;\n delete newContext.hasFeedback;\n delete newContext.feedbackIcon;\n }\n return newContext;\n }, [status, override, formItemInputContext]);\n return /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n value: newFormItemInputContext\n }, children);\n};","import { createContext } from 'react';\n// ZombieJ: We export single file here since\n// ConfigProvider use this which will make loop deps\n// to import whole `rc-field-form`\nexport default /*#__PURE__*/createContext(undefined);","import { createContext } from 'react';\nconst RowContext = /*#__PURE__*/createContext({});\nexport default RowContext;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport RowContext from './RowContext';\nimport { useColStyle } from './style';\nfunction parseFlex(flex) {\n if (typeof flex === 'number') {\n return `${flex} ${flex} auto`;\n }\n if (/^\\d+(\\.\\d+)?(px|em|rem|%)$/.test(flex)) {\n return `0 0 ${flex}`;\n }\n return flex;\n}\nconst sizes = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];\nconst Col = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n gutter,\n wrap,\n supportFlexGap\n } = React.useContext(RowContext);\n const {\n prefixCls: customizePrefixCls,\n span,\n order,\n offset,\n push,\n pull,\n className,\n children,\n flex,\n style\n } = props,\n others = __rest(props, [\"prefixCls\", \"span\", \"order\", \"offset\", \"push\", \"pull\", \"className\", \"children\", \"flex\", \"style\"]);\n const prefixCls = getPrefixCls('col', customizePrefixCls);\n const [wrapSSR, hashId] = useColStyle(prefixCls);\n let sizeClassObj = {};\n sizes.forEach(size => {\n let sizeProps = {};\n const propSize = props[size];\n if (typeof propSize === 'number') {\n sizeProps.span = propSize;\n } else if (typeof propSize === 'object') {\n sizeProps = propSize || {};\n }\n delete others[size];\n sizeClassObj = Object.assign(Object.assign({}, sizeClassObj), {\n [`${prefixCls}-${size}-${sizeProps.span}`]: sizeProps.span !== undefined,\n [`${prefixCls}-${size}-order-${sizeProps.order}`]: sizeProps.order || sizeProps.order === 0,\n [`${prefixCls}-${size}-offset-${sizeProps.offset}`]: sizeProps.offset || sizeProps.offset === 0,\n [`${prefixCls}-${size}-push-${sizeProps.push}`]: sizeProps.push || sizeProps.push === 0,\n [`${prefixCls}-${size}-pull-${sizeProps.pull}`]: sizeProps.pull || sizeProps.pull === 0,\n [`${prefixCls}-${size}-flex-${sizeProps.flex}`]: sizeProps.flex || sizeProps.flex === 'auto',\n [`${prefixCls}-rtl`]: direction === 'rtl'\n });\n });\n const classes = classNames(prefixCls, {\n [`${prefixCls}-${span}`]: span !== undefined,\n [`${prefixCls}-order-${order}`]: order,\n [`${prefixCls}-offset-${offset}`]: offset,\n [`${prefixCls}-push-${push}`]: push,\n [`${prefixCls}-pull-${pull}`]: pull\n }, className, sizeClassObj, hashId);\n const mergedStyle = {};\n // Horizontal gutter use padding\n if (gutter && gutter[0] > 0) {\n const horizontalGutter = gutter[0] / 2;\n mergedStyle.paddingLeft = horizontalGutter;\n mergedStyle.paddingRight = horizontalGutter;\n }\n // Vertical gutter use padding when gap not support\n if (gutter && gutter[1] > 0 && !supportFlexGap) {\n const verticalGutter = gutter[1] / 2;\n mergedStyle.paddingTop = verticalGutter;\n mergedStyle.paddingBottom = verticalGutter;\n }\n if (flex) {\n mergedStyle.flex = parseFlex(flex);\n // Hack for Firefox to avoid size issue\n // https://github.com/ant-design/ant-design/pull/20023#issuecomment-564389553\n if (wrap === false && !mergedStyle.minWidth) {\n mergedStyle.minWidth = 0;\n }\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({}, others, {\n style: Object.assign(Object.assign({}, mergedStyle), style),\n className: classes,\n ref: ref\n }), children));\n});\nif (process.env.NODE_ENV !== 'production') {\n Col.displayName = 'Col';\n}\nexport default Col;","import { useRef } from 'react';\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport useForceUpdate from '../../_util/hooks/useForceUpdate';\nimport useResponsiveObserver from '../../_util/responsiveObserver';\nfunction useBreakpoint() {\n let refreshOnChange = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n const screensRef = useRef({});\n const forceUpdate = useForceUpdate();\n const responsiveObserver = useResponsiveObserver();\n useLayoutEffect(() => {\n const token = responsiveObserver.subscribe(supportScreens => {\n screensRef.current = supportScreens;\n if (refreshOnChange) {\n forceUpdate();\n }\n });\n return () => responsiveObserver.unsubscribe(token);\n }, []);\n return screensRef.current;\n}\nexport default useBreakpoint;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useFlexGapSupport from '../_util/hooks/useFlexGapSupport';\nimport useResponsiveObserver, { responsiveArray } from '../_util/responsiveObserver';\nimport RowContext from './RowContext';\nimport { useRowStyle } from './style';\nconst RowAligns = ['top', 'middle', 'bottom', 'stretch'];\nconst RowJustify = ['start', 'end', 'center', 'space-around', 'space-between', 'space-evenly'];\nfunction useMergePropByScreen(oriProp, screen) {\n const [prop, setProp] = React.useState(typeof oriProp === 'string' ? oriProp : '');\n const calcMergeAlignOrJustify = () => {\n if (typeof oriProp === 'string') {\n setProp(oriProp);\n }\n if (typeof oriProp !== 'object') {\n return;\n }\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint = responsiveArray[i];\n // if do not match, do nothing\n if (!screen[breakpoint]) continue;\n const curVal = oriProp[breakpoint];\n if (curVal !== undefined) {\n setProp(curVal);\n return;\n }\n }\n };\n React.useEffect(() => {\n calcMergeAlignOrJustify();\n }, [JSON.stringify(oriProp), screen]);\n return prop;\n}\nconst Row = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n justify,\n align,\n className,\n style,\n children,\n gutter = 0,\n wrap\n } = props,\n others = __rest(props, [\"prefixCls\", \"justify\", \"align\", \"className\", \"style\", \"children\", \"gutter\", \"wrap\"]);\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const [screens, setScreens] = React.useState({\n xs: true,\n sm: true,\n md: true,\n lg: true,\n xl: true,\n xxl: true\n });\n // to save screens info when responsiveObserve callback had been call\n const [curScreens, setCurScreens] = React.useState({\n xs: false,\n sm: false,\n md: false,\n lg: false,\n xl: false,\n xxl: false\n });\n // ================================== calc responsive data ==================================\n const mergeAlign = useMergePropByScreen(align, curScreens);\n const mergeJustify = useMergePropByScreen(justify, curScreens);\n const supportFlexGap = useFlexGapSupport();\n const gutterRef = React.useRef(gutter);\n const responsiveObserver = useResponsiveObserver();\n // ================================== Effect ==================================\n React.useEffect(() => {\n const token = responsiveObserver.subscribe(screen => {\n setCurScreens(screen);\n const currentGutter = gutterRef.current || 0;\n if (!Array.isArray(currentGutter) && typeof currentGutter === 'object' || Array.isArray(currentGutter) && (typeof currentGutter[0] === 'object' || typeof currentGutter[1] === 'object')) {\n setScreens(screen);\n }\n });\n return () => responsiveObserver.unsubscribe(token);\n }, []);\n // ================================== Render ==================================\n const getGutter = () => {\n const results = [undefined, undefined];\n const normalizedGutter = Array.isArray(gutter) ? gutter : [gutter, undefined];\n normalizedGutter.forEach((g, index) => {\n if (typeof g === 'object') {\n for (let i = 0; i < responsiveArray.length; i++) {\n const breakpoint = responsiveArray[i];\n if (screens[breakpoint] && g[breakpoint] !== undefined) {\n results[index] = g[breakpoint];\n break;\n }\n }\n } else {\n results[index] = g;\n }\n });\n return results;\n };\n const prefixCls = getPrefixCls('row', customizePrefixCls);\n const [wrapSSR, hashId] = useRowStyle(prefixCls);\n const gutters = getGutter();\n const classes = classNames(prefixCls, {\n [`${prefixCls}-no-wrap`]: wrap === false,\n [`${prefixCls}-${mergeJustify}`]: mergeJustify,\n [`${prefixCls}-${mergeAlign}`]: mergeAlign,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, hashId);\n // Add gutter related style\n const rowStyle = {};\n const horizontalGutter = gutters[0] != null && gutters[0] > 0 ? gutters[0] / -2 : undefined;\n const verticalGutter = gutters[1] != null && gutters[1] > 0 ? gutters[1] / -2 : undefined;\n if (horizontalGutter) {\n rowStyle.marginLeft = horizontalGutter;\n rowStyle.marginRight = horizontalGutter;\n }\n if (supportFlexGap) {\n // Set gap direct if flex gap support\n [, rowStyle.rowGap] = gutters;\n } else if (verticalGutter) {\n rowStyle.marginTop = verticalGutter;\n rowStyle.marginBottom = verticalGutter;\n }\n // \"gutters\" is a new array in each rendering phase, it'll make 'React.useMemo' effectless.\n // So we deconstruct \"gutters\" variable here.\n const [gutterH, gutterV] = gutters;\n const rowContext = React.useMemo(() => ({\n gutter: [gutterH, gutterV],\n wrap,\n supportFlexGap\n }), [gutterH, gutterV, wrap, supportFlexGap]);\n return wrapSSR( /*#__PURE__*/React.createElement(RowContext.Provider, {\n value: rowContext\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({}, others, {\n className: classes,\n style: Object.assign(Object.assign({}, rowStyle), style),\n ref: ref\n }), children)));\n});\nif (process.env.NODE_ENV !== 'production') {\n Row.displayName = 'Row';\n}\nexport default Row;","import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Row-Shared ==============================\nconst genGridRowStyle = token => {\n const {\n componentCls\n } = token;\n return {\n // Grid system\n [componentCls]: {\n display: 'flex',\n flexFlow: 'row wrap',\n minWidth: 0,\n '&::before, &::after': {\n display: 'flex'\n },\n '&-no-wrap': {\n flexWrap: 'nowrap'\n },\n // The origin of the X-axis\n '&-start': {\n justifyContent: 'flex-start'\n },\n // The center of the X-axis\n '&-center': {\n justifyContent: 'center'\n },\n // The opposite of the X-axis\n '&-end': {\n justifyContent: 'flex-end'\n },\n '&-space-between': {\n justifyContent: 'space-between'\n },\n '&-space-around': {\n justifyContent: 'space-around'\n },\n '&-space-evenly': {\n justifyContent: 'space-evenly'\n },\n // Align at the top\n '&-top': {\n alignItems: 'flex-start'\n },\n // Align at the center\n '&-middle': {\n alignItems: 'center'\n },\n '&-bottom': {\n alignItems: 'flex-end'\n }\n }\n };\n};\n// ============================== Col-Shared ==============================\nconst genGridColStyle = token => {\n const {\n componentCls\n } = token;\n return {\n // Grid system\n [componentCls]: {\n position: 'relative',\n maxWidth: '100%',\n // Prevent columns from collapsing when empty\n minHeight: 1\n }\n };\n};\nconst genLoopGridColumnsStyle = (token, sizeCls) => {\n const {\n componentCls,\n gridColumns\n } = token;\n const gridColumnsStyle = {};\n for (let i = gridColumns; i >= 0; i--) {\n if (i === 0) {\n gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = {\n display: 'none'\n };\n gridColumnsStyle[`${componentCls}-push-${i}`] = {\n insetInlineStart: 'auto'\n };\n gridColumnsStyle[`${componentCls}-pull-${i}`] = {\n insetInlineEnd: 'auto'\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-push-${i}`] = {\n insetInlineStart: 'auto'\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-pull-${i}`] = {\n insetInlineEnd: 'auto'\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-offset-${i}`] = {\n marginInlineStart: 0\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-order-${i}`] = {\n order: 0\n };\n } else {\n gridColumnsStyle[`${componentCls}${sizeCls}-${i}`] = {\n display: 'block',\n flex: `0 0 ${i / gridColumns * 100}%`,\n maxWidth: `${i / gridColumns * 100}%`\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-push-${i}`] = {\n insetInlineStart: `${i / gridColumns * 100}%`\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-pull-${i}`] = {\n insetInlineEnd: `${i / gridColumns * 100}%`\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-offset-${i}`] = {\n marginInlineStart: `${i / gridColumns * 100}%`\n };\n gridColumnsStyle[`${componentCls}${sizeCls}-order-${i}`] = {\n order: i\n };\n }\n }\n return gridColumnsStyle;\n};\nconst genGridStyle = (token, sizeCls) => genLoopGridColumnsStyle(token, sizeCls);\nconst genGridMediaStyle = (token, screenSize, sizeCls) => ({\n [`@media (min-width: ${screenSize}px)`]: Object.assign({}, genGridStyle(token, sizeCls))\n});\n// ============================== Export ==============================\nexport const useRowStyle = genComponentStyleHook('Grid', token => [genGridRowStyle(token)]);\nexport const useColStyle = genComponentStyleHook('Grid', token => {\n const gridToken = mergeToken(token, {\n gridColumns: 24 // Row is divided into 24 parts in Grid\n });\n\n const gridMediaSizesMap = {\n '-sm': gridToken.screenSMMin,\n '-md': gridToken.screenMDMin,\n '-lg': gridToken.screenLGMin,\n '-xl': gridToken.screenXLMin,\n '-xxl': gridToken.screenXXLMin\n };\n return [genGridColStyle(gridToken), genGridStyle(gridToken, ''), genGridStyle(gridToken, '-xs'), Object.keys(gridMediaSizesMap).map(key => genGridMediaStyle(gridToken, gridMediaSizesMap[key], key)).reduce((pre, cur) => Object.assign(Object.assign({}, pre), cur), {})];\n});","export function supportBigInt() {\n return typeof BigInt === 'function';\n}","import { supportBigInt } from \"./supportUtil\";\nexport function isEmpty(value) {\n return !value && value !== 0 && !Number.isNaN(value) || !String(value).trim();\n}\n\n/**\n * Format string number to readable number\n */\nexport function trimNumber(numStr) {\n var str = numStr.trim();\n var negative = str.startsWith('-');\n if (negative) {\n str = str.slice(1);\n }\n str = str\n // Remove decimal 0. `1.000` => `1.`, `1.100` => `1.1`\n .replace(/(\\.\\d*[^0])0*$/, '$1')\n // Remove useless decimal. `1.` => `1`\n .replace(/\\.0*$/, '')\n // Remove integer 0. `0001` => `1`, 000.1' => `.1`\n .replace(/^0+/, '');\n if (str.startsWith('.')) {\n str = \"0\".concat(str);\n }\n var trimStr = str || '0';\n var splitNumber = trimStr.split('.');\n var integerStr = splitNumber[0] || '0';\n var decimalStr = splitNumber[1] || '0';\n if (integerStr === '0' && decimalStr === '0') {\n negative = false;\n }\n var negativeStr = negative ? '-' : '';\n return {\n negative: negative,\n negativeStr: negativeStr,\n trimStr: trimStr,\n integerStr: integerStr,\n decimalStr: decimalStr,\n fullStr: \"\".concat(negativeStr).concat(trimStr)\n };\n}\nexport function isE(number) {\n var str = String(number);\n return !Number.isNaN(Number(str)) && str.includes('e');\n}\n\n/**\n * [Legacy] Convert 1e-9 to 0.000000001.\n * This may lose some precision if user really want 1e-9.\n */\nexport function getNumberPrecision(number) {\n var numStr = String(number);\n if (isE(number)) {\n var precision = Number(numStr.slice(numStr.indexOf('e-') + 2));\n var decimalMatch = numStr.match(/\\.(\\d+)/);\n if (decimalMatch !== null && decimalMatch !== void 0 && decimalMatch[1]) {\n precision += decimalMatch[1].length;\n }\n return precision;\n }\n return numStr.includes('.') && validateNumber(numStr) ? numStr.length - numStr.indexOf('.') - 1 : 0;\n}\n\n/**\n * Convert number (includes scientific notation) to -xxx.yyy format\n */\nexport function num2str(number) {\n var numStr = String(number);\n if (isE(number)) {\n if (number > Number.MAX_SAFE_INTEGER) {\n return String(supportBigInt() ? BigInt(number).toString() : Number.MAX_SAFE_INTEGER);\n }\n if (number < Number.MIN_SAFE_INTEGER) {\n return String(supportBigInt() ? BigInt(number).toString() : Number.MIN_SAFE_INTEGER);\n }\n numStr = number.toFixed(getNumberPrecision(numStr));\n }\n return trimNumber(numStr).fullStr;\n}\nexport function validateNumber(num) {\n if (typeof num === 'number') {\n return !Number.isNaN(num);\n }\n\n // Empty\n if (!num) {\n return false;\n }\n return (\n // Normal type: 11.28\n /^\\s*-?\\d+(\\.\\d+)?\\s*$/.test(num) ||\n // Pre-number: 1.\n /^\\s*-?\\d+\\.\\s*$/.test(num) ||\n // Post-number: .1\n /^\\s*-?\\.\\d+\\s*$/.test(num)\n );\n}","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { isE, isEmpty, num2str, trimNumber, validateNumber } from \"./numberUtil\";\nvar BigIntDecimal = /*#__PURE__*/function () {\n /** BigInt will convert `0009` to `9`. We need record the len of decimal */\n\n function BigIntDecimal(value) {\n _classCallCheck(this, BigIntDecimal);\n _defineProperty(this, \"origin\", '');\n _defineProperty(this, \"negative\", void 0);\n _defineProperty(this, \"integer\", void 0);\n _defineProperty(this, \"decimal\", void 0);\n _defineProperty(this, \"decimalLen\", void 0);\n _defineProperty(this, \"empty\", void 0);\n _defineProperty(this, \"nan\", void 0);\n if (isEmpty(value)) {\n this.empty = true;\n return;\n }\n this.origin = String(value);\n\n // Act like Number convert\n if (value === '-' || Number.isNaN(value)) {\n this.nan = true;\n return;\n }\n var mergedValue = value;\n\n // We need convert back to Number since it require `toFixed` to handle this\n if (isE(mergedValue)) {\n mergedValue = Number(mergedValue);\n }\n mergedValue = typeof mergedValue === 'string' ? mergedValue : num2str(mergedValue);\n if (validateNumber(mergedValue)) {\n var trimRet = trimNumber(mergedValue);\n this.negative = trimRet.negative;\n var numbers = trimRet.trimStr.split('.');\n this.integer = BigInt(numbers[0]);\n var decimalStr = numbers[1] || '0';\n this.decimal = BigInt(decimalStr);\n this.decimalLen = decimalStr.length;\n } else {\n this.nan = true;\n }\n }\n _createClass(BigIntDecimal, [{\n key: \"getMark\",\n value: function getMark() {\n return this.negative ? '-' : '';\n }\n }, {\n key: \"getIntegerStr\",\n value: function getIntegerStr() {\n return this.integer.toString();\n }\n\n /**\n * @private get decimal string\n */\n }, {\n key: \"getDecimalStr\",\n value: function getDecimalStr() {\n return this.decimal.toString().padStart(this.decimalLen, '0');\n }\n\n /**\n * @private Align BigIntDecimal with same decimal length. e.g. 12.3 + 5 = 1230000\n * This is used for add function only.\n */\n }, {\n key: \"alignDecimal\",\n value: function alignDecimal(decimalLength) {\n var str = \"\".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(decimalLength, '0'));\n return BigInt(str);\n }\n }, {\n key: \"negate\",\n value: function negate() {\n var clone = new BigIntDecimal(this.toString());\n clone.negative = !clone.negative;\n return clone;\n }\n }, {\n key: \"cal\",\n value: function cal(offset, calculator, calDecimalLen) {\n var maxDecimalLength = Math.max(this.getDecimalStr().length, offset.getDecimalStr().length);\n var myAlignedDecimal = this.alignDecimal(maxDecimalLength);\n var offsetAlignedDecimal = offset.alignDecimal(maxDecimalLength);\n var valueStr = calculator(myAlignedDecimal, offsetAlignedDecimal).toString();\n var nextDecimalLength = calDecimalLen(maxDecimalLength);\n\n // We need fill string length back to `maxDecimalLength` to avoid parser failed\n var _trimNumber = trimNumber(valueStr),\n negativeStr = _trimNumber.negativeStr,\n trimStr = _trimNumber.trimStr;\n var hydrateValueStr = \"\".concat(negativeStr).concat(trimStr.padStart(nextDecimalLength + 1, '0'));\n return new BigIntDecimal(\"\".concat(hydrateValueStr.slice(0, -nextDecimalLength), \".\").concat(hydrateValueStr.slice(-nextDecimalLength)));\n }\n }, {\n key: \"add\",\n value: function add(value) {\n if (this.isInvalidate()) {\n return new BigIntDecimal(value);\n }\n var offset = new BigIntDecimal(value);\n if (offset.isInvalidate()) {\n return this;\n }\n return this.cal(offset, function (num1, num2) {\n return num1 + num2;\n }, function (len) {\n return len;\n });\n }\n }, {\n key: \"multi\",\n value: function multi(value) {\n var target = new BigIntDecimal(value);\n if (this.isInvalidate() || target.isInvalidate()) {\n return new BigIntDecimal(NaN);\n }\n return this.cal(target, function (num1, num2) {\n return num1 * num2;\n }, function (len) {\n return len * 2;\n });\n }\n }, {\n key: \"isEmpty\",\n value: function isEmpty() {\n return this.empty;\n }\n }, {\n key: \"isNaN\",\n value: function isNaN() {\n return this.nan;\n }\n }, {\n key: \"isInvalidate\",\n value: function isInvalidate() {\n return this.isEmpty() || this.isNaN();\n }\n }, {\n key: \"equals\",\n value: function equals(target) {\n return this.toString() === (target === null || target === void 0 ? void 0 : target.toString());\n }\n }, {\n key: \"lessEquals\",\n value: function lessEquals(target) {\n return this.add(target.negate().toString()).toNumber() <= 0;\n }\n }, {\n key: \"toNumber\",\n value: function toNumber() {\n if (this.isNaN()) {\n return NaN;\n }\n return Number(this.toString());\n }\n }, {\n key: \"toString\",\n value: function toString() {\n var safe = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (!safe) {\n return this.origin;\n }\n if (this.isInvalidate()) {\n return '';\n }\n return trimNumber(\"\".concat(this.getMark()).concat(this.getIntegerStr(), \".\").concat(this.getDecimalStr())).fullStr;\n }\n }]);\n return BigIntDecimal;\n}();\nexport { BigIntDecimal as default };","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport { getNumberPrecision, isEmpty, num2str } from \"./numberUtil\";\n\n/**\n * We can remove this when IE not support anymore\n */\nvar NumberDecimal = /*#__PURE__*/function () {\n function NumberDecimal(value) {\n _classCallCheck(this, NumberDecimal);\n _defineProperty(this, \"origin\", '');\n _defineProperty(this, \"number\", void 0);\n _defineProperty(this, \"empty\", void 0);\n if (isEmpty(value)) {\n this.empty = true;\n return;\n }\n this.origin = String(value);\n this.number = Number(value);\n }\n _createClass(NumberDecimal, [{\n key: \"negate\",\n value: function negate() {\n return new NumberDecimal(-this.toNumber());\n }\n }, {\n key: \"add\",\n value: function add(value) {\n if (this.isInvalidate()) {\n return new NumberDecimal(value);\n }\n var target = Number(value);\n if (Number.isNaN(target)) {\n return this;\n }\n var number = this.number + target;\n\n // [Legacy] Back to safe integer\n if (number > Number.MAX_SAFE_INTEGER) {\n return new NumberDecimal(Number.MAX_SAFE_INTEGER);\n }\n if (number < Number.MIN_SAFE_INTEGER) {\n return new NumberDecimal(Number.MIN_SAFE_INTEGER);\n }\n var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));\n return new NumberDecimal(number.toFixed(maxPrecision));\n }\n }, {\n key: \"multi\",\n value: function multi(value) {\n var target = Number(value);\n if (this.isInvalidate() || Number.isNaN(target)) {\n return new NumberDecimal(NaN);\n }\n var number = this.number * target;\n\n // [Legacy] Back to safe integer\n if (number > Number.MAX_SAFE_INTEGER) {\n return new NumberDecimal(Number.MAX_SAFE_INTEGER);\n }\n if (number < Number.MIN_SAFE_INTEGER) {\n return new NumberDecimal(Number.MIN_SAFE_INTEGER);\n }\n var maxPrecision = Math.max(getNumberPrecision(this.number), getNumberPrecision(target));\n return new NumberDecimal(number.toFixed(maxPrecision));\n }\n }, {\n key: \"isEmpty\",\n value: function isEmpty() {\n return this.empty;\n }\n }, {\n key: \"isNaN\",\n value: function isNaN() {\n return Number.isNaN(this.number);\n }\n }, {\n key: \"isInvalidate\",\n value: function isInvalidate() {\n return this.isEmpty() || this.isNaN();\n }\n }, {\n key: \"equals\",\n value: function equals(target) {\n return this.toNumber() === (target === null || target === void 0 ? void 0 : target.toNumber());\n }\n }, {\n key: \"lessEquals\",\n value: function lessEquals(target) {\n return this.add(target.negate().toString()).toNumber() <= 0;\n }\n }, {\n key: \"toNumber\",\n value: function toNumber() {\n return this.number;\n }\n }, {\n key: \"toString\",\n value: function toString() {\n var safe = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (!safe) {\n return this.origin;\n }\n if (this.isInvalidate()) {\n return '';\n }\n return num2str(this.number);\n }\n }]);\n return NumberDecimal;\n}();\nexport { NumberDecimal as default };","/* eslint-disable max-classes-per-file */\n\nimport BigIntDecimal from \"./BigIntDecimal\";\nimport NumberDecimal from \"./NumberDecimal\";\nimport { trimNumber } from \"./numberUtil\";\nimport { supportBigInt } from \"./supportUtil\";\n\n// Still support origin export\nexport { NumberDecimal, BigIntDecimal };\nexport default function getMiniDecimal(value) {\n // We use BigInt here.\n // Will fallback to Number if not support.\n if (supportBigInt()) {\n return new BigIntDecimal(value);\n }\n return new NumberDecimal(value);\n}\n\n/**\n * Align the logic of toFixed to around like 1.5 => 2.\n * If set `cutOnly`, will just remove the over decimal part.\n */\nexport function toFixed(numStr, separatorStr, precision) {\n var cutOnly = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;\n if (numStr === '') {\n return '';\n }\n var _trimNumber = trimNumber(numStr),\n negativeStr = _trimNumber.negativeStr,\n integerStr = _trimNumber.integerStr,\n decimalStr = _trimNumber.decimalStr;\n var precisionDecimalStr = \"\".concat(separatorStr).concat(decimalStr);\n var numberWithoutDecimal = \"\".concat(negativeStr).concat(integerStr);\n if (precision >= 0) {\n // We will get last + 1 number to check if need advanced number\n var advancedNum = Number(decimalStr[precision]);\n if (advancedNum >= 5 && !cutOnly) {\n var advancedDecimal = getMiniDecimal(numStr).add(\"\".concat(negativeStr, \"0.\").concat('0'.repeat(precision)).concat(10 - advancedNum));\n return toFixed(advancedDecimal.toString(), separatorStr, precision, cutOnly);\n }\n if (precision === 0) {\n return numberWithoutDecimal;\n }\n return \"\".concat(numberWithoutDecimal).concat(separatorStr).concat(decimalStr.padEnd(precision, '0').slice(0, precision));\n }\n if (precisionDecimalStr === '.0') {\n return numberWithoutDecimal;\n }\n return \"\".concat(numberWithoutDecimal).concat(precisionDecimalStr);\n}","import getMiniDecimal from \"./MiniDecimal\";\nexport * from \"./MiniDecimal\";\nimport { trimNumber, getNumberPrecision, num2str, validateNumber } from \"./numberUtil\";\nexport { trimNumber, getNumberPrecision, num2str, validateNumber };\nexport default getMiniDecimal;","import { useRef } from 'react';\nimport warning from \"rc-util/es/warning\";\n/**\n * Keep input cursor in the correct position if possible.\n * Is this necessary since we have `formatter` which may mass the content?\n */\nexport default function useCursor(input, focused) {\n var selectionRef = useRef(null);\n function recordCursor() {\n // Record position\n try {\n var start = input.selectionStart,\n end = input.selectionEnd,\n value = input.value;\n var beforeTxt = value.substring(0, start);\n var afterTxt = value.substring(end);\n selectionRef.current = {\n start: start,\n end: end,\n value: value,\n beforeTxt: beforeTxt,\n afterTxt: afterTxt\n };\n } catch (e) {\n // Fix error in Chrome:\n // Failed to read the 'selectionStart' property from 'HTMLInputElement'\n // http://stackoverflow.com/q/21177489/3040605\n }\n }\n\n /**\n * Restore logic:\n * 1. back string same\n * 2. start string same\n */\n function restoreCursor() {\n if (input && selectionRef.current && focused) {\n try {\n var value = input.value;\n var _selectionRef$current = selectionRef.current,\n beforeTxt = _selectionRef$current.beforeTxt,\n afterTxt = _selectionRef$current.afterTxt,\n start = _selectionRef$current.start;\n var startPos = value.length;\n if (value.endsWith(afterTxt)) {\n startPos = value.length - selectionRef.current.afterTxt.length;\n } else if (value.startsWith(beforeTxt)) {\n startPos = beforeTxt.length;\n } else {\n var beforeLastChar = beforeTxt[start - 1];\n var newIndex = value.indexOf(beforeLastChar, start - 1);\n if (newIndex !== -1) {\n startPos = newIndex + 1;\n }\n }\n input.setSelectionRange(startPos, startPos);\n } catch (e) {\n warning(false, \"Something warning of cursor restore. Please fire issue about this: \".concat(e.message));\n }\n }\n }\n return [recordCursor, restoreCursor];\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { useState } from 'react';\nimport isMobile from \"../isMobile\";\nimport useLayoutEffect from \"./useLayoutEffect\";\n\n/**\n * Hook to detect if the user is on a mobile device\n * Notice that this hook will only detect the device type in effect, so it will always be false in server side\n */\nvar useMobile = function useMobile() {\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n mobile = _useState2[0],\n setMobile = _useState2[1];\n useLayoutEffect(function () {\n setMobile(isMobile());\n }, []);\n return mobile;\n};\nexport default useMobile;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n/* eslint-disable react/no-unknown-property */\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport useMobile from \"rc-util/es/hooks/useMobile\";\nimport raf from \"rc-util/es/raf\";\n\n/**\n * When click and hold on a button - the speed of auto changing the value.\n */\nvar STEP_INTERVAL = 200;\n\n/**\n * When click and hold on a button - the delay before auto changing the value.\n */\nvar STEP_DELAY = 600;\nexport default function StepHandler(_ref) {\n var prefixCls = _ref.prefixCls,\n upNode = _ref.upNode,\n downNode = _ref.downNode,\n upDisabled = _ref.upDisabled,\n downDisabled = _ref.downDisabled,\n onStep = _ref.onStep;\n // ======================== Step ========================\n var stepTimeoutRef = React.useRef();\n var frameIds = React.useRef([]);\n var onStepRef = React.useRef();\n onStepRef.current = onStep;\n var onStopStep = function onStopStep() {\n clearTimeout(stepTimeoutRef.current);\n };\n\n // We will interval update step when hold mouse down\n var onStepMouseDown = function onStepMouseDown(e, up) {\n e.preventDefault();\n onStopStep();\n onStepRef.current(up);\n\n // Loop step for interval\n function loopStep() {\n onStepRef.current(up);\n stepTimeoutRef.current = setTimeout(loopStep, STEP_INTERVAL);\n }\n\n // First time press will wait some time to trigger loop step update\n stepTimeoutRef.current = setTimeout(loopStep, STEP_DELAY);\n };\n React.useEffect(function () {\n return function () {\n onStopStep();\n frameIds.current.forEach(function (id) {\n return raf.cancel(id);\n });\n };\n }, []);\n\n // ======================= Render =======================\n var isMobile = useMobile();\n if (isMobile) {\n return null;\n }\n var handlerClassName = \"\".concat(prefixCls, \"-handler\");\n var upClassName = classNames(handlerClassName, \"\".concat(handlerClassName, \"-up\"), _defineProperty({}, \"\".concat(handlerClassName, \"-up-disabled\"), upDisabled));\n var downClassName = classNames(handlerClassName, \"\".concat(handlerClassName, \"-down\"), _defineProperty({}, \"\".concat(handlerClassName, \"-down-disabled\"), downDisabled));\n\n // fix: https://github.com/ant-design/ant-design/issues/43088\n // In Safari, When we fire onmousedown and onmouseup events in quick succession, \n // there may be a problem that the onmouseup events are executed first, \n // resulting in a disordered program execution.\n // So, we need to use requestAnimationFrame to ensure that the onmouseup event is executed after the onmousedown event.\n var safeOnStopStep = function safeOnStopStep() {\n return frameIds.current.push(raf(onStopStep));\n };\n var sharedHandlerProps = {\n unselectable: 'on',\n role: 'button',\n onMouseUp: safeOnStopStep,\n onMouseLeave: safeOnStopStep\n };\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(handlerClassName, \"-wrap\")\n }, /*#__PURE__*/React.createElement(\"span\", _extends({}, sharedHandlerProps, {\n onMouseDown: function onMouseDown(e) {\n onStepMouseDown(e, true);\n },\n \"aria-label\": \"Increase Value\",\n \"aria-disabled\": upDisabled,\n className: upClassName\n }), upNode || /*#__PURE__*/React.createElement(\"span\", {\n unselectable: \"on\",\n className: \"\".concat(prefixCls, \"-handler-up-inner\")\n })), /*#__PURE__*/React.createElement(\"span\", _extends({}, sharedHandlerProps, {\n onMouseDown: function onMouseDown(e) {\n onStepMouseDown(e, false);\n },\n \"aria-label\": \"Decrease Value\",\n \"aria-disabled\": downDisabled,\n className: downClassName\n }), downNode || /*#__PURE__*/React.createElement(\"span\", {\n unselectable: \"on\",\n className: \"\".concat(prefixCls, \"-handler-down-inner\")\n })));\n}","import { trimNumber, num2str } from '@rc-component/mini-decimal';\nexport function getDecupleSteps(step) {\n var stepStr = typeof step === 'number' ? num2str(step) : trimNumber(step).fullStr;\n var hasPoint = stepStr.includes('.');\n if (!hasPoint) {\n return step + '0';\n }\n return trimNumber(stepStr.replace(/(\\d)\\.(\\d)/g, '$1$2.')).fullStr;\n}","import { useRef, useEffect } from 'react';\nimport raf from \"rc-util/es/raf\";\n\n/**\n * Always trigger latest once when call multiple time\n */\nexport default (function () {\n var idRef = useRef(0);\n var cleanUp = function cleanUp() {\n raf.cancel(idRef.current);\n };\n useEffect(function () {\n return cleanUp;\n }, []);\n return function (callback) {\n cleanUp();\n idRef.current = raf(function () {\n callback();\n });\n };\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"className\", \"style\", \"min\", \"max\", \"step\", \"defaultValue\", \"value\", \"disabled\", \"readOnly\", \"upHandler\", \"downHandler\", \"keyboard\", \"controls\", \"classNames\", \"stringMode\", \"parser\", \"formatter\", \"precision\", \"decimalSeparator\", \"onChange\", \"onInput\", \"onPressEnter\", \"onStep\"],\n _excluded2 = [\"disabled\", \"style\", \"prefixCls\", \"value\", \"prefix\", \"suffix\", \"addonBefore\", \"addonAfter\", \"classes\", \"className\", \"classNames\"];\nimport getMiniDecimal, { getNumberPrecision, num2str, toFixed, validateNumber } from '@rc-component/mini-decimal';\nimport clsx from 'classnames';\nimport { BaseInput } from 'rc-input';\nimport { useLayoutUpdateEffect } from \"rc-util/es/hooks/useLayoutEffect\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport useCursor from \"./hooks/useCursor\";\nimport StepHandler from \"./StepHandler\";\nimport { getDecupleSteps } from \"./utils/numberUtil\";\nimport { triggerFocus } from \"rc-input/es/utils/commonUtils\";\nimport useFrame from \"./hooks/useFrame\";\n/**\n * We support `stringMode` which need handle correct type when user call in onChange\n * format max or min value\n * 1. if isInvalid return null\n * 2. if precision is undefined, return decimal\n * 3. format with precision\n * I. if max > 0, round down with precision. Example: max= 3.5, precision=0 afterFormat: 3\n * II. if max < 0, round up with precision. Example: max= -3.5, precision=0 afterFormat: -4\n * III. if min > 0, round up with precision. Example: min= 3.5, precision=0 afterFormat: 4\n * IV. if min < 0, round down with precision. Example: max= -3.5, precision=0 afterFormat: -3\n */\nvar getDecimalValue = function getDecimalValue(stringMode, decimalValue) {\n if (stringMode || decimalValue.isEmpty()) {\n return decimalValue.toString();\n }\n return decimalValue.toNumber();\n};\nvar getDecimalIfValidate = function getDecimalIfValidate(value) {\n var decimal = getMiniDecimal(value);\n return decimal.isInvalidate() ? null : decimal;\n};\nvar InternalInputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _clsx;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-input-number' : _props$prefixCls,\n className = props.className,\n style = props.style,\n min = props.min,\n max = props.max,\n _props$step = props.step,\n step = _props$step === void 0 ? 1 : _props$step,\n defaultValue = props.defaultValue,\n value = props.value,\n disabled = props.disabled,\n readOnly = props.readOnly,\n upHandler = props.upHandler,\n downHandler = props.downHandler,\n keyboard = props.keyboard,\n _props$controls = props.controls,\n controls = _props$controls === void 0 ? true : _props$controls,\n classNames = props.classNames,\n stringMode = props.stringMode,\n parser = props.parser,\n formatter = props.formatter,\n precision = props.precision,\n decimalSeparator = props.decimalSeparator,\n onChange = props.onChange,\n onInput = props.onInput,\n onPressEnter = props.onPressEnter,\n onStep = props.onStep,\n inputProps = _objectWithoutProperties(props, _excluded);\n var inputClassName = \"\".concat(prefixCls, \"-input\");\n var inputRef = React.useRef(null);\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n focus = _React$useState2[0],\n setFocus = _React$useState2[1];\n var userTypingRef = React.useRef(false);\n var compositionRef = React.useRef(false);\n var shiftKeyRef = React.useRef(false);\n\n // ============================ Value =============================\n // Real value control\n var _React$useState3 = React.useState(function () {\n return getMiniDecimal(value !== null && value !== void 0 ? value : defaultValue);\n }),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n decimalValue = _React$useState4[0],\n setDecimalValue = _React$useState4[1];\n function setUncontrolledDecimalValue(newDecimal) {\n if (value === undefined) {\n setDecimalValue(newDecimal);\n }\n }\n\n // ====================== Parser & Formatter ======================\n /**\n * `precision` is used for formatter & onChange.\n * It will auto generate by `value` & `step`.\n * But it will not block user typing.\n *\n * Note: Auto generate `precision` is used for legacy logic.\n * We should remove this since we already support high precision with BigInt.\n *\n * @param number Provide which number should calculate precision\n * @param userTyping Change by user typing\n */\n var getPrecision = React.useCallback(function (numStr, userTyping) {\n if (userTyping) {\n return undefined;\n }\n if (precision >= 0) {\n return precision;\n }\n return Math.max(getNumberPrecision(numStr), getNumberPrecision(step));\n }, [precision, step]);\n\n // >>> Parser\n var mergedParser = React.useCallback(function (num) {\n var numStr = String(num);\n if (parser) {\n return parser(numStr);\n }\n var parsedStr = numStr;\n if (decimalSeparator) {\n parsedStr = parsedStr.replace(decimalSeparator, '.');\n }\n\n // [Legacy] We still support auto convert `$ 123,456` to `123456`\n return parsedStr.replace(/[^\\w.-]+/g, '');\n }, [parser, decimalSeparator]);\n\n // >>> Formatter\n var inputValueRef = React.useRef('');\n var mergedFormatter = React.useCallback(function (number, userTyping) {\n if (formatter) {\n return formatter(number, {\n userTyping: userTyping,\n input: String(inputValueRef.current)\n });\n }\n var str = typeof number === 'number' ? num2str(number) : number;\n\n // User typing will not auto format with precision directly\n if (!userTyping) {\n var mergedPrecision = getPrecision(str, userTyping);\n if (validateNumber(str) && (decimalSeparator || mergedPrecision >= 0)) {\n // Separator\n var separatorStr = decimalSeparator || '.';\n str = toFixed(str, separatorStr, mergedPrecision);\n }\n }\n return str;\n }, [formatter, getPrecision, decimalSeparator]);\n\n // ========================== InputValue ==========================\n /**\n * Input text value control\n *\n * User can not update input content directly. It updates with follow rules by priority:\n * 1. controlled `value` changed\n * * [SPECIAL] Typing like `1.` should not immediately convert to `1`\n * 2. User typing with format (not precision)\n * 3. Blur or Enter trigger revalidate\n */\n var _React$useState5 = React.useState(function () {\n var initValue = defaultValue !== null && defaultValue !== void 0 ? defaultValue : value;\n if (decimalValue.isInvalidate() && ['string', 'number'].includes(_typeof(initValue))) {\n return Number.isNaN(initValue) ? '' : initValue;\n }\n return mergedFormatter(decimalValue.toString(), false);\n }),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n inputValue = _React$useState6[0],\n setInternalInputValue = _React$useState6[1];\n inputValueRef.current = inputValue;\n\n // Should always be string\n function setInputValue(newValue, userTyping) {\n setInternalInputValue(mergedFormatter(\n // Invalidate number is sometime passed by external control, we should let it go\n // Otherwise is controlled by internal interactive logic which check by userTyping\n // You can ref 'show limited value when input is not focused' test for more info.\n newValue.isInvalidate() ? newValue.toString(false) : newValue.toString(!userTyping), userTyping));\n }\n\n // >>> Max & Min limit\n var maxDecimal = React.useMemo(function () {\n return getDecimalIfValidate(max);\n }, [max, precision]);\n var minDecimal = React.useMemo(function () {\n return getDecimalIfValidate(min);\n }, [min, precision]);\n var upDisabled = React.useMemo(function () {\n if (!maxDecimal || !decimalValue || decimalValue.isInvalidate()) {\n return false;\n }\n return maxDecimal.lessEquals(decimalValue);\n }, [maxDecimal, decimalValue]);\n var downDisabled = React.useMemo(function () {\n if (!minDecimal || !decimalValue || decimalValue.isInvalidate()) {\n return false;\n }\n return decimalValue.lessEquals(minDecimal);\n }, [minDecimal, decimalValue]);\n\n // Cursor controller\n var _useCursor = useCursor(inputRef.current, focus),\n _useCursor2 = _slicedToArray(_useCursor, 2),\n recordCursor = _useCursor2[0],\n restoreCursor = _useCursor2[1];\n\n // ============================= Data =============================\n /**\n * Find target value closet within range.\n * e.g. [11, 28]:\n * 3 => 11\n * 23 => 23\n * 99 => 28\n */\n var getRangeValue = function getRangeValue(target) {\n // target > max\n if (maxDecimal && !target.lessEquals(maxDecimal)) {\n return maxDecimal;\n }\n\n // target < min\n if (minDecimal && !minDecimal.lessEquals(target)) {\n return minDecimal;\n }\n return null;\n };\n\n /**\n * Check value is in [min, max] range\n */\n var isInRange = function isInRange(target) {\n return !getRangeValue(target);\n };\n\n /**\n * Trigger `onChange` if value validated and not equals of origin.\n * Return the value that re-align in range.\n */\n var triggerValueUpdate = function triggerValueUpdate(newValue, userTyping) {\n var updateValue = newValue;\n var isRangeValidate = isInRange(updateValue) || updateValue.isEmpty();\n\n // Skip align value when trigger value is empty.\n // We just trigger onChange(null)\n // This should not block user typing\n if (!updateValue.isEmpty() && !userTyping) {\n // Revert value in range if needed\n updateValue = getRangeValue(updateValue) || updateValue;\n isRangeValidate = true;\n }\n if (!readOnly && !disabled && isRangeValidate) {\n var numStr = updateValue.toString();\n var mergedPrecision = getPrecision(numStr, userTyping);\n if (mergedPrecision >= 0) {\n updateValue = getMiniDecimal(toFixed(numStr, '.', mergedPrecision));\n\n // When to fixed. The value may out of min & max range.\n // 4 in [0, 3.8] => 3.8 => 4 (toFixed)\n if (!isInRange(updateValue)) {\n updateValue = getMiniDecimal(toFixed(numStr, '.', mergedPrecision, true));\n }\n }\n\n // Trigger event\n if (!updateValue.equals(decimalValue)) {\n setUncontrolledDecimalValue(updateValue);\n onChange === null || onChange === void 0 ? void 0 : onChange(updateValue.isEmpty() ? null : getDecimalValue(stringMode, updateValue));\n\n // Reformat input if value is not controlled\n if (value === undefined) {\n setInputValue(updateValue, userTyping);\n }\n }\n return updateValue;\n }\n return decimalValue;\n };\n\n // ========================== User Input ==========================\n var onNextPromise = useFrame();\n\n // >>> Collect input value\n var collectInputValue = function collectInputValue(inputStr) {\n recordCursor();\n\n // Update inputValue in case input can not parse as number\n // Refresh ref value immediately since it may used by formatter\n inputValueRef.current = inputStr;\n setInternalInputValue(inputStr);\n\n // Parse number\n if (!compositionRef.current) {\n var finalValue = mergedParser(inputStr);\n var finalDecimal = getMiniDecimal(finalValue);\n if (!finalDecimal.isNaN()) {\n triggerValueUpdate(finalDecimal, true);\n }\n }\n\n // Trigger onInput later to let user customize value if they want to handle something after onChange\n onInput === null || onInput === void 0 ? void 0 : onInput(inputStr);\n\n // optimize for chinese input experience\n // https://github.com/ant-design/ant-design/issues/8196\n onNextPromise(function () {\n var nextInputStr = inputStr;\n if (!parser) {\n nextInputStr = inputStr.replace(/。/g, '.');\n }\n if (nextInputStr !== inputStr) {\n collectInputValue(nextInputStr);\n }\n });\n };\n\n // >>> Composition\n var onCompositionStart = function onCompositionStart() {\n compositionRef.current = true;\n };\n var onCompositionEnd = function onCompositionEnd() {\n compositionRef.current = false;\n collectInputValue(inputRef.current.value);\n };\n\n // >>> Input\n var onInternalInput = function onInternalInput(e) {\n collectInputValue(e.target.value);\n };\n\n // ============================= Step =============================\n var onInternalStep = function onInternalStep(up) {\n var _inputRef$current;\n // Ignore step since out of range\n if (up && upDisabled || !up && downDisabled) {\n return;\n }\n\n // Clear typing status since it may be caused by up & down key.\n // We should sync with input value.\n userTypingRef.current = false;\n var stepDecimal = getMiniDecimal(shiftKeyRef.current ? getDecupleSteps(step) : step);\n if (!up) {\n stepDecimal = stepDecimal.negate();\n }\n var target = (decimalValue || getMiniDecimal(0)).add(stepDecimal.toString());\n var updatedValue = triggerValueUpdate(target, false);\n onStep === null || onStep === void 0 ? void 0 : onStep(getDecimalValue(stringMode, updatedValue), {\n offset: shiftKeyRef.current ? getDecupleSteps(step) : step,\n type: up ? 'up' : 'down'\n });\n (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();\n };\n\n // ============================ Flush =============================\n /**\n * Flush current input content to trigger value change & re-formatter input if needed.\n * This will always flush input value for update.\n * If it's invalidate, will fallback to last validate value.\n */\n var flushInputValue = function flushInputValue(userTyping) {\n var parsedValue = getMiniDecimal(mergedParser(inputValue));\n var formatValue = parsedValue;\n if (!parsedValue.isNaN()) {\n // Only validate value or empty value can be re-fill to inputValue\n // Reassign the formatValue within ranged of trigger control\n formatValue = triggerValueUpdate(parsedValue, userTyping);\n } else {\n formatValue = triggerValueUpdate(decimalValue, userTyping);\n }\n if (value !== undefined) {\n // Reset back with controlled value first\n setInputValue(decimalValue, false);\n } else if (!formatValue.isNaN()) {\n // Reset input back since no validate value\n setInputValue(formatValue, false);\n }\n };\n\n // Solve the issue of the event triggering sequence when entering numbers in chinese input (Safari)\n var onBeforeInput = function onBeforeInput() {\n userTypingRef.current = true;\n };\n var onKeyDown = function onKeyDown(event) {\n var key = event.key,\n shiftKey = event.shiftKey;\n userTypingRef.current = true;\n shiftKeyRef.current = shiftKey;\n if (key === 'Enter') {\n if (!compositionRef.current) {\n userTypingRef.current = false;\n }\n flushInputValue(false);\n onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(event);\n }\n if (keyboard === false) {\n return;\n }\n\n // Do step\n if (!compositionRef.current && ['Up', 'ArrowUp', 'Down', 'ArrowDown'].includes(key)) {\n onInternalStep(key === 'Up' || key === 'ArrowUp');\n event.preventDefault();\n }\n };\n var onKeyUp = function onKeyUp() {\n userTypingRef.current = false;\n shiftKeyRef.current = false;\n };\n\n // >>> Focus & Blur\n var onBlur = function onBlur() {\n flushInputValue(false);\n setFocus(false);\n userTypingRef.current = false;\n };\n\n // ========================== Controlled ==========================\n // Input by precision\n useLayoutUpdateEffect(function () {\n if (!decimalValue.isInvalidate()) {\n setInputValue(decimalValue, false);\n }\n }, [precision]);\n\n // Input by value\n useLayoutUpdateEffect(function () {\n var newValue = getMiniDecimal(value);\n setDecimalValue(newValue);\n var currentParsedValue = getMiniDecimal(mergedParser(inputValue));\n\n // When user typing from `1.2` to `1.`, we should not convert to `1` immediately.\n // But let it go if user set `formatter`\n if (!newValue.equals(currentParsedValue) || !userTypingRef.current || formatter) {\n // Update value as effect\n setInputValue(newValue, userTypingRef.current);\n }\n }, [value]);\n\n // ============================ Cursor ============================\n useLayoutUpdateEffect(function () {\n if (formatter) {\n restoreCursor();\n }\n }, [inputValue]);\n\n // ============================ Render ============================\n return /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(prefixCls, classNames === null || classNames === void 0 ? void 0 : classNames.input, className, (_clsx = {}, _defineProperty(_clsx, \"\".concat(prefixCls, \"-focused\"), focus), _defineProperty(_clsx, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_clsx, \"\".concat(prefixCls, \"-readonly\"), readOnly), _defineProperty(_clsx, \"\".concat(prefixCls, \"-not-a-number\"), decimalValue.isNaN()), _defineProperty(_clsx, \"\".concat(prefixCls, \"-out-of-range\"), !decimalValue.isInvalidate() && !isInRange(decimalValue)), _clsx)),\n style: style,\n onFocus: function onFocus() {\n setFocus(true);\n },\n onBlur: onBlur,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onCompositionStart: onCompositionStart,\n onCompositionEnd: onCompositionEnd,\n onBeforeInput: onBeforeInput\n }, controls && /*#__PURE__*/React.createElement(StepHandler, {\n prefixCls: prefixCls,\n upNode: upHandler,\n downNode: downHandler,\n upDisabled: upDisabled,\n downDisabled: downDisabled,\n onStep: onInternalStep\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(inputClassName, \"-wrap\")\n }, /*#__PURE__*/React.createElement(\"input\", _extends({\n autoComplete: \"off\",\n role: \"spinbutton\",\n \"aria-valuemin\": min,\n \"aria-valuemax\": max,\n \"aria-valuenow\": decimalValue.isInvalidate() ? null : decimalValue.toString(),\n step: step\n }, inputProps, {\n ref: composeRef(inputRef, ref),\n className: inputClassName,\n value: inputValue,\n onChange: onInternalInput,\n disabled: disabled,\n readOnly: readOnly\n }))));\n});\nvar InputNumber = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var disabled = props.disabled,\n style = props.style,\n prefixCls = props.prefixCls,\n value = props.value,\n prefix = props.prefix,\n suffix = props.suffix,\n addonBefore = props.addonBefore,\n addonAfter = props.addonAfter,\n classes = props.classes,\n className = props.className,\n classNames = props.classNames,\n rest = _objectWithoutProperties(props, _excluded2);\n var inputFocusRef = React.useRef(null);\n var focus = function focus(option) {\n if (inputFocusRef.current) {\n triggerFocus(inputFocusRef.current, option);\n }\n };\n return /*#__PURE__*/React.createElement(BaseInput, {\n inputElement: /*#__PURE__*/React.createElement(InternalInputNumber, _extends({\n prefixCls: prefixCls,\n disabled: disabled,\n classNames: classNames,\n ref: composeRef(inputFocusRef, ref)\n }, rest)),\n className: className,\n triggerFocus: focus,\n prefixCls: prefixCls,\n value: value,\n disabled: disabled,\n style: style,\n prefix: prefix,\n suffix: suffix,\n addonAfter: addonAfter,\n addonBefore: addonBefore,\n classes: classes,\n classNames: classNames,\n components: {\n affixWrapper: 'div',\n groupWrapper: 'div',\n wrapper: 'div',\n groupAddon: 'div'\n }\n });\n});\nInputNumber.displayName = 'InputNumber';\nexport default InputNumber;","import InputNumber from \"./InputNumber\";\nexport default InputNumber;","import { genActiveStyle, genBasicInputStyle, genDisabledStyle, genHoverStyle, genInputGroupStyle, genPlaceholderStyle, genStatusStyle, initInputToken } from '../../input/style';\nimport { resetComponent, resetIcon } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genComponentStyleHook } from '../../theme/internal';\nexport const genRadiusStyle = (_ref, size) => {\n let {\n componentCls,\n borderRadiusSM,\n borderRadiusLG\n } = _ref;\n const borderRadius = size === 'lg' ? borderRadiusLG : borderRadiusSM;\n return {\n [`&-${size}`]: {\n [`${componentCls}-handler-wrap`]: {\n borderStartEndRadius: borderRadius,\n borderEndEndRadius: borderRadius\n },\n [`${componentCls}-handler-up`]: {\n borderStartEndRadius: borderRadius\n },\n [`${componentCls}-handler-down`]: {\n borderEndEndRadius: borderRadius\n }\n }\n };\n};\nconst genInputNumberStyles = token => {\n const {\n componentCls,\n lineWidth,\n lineType,\n colorBorder,\n borderRadius,\n fontSizeLG,\n controlHeightLG,\n controlHeightSM,\n colorError,\n inputPaddingHorizontalSM,\n colorTextDescription,\n motionDurationMid,\n colorPrimary,\n inputPaddingHorizontal,\n inputPaddingVertical,\n colorBgContainer,\n colorTextDisabled,\n borderRadiusSM,\n borderRadiusLG,\n controlWidth,\n handleVisible\n } = token;\n return [{\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), genStatusStyle(token, componentCls)), {\n display: 'inline-block',\n width: controlWidth,\n margin: 0,\n padding: 0,\n border: `${lineWidth}px ${lineType} ${colorBorder}`,\n borderRadius,\n '&-rtl': {\n direction: 'rtl',\n [`${componentCls}-input`]: {\n direction: 'rtl'\n }\n },\n '&-lg': {\n padding: 0,\n fontSize: fontSizeLG,\n borderRadius: borderRadiusLG,\n [`input${componentCls}-input`]: {\n height: controlHeightLG - 2 * lineWidth\n }\n },\n '&-sm': {\n padding: 0,\n borderRadius: borderRadiusSM,\n [`input${componentCls}-input`]: {\n height: controlHeightSM - 2 * lineWidth,\n padding: `0 ${inputPaddingHorizontalSM}px`\n }\n },\n '&:hover': Object.assign({}, genHoverStyle(token)),\n '&-focused': Object.assign({}, genActiveStyle(token)),\n // ===================== Out Of Range =====================\n '&-out-of-range': {\n [`${componentCls}-input-wrap`]: {\n input: {\n color: colorError\n }\n }\n },\n // Style for input-group: input with label, with button or dropdown...\n '&-group': Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genInputGroupStyle(token)), {\n '&-wrapper': {\n display: 'inline-block',\n textAlign: 'start',\n verticalAlign: 'top',\n [`${componentCls}-affix-wrapper`]: {\n width: '100%'\n },\n // Size\n '&-lg': {\n [`${componentCls}-group-addon`]: {\n borderRadius: borderRadiusLG,\n fontSize: token.fontSizeLG\n }\n },\n '&-sm': {\n [`${componentCls}-group-addon`]: {\n borderRadius: borderRadiusSM\n }\n },\n [`${componentCls}-wrapper-disabled > ${componentCls}-group-addon`]: Object.assign({}, genDisabledStyle(token))\n }\n }),\n [`&-disabled ${componentCls}-input`]: {\n cursor: 'not-allowed'\n },\n [componentCls]: {\n '&-input': Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n width: '100%',\n padding: `${inputPaddingVertical}px ${inputPaddingHorizontal}px`,\n textAlign: 'start',\n backgroundColor: 'transparent',\n border: 0,\n borderRadius,\n outline: 0,\n transition: `all ${motionDurationMid} linear`,\n appearance: 'textfield',\n fontSize: 'inherit'\n }), genPlaceholderStyle(token.colorTextPlaceholder)), {\n '&[type=\"number\"]::-webkit-inner-spin-button, &[type=\"number\"]::-webkit-outer-spin-button': {\n margin: 0,\n /* stylelint-disable-next-line property-no-vendor-prefix */\n webkitAppearance: 'none',\n appearance: 'none'\n }\n })\n }\n })\n },\n // Handler\n {\n [componentCls]: Object.assign(Object.assign(Object.assign({\n [`&:hover ${componentCls}-handler-wrap, &-focused ${componentCls}-handler-wrap`]: {\n opacity: 1\n },\n [`${componentCls}-handler-wrap`]: {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineEnd: 0,\n width: token.handleWidth,\n height: '100%',\n background: colorBgContainer,\n borderStartStartRadius: 0,\n borderStartEndRadius: borderRadius,\n borderEndEndRadius: borderRadius,\n borderEndStartRadius: 0,\n opacity: handleVisible === true ? 1 : 0,\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'stretch',\n transition: `opacity ${motionDurationMid} linear ${motionDurationMid}`,\n // Fix input number inside Menu makes icon too large\n // We arise the selector priority by nest selector here\n // https://github.com/ant-design/ant-design/issues/14367\n [`${componentCls}-handler`]: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flex: 'auto',\n height: '40%',\n [`\n ${componentCls}-handler-up-inner,\n ${componentCls}-handler-down-inner\n `]: {\n marginInlineEnd: 0,\n fontSize: token.handleFontSize\n }\n }\n },\n [`${componentCls}-handler`]: {\n height: '50%',\n overflow: 'hidden',\n color: colorTextDescription,\n fontWeight: 'bold',\n lineHeight: 0,\n textAlign: 'center',\n cursor: 'pointer',\n borderInlineStart: `${lineWidth}px ${lineType} ${colorBorder}`,\n transition: `all ${motionDurationMid} linear`,\n '&:active': {\n background: token.colorFillAlter\n },\n // Hover\n '&:hover': {\n height: `60%`,\n [`\n ${componentCls}-handler-up-inner,\n ${componentCls}-handler-down-inner\n `]: {\n color: colorPrimary\n }\n },\n '&-up-inner, &-down-inner': Object.assign(Object.assign({}, resetIcon()), {\n color: colorTextDescription,\n transition: `all ${motionDurationMid} linear`,\n userSelect: 'none'\n })\n },\n [`${componentCls}-handler-up`]: {\n borderStartEndRadius: borderRadius\n },\n [`${componentCls}-handler-down`]: {\n borderBlockStart: `${lineWidth}px ${lineType} ${colorBorder}`,\n borderEndEndRadius: borderRadius\n }\n }, genRadiusStyle(token, 'lg')), genRadiusStyle(token, 'sm')), {\n // Disabled\n '&-disabled, &-readonly': {\n [`${componentCls}-handler-wrap`]: {\n display: 'none'\n },\n [`${componentCls}-input`]: {\n color: 'inherit'\n }\n },\n [`\n ${componentCls}-handler-up-disabled,\n ${componentCls}-handler-down-disabled\n `]: {\n cursor: 'not-allowed'\n },\n [`\n ${componentCls}-handler-up-disabled:hover &-handler-up-inner,\n ${componentCls}-handler-down-disabled:hover &-handler-down-inner\n `]: {\n color: colorTextDisabled\n }\n })\n },\n // Border-less\n {\n [`${componentCls}-borderless`]: {\n borderColor: 'transparent',\n boxShadow: 'none',\n [`${componentCls}-handler-down`]: {\n borderBlockStartWidth: 0\n }\n }\n }];\n};\nconst genAffixWrapperStyles = token => {\n const {\n componentCls,\n inputPaddingVertical,\n inputPaddingHorizontal,\n inputAffixPadding,\n controlWidth,\n borderRadiusLG,\n borderRadiusSM\n } = token;\n return {\n [`${componentCls}-affix-wrapper`]: Object.assign(Object.assign(Object.assign({}, genBasicInputStyle(token)), genStatusStyle(token, `${componentCls}-affix-wrapper`)), {\n // or number handler will cover form status\n position: 'relative',\n display: 'inline-flex',\n width: controlWidth,\n padding: 0,\n paddingInlineStart: inputPaddingHorizontal,\n '&-lg': {\n borderRadius: borderRadiusLG\n },\n '&-sm': {\n borderRadius: borderRadiusSM\n },\n [`&:not(${componentCls}-affix-wrapper-disabled):hover`]: Object.assign(Object.assign({}, genHoverStyle(token)), {\n zIndex: 1\n }),\n '&-focused, &:focus': {\n zIndex: 1\n },\n [`&-disabled > ${componentCls}-disabled`]: {\n background: 'transparent'\n },\n [`> div${componentCls}`]: {\n width: '100%',\n border: 'none',\n outline: 'none',\n [`&${componentCls}-focused`]: {\n boxShadow: 'none !important'\n }\n },\n [`input${componentCls}-input`]: {\n padding: `${inputPaddingVertical}px 0`\n },\n '&::before': {\n display: 'inline-block',\n width: 0,\n visibility: 'hidden',\n content: '\"\\\\a0\"'\n },\n [`${componentCls}-handler-wrap`]: {\n zIndex: 2\n },\n [componentCls]: {\n '&-prefix, &-suffix': {\n display: 'flex',\n flex: 'none',\n alignItems: 'center',\n pointerEvents: 'none'\n },\n '&-prefix': {\n marginInlineEnd: inputAffixPadding\n },\n '&-suffix': {\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineEnd: 0,\n zIndex: 1,\n height: '100%',\n marginInlineEnd: inputPaddingHorizontal,\n marginInlineStart: inputAffixPadding\n }\n }\n })\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('InputNumber', token => {\n const inputNumberToken = initInputToken(token);\n return [genInputNumberStyles(inputNumberToken), genAffixWrapperStyles(inputNumberToken),\n // =====================================================\n // == Space Compact ==\n // =====================================================\n genCompactItemStyle(inputNumberToken)];\n}, token => ({\n controlWidth: 90,\n handleWidth: token.controlHeightSM - token.lineWidth * 2,\n handleFontSize: token.fontSize / 2,\n handleVisible: 'auto'\n}));","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport UpOutlined from \"@ant-design/icons/es/icons/UpOutlined\";\nimport classNames from 'classnames';\nimport RcInputNumber from 'rc-input-number';\nimport * as React from 'react';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport ConfigProvider, { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { FormItemInputContext, NoFormStyle } from '../form/context';\nimport { NoCompactStyle, useCompactItemContext } from '../space/Compact';\nimport useStyle from './style';\nconst InputNumber = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const inputRef = React.useRef(null);\n React.useImperativeHandle(ref, () => inputRef.current);\n const {\n className,\n rootClassName,\n size: customizeSize,\n disabled: customDisabled,\n prefixCls: customizePrefixCls,\n addonBefore,\n addonAfter,\n prefix,\n bordered = true,\n readOnly,\n status: customStatus,\n controls\n } = props,\n others = __rest(props, [\"className\", \"rootClassName\", \"size\", \"disabled\", \"prefixCls\", \"addonBefore\", \"addonAfter\", \"prefix\", \"bordered\", \"readOnly\", \"status\", \"controls\"]);\n const prefixCls = getPrefixCls('input-number', customizePrefixCls);\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n let upIcon = /*#__PURE__*/React.createElement(UpOutlined, {\n className: `${prefixCls}-handler-up-inner`\n });\n let downIcon = /*#__PURE__*/React.createElement(DownOutlined, {\n className: `${prefixCls}-handler-down-inner`\n });\n const controlsTemp = typeof controls === 'boolean' ? controls : undefined;\n if (typeof controls === 'object') {\n upIcon = typeof controls.upIcon === 'undefined' ? upIcon : /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-handler-up-inner`\n }, controls.upIcon);\n downIcon = typeof controls.downIcon === 'undefined' ? downIcon : /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-handler-down-inner`\n }, controls.downIcon);\n }\n const {\n hasFeedback,\n status: contextStatus,\n isFormItemInput,\n feedbackIcon\n } = React.useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n const mergedSize = useSize(ctx => {\n var _a;\n return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;\n });\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n const inputNumberClass = classNames({\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-in-form-item`]: isFormItemInput\n }, getStatusClassNames(prefixCls, mergedStatus), compactItemClassnames, hashId);\n const wrapperClassName = `${prefixCls}-group`;\n const element = /*#__PURE__*/React.createElement(RcInputNumber, Object.assign({\n ref: inputRef,\n disabled: mergedDisabled,\n className: classNames(className, rootClassName),\n upHandler: upIcon,\n downHandler: downIcon,\n prefixCls: prefixCls,\n readOnly: readOnly,\n controls: controlsTemp,\n prefix: prefix,\n suffix: hasFeedback && feedbackIcon,\n addonAfter: addonAfter && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n override: true,\n status: true\n }, addonAfter)),\n addonBefore: addonBefore && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n override: true,\n status: true\n }, addonBefore)),\n classNames: {\n input: inputNumberClass\n },\n classes: {\n affixWrapper: classNames(getStatusClassNames(`${prefixCls}-affix-wrapper`, mergedStatus, hasFeedback), {\n [`${prefixCls}-affix-wrapper-sm`]: mergedSize === 'small',\n [`${prefixCls}-affix-wrapper-lg`]: mergedSize === 'large',\n [`${prefixCls}-affix-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-affix-wrapper-borderless`]: !bordered\n }, hashId),\n wrapper: classNames({\n [`${wrapperClassName}-rtl`]: direction === 'rtl',\n [`${prefixCls}-wrapper-disabled`]: mergedDisabled\n }, hashId),\n group: classNames({\n [`${prefixCls}-group-wrapper-sm`]: mergedSize === 'small',\n [`${prefixCls}-group-wrapper-lg`]: mergedSize === 'large',\n [`${prefixCls}-group-wrapper-rtl`]: direction === 'rtl'\n }, getStatusClassNames(`${prefixCls}-group-wrapper`, mergedStatus, hasFeedback), hashId)\n }\n }, others));\n return wrapSSR(element);\n});\nconst TypedInputNumber = InputNumber;\n/** @private Internal Component. Do not use in your production. */\nconst PureInputNumber = props => /*#__PURE__*/React.createElement(ConfigProvider, {\n theme: {\n components: {\n InputNumber: {\n handleVisible: true\n }\n }\n }\n}, /*#__PURE__*/React.createElement(InputNumber, Object.assign({}, props)));\nif (process.env.NODE_ENV !== 'production') {\n TypedInputNumber.displayName = 'InputNumber';\n}\nTypedInputNumber._InternalPanelDoNotUseOrYouWillBeFired = PureInputNumber;\nexport default TypedInputNumber;","// eslint-disable-next-line import/prefer-default-export\nexport function hasPrefixSuffix(props) {\n return !!(props.prefix || props.suffix || props.allowClear);\n}","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport classNames from 'classnames';\nimport RcInput from 'rc-input';\nimport { composeRef } from \"rc-util/es/ref\";\nimport React, { forwardRef, useContext, useEffect, useRef } from 'react';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { FormItemInputContext, NoFormStyle } from '../form/context';\nimport { NoCompactStyle, useCompactItemContext } from '../space/Compact';\nimport useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';\nimport useStyle from './style';\nimport { hasPrefixSuffix } from './utils';\nexport function triggerFocus(element, option) {\n if (!element) {\n return;\n }\n element.focus(option);\n // Selection content\n const {\n cursor\n } = option || {};\n if (cursor) {\n const len = element.value.length;\n switch (cursor) {\n case 'start':\n element.setSelectionRange(0, 0);\n break;\n case 'end':\n element.setSelectionRange(len, len);\n break;\n default:\n element.setSelectionRange(0, len);\n break;\n }\n }\n}\nconst Input = /*#__PURE__*/forwardRef((props, ref) => {\n var _a;\n const {\n prefixCls: customizePrefixCls,\n bordered = true,\n status: customStatus,\n size: customSize,\n disabled: customDisabled,\n onBlur,\n onFocus,\n suffix,\n allowClear,\n addonAfter,\n addonBefore,\n className,\n style,\n styles,\n rootClassName,\n onChange,\n classNames: classes\n } = props,\n rest = __rest(props, [\"prefixCls\", \"bordered\", \"status\", \"size\", \"disabled\", \"onBlur\", \"onFocus\", \"suffix\", \"allowClear\", \"addonAfter\", \"addonBefore\", \"className\", \"style\", \"styles\", \"rootClassName\", \"onChange\", \"classNames\"]);\n const {\n getPrefixCls,\n direction,\n input\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('input', customizePrefixCls);\n const inputRef = useRef(null);\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n // ===================== Compact Item =====================\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n // ===================== Size =====================\n const mergedSize = useSize(ctx => {\n var _a;\n return (_a = customSize !== null && customSize !== void 0 ? customSize : compactSize) !== null && _a !== void 0 ? _a : ctx;\n });\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n // ===================== Status =====================\n const {\n status: contextStatus,\n hasFeedback,\n feedbackIcon\n } = useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n // ===================== Focus warning =====================\n const inputHasPrefixSuffix = hasPrefixSuffix(props) || !!hasFeedback;\n const prevHasPrefixSuffix = useRef(inputHasPrefixSuffix);\n useEffect(() => {\n var _a;\n if (inputHasPrefixSuffix && !prevHasPrefixSuffix.current) {\n process.env.NODE_ENV !== \"production\" ? warning(document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input), 'Input', `When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ`) : void 0;\n }\n prevHasPrefixSuffix.current = inputHasPrefixSuffix;\n }, [inputHasPrefixSuffix]);\n // ===================== Remove Password value =====================\n const removePasswordTimeout = useRemovePasswordTimeout(inputRef, true);\n const handleBlur = e => {\n removePasswordTimeout();\n onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);\n };\n const handleFocus = e => {\n removePasswordTimeout();\n onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);\n };\n const handleChange = e => {\n removePasswordTimeout();\n onChange === null || onChange === void 0 ? void 0 : onChange(e);\n };\n const suffixNode = (hasFeedback || suffix) && /*#__PURE__*/React.createElement(React.Fragment, null, suffix, hasFeedback && feedbackIcon);\n // Allow clear\n let mergedAllowClear;\n if (typeof allowClear === 'object' && (allowClear === null || allowClear === void 0 ? void 0 : allowClear.clearIcon)) {\n mergedAllowClear = allowClear;\n } else if (allowClear) {\n mergedAllowClear = {\n clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null)\n };\n }\n return wrapSSR( /*#__PURE__*/React.createElement(RcInput, Object.assign({\n ref: composeRef(ref, inputRef),\n prefixCls: prefixCls,\n autoComplete: input === null || input === void 0 ? void 0 : input.autoComplete\n }, rest, {\n disabled: mergedDisabled,\n onBlur: handleBlur,\n onFocus: handleFocus,\n style: Object.assign(Object.assign({}, input === null || input === void 0 ? void 0 : input.style), style),\n styles: Object.assign(Object.assign({}, input === null || input === void 0 ? void 0 : input.styles), styles),\n suffix: suffixNode,\n allowClear: mergedAllowClear,\n className: classNames(className, rootClassName, compactItemClassnames, input === null || input === void 0 ? void 0 : input.className),\n onChange: handleChange,\n addonAfter: addonAfter && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n override: true,\n status: true\n }, addonAfter)),\n addonBefore: addonBefore && /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n override: true,\n status: true\n }, addonBefore)),\n classNames: Object.assign(Object.assign(Object.assign({}, classes), input === null || input === void 0 ? void 0 : input.classNames), {\n input: classNames({\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-borderless`]: !bordered\n }, !inputHasPrefixSuffix && getStatusClassNames(prefixCls, mergedStatus), classes === null || classes === void 0 ? void 0 : classes.input, (_a = input === null || input === void 0 ? void 0 : input.classNames) === null || _a === void 0 ? void 0 : _a.input, hashId)\n }),\n classes: {\n affixWrapper: classNames({\n [`${prefixCls}-affix-wrapper-sm`]: mergedSize === 'small',\n [`${prefixCls}-affix-wrapper-lg`]: mergedSize === 'large',\n [`${prefixCls}-affix-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-affix-wrapper-borderless`]: !bordered\n }, getStatusClassNames(`${prefixCls}-affix-wrapper`, mergedStatus, hasFeedback), hashId),\n wrapper: classNames({\n [`${prefixCls}-group-rtl`]: direction === 'rtl'\n }, hashId),\n group: classNames({\n [`${prefixCls}-group-wrapper-sm`]: mergedSize === 'small',\n [`${prefixCls}-group-wrapper-lg`]: mergedSize === 'large',\n [`${prefixCls}-group-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-group-wrapper-disabled`]: mergedDisabled\n }, getStatusClassNames(`${prefixCls}-group-wrapper`, mergedStatus, hasFeedback), hashId)\n }\n })));\n});\nexport default Input;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport classNames from 'classnames';\nimport RcTextArea from 'rc-textarea';\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useSize from '../config-provider/hooks/useSize';\nimport { FormItemInputContext } from '../form/context';\nimport { triggerFocus } from './Input';\nimport useStyle from './style';\nconst TextArea = /*#__PURE__*/forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n bordered = true,\n size: customizeSize,\n disabled: customDisabled,\n status: customStatus,\n allowClear,\n showCount,\n classNames: classes\n } = props,\n rest = __rest(props, [\"prefixCls\", \"bordered\", \"size\", \"disabled\", \"status\", \"allowClear\", \"showCount\", \"classNames\"]);\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n // ===================== Size =====================\n const mergedSize = useSize(customizeSize);\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n // ===================== Status =====================\n const {\n status: contextStatus,\n hasFeedback,\n feedbackIcon\n } = React.useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n // ===================== Ref =====================\n const innerRef = React.useRef(null);\n React.useImperativeHandle(ref, () => {\n var _a;\n return {\n resizableTextArea: (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea,\n focus: option => {\n var _a, _b;\n triggerFocus((_b = (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) === null || _b === void 0 ? void 0 : _b.textArea, option);\n },\n blur: () => {\n var _a;\n return (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.blur();\n }\n };\n });\n const prefixCls = getPrefixCls('input', customizePrefixCls);\n // Allow clear\n let mergedAllowClear;\n if (typeof allowClear === 'object' && (allowClear === null || allowClear === void 0 ? void 0 : allowClear.clearIcon)) {\n mergedAllowClear = allowClear;\n } else if (allowClear) {\n mergedAllowClear = {\n clearIcon: /*#__PURE__*/React.createElement(CloseCircleFilled, null)\n };\n }\n // ===================== Style =====================\n const [wrapSSR, hashId] = useStyle(prefixCls);\n return wrapSSR( /*#__PURE__*/React.createElement(RcTextArea, Object.assign({}, rest, {\n disabled: mergedDisabled,\n allowClear: mergedAllowClear,\n classes: {\n affixWrapper: classNames(`${prefixCls}-textarea-affix-wrapper`, {\n [`${prefixCls}-affix-wrapper-rtl`]: direction === 'rtl',\n [`${prefixCls}-affix-wrapper-borderless`]: !bordered,\n [`${prefixCls}-affix-wrapper-sm`]: mergedSize === 'small',\n [`${prefixCls}-affix-wrapper-lg`]: mergedSize === 'large',\n [`${prefixCls}-textarea-show-count`]: showCount\n }, getStatusClassNames(`${prefixCls}-affix-wrapper`, mergedStatus), hashId)\n },\n classNames: Object.assign(Object.assign({}, classes), {\n textarea: classNames({\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-lg`]: mergedSize === 'large'\n }, getStatusClassNames(prefixCls, mergedStatus), hashId, classes === null || classes === void 0 ? void 0 : classes.textarea)\n }),\n prefixCls: prefixCls,\n suffix: hasFeedback && /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-textarea-suffix`\n }, feedbackIcon),\n showCount: showCount,\n ref: innerRef\n })));\n});\nexport default TextArea;","import { useEffect, useRef } from 'react';\nexport default function useRemovePasswordTimeout(inputRef, triggerOnMount) {\n const removePasswordTimeoutRef = useRef([]);\n const removePasswordTimeout = () => {\n removePasswordTimeoutRef.current.push(setTimeout(() => {\n var _a, _b, _c, _d;\n if (((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) && ((_b = inputRef.current) === null || _b === void 0 ? void 0 : _b.input.getAttribute('type')) === 'password' && ((_c = inputRef.current) === null || _c === void 0 ? void 0 : _c.input.hasAttribute('value'))) {\n (_d = inputRef.current) === null || _d === void 0 ? void 0 : _d.input.removeAttribute('value');\n }\n }));\n };\n useEffect(() => {\n if (triggerOnMount) {\n removePasswordTimeout();\n }\n return () => removePasswordTimeoutRef.current.forEach(timer => {\n if (timer) {\n clearTimeout(timer);\n }\n });\n }, []);\n return removePasswordTimeout;\n}","import classNames from 'classnames';\nimport * as React from 'react';\nimport { useContext, useMemo } from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { FormItemInputContext } from '../form/context';\nimport useStyle from './style';\nconst Group = props => {\n const {\n getPrefixCls,\n direction\n } = useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className\n } = props;\n const prefixCls = getPrefixCls('input-group', customizePrefixCls);\n const inputPrefixCls = getPrefixCls('input');\n const [wrapSSR, hashId] = useStyle(inputPrefixCls);\n const cls = classNames(prefixCls, {\n [`${prefixCls}-lg`]: props.size === 'large',\n [`${prefixCls}-sm`]: props.size === 'small',\n [`${prefixCls}-compact`]: props.compact,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, hashId, className);\n const formItemContext = useContext(FormItemInputContext);\n const groupFormItemContext = useMemo(() => Object.assign(Object.assign({}, formItemContext), {\n isFormItemInput: false\n }), [formItemContext]);\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Input.Group', `'Input.Group' is deprecated. Please use 'Space.Compact' instead.`) : void 0;\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"span\", {\n className: cls,\n style: props.style,\n onMouseEnter: props.onMouseEnter,\n onMouseLeave: props.onMouseLeave,\n onFocus: props.onFocus,\n onBlur: props.onBlur\n }, /*#__PURE__*/React.createElement(FormItemInputContext.Provider, {\n value: groupFormItemContext\n }, props.children)));\n};\nexport default Group;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport EyeInvisibleOutlined from \"@ant-design/icons/es/icons/EyeInvisibleOutlined\";\nimport EyeOutlined from \"@ant-design/icons/es/icons/EyeOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { useRef, useState } from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useRemovePasswordTimeout from './hooks/useRemovePasswordTimeout';\nimport Input from './Input';\nconst defaultIconRender = visible => visible ? /*#__PURE__*/React.createElement(EyeOutlined, null) : /*#__PURE__*/React.createElement(EyeInvisibleOutlined, null);\nconst ActionMap = {\n click: 'onClick',\n hover: 'onMouseOver'\n};\nconst Password = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n visibilityToggle = true\n } = props;\n const visibilityControlled = typeof visibilityToggle === 'object' && visibilityToggle.visible !== undefined;\n const [visible, setVisible] = useState(() => visibilityControlled ? visibilityToggle.visible : false);\n const inputRef = useRef(null);\n React.useEffect(() => {\n if (visibilityControlled) {\n setVisible(visibilityToggle.visible);\n }\n }, [visibilityControlled, visibilityToggle]);\n // Remove Password value\n const removePasswordTimeout = useRemovePasswordTimeout(inputRef);\n const onVisibleChange = () => {\n const {\n disabled\n } = props;\n if (disabled) {\n return;\n }\n if (visible) {\n removePasswordTimeout();\n }\n setVisible(prevState => {\n var _a;\n const newState = !prevState;\n if (typeof visibilityToggle === 'object') {\n (_a = visibilityToggle.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(visibilityToggle, newState);\n }\n return newState;\n });\n };\n const getIcon = prefixCls => {\n const {\n action = 'click',\n iconRender = defaultIconRender\n } = props;\n const iconTrigger = ActionMap[action] || '';\n const icon = iconRender(visible);\n const iconProps = {\n [iconTrigger]: onVisibleChange,\n className: `${prefixCls}-icon`,\n key: 'passwordIcon',\n onMouseDown: e => {\n // Prevent focused state lost\n // https://github.com/ant-design/ant-design/issues/15173\n e.preventDefault();\n },\n onMouseUp: e => {\n // Prevent caret position change\n // https://github.com/ant-design/ant-design/issues/23524\n e.preventDefault();\n }\n };\n return /*#__PURE__*/React.cloneElement( /*#__PURE__*/React.isValidElement(icon) ? icon : /*#__PURE__*/React.createElement(\"span\", null, icon), iconProps);\n };\n const {\n className,\n prefixCls: customizePrefixCls,\n inputPrefixCls: customizeInputPrefixCls,\n size\n } = props,\n restProps = __rest(props, [\"className\", \"prefixCls\", \"inputPrefixCls\", \"size\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);\n const prefixCls = getPrefixCls('input-password', customizePrefixCls);\n const suffixIcon = visibilityToggle && getIcon(prefixCls);\n const inputClassName = classNames(prefixCls, className, {\n [`${prefixCls}-${size}`]: !!size\n });\n const omittedProps = Object.assign(Object.assign({}, omit(restProps, ['suffix', 'iconRender', 'visibilityToggle'])), {\n type: visible ? 'text' : 'password',\n className: inputClassName,\n prefixCls: inputPrefixCls,\n suffix: suffixIcon\n });\n if (size) {\n omittedProps.size = size;\n }\n return /*#__PURE__*/React.createElement(Input, Object.assign({\n ref: composeRef(ref, inputRef)\n }, omittedProps));\n});\nif (process.env.NODE_ENV !== 'production') {\n Password.displayName = 'Password';\n}\nexport default Password;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport SearchOutlined from \"@ant-design/icons/es/icons/SearchOutlined\";\nimport classNames from 'classnames';\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { cloneElement } from '../_util/reactNode';\nimport Button from '../button';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport { useCompactItemContext } from '../space/Compact';\nimport Input from './Input';\nconst Search = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n inputPrefixCls: customizeInputPrefixCls,\n className,\n size: customizeSize,\n suffix,\n enterButton = false,\n addonAfter,\n loading,\n disabled,\n onSearch: customOnSearch,\n onChange: customOnChange,\n onCompositionStart,\n onCompositionEnd\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"inputPrefixCls\", \"className\", \"size\", \"suffix\", \"enterButton\", \"addonAfter\", \"loading\", \"disabled\", \"onSearch\", \"onChange\", \"onCompositionStart\", \"onCompositionEnd\"]);\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const composedRef = React.useRef(false);\n const prefixCls = getPrefixCls('input-search', customizePrefixCls);\n const inputPrefixCls = getPrefixCls('input', customizeInputPrefixCls);\n const {\n compactSize\n } = useCompactItemContext(prefixCls, direction);\n const size = useSize(ctx => {\n var _a;\n return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;\n });\n const inputRef = React.useRef(null);\n const onChange = e => {\n if (e && e.target && e.type === 'click' && customOnSearch) {\n customOnSearch(e.target.value, e);\n }\n if (customOnChange) {\n customOnChange(e);\n }\n };\n const onMouseDown = e => {\n var _a;\n if (document.activeElement === ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input)) {\n e.preventDefault();\n }\n };\n const onSearch = e => {\n var _a, _b;\n if (customOnSearch) {\n customOnSearch((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.input) === null || _b === void 0 ? void 0 : _b.value, e);\n }\n };\n const onPressEnter = e => {\n if (composedRef.current || loading) {\n return;\n }\n onSearch(e);\n };\n const searchIcon = typeof enterButton === 'boolean' ? /*#__PURE__*/React.createElement(SearchOutlined, null) : null;\n const btnClassName = `${prefixCls}-button`;\n let button;\n const enterButtonAsElement = enterButton || {};\n const isAntdButton = enterButtonAsElement.type && enterButtonAsElement.type.__ANT_BUTTON === true;\n if (isAntdButton || enterButtonAsElement.type === 'button') {\n button = cloneElement(enterButtonAsElement, Object.assign({\n onMouseDown,\n onClick: e => {\n var _a, _b;\n (_b = (_a = enterButtonAsElement === null || enterButtonAsElement === void 0 ? void 0 : enterButtonAsElement.props) === null || _a === void 0 ? void 0 : _a.onClick) === null || _b === void 0 ? void 0 : _b.call(_a, e);\n onSearch(e);\n },\n key: 'enterButton'\n }, isAntdButton ? {\n className: btnClassName,\n size\n } : {}));\n } else {\n button = /*#__PURE__*/React.createElement(Button, {\n className: btnClassName,\n type: enterButton ? 'primary' : undefined,\n size: size,\n disabled: disabled,\n key: \"enterButton\",\n onMouseDown: onMouseDown,\n onClick: onSearch,\n loading: loading,\n icon: searchIcon\n }, enterButton);\n }\n if (addonAfter) {\n button = [button, cloneElement(addonAfter, {\n key: 'addonAfter'\n })];\n }\n const cls = classNames(prefixCls, {\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-${size}`]: !!size,\n [`${prefixCls}-with-button`]: !!enterButton\n }, className);\n const handleOnCompositionStart = e => {\n composedRef.current = true;\n onCompositionStart === null || onCompositionStart === void 0 ? void 0 : onCompositionStart(e);\n };\n const handleOnCompositionEnd = e => {\n composedRef.current = false;\n onCompositionEnd === null || onCompositionEnd === void 0 ? void 0 : onCompositionEnd(e);\n };\n return /*#__PURE__*/React.createElement(Input, Object.assign({\n ref: composeRef(inputRef, ref),\n onPressEnter: onPressEnter\n }, restProps, {\n size: size,\n onCompositionStart: handleOnCompositionStart,\n onCompositionEnd: handleOnCompositionEnd,\n prefixCls: inputPrefixCls,\n addonAfter: button,\n suffix: suffix,\n onChange: onChange,\n className: cls,\n disabled: disabled\n }));\n});\nif (process.env.NODE_ENV !== 'production') {\n Search.displayName = 'Search';\n}\nexport default Search;","'use client';\n\nimport Group from './Group';\nimport InternalInput from './Input';\nimport Password from './Password';\nimport Search from './Search';\nimport TextArea from './TextArea';\nconst Input = InternalInput;\nif (process.env.NODE_ENV !== 'production') {\n Input.displayName = 'Input';\n}\nInput.Group = Group;\nInput.Search = Search;\nInput.TextArea = TextArea;\nInput.Password = Password;\nexport default Input;","import { clearFix, resetComponent } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nexport const genPlaceholderStyle = color => ({\n // Firefox\n '&::-moz-placeholder': {\n opacity: 1\n },\n '&::placeholder': {\n color,\n userSelect: 'none' // https://github.com/ant-design/ant-design/pull/32639\n },\n\n '&:placeholder-shown': {\n textOverflow: 'ellipsis'\n }\n});\nexport const genHoverStyle = token => ({\n borderColor: token.inputBorderHoverColor,\n borderInlineEndWidth: token.lineWidth\n});\nexport const genActiveStyle = token => ({\n borderColor: token.inputBorderHoverColor,\n boxShadow: `0 0 0 ${token.controlOutlineWidth}px ${token.controlOutline}`,\n borderInlineEndWidth: token.lineWidth,\n outline: 0\n});\nexport const genDisabledStyle = token => ({\n color: token.colorTextDisabled,\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder,\n boxShadow: 'none',\n cursor: 'not-allowed',\n opacity: 1,\n '&:hover': Object.assign({}, genHoverStyle(mergeToken(token, {\n inputBorderHoverColor: token.colorBorder\n })))\n});\nconst genInputLargeStyle = token => {\n const {\n inputPaddingVerticalLG,\n fontSizeLG,\n lineHeightLG,\n borderRadiusLG,\n inputPaddingHorizontalLG\n } = token;\n return {\n padding: `${inputPaddingVerticalLG}px ${inputPaddingHorizontalLG}px`,\n fontSize: fontSizeLG,\n lineHeight: lineHeightLG,\n borderRadius: borderRadiusLG\n };\n};\nexport const genInputSmallStyle = token => ({\n padding: `${token.inputPaddingVerticalSM}px ${token.controlPaddingHorizontalSM - 1}px`,\n borderRadius: token.borderRadiusSM\n});\nexport const genStatusStyle = (token, parentCls) => {\n const {\n componentCls,\n colorError,\n colorWarning,\n colorErrorOutline,\n colorWarningOutline,\n colorErrorBorderHover,\n colorWarningBorderHover\n } = token;\n return {\n [`&-status-error:not(${parentCls}-disabled):not(${parentCls}-borderless)${parentCls}`]: {\n borderColor: colorError,\n '&:hover': {\n borderColor: colorErrorBorderHover\n },\n '&:focus, &-focused': Object.assign({}, genActiveStyle(mergeToken(token, {\n inputBorderActiveColor: colorError,\n inputBorderHoverColor: colorError,\n controlOutline: colorErrorOutline\n }))),\n [`${componentCls}-prefix, ${componentCls}-suffix`]: {\n color: colorError\n }\n },\n [`&-status-warning:not(${parentCls}-disabled):not(${parentCls}-borderless)${parentCls}`]: {\n borderColor: colorWarning,\n '&:hover': {\n borderColor: colorWarningBorderHover\n },\n '&:focus, &-focused': Object.assign({}, genActiveStyle(mergeToken(token, {\n inputBorderActiveColor: colorWarning,\n inputBorderHoverColor: colorWarning,\n controlOutline: colorWarningOutline\n }))),\n [`${componentCls}-prefix, ${componentCls}-suffix`]: {\n color: colorWarning\n }\n }\n };\n};\nexport const genBasicInputStyle = token => Object.assign(Object.assign({\n position: 'relative',\n display: 'inline-block',\n width: '100%',\n minWidth: 0,\n padding: `${token.inputPaddingVertical}px ${token.inputPaddingHorizontal}px`,\n color: token.colorText,\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n backgroundColor: token.colorBgContainer,\n backgroundImage: 'none',\n borderWidth: token.lineWidth,\n borderStyle: token.lineType,\n borderColor: token.colorBorder,\n borderRadius: token.borderRadius,\n transition: `all ${token.motionDurationMid}`\n}, genPlaceholderStyle(token.colorTextPlaceholder)), {\n '&:hover': Object.assign({}, genHoverStyle(token)),\n '&:focus, &-focused': Object.assign({}, genActiveStyle(token)),\n '&-disabled, &[disabled]': Object.assign({}, genDisabledStyle(token)),\n '&-borderless': {\n '&, &:hover, &:focus, &-focused, &-disabled, &[disabled]': {\n backgroundColor: 'transparent',\n border: 'none',\n boxShadow: 'none'\n }\n },\n // Reset height for `textarea`s\n 'textarea&': {\n maxWidth: '100%',\n height: 'auto',\n minHeight: token.controlHeight,\n lineHeight: token.lineHeight,\n verticalAlign: 'bottom',\n transition: `all ${token.motionDurationSlow}, height 0s`,\n resize: 'vertical'\n },\n // Size\n '&-lg': Object.assign({}, genInputLargeStyle(token)),\n '&-sm': Object.assign({}, genInputSmallStyle(token)),\n // RTL\n '&-rtl': {\n direction: 'rtl'\n },\n '&-textarea-rtl': {\n direction: 'rtl'\n }\n});\nexport const genInputGroupStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return {\n position: 'relative',\n display: 'table',\n width: '100%',\n borderCollapse: 'separate',\n borderSpacing: 0,\n // Undo padding and float of grid classes\n [`&[class*='col-']`]: {\n paddingInlineEnd: token.paddingXS,\n '&:last-child': {\n paddingInlineEnd: 0\n }\n },\n // Sizing options\n [`&-lg ${componentCls}, &-lg > ${componentCls}-group-addon`]: Object.assign({}, genInputLargeStyle(token)),\n [`&-sm ${componentCls}, &-sm > ${componentCls}-group-addon`]: Object.assign({}, genInputSmallStyle(token)),\n // Fix https://github.com/ant-design/ant-design/issues/5754\n [`&-lg ${antCls}-select-single ${antCls}-select-selector`]: {\n height: token.controlHeightLG\n },\n [`&-sm ${antCls}-select-single ${antCls}-select-selector`]: {\n height: token.controlHeightSM\n },\n [`> ${componentCls}`]: {\n display: 'table-cell',\n '&:not(:first-child):not(:last-child)': {\n borderRadius: 0\n }\n },\n [`${componentCls}-group`]: {\n [`&-addon, &-wrap`]: {\n display: 'table-cell',\n width: 1,\n whiteSpace: 'nowrap',\n verticalAlign: 'middle',\n '&:not(:first-child):not(:last-child)': {\n borderRadius: 0\n }\n },\n '&-wrap > *': {\n display: 'block !important'\n },\n '&-addon': {\n position: 'relative',\n padding: `0 ${token.inputPaddingHorizontal}px`,\n color: token.colorText,\n fontWeight: 'normal',\n fontSize: token.fontSize,\n textAlign: 'center',\n backgroundColor: token.colorFillAlter,\n border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,\n borderRadius: token.borderRadius,\n transition: `all ${token.motionDurationSlow}`,\n lineHeight: 1,\n // Reset Select's style in addon\n [`${antCls}-select`]: {\n margin: `-${token.inputPaddingVertical + 1}px -${token.inputPaddingHorizontal}px`,\n [`&${antCls}-select-single:not(${antCls}-select-customize-input)`]: {\n [`${antCls}-select-selector`]: {\n backgroundColor: 'inherit',\n border: `${token.lineWidth}px ${token.lineType} transparent`,\n boxShadow: 'none'\n }\n },\n '&-open, &-focused': {\n [`${antCls}-select-selector`]: {\n color: token.colorPrimary\n }\n }\n },\n // https://github.com/ant-design/ant-design/issues/31333\n [`${antCls}-cascader-picker`]: {\n margin: `-9px -${token.inputPaddingHorizontal}px`,\n backgroundColor: 'transparent',\n [`${antCls}-cascader-input`]: {\n textAlign: 'start',\n border: 0,\n boxShadow: 'none'\n }\n }\n },\n '&-addon:first-child': {\n borderInlineEnd: 0\n },\n '&-addon:last-child': {\n borderInlineStart: 0\n }\n },\n [`${componentCls}`]: {\n width: '100%',\n marginBottom: 0,\n textAlign: 'inherit',\n '&:focus': {\n zIndex: 1,\n borderInlineEndWidth: 1\n },\n '&:hover': {\n zIndex: 1,\n borderInlineEndWidth: 1,\n [`${componentCls}-search-with-button &`]: {\n zIndex: 0\n }\n }\n },\n // Reset rounded corners\n [`> ${componentCls}:first-child, ${componentCls}-group-addon:first-child`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n // Reset Select's style in addon\n [`${antCls}-select ${antCls}-select-selector`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0\n }\n },\n [`> ${componentCls}-affix-wrapper`]: {\n [`&:not(:first-child) ${componentCls}`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n },\n [`&:not(:last-child) ${componentCls}`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0\n }\n },\n [`> ${componentCls}:last-child, ${componentCls}-group-addon:last-child`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0,\n // Reset Select's style in addon\n [`${antCls}-select ${antCls}-select-selector`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n }\n },\n [`${componentCls}-affix-wrapper`]: {\n '&:not(:last-child)': {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n [`${componentCls}-search &`]: {\n borderStartStartRadius: token.borderRadius,\n borderEndStartRadius: token.borderRadius\n }\n },\n [`&:not(:first-child), ${componentCls}-search &:not(:first-child)`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n }\n },\n [`&${componentCls}-group-compact`]: Object.assign(Object.assign({\n display: 'block'\n }, clearFix()), {\n [`${componentCls}-group-addon, ${componentCls}-group-wrap, > ${componentCls}`]: {\n '&:not(:first-child):not(:last-child)': {\n borderInlineEndWidth: token.lineWidth,\n '&:hover': {\n zIndex: 1\n },\n '&:focus': {\n zIndex: 1\n }\n }\n },\n '& > *': {\n display: 'inline-block',\n float: 'none',\n verticalAlign: 'top',\n borderRadius: 0\n },\n [`\n & > ${componentCls}-affix-wrapper,\n & > ${componentCls}-number-affix-wrapper,\n & > ${antCls}-picker-range\n `]: {\n display: 'inline-flex'\n },\n '& > *:not(:last-child)': {\n marginInlineEnd: -token.lineWidth,\n borderInlineEndWidth: token.lineWidth\n },\n // Undo float for .ant-input-group .ant-input\n [`${componentCls}`]: {\n float: 'none'\n },\n // reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input\n [`& > ${antCls}-select > ${antCls}-select-selector,\n & > ${antCls}-select-auto-complete ${componentCls},\n & > ${antCls}-cascader-picker ${componentCls},\n & > ${componentCls}-group-wrapper ${componentCls}`]: {\n borderInlineEndWidth: token.lineWidth,\n borderRadius: 0,\n '&:hover': {\n zIndex: 1\n },\n '&:focus': {\n zIndex: 1\n }\n },\n [`& > ${antCls}-select-focused`]: {\n zIndex: 1\n },\n // update z-index for arrow icon\n [`& > ${antCls}-select > ${antCls}-select-arrow`]: {\n zIndex: 1 // https://github.com/ant-design/ant-design/issues/20371\n },\n [`& > *:first-child,\n & > ${antCls}-select:first-child > ${antCls}-select-selector,\n & > ${antCls}-select-auto-complete:first-child ${componentCls},\n & > ${antCls}-cascader-picker:first-child ${componentCls}`]: {\n borderStartStartRadius: token.borderRadius,\n borderEndStartRadius: token.borderRadius\n },\n [`& > *:last-child,\n & > ${antCls}-select:last-child > ${antCls}-select-selector,\n & > ${antCls}-cascader-picker:last-child ${componentCls},\n & > ${antCls}-cascader-picker-focused:last-child ${componentCls}`]: {\n borderInlineEndWidth: token.lineWidth,\n borderStartEndRadius: token.borderRadius,\n borderEndEndRadius: token.borderRadius\n },\n // https://github.com/ant-design/ant-design/issues/12493\n [`& > ${antCls}-select-auto-complete ${componentCls}`]: {\n verticalAlign: 'top'\n },\n [`${componentCls}-group-wrapper + ${componentCls}-group-wrapper`]: {\n marginInlineStart: -token.lineWidth,\n [`${componentCls}-affix-wrapper`]: {\n borderRadius: 0\n }\n },\n [`${componentCls}-group-wrapper:not(:last-child)`]: {\n [`&${componentCls}-search > ${componentCls}-group`]: {\n [`& > ${componentCls}-group-addon > ${componentCls}-search-button`]: {\n borderRadius: 0\n },\n [`& > ${componentCls}`]: {\n borderStartStartRadius: token.borderRadius,\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n borderEndStartRadius: token.borderRadius\n }\n }\n }\n })\n };\n};\nconst genInputStyle = token => {\n const {\n componentCls,\n controlHeightSM,\n lineWidth\n } = token;\n const FIXED_CHROME_COLOR_HEIGHT = 16;\n const colorSmallPadding = (controlHeightSM - lineWidth * 2 - FIXED_CHROME_COLOR_HEIGHT) / 2;\n return {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genBasicInputStyle(token)), genStatusStyle(token, componentCls)), {\n '&[type=\"color\"]': {\n height: token.controlHeight,\n [`&${componentCls}-lg`]: {\n height: token.controlHeightLG\n },\n [`&${componentCls}-sm`]: {\n height: controlHeightSM,\n paddingTop: colorSmallPadding,\n paddingBottom: colorSmallPadding\n }\n },\n '&[type=\"search\"]::-webkit-search-cancel-button, &[type=\"search\"]::-webkit-search-decoration': {\n '-webkit-appearance': 'none'\n }\n })\n };\n};\nconst genAllowClearStyle = token => {\n const {\n componentCls\n } = token;\n return {\n // ========================= Input =========================\n [`${componentCls}-clear-icon`]: {\n margin: 0,\n color: token.colorTextQuaternary,\n fontSize: token.fontSizeIcon,\n verticalAlign: -1,\n // https://github.com/ant-design/ant-design/pull/18151\n // https://codesandbox.io/s/wizardly-sun-u10br\n cursor: 'pointer',\n transition: `color ${token.motionDurationSlow}`,\n '&:hover': {\n color: token.colorTextTertiary\n },\n '&:active': {\n color: token.colorText\n },\n '&-hidden': {\n visibility: 'hidden'\n },\n '&-has-suffix': {\n margin: `0 ${token.inputAffixPadding}px`\n }\n }\n };\n};\nconst genAffixStyle = token => {\n const {\n componentCls,\n inputAffixPadding,\n colorTextDescription,\n motionDurationSlow,\n colorIcon,\n colorIconHover,\n iconCls\n } = token;\n return {\n [`${componentCls}-affix-wrapper`]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, genBasicInputStyle(token)), {\n display: 'inline-flex',\n [`&:not(${componentCls}-affix-wrapper-disabled):hover`]: Object.assign(Object.assign({}, genHoverStyle(token)), {\n zIndex: 1,\n [`${componentCls}-search-with-button &`]: {\n zIndex: 0\n }\n }),\n '&-focused, &:focus': {\n zIndex: 1\n },\n '&-disabled': {\n [`${componentCls}[disabled]`]: {\n background: 'transparent'\n }\n },\n [`> input${componentCls}`]: {\n padding: 0,\n fontSize: 'inherit',\n border: 'none',\n borderRadius: 0,\n outline: 'none',\n '&::-ms-reveal': {\n display: 'none'\n },\n '&:focus': {\n boxShadow: 'none !important'\n }\n },\n '&::before': {\n display: 'inline-block',\n width: 0,\n visibility: 'hidden',\n content: '\"\\\\a0\"'\n },\n [`${componentCls}`]: {\n '&-prefix, &-suffix': {\n display: 'flex',\n flex: 'none',\n alignItems: 'center',\n '> *:not(:last-child)': {\n marginInlineEnd: token.paddingXS\n }\n },\n '&-show-count-suffix': {\n color: colorTextDescription\n },\n '&-show-count-has-suffix': {\n marginInlineEnd: token.paddingXXS\n },\n '&-prefix': {\n marginInlineEnd: inputAffixPadding\n },\n '&-suffix': {\n marginInlineStart: inputAffixPadding\n }\n }\n }), genAllowClearStyle(token)), {\n // password\n [`${iconCls}${componentCls}-password-icon`]: {\n color: colorIcon,\n cursor: 'pointer',\n transition: `all ${motionDurationSlow}`,\n '&:hover': {\n color: colorIconHover\n }\n }\n }), genStatusStyle(token, `${componentCls}-affix-wrapper`))\n };\n};\nconst genGroupStyle = token => {\n const {\n componentCls,\n colorError,\n colorWarning,\n borderRadiusLG,\n borderRadiusSM\n } = token;\n return {\n [`${componentCls}-group`]: Object.assign(Object.assign(Object.assign({}, resetComponent(token)), genInputGroupStyle(token)), {\n '&-rtl': {\n direction: 'rtl'\n },\n '&-wrapper': {\n display: 'inline-block',\n width: '100%',\n textAlign: 'start',\n verticalAlign: 'top',\n '&-rtl': {\n direction: 'rtl'\n },\n // Size\n '&-lg': {\n [`${componentCls}-group-addon`]: {\n borderRadius: borderRadiusLG,\n fontSize: token.fontSizeLG\n }\n },\n '&-sm': {\n [`${componentCls}-group-addon`]: {\n borderRadius: borderRadiusSM\n }\n },\n // Status\n '&-status-error': {\n [`${componentCls}-group-addon`]: {\n color: colorError,\n borderColor: colorError\n }\n },\n '&-status-warning': {\n [`${componentCls}-group-addon`]: {\n color: colorWarning,\n borderColor: colorWarning\n }\n },\n '&-disabled': {\n [`${componentCls}-group-addon`]: Object.assign({}, genDisabledStyle(token))\n },\n // Fix the issue of using icons in Space Compact mode\n // https://github.com/ant-design/ant-design/issues/42122\n [`&:not(${componentCls}-compact-first-item):not(${componentCls}-compact-last-item)${componentCls}-compact-item`]: {\n [`${componentCls}, ${componentCls}-group-addon`]: {\n borderRadius: 0\n }\n },\n [`&:not(${componentCls}-compact-last-item)${componentCls}-compact-first-item`]: {\n [`${componentCls}, ${componentCls}-group-addon`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0\n }\n },\n [`&:not(${componentCls}-compact-first-item)${componentCls}-compact-last-item`]: {\n [`${componentCls}, ${componentCls}-group-addon`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n }\n }\n }\n })\n };\n};\nconst genSearchInputStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const searchPrefixCls = `${componentCls}-search`;\n return {\n [searchPrefixCls]: {\n [`${componentCls}`]: {\n '&:hover, &:focus': {\n borderColor: token.colorPrimaryHover,\n [`+ ${componentCls}-group-addon ${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {\n borderInlineStartColor: token.colorPrimaryHover\n }\n }\n },\n [`${componentCls}-affix-wrapper`]: {\n borderRadius: 0\n },\n // fix slight height diff in Firefox:\n // https://ant.design/components/auto-complete-cn/#components-auto-complete-demo-certain-category\n [`${componentCls}-lg`]: {\n lineHeight: token.lineHeightLG - 0.0002\n },\n [`> ${componentCls}-group`]: {\n [`> ${componentCls}-group-addon:last-child`]: {\n insetInlineStart: -1,\n padding: 0,\n border: 0,\n [`${searchPrefixCls}-button`]: {\n paddingTop: 0,\n paddingBottom: 0,\n borderStartStartRadius: 0,\n borderStartEndRadius: token.borderRadius,\n borderEndEndRadius: token.borderRadius,\n borderEndStartRadius: 0\n },\n [`${searchPrefixCls}-button:not(${antCls}-btn-primary)`]: {\n color: token.colorTextDescription,\n '&:hover': {\n color: token.colorPrimaryHover\n },\n '&:active': {\n color: token.colorPrimaryActive\n },\n [`&${antCls}-btn-loading::before`]: {\n insetInlineStart: 0,\n insetInlineEnd: 0,\n insetBlockStart: 0,\n insetBlockEnd: 0\n }\n }\n }\n },\n [`${searchPrefixCls}-button`]: {\n height: token.controlHeight,\n '&:hover, &:focus': {\n zIndex: 1\n }\n },\n [`&-large ${searchPrefixCls}-button`]: {\n height: token.controlHeightLG\n },\n [`&-small ${searchPrefixCls}-button`]: {\n height: token.controlHeightSM\n },\n '&-rtl': {\n direction: 'rtl'\n },\n // ===================== Compact Item Customized Styles =====================\n [`&${componentCls}-compact-item`]: {\n [`&:not(${componentCls}-compact-last-item)`]: {\n [`${componentCls}-group-addon`]: {\n [`${componentCls}-search-button`]: {\n marginInlineEnd: -token.lineWidth,\n borderRadius: 0\n }\n }\n },\n [`&:not(${componentCls}-compact-first-item)`]: {\n [`${componentCls},${componentCls}-affix-wrapper`]: {\n borderRadius: 0\n }\n },\n [`> ${componentCls}-group-addon ${componentCls}-search-button,\n > ${componentCls},\n ${componentCls}-affix-wrapper`]: {\n '&:hover,&:focus,&:active': {\n zIndex: 2\n }\n },\n [`> ${componentCls}-affix-wrapper-focused`]: {\n zIndex: 2\n }\n }\n }\n };\n};\nexport function initInputToken(token) {\n // @ts-ignore\n return mergeToken(token, {\n inputAffixPadding: token.paddingXXS,\n inputPaddingVertical: Math.max(Math.round((token.controlHeight - token.fontSize * token.lineHeight) / 2 * 10) / 10 - token.lineWidth, 3),\n inputPaddingVerticalLG: Math.ceil((token.controlHeightLG - token.fontSizeLG * token.lineHeightLG) / 2 * 10) / 10 - token.lineWidth,\n inputPaddingVerticalSM: Math.max(Math.round((token.controlHeightSM - token.fontSize * token.lineHeight) / 2 * 10) / 10 - token.lineWidth, 0),\n inputPaddingHorizontal: token.paddingSM - token.lineWidth,\n inputPaddingHorizontalSM: token.paddingXS - token.lineWidth,\n inputPaddingHorizontalLG: token.controlPaddingHorizontal - token.lineWidth,\n inputBorderHoverColor: token.colorPrimaryHover,\n inputBorderActiveColor: token.colorPrimaryHover\n });\n}\nconst genTextAreaStyle = token => {\n const {\n componentCls,\n paddingLG\n } = token;\n const textareaPrefixCls = `${componentCls}-textarea`;\n return {\n [textareaPrefixCls]: {\n position: 'relative',\n '&-show-count': {\n // https://github.com/ant-design/ant-design/issues/33049\n [`> ${componentCls}`]: {\n height: '100%'\n },\n [`${componentCls}-data-count`]: {\n position: 'absolute',\n bottom: -token.fontSize * token.lineHeight,\n insetInlineEnd: 0,\n color: token.colorTextDescription,\n whiteSpace: 'nowrap',\n pointerEvents: 'none'\n }\n },\n '&-allow-clear': {\n [`> ${componentCls}`]: {\n paddingInlineEnd: paddingLG\n }\n },\n [`&-affix-wrapper${textareaPrefixCls}-has-feedback`]: {\n [`${componentCls}`]: {\n paddingInlineEnd: paddingLG\n }\n },\n [`&-affix-wrapper${componentCls}-affix-wrapper`]: {\n padding: 0,\n [`> textarea${componentCls}`]: {\n fontSize: 'inherit',\n border: 'none',\n outline: 'none',\n '&:focus': {\n boxShadow: 'none !important'\n }\n },\n [`${componentCls}-suffix`]: {\n margin: 0,\n '> *:not(:last-child)': {\n marginInline: 0\n },\n // Clear Icon\n [`${componentCls}-clear-icon`]: {\n position: 'absolute',\n insetInlineEnd: token.paddingXS,\n insetBlockStart: token.paddingXS\n },\n // Feedback Icon\n [`${textareaPrefixCls}-suffix`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: token.inputPaddingHorizontal,\n bottom: 0,\n zIndex: 1,\n display: 'inline-flex',\n alignItems: 'center',\n margin: 'auto',\n pointerEvents: 'none'\n }\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Input', token => {\n const inputToken = initInputToken(token);\n return [genInputStyle(inputToken), genTextAreaStyle(inputToken), genAffixStyle(inputToken), genGroupStyle(inputToken), genSearchInputStyle(inputToken),\n // =====================================================\n // == Space Compact ==\n // =====================================================\n genCompactItemStyle(inputToken)];\n});","// This icon file is generated automatically.\nvar BarsOutlined = { \"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\" };\nexport default BarsOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport BarsOutlinedSvg from \"@ant-design/icons-svg/es/asn/BarsOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar BarsOutlined = function BarsOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: BarsOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n BarsOutlined.displayName = 'BarsOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(BarsOutlined);","const isNumeric = value => !isNaN(parseFloat(value)) && isFinite(value);\nexport default isNumeric;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport BarsOutlined from \"@ant-design/icons/es/icons/BarsOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { useContext, useEffect, useRef, useState } from 'react';\nimport isNumeric from '../_util/isNumeric';\nimport { ConfigContext } from '../config-provider';\nimport { LayoutContext } from './layout';\nconst dimensionMaxMap = {\n xs: '479.98px',\n sm: '575.98px',\n md: '767.98px',\n lg: '991.98px',\n xl: '1199.98px',\n xxl: '1599.98px'\n};\nexport const SiderContext = /*#__PURE__*/React.createContext({});\nconst generateId = (() => {\n let i = 0;\n return function () {\n let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n i += 1;\n return `${prefix}${i}`;\n };\n})();\nconst Sider = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n className,\n trigger,\n children,\n defaultCollapsed = false,\n theme = 'dark',\n style = {},\n collapsible = false,\n reverseArrow = false,\n width = 200,\n collapsedWidth = 80,\n zeroWidthTriggerStyle,\n breakpoint,\n onCollapse,\n onBreakpoint\n } = props,\n otherProps = __rest(props, [\"prefixCls\", \"className\", \"trigger\", \"children\", \"defaultCollapsed\", \"theme\", \"style\", \"collapsible\", \"reverseArrow\", \"width\", \"collapsedWidth\", \"zeroWidthTriggerStyle\", \"breakpoint\", \"onCollapse\", \"onBreakpoint\"]);\n const {\n siderHook\n } = useContext(LayoutContext);\n const [collapsed, setCollapsed] = useState('collapsed' in props ? props.collapsed : defaultCollapsed);\n const [below, setBelow] = useState(false);\n useEffect(() => {\n if ('collapsed' in props) {\n setCollapsed(props.collapsed);\n }\n }, [props.collapsed]);\n const handleSetCollapsed = (value, type) => {\n if (!('collapsed' in props)) {\n setCollapsed(value);\n }\n onCollapse === null || onCollapse === void 0 ? void 0 : onCollapse(value, type);\n };\n // ========================= Responsive =========================\n const responsiveHandlerRef = useRef();\n responsiveHandlerRef.current = mql => {\n setBelow(mql.matches);\n onBreakpoint === null || onBreakpoint === void 0 ? void 0 : onBreakpoint(mql.matches);\n if (collapsed !== mql.matches) {\n handleSetCollapsed(mql.matches, 'responsive');\n }\n };\n useEffect(() => {\n function responsiveHandler(mql) {\n return responsiveHandlerRef.current(mql);\n }\n let mql;\n if (typeof window !== 'undefined') {\n const {\n matchMedia\n } = window;\n if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {\n mql = matchMedia(`(max-width: ${dimensionMaxMap[breakpoint]})`);\n try {\n mql.addEventListener('change', responsiveHandler);\n } catch (error) {\n mql.addListener(responsiveHandler);\n }\n responsiveHandler(mql);\n }\n }\n return () => {\n try {\n mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);\n } catch (error) {\n mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);\n }\n };\n }, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.\n useEffect(() => {\n const uniqueId = generateId('ant-sider-');\n siderHook.addSider(uniqueId);\n return () => siderHook.removeSider(uniqueId);\n }, []);\n const toggle = () => {\n handleSetCollapsed(!collapsed, 'clickTrigger');\n };\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const renderSider = () => {\n const prefixCls = getPrefixCls('layout-sider', customizePrefixCls);\n const divProps = omit(otherProps, ['collapsed']);\n const rawWidth = collapsed ? collapsedWidth : width;\n // use \"px\" as fallback unit for width\n const siderWidth = isNumeric(rawWidth) ? `${rawWidth}px` : String(rawWidth);\n // special trigger when collapsedWidth == 0\n const zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? /*#__PURE__*/React.createElement(\"span\", {\n onClick: toggle,\n className: classNames(`${prefixCls}-zero-width-trigger`, `${prefixCls}-zero-width-trigger-${reverseArrow ? 'right' : 'left'}`),\n style: zeroWidthTriggerStyle\n }, trigger || /*#__PURE__*/React.createElement(BarsOutlined, null)) : null;\n const iconObj = {\n expanded: reverseArrow ? /*#__PURE__*/React.createElement(RightOutlined, null) : /*#__PURE__*/React.createElement(LeftOutlined, null),\n collapsed: reverseArrow ? /*#__PURE__*/React.createElement(LeftOutlined, null) : /*#__PURE__*/React.createElement(RightOutlined, null)\n };\n const status = collapsed ? 'collapsed' : 'expanded';\n const defaultTrigger = iconObj[status];\n const triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-trigger`,\n onClick: toggle,\n style: {\n width: siderWidth\n }\n }, trigger || defaultTrigger) : null;\n const divStyle = Object.assign(Object.assign({}, style), {\n flex: `0 0 ${siderWidth}`,\n maxWidth: siderWidth,\n minWidth: siderWidth,\n width: siderWidth\n });\n const siderCls = classNames(prefixCls, `${prefixCls}-${theme}`, {\n [`${prefixCls}-collapsed`]: !!collapsed,\n [`${prefixCls}-has-trigger`]: collapsible && trigger !== null && !zeroWidthTrigger,\n [`${prefixCls}-below`]: !!below,\n [`${prefixCls}-zero-width`]: parseFloat(siderWidth) === 0\n }, className);\n return /*#__PURE__*/React.createElement(\"aside\", Object.assign({\n className: siderCls\n }, divProps, {\n style: divStyle,\n ref: ref\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-children`\n }, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);\n };\n const contextValue = React.useMemo(() => ({\n siderCollapsed: collapsed\n }), [collapsed]);\n return /*#__PURE__*/React.createElement(SiderContext.Provider, {\n value: contextValue\n }, renderSider());\n});\nif (process.env.NODE_ENV !== 'production') {\n Sider.displayName = 'Sider';\n}\nexport default Sider;","const genLayoutLightStyle = token => {\n const {\n componentCls,\n colorBgContainer,\n colorBgBody,\n colorText\n } = token;\n return {\n [`${componentCls}-sider-light`]: {\n background: colorBgContainer,\n [`${componentCls}-sider-trigger`]: {\n color: colorText,\n background: colorBgContainer\n },\n [`${componentCls}-sider-zero-width-trigger`]: {\n color: colorText,\n background: colorBgContainer,\n border: `1px solid ${colorBgBody}`,\n borderInlineStart: 0\n }\n }\n };\n};\nexport default genLayoutLightStyle;","import { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genLayoutLightStyle from './light';\nconst genLayoutStyle = token => {\n const {\n antCls,\n // .ant\n componentCls,\n // .ant-layout\n colorText,\n colorTextLightSolid,\n colorBgHeader,\n colorBgBody,\n colorBgTrigger,\n layoutHeaderHeight,\n layoutHeaderPaddingInline,\n layoutHeaderColor,\n layoutFooterPadding,\n layoutTriggerHeight,\n layoutZeroTriggerSize,\n motionDurationMid,\n motionDurationSlow,\n fontSize,\n borderRadius\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({\n display: 'flex',\n flex: 'auto',\n flexDirection: 'column',\n /* fix firefox can't set height smaller than content on flex item */\n minHeight: 0,\n background: colorBgBody,\n '&, *': {\n boxSizing: 'border-box'\n },\n [`&${componentCls}-has-sider`]: {\n flexDirection: 'row',\n [`> ${componentCls}, > ${componentCls}-content`]: {\n // https://segmentfault.com/a/1190000019498300\n width: 0\n }\n },\n [`${componentCls}-header, &${componentCls}-footer`]: {\n flex: '0 0 auto'\n },\n [`${componentCls}-sider`]: {\n position: 'relative',\n // fix firefox can't set width smaller than content on flex item\n minWidth: 0,\n background: colorBgHeader,\n transition: `all ${motionDurationMid}, background 0s`,\n '&-children': {\n height: '100%',\n // Hack for fixing margin collapse bug\n // https://github.com/ant-design/ant-design/issues/7967\n // solution from https://stackoverflow.com/a/33132624/3040605\n marginTop: -0.1,\n paddingTop: 0.1,\n [`${antCls}-menu${antCls}-menu-inline-collapsed`]: {\n width: 'auto'\n }\n },\n '&-has-trigger': {\n paddingBottom: layoutTriggerHeight\n },\n '&-right': {\n order: 1\n },\n '&-trigger': {\n position: 'fixed',\n bottom: 0,\n zIndex: 1,\n height: layoutTriggerHeight,\n color: colorTextLightSolid,\n lineHeight: `${layoutTriggerHeight}px`,\n textAlign: 'center',\n background: colorBgTrigger,\n cursor: 'pointer',\n transition: `all ${motionDurationMid}`\n },\n '&-zero-width': {\n '> *': {\n overflow: 'hidden'\n },\n '&-trigger': {\n position: 'absolute',\n top: layoutHeaderHeight,\n insetInlineEnd: -layoutZeroTriggerSize,\n zIndex: 1,\n width: layoutZeroTriggerSize,\n height: layoutZeroTriggerSize,\n color: colorTextLightSolid,\n fontSize: token.fontSizeXL,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n background: colorBgHeader,\n borderStartStartRadius: 0,\n borderStartEndRadius: borderRadius,\n borderEndEndRadius: borderRadius,\n borderEndStartRadius: 0,\n cursor: 'pointer',\n transition: `background ${motionDurationSlow} ease`,\n '&::after': {\n position: 'absolute',\n inset: 0,\n background: 'transparent',\n transition: `all ${motionDurationSlow}`,\n content: '\"\"'\n },\n '&:hover::after': {\n // FIXME: Hardcode, but seems no need to create a token for this\n background: `rgba(255, 255, 255, 0.2)`\n },\n '&-right': {\n insetInlineStart: -layoutZeroTriggerSize,\n borderStartStartRadius: borderRadius,\n borderStartEndRadius: 0,\n borderEndEndRadius: 0,\n borderEndStartRadius: borderRadius\n }\n }\n }\n }\n }, genLayoutLightStyle(token)), {\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n }),\n // ==================== Header ====================\n [`${componentCls}-header`]: {\n height: layoutHeaderHeight,\n paddingInline: layoutHeaderPaddingInline,\n color: layoutHeaderColor,\n lineHeight: `${layoutHeaderHeight}px`,\n background: colorBgHeader,\n // Other components/menu/style/index.less line:686\n // Integration with header element so menu items have the same height\n [`${antCls}-menu`]: {\n lineHeight: 'inherit'\n }\n },\n // ==================== Footer ====================\n [`${componentCls}-footer`]: {\n padding: layoutFooterPadding,\n color: colorText,\n fontSize,\n background: colorBgBody\n },\n // =================== Content ====================\n [`${componentCls}-content`]: {\n flex: 'auto',\n // fix firefox can't set height smaller than content on flex item\n minHeight: 0\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Layout', token => {\n const {\n colorText,\n controlHeightSM,\n controlHeight,\n controlHeightLG,\n marginXXS\n } = token;\n const layoutHeaderPaddingInline = controlHeightLG * 1.25;\n const layoutToken = mergeToken(token, {\n // Layout\n layoutHeaderHeight: controlHeight * 2,\n layoutHeaderPaddingInline,\n layoutHeaderColor: colorText,\n layoutFooterPadding: `${controlHeightSM}px ${layoutHeaderPaddingInline}px`,\n layoutTriggerHeight: controlHeightLG + marginXXS * 2,\n layoutZeroTriggerSize: controlHeightLG\n });\n return [genLayoutStyle(layoutToken)];\n}, token => {\n const {\n colorBgLayout\n } = token;\n return {\n colorBgHeader: '#001529',\n colorBgBody: colorBgLayout,\n colorBgTrigger: '#002140'\n };\n});","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nexport const LayoutContext = /*#__PURE__*/React.createContext({\n siderHook: {\n addSider: () => null,\n removeSider: () => null\n }\n});\nfunction generator(_ref) {\n let {\n suffixCls,\n tagName,\n displayName\n } = _ref;\n return BasicComponent => {\n const Adapter = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(BasicComponent, Object.assign({\n ref: ref,\n suffixCls: suffixCls,\n tagName: tagName\n }, props)));\n if (process.env.NODE_ENV !== 'production') {\n Adapter.displayName = displayName;\n }\n return Adapter;\n };\n}\nconst Basic = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n suffixCls,\n className,\n tagName: TagName\n } = props,\n others = __rest(props, [\"prefixCls\", \"suffixCls\", \"className\", \"tagName\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('layout', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const prefixWithSuffixCls = suffixCls ? `${prefixCls}-${suffixCls}` : prefixCls;\n return wrapSSR( /*#__PURE__*/React.createElement(TagName, Object.assign({\n className: classNames(customizePrefixCls || prefixWithSuffixCls, className, hashId),\n ref: ref\n }, others)));\n});\nconst BasicLayout = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n direction\n } = React.useContext(ConfigContext);\n const [siders, setSiders] = React.useState([]);\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n children,\n hasSider,\n tagName: Tag,\n style\n } = props,\n others = __rest(props, [\"prefixCls\", \"className\", \"rootClassName\", \"children\", \"hasSider\", \"tagName\", \"style\"]);\n const passedProps = omit(others, ['suffixCls']);\n const {\n getPrefixCls,\n layout\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('layout', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const classString = classNames(prefixCls, {\n [`${prefixCls}-has-sider`]: typeof hasSider === 'boolean' ? hasSider : siders.length > 0,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, layout === null || layout === void 0 ? void 0 : layout.className, className, rootClassName, hashId);\n const contextValue = React.useMemo(() => ({\n siderHook: {\n addSider: id => {\n setSiders(prev => [].concat(_toConsumableArray(prev), [id]));\n },\n removeSider: id => {\n setSiders(prev => prev.filter(currentId => currentId !== id));\n }\n }\n }), []);\n return wrapSSR( /*#__PURE__*/React.createElement(LayoutContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(Tag, Object.assign({\n ref: ref,\n className: classString,\n style: Object.assign(Object.assign({}, layout === null || layout === void 0 ? void 0 : layout.style), style)\n }, passedProps), children)));\n});\nconst Layout = generator({\n tagName: 'div',\n displayName: 'Layout'\n})(BasicLayout);\nconst Header = generator({\n suffixCls: 'header',\n tagName: 'header',\n displayName: 'Header'\n})(Basic);\nconst Footer = generator({\n suffixCls: 'footer',\n tagName: 'footer',\n displayName: 'Footer'\n})(Basic);\nconst Content = generator({\n suffixCls: 'content',\n tagName: 'main',\n displayName: 'Content'\n})(Basic);\nexport { Content, Footer, Header };\nexport default Layout;","import React from 'react';\nexport const ListContext = /*#__PURE__*/React.createContext({});\nexport const ListConsumer = ListContext.Consumer;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport React, { Children, forwardRef, useContext } from 'react';\nimport { cloneElement } from '../_util/reactNode';\nimport { ConfigContext } from '../config-provider';\nimport { Col } from '../grid';\nimport { ListContext } from './context';\nexport const Meta = _a => {\n var {\n prefixCls: customizePrefixCls,\n className,\n avatar,\n title,\n description\n } = _a,\n others = __rest(_a, [\"prefixCls\", \"className\", \"avatar\", \"title\", \"description\"]);\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const prefixCls = getPrefixCls('list', customizePrefixCls);\n const classString = classNames(`${prefixCls}-item-meta`, className);\n const content = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-meta-content`\n }, title && /*#__PURE__*/React.createElement(\"h4\", {\n className: `${prefixCls}-item-meta-title`\n }, title), description && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-meta-description`\n }, description));\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, others, {\n className: classString\n }), avatar && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-meta-avatar`\n }, avatar), (title || description) && content);\n};\nconst InternalItem = (_a, ref) => {\n var {\n prefixCls: customizePrefixCls,\n children,\n actions,\n extra,\n className,\n colStyle\n } = _a,\n others = __rest(_a, [\"prefixCls\", \"children\", \"actions\", \"extra\", \"className\", \"colStyle\"]);\n const {\n grid,\n itemLayout\n } = useContext(ListContext);\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const isItemContainsTextNodeAndNotSingular = () => {\n let result;\n Children.forEach(children, element => {\n if (typeof element === 'string') {\n result = true;\n }\n });\n return result && Children.count(children) > 1;\n };\n const isFlexMode = () => {\n if (itemLayout === 'vertical') {\n return !!extra;\n }\n return !isItemContainsTextNodeAndNotSingular();\n };\n const prefixCls = getPrefixCls('list', customizePrefixCls);\n const actionsContent = actions && actions.length > 0 && /*#__PURE__*/React.createElement(\"ul\", {\n className: `${prefixCls}-item-action`,\n key: \"actions\"\n }, actions.map((action, i) =>\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: `${prefixCls}-item-action-${i}`\n }, action, i !== actions.length - 1 && /*#__PURE__*/React.createElement(\"em\", {\n className: `${prefixCls}-item-action-split`\n }))));\n const Element = grid ? 'div' : 'li';\n const itemChildren = /*#__PURE__*/React.createElement(Element, Object.assign({}, others, !grid ? {\n ref\n } : {}, {\n className: classNames(`${prefixCls}-item`, {\n [`${prefixCls}-item-no-flex`]: !isFlexMode()\n }, className)\n }), itemLayout === 'vertical' && extra ? [/*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-main`,\n key: \"content\"\n }, children, actionsContent), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-extra`,\n key: \"extra\"\n }, extra)] : [children, actionsContent, cloneElement(extra, {\n key: 'extra'\n })]);\n return grid ? /*#__PURE__*/React.createElement(Col, {\n ref: ref,\n flex: 1,\n style: colStyle\n }, itemChildren) : itemChildren;\n};\nconst Item = /*#__PURE__*/forwardRef(InternalItem);\nItem.Meta = Meta;\nexport default Item;","import { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBorderedStyle = token => {\n const {\n listBorderedCls,\n componentCls,\n paddingLG,\n margin,\n itemPaddingSM,\n itemPaddingLG,\n marginLG,\n borderRadiusLG\n } = token;\n return {\n [`${listBorderedCls}`]: {\n border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,\n borderRadius: borderRadiusLG,\n [`${componentCls}-header,${componentCls}-footer,${componentCls}-item`]: {\n paddingInline: paddingLG\n },\n [`${componentCls}-pagination`]: {\n margin: `${margin}px ${marginLG}px`\n }\n },\n [`${listBorderedCls}${componentCls}-sm`]: {\n [`${componentCls}-item,${componentCls}-header,${componentCls}-footer`]: {\n padding: itemPaddingSM\n }\n },\n [`${listBorderedCls}${componentCls}-lg`]: {\n [`${componentCls}-item,${componentCls}-header,${componentCls}-footer`]: {\n padding: itemPaddingLG\n }\n }\n };\n};\nconst genResponsiveStyle = token => {\n const {\n componentCls,\n screenSM,\n screenMD,\n marginLG,\n marginSM,\n margin\n } = token;\n return {\n [`@media screen and (max-width:${screenMD})`]: {\n [`${componentCls}`]: {\n [`${componentCls}-item`]: {\n [`${componentCls}-item-action`]: {\n marginInlineStart: marginLG\n }\n }\n },\n [`${componentCls}-vertical`]: {\n [`${componentCls}-item`]: {\n [`${componentCls}-item-extra`]: {\n marginInlineStart: marginLG\n }\n }\n }\n },\n [`@media screen and (max-width: ${screenSM})`]: {\n [`${componentCls}`]: {\n [`${componentCls}-item`]: {\n flexWrap: 'wrap',\n [`${componentCls}-action`]: {\n marginInlineStart: marginSM\n }\n }\n },\n [`${componentCls}-vertical`]: {\n [`${componentCls}-item`]: {\n flexWrap: 'wrap-reverse',\n [`${componentCls}-item-main`]: {\n minWidth: token.contentWidth\n },\n [`${componentCls}-item-extra`]: {\n margin: `auto auto ${margin}px`\n }\n }\n }\n }\n };\n};\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n antCls,\n controlHeight,\n minHeight,\n paddingSM,\n marginLG,\n padding,\n itemPadding,\n colorPrimary,\n itemPaddingSM,\n itemPaddingLG,\n paddingXS,\n margin,\n colorText,\n colorTextDescription,\n motionDurationSlow,\n lineWidth,\n headerBg,\n footerBg,\n emptyTextPadding,\n metaMarginBottom,\n avatarMarginRight,\n titleMarginBottom,\n descriptionFontSize\n } = token;\n const alignCls = {};\n ['start', 'center', 'end'].forEach(item => {\n alignCls[`&-align-${item}`] = {\n textAlign: item\n };\n });\n return {\n [`${componentCls}`]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n '*': {\n outline: 'none'\n },\n [`${componentCls}-header`]: {\n background: headerBg\n },\n [`${componentCls}-footer`]: {\n background: footerBg\n },\n [`${componentCls}-header, ${componentCls}-footer`]: {\n paddingBlock: paddingSM\n },\n [`${componentCls}-pagination`]: Object.assign(Object.assign({\n marginBlockStart: marginLG\n }, alignCls), {\n // https://github.com/ant-design/ant-design/issues/20037\n [`${antCls}-pagination-options`]: {\n textAlign: 'start'\n }\n }),\n [`${componentCls}-spin`]: {\n minHeight,\n textAlign: 'center'\n },\n [`${componentCls}-items`]: {\n margin: 0,\n padding: 0,\n listStyle: 'none'\n },\n [`${componentCls}-item`]: {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n padding: itemPadding,\n color: colorText,\n [`${componentCls}-item-meta`]: {\n display: 'flex',\n flex: 1,\n alignItems: 'flex-start',\n maxWidth: '100%',\n [`${componentCls}-item-meta-avatar`]: {\n marginInlineEnd: avatarMarginRight\n },\n [`${componentCls}-item-meta-content`]: {\n flex: '1 0',\n width: 0,\n color: colorText\n },\n [`${componentCls}-item-meta-title`]: {\n margin: `0 0 ${token.marginXXS}px 0`,\n color: colorText,\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n '> a': {\n color: colorText,\n transition: `all ${motionDurationSlow}`,\n [`&:hover`]: {\n color: colorPrimary\n }\n }\n },\n [`${componentCls}-item-meta-description`]: {\n color: colorTextDescription,\n fontSize: descriptionFontSize,\n lineHeight: token.lineHeight\n }\n },\n [`${componentCls}-item-action`]: {\n flex: '0 0 auto',\n marginInlineStart: token.marginXXL,\n padding: 0,\n fontSize: 0,\n listStyle: 'none',\n [`& > li`]: {\n position: 'relative',\n display: 'inline-block',\n padding: `0 ${paddingXS}px`,\n color: colorTextDescription,\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n textAlign: 'center',\n [`&:first-child`]: {\n paddingInlineStart: 0\n }\n },\n [`${componentCls}-item-action-split`]: {\n position: 'absolute',\n insetBlockStart: '50%',\n insetInlineEnd: 0,\n width: lineWidth,\n height: Math.ceil(token.fontSize * token.lineHeight) - token.marginXXS * 2,\n transform: 'translateY(-50%)',\n backgroundColor: token.colorSplit\n }\n }\n },\n [`${componentCls}-empty`]: {\n padding: `${padding}px 0`,\n color: colorTextDescription,\n fontSize: token.fontSizeSM,\n textAlign: 'center'\n },\n [`${componentCls}-empty-text`]: {\n padding: emptyTextPadding,\n color: token.colorTextDisabled,\n fontSize: token.fontSize,\n textAlign: 'center'\n },\n // ============================ without flex ============================\n [`${componentCls}-item-no-flex`]: {\n display: 'block'\n }\n }),\n [`${componentCls}-grid ${antCls}-col > ${componentCls}-item`]: {\n display: 'block',\n maxWidth: '100%',\n marginBlockEnd: margin,\n paddingBlock: 0,\n borderBlockEnd: 'none'\n },\n [`${componentCls}-vertical ${componentCls}-item`]: {\n alignItems: 'initial',\n [`${componentCls}-item-main`]: {\n display: 'block',\n flex: 1\n },\n [`${componentCls}-item-extra`]: {\n marginInlineStart: marginLG\n },\n [`${componentCls}-item-meta`]: {\n marginBlockEnd: metaMarginBottom,\n [`${componentCls}-item-meta-title`]: {\n marginBlockStart: 0,\n marginBlockEnd: titleMarginBottom,\n color: colorText,\n fontSize: token.fontSizeLG,\n lineHeight: token.lineHeightLG\n }\n },\n [`${componentCls}-item-action`]: {\n marginBlockStart: padding,\n marginInlineStart: 'auto',\n '> li': {\n padding: `0 ${padding}px`,\n [`&:first-child`]: {\n paddingInlineStart: 0\n }\n }\n }\n },\n [`${componentCls}-split ${componentCls}-item`]: {\n borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`,\n [`&:last-child`]: {\n borderBlockEnd: 'none'\n }\n },\n [`${componentCls}-split ${componentCls}-header`]: {\n borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n },\n [`${componentCls}-split${componentCls}-empty ${componentCls}-footer`]: {\n borderTop: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n },\n [`${componentCls}-loading ${componentCls}-spin-nested-loading`]: {\n minHeight: controlHeight\n },\n [`${componentCls}-split${componentCls}-something-after-last-item ${antCls}-spin-container > ${componentCls}-items > ${componentCls}-item:last-child`]: {\n borderBlockEnd: `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`\n },\n [`${componentCls}-lg ${componentCls}-item`]: {\n padding: itemPaddingLG\n },\n [`${componentCls}-sm ${componentCls}-item`]: {\n padding: itemPaddingSM\n },\n // Horizontal\n [`${componentCls}:not(${componentCls}-vertical)`]: {\n [`${componentCls}-item-no-flex`]: {\n [`${componentCls}-item-action`]: {\n float: 'right'\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('List', token => {\n const listToken = mergeToken(token, {\n listBorderedCls: `${token.componentCls}-bordered`,\n minHeight: token.controlHeightLG\n });\n return [genBaseStyle(listToken), genBorderedStyle(listToken), genResponsiveStyle(listToken)];\n}, token => ({\n contentWidth: 220,\n itemPadding: `${token.paddingContentVertical}px 0`,\n itemPaddingSM: `${token.paddingContentVerticalSM}px ${token.paddingContentHorizontal}px`,\n itemPaddingLG: `${token.paddingContentVerticalLG}px ${token.paddingContentHorizontalLG}px`,\n headerBg: 'transparent',\n footerBg: 'transparent',\n emptyTextPadding: token.padding,\n metaMarginBottom: token.padding,\n avatarMarginRight: token.padding,\n titleMarginBottom: token.paddingSM,\n descriptionFontSize: token.fontSize\n}));","'use client';\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\n// eslint-disable-next-line import/no-named-as-default\nimport * as React from 'react';\nimport extendsObject from '../_util/extendsObject';\nimport { responsiveArray } from '../_util/responsiveObserver';\nimport { ConfigContext } from '../config-provider';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { Row } from '../grid';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport Pagination from '../pagination';\nimport Spin from '../spin';\nimport Item from './Item';\n// CSSINJS\nimport { ListContext } from './context';\nimport useStyle from './style';\nfunction List(_a) {\n var _b;\n var {\n pagination = false,\n prefixCls: customizePrefixCls,\n bordered = false,\n split = true,\n className,\n rootClassName,\n style,\n children,\n itemLayout,\n loadMore,\n grid,\n dataSource = [],\n size,\n header,\n footer,\n loading = false,\n rowKey,\n renderItem,\n locale\n } = _a,\n rest = __rest(_a, [\"pagination\", \"prefixCls\", \"bordered\", \"split\", \"className\", \"rootClassName\", \"style\", \"children\", \"itemLayout\", \"loadMore\", \"grid\", \"dataSource\", \"size\", \"header\", \"footer\", \"loading\", \"rowKey\", \"renderItem\", \"locale\"]);\n const paginationObj = pagination && typeof pagination === 'object' ? pagination : {};\n const [paginationCurrent, setPaginationCurrent] = React.useState(paginationObj.defaultCurrent || 1);\n const [paginationSize, setPaginationSize] = React.useState(paginationObj.defaultPageSize || 10);\n const {\n getPrefixCls,\n renderEmpty,\n direction,\n list\n } = React.useContext(ConfigContext);\n const defaultPaginationProps = {\n current: 1,\n total: 0\n };\n const triggerPaginationEvent = eventName => (page, pageSize) => {\n var _a;\n setPaginationCurrent(page);\n setPaginationSize(pageSize);\n if (pagination && pagination[eventName]) {\n (_a = pagination === null || pagination === void 0 ? void 0 : pagination[eventName]) === null || _a === void 0 ? void 0 : _a.call(pagination, page, pageSize);\n }\n };\n const onPaginationChange = triggerPaginationEvent('onChange');\n const onPaginationShowSizeChange = triggerPaginationEvent('onShowSizeChange');\n const renderInnerItem = (item, index) => {\n if (!renderItem) return null;\n let key;\n if (typeof rowKey === 'function') {\n key = rowKey(item);\n } else if (rowKey) {\n key = item[rowKey];\n } else {\n key = item.key;\n }\n if (!key) {\n key = `list-item-${index}`;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, renderItem(item, index));\n };\n const isSomethingAfterLastItem = () => !!(loadMore || pagination || footer);\n const prefixCls = getPrefixCls('list', customizePrefixCls);\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n let loadingProp = loading;\n if (typeof loadingProp === 'boolean') {\n loadingProp = {\n spinning: loadingProp\n };\n }\n const isLoading = loadingProp && loadingProp.spinning;\n // large => lg\n // small => sm\n let sizeCls = '';\n switch (size) {\n case 'large':\n sizeCls = 'lg';\n break;\n case 'small':\n sizeCls = 'sm';\n break;\n default:\n break;\n }\n const classString = classNames(prefixCls, {\n [`${prefixCls}-vertical`]: itemLayout === 'vertical',\n [`${prefixCls}-${sizeCls}`]: sizeCls,\n [`${prefixCls}-split`]: split,\n [`${prefixCls}-bordered`]: bordered,\n [`${prefixCls}-loading`]: isLoading,\n [`${prefixCls}-grid`]: !!grid,\n [`${prefixCls}-something-after-last-item`]: isSomethingAfterLastItem(),\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, list === null || list === void 0 ? void 0 : list.className, className, rootClassName, hashId);\n const paginationProps = extendsObject(defaultPaginationProps, {\n total: dataSource.length,\n current: paginationCurrent,\n pageSize: paginationSize\n }, pagination || {});\n const largestPage = Math.ceil(paginationProps.total / paginationProps.pageSize);\n if (paginationProps.current > largestPage) {\n paginationProps.current = largestPage;\n }\n const paginationContent = pagination ? /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(`${prefixCls}-pagination`, `${prefixCls}-pagination-align-${(_b = paginationProps === null || paginationProps === void 0 ? void 0 : paginationProps.align) !== null && _b !== void 0 ? _b : 'end'}`)\n }, /*#__PURE__*/React.createElement(Pagination, Object.assign({}, paginationProps, {\n onChange: onPaginationChange,\n onShowSizeChange: onPaginationShowSizeChange\n }))) : null;\n let splitDataSource = _toConsumableArray(dataSource);\n if (pagination) {\n if (dataSource.length > (paginationProps.current - 1) * paginationProps.pageSize) {\n splitDataSource = _toConsumableArray(dataSource).splice((paginationProps.current - 1) * paginationProps.pageSize, paginationProps.pageSize);\n }\n }\n const needResponsive = Object.keys(grid || {}).some(key => ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'].includes(key));\n const screens = useBreakpoint(needResponsive);\n const currentBreakpoint = React.useMemo(() => {\n for (let i = 0; i < responsiveArray.length; i += 1) {\n const breakpoint = responsiveArray[i];\n if (screens[breakpoint]) {\n return breakpoint;\n }\n }\n return undefined;\n }, [screens]);\n const colStyle = React.useMemo(() => {\n if (!grid) {\n return undefined;\n }\n const columnCount = currentBreakpoint && grid[currentBreakpoint] ? grid[currentBreakpoint] : grid.column;\n if (columnCount) {\n return {\n width: `${100 / columnCount}%`,\n maxWidth: `${100 / columnCount}%`\n };\n }\n }, [grid === null || grid === void 0 ? void 0 : grid.column, currentBreakpoint]);\n let childrenContent = isLoading && /*#__PURE__*/React.createElement(\"div\", {\n style: {\n minHeight: 53\n }\n });\n if (splitDataSource.length > 0) {\n const items = splitDataSource.map((item, index) => renderInnerItem(item, index));\n childrenContent = grid ? /*#__PURE__*/React.createElement(Row, {\n gutter: grid.gutter\n }, React.Children.map(items, child => /*#__PURE__*/React.createElement(\"div\", {\n key: child === null || child === void 0 ? void 0 : child.key,\n style: colStyle\n }, child))) : /*#__PURE__*/React.createElement(\"ul\", {\n className: `${prefixCls}-items`\n }, items);\n } else if (!children && !isLoading) {\n childrenContent = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-empty-text`\n }, locale && locale.emptyText || (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('List')) || /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"List\"\n }));\n }\n const paginationPosition = paginationProps.position || 'bottom';\n const contextValue = React.useMemo(() => ({\n grid,\n itemLayout\n }), [JSON.stringify(grid), itemLayout]);\n return wrapSSR( /*#__PURE__*/React.createElement(ListContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(\"div\", Object.assign({\n style: Object.assign(Object.assign({}, list === null || list === void 0 ? void 0 : list.style), style),\n className: classString\n }, rest), (paginationPosition === 'top' || paginationPosition === 'both') && paginationContent, header && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-header`\n }, header), /*#__PURE__*/React.createElement(Spin, Object.assign({}, loadingProp), childrenContent, children), footer && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-footer`\n }, footer), loadMore || (paginationPosition === 'bottom' || paginationPosition === 'both') && paginationContent)));\n}\nif (process.env.NODE_ENV !== 'production') {\n List.displayName = 'List';\n}\nList.Item = Item;\nexport default List;","import { createContext } from 'react';\nconst LocaleContext = /*#__PURE__*/createContext(undefined);\nexport default LocaleContext;","/* eslint-disable no-template-curly-in-string */\nimport Pagination from \"rc-pagination/es/locale/en_US\";\nimport Calendar from '../calendar/locale/en_US';\nimport DatePicker from '../date-picker/locale/en_US';\nimport TimePicker from '../time-picker/locale/en_US';\nconst typeTemplate = '${label} is not a valid ${type}';\nconst localeValues = {\n locale: 'en',\n Pagination,\n DatePicker,\n TimePicker,\n Calendar,\n global: {\n placeholder: 'Please select'\n },\n Table: {\n filterTitle: 'Filter menu',\n filterConfirm: 'OK',\n filterReset: 'Reset',\n filterEmptyText: 'No filters',\n filterCheckall: 'Select all items',\n filterSearchPlaceholder: 'Search in filters',\n emptyText: 'No data',\n selectAll: 'Select current page',\n selectInvert: 'Invert current page',\n selectNone: 'Clear all data',\n selectionAll: 'Select all data',\n sortTitle: 'Sort',\n expand: 'Expand row',\n collapse: 'Collapse row',\n triggerDesc: 'Click to sort descending',\n triggerAsc: 'Click to sort ascending',\n cancelSort: 'Click to cancel sorting'\n },\n Tour: {\n Next: 'Next',\n Previous: 'Previous',\n Finish: 'Finish'\n },\n Modal: {\n okText: 'OK',\n cancelText: 'Cancel',\n justOkText: 'OK'\n },\n Popconfirm: {\n okText: 'OK',\n cancelText: 'Cancel'\n },\n Transfer: {\n titles: ['', ''],\n searchPlaceholder: 'Search here',\n itemUnit: 'item',\n itemsUnit: 'items',\n remove: 'Remove',\n selectCurrent: 'Select current page',\n removeCurrent: 'Remove current page',\n selectAll: 'Select all data',\n removeAll: 'Remove all data',\n selectInvert: 'Invert current page'\n },\n Upload: {\n uploading: 'Uploading...',\n removeFile: 'Remove file',\n uploadError: 'Upload error',\n previewFile: 'Preview file',\n downloadFile: 'Download file'\n },\n Empty: {\n description: 'No data'\n },\n Icon: {\n icon: 'icon'\n },\n Text: {\n edit: 'Edit',\n copy: 'Copy',\n copied: 'Copied',\n expand: 'Expand'\n },\n PageHeader: {\n back: 'Back'\n },\n Form: {\n optional: '(optional)',\n defaultValidateMessages: {\n default: 'Field validation error for ${label}',\n required: 'Please enter ${label}',\n enum: '${label} must be one of [${enum}]',\n whitespace: '${label} cannot be a blank character',\n date: {\n format: '${label} date format is invalid',\n parse: '${label} cannot be converted to a date',\n invalid: '${label} is an invalid date'\n },\n types: {\n string: typeTemplate,\n method: typeTemplate,\n array: typeTemplate,\n object: typeTemplate,\n number: typeTemplate,\n date: typeTemplate,\n boolean: typeTemplate,\n integer: typeTemplate,\n float: typeTemplate,\n regexp: typeTemplate,\n email: typeTemplate,\n url: typeTemplate,\n hex: typeTemplate\n },\n string: {\n len: '${label} must be ${len} characters',\n min: '${label} must be at least ${min} characters',\n max: '${label} must be up to ${max} characters',\n range: '${label} must be between ${min}-${max} characters'\n },\n number: {\n len: '${label} must be equal to ${len}',\n min: '${label} must be minimum ${min}',\n max: '${label} must be maximum ${max}',\n range: '${label} must be between ${min}-${max}'\n },\n array: {\n len: 'Must be ${len} ${label}',\n min: 'At least ${min} ${label}',\n max: 'At most ${max} ${label}',\n range: 'The amount of ${label} must be between ${min}-${max}'\n },\n pattern: {\n mismatch: '${label} does not match the pattern ${pattern}'\n }\n }\n },\n Image: {\n preview: 'Preview'\n },\n QRCode: {\n expired: 'QR code expired',\n refresh: 'Refresh'\n },\n ColorPicker: {\n presetEmpty: 'Empty'\n }\n};\nexport default localeValues;","import * as React from 'react';\nimport LocaleContext from './context';\nimport defaultLocaleData from './en_US';\nconst useLocale = (componentName, defaultLocale) => {\n const fullLocale = React.useContext(LocaleContext);\n const getLocale = React.useMemo(() => {\n var _a;\n const locale = defaultLocale || defaultLocaleData[componentName];\n const localeFromContext = (_a = fullLocale === null || fullLocale === void 0 ? void 0 : fullLocale[componentName]) !== null && _a !== void 0 ? _a : {};\n return Object.assign(Object.assign({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {});\n }, [componentName, defaultLocale, fullLocale]);\n const getLocaleCode = React.useMemo(() => {\n const localeCode = fullLocale === null || fullLocale === void 0 ? void 0 : fullLocale.locale;\n // Had use LocaleProvide but didn't set locale\n if ((fullLocale === null || fullLocale === void 0 ? void 0 : fullLocale.exist) && !localeCode) {\n return defaultLocaleData.locale;\n }\n return localeCode;\n }, [fullLocale]);\n return [getLocale, getLocaleCode];\n};\nexport default useLocale;","var locale = {\n locale: 'zh_CN',\n today: '今天',\n now: '此刻',\n backToToday: '返回今天',\n ok: '确定',\n timeSelect: '选择时间',\n dateSelect: '选择日期',\n weekSelect: '选择周',\n clear: '清除',\n month: '月',\n year: '年',\n previousMonth: '上个月 (翻页上键)',\n nextMonth: '下个月 (翻页下键)',\n monthSelect: '选择月份',\n yearSelect: '选择年份',\n decadeSelect: '选择年代',\n yearFormat: 'YYYY年',\n dayFormat: 'D日',\n dateFormat: 'YYYY年M月D日',\n dateTimeFormat: 'YYYY年M月D日 HH时mm分ss秒',\n previousYear: '上一年 (Control键加左方向键)',\n nextYear: '下一年 (Control键加右方向键)',\n previousDecade: '上一年代',\n nextDecade: '下一年代',\n previousCentury: '上一世纪',\n nextCentury: '下一世纪'\n};\nexport default locale;","const locale = {\n placeholder: '请选择时间',\n rangePlaceholder: ['开始时间', '结束时间']\n};\nexport default locale;","import CalendarLocale from \"rc-picker/es/locale/zh_CN\";\nimport TimePickerLocale from '../../time-picker/locale/zh_CN';\n// 统一合并为完整的 Locale\nconst locale = {\n lang: Object.assign({\n placeholder: '请选择日期',\n yearPlaceholder: '请选择年份',\n quarterPlaceholder: '请选择季度',\n monthPlaceholder: '请选择月份',\n weekPlaceholder: '请选择周',\n rangePlaceholder: ['开始日期', '结束日期'],\n rangeYearPlaceholder: ['开始年份', '结束年份'],\n rangeMonthPlaceholder: ['开始月份', '结束月份'],\n rangeQuarterPlaceholder: ['开始季度', '结束季度'],\n rangeWeekPlaceholder: ['开始周', '结束周']\n }, CalendarLocale),\n timePickerLocale: Object.assign({}, TimePickerLocale)\n};\n// should add whitespace between char in Button\nlocale.lang.ok = '确定';\n// All settings at:\n// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json\nexport default locale;","import zhCN from '../../date-picker/locale/zh_CN';\nexport default zhCN;","/* eslint-disable no-template-curly-in-string */\nimport Pagination from \"rc-pagination/es/locale/zh_CN\";\nimport Calendar from '../calendar/locale/zh_CN';\nimport DatePicker from '../date-picker/locale/zh_CN';\nimport TimePicker from '../time-picker/locale/zh_CN';\nconst typeTemplate = '${label}不是一个有效的${type}';\nconst localeValues = {\n locale: 'zh-cn',\n Pagination,\n DatePicker,\n TimePicker,\n Calendar,\n // locales for all components\n global: {\n placeholder: '请选择'\n },\n Table: {\n filterTitle: '筛选',\n filterConfirm: '确定',\n filterReset: '重置',\n filterEmptyText: '无筛选项',\n filterCheckall: '全选',\n filterSearchPlaceholder: '在筛选项中搜索',\n selectAll: '全选当页',\n selectInvert: '反选当页',\n selectNone: '清空所有',\n selectionAll: '全选所有',\n sortTitle: '排序',\n expand: '展开行',\n collapse: '关闭行',\n triggerDesc: '点击降序',\n triggerAsc: '点击升序',\n cancelSort: '取消排序'\n },\n Modal: {\n okText: '确定',\n cancelText: '取消',\n justOkText: '知道了'\n },\n Tour: {\n Next: '下一步',\n Previous: '上一步',\n Finish: '结束导览'\n },\n Popconfirm: {\n cancelText: '取消',\n okText: '确定'\n },\n Transfer: {\n titles: ['', ''],\n searchPlaceholder: '请输入搜索内容',\n itemUnit: '项',\n itemsUnit: '项',\n remove: '删除',\n selectCurrent: '全选当页',\n removeCurrent: '删除当页',\n selectAll: '全选所有',\n removeAll: '删除全部',\n selectInvert: '反选当页'\n },\n Upload: {\n uploading: '文件上传中',\n removeFile: '删除文件',\n uploadError: '上传错误',\n previewFile: '预览文件',\n downloadFile: '下载文件'\n },\n Empty: {\n description: '暂无数据'\n },\n Icon: {\n icon: '图标'\n },\n Text: {\n edit: '编辑',\n copy: '复制',\n copied: '复制成功',\n expand: '展开'\n },\n PageHeader: {\n back: '返回'\n },\n Form: {\n optional: '(可选)',\n defaultValidateMessages: {\n default: '字段验证错误${label}',\n required: '请输入${label}',\n enum: '${label}必须是其中一个[${enum}]',\n whitespace: '${label}不能为空字符',\n date: {\n format: '${label}日期格式无效',\n parse: '${label}不能转换为日期',\n invalid: '${label}是一个无效日期'\n },\n types: {\n string: typeTemplate,\n method: typeTemplate,\n array: typeTemplate,\n object: typeTemplate,\n number: typeTemplate,\n date: typeTemplate,\n boolean: typeTemplate,\n integer: typeTemplate,\n float: typeTemplate,\n regexp: typeTemplate,\n email: typeTemplate,\n url: typeTemplate,\n hex: typeTemplate\n },\n string: {\n len: '${label}须为${len}个字符',\n min: '${label}最少${min}个字符',\n max: '${label}最多${max}个字符',\n range: '${label}须在${min}-${max}字符之间'\n },\n number: {\n len: '${label}必须等于${len}',\n min: '${label}最小值为${min}',\n max: '${label}最大值为${max}',\n range: '${label}须在${min}-${max}之间'\n },\n array: {\n len: '须为${len}个${label}',\n min: '最少${min}个${label}',\n max: '最多${max}个${label}',\n range: '${label}数量须在${min}-${max}之间'\n },\n pattern: {\n mismatch: '${label}与模式不匹配${pattern}'\n }\n }\n },\n Image: {\n preview: '预览'\n },\n QRCode: {\n expired: '二维码过期',\n refresh: '点击刷新'\n },\n ColorPicker: {\n presetEmpty: '暂无'\n }\n};\nexport default localeValues;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { NoCompactStyle } from '../space/Compact';\nimport { supportNodeRef } from 'rc-util';\nconst OverrideContext = /*#__PURE__*/React.createContext(null);\n/** @internal Only used for Dropdown component. Do not use this in your production. */\nexport const OverrideProvider = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n children\n } = props,\n restProps = __rest(props, [\"children\"]);\n const override = React.useContext(OverrideContext);\n const context = React.useMemo(() => Object.assign(Object.assign({}, override), restProps), [override, restProps.prefixCls,\n // restProps.expandIcon, Not mark as deps since this is a ReactNode\n restProps.mode, restProps.selectable\n // restProps.validator, Not mark as deps since this is a function\n ]);\n\n return /*#__PURE__*/React.createElement(OverrideContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(NoCompactStyle, null, supportNodeRef(children) ? /*#__PURE__*/React.cloneElement(children, {\n ref\n }) : children));\n});\n/** @internal Only used for Dropdown component. Do not use this in your production. */\nexport default OverrideContext;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { Divider } from 'rc-menu';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nconst MenuDivider = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n dashed\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"dashed\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('menu', customizePrefixCls);\n const classString = classNames({\n [`${prefixCls}-item-divider-dashed`]: !!dashed\n }, className);\n return /*#__PURE__*/React.createElement(Divider, Object.assign({\n className: classString\n }, restProps));\n};\nexport default MenuDivider;","import { createContext } from 'react';\nconst MenuContext = /*#__PURE__*/createContext({\n prefixCls: '',\n firstLevel: true,\n inlineCollapsed: false\n});\nexport default MenuContext;","import classNames from 'classnames';\nimport { Item } from 'rc-menu';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { SiderContext } from '../layout/Sider';\nimport Tooltip from '../tooltip';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport MenuContext from './MenuContext';\nconst MenuItem = props => {\n var _a;\n const {\n className,\n children,\n icon,\n title,\n danger\n } = props;\n const {\n prefixCls,\n firstLevel,\n direction,\n disableMenuItemTitleTooltip,\n inlineCollapsed: isInlineCollapsed\n } = React.useContext(MenuContext);\n const renderItemChildren = inlineCollapsed => {\n const wrapNode = /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-title-content`\n }, children);\n // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span\n // ref: https://github.com/ant-design/ant-design/pull/23456\n if (!icon || isValidElement(children) && children.type === 'span') {\n if (children && inlineCollapsed && firstLevel && typeof children === 'string') {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-inline-collapsed-noicon`\n }, children.charAt(0));\n }\n }\n return wrapNode;\n };\n const {\n siderCollapsed\n } = React.useContext(SiderContext);\n let tooltipTitle = title;\n if (typeof title === 'undefined') {\n tooltipTitle = firstLevel ? children : '';\n } else if (title === false) {\n tooltipTitle = '';\n }\n const tooltipProps = {\n title: tooltipTitle\n };\n if (!siderCollapsed && !isInlineCollapsed) {\n tooltipProps.title = null;\n // Reset `open` to fix control mode tooltip display not correct\n // ref: https://github.com/ant-design/ant-design/issues/16742\n tooltipProps.open = false;\n }\n const childrenLength = toArray(children).length;\n let returnNode = /*#__PURE__*/React.createElement(Item, Object.assign({}, omit(props, ['title', 'icon', 'danger']), {\n className: classNames({\n [`${prefixCls}-item-danger`]: danger,\n [`${prefixCls}-item-only-child`]: (icon ? childrenLength + 1 : childrenLength) === 1\n }, className),\n title: typeof title === 'string' ? title : undefined\n }), cloneElement(icon, {\n className: classNames(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', `${prefixCls}-item-icon`)\n }), renderItemChildren(isInlineCollapsed));\n if (!disableMenuItemTitleTooltip) {\n returnNode = /*#__PURE__*/React.createElement(Tooltip, Object.assign({}, tooltipProps, {\n placement: direction === 'rtl' ? 'left' : 'right',\n overlayClassName: `${prefixCls}-inline-collapsed-tooltip`\n }), returnNode);\n }\n return returnNode;\n};\nexport default MenuItem;","import classNames from 'classnames';\nimport { SubMenu as RcSubMenu, useFullPath } from 'rc-menu';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport MenuContext from './MenuContext';\nconst SubMenu = props => {\n var _a;\n const {\n popupClassName,\n icon,\n title,\n theme: customTheme\n } = props;\n const context = React.useContext(MenuContext);\n const {\n prefixCls,\n inlineCollapsed,\n theme: contextTheme\n } = context;\n const parentPath = useFullPath();\n let titleNode;\n if (!icon) {\n titleNode = inlineCollapsed && !parentPath.length && title && typeof title === 'string' ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-inline-collapsed-noicon`\n }, title.charAt(0)) : /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-title-content`\n }, title);\n } else {\n // inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span\n // ref: https://github.com/ant-design/ant-design/pull/23456\n const titleIsSpan = isValidElement(title) && title.type === 'span';\n titleNode = /*#__PURE__*/React.createElement(React.Fragment, null, cloneElement(icon, {\n className: classNames(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', `${prefixCls}-item-icon`)\n }), titleIsSpan ? title : /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-title-content`\n }, title));\n }\n const contextValue = React.useMemo(() => Object.assign(Object.assign({}, context), {\n firstLevel: false\n }), [context]);\n return /*#__PURE__*/React.createElement(MenuContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(RcSubMenu, Object.assign({}, omit(props, ['icon']), {\n title: titleNode,\n popupClassName: classNames(prefixCls, popupClassName, `${prefixCls}-${customTheme || contextTheme}`)\n })));\n};\nexport default SubMenu;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport MenuDivider from '../MenuDivider';\nimport MenuItem from '../MenuItem';\nimport SubMenu from '../SubMenu';\nfunction convertItemsToNodes(list) {\n return (list || []).map((opt, index) => {\n if (opt && typeof opt === 'object') {\n const _a = opt,\n {\n label,\n children,\n key,\n type\n } = _a,\n restProps = __rest(_a, [\"label\", \"children\", \"key\", \"type\"]);\n const mergedKey = key !== null && key !== void 0 ? key : `tmp-${index}`;\n // MenuItemGroup & SubMenuItem\n if (children || type === 'group') {\n if (type === 'group') {\n // Group\n return /*#__PURE__*/React.createElement(ItemGroup, Object.assign({\n key: mergedKey\n }, restProps, {\n title: label\n }), convertItemsToNodes(children));\n }\n // Sub Menu\n return /*#__PURE__*/React.createElement(SubMenu, Object.assign({\n key: mergedKey\n }, restProps, {\n title: label\n }), convertItemsToNodes(children));\n }\n // MenuItem & Divider\n if (type === 'divider') {\n return /*#__PURE__*/React.createElement(MenuDivider, Object.assign({\n key: mergedKey\n }, restProps));\n }\n return /*#__PURE__*/React.createElement(MenuItem, Object.assign({\n key: mergedKey\n }, restProps), label);\n }\n return null;\n }).filter(opt => opt);\n}\n// FIXME: Move logic here in v5\n/**\n * We simply convert `items` to ReactNode for reuse origin component logic. But we need move all the\n * logic from component into this hooks when in v5\n */\nexport default function useItems(items) {\n return React.useMemo(() => {\n if (!items) {\n return items;\n }\n return convertItemsToNodes(items);\n }, [items]);\n}","const getHorizontalStyle = token => {\n const {\n componentCls,\n motionDurationSlow,\n horizontalLineHeight,\n colorSplit,\n lineWidth,\n lineType,\n itemPaddingInline\n } = token;\n return {\n [`${componentCls}-horizontal`]: {\n lineHeight: horizontalLineHeight,\n border: 0,\n borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`,\n boxShadow: 'none',\n '&::after': {\n display: 'block',\n clear: 'both',\n height: 0,\n content: '\"\\\\20\"'\n },\n // ======================= Item =======================\n [`${componentCls}-item, ${componentCls}-submenu`]: {\n position: 'relative',\n display: 'inline-block',\n verticalAlign: 'bottom',\n paddingInline: itemPaddingInline\n },\n [`> ${componentCls}-item:hover,\n > ${componentCls}-item-active,\n > ${componentCls}-submenu ${componentCls}-submenu-title:hover`]: {\n backgroundColor: 'transparent'\n },\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n transition: [`border-color ${motionDurationSlow}`, `background ${motionDurationSlow}`].join(',')\n },\n // ===================== Sub Menu =====================\n [`${componentCls}-submenu-arrow`]: {\n display: 'none'\n }\n }\n };\n};\nexport default getHorizontalStyle;","const getRTLStyle = _ref => {\n let {\n componentCls,\n menuArrowOffset\n } = _ref;\n return {\n [`${componentCls}-rtl`]: {\n direction: 'rtl'\n },\n [`${componentCls}-submenu-rtl`]: {\n transformOrigin: '100% 0'\n },\n // Vertical Arrow\n [`${componentCls}-rtl${componentCls}-vertical,\n ${componentCls}-submenu-rtl ${componentCls}-vertical`]: {\n [`${componentCls}-submenu-arrow`]: {\n '&::before': {\n transform: `rotate(-45deg) translateY(-${menuArrowOffset})`\n },\n '&::after': {\n transform: `rotate(45deg) translateY(${menuArrowOffset})`\n }\n }\n }\n };\n};\nexport default getRTLStyle;","import { genFocusOutline } from '../../style';\nconst accessibilityFocus = token => Object.assign({}, genFocusOutline(token));\nconst getThemeStyle = (token, themeSuffix) => {\n const {\n componentCls,\n itemColor,\n itemSelectedColor,\n groupTitleColor,\n itemBg,\n subMenuItemBg,\n itemSelectedBg,\n activeBarHeight,\n activeBarWidth,\n activeBarBorderWidth,\n motionDurationSlow,\n motionEaseInOut,\n motionEaseOut,\n itemPaddingInline,\n motionDurationMid,\n itemHoverColor,\n lineType,\n colorSplit,\n // Disabled\n itemDisabledColor,\n // Danger\n dangerItemColor,\n dangerItemHoverColor,\n dangerItemSelectedColor,\n dangerItemActiveBg,\n dangerItemSelectedBg,\n itemHoverBg,\n itemActiveBg,\n menuSubMenuBg,\n // Horizontal\n horizontalItemSelectedColor,\n horizontalItemSelectedBg,\n horizontalItemBorderRadius,\n horizontalItemHoverBg,\n popupBg\n } = token;\n return {\n [`${componentCls}-${themeSuffix}, ${componentCls}-${themeSuffix} > ${componentCls}`]: {\n color: itemColor,\n background: itemBg,\n [`&${componentCls}-root:focus-visible`]: Object.assign({}, accessibilityFocus(token)),\n // ======================== Item ========================\n [`${componentCls}-item-group-title`]: {\n color: groupTitleColor\n },\n [`${componentCls}-submenu-selected`]: {\n [`> ${componentCls}-submenu-title`]: {\n color: itemSelectedColor\n }\n },\n // Disabled\n [`${componentCls}-item-disabled, ${componentCls}-submenu-disabled`]: {\n color: `${itemDisabledColor} !important`\n },\n // Hover\n [`${componentCls}-item:not(${componentCls}-item-selected):not(${componentCls}-submenu-selected)`]: {\n [`&:hover, > ${componentCls}-submenu-title:hover`]: {\n color: itemHoverColor\n }\n },\n [`&:not(${componentCls}-horizontal)`]: {\n [`${componentCls}-item:not(${componentCls}-item-selected)`]: {\n '&:hover': {\n backgroundColor: itemHoverBg\n },\n '&:active': {\n backgroundColor: itemActiveBg\n }\n },\n [`${componentCls}-submenu-title`]: {\n '&:hover': {\n backgroundColor: itemHoverBg\n },\n '&:active': {\n backgroundColor: itemActiveBg\n }\n }\n },\n // Danger - only Item has\n [`${componentCls}-item-danger`]: {\n color: dangerItemColor,\n [`&${componentCls}-item:hover`]: {\n [`&:not(${componentCls}-item-selected):not(${componentCls}-submenu-selected)`]: {\n color: dangerItemHoverColor\n }\n },\n [`&${componentCls}-item:active`]: {\n background: dangerItemActiveBg\n }\n },\n [`${componentCls}-item a`]: {\n '&, &:hover': {\n color: 'inherit'\n }\n },\n [`${componentCls}-item-selected`]: {\n color: itemSelectedColor,\n // Danger\n [`&${componentCls}-item-danger`]: {\n color: dangerItemSelectedColor\n },\n [`a, a:hover`]: {\n color: 'inherit'\n }\n },\n [`& ${componentCls}-item-selected`]: {\n backgroundColor: itemSelectedBg,\n // Danger\n [`&${componentCls}-item-danger`]: {\n backgroundColor: dangerItemSelectedBg\n }\n },\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n [`&:not(${componentCls}-item-disabled):focus-visible`]: Object.assign({}, accessibilityFocus(token))\n },\n [`&${componentCls}-submenu > ${componentCls}`]: {\n backgroundColor: menuSubMenuBg\n },\n [`&${componentCls}-popup > ${componentCls}`]: {\n backgroundColor: popupBg\n },\n // ====================== Horizontal ======================\n [`&${componentCls}-horizontal`]: Object.assign(Object.assign({}, themeSuffix === 'dark' ? {\n borderBottom: 0\n } : {}), {\n [`> ${componentCls}-item, > ${componentCls}-submenu`]: {\n top: activeBarBorderWidth,\n marginTop: -activeBarBorderWidth,\n marginBottom: 0,\n borderRadius: horizontalItemBorderRadius,\n '&::after': {\n position: 'absolute',\n insetInline: itemPaddingInline,\n bottom: 0,\n borderBottom: `${activeBarHeight}px solid transparent`,\n transition: `border-color ${motionDurationSlow} ${motionEaseInOut}`,\n content: '\"\"'\n },\n [`&:hover, &-active, &-open`]: {\n background: horizontalItemHoverBg,\n '&::after': {\n borderBottomWidth: activeBarHeight,\n borderBottomColor: horizontalItemSelectedColor\n }\n },\n [`&-selected`]: {\n color: horizontalItemSelectedColor,\n backgroundColor: horizontalItemSelectedBg,\n '&:hover': {\n backgroundColor: horizontalItemSelectedBg\n },\n '&::after': {\n borderBottomWidth: activeBarHeight,\n borderBottomColor: horizontalItemSelectedColor\n }\n }\n }\n }),\n // ================== Inline & Vertical ===================\n //\n [`&${componentCls}-root`]: {\n [`&${componentCls}-inline, &${componentCls}-vertical`]: {\n borderInlineEnd: `${activeBarBorderWidth}px ${lineType} ${colorSplit}`\n }\n },\n // ======================== Inline ========================\n [`&${componentCls}-inline`]: {\n // Sub\n [`${componentCls}-sub${componentCls}-inline`]: {\n background: subMenuItemBg\n },\n // Item\n [`${componentCls}-item, ${componentCls}-submenu-title`]: activeBarBorderWidth && activeBarWidth ? {\n width: `calc(100% + ${activeBarBorderWidth}px)`\n } : {},\n [`${componentCls}-item`]: {\n position: 'relative',\n '&::after': {\n position: 'absolute',\n insetBlock: 0,\n insetInlineEnd: 0,\n borderInlineEnd: `${activeBarWidth}px solid ${itemSelectedColor}`,\n transform: 'scaleY(0.0001)',\n opacity: 0,\n transition: [`transform ${motionDurationMid} ${motionEaseOut}`, `opacity ${motionDurationMid} ${motionEaseOut}`].join(','),\n content: '\"\"'\n },\n // Danger\n [`&${componentCls}-item-danger`]: {\n '&::after': {\n borderInlineEndColor: dangerItemSelectedColor\n }\n }\n },\n [`${componentCls}-selected, ${componentCls}-item-selected`]: {\n '&::after': {\n transform: 'scaleY(1)',\n opacity: 1,\n transition: [`transform ${motionDurationMid} ${motionEaseInOut}`, `opacity ${motionDurationMid} ${motionEaseInOut}`].join(',')\n }\n }\n }\n }\n };\n};\nexport default getThemeStyle;","import { textEllipsis } from '../../style';\nconst getVerticalInlineStyle = token => {\n const {\n componentCls,\n itemHeight,\n itemMarginInline,\n padding,\n menuArrowSize,\n marginXS,\n itemMarginBlock\n } = token;\n const paddingWithArrow = padding + menuArrowSize + marginXS;\n return {\n [`${componentCls}-item`]: {\n position: 'relative',\n overflow: 'hidden'\n },\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: `${itemHeight}px`,\n paddingInline: padding,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n marginInline: itemMarginInline,\n marginBlock: itemMarginBlock,\n width: `calc(100% - ${itemMarginInline * 2}px)`\n },\n [`> ${componentCls}-item,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: `${itemHeight}px`\n },\n [`${componentCls}-item-group-list ${componentCls}-submenu-title,\n ${componentCls}-submenu-title`]: {\n paddingInlineEnd: paddingWithArrow\n }\n };\n};\nconst getVerticalStyle = token => {\n const {\n componentCls,\n iconCls,\n itemHeight,\n colorTextLightSolid,\n dropdownWidth,\n controlHeightLG,\n motionDurationMid,\n motionEaseOut,\n paddingXL,\n itemMarginInline,\n fontSizeLG,\n motionDurationSlow,\n paddingXS,\n boxShadowSecondary,\n collapsedWidth,\n collapsedIconSize\n } = token;\n const inlineItemStyle = {\n height: itemHeight,\n lineHeight: `${itemHeight}px`,\n listStylePosition: 'inside',\n listStyleType: 'disc'\n };\n return [{\n [componentCls]: {\n [`&-inline, &-vertical`]: Object.assign({\n [`&${componentCls}-root`]: {\n boxShadow: 'none'\n }\n }, getVerticalInlineStyle(token))\n },\n [`${componentCls}-submenu-popup`]: {\n [`${componentCls}-vertical`]: Object.assign(Object.assign({}, getVerticalInlineStyle(token)), {\n boxShadow: boxShadowSecondary\n })\n }\n },\n // Vertical only\n {\n [`${componentCls}-submenu-popup ${componentCls}-vertical${componentCls}-sub`]: {\n minWidth: dropdownWidth,\n maxHeight: `calc(100vh - ${controlHeightLG * 2.5}px)`,\n padding: '0',\n overflow: 'hidden',\n borderInlineEnd: 0,\n // https://github.com/ant-design/ant-design/issues/22244\n // https://github.com/ant-design/ant-design/issues/26812\n \"&:not([class*='-active'])\": {\n overflowX: 'hidden',\n overflowY: 'auto'\n }\n }\n },\n // Inline Only\n {\n [`${componentCls}-inline`]: {\n width: '100%',\n // Motion enhance for first level\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n display: 'flex',\n alignItems: 'center',\n transition: [`border-color ${motionDurationSlow}`, `background ${motionDurationSlow}`, `padding ${motionDurationMid} ${motionEaseOut}`].join(','),\n [`> ${componentCls}-title-content`]: {\n flex: 'auto',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n '> *': {\n flex: 'none'\n }\n }\n },\n // >>>>> Sub\n [`${componentCls}-sub${componentCls}-inline`]: {\n padding: 0,\n border: 0,\n borderRadius: 0,\n boxShadow: 'none',\n [`& > ${componentCls}-submenu > ${componentCls}-submenu-title`]: inlineItemStyle,\n [`& ${componentCls}-item-group-title`]: {\n paddingInlineStart: paddingXL\n }\n },\n // >>>>> Item\n [`${componentCls}-item`]: inlineItemStyle\n }\n },\n // Inline Collapse Only\n {\n [`${componentCls}-inline-collapsed`]: {\n width: collapsedWidth,\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {\n [`> ${componentCls}-inline-collapsed-noicon`]: {\n fontSize: fontSizeLG,\n textAlign: 'center'\n }\n }\n },\n [`> ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n insetInlineStart: 0,\n paddingInline: `calc(50% - ${fontSizeLG / 2}px - ${itemMarginInline}px)`,\n textOverflow: 'clip',\n [`\n ${componentCls}-submenu-arrow,\n ${componentCls}-submenu-expand-icon\n `]: {\n opacity: 0\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n margin: 0,\n fontSize: collapsedIconSize,\n lineHeight: `${itemHeight}px`,\n '+ span': {\n display: 'inline-block',\n opacity: 0\n }\n }\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'inline-block'\n },\n '&-tooltip': {\n pointerEvents: 'none',\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'none'\n },\n 'a, a:hover': {\n color: colorTextLightSolid\n }\n },\n [`${componentCls}-item-group-title`]: Object.assign(Object.assign({}, textEllipsis), {\n paddingInline: paddingXS\n })\n }\n }];\n};\nexport default getVerticalStyle;","import { TinyColor } from '@ctrl/tinycolor';\nimport { clearFix, resetComponent, resetIcon } from '../../style';\nimport { genCollapseMotion, initSlideMotion, initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport getHorizontalStyle from './horizontal';\nimport getRTLStyle from './rtl';\nimport getThemeStyle from './theme';\nimport getVerticalStyle from './vertical';\nconst genMenuItemStyle = token => {\n const {\n componentCls,\n motionDurationSlow,\n motionDurationMid,\n motionEaseInOut,\n motionEaseOut,\n iconCls,\n iconSize,\n iconMarginInlineEnd\n } = token;\n return {\n // >>>>> Item\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n position: 'relative',\n display: 'block',\n margin: 0,\n whiteSpace: 'nowrap',\n cursor: 'pointer',\n transition: [`border-color ${motionDurationSlow}`, `background ${motionDurationSlow}`, `padding ${motionDurationSlow} ${motionEaseInOut}`].join(','),\n [`${componentCls}-item-icon, ${iconCls}`]: {\n minWidth: iconSize,\n fontSize: iconSize,\n transition: [`font-size ${motionDurationMid} ${motionEaseOut}`, `margin ${motionDurationSlow} ${motionEaseInOut}`, `color ${motionDurationSlow}`].join(','),\n '+ span': {\n marginInlineStart: iconMarginInlineEnd,\n opacity: 1,\n transition: [`opacity ${motionDurationSlow} ${motionEaseInOut}`, `margin ${motionDurationSlow}`, `color ${motionDurationSlow}`].join(',')\n }\n },\n [`${componentCls}-item-icon`]: Object.assign({}, resetIcon()),\n [`&${componentCls}-item-only-child`]: {\n [`> ${iconCls}, > ${componentCls}-item-icon`]: {\n marginInlineEnd: 0\n }\n }\n },\n // Disabled state sets text to gray and nukes hover/tab effects\n [`${componentCls}-item-disabled, ${componentCls}-submenu-disabled`]: {\n background: 'none !important',\n cursor: 'not-allowed',\n '&::after': {\n borderColor: 'transparent !important'\n },\n a: {\n color: 'inherit !important'\n },\n [`> ${componentCls}-submenu-title`]: {\n color: 'inherit !important',\n cursor: 'not-allowed'\n }\n }\n };\n};\nconst genSubMenuArrowStyle = token => {\n const {\n componentCls,\n motionDurationSlow,\n motionEaseInOut,\n borderRadius,\n menuArrowSize,\n menuArrowOffset\n } = token;\n return {\n [`${componentCls}-submenu`]: {\n [`&-expand-icon, &-arrow`]: {\n position: 'absolute',\n top: '50%',\n insetInlineEnd: token.margin,\n width: menuArrowSize,\n color: 'currentcolor',\n transform: 'translateY(-50%)',\n transition: `transform ${motionDurationSlow} ${motionEaseInOut}, opacity ${motionDurationSlow}`\n },\n '&-arrow': {\n // →\n '&::before, &::after': {\n position: 'absolute',\n width: menuArrowSize * 0.6,\n height: menuArrowSize * 0.15,\n backgroundColor: 'currentcolor',\n borderRadius,\n transition: [`background ${motionDurationSlow} ${motionEaseInOut}`, `transform ${motionDurationSlow} ${motionEaseInOut}`, `top ${motionDurationSlow} ${motionEaseInOut}`, `color ${motionDurationSlow} ${motionEaseInOut}`].join(','),\n content: '\"\"'\n },\n '&::before': {\n transform: `rotate(45deg) translateY(-${menuArrowOffset})`\n },\n '&::after': {\n transform: `rotate(-45deg) translateY(${menuArrowOffset})`\n }\n }\n }\n };\n};\n// =============================== Base ===============================\nconst getBaseStyle = token => {\n const {\n antCls,\n componentCls,\n fontSize,\n motionDurationSlow,\n motionDurationMid,\n motionEaseInOut,\n paddingXS,\n padding,\n colorSplit,\n lineWidth,\n zIndexPopup,\n borderRadiusLG,\n subMenuItemBorderRadius,\n menuArrowSize,\n menuArrowOffset,\n lineType,\n menuPanelMaskInset,\n groupTitleLineHeight,\n groupTitleFontSize\n } = token;\n return [\n // Misc\n {\n '': {\n [`${componentCls}`]: Object.assign(Object.assign({}, clearFix()), {\n // Hidden\n [`&-hidden`]: {\n display: 'none'\n }\n })\n },\n [`${componentCls}-submenu-hidden`]: {\n display: 'none'\n }\n }, {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), clearFix()), {\n marginBottom: 0,\n paddingInlineStart: 0,\n // Override default ul/ol\n fontSize,\n lineHeight: 0,\n listStyle: 'none',\n outline: 'none',\n // Magic cubic here but smooth transition\n transition: `width ${motionDurationSlow} cubic-bezier(0.2, 0, 0, 1) 0s`,\n [`ul, ol`]: {\n margin: 0,\n padding: 0,\n listStyle: 'none'\n },\n // Overflow ellipsis\n [`&-overflow`]: {\n display: 'flex',\n [`${componentCls}-item`]: {\n flex: 'none'\n }\n },\n [`${componentCls}-item, ${componentCls}-submenu, ${componentCls}-submenu-title`]: {\n borderRadius: token.itemBorderRadius\n },\n [`${componentCls}-item-group-title`]: {\n padding: `${paddingXS}px ${padding}px`,\n fontSize: groupTitleFontSize,\n lineHeight: groupTitleLineHeight,\n transition: `all ${motionDurationSlow}`\n },\n [`&-horizontal ${componentCls}-submenu`]: {\n transition: [`border-color ${motionDurationSlow} ${motionEaseInOut}`, `background ${motionDurationSlow} ${motionEaseInOut}`].join(',')\n },\n [`${componentCls}-submenu, ${componentCls}-submenu-inline`]: {\n transition: [`border-color ${motionDurationSlow} ${motionEaseInOut}`, `background ${motionDurationSlow} ${motionEaseInOut}`, `padding ${motionDurationMid} ${motionEaseInOut}`].join(',')\n },\n [`${componentCls}-submenu ${componentCls}-sub`]: {\n cursor: 'initial',\n transition: [`background ${motionDurationSlow} ${motionEaseInOut}`, `padding ${motionDurationSlow} ${motionEaseInOut}`].join(',')\n },\n [`${componentCls}-title-content`]: {\n transition: `color ${motionDurationSlow}`\n },\n [`${componentCls}-item a`]: {\n '&::before': {\n position: 'absolute',\n inset: 0,\n backgroundColor: 'transparent',\n content: '\"\"'\n }\n },\n // Removed a Badge related style seems it's safe\n // https://github.com/ant-design/ant-design/issues/19809\n // >>>>> Divider\n [`${componentCls}-item-divider`]: {\n overflow: 'hidden',\n lineHeight: 0,\n borderColor: colorSplit,\n borderStyle: lineType,\n borderWidth: 0,\n borderTopWidth: lineWidth,\n marginBlock: lineWidth,\n padding: 0,\n '&-dashed': {\n borderStyle: 'dashed'\n }\n }\n }), genMenuItemStyle(token)), {\n [`${componentCls}-item-group`]: {\n [`${componentCls}-item-group-list`]: {\n margin: 0,\n padding: 0,\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n paddingInline: `${fontSize * 2}px ${padding}px`\n }\n }\n },\n // ======================= Sub Menu =======================\n '&-submenu': {\n '&-popup': {\n position: 'absolute',\n zIndex: zIndexPopup,\n borderRadius: borderRadiusLG,\n boxShadow: 'none',\n transformOrigin: '0 0',\n [`&${componentCls}-submenu`]: {\n background: 'transparent'\n },\n // https://github.com/ant-design/ant-design/issues/13955\n '&::before': {\n position: 'absolute',\n inset: `${menuPanelMaskInset}px 0 0`,\n zIndex: -1,\n width: '100%',\n height: '100%',\n opacity: 0,\n content: '\"\"'\n }\n },\n // https://github.com/ant-design/ant-design/issues/13955\n '&-placement-rightTop::before': {\n top: 0,\n insetInlineStart: menuPanelMaskInset\n },\n [`\n &-placement-leftTop,\n &-placement-bottomRight,\n `]: {\n transformOrigin: '100% 0'\n },\n [`\n &-placement-leftBottom,\n &-placement-topRight,\n `]: {\n transformOrigin: '100% 100%'\n },\n [`\n &-placement-rightBottom,\n &-placement-topLeft,\n `]: {\n transformOrigin: '0 100%'\n },\n [`\n &-placement-bottomLeft,\n &-placement-rightTop,\n `]: {\n transformOrigin: '0 0'\n },\n [`\n &-placement-leftTop,\n &-placement-leftBottom\n `]: {\n paddingInlineEnd: token.paddingXS\n },\n [`\n &-placement-rightTop,\n &-placement-rightBottom\n `]: {\n paddingInlineStart: token.paddingXS\n },\n [`\n &-placement-topRight,\n &-placement-topLeft\n `]: {\n paddingBottom: token.paddingXS\n },\n [`\n &-placement-bottomRight,\n &-placement-bottomLeft\n `]: {\n paddingTop: token.paddingXS\n },\n [`> ${componentCls}`]: Object.assign(Object.assign(Object.assign({\n borderRadius: borderRadiusLG\n }, genMenuItemStyle(token)), genSubMenuArrowStyle(token)), {\n [`${componentCls}-item, ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n borderRadius: subMenuItemBorderRadius\n },\n [`${componentCls}-submenu-title::after`]: {\n transition: `transform ${motionDurationSlow} ${motionEaseInOut}`\n }\n })\n }\n }), genSubMenuArrowStyle(token)), {\n [`&-inline-collapsed ${componentCls}-submenu-arrow,\n &-inline ${componentCls}-submenu-arrow`]: {\n // ↓\n '&::before': {\n transform: `rotate(-45deg) translateX(${menuArrowOffset})`\n },\n '&::after': {\n transform: `rotate(45deg) translateX(-${menuArrowOffset})`\n }\n },\n [`${componentCls}-submenu-open${componentCls}-submenu-inline > ${componentCls}-submenu-title > ${componentCls}-submenu-arrow`]: {\n // ↑\n transform: `translateY(-${menuArrowSize * 0.2}px)`,\n '&::after': {\n transform: `rotate(-45deg) translateX(-${menuArrowOffset})`\n },\n '&::before': {\n transform: `rotate(45deg) translateX(${menuArrowOffset})`\n }\n }\n })\n },\n // Integration with header element so menu items have the same height\n {\n [`${antCls}-layout-header`]: {\n [componentCls]: {\n lineHeight: 'inherit'\n }\n }\n }];\n};\n// ============================== Export ==============================\nexport default ((prefixCls, injectStyle) => {\n const useOriginHook = genComponentStyleHook('Menu', token => {\n // Dropdown will handle menu style self. We do not need to handle this.\n if (injectStyle === false) {\n return [];\n }\n const {\n colorBgElevated,\n colorPrimary,\n colorTextLightSolid,\n controlHeightLG,\n fontSize,\n darkItemColor,\n darkDangerItemColor,\n darkItemBg,\n darkSubMenuItemBg,\n darkItemSelectedColor,\n darkItemSelectedBg,\n darkDangerItemSelectedBg,\n darkItemHoverBg,\n darkGroupTitleColor,\n darkItemHoverColor,\n darkItemDisabledColor,\n darkDangerItemHoverColor,\n darkDangerItemSelectedColor,\n darkDangerItemActiveBg\n } = token;\n const menuArrowSize = fontSize / 7 * 5;\n // Menu Token\n const menuToken = mergeToken(token, {\n menuArrowSize,\n menuHorizontalHeight: controlHeightLG * 1.15,\n menuArrowOffset: `${menuArrowSize * 0.25}px`,\n menuPanelMaskInset: -7,\n menuSubMenuBg: colorBgElevated\n });\n const menuDarkToken = mergeToken(menuToken, {\n itemColor: darkItemColor,\n itemHoverColor: darkItemHoverColor,\n groupTitleColor: darkGroupTitleColor,\n itemSelectedColor: darkItemSelectedColor,\n itemBg: darkItemBg,\n popupBg: darkItemBg,\n subMenuItemBg: darkSubMenuItemBg,\n itemActiveBg: 'transparent',\n itemSelectedBg: darkItemSelectedBg,\n activeBarHeight: 0,\n activeBarBorderWidth: 0,\n itemHoverBg: darkItemHoverBg,\n // Disabled\n itemDisabledColor: darkItemDisabledColor,\n // Danger\n dangerItemColor: darkDangerItemColor,\n dangerItemHoverColor: darkDangerItemHoverColor,\n dangerItemSelectedColor: darkDangerItemSelectedColor,\n dangerItemActiveBg: darkDangerItemActiveBg,\n dangerItemSelectedBg: darkDangerItemSelectedBg,\n menuSubMenuBg: darkSubMenuItemBg,\n // Horizontal\n horizontalItemSelectedColor: colorTextLightSolid,\n horizontalItemSelectedBg: colorPrimary\n });\n return [\n // Basic\n getBaseStyle(menuToken),\n // Horizontal\n getHorizontalStyle(menuToken),\n // Vertical\n getVerticalStyle(menuToken),\n // Theme\n getThemeStyle(menuToken, 'light'), getThemeStyle(menuDarkToken, 'dark'),\n // RTL\n getRTLStyle(menuToken),\n // Motion\n genCollapseMotion(menuToken), initSlideMotion(menuToken, 'slide-up'), initSlideMotion(menuToken, 'slide-down'), initZoomMotion(menuToken, 'zoom-big')];\n }, token => {\n const {\n colorPrimary,\n colorError,\n colorTextDisabled,\n colorErrorBg,\n colorText,\n colorTextDescription,\n colorBgContainer,\n colorFillAlter,\n colorFillContent,\n lineWidth,\n lineWidthBold,\n controlItemBgActive,\n colorBgTextHover,\n controlHeightLG,\n lineHeight,\n colorBgElevated,\n marginXXS,\n padding,\n fontSize,\n controlHeightSM,\n fontSizeLG,\n colorTextLightSolid,\n colorErrorHover\n } = token;\n const colorTextDark = new TinyColor(colorTextLightSolid).setAlpha(0.65).toRgbString();\n return {\n dropdownWidth: 160,\n zIndexPopup: token.zIndexPopupBase + 50,\n radiusItem: token.borderRadiusLG,\n itemBorderRadius: token.borderRadiusLG,\n radiusSubMenuItem: token.borderRadiusSM,\n subMenuItemBorderRadius: token.borderRadiusSM,\n colorItemText: colorText,\n itemColor: colorText,\n colorItemTextHover: colorText,\n itemHoverColor: colorText,\n colorItemTextHoverHorizontal: colorPrimary,\n horizontalItemHoverColor: colorPrimary,\n colorGroupTitle: colorTextDescription,\n groupTitleColor: colorTextDescription,\n colorItemTextSelected: colorPrimary,\n itemSelectedColor: colorPrimary,\n colorItemTextSelectedHorizontal: colorPrimary,\n horizontalItemSelectedColor: colorPrimary,\n colorItemBg: colorBgContainer,\n itemBg: colorBgContainer,\n colorItemBgHover: colorBgTextHover,\n itemHoverBg: colorBgTextHover,\n colorItemBgActive: colorFillContent,\n itemActiveBg: controlItemBgActive,\n colorSubItemBg: colorFillAlter,\n subMenuItemBg: colorFillAlter,\n colorItemBgSelected: controlItemBgActive,\n itemSelectedBg: controlItemBgActive,\n colorItemBgSelectedHorizontal: 'transparent',\n horizontalItemSelectedBg: 'transparent',\n colorActiveBarWidth: 0,\n activeBarWidth: 0,\n colorActiveBarHeight: lineWidthBold,\n activeBarHeight: lineWidthBold,\n colorActiveBarBorderSize: lineWidth,\n activeBarBorderWidth: lineWidth,\n // Disabled\n colorItemTextDisabled: colorTextDisabled,\n itemDisabledColor: colorTextDisabled,\n // Danger\n colorDangerItemText: colorError,\n dangerItemColor: colorError,\n colorDangerItemTextHover: colorError,\n dangerItemHoverColor: colorError,\n colorDangerItemTextSelected: colorError,\n dangerItemSelectedColor: colorError,\n colorDangerItemBgActive: colorErrorBg,\n dangerItemActiveBg: colorErrorBg,\n colorDangerItemBgSelected: colorErrorBg,\n dangerItemSelectedBg: colorErrorBg,\n itemMarginInline: token.marginXXS,\n horizontalItemBorderRadius: 0,\n horizontalItemHoverBg: 'transparent',\n itemHeight: controlHeightLG,\n groupTitleLineHeight: lineHeight,\n collapsedWidth: controlHeightLG * 2,\n popupBg: colorBgElevated,\n itemMarginBlock: marginXXS,\n itemPaddingInline: padding,\n horizontalLineHeight: `${controlHeightLG * 1.15}px`,\n iconSize: fontSize,\n iconMarginInlineEnd: controlHeightSM - fontSize,\n collapsedIconSize: fontSizeLG,\n groupTitleFontSize: fontSize,\n // Disabled\n darkItemDisabledColor: new TinyColor(colorTextLightSolid).setAlpha(0.25).toRgbString(),\n // Dark\n darkItemColor: colorTextDark,\n darkDangerItemColor: colorError,\n darkItemBg: '#001529',\n darkSubMenuItemBg: '#000c17',\n darkItemSelectedColor: colorTextLightSolid,\n darkItemSelectedBg: colorPrimary,\n darkDangerItemSelectedBg: colorError,\n darkItemHoverBg: 'transparent',\n darkGroupTitleColor: colorTextDark,\n darkItemHoverColor: colorTextLightSolid,\n darkDangerItemHoverColor: colorErrorHover,\n darkDangerItemSelectedColor: colorTextLightSolid,\n darkDangerItemActiveBg: colorError\n };\n }, {\n 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']]\n });\n return useOriginHook(prefixCls);\n});","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport classNames from 'classnames';\nimport RcMenu from 'rc-menu';\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport initCollapseMotion from '../_util/motion';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport MenuContext from './MenuContext';\nimport OverrideContext from './OverrideContext';\nimport useItems from './hooks/useItems';\nimport useStyle from './style';\nconst InternalMenu = /*#__PURE__*/forwardRef((props, ref) => {\n var _a, _b;\n const override = React.useContext(OverrideContext);\n const overrideObj = override || {};\n const {\n getPrefixCls,\n getPopupContainer,\n direction,\n menu\n } = React.useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n const {\n prefixCls: customizePrefixCls,\n className,\n style,\n theme = 'light',\n expandIcon,\n _internalDisableMenuItemTitleTooltip,\n inlineCollapsed,\n siderCollapsed,\n items,\n children,\n rootClassName,\n mode,\n selectable,\n onClick,\n overflowedIndicatorPopupClassName\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"style\", \"theme\", \"expandIcon\", \"_internalDisableMenuItemTitleTooltip\", \"inlineCollapsed\", \"siderCollapsed\", \"items\", \"children\", \"rootClassName\", \"mode\", \"selectable\", \"onClick\", \"overflowedIndicatorPopupClassName\"]);\n const passedProps = omit(restProps, ['collapsedWidth']);\n // ========================= Items ===========================\n const mergedChildren = useItems(items) || children;\n // ======================== Warning ==========================\n process.env.NODE_ENV !== \"production\" ? warning(!('inlineCollapsed' in props && mode !== 'inline'), 'Menu', '`inlineCollapsed` should only be used when `mode` is inline.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!(props.siderCollapsed !== undefined && 'inlineCollapsed' in props), 'Menu', '`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning('items' in props && !children, 'Menu', '`children` will be removed in next major version. Please use `items` instead.') : void 0;\n (_a = overrideObj.validator) === null || _a === void 0 ? void 0 : _a.call(overrideObj, {\n mode\n });\n // ========================== Click ==========================\n // Tell dropdown that item clicked\n const onItemClick = useEvent(function () {\n var _a;\n onClick === null || onClick === void 0 ? void 0 : onClick.apply(void 0, arguments);\n (_a = overrideObj.onClick) === null || _a === void 0 ? void 0 : _a.call(overrideObj);\n });\n // ========================== Mode ===========================\n const mergedMode = overrideObj.mode || mode;\n // ======================= Selectable ========================\n const mergedSelectable = selectable !== null && selectable !== void 0 ? selectable : overrideObj.selectable;\n // ======================== Collapsed ========================\n // Inline Collapsed\n const mergedInlineCollapsed = React.useMemo(() => {\n if (siderCollapsed !== undefined) {\n return siderCollapsed;\n }\n return inlineCollapsed;\n }, [inlineCollapsed, siderCollapsed]);\n const defaultMotions = {\n horizontal: {\n motionName: `${rootPrefixCls}-slide-up`\n },\n inline: initCollapseMotion(rootPrefixCls),\n other: {\n motionName: `${rootPrefixCls}-zoom-big`\n }\n };\n const prefixCls = getPrefixCls('menu', customizePrefixCls || overrideObj.prefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls, !override);\n const menuClassName = classNames(`${prefixCls}-${theme}`, menu === null || menu === void 0 ? void 0 : menu.className, className);\n // ====================== Expand Icon ========================\n let mergedExpandIcon;\n if (typeof expandIcon === 'function') {\n mergedExpandIcon = expandIcon;\n } else {\n const beClone = expandIcon || overrideObj.expandIcon;\n mergedExpandIcon = cloneElement(beClone, {\n className: classNames(`${prefixCls}-submenu-expand-icon`, isValidElement(beClone) ? (_b = beClone.props) === null || _b === void 0 ? void 0 : _b.className : '')\n });\n }\n // ======================== Context ==========================\n const contextValue = React.useMemo(() => ({\n prefixCls,\n inlineCollapsed: mergedInlineCollapsed || false,\n direction,\n firstLevel: true,\n theme,\n mode: mergedMode,\n disableMenuItemTitleTooltip: _internalDisableMenuItemTitleTooltip\n }), [prefixCls, mergedInlineCollapsed, direction, _internalDisableMenuItemTitleTooltip, theme]);\n // ========================= Render ==========================\n return wrapSSR( /*#__PURE__*/React.createElement(OverrideContext.Provider, {\n value: null\n }, /*#__PURE__*/React.createElement(MenuContext.Provider, {\n value: contextValue\n }, /*#__PURE__*/React.createElement(RcMenu, Object.assign({\n getPopupContainer: getPopupContainer,\n overflowedIndicator: /*#__PURE__*/React.createElement(EllipsisOutlined, null),\n overflowedIndicatorPopupClassName: classNames(prefixCls, `${prefixCls}-${theme}`, overflowedIndicatorPopupClassName),\n mode: mergedMode,\n selectable: mergedSelectable,\n onClick: onItemClick\n }, passedProps, {\n inlineCollapsed: mergedInlineCollapsed,\n style: Object.assign(Object.assign({}, menu === null || menu === void 0 ? void 0 : menu.style), style),\n className: menuClassName,\n prefixCls: prefixCls,\n direction: direction,\n defaultMotions: defaultMotions,\n expandIcon: mergedExpandIcon,\n ref: ref,\n rootClassName: classNames(rootClassName, hashId)\n }), mergedChildren))));\n});\nexport default InternalMenu;","'use client';\n\nimport { ItemGroup } from 'rc-menu';\nimport * as React from 'react';\nimport { forwardRef, useImperativeHandle, useRef } from 'react';\nimport { SiderContext } from '../layout/Sider';\nimport MenuDivider from './MenuDivider';\nimport Item from './MenuItem';\nimport SubMenu from './SubMenu';\nimport InternalMenu from './menu';\nconst Menu = /*#__PURE__*/forwardRef((props, ref) => {\n const menuRef = useRef(null);\n const context = React.useContext(SiderContext);\n useImperativeHandle(ref, () => ({\n menu: menuRef.current,\n focus: options => {\n var _a;\n (_a = menuRef.current) === null || _a === void 0 ? void 0 : _a.focus(options);\n }\n }));\n return /*#__PURE__*/React.createElement(InternalMenu, Object.assign({\n ref: menuRef\n }, props, context));\n});\nMenu.Item = Item;\nMenu.SubMenu = SubMenu;\nMenu.Divider = MenuDivider;\nMenu.ItemGroup = ItemGroup;\nif (process.env.NODE_ENV !== 'production') {\n Menu.displayName = 'Menu';\n}\nexport default Menu;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport { Notice } from 'rc-notification';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nexport const TypeIcon = {\n info: /*#__PURE__*/React.createElement(InfoCircleFilled, null),\n success: /*#__PURE__*/React.createElement(CheckCircleFilled, null),\n error: /*#__PURE__*/React.createElement(CloseCircleFilled, null),\n warning: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),\n loading: /*#__PURE__*/React.createElement(LoadingOutlined, null)\n};\nexport const PureContent = _ref => {\n let {\n prefixCls,\n type,\n icon,\n children\n } = _ref;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(`${prefixCls}-custom-content`, `${prefixCls}-${type}`)\n }, icon || TypeIcon[type], /*#__PURE__*/React.createElement(\"span\", null, children));\n};\n/** @private Internal Component. Do not use in your production. */\nconst PurePanel = props => {\n const {\n prefixCls: staticPrefixCls,\n className,\n type,\n icon,\n content\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"type\", \"icon\", \"content\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = staticPrefixCls || getPrefixCls('message');\n const [, hashId] = useStyle(prefixCls);\n return /*#__PURE__*/React.createElement(Notice, Object.assign({}, restProps, {\n prefixCls: prefixCls,\n className: classNames(className, hashId, `${prefixCls}-notice-pure-panel`),\n eventKey: \"pure\",\n duration: null,\n content: /*#__PURE__*/React.createElement(PureContent, {\n prefixCls: prefixCls,\n type: type,\n icon: icon\n }, content)\n }));\n};\nexport default PurePanel;","'use client';\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport { render } from \"rc-util/es/React/render\";\nimport ConfigProvider, { globalConfig, warnContext } from '../config-provider';\nimport PurePanel from './PurePanel';\nimport useMessage, { useInternalMessage } from './useMessage';\nimport { wrapPromiseFn } from './util';\nlet message = null;\nlet act = callback => callback();\nlet taskQueue = [];\nlet defaultGlobalConfig = {};\nfunction getGlobalContext() {\n const {\n prefixCls: globalPrefixCls,\n getContainer: globalGetContainer,\n duration,\n rtl,\n maxCount,\n top\n } = defaultGlobalConfig;\n const mergedPrefixCls = globalPrefixCls !== null && globalPrefixCls !== void 0 ? globalPrefixCls : globalConfig().getPrefixCls('message');\n const mergedContainer = (globalGetContainer === null || globalGetContainer === void 0 ? void 0 : globalGetContainer()) || document.body;\n return {\n prefixCls: mergedPrefixCls,\n getContainer: () => mergedContainer,\n duration,\n rtl,\n maxCount,\n top\n };\n}\nconst GlobalHolder = /*#__PURE__*/React.forwardRef((_, ref) => {\n const [messageConfig, setMessageConfig] = React.useState(getGlobalContext);\n const [api, holder] = useInternalMessage(messageConfig);\n const global = globalConfig();\n const rootPrefixCls = global.getRootPrefixCls();\n const rootIconPrefixCls = global.getIconPrefixCls();\n const theme = global.getTheme();\n const sync = () => {\n setMessageConfig(getGlobalContext);\n };\n React.useEffect(sync, []);\n React.useImperativeHandle(ref, () => {\n const instance = Object.assign({}, api);\n Object.keys(instance).forEach(method => {\n instance[method] = function () {\n sync();\n return api[method].apply(api, arguments);\n };\n });\n return {\n instance,\n sync\n };\n });\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n prefixCls: rootPrefixCls,\n iconPrefixCls: rootIconPrefixCls,\n theme: theme\n }, holder);\n});\nfunction flushNotice() {\n if (!message) {\n const holderFragment = document.createDocumentFragment();\n const newMessage = {\n fragment: holderFragment\n };\n message = newMessage;\n // Delay render to avoid sync issue\n act(() => {\n render( /*#__PURE__*/React.createElement(GlobalHolder, {\n ref: node => {\n const {\n instance,\n sync\n } = node || {};\n // React 18 test env will throw if call immediately in ref\n Promise.resolve().then(() => {\n if (!newMessage.instance && instance) {\n newMessage.instance = instance;\n newMessage.sync = sync;\n flushNotice();\n }\n });\n }\n }), holderFragment);\n });\n return;\n }\n // Notification not ready\n if (!message.instance) {\n return;\n }\n // >>> Execute task\n taskQueue.forEach(task => {\n const {\n type,\n skipped\n } = task;\n // Only `skipped` when user call notice but cancel it immediately\n // and instance not ready\n if (!skipped) {\n switch (type) {\n case 'open':\n {\n act(() => {\n const closeFn = message.instance.open(Object.assign(Object.assign({}, defaultGlobalConfig), task.config));\n closeFn === null || closeFn === void 0 ? void 0 : closeFn.then(task.resolve);\n task.setCloseFn(closeFn);\n });\n break;\n }\n case 'destroy':\n act(() => {\n message === null || message === void 0 ? void 0 : message.instance.destroy(task.key);\n });\n break;\n // Other type open\n default:\n {\n act(() => {\n var _message$instance;\n const closeFn = (_message$instance = message.instance)[type].apply(_message$instance, _toConsumableArray(task.args));\n closeFn === null || closeFn === void 0 ? void 0 : closeFn.then(task.resolve);\n task.setCloseFn(closeFn);\n });\n }\n }\n }\n });\n // Clean up\n taskQueue = [];\n}\n// ==============================================================================\n// == Export ==\n// ==============================================================================\nfunction setMessageGlobalConfig(config) {\n defaultGlobalConfig = Object.assign(Object.assign({}, defaultGlobalConfig), config);\n // Trigger sync for it\n act(() => {\n var _a;\n (_a = message === null || message === void 0 ? void 0 : message.sync) === null || _a === void 0 ? void 0 : _a.call(message);\n });\n}\nfunction open(config) {\n const result = wrapPromiseFn(resolve => {\n let closeFn;\n const task = {\n type: 'open',\n config,\n resolve,\n setCloseFn: fn => {\n closeFn = fn;\n }\n };\n taskQueue.push(task);\n return () => {\n if (closeFn) {\n act(() => {\n closeFn();\n });\n } else {\n task.skipped = true;\n }\n };\n });\n flushNotice();\n return result;\n}\nfunction typeOpen(type, args) {\n // Warning if exist theme\n if (process.env.NODE_ENV !== 'production') {\n warnContext('message');\n }\n const result = wrapPromiseFn(resolve => {\n let closeFn;\n const task = {\n type,\n args,\n resolve,\n setCloseFn: fn => {\n closeFn = fn;\n }\n };\n taskQueue.push(task);\n return () => {\n if (closeFn) {\n act(() => {\n closeFn();\n });\n } else {\n task.skipped = true;\n }\n };\n });\n flushNotice();\n return result;\n}\nfunction destroy(key) {\n taskQueue.push({\n type: 'destroy',\n key\n });\n flushNotice();\n}\nconst methods = ['success', 'info', 'warning', 'error', 'loading'];\nconst baseStaticMethods = {\n open,\n destroy,\n config: setMessageGlobalConfig,\n useMessage,\n _InternalPanelDoNotUseOrYouWillBeFired: PurePanel\n};\nconst staticMethods = baseStaticMethods;\nmethods.forEach(type => {\n staticMethods[type] = function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n return typeOpen(type, args);\n };\n});\n// ==============================================================================\n// == Test ==\n// ==============================================================================\nconst noop = () => {};\n/** @internal Only Work in test env */\n// eslint-disable-next-line import/no-mutable-exports\nexport let actWrapper = noop;\nif (process.env.NODE_ENV === 'test') {\n actWrapper = wrapper => {\n act = wrapper;\n };\n}\n/** @internal Only Work in test env */\n// eslint-disable-next-line import/no-mutable-exports\nexport let actDestroy = noop;\nif (process.env.NODE_ENV === 'test') {\n actDestroy = () => {\n message = null;\n };\n}\nexport default staticMethods;","import { Keyframes } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genMessageStyle = token => {\n const {\n componentCls,\n iconCls,\n boxShadow,\n colorText,\n colorSuccess,\n colorError,\n colorWarning,\n colorInfo,\n fontSizeLG,\n motionEaseInOutCirc,\n motionDurationSlow,\n marginXS,\n paddingXS,\n borderRadiusLG,\n zIndexPopup,\n // Custom token\n contentPadding,\n contentBg\n } = token;\n const noticeCls = `${componentCls}-notice`;\n const messageMoveIn = new Keyframes('MessageMoveIn', {\n '0%': {\n padding: 0,\n transform: 'translateY(-100%)',\n opacity: 0\n },\n '100%': {\n padding: paddingXS,\n transform: 'translateY(0)',\n opacity: 1\n }\n });\n const messageMoveOut = new Keyframes('MessageMoveOut', {\n '0%': {\n maxHeight: token.height,\n padding: paddingXS,\n opacity: 1\n },\n '100%': {\n maxHeight: 0,\n padding: 0,\n opacity: 0\n }\n });\n const noticeStyle = {\n padding: paddingXS,\n textAlign: 'center',\n [`${componentCls}-custom-content > ${iconCls}`]: {\n verticalAlign: 'text-bottom',\n marginInlineEnd: marginXS,\n fontSize: fontSizeLG\n },\n [`${noticeCls}-content`]: {\n display: 'inline-block',\n padding: contentPadding,\n background: contentBg,\n borderRadius: borderRadiusLG,\n boxShadow,\n pointerEvents: 'all'\n },\n [`${componentCls}-success > ${iconCls}`]: {\n color: colorSuccess\n },\n [`${componentCls}-error > ${iconCls}`]: {\n color: colorError\n },\n [`${componentCls}-warning > ${iconCls}`]: {\n color: colorWarning\n },\n [`${componentCls}-info > ${iconCls},\n ${componentCls}-loading > ${iconCls}`]: {\n color: colorInfo\n }\n };\n return [\n // ============================ Holder ============================\n {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n color: colorText,\n position: 'fixed',\n top: marginXS,\n width: '100%',\n pointerEvents: 'none',\n zIndex: zIndexPopup,\n [`${componentCls}-move-up`]: {\n animationFillMode: 'forwards'\n },\n [`\n ${componentCls}-move-up-appear,\n ${componentCls}-move-up-enter\n `]: {\n animationName: messageMoveIn,\n animationDuration: motionDurationSlow,\n animationPlayState: 'paused',\n animationTimingFunction: motionEaseInOutCirc\n },\n [`\n ${componentCls}-move-up-appear${componentCls}-move-up-appear-active,\n ${componentCls}-move-up-enter${componentCls}-move-up-enter-active\n `]: {\n animationPlayState: 'running'\n },\n [`${componentCls}-move-up-leave`]: {\n animationName: messageMoveOut,\n animationDuration: motionDurationSlow,\n animationPlayState: 'paused',\n animationTimingFunction: motionEaseInOutCirc\n },\n [`${componentCls}-move-up-leave${componentCls}-move-up-leave-active`]: {\n animationPlayState: 'running'\n },\n '&-rtl': {\n direction: 'rtl',\n span: {\n direction: 'rtl'\n }\n }\n })\n },\n // ============================ Notice ============================\n {\n [componentCls]: {\n [noticeCls]: Object.assign({}, noticeStyle)\n }\n },\n // ============================= Pure =============================\n {\n [`${componentCls}-notice-pure-panel`]: Object.assign(Object.assign({}, noticeStyle), {\n padding: 0,\n textAlign: 'start'\n })\n }];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Message', token => {\n // Gen-style functions here\n const combinedToken = mergeToken(token, {\n height: 150\n });\n return [genMessageStyle(combinedToken)];\n}, token => ({\n zIndexPopup: token.zIndexPopupBase + 10,\n contentBg: token.colorBgElevated,\n contentPadding: `${(token.controlHeightLG - token.fontSize * token.lineHeight) / 2}px ${token.paddingSM}px`\n}), {\n clientOnly: true\n});","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nimport { useNotification as useRcNotification } from 'rc-notification';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { PureContent } from './PurePanel';\nimport useStyle from './style';\nimport { getMotion, wrapPromiseFn } from './util';\nconst DEFAULT_OFFSET = 8;\nconst DEFAULT_DURATION = 3;\nconst Holder = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n top,\n prefixCls: staticPrefixCls,\n getContainer: staticGetContainer,\n maxCount,\n duration = DEFAULT_DURATION,\n rtl,\n transitionName,\n onAllRemoved\n } = props;\n const {\n getPrefixCls,\n getPopupContainer,\n message\n } = React.useContext(ConfigContext);\n const prefixCls = staticPrefixCls || getPrefixCls('message');\n const [, hashId] = useStyle(prefixCls);\n // =============================== Style ===============================\n const getStyle = () => ({\n left: '50%',\n transform: 'translateX(-50%)',\n top: top !== null && top !== void 0 ? top : DEFAULT_OFFSET\n });\n const getClassName = () => classNames(hashId, {\n [`${prefixCls}-rtl`]: rtl\n });\n // ============================== Motion ===============================\n const getNotificationMotion = () => getMotion(prefixCls, transitionName);\n // ============================ Close Icon =============================\n const mergedCloseIcon = /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-close-x`\n }, /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${prefixCls}-close-icon`\n }));\n // ============================== Origin ===============================\n const [api, holder] = useRcNotification({\n prefixCls,\n style: getStyle,\n className: getClassName,\n motion: getNotificationMotion,\n closable: false,\n closeIcon: mergedCloseIcon,\n duration,\n getContainer: () => (staticGetContainer === null || staticGetContainer === void 0 ? void 0 : staticGetContainer()) || (getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer()) || document.body,\n maxCount,\n onAllRemoved\n });\n // ================================ Ref ================================\n React.useImperativeHandle(ref, () => Object.assign(Object.assign({}, api), {\n prefixCls,\n hashId,\n message\n }));\n return holder;\n});\n// ==============================================================================\n// == Hook ==\n// ==============================================================================\nlet keyIndex = 0;\nexport function useInternalMessage(messageConfig) {\n const holderRef = React.useRef(null);\n // ================================ API ================================\n const wrapAPI = React.useMemo(() => {\n // Wrap with notification content\n // >>> close\n const close = key => {\n var _a;\n (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.close(key);\n };\n // >>> Open\n const open = config => {\n if (!holderRef.current) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Message', 'You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.') : void 0;\n const fakeResult = () => {};\n fakeResult.then = () => {};\n return fakeResult;\n }\n const {\n open: originOpen,\n prefixCls,\n hashId,\n message\n } = holderRef.current;\n const noticePrefixCls = `${prefixCls}-notice`;\n const {\n content,\n icon,\n type,\n key,\n className,\n style,\n onClose\n } = config,\n restConfig = __rest(config, [\"content\", \"icon\", \"type\", \"key\", \"className\", \"style\", \"onClose\"]);\n let mergedKey = key;\n if (mergedKey === undefined || mergedKey === null) {\n keyIndex += 1;\n mergedKey = `antd-message-${keyIndex}`;\n }\n return wrapPromiseFn(resolve => {\n originOpen(Object.assign(Object.assign({}, restConfig), {\n key: mergedKey,\n content: /*#__PURE__*/React.createElement(PureContent, {\n prefixCls: prefixCls,\n type: type,\n icon: icon\n }, content),\n placement: 'top',\n className: classNames(type && `${noticePrefixCls}-${type}`, hashId, className, message === null || message === void 0 ? void 0 : message.className),\n style: Object.assign(Object.assign({}, message === null || message === void 0 ? void 0 : message.style), style),\n onClose: () => {\n onClose === null || onClose === void 0 ? void 0 : onClose();\n resolve();\n }\n }));\n // Return close function\n return () => {\n close(mergedKey);\n };\n });\n };\n // >>> destroy\n const destroy = key => {\n var _a;\n if (key !== undefined) {\n close(key);\n } else {\n (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.destroy();\n }\n };\n const clone = {\n open,\n destroy\n };\n const keys = ['info', 'success', 'warning', 'error', 'loading'];\n keys.forEach(type => {\n const typeOpen = (jointContent, duration, onClose) => {\n let config;\n if (jointContent && typeof jointContent === 'object' && 'content' in jointContent) {\n config = jointContent;\n } else {\n config = {\n content: jointContent\n };\n }\n // Params\n let mergedDuration;\n let mergedOnClose;\n if (typeof duration === 'function') {\n mergedOnClose = duration;\n } else {\n mergedDuration = duration;\n mergedOnClose = onClose;\n }\n const mergedConfig = Object.assign(Object.assign({\n onClose: mergedOnClose,\n duration: mergedDuration\n }, config), {\n type\n });\n return open(mergedConfig);\n };\n clone[type] = typeOpen;\n });\n return clone;\n }, []);\n // ============================== Return ===============================\n return [wrapAPI, /*#__PURE__*/React.createElement(Holder, Object.assign({\n key: \"message-holder\"\n }, messageConfig, {\n ref: holderRef\n }))];\n}\nexport default function useMessage(messageConfig) {\n return useInternalMessage(messageConfig);\n}","export function getMotion(prefixCls, transitionName) {\n return {\n motionName: transitionName !== null && transitionName !== void 0 ? transitionName : `${prefixCls}-move-up`\n };\n}\n/** Wrap message open with promise like function */\nexport function wrapPromiseFn(openFn) {\n let closeFn;\n const closePromise = new Promise(resolve => {\n closeFn = openFn(() => {\n resolve(true);\n });\n });\n const result = () => {\n closeFn === null || closeFn === void 0 ? void 0 : closeFn();\n };\n result.then = (filled, rejected) => closePromise.then(filled, rejected);\n result.promise = closePromise;\n return result;\n}","import CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport ActionButton from '../_util/ActionButton';\nimport { getTransitionName } from '../_util/motion';\nimport warning from '../_util/warning';\nimport ConfigProvider from '../config-provider';\nimport { useLocale } from '../locale';\nimport Dialog from './Modal';\nexport function ConfirmContent(props) {\n const {\n icon,\n onCancel,\n onOk,\n close,\n onConfirm,\n isSilent,\n okText,\n okButtonProps,\n cancelText,\n cancelButtonProps,\n confirmPrefixCls,\n rootPrefixCls,\n type,\n okCancel,\n footer,\n // Legacy for static function usage\n locale: staticLocale\n } = props;\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Modal', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n // Icon\n let mergedIcon = icon;\n // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon\n if (!icon && icon !== null) {\n switch (type) {\n case 'info':\n mergedIcon = /*#__PURE__*/React.createElement(InfoCircleFilled, null);\n break;\n case 'success':\n mergedIcon = /*#__PURE__*/React.createElement(CheckCircleFilled, null);\n break;\n case 'error':\n mergedIcon = /*#__PURE__*/React.createElement(CloseCircleFilled, null);\n break;\n default:\n mergedIcon = /*#__PURE__*/React.createElement(ExclamationCircleFilled, null);\n }\n }\n const okType = props.okType || 'primary';\n // 默认为 true,保持向下兼容\n const mergedOkCancel = okCancel !== null && okCancel !== void 0 ? okCancel : type === 'confirm';\n const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';\n const [locale] = useLocale('Modal');\n const mergedLocale = staticLocale || locale;\n const cancelButton = mergedOkCancel && /*#__PURE__*/React.createElement(ActionButton, {\n isSilent: isSilent,\n actionFn: onCancel,\n close: function () {\n close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);\n onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(false);\n },\n autoFocus: autoFocusButton === 'cancel',\n buttonProps: cancelButtonProps,\n prefixCls: `${rootPrefixCls}-btn`\n }, cancelText || (mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.cancelText));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-body-wrapper`\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-body`\n }, mergedIcon, props.title === undefined ? null : /*#__PURE__*/React.createElement(\"span\", {\n className: `${confirmPrefixCls}-title`\n }, props.title), /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-content`\n }, props.content)), footer === undefined ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-btns`\n }, cancelButton, /*#__PURE__*/React.createElement(ActionButton, {\n isSilent: isSilent,\n type: okType,\n actionFn: onOk,\n close: function () {\n close === null || close === void 0 ? void 0 : close.apply(void 0, arguments);\n onConfirm === null || onConfirm === void 0 ? void 0 : onConfirm(true);\n },\n autoFocus: autoFocusButton === 'ok',\n buttonProps: okButtonProps,\n prefixCls: `${rootPrefixCls}-btn`\n }, okText || (mergedOkCancel ? mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.okText : mergedLocale === null || mergedLocale === void 0 ? void 0 : mergedLocale.justOkText))) : footer);\n}\nconst ConfirmDialog = props => {\n const {\n close,\n zIndex,\n afterClose,\n visible,\n open,\n keyboard,\n centered,\n getContainer,\n maskStyle,\n direction,\n prefixCls,\n wrapClassName,\n rootPrefixCls,\n iconPrefixCls,\n theme,\n bodyStyle,\n closable = false,\n closeIcon,\n modalRender,\n focusTriggerAfterClose\n } = props;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(visible === undefined, 'Modal', `\\`visible\\` is deprecated, please use \\`open\\` instead.`) : void 0;\n }\n const confirmPrefixCls = `${prefixCls}-confirm`;\n const width = props.width || 416;\n const style = props.style || {};\n const mask = props.mask === undefined ? true : props.mask;\n // 默认为 false,保持旧版默认行为\n const maskClosable = props.maskClosable === undefined ? false : props.maskClosable;\n const classString = classNames(confirmPrefixCls, `${confirmPrefixCls}-${props.type}`, {\n [`${confirmPrefixCls}-rtl`]: direction === 'rtl'\n }, props.className);\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n prefixCls: rootPrefixCls,\n iconPrefixCls: iconPrefixCls,\n direction: direction,\n theme: theme\n }, /*#__PURE__*/React.createElement(Dialog, {\n prefixCls: prefixCls,\n className: classString,\n wrapClassName: classNames({\n [`${confirmPrefixCls}-centered`]: !!props.centered\n }, wrapClassName),\n onCancel: () => close === null || close === void 0 ? void 0 : close({\n triggerCancel: true\n }),\n open: open,\n title: \"\",\n footer: null,\n transitionName: getTransitionName(rootPrefixCls, 'zoom', props.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', props.maskTransitionName),\n mask: mask,\n maskClosable: maskClosable,\n maskStyle: maskStyle,\n style: style,\n bodyStyle: bodyStyle,\n width: width,\n zIndex: zIndex,\n afterClose: afterClose,\n keyboard: keyboard,\n centered: centered,\n getContainer: getContainer,\n closable: closable,\n closeIcon: closeIcon,\n modalRender: modalRender,\n focusTriggerAfterClose: focusTriggerAfterClose\n }, /*#__PURE__*/React.createElement(ConfirmContent, Object.assign({}, props, {\n confirmPrefixCls: confirmPrefixCls\n }))));\n};\nif (process.env.NODE_ENV !== 'production') {\n ConfirmDialog.displayName = 'ConfirmDialog';\n}\nexport default ConfirmDialog;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport classNames from 'classnames';\nimport Dialog from 'rc-dialog';\nimport * as React from 'react';\nimport useClosable from '../_util/hooks/useClosable';\nimport { getTransitionName } from '../_util/motion';\nimport { canUseDocElement } from '../_util/styleChecker';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { NoFormStyle } from '../form/context';\nimport { NoCompactStyle } from '../space/Compact';\nimport { Footer, renderCloseIcon } from './shared';\nimport useStyle from './style';\nlet mousePosition;\n// ref: https://github.com/ant-design/ant-design/issues/15795\nconst getClickPosition = e => {\n mousePosition = {\n x: e.pageX,\n y: e.pageY\n };\n // 100ms 内发生过点击事件,则从点击位置动画展示\n // 否则直接 zoom 展示\n // 这样可以兼容非点击方式展开\n setTimeout(() => {\n mousePosition = null;\n }, 100);\n};\n// 只有点击事件支持从鼠标位置动画展开\nif (canUseDocElement()) {\n document.documentElement.addEventListener('click', getClickPosition, true);\n}\nconst Modal = props => {\n var _a;\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction,\n modal\n } = React.useContext(ConfigContext);\n const handleCancel = e => {\n const {\n onCancel\n } = props;\n onCancel === null || onCancel === void 0 ? void 0 : onCancel(e);\n };\n const handleOk = e => {\n const {\n onOk\n } = props;\n onOk === null || onOk === void 0 ? void 0 : onOk(e);\n };\n process.env.NODE_ENV !== \"production\" ? warning(!('visible' in props), 'Modal', `\\`visible\\` will be removed in next major version, please use \\`open\\` instead.`) : void 0;\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n open,\n wrapClassName,\n centered,\n getContainer,\n closeIcon,\n closable,\n focusTriggerAfterClose = true,\n style,\n // Deprecated\n visible,\n width = 520,\n footer\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"rootClassName\", \"open\", \"wrapClassName\", \"centered\", \"getContainer\", \"closeIcon\", \"closable\", \"focusTriggerAfterClose\", \"style\", \"visible\", \"width\", \"footer\"]);\n const prefixCls = getPrefixCls('modal', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const wrapClassNameExtended = classNames(wrapClassName, {\n [`${prefixCls}-centered`]: !!centered,\n [`${prefixCls}-wrap-rtl`]: direction === 'rtl'\n });\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!('visible' in props), 'Modal', '`visible` is deprecated, please use `open` instead.') : void 0;\n }\n const dialogFooter = footer === undefined ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, props, {\n onOk: handleOk,\n onCancel: handleCancel\n })) : footer;\n const [mergedClosable, mergedCloseIcon] = useClosable(closable, closeIcon, icon => renderCloseIcon(prefixCls, icon), /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${prefixCls}-close-icon`\n }), true);\n return wrapSSR( /*#__PURE__*/React.createElement(NoCompactStyle, null, /*#__PURE__*/React.createElement(NoFormStyle, {\n status: true,\n override: true\n }, /*#__PURE__*/React.createElement(Dialog, Object.assign({\n width: width\n }, restProps, {\n getContainer: getContainer === undefined ? getContextPopupContainer : getContainer,\n prefixCls: prefixCls,\n rootClassName: classNames(hashId, rootClassName),\n wrapClassName: wrapClassNameExtended,\n footer: dialogFooter,\n visible: open !== null && open !== void 0 ? open : visible,\n mousePosition: (_a = restProps.mousePosition) !== null && _a !== void 0 ? _a : mousePosition,\n onClose: handleCancel,\n closable: mergedClosable,\n closeIcon: mergedCloseIcon,\n focusTriggerAfterClose: focusTriggerAfterClose,\n transitionName: getTransitionName(rootPrefixCls, 'zoom', props.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls, 'fade', props.maskTransitionName),\n className: classNames(hashId, className, modal === null || modal === void 0 ? void 0 : modal.className),\n style: Object.assign(Object.assign({}, modal === null || modal === void 0 ? void 0 : modal.style), style)\n })))));\n};\nexport default Modal;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { render as reactRender, unmount as reactUnmount } from \"rc-util/es/React/render\";\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { globalConfig, warnContext } from '../config-provider';\nimport ConfirmDialog from './ConfirmDialog';\nimport destroyFns from './destroyFns';\nimport { getConfirmLocale } from './locale';\nlet defaultRootPrefixCls = '';\nfunction getRootPrefixCls() {\n return defaultRootPrefixCls;\n}\nexport default function confirm(config) {\n // Warning if exist theme\n if (process.env.NODE_ENV !== 'production') {\n warnContext('Modal');\n }\n const container = document.createDocumentFragment();\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n let currentConfig = Object.assign(Object.assign({}, config), {\n close,\n open: true\n });\n let timeoutId;\n function destroy() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n const triggerCancel = args.some(param => param && param.triggerCancel);\n if (config.onCancel && triggerCancel) {\n config.onCancel.apply(config, [() => {}].concat(_toConsumableArray(args.slice(1))));\n }\n for (let i = 0; i < destroyFns.length; i++) {\n const fn = destroyFns[i];\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n if (fn === close) {\n destroyFns.splice(i, 1);\n break;\n }\n }\n reactUnmount(container);\n }\n function render(_a) {\n var {\n okText,\n cancelText,\n prefixCls: customizePrefixCls,\n getContainer\n } = _a,\n props = __rest(_a, [\"okText\", \"cancelText\", \"prefixCls\", \"getContainer\"]);\n clearTimeout(timeoutId);\n /**\n * https://github.com/ant-design/ant-design/issues/23623\n *\n * Sync render blocks React event. Let's make this async.\n */\n timeoutId = setTimeout(() => {\n const runtimeLocale = getConfirmLocale();\n const {\n getPrefixCls,\n getIconPrefixCls,\n getTheme\n } = globalConfig();\n // because Modal.config \b set rootPrefixCls, which is different from other components\n const rootPrefixCls = getPrefixCls(undefined, getRootPrefixCls());\n const prefixCls = customizePrefixCls || `${rootPrefixCls}-modal`;\n const iconPrefixCls = getIconPrefixCls();\n const theme = getTheme();\n let mergedGetContainer = getContainer;\n if (mergedGetContainer === false) {\n mergedGetContainer = undefined;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Modal', 'Static method not support `getContainer` to be `false` since it do not have context env.') : void 0;\n }\n }\n reactRender( /*#__PURE__*/React.createElement(ConfirmDialog, Object.assign({}, props, {\n getContainer: mergedGetContainer,\n prefixCls: prefixCls,\n rootPrefixCls: rootPrefixCls,\n iconPrefixCls: iconPrefixCls,\n okText: okText,\n locale: runtimeLocale,\n theme: theme,\n cancelText: cancelText || runtimeLocale.cancelText\n })), container);\n });\n }\n function close() {\n for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n args[_key2] = arguments[_key2];\n }\n currentConfig = Object.assign(Object.assign({}, currentConfig), {\n open: false,\n afterClose: () => {\n if (typeof config.afterClose === 'function') {\n config.afterClose();\n }\n destroy.apply(this, args);\n }\n });\n // Legacy support\n if (currentConfig.visible) {\n delete currentConfig.visible;\n }\n render(currentConfig);\n }\n function update(configUpdate) {\n if (typeof configUpdate === 'function') {\n currentConfig = configUpdate(currentConfig);\n } else {\n currentConfig = Object.assign(Object.assign({}, currentConfig), configUpdate);\n }\n render(currentConfig);\n }\n render(currentConfig);\n destroyFns.push(close);\n return {\n destroy: close,\n update\n };\n}\nexport function withWarn(props) {\n return Object.assign(Object.assign({}, props), {\n type: 'warning'\n });\n}\nexport function withInfo(props) {\n return Object.assign(Object.assign({}, props), {\n type: 'info'\n });\n}\nexport function withSuccess(props) {\n return Object.assign(Object.assign({}, props), {\n type: 'success'\n });\n}\nexport function withError(props) {\n return Object.assign(Object.assign({}, props), {\n type: 'error'\n });\n}\nexport function withConfirm(props) {\n return Object.assign(Object.assign({}, props), {\n type: 'confirm'\n });\n}\nexport function modalGlobalConfig(_ref) {\n let {\n rootPrefixCls\n } = _ref;\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Modal', 'Modal.config is deprecated. Please use ConfigProvider.config instead.') : void 0;\n defaultRootPrefixCls = rootPrefixCls;\n}","const destroyFns = [];\nexport default destroyFns;","/* eslint-disable react/jsx-no-useless-fragment */\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { Panel } from 'rc-dialog';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { ConfirmContent } from './ConfirmDialog';\nimport { Footer, renderCloseIcon } from './shared';\nimport useStyle from './style';\nimport { withPureRenderTheme } from '../_util/PurePanel';\nconst PurePanel = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n closeIcon,\n closable,\n type,\n title,\n children\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"closeIcon\", \"closable\", \"type\", \"title\", \"children\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n const prefixCls = customizePrefixCls || getPrefixCls('modal');\n const [, hashId] = useStyle(prefixCls);\n const confirmPrefixCls = `${prefixCls}-confirm`;\n // Choose target props by confirm mark\n let additionalProps = {};\n if (type) {\n additionalProps = {\n closable: closable !== null && closable !== void 0 ? closable : false,\n title: '',\n footer: '',\n children: /*#__PURE__*/React.createElement(ConfirmContent, Object.assign({}, props, {\n confirmPrefixCls: confirmPrefixCls,\n rootPrefixCls: rootPrefixCls,\n content: children\n }))\n };\n } else {\n additionalProps = {\n closable: closable !== null && closable !== void 0 ? closable : true,\n title,\n footer: props.footer === undefined ? /*#__PURE__*/React.createElement(Footer, Object.assign({}, props)) : props.footer,\n children\n };\n }\n return /*#__PURE__*/React.createElement(Panel, Object.assign({\n prefixCls: prefixCls,\n className: classNames(hashId, `${prefixCls}-pure-panel`, type && confirmPrefixCls, type && `${confirmPrefixCls}-${type}`, className)\n }, restProps, {\n closeIcon: renderCloseIcon(prefixCls, closeIcon),\n closable: closable\n }, additionalProps));\n};\nexport default withPureRenderTheme(PurePanel);","'use client';\n\nimport confirm, { modalGlobalConfig, withConfirm, withError, withInfo, withSuccess, withWarn } from './confirm';\nimport destroyFns from './destroyFns';\nimport OriginModal from './Modal';\nimport PurePanel from './PurePanel';\nimport useModal from './useModal';\nfunction modalWarn(props) {\n return confirm(withWarn(props));\n}\nconst Modal = OriginModal;\nModal.useModal = useModal;\nModal.info = function infoFn(props) {\n return confirm(withInfo(props));\n};\nModal.success = function successFn(props) {\n return confirm(withSuccess(props));\n};\nModal.error = function errorFn(props) {\n return confirm(withError(props));\n};\nModal.warning = modalWarn;\nModal.warn = modalWarn;\nModal.confirm = function confirmFn(props) {\n return confirm(withConfirm(props));\n};\nModal.destroyAll = function destroyAllFn() {\n while (destroyFns.length) {\n const close = destroyFns.pop();\n if (close) {\n close();\n }\n }\n};\nModal.config = modalGlobalConfig;\nModal._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Modal.displayName = 'Modal';\n}\nexport default Modal;","import defaultLocale from '../locale/en_US';\nlet runtimeLocale = Object.assign({}, defaultLocale.Modal);\nlet localeList = [];\nconst generateLocale = () => localeList.reduce((merged, locale) => Object.assign(Object.assign({}, merged), locale), defaultLocale.Modal);\nexport function changeConfirmLocale(newLocale) {\n if (newLocale) {\n const cloneLocale = Object.assign({}, newLocale);\n localeList.push(cloneLocale);\n runtimeLocale = generateLocale();\n return () => {\n localeList = localeList.filter(locale => locale !== cloneLocale);\n runtimeLocale = generateLocale();\n };\n }\n runtimeLocale = Object.assign({}, defaultLocale.Modal);\n}\nexport function getConfirmLocale() {\n return runtimeLocale;\n}","import CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport React from 'react';\nimport Button from '../button';\nimport { convertLegacyProps } from '../button/button';\nimport { DisabledContextProvider } from '../config-provider/DisabledContext';\nimport { useLocale } from '../locale';\nimport { getConfirmLocale } from './locale';\nexport function renderCloseIcon(prefixCls, closeIcon) {\n return /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-close-x`\n }, closeIcon || /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${prefixCls}-close-icon`\n }));\n}\nexport const Footer = props => {\n const {\n okText,\n okType = 'primary',\n cancelText,\n confirmLoading,\n onOk,\n onCancel,\n okButtonProps,\n cancelButtonProps\n } = props;\n const [locale] = useLocale('Modal', getConfirmLocale());\n return /*#__PURE__*/React.createElement(DisabledContextProvider, {\n disabled: false\n }, /*#__PURE__*/React.createElement(Button, Object.assign({\n onClick: onCancel\n }, cancelButtonProps), cancelText || (locale === null || locale === void 0 ? void 0 : locale.cancelText)), /*#__PURE__*/React.createElement(Button, Object.assign({}, convertLegacyProps(okType), {\n loading: confirmLoading,\n onClick: onOk\n }, okButtonProps), okText || (locale === null || locale === void 0 ? void 0 : locale.okText)));\n};","import { clearFix, genFocusStyle, resetComponent } from '../../style';\nimport { initFadeMotion, initZoomMotion } from '../../style/motion';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nfunction box(position) {\n return {\n position,\n inset: 0\n };\n}\nexport const genModalMaskStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n return [{\n [`${componentCls}-root`]: {\n [`${componentCls}${antCls}-zoom-enter, ${componentCls}${antCls}-zoom-appear`]: {\n // reset scale avoid mousePosition bug\n transform: 'none',\n opacity: 0,\n animationDuration: token.motionDurationSlow,\n // https://github.com/ant-design/ant-design/issues/11777\n userSelect: 'none'\n },\n // https://github.com/ant-design/ant-design/issues/37329\n // https://github.com/ant-design/ant-design/issues/40272\n [`${componentCls}${antCls}-zoom-leave ${componentCls}-content`]: {\n pointerEvents: 'none'\n },\n [`${componentCls}-mask`]: Object.assign(Object.assign({}, box('fixed')), {\n zIndex: token.zIndexPopupBase,\n height: '100%',\n backgroundColor: token.colorBgMask,\n pointerEvents: 'none',\n [`${componentCls}-hidden`]: {\n display: 'none'\n }\n }),\n [`${componentCls}-wrap`]: Object.assign(Object.assign({}, box('fixed')), {\n zIndex: token.zIndexPopupBase,\n overflow: 'auto',\n outline: 0,\n WebkitOverflowScrolling: 'touch',\n // Note: Firefox not support `:has` yet\n [`&:has(${componentCls}${antCls}-zoom-enter), &:has(${componentCls}${antCls}-zoom-appear)`]: {\n pointerEvents: 'none'\n }\n })\n }\n }, {\n [`${componentCls}-root`]: initFadeMotion(token)\n }];\n};\nconst genModalStyle = token => {\n const {\n componentCls\n } = token;\n return [\n // ======================== Root =========================\n {\n [`${componentCls}-root`]: {\n [`${componentCls}-wrap-rtl`]: {\n direction: 'rtl'\n },\n [`${componentCls}-centered`]: {\n textAlign: 'center',\n '&::before': {\n display: 'inline-block',\n width: 0,\n height: '100%',\n verticalAlign: 'middle',\n content: '\"\"'\n },\n [componentCls]: {\n top: 0,\n display: 'inline-block',\n paddingBottom: 0,\n textAlign: 'start',\n verticalAlign: 'middle'\n }\n },\n [`@media (max-width: ${token.screenSMMax})`]: {\n [componentCls]: {\n maxWidth: 'calc(100vw - 16px)',\n margin: `${token.marginXS} auto`\n },\n [`${componentCls}-centered`]: {\n [componentCls]: {\n flex: 1\n }\n }\n }\n }\n },\n // ======================== Modal ========================\n {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n pointerEvents: 'none',\n position: 'relative',\n top: 100,\n width: 'auto',\n maxWidth: `calc(100vw - ${token.margin * 2}px)`,\n margin: '0 auto',\n paddingBottom: token.paddingLG,\n [`${componentCls}-title`]: {\n margin: 0,\n color: token.titleColor,\n fontWeight: token.fontWeightStrong,\n fontSize: token.titleFontSize,\n lineHeight: token.titleLineHeight,\n wordWrap: 'break-word'\n },\n [`${componentCls}-content`]: {\n position: 'relative',\n backgroundColor: token.contentBg,\n backgroundClip: 'padding-box',\n border: 0,\n borderRadius: token.borderRadiusLG,\n boxShadow: token.boxShadow,\n pointerEvents: 'auto',\n padding: `${token.paddingMD}px ${token.paddingContentHorizontalLG}px`\n },\n [`${componentCls}-close`]: Object.assign({\n position: 'absolute',\n top: (token.modalHeaderHeight - token.modalCloseBtnSize) / 2,\n insetInlineEnd: (token.modalHeaderHeight - token.modalCloseBtnSize) / 2,\n zIndex: token.zIndexPopupBase + 10,\n padding: 0,\n color: token.modalCloseIconColor,\n fontWeight: token.fontWeightStrong,\n lineHeight: 1,\n textDecoration: 'none',\n background: 'transparent',\n borderRadius: token.borderRadiusSM,\n width: token.modalCloseBtnSize,\n height: token.modalCloseBtnSize,\n border: 0,\n outline: 0,\n cursor: 'pointer',\n transition: `color ${token.motionDurationMid}, background-color ${token.motionDurationMid}`,\n '&-x': {\n display: 'flex',\n fontSize: token.fontSizeLG,\n fontStyle: 'normal',\n lineHeight: `${token.modalCloseBtnSize}px`,\n justifyContent: 'center',\n textTransform: 'none',\n textRendering: 'auto'\n },\n '&:hover': {\n color: token.modalIconHoverColor,\n backgroundColor: token.wireframe ? 'transparent' : token.colorFillContent,\n textDecoration: 'none'\n },\n '&:active': {\n backgroundColor: token.wireframe ? 'transparent' : token.colorFillContentHover\n }\n }, genFocusStyle(token)),\n [`${componentCls}-header`]: {\n color: token.colorText,\n background: token.headerBg,\n borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`,\n marginBottom: token.marginXS\n },\n [`${componentCls}-body`]: {\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n wordWrap: 'break-word'\n },\n [`${componentCls}-footer`]: {\n textAlign: 'end',\n background: token.footerBg,\n marginTop: token.marginSM,\n [`${token.antCls}-btn + ${token.antCls}-btn:not(${token.antCls}-dropdown-trigger)`]: {\n marginBottom: 0,\n marginInlineStart: token.marginXS\n }\n },\n [`${componentCls}-open`]: {\n overflow: 'hidden'\n }\n })\n },\n // ======================== Pure =========================\n {\n [`${componentCls}-pure-panel`]: {\n top: 'auto',\n padding: 0,\n display: 'flex',\n flexDirection: 'column',\n [`${componentCls}-content,\n ${componentCls}-body,\n ${componentCls}-confirm-body-wrapper`]: {\n display: 'flex',\n flexDirection: 'column',\n flex: 'auto'\n },\n [`${componentCls}-confirm-body`]: {\n marginBottom: 'auto'\n }\n }\n }];\n};\nconst genModalConfirmStyle = token => {\n const {\n componentCls\n } = token;\n const confirmComponentCls = `${componentCls}-confirm`;\n return {\n [confirmComponentCls]: {\n '&-rtl': {\n direction: 'rtl'\n },\n [`${token.antCls}-modal-header`]: {\n display: 'none'\n },\n [`${confirmComponentCls}-body-wrapper`]: Object.assign({}, clearFix()),\n [`${confirmComponentCls}-body`]: {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n [`${confirmComponentCls}-title`]: {\n flex: '0 0 100%',\n display: 'block',\n // create BFC to avoid\n // https://user-images.githubusercontent.com/507615/37702510-ba844e06-2d2d-11e8-9b67-8e19be57f445.png\n overflow: 'hidden',\n color: token.colorTextHeading,\n fontWeight: token.fontWeightStrong,\n fontSize: token.titleFontSize,\n lineHeight: token.titleLineHeight,\n [`+ ${confirmComponentCls}-content`]: {\n marginBlockStart: token.marginXS,\n flexBasis: '100%',\n maxWidth: `calc(100% - ${token.modalConfirmIconSize + token.marginSM}px)`\n }\n },\n [`${confirmComponentCls}-content`]: {\n color: token.colorText,\n fontSize: token.fontSize\n },\n [`> ${token.iconCls}`]: {\n flex: 'none',\n marginInlineEnd: token.marginSM,\n fontSize: token.modalConfirmIconSize,\n [`+ ${confirmComponentCls}-title`]: {\n flex: 1\n },\n // `content` after `icon` should set marginLeft\n [`+ ${confirmComponentCls}-title + ${confirmComponentCls}-content`]: {\n marginInlineStart: token.modalConfirmIconSize + token.marginSM\n }\n }\n },\n [`${confirmComponentCls}-btns`]: {\n textAlign: 'end',\n marginTop: token.marginSM,\n [`${token.antCls}-btn + ${token.antCls}-btn`]: {\n marginBottom: 0,\n marginInlineStart: token.marginXS\n }\n }\n },\n [`${confirmComponentCls}-error ${confirmComponentCls}-body > ${token.iconCls}`]: {\n color: token.colorError\n },\n [`${confirmComponentCls}-warning ${confirmComponentCls}-body > ${token.iconCls},\n ${confirmComponentCls}-confirm ${confirmComponentCls}-body > ${token.iconCls}`]: {\n color: token.colorWarning\n },\n [`${confirmComponentCls}-info ${confirmComponentCls}-body > ${token.iconCls}`]: {\n color: token.colorInfo\n },\n [`${confirmComponentCls}-success ${confirmComponentCls}-body > ${token.iconCls}`]: {\n color: token.colorSuccess\n }\n };\n};\nconst genRTLStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-root`]: {\n [`${componentCls}-wrap-rtl`]: {\n direction: 'rtl',\n [`${componentCls}-confirm-body`]: {\n direction: 'rtl'\n }\n }\n }\n };\n};\nconst genWireframeStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const confirmComponentCls = `${componentCls}-confirm`;\n return {\n [componentCls]: {\n [`${componentCls}-content`]: {\n padding: 0\n },\n [`${componentCls}-header`]: {\n padding: token.modalHeaderPadding,\n borderBottom: `${token.modalHeaderBorderWidth}px ${token.modalHeaderBorderStyle} ${token.modalHeaderBorderColorSplit}`,\n marginBottom: 0\n },\n [`${componentCls}-body`]: {\n padding: token.modalBodyPadding\n },\n [`${componentCls}-footer`]: {\n padding: `${token.modalFooterPaddingVertical}px ${token.modalFooterPaddingHorizontal}px`,\n borderTop: `${token.modalFooterBorderWidth}px ${token.modalFooterBorderStyle} ${token.modalFooterBorderColorSplit}`,\n borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px`,\n marginTop: 0\n }\n },\n [confirmComponentCls]: {\n [`${antCls}-modal-body`]: {\n padding: `${token.padding * 2}px ${token.padding * 2}px ${token.paddingLG}px`\n },\n [`${confirmComponentCls}-body`]: {\n [`> ${token.iconCls}`]: {\n marginInlineEnd: token.margin,\n // `content` after `icon` should set marginLeft\n [`+ ${confirmComponentCls}-title + ${confirmComponentCls}-content`]: {\n marginInlineStart: token.modalConfirmIconSize + token.margin\n }\n }\n },\n [`${confirmComponentCls}-btns`]: {\n marginTop: token.marginLG\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Modal', token => {\n const headerPaddingVertical = token.padding;\n const headerFontSize = token.fontSizeHeading5;\n const headerLineHeight = token.lineHeightHeading5;\n const modalToken = mergeToken(token, {\n modalBodyPadding: token.paddingLG,\n modalHeaderPadding: `${headerPaddingVertical}px ${token.paddingLG}px`,\n modalHeaderBorderWidth: token.lineWidth,\n modalHeaderBorderStyle: token.lineType,\n modalHeaderBorderColorSplit: token.colorSplit,\n modalHeaderHeight: headerLineHeight * headerFontSize + headerPaddingVertical * 2,\n modalFooterBorderColorSplit: token.colorSplit,\n modalFooterBorderStyle: token.lineType,\n modalFooterPaddingVertical: token.paddingXS,\n modalFooterPaddingHorizontal: token.padding,\n modalFooterBorderWidth: token.lineWidth,\n modalIconHoverColor: token.colorIconHover,\n modalCloseIconColor: token.colorIcon,\n modalCloseBtnSize: token.fontSize * token.lineHeight,\n modalConfirmIconSize: token.fontSize * token.lineHeight\n });\n return [genModalStyle(modalToken), genModalConfirmStyle(modalToken), genRTLStyle(modalToken), genModalMaskStyle(modalToken), token.wireframe && genWireframeStyle(modalToken), initZoomMotion(modalToken, 'zoom')];\n}, token => ({\n footerBg: 'transparent',\n headerBg: token.colorBgElevated,\n titleLineHeight: token.lineHeightHeading5,\n titleFontSize: token.fontSizeHeading5,\n contentBg: token.colorBgElevated,\n titleColor: token.colorTextHeading\n}));","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nexport default function usePatchElement() {\n const [elements, setElements] = React.useState([]);\n const patchElement = React.useCallback(element => {\n // append a new element to elements (and create a new ref)\n setElements(originElements => [].concat(_toConsumableArray(originElements), [element]));\n // return a function that removes the new element out of elements (and create a new ref)\n // it works a little like useEffect\n return () => {\n setElements(originElements => originElements.filter(ele => ele !== element));\n };\n }, []);\n return [elements, patchElement];\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport { ConfigContext } from '../../config-provider';\nimport defaultLocale from '../../locale/en_US';\nimport useLocale from '../../locale/useLocale';\nimport ConfirmDialog from '../ConfirmDialog';\nconst HookModal = (_a, ref) => {\n var _b;\n var {\n afterClose: hookAfterClose,\n config\n } = _a,\n restProps = __rest(_a, [\"afterClose\", \"config\"]);\n const [open, setOpen] = React.useState(true);\n const [innerConfig, setInnerConfig] = React.useState(config);\n const {\n direction,\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('modal');\n const rootPrefixCls = getPrefixCls();\n const afterClose = () => {\n var _a;\n hookAfterClose();\n (_a = innerConfig.afterClose) === null || _a === void 0 ? void 0 : _a.call(innerConfig);\n };\n const close = function () {\n setOpen(false);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n const triggerCancel = args.some(param => param && param.triggerCancel);\n if (innerConfig.onCancel && triggerCancel) {\n innerConfig.onCancel.apply(innerConfig, [() => {}].concat(_toConsumableArray(args.slice(1))));\n }\n };\n React.useImperativeHandle(ref, () => ({\n destroy: close,\n update: newConfig => {\n setInnerConfig(originConfig => Object.assign(Object.assign({}, originConfig), newConfig));\n }\n }));\n const mergedOkCancel = (_b = innerConfig.okCancel) !== null && _b !== void 0 ? _b : innerConfig.type === 'confirm';\n const [contextLocale] = useLocale('Modal', defaultLocale.Modal);\n return /*#__PURE__*/React.createElement(ConfirmDialog, Object.assign({\n prefixCls: prefixCls,\n rootPrefixCls: rootPrefixCls\n }, innerConfig, {\n close: close,\n open: open,\n afterClose: afterClose,\n okText: innerConfig.okText || (mergedOkCancel ? contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.okText : contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.justOkText),\n direction: innerConfig.direction || direction,\n cancelText: innerConfig.cancelText || (contextLocale === null || contextLocale === void 0 ? void 0 : contextLocale.cancelText)\n }, restProps));\n};\nexport default /*#__PURE__*/React.forwardRef(HookModal);","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport usePatchElement from '../../_util/hooks/usePatchElement';\nimport { withConfirm, withError, withInfo, withSuccess, withWarn } from '../confirm';\nimport destroyFns from '../destroyFns';\nimport HookModal from './HookModal';\nlet uuid = 0;\nconst ElementsHolder = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef((_props, ref) => {\n const [elements, patchElement] = usePatchElement();\n React.useImperativeHandle(ref, () => ({\n patchElement\n }), []);\n // eslint-disable-next-line react/jsx-no-useless-fragment\n return /*#__PURE__*/React.createElement(React.Fragment, null, elements);\n}));\nfunction useModal() {\n const holderRef = React.useRef(null);\n // ========================== Effect ==========================\n const [actionQueue, setActionQueue] = React.useState([]);\n React.useEffect(() => {\n if (actionQueue.length) {\n const cloneQueue = _toConsumableArray(actionQueue);\n cloneQueue.forEach(action => {\n action();\n });\n setActionQueue([]);\n }\n }, [actionQueue]);\n // =========================== Hook ===========================\n const getConfirmFunc = React.useCallback(withFunc => function hookConfirm(config) {\n var _a;\n uuid += 1;\n const modalRef = /*#__PURE__*/React.createRef();\n // Proxy to promise with `onClose`\n let resolvePromise;\n const promise = new Promise(resolve => {\n resolvePromise = resolve;\n });\n let silent = false;\n let closeFunc;\n const modal = /*#__PURE__*/React.createElement(HookModal, {\n key: `modal-${uuid}`,\n config: withFunc(config),\n ref: modalRef,\n afterClose: () => {\n closeFunc === null || closeFunc === void 0 ? void 0 : closeFunc();\n },\n isSilent: () => silent,\n onConfirm: confirmed => {\n resolvePromise(confirmed);\n }\n });\n closeFunc = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.patchElement(modal);\n if (closeFunc) {\n destroyFns.push(closeFunc);\n }\n const instance = {\n destroy: () => {\n function destroyAction() {\n var _a;\n (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.destroy();\n }\n if (modalRef.current) {\n destroyAction();\n } else {\n setActionQueue(prev => [].concat(_toConsumableArray(prev), [destroyAction]));\n }\n },\n update: newConfig => {\n function updateAction() {\n var _a;\n (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.update(newConfig);\n }\n if (modalRef.current) {\n updateAction();\n } else {\n setActionQueue(prev => [].concat(_toConsumableArray(prev), [updateAction]));\n }\n },\n then: resolve => {\n silent = true;\n return promise.then(resolve);\n }\n };\n return instance;\n }, []);\n const fns = React.useMemo(() => ({\n info: getConfirmFunc(withInfo),\n success: getConfirmFunc(withSuccess),\n error: getConfirmFunc(withError),\n warning: getConfirmFunc(withWarn),\n confirm: getConfirmFunc(withConfirm)\n }), []);\n return [fns, /*#__PURE__*/React.createElement(ElementsHolder, {\n key: \"modal-holder\",\n ref: holderRef\n })];\n}\nexport default useModal;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport { Notice } from 'rc-notification';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nexport const TypeIcon = {\n info: /*#__PURE__*/React.createElement(InfoCircleFilled, null),\n success: /*#__PURE__*/React.createElement(CheckCircleFilled, null),\n error: /*#__PURE__*/React.createElement(CloseCircleFilled, null),\n warning: /*#__PURE__*/React.createElement(ExclamationCircleFilled, null),\n loading: /*#__PURE__*/React.createElement(LoadingOutlined, null)\n};\nexport function getCloseIcon(prefixCls, closeIcon) {\n if (closeIcon === null || closeIcon === false) {\n return null;\n }\n return closeIcon || /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-close-x`\n }, /*#__PURE__*/React.createElement(CloseOutlined, {\n className: `${prefixCls}-close-icon`\n }));\n}\nconst typeToIcon = {\n success: CheckCircleFilled,\n info: InfoCircleFilled,\n error: CloseCircleFilled,\n warning: ExclamationCircleFilled\n};\nexport const PureContent = props => {\n const {\n prefixCls,\n icon,\n type,\n message,\n description,\n btn,\n role = 'alert'\n } = props;\n let iconNode = null;\n if (icon) {\n iconNode = /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-icon`\n }, icon);\n } else if (type) {\n iconNode = /*#__PURE__*/React.createElement(typeToIcon[type] || null, {\n className: classNames(`${prefixCls}-icon`, `${prefixCls}-icon-${type}`)\n });\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames({\n [`${prefixCls}-with-icon`]: iconNode\n }),\n role: role\n }, iconNode, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-message`\n }, message), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-description`\n }, description), btn && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-btn`\n }, btn));\n};\n/** @private Internal Component. Do not use in your production. */\nconst PurePanel = props => {\n const {\n prefixCls: staticPrefixCls,\n className,\n icon,\n type,\n message,\n description,\n btn,\n closable = true,\n closeIcon\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"icon\", \"type\", \"message\", \"description\", \"btn\", \"closable\", \"closeIcon\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = staticPrefixCls || getPrefixCls('notification');\n const noticePrefixCls = `${prefixCls}-notice`;\n const [, hashId] = useStyle(prefixCls);\n return /*#__PURE__*/React.createElement(Notice, Object.assign({}, restProps, {\n prefixCls: prefixCls,\n className: classNames(className, hashId, `${noticePrefixCls}-pure-panel`),\n eventKey: \"pure\",\n duration: null,\n closable: closable,\n closeIcon: getCloseIcon(prefixCls, closeIcon),\n content: /*#__PURE__*/React.createElement(PureContent, {\n prefixCls: noticePrefixCls,\n icon: icon,\n type: type,\n message: message,\n description: description,\n btn: btn\n })\n }));\n};\nexport default PurePanel;","'use client';\n\nimport * as React from 'react';\nimport { render } from \"rc-util/es/React/render\";\nimport ConfigProvider, { globalConfig, warnContext } from '../config-provider';\nimport PurePanel from './PurePanel';\nimport useNotification, { useInternalNotification } from './useNotification';\nlet notification = null;\nlet act = callback => callback();\nlet taskQueue = [];\nlet defaultGlobalConfig = {};\nfunction getGlobalContext() {\n const {\n prefixCls: globalPrefixCls,\n getContainer: globalGetContainer,\n rtl,\n maxCount,\n top,\n bottom\n } = defaultGlobalConfig;\n const mergedPrefixCls = globalPrefixCls !== null && globalPrefixCls !== void 0 ? globalPrefixCls : globalConfig().getPrefixCls('notification');\n const mergedContainer = (globalGetContainer === null || globalGetContainer === void 0 ? void 0 : globalGetContainer()) || document.body;\n return {\n prefixCls: mergedPrefixCls,\n getContainer: () => mergedContainer,\n rtl,\n maxCount,\n top,\n bottom\n };\n}\nconst GlobalHolder = /*#__PURE__*/React.forwardRef((_, ref) => {\n const [notificationConfig, setNotificationConfig] = React.useState(getGlobalContext);\n const [api, holder] = useInternalNotification(notificationConfig);\n const global = globalConfig();\n const rootPrefixCls = global.getRootPrefixCls();\n const rootIconPrefixCls = global.getIconPrefixCls();\n const theme = global.getTheme();\n const sync = () => {\n setNotificationConfig(getGlobalContext);\n };\n React.useEffect(sync, []);\n React.useImperativeHandle(ref, () => {\n const instance = Object.assign({}, api);\n Object.keys(instance).forEach(method => {\n instance[method] = function () {\n sync();\n return api[method].apply(api, arguments);\n };\n });\n return {\n instance,\n sync\n };\n });\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n prefixCls: rootPrefixCls,\n iconPrefixCls: rootIconPrefixCls,\n theme: theme\n }, holder);\n});\nfunction flushNotice() {\n if (!notification) {\n const holderFragment = document.createDocumentFragment();\n const newNotification = {\n fragment: holderFragment\n };\n notification = newNotification;\n // Delay render to avoid sync issue\n act(() => {\n render( /*#__PURE__*/React.createElement(GlobalHolder, {\n ref: node => {\n const {\n instance,\n sync\n } = node || {};\n Promise.resolve().then(() => {\n if (!newNotification.instance && instance) {\n newNotification.instance = instance;\n newNotification.sync = sync;\n flushNotice();\n }\n });\n }\n }), holderFragment);\n });\n return;\n }\n // Notification not ready\n if (!notification.instance) {\n return;\n }\n // >>> Execute task\n taskQueue.forEach(task => {\n // eslint-disable-next-line default-case\n switch (task.type) {\n case 'open':\n {\n act(() => {\n notification.instance.open(Object.assign(Object.assign({}, defaultGlobalConfig), task.config));\n });\n break;\n }\n case 'destroy':\n act(() => {\n notification === null || notification === void 0 ? void 0 : notification.instance.destroy(task.key);\n });\n break;\n }\n });\n // Clean up\n taskQueue = [];\n}\n// ==============================================================================\n// == Export ==\n// ==============================================================================\nfunction setNotificationGlobalConfig(config) {\n defaultGlobalConfig = Object.assign(Object.assign({}, defaultGlobalConfig), config);\n // Trigger sync for it\n act(() => {\n var _a;\n (_a = notification === null || notification === void 0 ? void 0 : notification.sync) === null || _a === void 0 ? void 0 : _a.call(notification);\n });\n}\nfunction open(config) {\n // Warning if exist theme\n if (process.env.NODE_ENV !== 'production') {\n warnContext('notification');\n }\n taskQueue.push({\n type: 'open',\n config\n });\n flushNotice();\n}\nfunction destroy(key) {\n taskQueue.push({\n type: 'destroy',\n key\n });\n flushNotice();\n}\nconst methods = ['success', 'info', 'warning', 'error'];\nconst baseStaticMethods = {\n open,\n destroy,\n config: setNotificationGlobalConfig,\n useNotification,\n _InternalPanelDoNotUseOrYouWillBeFired: PurePanel\n};\nconst staticMethods = baseStaticMethods;\nmethods.forEach(type => {\n staticMethods[type] = config => open(Object.assign(Object.assign({}, config), {\n type\n }));\n});\n// ==============================================================================\n// == Test ==\n// ==============================================================================\nconst noop = () => {};\n/** @internal Only Work in test env */\n// eslint-disable-next-line import/no-mutable-exports\nexport let actWrapper = noop;\nif (process.env.NODE_ENV === 'test') {\n actWrapper = wrapper => {\n act = wrapper;\n };\n}\nexport default staticMethods;","import { Keyframes } from '@ant-design/cssinjs';\nconst genNotificationPlacementStyle = token => {\n const {\n componentCls,\n width,\n notificationMarginEdge\n } = token;\n const notificationTopFadeIn = new Keyframes('antNotificationTopFadeIn', {\n '0%': {\n marginTop: '-100%',\n opacity: 0\n },\n '100%': {\n marginTop: 0,\n opacity: 1\n }\n });\n const notificationBottomFadeIn = new Keyframes('antNotificationBottomFadeIn', {\n '0%': {\n marginBottom: '-100%',\n opacity: 0\n },\n '100%': {\n marginBottom: 0,\n opacity: 1\n }\n });\n const notificationLeftFadeIn = new Keyframes('antNotificationLeftFadeIn', {\n '0%': {\n right: {\n _skip_check_: true,\n value: width\n },\n opacity: 0\n },\n '100%': {\n right: {\n _skip_check_: true,\n value: 0\n },\n opacity: 1\n }\n });\n return {\n [`&${componentCls}-top, &${componentCls}-bottom`]: {\n marginInline: 0\n },\n [`&${componentCls}-top`]: {\n [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n animationName: notificationTopFadeIn\n }\n },\n [`&${componentCls}-bottom`]: {\n [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n animationName: notificationBottomFadeIn\n }\n },\n [`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {\n marginInlineEnd: 0,\n marginInlineStart: notificationMarginEdge,\n [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n animationName: notificationLeftFadeIn\n }\n }\n };\n};\nexport default genNotificationPlacementStyle;","import { Keyframes } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genNotificationPlacementStyle from './placement';\nconst genNotificationStyle = token => {\n const {\n iconCls,\n componentCls,\n // .ant-notification\n boxShadow,\n fontSizeLG,\n notificationMarginBottom,\n borderRadiusLG,\n colorSuccess,\n colorInfo,\n colorWarning,\n colorError,\n colorTextHeading,\n notificationBg,\n notificationPadding,\n notificationMarginEdge,\n motionDurationMid,\n motionEaseInOut,\n fontSize,\n lineHeight,\n width,\n notificationIconSize,\n colorText\n } = token;\n const noticeCls = `${componentCls}-notice`;\n const notificationFadeIn = new Keyframes('antNotificationFadeIn', {\n '0%': {\n left: {\n _skip_check_: true,\n value: width\n },\n opacity: 0\n },\n '100%': {\n left: {\n _skip_check_: true,\n value: 0\n },\n opacity: 1\n }\n });\n const notificationFadeOut = new Keyframes('antNotificationFadeOut', {\n '0%': {\n maxHeight: token.animationMaxHeight,\n marginBottom: notificationMarginBottom,\n opacity: 1\n },\n '100%': {\n maxHeight: 0,\n marginBottom: 0,\n paddingTop: 0,\n paddingBottom: 0,\n opacity: 0\n }\n });\n const noticeStyle = {\n position: 'relative',\n width,\n maxWidth: `calc(100vw - ${notificationMarginEdge * 2}px)`,\n marginBottom: notificationMarginBottom,\n marginInlineStart: 'auto',\n padding: notificationPadding,\n overflow: 'hidden',\n lineHeight,\n wordWrap: 'break-word',\n background: notificationBg,\n borderRadius: borderRadiusLG,\n boxShadow,\n [`${componentCls}-close-icon`]: {\n fontSize,\n cursor: 'pointer'\n },\n [`${noticeCls}-message`]: {\n marginBottom: token.marginXS,\n color: colorTextHeading,\n fontSize: fontSizeLG,\n lineHeight: token.lineHeightLG\n },\n [`${noticeCls}-description`]: {\n fontSize,\n color: colorText\n },\n [`&${noticeCls}-closable ${noticeCls}-message`]: {\n paddingInlineEnd: token.paddingLG\n },\n [`${noticeCls}-with-icon ${noticeCls}-message`]: {\n marginBottom: token.marginXS,\n marginInlineStart: token.marginSM + notificationIconSize,\n fontSize: fontSizeLG\n },\n [`${noticeCls}-with-icon ${noticeCls}-description`]: {\n marginInlineStart: token.marginSM + notificationIconSize,\n fontSize\n },\n // Icon & color style in different selector level\n // https://github.com/ant-design/ant-design/issues/16503\n // https://github.com/ant-design/ant-design/issues/15512\n [`${noticeCls}-icon`]: {\n position: 'absolute',\n fontSize: notificationIconSize,\n lineHeight: 0,\n // icon-font\n [`&-success${iconCls}`]: {\n color: colorSuccess\n },\n [`&-info${iconCls}`]: {\n color: colorInfo\n },\n [`&-warning${iconCls}`]: {\n color: colorWarning\n },\n [`&-error${iconCls}`]: {\n color: colorError\n }\n },\n [`${noticeCls}-close`]: {\n position: 'absolute',\n top: token.notificationPaddingVertical,\n insetInlineEnd: token.notificationPaddingHorizontal,\n color: token.colorIcon,\n outline: 'none',\n width: token.notificationCloseButtonSize,\n height: token.notificationCloseButtonSize,\n borderRadius: token.borderRadiusSM,\n transition: `background-color ${token.motionDurationMid}, color ${token.motionDurationMid}`,\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n '&:hover': {\n color: token.colorIconHover,\n backgroundColor: token.wireframe ? 'transparent' : token.colorFillContent\n }\n },\n [`${noticeCls}-btn`]: {\n float: 'right',\n marginTop: token.marginSM\n }\n };\n return [\n // ============================ Holder ============================\n {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'fixed',\n zIndex: token.zIndexPopup,\n marginInlineEnd: notificationMarginEdge,\n [`${componentCls}-hook-holder`]: {\n position: 'relative'\n },\n [`&${componentCls}-top, &${componentCls}-bottom`]: {\n [noticeCls]: {\n marginInline: 'auto auto'\n }\n },\n [`&${componentCls}-topLeft, &${componentCls}-bottomLeft`]: {\n [noticeCls]: {\n marginInlineEnd: 'auto',\n marginInlineStart: 0\n }\n },\n // animation\n [`${componentCls}-fade-enter, ${componentCls}-fade-appear`]: {\n animationDuration: token.motionDurationMid,\n animationTimingFunction: motionEaseInOut,\n animationFillMode: 'both',\n opacity: 0,\n animationPlayState: 'paused'\n },\n [`${componentCls}-fade-leave`]: {\n animationTimingFunction: motionEaseInOut,\n animationFillMode: 'both',\n animationDuration: motionDurationMid,\n animationPlayState: 'paused'\n },\n [`${componentCls}-fade-enter${componentCls}-fade-enter-active, ${componentCls}-fade-appear${componentCls}-fade-appear-active`]: {\n animationName: notificationFadeIn,\n animationPlayState: 'running'\n },\n [`${componentCls}-fade-leave${componentCls}-fade-leave-active`]: {\n animationName: notificationFadeOut,\n animationPlayState: 'running'\n }\n }), genNotificationPlacementStyle(token)), {\n // RTL\n '&-rtl': {\n direction: 'rtl',\n [`${noticeCls}-btn`]: {\n float: 'left'\n }\n }\n })\n },\n // ============================ Notice ============================\n {\n [componentCls]: {\n [noticeCls]: Object.assign({}, noticeStyle)\n }\n },\n // ============================= Pure =============================\n {\n [`${noticeCls}-pure-panel`]: Object.assign(Object.assign({}, noticeStyle), {\n margin: 0\n })\n }];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Notification', token => {\n const notificationPaddingVertical = token.paddingMD;\n const notificationPaddingHorizontal = token.paddingLG;\n const notificationToken = mergeToken(token, {\n // index.less variables\n notificationBg: token.colorBgElevated,\n notificationPaddingVertical,\n notificationPaddingHorizontal,\n notificationIconSize: token.fontSizeLG * token.lineHeightLG,\n notificationCloseButtonSize: token.controlHeightLG * 0.55,\n notificationMarginBottom: token.margin,\n notificationPadding: `${token.paddingMD}px ${token.paddingContentHorizontalLG}px`,\n notificationMarginEdge: token.marginLG,\n animationMaxHeight: 150\n });\n return [genNotificationStyle(notificationToken)];\n}, token => ({\n zIndexPopup: token.zIndexPopupBase + 50,\n width: 384\n}), {\n clientOnly: true\n});","export function getPlacementStyle(placement, top, bottom) {\n let style;\n switch (placement) {\n case 'top':\n style = {\n left: '50%',\n transform: 'translateX(-50%)',\n right: 'auto',\n top,\n bottom: 'auto'\n };\n break;\n case 'topLeft':\n style = {\n left: 0,\n top,\n bottom: 'auto'\n };\n break;\n case 'topRight':\n style = {\n right: 0,\n top,\n bottom: 'auto'\n };\n break;\n case 'bottom':\n style = {\n left: '50%',\n transform: 'translateX(-50%)',\n right: 'auto',\n top: 'auto',\n bottom\n };\n break;\n case 'bottomLeft':\n style = {\n left: 0,\n top: 'auto',\n bottom\n };\n break;\n default:\n style = {\n right: 0,\n top: 'auto',\n bottom\n };\n break;\n }\n return style;\n}\nexport function getMotion(prefixCls) {\n return {\n motionName: `${prefixCls}-fade`\n };\n}","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { useNotification as useRcNotification } from 'rc-notification';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { getCloseIcon, PureContent } from './PurePanel';\nimport useStyle from './style';\nimport { getMotion, getPlacementStyle } from './util';\nconst DEFAULT_OFFSET = 24;\nconst DEFAULT_DURATION = 4.5;\nconst DEFAULT_PLACEMENT = 'topRight';\nconst Holder = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n top,\n bottom,\n prefixCls: staticPrefixCls,\n getContainer: staticGetContainer,\n maxCount,\n rtl,\n onAllRemoved\n } = props;\n const {\n getPrefixCls,\n getPopupContainer,\n notification\n } = React.useContext(ConfigContext);\n const prefixCls = staticPrefixCls || getPrefixCls('notification');\n // =============================== Style ===============================\n const getStyle = placement => getPlacementStyle(placement, top !== null && top !== void 0 ? top : DEFAULT_OFFSET, bottom !== null && bottom !== void 0 ? bottom : DEFAULT_OFFSET);\n // Style\n const [, hashId] = useStyle(prefixCls);\n const getClassName = () => classNames(hashId, {\n [`${prefixCls}-rtl`]: rtl\n });\n // ============================== Motion ===============================\n const getNotificationMotion = () => getMotion(prefixCls);\n // ============================== Origin ===============================\n const [api, holder] = useRcNotification({\n prefixCls,\n style: getStyle,\n className: getClassName,\n motion: getNotificationMotion,\n closable: true,\n closeIcon: getCloseIcon(prefixCls),\n duration: DEFAULT_DURATION,\n getContainer: () => (staticGetContainer === null || staticGetContainer === void 0 ? void 0 : staticGetContainer()) || (getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer()) || document.body,\n maxCount,\n onAllRemoved\n });\n // ================================ Ref ================================\n React.useImperativeHandle(ref, () => Object.assign(Object.assign({}, api), {\n prefixCls,\n hashId,\n notification\n }));\n return holder;\n});\n// ==============================================================================\n// == Hook ==\n// ==============================================================================\nexport function useInternalNotification(notificationConfig) {\n const holderRef = React.useRef(null);\n // ================================ API ================================\n const wrapAPI = React.useMemo(() => {\n // Wrap with notification content\n // >>> Open\n const open = config => {\n var _a;\n if (!holderRef.current) {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Notification', 'You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.') : void 0;\n return;\n }\n const {\n open: originOpen,\n prefixCls,\n hashId,\n notification\n } = holderRef.current;\n const noticePrefixCls = `${prefixCls}-notice`;\n const {\n message,\n description,\n icon,\n type,\n btn,\n className,\n style,\n role = 'alert',\n closeIcon\n } = config,\n restConfig = __rest(config, [\"message\", \"description\", \"icon\", \"type\", \"btn\", \"className\", \"style\", \"role\", \"closeIcon\"]);\n const realCloseIcon = getCloseIcon(noticePrefixCls, closeIcon);\n return originOpen(Object.assign(Object.assign({\n // use placement from props instead of hard-coding \"topRight\"\n placement: (_a = notificationConfig === null || notificationConfig === void 0 ? void 0 : notificationConfig.placement) !== null && _a !== void 0 ? _a : DEFAULT_PLACEMENT\n }, restConfig), {\n content: /*#__PURE__*/React.createElement(PureContent, {\n prefixCls: noticePrefixCls,\n icon: icon,\n type: type,\n message: message,\n description: description,\n btn: btn,\n role: role\n }),\n className: classNames(type && `${noticePrefixCls}-${type}`, hashId, className, notification === null || notification === void 0 ? void 0 : notification.className),\n style: Object.assign(Object.assign({}, notification === null || notification === void 0 ? void 0 : notification.style), style),\n closeIcon: realCloseIcon,\n closable: !!realCloseIcon\n }));\n };\n // >>> destroy\n const destroy = key => {\n var _a, _b;\n if (key !== undefined) {\n (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.close(key);\n } else {\n (_b = holderRef.current) === null || _b === void 0 ? void 0 : _b.destroy();\n }\n };\n const clone = {\n open,\n destroy\n };\n const keys = ['success', 'info', 'warning', 'error'];\n keys.forEach(type => {\n clone[type] = config => open(Object.assign(Object.assign({}, config), {\n type\n }));\n });\n return clone;\n }, []);\n // ============================== Return ===============================\n return [wrapAPI, /*#__PURE__*/React.createElement(Holder, Object.assign({\n key: \"notification-holder\"\n }, notificationConfig, {\n ref: holderRef\n }))];\n}\nexport default function useNotification(notificationConfig) {\n return useInternalNotification(notificationConfig);\n}","// This icon file is generated automatically.\nvar DoubleLeftOutlined = { \"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\" };\nexport default DoubleLeftOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DoubleLeftOutlinedSvg from \"@ant-design/icons-svg/es/asn/DoubleLeftOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DoubleLeftOutlined = function DoubleLeftOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DoubleLeftOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n DoubleLeftOutlined.displayName = 'DoubleLeftOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(DoubleLeftOutlined);","// This icon file is generated automatically.\nvar DoubleRightOutlined = { \"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\" };\nexport default DoubleRightOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DoubleRightOutlinedSvg from \"@ant-design/icons-svg/es/asn/DoubleRightOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DoubleRightOutlined = function DoubleRightOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DoubleRightOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n DoubleRightOutlined.displayName = 'DoubleRightOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(DoubleRightOutlined);","var KeyCode = {\n ZERO: 48,\n NINE: 57,\n NUMPAD_ZERO: 96,\n NUMPAD_NINE: 105,\n BACKSPACE: 8,\n DELETE: 46,\n ENTER: 13,\n ARROW_UP: 38,\n ARROW_DOWN: 40\n};\nexport default KeyCode;","import _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\n/* eslint react/prop-types: 0 */\nimport React from 'react';\nimport KEYCODE from './KeyCode';\nvar Options = /*#__PURE__*/function (_React$Component) {\n _inherits(Options, _React$Component);\n var _super = _createSuper(Options);\n function Options() {\n var _this;\n _classCallCheck(this, Options);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = _super.call.apply(_super, [this].concat(args));\n _this.state = {\n goInputText: ''\n };\n _this.getValidValue = function () {\n var goInputText = _this.state.goInputText;\n // eslint-disable-next-line no-restricted-globals\n return !goInputText || Number.isNaN(goInputText) ? undefined : Number(goInputText);\n };\n _this.buildOptionText = function (value) {\n return \"\".concat(value, \" \").concat(_this.props.locale.items_per_page);\n };\n _this.changeSize = function (value) {\n _this.props.changeSize(Number(value));\n };\n _this.handleChange = function (e) {\n _this.setState({\n goInputText: e.target.value\n });\n };\n _this.handleBlur = function (e) {\n var _this$props = _this.props,\n goButton = _this$props.goButton,\n quickGo = _this$props.quickGo,\n rootPrefixCls = _this$props.rootPrefixCls;\n var goInputText = _this.state.goInputText;\n if (goButton || goInputText === '') {\n return;\n }\n _this.setState({\n goInputText: ''\n });\n if (e.relatedTarget && (e.relatedTarget.className.indexOf(\"\".concat(rootPrefixCls, \"-item-link\")) >= 0 || e.relatedTarget.className.indexOf(\"\".concat(rootPrefixCls, \"-item\")) >= 0)) {\n return;\n }\n quickGo(_this.getValidValue());\n };\n _this.go = function (e) {\n var goInputText = _this.state.goInputText;\n if (goInputText === '') {\n return;\n }\n if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {\n _this.setState({\n goInputText: ''\n });\n _this.props.quickGo(_this.getValidValue());\n }\n };\n return _this;\n }\n _createClass(Options, [{\n key: \"getPageSizeOptions\",\n value: function getPageSizeOptions() {\n var _this$props2 = this.props,\n pageSize = _this$props2.pageSize,\n pageSizeOptions = _this$props2.pageSizeOptions;\n if (pageSizeOptions.some(function (option) {\n return option.toString() === pageSize.toString();\n })) {\n return pageSizeOptions;\n }\n return pageSizeOptions.concat([pageSize.toString()]).sort(function (a, b) {\n // eslint-disable-next-line no-restricted-globals\n var numberA = Number.isNaN(Number(a)) ? 0 : Number(a);\n // eslint-disable-next-line no-restricted-globals\n var numberB = Number.isNaN(Number(b)) ? 0 : Number(b);\n return numberA - numberB;\n });\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this2 = this;\n var _this$props3 = this.props,\n pageSize = _this$props3.pageSize,\n locale = _this$props3.locale,\n rootPrefixCls = _this$props3.rootPrefixCls,\n changeSize = _this$props3.changeSize,\n quickGo = _this$props3.quickGo,\n goButton = _this$props3.goButton,\n selectComponentClass = _this$props3.selectComponentClass,\n buildOptionText = _this$props3.buildOptionText,\n selectPrefixCls = _this$props3.selectPrefixCls,\n disabled = _this$props3.disabled;\n var goInputText = this.state.goInputText;\n var prefixCls = \"\".concat(rootPrefixCls, \"-options\");\n var Select = selectComponentClass;\n var changeSelect = null;\n var goInput = null;\n var gotoButton = null;\n if (!changeSize && !quickGo) {\n return null;\n }\n var pageSizeOptions = this.getPageSizeOptions();\n if (changeSize && Select) {\n var options = pageSizeOptions.map(function (opt, i) {\n return /*#__PURE__*/React.createElement(Select.Option, {\n key: i,\n value: opt.toString()\n }, (buildOptionText || _this2.buildOptionText)(opt));\n });\n changeSelect = /*#__PURE__*/React.createElement(Select, {\n disabled: disabled,\n prefixCls: selectPrefixCls,\n showSearch: false,\n className: \"\".concat(prefixCls, \"-size-changer\"),\n optionLabelProp: \"children\",\n popupMatchSelectWidth: false,\n value: (pageSize || pageSizeOptions[0]).toString(),\n onChange: this.changeSize,\n getPopupContainer: function getPopupContainer(triggerNode) {\n return triggerNode.parentNode;\n },\n \"aria-label\": locale.page_size,\n defaultOpen: false\n }, options);\n }\n if (quickGo) {\n if (goButton) {\n gotoButton = typeof goButton === 'boolean' ? /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.go,\n onKeyUp: this.go,\n disabled: disabled,\n className: \"\".concat(prefixCls, \"-quick-jumper-button\")\n }, locale.jump_to_confirm) : /*#__PURE__*/React.createElement(\"span\", {\n onClick: this.go,\n onKeyUp: this.go\n }, goButton);\n }\n goInput = /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-quick-jumper\")\n }, locale.jump_to, /*#__PURE__*/React.createElement(\"input\", {\n disabled: disabled,\n type: \"text\",\n value: goInputText,\n onChange: this.handleChange,\n onKeyUp: this.go,\n onBlur: this.handleBlur,\n \"aria-label\": locale.page\n }), locale.page, gotoButton);\n }\n return /*#__PURE__*/React.createElement(\"li\", {\n className: \"\".concat(prefixCls)\n }, changeSelect, goInput);\n }\n }]);\n return Options;\n}(React.Component);\nOptions.defaultProps = {\n pageSizeOptions: ['10', '20', '50', '100']\n};\nexport default Options;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\n/* eslint react/prop-types: 0 */\nimport classNames from 'classnames';\nimport React from 'react';\nvar Pager = function Pager(props) {\n var _classNames;\n var rootPrefixCls = props.rootPrefixCls,\n page = props.page,\n active = props.active,\n className = props.className,\n showTitle = props.showTitle,\n onClick = props.onClick,\n onKeyPress = props.onKeyPress,\n itemRender = props.itemRender;\n var prefixCls = \"\".concat(rootPrefixCls, \"-item\");\n var cls = classNames(prefixCls, \"\".concat(prefixCls, \"-\").concat(page), (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-active\"), active), _defineProperty(_classNames, \"\".concat(prefixCls, \"-disabled\"), !page), _defineProperty(_classNames, props.className, className), _classNames));\n var handleClick = function handleClick() {\n onClick(page);\n };\n var handleKeyPress = function handleKeyPress(e) {\n onKeyPress(e, onClick, page);\n };\n var pager = itemRender(page, 'page', /*#__PURE__*/React.createElement(\"a\", {\n rel: \"nofollow\"\n }, page));\n if (!pager) return null;\n return /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? page.toString() : null,\n className: cls,\n onClick: handleClick,\n onKeyPress: handleKeyPress,\n tabIndex: 0\n }, pager);\n};\nexport default Pager;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport classNames from 'classnames';\nimport pickAttrs from \"rc-util/es/pickAttrs\";\nimport React, { cloneElement, isValidElement } from 'react';\nimport KEYCODE from './KeyCode';\nimport LOCALE from './locale/zh_CN';\nimport Options from './Options';\nimport Pager from './Pager';\nfunction noop() {}\nfunction isInteger(v) {\n var value = Number(v);\n return (\n // eslint-disable-next-line no-restricted-globals\n typeof value === 'number' && !Number.isNaN(value) && isFinite(value) && Math.floor(value) === value\n );\n}\nvar defaultItemRender = function defaultItemRender(page, type, element) {\n return element;\n};\nfunction calculatePage(p, state, props) {\n var pageSize = typeof p === 'undefined' ? state.pageSize : p;\n return Math.floor((props.total - 1) / pageSize) + 1;\n}\nvar Pagination = /*#__PURE__*/function (_React$Component) {\n _inherits(Pagination, _React$Component);\n var _super = _createSuper(Pagination);\n function Pagination(props) {\n var _this;\n _classCallCheck(this, Pagination);\n _this = _super.call(this, props);\n _this.paginationNode = /*#__PURE__*/React.createRef();\n _this.getJumpPrevPage = function () {\n return Math.max(1, _this.state.current - (_this.props.showLessItems ? 3 : 5));\n };\n _this.getJumpNextPage = function () {\n return Math.min(calculatePage(undefined, _this.state, _this.props), _this.state.current + (_this.props.showLessItems ? 3 : 5));\n };\n _this.getItemIcon = function (icon, label) {\n var prefixCls = _this.props.prefixCls;\n var iconNode = icon || /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n \"aria-label\": label,\n className: \"\".concat(prefixCls, \"-item-link\")\n });\n if (typeof icon === 'function') {\n iconNode = /*#__PURE__*/React.createElement(icon, _objectSpread({}, _this.props));\n }\n return iconNode;\n };\n _this.isValid = function (page) {\n var total = _this.props.total;\n return isInteger(page) && page !== _this.state.current && isInteger(total) && total > 0;\n };\n _this.shouldDisplayQuickJumper = function () {\n var _this$props = _this.props,\n showQuickJumper = _this$props.showQuickJumper,\n total = _this$props.total;\n var pageSize = _this.state.pageSize;\n if (total <= pageSize) {\n return false;\n }\n return showQuickJumper;\n };\n _this.handleKeyDown = function (e) {\n if (e.keyCode === KEYCODE.ARROW_UP || e.keyCode === KEYCODE.ARROW_DOWN) {\n e.preventDefault();\n }\n };\n _this.handleKeyUp = function (e) {\n var value = _this.getValidValue(e);\n var currentInputValue = _this.state.currentInputValue;\n if (value !== currentInputValue) {\n _this.setState({\n currentInputValue: value\n });\n }\n if (e.keyCode === KEYCODE.ENTER) {\n _this.handleChange(value);\n } else if (e.keyCode === KEYCODE.ARROW_UP) {\n _this.handleChange(value - 1);\n } else if (e.keyCode === KEYCODE.ARROW_DOWN) {\n _this.handleChange(value + 1);\n }\n };\n _this.handleBlur = function (e) {\n var value = _this.getValidValue(e);\n _this.handleChange(value);\n };\n _this.changePageSize = function (size) {\n var current = _this.state.current;\n var newCurrent = calculatePage(size, _this.state, _this.props);\n current = current > newCurrent ? newCurrent : current;\n // fix the issue:\n // Once 'total' is 0, 'current' in 'onShowSizeChange' is 0, which is not correct.\n if (newCurrent === 0) {\n // eslint-disable-next-line prefer-destructuring\n current = _this.state.current;\n }\n if (typeof size === 'number') {\n if (!('pageSize' in _this.props)) {\n _this.setState({\n pageSize: size\n });\n }\n if (!('current' in _this.props)) {\n _this.setState({\n current: current,\n currentInputValue: current\n });\n }\n }\n _this.props.onShowSizeChange(current, size);\n if ('onChange' in _this.props && _this.props.onChange) {\n _this.props.onChange(current, size);\n }\n };\n _this.handleChange = function (page) {\n var _this$props2 = _this.props,\n disabled = _this$props2.disabled,\n onChange = _this$props2.onChange;\n var _this$state = _this.state,\n pageSize = _this$state.pageSize,\n current = _this$state.current,\n currentInputValue = _this$state.currentInputValue;\n if (_this.isValid(page) && !disabled) {\n var currentPage = calculatePage(undefined, _this.state, _this.props);\n var newPage = page;\n if (page > currentPage) {\n newPage = currentPage;\n } else if (page < 1) {\n newPage = 1;\n }\n if (!('current' in _this.props)) {\n _this.setState({\n current: newPage\n });\n }\n if (newPage !== currentInputValue) {\n _this.setState({\n currentInputValue: newPage\n });\n }\n onChange(newPage, pageSize);\n return newPage;\n }\n return current;\n };\n _this.prev = function () {\n if (_this.hasPrev()) {\n _this.handleChange(_this.state.current - 1);\n }\n };\n _this.next = function () {\n if (_this.hasNext()) {\n _this.handleChange(_this.state.current + 1);\n }\n };\n _this.jumpPrev = function () {\n _this.handleChange(_this.getJumpPrevPage());\n };\n _this.jumpNext = function () {\n _this.handleChange(_this.getJumpNextPage());\n };\n _this.hasPrev = function () {\n return _this.state.current > 1;\n };\n _this.hasNext = function () {\n return _this.state.current < calculatePage(undefined, _this.state, _this.props);\n };\n _this.runIfEnter = function (event, callback) {\n if (event.key === 'Enter' || event.charCode === 13) {\n for (var _len = arguments.length, restParams = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {\n restParams[_key - 2] = arguments[_key];\n }\n callback.apply(void 0, restParams);\n }\n };\n _this.runIfEnterPrev = function (e) {\n _this.runIfEnter(e, _this.prev);\n };\n _this.runIfEnterNext = function (e) {\n _this.runIfEnter(e, _this.next);\n };\n _this.runIfEnterJumpPrev = function (e) {\n _this.runIfEnter(e, _this.jumpPrev);\n };\n _this.runIfEnterJumpNext = function (e) {\n _this.runIfEnter(e, _this.jumpNext);\n };\n _this.handleGoTO = function (e) {\n if (e.keyCode === KEYCODE.ENTER || e.type === 'click') {\n _this.handleChange(_this.state.currentInputValue);\n }\n };\n _this.renderPrev = function (prevPage) {\n var _this$props3 = _this.props,\n prevIcon = _this$props3.prevIcon,\n itemRender = _this$props3.itemRender;\n var prevButton = itemRender(prevPage, 'prev', _this.getItemIcon(prevIcon, 'prev page'));\n var disabled = !_this.hasPrev();\n return /*#__PURE__*/isValidElement(prevButton) ? /*#__PURE__*/cloneElement(prevButton, {\n disabled: disabled\n }) : prevButton;\n };\n _this.renderNext = function (nextPage) {\n var _this$props4 = _this.props,\n nextIcon = _this$props4.nextIcon,\n itemRender = _this$props4.itemRender;\n var nextButton = itemRender(nextPage, 'next', _this.getItemIcon(nextIcon, 'next page'));\n var disabled = !_this.hasNext();\n return /*#__PURE__*/isValidElement(nextButton) ? /*#__PURE__*/cloneElement(nextButton, {\n disabled: disabled\n }) : nextButton;\n };\n var hasOnChange = props.onChange !== noop;\n var hasCurrent = ('current' in props);\n if (hasCurrent && !hasOnChange) {\n // eslint-disable-next-line no-console\n console.warn('Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.');\n }\n var _current = props.defaultCurrent;\n if ('current' in props) {\n // eslint-disable-next-line prefer-destructuring\n _current = props.current;\n }\n var _pageSize = props.defaultPageSize;\n if ('pageSize' in props) {\n // eslint-disable-next-line prefer-destructuring\n _pageSize = props.pageSize;\n }\n _current = Math.min(_current, calculatePage(_pageSize, undefined, props));\n _this.state = {\n current: _current,\n currentInputValue: _current,\n pageSize: _pageSize\n };\n return _this;\n }\n _createClass(Pagination, [{\n key: \"componentDidUpdate\",\n value: function componentDidUpdate(_, prevState) {\n // When current page change, fix focused style of prev item\n // A hacky solution of https://github.com/ant-design/ant-design/issues/8948\n var prefixCls = this.props.prefixCls;\n if (prevState.current !== this.state.current && this.paginationNode.current) {\n var lastCurrentNode = this.paginationNode.current.querySelector(\".\".concat(prefixCls, \"-item-\").concat(prevState.current));\n if (lastCurrentNode && document.activeElement === lastCurrentNode) {\n var _lastCurrentNode$blur;\n lastCurrentNode === null || lastCurrentNode === void 0 ? void 0 : (_lastCurrentNode$blur = lastCurrentNode.blur) === null || _lastCurrentNode$blur === void 0 ? void 0 : _lastCurrentNode$blur.call(lastCurrentNode);\n }\n }\n }\n }, {\n key: \"getValidValue\",\n value: function getValidValue(e) {\n var inputValue = e.target.value;\n var allPages = calculatePage(undefined, this.state, this.props);\n var currentInputValue = this.state.currentInputValue;\n var value;\n if (inputValue === '') {\n value = inputValue;\n // eslint-disable-next-line no-restricted-globals\n } else if (Number.isNaN(Number(inputValue))) {\n value = currentInputValue;\n } else if (inputValue >= allPages) {\n value = allPages;\n } else {\n value = Number(inputValue);\n }\n return value;\n }\n }, {\n key: \"getShowSizeChanger\",\n value: function getShowSizeChanger() {\n var _this$props5 = this.props,\n showSizeChanger = _this$props5.showSizeChanger,\n total = _this$props5.total,\n totalBoundaryShowSizeChanger = _this$props5.totalBoundaryShowSizeChanger;\n if (typeof showSizeChanger !== 'undefined') {\n return showSizeChanger;\n }\n return total > totalBoundaryShowSizeChanger;\n }\n }, {\n key: \"render\",\n value: function render() {\n var _this$props6 = this.props,\n prefixCls = _this$props6.prefixCls,\n className = _this$props6.className,\n style = _this$props6.style,\n disabled = _this$props6.disabled,\n hideOnSinglePage = _this$props6.hideOnSinglePage,\n total = _this$props6.total,\n locale = _this$props6.locale,\n showQuickJumper = _this$props6.showQuickJumper,\n showLessItems = _this$props6.showLessItems,\n showTitle = _this$props6.showTitle,\n showTotal = _this$props6.showTotal,\n simple = _this$props6.simple,\n itemRender = _this$props6.itemRender,\n showPrevNextJumpers = _this$props6.showPrevNextJumpers,\n jumpPrevIcon = _this$props6.jumpPrevIcon,\n jumpNextIcon = _this$props6.jumpNextIcon,\n selectComponentClass = _this$props6.selectComponentClass,\n selectPrefixCls = _this$props6.selectPrefixCls,\n pageSizeOptions = _this$props6.pageSizeOptions;\n var _this$state2 = this.state,\n current = _this$state2.current,\n pageSize = _this$state2.pageSize,\n currentInputValue = _this$state2.currentInputValue;\n // When hideOnSinglePage is true and there is only 1 page, hide the pager\n if (hideOnSinglePage === true && total <= pageSize) {\n return null;\n }\n var allPages = calculatePage(undefined, this.state, this.props);\n var pagerList = [];\n var jumpPrev = null;\n var jumpNext = null;\n var firstPager = null;\n var lastPager = null;\n var gotoButton = null;\n var goButton = showQuickJumper && showQuickJumper.goButton;\n var pageBufferSize = showLessItems ? 1 : 2;\n var prevPage = current - 1 > 0 ? current - 1 : 0;\n var nextPage = current + 1 < allPages ? current + 1 : allPages;\n var dataOrAriaAttributeProps = pickAttrs(this.props, {\n aria: true,\n data: true\n });\n var totalText = showTotal && /*#__PURE__*/React.createElement(\"li\", {\n className: \"\".concat(prefixCls, \"-total-text\")\n }, showTotal(total, [total === 0 ? 0 : (current - 1) * pageSize + 1, current * pageSize > total ? total : current * pageSize]));\n if (simple) {\n if (goButton) {\n if (typeof goButton === 'boolean') {\n gotoButton = /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n onClick: this.handleGoTO,\n onKeyUp: this.handleGoTO\n }, locale.jump_to_confirm);\n } else {\n gotoButton = /*#__PURE__*/React.createElement(\"span\", {\n onClick: this.handleGoTO,\n onKeyUp: this.handleGoTO\n }, goButton);\n }\n gotoButton = /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? \"\".concat(locale.jump_to).concat(current, \"/\").concat(allPages) : null,\n className: \"\".concat(prefixCls, \"-simple-pager\")\n }, gotoButton);\n }\n var _prev = this.renderPrev(prevPage);\n return /*#__PURE__*/React.createElement(\"ul\", _extends({\n className: classNames(prefixCls, \"\".concat(prefixCls, \"-simple\"), _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), disabled), className),\n style: style,\n ref: this.paginationNode\n }, dataOrAriaAttributeProps), totalText, _prev ? /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? locale.prev_page : null,\n onClick: this.prev,\n tabIndex: this.hasPrev() ? 0 : null,\n onKeyPress: this.runIfEnterPrev,\n className: classNames(\"\".concat(prefixCls, \"-prev\"), _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), !this.hasPrev())),\n \"aria-disabled\": !this.hasPrev()\n }, _prev) : null, /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? \"\".concat(current, \"/\").concat(allPages) : null,\n className: \"\".concat(prefixCls, \"-simple-pager\")\n }, /*#__PURE__*/React.createElement(\"input\", {\n type: \"text\",\n value: currentInputValue,\n disabled: disabled,\n onKeyDown: this.handleKeyDown,\n onKeyUp: this.handleKeyUp,\n onChange: this.handleKeyUp,\n onBlur: this.handleBlur,\n size: 3\n }), /*#__PURE__*/React.createElement(\"span\", {\n className: \"\".concat(prefixCls, \"-slash\")\n }, \"/\"), allPages), /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? locale.next_page : null,\n onClick: this.next,\n tabIndex: this.hasPrev() ? 0 : null,\n onKeyPress: this.runIfEnterNext,\n className: classNames(\"\".concat(prefixCls, \"-next\"), _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), !this.hasNext())),\n \"aria-disabled\": !this.hasNext()\n }, this.renderNext(nextPage)), gotoButton);\n }\n if (allPages <= 3 + pageBufferSize * 2) {\n var pagerProps = {\n locale: locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n showTitle: showTitle,\n itemRender: itemRender\n };\n if (!allPages) {\n pagerList.push( /*#__PURE__*/React.createElement(Pager, _extends({}, pagerProps, {\n key: \"noPager\",\n page: 1,\n className: \"\".concat(prefixCls, \"-item-disabled\")\n })));\n }\n for (var i = 1; i <= allPages; i += 1) {\n var active = current === i;\n pagerList.push( /*#__PURE__*/React.createElement(Pager, _extends({}, pagerProps, {\n key: i,\n page: i,\n active: active\n })));\n }\n } else {\n var prevItemTitle = showLessItems ? locale.prev_3 : locale.prev_5;\n var nextItemTitle = showLessItems ? locale.next_3 : locale.next_5;\n var jumpPrevContent = itemRender(this.getJumpPrevPage(), 'jump-prev', this.getItemIcon(jumpPrevIcon, 'prev page'));\n var jumpNextContent = itemRender(this.getJumpNextPage(), 'jump-next', this.getItemIcon(jumpNextIcon, 'next page'));\n if (showPrevNextJumpers) {\n jumpPrev = jumpPrevContent ? /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? prevItemTitle : null,\n key: \"prev\",\n onClick: this.jumpPrev,\n tabIndex: 0,\n onKeyPress: this.runIfEnterJumpPrev,\n className: classNames(\"\".concat(prefixCls, \"-jump-prev\"), _defineProperty({}, \"\".concat(prefixCls, \"-jump-prev-custom-icon\"), !!jumpPrevIcon))\n }, jumpPrevContent) : null;\n jumpNext = jumpNextContent ? /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? nextItemTitle : null,\n key: \"next\",\n tabIndex: 0,\n onClick: this.jumpNext,\n onKeyPress: this.runIfEnterJumpNext,\n className: classNames(\"\".concat(prefixCls, \"-jump-next\"), _defineProperty({}, \"\".concat(prefixCls, \"-jump-next-custom-icon\"), !!jumpNextIcon))\n }, jumpNextContent) : null;\n }\n lastPager = /*#__PURE__*/React.createElement(Pager, {\n locale: locale,\n last: true,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: allPages,\n page: allPages,\n active: false,\n showTitle: showTitle,\n itemRender: itemRender\n });\n firstPager = /*#__PURE__*/React.createElement(Pager, {\n locale: locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: 1,\n page: 1,\n active: false,\n showTitle: showTitle,\n itemRender: itemRender\n });\n var left = Math.max(1, current - pageBufferSize);\n var right = Math.min(current + pageBufferSize, allPages);\n if (current - 1 <= pageBufferSize) {\n right = 1 + pageBufferSize * 2;\n }\n if (allPages - current <= pageBufferSize) {\n left = allPages - pageBufferSize * 2;\n }\n for (var _i = left; _i <= right; _i += 1) {\n var _active = current === _i;\n pagerList.push( /*#__PURE__*/React.createElement(Pager, {\n locale: locale,\n rootPrefixCls: prefixCls,\n onClick: this.handleChange,\n onKeyPress: this.runIfEnter,\n key: _i,\n page: _i,\n active: _active,\n showTitle: showTitle,\n itemRender: itemRender\n }));\n }\n if (current - 1 >= pageBufferSize * 2 && current !== 1 + 2) {\n pagerList[0] = /*#__PURE__*/cloneElement(pagerList[0], {\n className: \"\".concat(prefixCls, \"-item-after-jump-prev\")\n });\n pagerList.unshift(jumpPrev);\n }\n if (allPages - current >= pageBufferSize * 2 && current !== allPages - 2) {\n pagerList[pagerList.length - 1] = /*#__PURE__*/cloneElement(pagerList[pagerList.length - 1], {\n className: \"\".concat(prefixCls, \"-item-before-jump-next\")\n });\n pagerList.push(jumpNext);\n }\n if (left !== 1) {\n pagerList.unshift(firstPager);\n }\n if (right !== allPages) {\n pagerList.push(lastPager);\n }\n }\n var prevDisabled = !this.hasPrev() || !allPages;\n var nextDisabled = !this.hasNext() || !allPages;\n var prev = this.renderPrev(prevPage);\n var next = this.renderNext(nextPage);\n return /*#__PURE__*/React.createElement(\"ul\", _extends({\n className: classNames(prefixCls, className, _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), disabled)),\n style: style,\n ref: this.paginationNode\n }, dataOrAriaAttributeProps), totalText, prev ? /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? locale.prev_page : null,\n onClick: this.prev,\n tabIndex: prevDisabled ? null : 0,\n onKeyPress: this.runIfEnterPrev,\n className: classNames(\"\".concat(prefixCls, \"-prev\"), _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), prevDisabled)),\n \"aria-disabled\": prevDisabled\n }, prev) : null, pagerList, next ? /*#__PURE__*/React.createElement(\"li\", {\n title: showTitle ? locale.next_page : null,\n onClick: this.next,\n tabIndex: nextDisabled ? null : 0,\n onKeyPress: this.runIfEnterNext,\n className: classNames(\"\".concat(prefixCls, \"-next\"), _defineProperty({}, \"\".concat(prefixCls, \"-disabled\"), nextDisabled)),\n \"aria-disabled\": nextDisabled\n }, next) : null, /*#__PURE__*/React.createElement(Options, {\n disabled: disabled,\n locale: locale,\n rootPrefixCls: prefixCls,\n selectComponentClass: selectComponentClass,\n selectPrefixCls: selectPrefixCls,\n changeSize: this.getShowSizeChanger() ? this.changePageSize : null,\n current: current,\n pageSize: pageSize,\n pageSizeOptions: pageSizeOptions,\n quickGo: this.shouldDisplayQuickJumper() ? this.handleChange : null,\n goButton: goButton\n }));\n }\n }], [{\n key: \"getDerivedStateFromProps\",\n value: function getDerivedStateFromProps(props, prevState) {\n var newState = {};\n if ('current' in props) {\n newState.current = props.current;\n if (props.current !== prevState.current) {\n newState.currentInputValue = newState.current;\n }\n }\n if ('pageSize' in props && props.pageSize !== prevState.pageSize) {\n var current = prevState.current;\n var newCurrent = calculatePage(props.pageSize, prevState, props);\n current = current > newCurrent ? newCurrent : current;\n if (!('current' in props)) {\n newState.current = current;\n newState.currentInputValue = current;\n }\n newState.pageSize = props.pageSize;\n }\n return newState;\n }\n }]);\n return Pagination;\n}(React.Component);\nPagination.defaultProps = {\n defaultCurrent: 1,\n total: 0,\n defaultPageSize: 10,\n onChange: noop,\n className: '',\n selectPrefixCls: 'rc-select',\n prefixCls: 'rc-pagination',\n selectComponentClass: null,\n hideOnSinglePage: false,\n showPrevNextJumpers: true,\n showQuickJumper: false,\n showLessItems: false,\n showTitle: true,\n onShowSizeChange: noop,\n locale: LOCALE,\n style: {},\n itemRender: defaultItemRender,\n totalBoundaryShowSizeChanger: 50\n};\nexport default Pagination;","import * as React from 'react';\nimport Select from '../select';\nconst MiniSelect = props => /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {\n showSearch: true,\n size: \"small\"\n}));\nconst MiddleSelect = props => /*#__PURE__*/React.createElement(Select, Object.assign({}, props, {\n showSearch: true,\n size: \"middle\"\n}));\nMiniSelect.Option = Select.Option;\nMiddleSelect.Option = Select.Option;\nexport { MiniSelect, MiddleSelect };","import { genBasicInputStyle, genInputSmallStyle, initInputToken } from '../../input/style';\nimport { genFocusOutline, genFocusStyle, resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genPaginationDisabledStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-disabled`]: {\n '&, &:hover': {\n cursor: 'not-allowed',\n [`${componentCls}-item-link`]: {\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n }\n },\n '&:focus-visible': {\n cursor: 'not-allowed',\n [`${componentCls}-item-link`]: {\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n }\n }\n },\n [`&${componentCls}-disabled`]: {\n cursor: 'not-allowed',\n [`${componentCls}-item`]: {\n cursor: 'not-allowed',\n '&:hover, &:active': {\n backgroundColor: 'transparent'\n },\n a: {\n color: token.colorTextDisabled,\n backgroundColor: 'transparent',\n border: 'none',\n cursor: 'not-allowed'\n },\n '&-active': {\n borderColor: token.colorBorder,\n backgroundColor: token.itemActiveBgDisabled,\n '&:hover, &:active': {\n backgroundColor: token.itemActiveBgDisabled\n },\n a: {\n color: token.itemActiveColorDisabled\n }\n }\n },\n [`${componentCls}-item-link`]: {\n color: token.colorTextDisabled,\n cursor: 'not-allowed',\n '&:hover, &:active': {\n backgroundColor: 'transparent'\n },\n [`${componentCls}-simple&`]: {\n backgroundColor: 'transparent',\n '&:hover, &:active': {\n backgroundColor: 'transparent'\n }\n }\n },\n [`${componentCls}-simple-pager`]: {\n color: token.colorTextDisabled\n },\n [`${componentCls}-jump-prev, ${componentCls}-jump-next`]: {\n [`${componentCls}-item-link-icon`]: {\n opacity: 0\n },\n [`${componentCls}-item-ellipsis`]: {\n opacity: 1\n }\n }\n },\n [`&${componentCls}-simple`]: {\n [`${componentCls}-prev, ${componentCls}-next`]: {\n [`&${componentCls}-disabled ${componentCls}-item-link`]: {\n '&:hover, &:active': {\n backgroundColor: 'transparent'\n }\n }\n }\n }\n };\n};\nconst genPaginationMiniStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`&${componentCls}-mini ${componentCls}-total-text, &${componentCls}-mini ${componentCls}-simple-pager`]: {\n height: token.itemSizeSM,\n lineHeight: `${token.itemSizeSM}px`\n },\n [`&${componentCls}-mini ${componentCls}-item`]: {\n minWidth: token.itemSizeSM,\n height: token.itemSizeSM,\n margin: 0,\n lineHeight: `${token.itemSizeSM - 2}px`\n },\n [`&${componentCls}-mini:not(${componentCls}-disabled) ${componentCls}-item:not(${componentCls}-item-active)`]: {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n '&:hover': {\n backgroundColor: token.colorBgTextHover\n },\n '&:active': {\n backgroundColor: token.colorBgTextActive\n }\n },\n [`&${componentCls}-mini ${componentCls}-prev, &${componentCls}-mini ${componentCls}-next`]: {\n minWidth: token.itemSizeSM,\n height: token.itemSizeSM,\n margin: 0,\n lineHeight: `${token.itemSizeSM}px`\n },\n [`&${componentCls}-mini:not(${componentCls}-disabled)`]: {\n [`${componentCls}-prev, ${componentCls}-next`]: {\n [`&:hover ${componentCls}-item-link`]: {\n backgroundColor: token.colorBgTextHover\n },\n [`&:active ${componentCls}-item-link`]: {\n backgroundColor: token.colorBgTextActive\n },\n [`&${componentCls}-disabled:hover ${componentCls}-item-link`]: {\n backgroundColor: 'transparent'\n }\n }\n },\n [`\n &${componentCls}-mini ${componentCls}-prev ${componentCls}-item-link,\n &${componentCls}-mini ${componentCls}-next ${componentCls}-item-link\n `]: {\n backgroundColor: 'transparent',\n borderColor: 'transparent',\n '&::after': {\n height: token.itemSizeSM,\n lineHeight: `${token.itemSizeSM}px`\n }\n },\n [`&${componentCls}-mini ${componentCls}-jump-prev, &${componentCls}-mini ${componentCls}-jump-next`]: {\n height: token.itemSizeSM,\n marginInlineEnd: 0,\n lineHeight: `${token.itemSizeSM}px`\n },\n [`&${componentCls}-mini ${componentCls}-options`]: {\n marginInlineStart: token.paginationMiniOptionsMarginInlineStart,\n [`&-size-changer`]: {\n top: token.miniOptionsSizeChangerTop\n },\n [`&-quick-jumper`]: {\n height: token.itemSizeSM,\n lineHeight: `${token.itemSizeSM}px`,\n input: Object.assign(Object.assign({}, genInputSmallStyle(token)), {\n width: token.paginationMiniQuickJumperInputWidth,\n height: token.controlHeightSM\n })\n }\n }\n };\n};\nconst genPaginationSimpleStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`\n &${componentCls}-simple ${componentCls}-prev,\n &${componentCls}-simple ${componentCls}-next\n `]: {\n height: token.itemSizeSM,\n lineHeight: `${token.itemSizeSM}px`,\n verticalAlign: 'top',\n [`${componentCls}-item-link`]: {\n height: token.itemSizeSM,\n backgroundColor: 'transparent',\n border: 0,\n '&:hover': {\n backgroundColor: token.colorBgTextHover\n },\n '&:active': {\n backgroundColor: token.colorBgTextActive\n },\n '&::after': {\n height: token.itemSizeSM,\n lineHeight: `${token.itemSizeSM}px`\n }\n }\n },\n [`&${componentCls}-simple ${componentCls}-simple-pager`]: {\n display: 'inline-block',\n height: token.itemSizeSM,\n marginInlineEnd: token.marginXS,\n input: {\n boxSizing: 'border-box',\n height: '100%',\n marginInlineEnd: token.marginXS,\n padding: `0 ${token.paginationItemPaddingInline}px`,\n textAlign: 'center',\n backgroundColor: token.itemInputBg,\n border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,\n borderRadius: token.borderRadius,\n outline: 'none',\n transition: `border-color ${token.motionDurationMid}`,\n color: 'inherit',\n '&:hover': {\n borderColor: token.colorPrimary\n },\n '&:focus': {\n borderColor: token.colorPrimaryHover,\n boxShadow: `${token.inputOutlineOffset}px 0 ${token.controlOutlineWidth}px ${token.controlOutline}`\n },\n '&[disabled]': {\n color: token.colorTextDisabled,\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder,\n cursor: 'not-allowed'\n }\n }\n }\n };\n};\nconst genPaginationJumpStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-jump-prev, ${componentCls}-jump-next`]: {\n outline: 0,\n [`${componentCls}-item-container`]: {\n position: 'relative',\n [`${componentCls}-item-link-icon`]: {\n color: token.colorPrimary,\n fontSize: token.fontSizeSM,\n opacity: 0,\n transition: `all ${token.motionDurationMid}`,\n '&-svg': {\n top: 0,\n insetInlineEnd: 0,\n bottom: 0,\n insetInlineStart: 0,\n margin: 'auto'\n }\n },\n [`${componentCls}-item-ellipsis`]: {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n bottom: 0,\n insetInlineStart: 0,\n display: 'block',\n margin: 'auto',\n color: token.colorTextDisabled,\n fontFamily: 'Arial, Helvetica, sans-serif',\n letterSpacing: token.paginationEllipsisLetterSpacing,\n textAlign: 'center',\n textIndent: token.paginationEllipsisTextIndent,\n opacity: 1,\n transition: `all ${token.motionDurationMid}`\n }\n },\n '&:hover': {\n [`${componentCls}-item-link-icon`]: {\n opacity: 1\n },\n [`${componentCls}-item-ellipsis`]: {\n opacity: 0\n }\n }\n },\n [`\n ${componentCls}-prev,\n ${componentCls}-jump-prev,\n ${componentCls}-jump-next\n `]: {\n marginInlineEnd: token.marginXS\n },\n [`\n ${componentCls}-prev,\n ${componentCls}-next,\n ${componentCls}-jump-prev,\n ${componentCls}-jump-next\n `]: {\n display: 'inline-block',\n minWidth: token.itemSize,\n height: token.itemSize,\n color: token.colorText,\n fontFamily: token.fontFamily,\n lineHeight: `${token.itemSize}px`,\n textAlign: 'center',\n verticalAlign: 'middle',\n listStyle: 'none',\n borderRadius: token.borderRadius,\n cursor: 'pointer',\n transition: `all ${token.motionDurationMid}`\n },\n [`${componentCls}-prev, ${componentCls}-next`]: {\n fontFamily: 'Arial, Helvetica, sans-serif',\n outline: 0,\n button: {\n color: token.colorText,\n cursor: 'pointer',\n userSelect: 'none'\n },\n [`${componentCls}-item-link`]: {\n display: 'block',\n width: '100%',\n height: '100%',\n padding: 0,\n fontSize: token.fontSizeSM,\n textAlign: 'center',\n backgroundColor: 'transparent',\n border: `${token.lineWidth}px ${token.lineType} transparent`,\n borderRadius: token.borderRadius,\n outline: 'none',\n transition: `all ${token.motionDurationMid}`\n },\n [`&:hover ${componentCls}-item-link`]: {\n backgroundColor: token.colorBgTextHover\n },\n [`&:active ${componentCls}-item-link`]: {\n backgroundColor: token.colorBgTextActive\n },\n [`&${componentCls}-disabled:hover`]: {\n [`${componentCls}-item-link`]: {\n backgroundColor: 'transparent'\n }\n }\n },\n [`${componentCls}-slash`]: {\n marginInlineEnd: token.paginationSlashMarginInlineEnd,\n marginInlineStart: token.paginationSlashMarginInlineStart\n },\n [`${componentCls}-options`]: {\n display: 'inline-block',\n marginInlineStart: token.margin,\n verticalAlign: 'middle',\n '&-size-changer.-select': {\n display: 'inline-block',\n width: 'auto'\n },\n '&-quick-jumper': {\n display: 'inline-block',\n height: token.controlHeight,\n marginInlineStart: token.marginXS,\n lineHeight: `${token.controlHeight}px`,\n verticalAlign: 'top',\n input: Object.assign(Object.assign({}, genBasicInputStyle(token)), {\n width: token.controlHeightLG * 1.25,\n height: token.controlHeight,\n boxSizing: 'border-box',\n margin: 0,\n marginInlineStart: token.marginXS,\n marginInlineEnd: token.marginXS\n })\n }\n }\n };\n};\nconst genPaginationItemStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-item`]: {\n display: 'inline-block',\n minWidth: token.itemSize,\n height: token.itemSize,\n marginInlineEnd: token.marginXS,\n fontFamily: token.fontFamily,\n lineHeight: `${token.itemSize - 2}px`,\n textAlign: 'center',\n verticalAlign: 'middle',\n listStyle: 'none',\n backgroundColor: 'transparent',\n border: `${token.lineWidth}px ${token.lineType} transparent`,\n borderRadius: token.borderRadius,\n outline: 0,\n cursor: 'pointer',\n userSelect: 'none',\n a: {\n display: 'block',\n padding: `0 ${token.paginationItemPaddingInline}px`,\n color: token.colorText,\n '&:hover': {\n textDecoration: 'none'\n }\n },\n [`&:not(${componentCls}-item-active)`]: {\n '&:hover': {\n transition: `all ${token.motionDurationMid}`,\n backgroundColor: token.colorBgTextHover\n },\n '&:active': {\n backgroundColor: token.colorBgTextActive\n }\n },\n '&-active': {\n fontWeight: token.fontWeightStrong,\n backgroundColor: token.itemActiveBg,\n borderColor: token.colorPrimary,\n a: {\n color: token.colorPrimary\n },\n '&:hover': {\n borderColor: token.colorPrimaryHover\n },\n '&:hover a': {\n color: token.colorPrimaryHover\n }\n }\n }\n };\n};\nconst genPaginationStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n 'ul, ol': {\n margin: 0,\n padding: 0,\n listStyle: 'none'\n },\n '&::after': {\n display: 'block',\n clear: 'both',\n height: 0,\n overflow: 'hidden',\n visibility: 'hidden',\n content: '\"\"'\n },\n [`${componentCls}-total-text`]: {\n display: 'inline-block',\n height: token.itemSize,\n marginInlineEnd: token.marginXS,\n lineHeight: `${token.itemSize - 2}px`,\n verticalAlign: 'middle'\n }\n }), genPaginationItemStyle(token)), genPaginationJumpStyle(token)), genPaginationSimpleStyle(token)), genPaginationMiniStyle(token)), genPaginationDisabledStyle(token)), {\n // media query style\n [`@media only screen and (max-width: ${token.screenLG}px)`]: {\n [`${componentCls}-item`]: {\n '&-after-jump-prev, &-before-jump-next': {\n display: 'none'\n }\n }\n },\n [`@media only screen and (max-width: ${token.screenSM}px)`]: {\n [`${componentCls}-options`]: {\n display: 'none'\n }\n }\n }),\n // rtl style\n [`&${token.componentCls}-rtl`]: {\n direction: 'rtl'\n }\n };\n};\nconst genBorderedStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}${componentCls}-disabled:not(${componentCls}-mini)`]: {\n '&, &:hover': {\n [`${componentCls}-item-link`]: {\n borderColor: token.colorBorder\n }\n },\n '&:focus-visible': {\n [`${componentCls}-item-link`]: {\n borderColor: token.colorBorder\n }\n },\n [`${componentCls}-item, ${componentCls}-item-link`]: {\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder,\n [`&:hover:not(${componentCls}-item-active)`]: {\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder,\n a: {\n color: token.colorTextDisabled\n }\n },\n [`&${componentCls}-item-active`]: {\n backgroundColor: token.itemActiveBgDisabled\n }\n },\n [`${componentCls}-prev, ${componentCls}-next`]: {\n '&:hover button': {\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder,\n color: token.colorTextDisabled\n },\n [`${componentCls}-item-link`]: {\n backgroundColor: token.colorBgContainerDisabled,\n borderColor: token.colorBorder\n }\n }\n },\n [`${componentCls}:not(${componentCls}-mini)`]: {\n [`${componentCls}-prev, ${componentCls}-next`]: {\n '&:hover button': {\n borderColor: token.colorPrimaryHover,\n backgroundColor: token.itemBg\n },\n [`${componentCls}-item-link`]: {\n backgroundColor: token.itemLinkBg,\n borderColor: token.colorBorder\n },\n [`&:hover ${componentCls}-item-link`]: {\n borderColor: token.colorPrimary,\n backgroundColor: token.itemBg,\n color: token.colorPrimary\n },\n [`&${componentCls}-disabled`]: {\n [`${componentCls}-item-link`]: {\n borderColor: token.colorBorder,\n color: token.colorTextDisabled\n }\n }\n },\n [`${componentCls}-item`]: {\n backgroundColor: token.itemBg,\n border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,\n [`&:hover:not(${componentCls}-item-active)`]: {\n borderColor: token.colorPrimary,\n backgroundColor: token.itemBg,\n a: {\n color: token.colorPrimary\n }\n },\n '&-active': {\n borderColor: token.colorPrimary\n }\n }\n }\n };\n};\nconst genPaginationFocusStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}:not(${componentCls}-disabled)`]: {\n [`${componentCls}-item`]: Object.assign({}, genFocusStyle(token)),\n [`${componentCls}-jump-prev, ${componentCls}-jump-next`]: {\n '&:focus-visible': Object.assign({\n [`${componentCls}-item-link-icon`]: {\n opacity: 1\n },\n [`${componentCls}-item-ellipsis`]: {\n opacity: 0\n }\n }, genFocusOutline(token))\n },\n [`${componentCls}-prev, ${componentCls}-next`]: {\n [`&:focus-visible ${componentCls}-item-link`]: Object.assign({}, genFocusOutline(token))\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Pagination', token => {\n const paginationToken = mergeToken(token, {\n inputOutlineOffset: 0,\n paginationMiniOptionsMarginInlineStart: token.marginXXS / 2,\n paginationMiniQuickJumperInputWidth: token.controlHeightLG * 1.1,\n paginationItemPaddingInline: token.marginXXS * 1.5,\n paginationEllipsisLetterSpacing: token.marginXXS / 2,\n paginationSlashMarginInlineStart: token.marginXXS,\n paginationSlashMarginInlineEnd: token.marginSM,\n paginationEllipsisTextIndent: '0.13em' // magic for ui experience\n }, initInputToken(token));\n return [genPaginationStyle(paginationToken), genPaginationFocusStyle(paginationToken), token.wireframe && genBorderedStyle(paginationToken)];\n}, token => ({\n itemBg: token.colorBgContainer,\n itemSize: token.controlHeight,\n itemSizeSM: token.controlHeightSM,\n itemActiveBg: token.colorBgContainer,\n itemLinkBg: token.colorBgContainer,\n itemActiveColorDisabled: token.colorTextDisabled,\n itemActiveBgDisabled: token.controlItemBgActiveDisabled,\n itemInputBg: token.colorBgContainer,\n miniOptionsSizeChangerTop: 0\n}));","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport DoubleLeftOutlined from \"@ant-design/icons/es/icons/DoubleLeftOutlined\";\nimport DoubleRightOutlined from \"@ant-design/icons/es/icons/DoubleRightOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport RcPagination from 'rc-pagination';\nimport enUS from \"rc-pagination/es/locale/en_US\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport { useLocale } from '../locale';\nimport { MiddleSelect, MiniSelect } from './Select';\nimport useStyle from './style';\nconst Pagination = props => {\n const {\n prefixCls: customizePrefixCls,\n selectPrefixCls: customizeSelectPrefixCls,\n className,\n rootClassName,\n style,\n size: customizeSize,\n locale: customLocale,\n selectComponentClass,\n responsive,\n showSizeChanger\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"selectPrefixCls\", \"className\", \"rootClassName\", \"style\", \"size\", \"locale\", \"selectComponentClass\", \"responsive\", \"showSizeChanger\"]);\n const {\n xs\n } = useBreakpoint(responsive);\n const {\n getPrefixCls,\n direction,\n pagination = {}\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('pagination', customizePrefixCls);\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const mergedShowSizeChanger = showSizeChanger !== null && showSizeChanger !== void 0 ? showSizeChanger : pagination.showSizeChanger;\n const iconsProps = React.useMemo(() => {\n const ellipsis = /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-item-ellipsis`\n }, \"\\u2022\\u2022\\u2022\");\n const prevIcon = /*#__PURE__*/React.createElement(\"button\", {\n className: `${prefixCls}-item-link`,\n type: \"button\",\n tabIndex: -1\n }, direction === 'rtl' ? /*#__PURE__*/React.createElement(RightOutlined, null) : /*#__PURE__*/React.createElement(LeftOutlined, null));\n const nextIcon = /*#__PURE__*/React.createElement(\"button\", {\n className: `${prefixCls}-item-link`,\n type: \"button\",\n tabIndex: -1\n }, direction === 'rtl' ? /*#__PURE__*/React.createElement(LeftOutlined, null) : /*#__PURE__*/React.createElement(RightOutlined, null));\n const jumpPrevIcon = /*#__PURE__*/React.createElement(\"a\", {\n className: `${prefixCls}-item-link`\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-container`\n }, direction === 'rtl' ? /*#__PURE__*/React.createElement(DoubleRightOutlined, {\n className: `${prefixCls}-item-link-icon`\n }) : /*#__PURE__*/React.createElement(DoubleLeftOutlined, {\n className: `${prefixCls}-item-link-icon`\n }), ellipsis));\n const jumpNextIcon = /*#__PURE__*/React.createElement(\"a\", {\n className: `${prefixCls}-item-link`\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-item-container`\n }, direction === 'rtl' ? /*#__PURE__*/React.createElement(DoubleLeftOutlined, {\n className: `${prefixCls}-item-link-icon`\n }) : /*#__PURE__*/React.createElement(DoubleRightOutlined, {\n className: `${prefixCls}-item-link-icon`\n }), ellipsis));\n return {\n prevIcon,\n nextIcon,\n jumpPrevIcon,\n jumpNextIcon\n };\n }, [direction, prefixCls]);\n const [contextLocale] = useLocale('Pagination', enUS);\n const locale = Object.assign(Object.assign({}, contextLocale), customLocale);\n const mergedSize = useSize(customizeSize);\n const isSmall = mergedSize === 'small' || !!(xs && !mergedSize && responsive);\n const selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);\n const extendedClassName = classNames({\n [`${prefixCls}-mini`]: isSmall,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, pagination === null || pagination === void 0 ? void 0 : pagination.className, className, rootClassName, hashId);\n const mergedStyle = Object.assign(Object.assign({}, pagination === null || pagination === void 0 ? void 0 : pagination.style), style);\n return wrapSSR( /*#__PURE__*/React.createElement(RcPagination, Object.assign({}, iconsProps, restProps, {\n style: mergedStyle,\n prefixCls: prefixCls,\n selectPrefixCls: selectPrefixCls,\n className: extendedClassName,\n selectComponentClass: selectComponentClass || (isSmall ? MiniSelect : MiddleSelect),\n locale: locale,\n showSizeChanger: mergedShowSizeChanger\n })));\n};\nif (process.env.NODE_ENV !== 'production') {\n Pagination.displayName = 'Pagination';\n}\nexport default Pagination;","'use client';\n\nimport Pagination from './Pagination';\nexport default Pagination;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { Popup } from 'rc-tooltip';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport useStyle from './style';\nexport const getOverlay = (prefixCls, title, content) => {\n if (!title && !content) return undefined;\n return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-title`\n }, getRenderPropValue(title)), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-inner-content`\n }, getRenderPropValue(content)));\n};\nexport const RawPurePanel = props => {\n const {\n hashId,\n prefixCls,\n className,\n style,\n placement = 'top',\n title,\n content,\n children\n } = props;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className),\n style: style\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-arrow`\n }), /*#__PURE__*/React.createElement(Popup, Object.assign({}, props, {\n className: hashId,\n prefixCls: prefixCls\n }), children || getOverlay(prefixCls, title, content)));\n};\nconst PurePanel = props => {\n const {\n prefixCls: customizePrefixCls\n } = props,\n restProps = __rest(props, [\"prefixCls\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('popover', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n return wrapSSR( /*#__PURE__*/React.createElement(RawPurePanel, Object.assign({}, restProps, {\n prefixCls: prefixCls,\n hashId: hashId\n })));\n};\nexport default PurePanel;","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { getTransitionName } from '../_util/motion';\nimport { ConfigContext } from '../config-provider';\nimport Tooltip from '../tooltip';\nimport PurePanel from './PurePanel';\n// CSSINJS\nimport useStyle from './style';\nconst Overlay = _ref => {\n let {\n title,\n content,\n prefixCls\n } = _ref;\n return /*#__PURE__*/React.createElement(React.Fragment, null, title && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-title`\n }, getRenderPropValue(title)), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-inner-content`\n }, getRenderPropValue(content)));\n};\nconst Popover = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n title,\n content,\n overlayClassName,\n placement = 'top',\n trigger = 'hover',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n overlayStyle = {}\n } = props,\n otherProps = __rest(props, [\"prefixCls\", \"title\", \"content\", \"overlayClassName\", \"placement\", \"trigger\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\"]);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('popover', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const rootPrefixCls = getPrefixCls();\n const overlayCls = classNames(overlayClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(Tooltip, Object.assign({\n placement: placement,\n trigger: trigger,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n overlayStyle: overlayStyle\n }, otherProps, {\n prefixCls: prefixCls,\n overlayClassName: overlayCls,\n ref: ref,\n overlay: title || content ? /*#__PURE__*/React.createElement(Overlay, {\n prefixCls: prefixCls,\n title: title,\n content: content\n }) : null,\n transitionName: getTransitionName(rootPrefixCls, 'zoom-big', otherProps.transitionName),\n \"data-popover-inject\": true\n })));\n});\nif (process.env.NODE_ENV !== 'production') {\n Popover.displayName = 'Popover';\n}\nPopover._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Popover;","import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle from '../../style/placementArrow';\nimport { PresetColors, genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst genBaseStyle = token => {\n const {\n componentCls,\n popoverColor,\n minWidth,\n fontWeightStrong,\n popoverPadding,\n boxShadowSecondary,\n colorTextHeading,\n borderRadiusLG: borderRadius,\n zIndexPopup,\n marginXS,\n colorBgElevated,\n popoverBg\n } = token;\n return [{\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n top: 0,\n // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n left: {\n _skip_check_: true,\n value: 0\n },\n zIndex: zIndexPopup,\n fontWeight: 'normal',\n whiteSpace: 'normal',\n textAlign: 'start',\n cursor: 'auto',\n userSelect: 'text',\n transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,\n '--antd-arrow-background-color': colorBgElevated,\n '&-rtl': {\n direction: 'rtl'\n },\n '&-hidden': {\n display: 'none'\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n [`${componentCls}-inner`]: {\n backgroundColor: popoverBg,\n backgroundClip: 'padding-box',\n borderRadius,\n boxShadow: boxShadowSecondary,\n padding: popoverPadding\n },\n [`${componentCls}-title`]: {\n minWidth,\n marginBottom: marginXS,\n color: colorTextHeading,\n fontWeight: fontWeightStrong\n },\n [`${componentCls}-inner-content`]: {\n color: popoverColor\n }\n })\n },\n // Arrow Style\n getArrowStyle(token, {\n colorBg: 'var(--antd-arrow-background-color)'\n }),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow,\n display: 'inline-block',\n [`${componentCls}-content`]: {\n display: 'inline-block'\n }\n }\n }];\n};\nconst genColorStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: PresetColors.map(colorKey => {\n const lightColor = token[`${colorKey}6`];\n return {\n [`&${componentCls}-${colorKey}`]: {\n '--antd-arrow-background-color': lightColor,\n [`${componentCls}-inner`]: {\n backgroundColor: lightColor\n },\n [`${componentCls}-arrow`]: {\n background: 'transparent'\n }\n }\n };\n })\n };\n};\nconst genWireframeStyle = token => {\n const {\n componentCls,\n lineWidth,\n lineType,\n colorSplit,\n paddingSM,\n controlHeight,\n fontSize,\n lineHeight,\n padding\n } = token;\n const titlePaddingBlockDist = controlHeight - Math.round(fontSize * lineHeight);\n const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n const popoverPaddingHorizontal = padding;\n return {\n [componentCls]: {\n [`${componentCls}-inner`]: {\n padding: 0\n },\n [`${componentCls}-title`]: {\n margin: 0,\n padding: `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px`,\n borderBottom: `${lineWidth}px ${lineType} ${colorSplit}`\n },\n [`${componentCls}-inner-content`]: {\n padding: `${paddingSM}px ${popoverPaddingHorizontal}px`\n }\n }\n };\n};\nexport default genComponentStyleHook('Popover', token => {\n const {\n colorBgElevated,\n colorText,\n wireframe\n } = token;\n const popoverToken = mergeToken(token, {\n popoverPadding: 12,\n popoverBg: colorBgElevated,\n popoverColor: colorText\n });\n return [genBaseStyle(popoverToken), genColorStyle(popoverToken), wireframe && genWireframeStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, token => ({\n width: 177,\n minWidth: 177,\n zIndexPopup: token.zIndexPopupBase + 30\n}), {\n deprecatedTokens: [['width', 'minWidth']]\n});","// This icon file is generated automatically.\nvar WarningFilled = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z\" } }] }, \"name\": \"warning\", \"theme\": \"filled\" };\nexport default WarningFilled;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport WarningFilledSvg from \"@ant-design/icons-svg/es/asn/WarningFilled\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar WarningFilled = function WarningFilled(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: WarningFilledSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n WarningFilled.displayName = 'WarningFilled';\n}\nexport default /*#__PURE__*/React.forwardRef(WarningFilled);","import * as React from 'react';\nconst NoFound = () => /*#__PURE__*/React.createElement(\"svg\", {\n width: \"252\",\n height: \"294\"\n}, /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 .387h251.772v251.772H0z\"\n})), /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n}, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(0 .012)\"\n}, /*#__PURE__*/React.createElement(\"mask\", {\n fill: \"#fff\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321\",\n fill: \"#E4EBF7\",\n mask: \"url(#b)\"\n})), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#FFF\",\n strokeWidth: \"2\",\n d: \"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48\",\n fill: \"#1677ff\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88\",\n fill: \"#FFB594\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165\",\n fill: \"#7BB2F9\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M107.275 222.1s2.773-1.11 6.102-3.884\",\n stroke: \"#648BD8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z\",\n fill: \"#520038\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254\",\n fill: \"#552950\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#DB836E\",\n strokeWidth: \"1.118\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n d: \"M110.13 74.84l-.896 1.61-.298 4.357h-2.228\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M110.846 74.481s1.79-.716 2.506.537\",\n stroke: \"#5C2552\",\n strokeWidth: \"1.118\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.118\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M103.287 72.93s1.83 1.113 4.137.954\",\n stroke: \"#5C2552\",\n strokeWidth: \"1.118\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.118\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.101\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M129.405 122.865s-5.272 7.403-9.422 10.768\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M119.306 107.329s.452 4.366-2.127 32.062\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.101\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01\",\n fill: \"#F2D7AD\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92\",\n fill: \"#F4D19D\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z\",\n fill: \"#F2D7AD\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#CC9B6E\",\n d: \"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83\",\n fill: \"#F4D19D\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#CC9B6E\",\n d: \"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#CC9B6E\",\n d: \"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647\",\n fill: \"#5BA02E\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647\",\n fill: \"#92C110\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187\",\n fill: \"#F2D7AD\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M88.979 89.48s7.776 5.384 16.6 2.842\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.101\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n})));\nexport default NoFound;","import * as React from 'react';\nconst ServerError = () => /*#__PURE__*/React.createElement(\"svg\", {\n width: \"254\",\n height: \"294\"\n}, /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 .335h253.49v253.49H0z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 293.665h253.49V.401H0z\"\n})), /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n}, /*#__PURE__*/React.createElement(\"g\", {\n transform: \"translate(0 .067)\"\n}, /*#__PURE__*/React.createElement(\"mask\", {\n fill: \"#fff\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134\",\n fill: \"#E4EBF7\",\n mask: \"url(#b)\"\n})), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68\",\n fill: \"#FF603B\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487\",\n fill: \"#FFB594\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246\",\n fill: \"#FFB594\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z\",\n fill: \"#520038\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26\",\n fill: \"#552950\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#DB836E\",\n strokeWidth: \"1.063\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n d: \"M99.206 73.644l-.9 1.62-.3 4.38h-2.24\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M99.926 73.284s1.8-.72 2.52.54\",\n stroke: \"#5C2552\",\n strokeWidth: \"1.117\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.117\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M92.326 71.724s1.84 1.12 4.16.96\",\n stroke: \"#5C2552\",\n strokeWidth: \"1.117\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.063\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.136\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69\",\n fill: \"#7BB2F9\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M96.973 219.373s2.882-1.153 6.34-4.034\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.032\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593\",\n stroke: \"#DB836E\",\n strokeWidth: \".774\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762\",\n stroke: \"#E59788\",\n strokeWidth: \".774\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12\",\n stroke: \"#E59788\",\n strokeWidth: \".774\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M109.278 112.533s3.38-3.613 7.575-4.662\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.085\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M107.375 123.006s9.697-2.745 11.445-.88\",\n stroke: \"#E59788\",\n strokeWidth: \".774\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955\",\n stroke: \"#BFCDDD\",\n strokeWidth: \"2\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01\",\n fill: \"#A3B4C6\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813\",\n fill: \"#A3B4C6\"\n}), /*#__PURE__*/React.createElement(\"mask\", {\n fill: \"#fff\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"#A3B4C6\",\n mask: \"url(#d)\",\n d: \"M154.098 190.096h70.513v-84.617h-70.513z\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208\",\n fill: \"#BFCDDD\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802\",\n fill: \"#FFF\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209\",\n fill: \"#BFCDDD\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751\",\n stroke: \"#7C90A5\",\n strokeWidth: \"1.124\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802\",\n fill: \"#FFF\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407\",\n fill: \"#BFCDDD\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M177.259 207.217v11.52M201.05 207.217v11.52\",\n stroke: \"#A3B4C6\",\n strokeWidth: \"1.124\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422\",\n fill: \"#5BA02E\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423\",\n fill: \"#92C110\",\n mask: \"url(#d)\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209\",\n fill: \"#F2D7AD\",\n mask: \"url(#d)\"\n})));\nexport default ServerError;","import * as React from 'react';\nconst Unauthorized = () => /*#__PURE__*/React.createElement(\"svg\", {\n width: \"251\",\n height: \"294\"\n}, /*#__PURE__*/React.createElement(\"g\", {\n fill: \"none\",\n fillRule: \"evenodd\"\n}, /*#__PURE__*/React.createElement(\"path\", {\n d: \"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023\",\n fill: \"#E4EBF7\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z\",\n stroke: \"#FFF\",\n strokeWidth: \"2\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#FFF\",\n strokeWidth: \"2\",\n d: \"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321\",\n fill: \"#A26EF4\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61\",\n fill: \"#5BA02E\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611\",\n fill: \"#92C110\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17\",\n fill: \"#F2D7AD\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367\",\n fill: \"#FFB594\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M78.18 94.656s.911 7.41-4.914 13.078\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437\",\n stroke: \"#E4EBF7\",\n strokeWidth: \".932\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91\",\n fill: \"#FFB594\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103\",\n fill: \"#5C2552\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n stroke: \"#DB836E\",\n strokeWidth: \"1.145\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\",\n d: \"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32\",\n fill: \"#552950\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M91.132 86.786s5.269 4.957 12.679 2.327\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.145\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25\",\n fill: \"#DB836E\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073\",\n stroke: \"#5C2552\",\n strokeWidth: \"1.526\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254\",\n stroke: \"#DB836E\",\n strokeWidth: \"1.145\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M66.508 86.763s-1.598 8.83-6.697 14.078\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.114\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M128.31 87.934s3.013 4.121 4.06 11.785\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M64.09 84.816s-6.03 9.912-13.607 9.903\",\n stroke: \"#DB836E\",\n strokeWidth: \".795\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73\",\n fill: \"#FFC6A0\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M130.532 85.488s4.588 5.757 11.619 6.214\",\n stroke: \"#DB836E\",\n strokeWidth: \".75\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M121.708 105.73s-.393 8.564-1.34 13.612\",\n stroke: \"#E4EBF7\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M115.784 161.512s-3.57-1.488-2.678-7.14\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z\",\n fill: \"#CBD1D1\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078\",\n fill: \"#2B0849\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15\",\n fill: \"#A4AABA\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954\",\n fill: \"#7BB2F9\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M108.459 220.905s2.759-1.104 6.07-3.863\",\n stroke: \"#648BD8\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806\",\n fill: \"#FFF\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64\",\n fill: \"#192064\"\n}), /*#__PURE__*/React.createElement(\"path\", {\n d: \"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956\",\n stroke: \"#648BD8\",\n strokeWidth: \"1.051\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n})));\nexport default Unauthorized;","import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n lineHeightHeading3,\n iconCls,\n padding,\n paddingXL,\n paddingXS,\n paddingLG,\n marginXS,\n lineHeight\n } = token;\n return {\n // Result\n [componentCls]: {\n padding: `${paddingLG * 2}px ${paddingXL}px`,\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n },\n // Exception Status image\n [`${componentCls} ${componentCls}-image`]: {\n width: token.imageWidth,\n height: token.imageHeight,\n margin: 'auto'\n },\n [`${componentCls} ${componentCls}-icon`]: {\n marginBottom: paddingLG,\n textAlign: 'center',\n [`& > ${iconCls}`]: {\n fontSize: token.iconFontSize\n }\n },\n [`${componentCls} ${componentCls}-title`]: {\n color: token.colorTextHeading,\n fontSize: token.titleFontSize,\n lineHeight: lineHeightHeading3,\n marginBlock: marginXS,\n textAlign: 'center'\n },\n [`${componentCls} ${componentCls}-subtitle`]: {\n color: token.colorTextDescription,\n fontSize: token.subtitleFontSize,\n lineHeight,\n textAlign: 'center'\n },\n [`${componentCls} ${componentCls}-content`]: {\n marginTop: paddingLG,\n padding: `${paddingLG}px ${padding * 2.5}px`,\n backgroundColor: token.colorFillAlter\n },\n [`${componentCls} ${componentCls}-extra`]: {\n margin: token.extraMargin,\n textAlign: 'center',\n '& > *': {\n marginInlineEnd: paddingXS,\n '&:last-child': {\n marginInlineEnd: 0\n }\n }\n }\n };\n};\nconst genStatusIconStyle = token => {\n const {\n componentCls,\n iconCls\n } = token;\n return {\n [`${componentCls}-success ${componentCls}-icon > ${iconCls}`]: {\n color: token.resultSuccessIconColor\n },\n [`${componentCls}-error ${componentCls}-icon > ${iconCls}`]: {\n color: token.resultErrorIconColor\n },\n [`${componentCls}-info ${componentCls}-icon > ${iconCls}`]: {\n color: token.resultInfoIconColor\n },\n [`${componentCls}-warning ${componentCls}-icon > ${iconCls}`]: {\n color: token.resultWarningIconColor\n }\n };\n};\nconst genResultStyle = token => [genBaseStyle(token), genStatusIconStyle(token)];\n// ============================== Export ==============================\nconst getStyle = token => genResultStyle(token);\nexport default genComponentStyleHook('Result', token => {\n const resultInfoIconColor = token.colorInfo;\n const resultErrorIconColor = token.colorError;\n const resultSuccessIconColor = token.colorSuccess;\n const resultWarningIconColor = token.colorWarning;\n const resultToken = mergeToken(token, {\n resultInfoIconColor,\n resultErrorIconColor,\n resultSuccessIconColor,\n resultWarningIconColor,\n imageWidth: 250,\n imageHeight: 295\n });\n return [getStyle(resultToken)];\n}, token => ({\n titleFontSize: token.fontSizeHeading3,\n subtitleFontSize: token.fontSize,\n iconFontSize: token.fontSizeHeading3 * 3,\n extraMargin: `${token.paddingLG}px 0 0 0`\n}));","'use client';\n\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport WarningFilled from \"@ant-design/icons/es/icons/WarningFilled\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport noFound from './noFound';\nimport serverError from './serverError';\nimport unauthorized from './unauthorized';\nimport useStyle from './style';\nexport const IconMap = {\n success: CheckCircleFilled,\n error: CloseCircleFilled,\n info: ExclamationCircleFilled,\n warning: WarningFilled\n};\nexport const ExceptionMap = {\n '404': noFound,\n '500': serverError,\n '403': unauthorized\n};\n// ExceptionImageMap keys\nconst ExceptionStatus = Object.keys(ExceptionMap);\nconst Icon = _ref => {\n let {\n prefixCls,\n icon,\n status\n } = _ref;\n const className = classNames(`${prefixCls}-icon`);\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Result', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n if (ExceptionStatus.includes(`${status}`)) {\n const SVGComponent = ExceptionMap[status];\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${className} ${prefixCls}-image`\n }, /*#__PURE__*/React.createElement(SVGComponent, null));\n }\n const iconNode = /*#__PURE__*/React.createElement(IconMap[status]);\n if (icon === null || icon === false) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: className\n }, icon || iconNode);\n};\nconst Extra = _ref2 => {\n let {\n prefixCls,\n extra\n } = _ref2;\n if (!extra) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-extra`\n }, extra);\n};\nconst Result = _ref3 => {\n let {\n prefixCls: customizePrefixCls,\n className: customizeClassName,\n rootClassName,\n subTitle,\n title,\n style,\n children,\n status = 'info',\n icon,\n extra\n } = _ref3;\n const {\n getPrefixCls,\n direction,\n result\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('result', customizePrefixCls);\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const className = classNames(prefixCls, `${prefixCls}-${status}`, customizeClassName, result === null || result === void 0 ? void 0 : result.className, rootClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, hashId);\n const mergedStyle = Object.assign(Object.assign({}, result === null || result === void 0 ? void 0 : result.style), style);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: mergedStyle\n }, /*#__PURE__*/React.createElement(Icon, {\n prefixCls: prefixCls,\n status: status,\n icon: icon\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-title`\n }, title), subTitle && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-subtitle`\n }, subTitle), /*#__PURE__*/React.createElement(Extra, {\n prefixCls: prefixCls,\n extra: extra\n }), children && /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-content`\n }, children)));\n};\nResult.PRESENTED_IMAGE_403 = ExceptionMap['403'];\nResult.PRESENTED_IMAGE_404 = ExceptionMap['404'];\nResult.PRESENTED_IMAGE_500 = ExceptionMap['500'];\nif (process.env.NODE_ENV !== 'production') {\n Result.displayName = 'Result';\n}\nexport default Result;","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\n// TODO: 4.0 - codemod should help to change `filterOption` to support node props.\nimport classNames from 'classnames';\nimport RcSelect, { OptGroup, Option } from 'rc-select';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport genPurePanel from '../_util/PurePanel';\nimport { getTransitionName } from '../_util/motion';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport useSize from '../config-provider/hooks/useSize';\nimport { FormItemInputContext } from '../form/context';\nimport { useCompactItemContext } from '../space/Compact';\nimport useStyle from './style';\nimport useBuiltinPlacements from './useBuiltinPlacements';\nimport useShowArrow from './useShowArrow';\nimport getIcons from './utils/iconUtil';\nconst SECRET_COMBOBOX_MODE_DO_NOT_USE = 'SECRET_COMBOBOX_MODE_DO_NOT_USE';\nconst InternalSelect = (_a, ref) => {\n var _b;\n var {\n prefixCls: customizePrefixCls,\n bordered = true,\n className,\n rootClassName,\n getPopupContainer,\n popupClassName,\n dropdownClassName,\n listHeight = 256,\n placement,\n listItemHeight = 24,\n size: customizeSize,\n disabled: customDisabled,\n notFoundContent,\n status: customStatus,\n builtinPlacements,\n dropdownMatchSelectWidth,\n popupMatchSelectWidth,\n direction: propDirection,\n style,\n allowClear\n } = _a,\n props = __rest(_a, [\"prefixCls\", \"bordered\", \"className\", \"rootClassName\", \"getPopupContainer\", \"popupClassName\", \"dropdownClassName\", \"listHeight\", \"placement\", \"listItemHeight\", \"size\", \"disabled\", \"notFoundContent\", \"status\", \"builtinPlacements\", \"dropdownMatchSelectWidth\", \"popupMatchSelectWidth\", \"direction\", \"style\", \"allowClear\"]);\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n renderEmpty,\n direction: contextDirection,\n virtual,\n popupMatchSelectWidth: contextPopupMatchSelectWidth,\n popupOverflow,\n select\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('select', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const direction = propDirection !== null && propDirection !== void 0 ? propDirection : contextDirection;\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const mode = React.useMemo(() => {\n const {\n mode: m\n } = props;\n if (m === 'combobox') {\n return undefined;\n }\n if (m === SECRET_COMBOBOX_MODE_DO_NOT_USE) {\n return 'combobox';\n }\n return m;\n }, [props.mode]);\n const isMultiple = mode === 'multiple' || mode === 'tags';\n const showSuffixIcon = useShowArrow(props.suffixIcon, props.showArrow);\n const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;\n // ===================== Form Status =====================\n const {\n status: contextStatus,\n hasFeedback,\n isFormItemInput,\n feedbackIcon\n } = React.useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n // ===================== Empty =====================\n let mergedNotFound;\n if (notFoundContent !== undefined) {\n mergedNotFound = notFoundContent;\n } else if (mode === 'combobox') {\n mergedNotFound = null;\n } else {\n mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"Select\"\n });\n }\n // ===================== Icons =====================\n const {\n suffixIcon,\n itemIcon,\n removeIcon,\n clearIcon\n } = getIcons(Object.assign(Object.assign({}, props), {\n multiple: isMultiple,\n hasFeedback,\n feedbackIcon,\n showSuffixIcon,\n prefixCls,\n showArrow: props.showArrow,\n componentName: 'Select'\n }));\n const mergedAllowClear = allowClear === true ? {\n clearIcon\n } : allowClear;\n const selectProps = omit(props, ['suffixIcon', 'itemIcon']);\n const rcSelectRtlDropdownClassName = classNames(popupClassName || dropdownClassName, {\n [`${prefixCls}-dropdown-${direction}`]: direction === 'rtl'\n }, rootClassName, hashId);\n const mergedSize = useSize(ctx => {\n var _a;\n return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;\n });\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n const mergedClassName = classNames({\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-in-form-item`]: isFormItemInput\n }, getStatusClassNames(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, select === null || select === void 0 ? void 0 : select.className, className, rootClassName, hashId);\n // ===================== Placement =====================\n const memoPlacement = React.useMemo(() => {\n if (placement !== undefined) {\n return placement;\n }\n return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';\n }, [placement, direction]);\n const mergedBuiltinPlacements = useBuiltinPlacements(builtinPlacements, popupOverflow);\n // ====================== Warning ======================\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!dropdownClassName, 'Select', '`dropdownClassName` is deprecated. Please use `popupClassName` instead.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(dropdownMatchSelectWidth === undefined, 'Select', '`dropdownMatchSelectWidth` is deprecated. Please use `popupMatchSelectWidth` instead.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!('showArrow' in props), 'Select', '`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.') : void 0;\n }\n // ====================== Render =======================\n return wrapSSR( /*#__PURE__*/React.createElement(RcSelect, Object.assign({\n ref: ref,\n virtual: virtual,\n showSearch: select === null || select === void 0 ? void 0 : select.showSearch\n }, selectProps, {\n style: Object.assign(Object.assign({}, select === null || select === void 0 ? void 0 : select.style), style),\n dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,\n builtinPlacements: mergedBuiltinPlacements,\n transitionName: getTransitionName(rootPrefixCls, 'slide-up', props.transitionName),\n listHeight: listHeight,\n listItemHeight: listItemHeight,\n mode: mode,\n prefixCls: prefixCls,\n placement: memoPlacement,\n direction: direction,\n suffixIcon: suffixIcon,\n menuItemSelectedIcon: itemIcon,\n removeIcon: removeIcon,\n allowClear: mergedAllowClear,\n notFoundContent: mergedNotFound,\n className: mergedClassName,\n getPopupContainer: getPopupContainer || getContextPopupContainer,\n dropdownClassName: rcSelectRtlDropdownClassName,\n disabled: mergedDisabled\n })));\n};\nif (process.env.NODE_ENV !== 'production') {\n InternalSelect.displayName = 'Select';\n}\nconst Select = /*#__PURE__*/React.forwardRef(InternalSelect);\n// We don't care debug panel\n/* istanbul ignore next */\nconst PurePanel = genPurePanel(Select);\nSelect.SECRET_COMBOBOX_MODE_DO_NOT_USE = SECRET_COMBOBOX_MODE_DO_NOT_USE;\nSelect.Option = Option;\nSelect.OptGroup = OptGroup;\nSelect._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Select.displayName = 'Select';\n}\nexport default Select;","import { resetComponent, textEllipsis } from '../../style';\nimport { initMoveMotion, initSlideMotion, slideDownIn, slideDownOut, slideUpIn, slideUpOut } from '../../style/motion';\nconst genItemStyle = token => {\n const {\n controlPaddingHorizontal,\n controlHeight,\n fontSize,\n lineHeight\n } = token;\n return {\n position: 'relative',\n display: 'block',\n minHeight: controlHeight,\n padding: `${(controlHeight - fontSize * lineHeight) / 2}px ${controlPaddingHorizontal}px`,\n color: token.colorText,\n fontWeight: 'normal',\n fontSize,\n lineHeight,\n boxSizing: 'border-box'\n };\n};\nconst genSingleStyle = token => {\n const {\n antCls,\n componentCls\n } = token;\n const selectItemCls = `${componentCls}-item`;\n const slideUpEnterActive = `&${antCls}-slide-up-enter${antCls}-slide-up-enter-active`;\n const slideUpAppearActive = `&${antCls}-slide-up-appear${antCls}-slide-up-appear-active`;\n const slideUpLeaveActive = `&${antCls}-slide-up-leave${antCls}-slide-up-leave-active`;\n const dropdownPlacementCls = `${componentCls}-dropdown-placement-`;\n return [{\n [`${componentCls}-dropdown`]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n top: -9999,\n zIndex: token.zIndexPopup,\n boxSizing: 'border-box',\n padding: token.paddingXXS,\n overflow: 'hidden',\n fontSize: token.fontSize,\n // Fix select render lag of long text in chrome\n // https://github.com/ant-design/ant-design/issues/11456\n // https://github.com/ant-design/ant-design/issues/11843\n fontVariant: 'initial',\n backgroundColor: token.colorBgElevated,\n borderRadius: token.borderRadiusLG,\n outline: 'none',\n boxShadow: token.boxShadowSecondary,\n [`\n ${slideUpEnterActive}${dropdownPlacementCls}bottomLeft,\n ${slideUpAppearActive}${dropdownPlacementCls}bottomLeft\n `]: {\n animationName: slideUpIn\n },\n [`\n ${slideUpEnterActive}${dropdownPlacementCls}topLeft,\n ${slideUpAppearActive}${dropdownPlacementCls}topLeft,\n ${slideUpEnterActive}${dropdownPlacementCls}topRight,\n ${slideUpAppearActive}${dropdownPlacementCls}topRight\n `]: {\n animationName: slideDownIn\n },\n [`${slideUpLeaveActive}${dropdownPlacementCls}bottomLeft`]: {\n animationName: slideUpOut\n },\n [`\n ${slideUpLeaveActive}${dropdownPlacementCls}topLeft,\n ${slideUpLeaveActive}${dropdownPlacementCls}topRight\n `]: {\n animationName: slideDownOut\n },\n '&-hidden': {\n display: 'none'\n },\n [`${selectItemCls}`]: Object.assign(Object.assign({}, genItemStyle(token)), {\n cursor: 'pointer',\n transition: `background ${token.motionDurationSlow} ease`,\n borderRadius: token.borderRadiusSM,\n // =========== Group ============\n '&-group': {\n color: token.colorTextDescription,\n fontSize: token.fontSizeSM,\n cursor: 'default'\n },\n // =========== Option ===========\n '&-option': {\n display: 'flex',\n '&-content': Object.assign({\n flex: 'auto'\n }, textEllipsis),\n '&-state': {\n flex: 'none',\n display: 'flex',\n alignItems: 'center'\n },\n [`&-active:not(${selectItemCls}-option-disabled)`]: {\n backgroundColor: token.controlItemBgHover\n },\n [`&-selected:not(${selectItemCls}-option-disabled)`]: {\n color: token.colorText,\n fontWeight: token.fontWeightStrong,\n backgroundColor: token.controlItemBgActive,\n [`${selectItemCls}-option-state`]: {\n color: token.colorPrimary\n }\n },\n '&-disabled': {\n [`&${selectItemCls}-option-selected`]: {\n backgroundColor: token.colorBgContainerDisabled\n },\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n },\n '&-grouped': {\n paddingInlineStart: token.controlPaddingHorizontal * 2\n }\n }\n }),\n // =========================== RTL ===========================\n '&-rtl': {\n direction: 'rtl'\n }\n })\n },\n // Follow code may reuse in other components\n initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')];\n};\nexport default genSingleStyle;","import { resetIcon } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nconst FIXED_ITEM_MARGIN = 2;\nconst getSelectItemStyle = _ref => {\n let {\n controlHeightSM,\n controlHeight,\n lineWidth: borderWidth\n } = _ref;\n const selectItemDist = (controlHeight - controlHeightSM) / 2 - borderWidth;\n const selectItemMargin = Math.ceil(selectItemDist / 2);\n return [selectItemDist, selectItemMargin];\n};\nfunction genSizeStyle(token, suffix) {\n const {\n componentCls,\n iconCls\n } = token;\n const selectOverflowPrefixCls = `${componentCls}-selection-overflow`;\n const selectItemHeight = token.controlHeightSM;\n const [selectItemDist] = getSelectItemStyle(token);\n const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n return {\n [`${componentCls}-multiple${suffixCls}`]: {\n fontSize: token.fontSize,\n /**\n * Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome\n * may update to redesign with its align logic.\n */\n // =========================== Overflow ===========================\n [selectOverflowPrefixCls]: {\n position: 'relative',\n display: 'flex',\n flex: 'auto',\n flexWrap: 'wrap',\n maxWidth: '100%',\n '&-item': {\n flex: 'none',\n alignSelf: 'center',\n maxWidth: '100%',\n display: 'inline-flex'\n }\n },\n // ========================= Selector =========================\n [`${componentCls}-selector`]: {\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n // Multiple is little different that horizontal is follow the vertical\n padding: `${selectItemDist - FIXED_ITEM_MARGIN}px ${FIXED_ITEM_MARGIN * 2}px`,\n borderRadius: token.borderRadius,\n [`${componentCls}-show-search&`]: {\n cursor: 'text'\n },\n [`${componentCls}-disabled&`]: {\n background: token.colorBgContainerDisabled,\n cursor: 'not-allowed'\n },\n '&:after': {\n display: 'inline-block',\n width: 0,\n margin: `${FIXED_ITEM_MARGIN}px 0`,\n lineHeight: `${selectItemHeight}px`,\n visibility: 'hidden',\n content: '\"\\\\a0\"'\n }\n },\n [`\n &${componentCls}-show-arrow ${componentCls}-selector,\n &${componentCls}-allow-clear ${componentCls}-selector\n `]: {\n paddingInlineEnd: token.fontSizeIcon + token.controlPaddingHorizontal\n },\n // ======================== Selections ========================\n [`${componentCls}-selection-item`]: {\n position: 'relative',\n display: 'flex',\n flex: 'none',\n boxSizing: 'border-box',\n maxWidth: '100%',\n height: selectItemHeight,\n marginTop: FIXED_ITEM_MARGIN,\n marginBottom: FIXED_ITEM_MARGIN,\n lineHeight: `${selectItemHeight - token.lineWidth * 2}px`,\n background: token.colorFillSecondary,\n borderRadius: token.borderRadiusSM,\n cursor: 'default',\n transition: `font-size ${token.motionDurationSlow}, line-height ${token.motionDurationSlow}, height ${token.motionDurationSlow}`,\n userSelect: 'none',\n marginInlineEnd: FIXED_ITEM_MARGIN * 2,\n paddingInlineStart: token.paddingXS,\n paddingInlineEnd: token.paddingXS / 2,\n [`${componentCls}-disabled&`]: {\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n },\n // It's ok not to do this, but 24px makes bottom narrow in view should adjust\n '&-content': {\n display: 'inline-block',\n marginInlineEnd: token.paddingXS / 2,\n overflow: 'hidden',\n whiteSpace: 'pre',\n textOverflow: 'ellipsis'\n },\n '&-remove': Object.assign(Object.assign({}, resetIcon()), {\n display: 'inline-flex',\n alignItems: 'center',\n color: token.colorIcon,\n fontWeight: 'bold',\n fontSize: 10,\n lineHeight: 'inherit',\n cursor: 'pointer',\n [`> ${iconCls}`]: {\n verticalAlign: '-0.2em'\n },\n '&:hover': {\n color: token.colorIconHover\n }\n })\n },\n // ========================== Input ==========================\n [`${selectOverflowPrefixCls}-item + ${selectOverflowPrefixCls}-item`]: {\n [`${componentCls}-selection-search`]: {\n marginInlineStart: 0\n }\n },\n [`${componentCls}-selection-search`]: {\n display: 'inline-flex',\n position: 'relative',\n maxWidth: '100%',\n marginInlineStart: token.inputPaddingHorizontalBase - selectItemDist,\n [`\n &-input,\n &-mirror\n `]: {\n height: selectItemHeight,\n fontFamily: token.fontFamily,\n lineHeight: `${selectItemHeight}px`,\n transition: `all ${token.motionDurationSlow}`\n },\n '&-input': {\n width: '100%',\n minWidth: 4.1 // fix search cursor missing\n },\n\n '&-mirror': {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n insetInlineEnd: 'auto',\n zIndex: 999,\n whiteSpace: 'pre',\n visibility: 'hidden'\n }\n },\n // ======================= Placeholder =======================\n [`${componentCls}-selection-placeholder `]: {\n position: 'absolute',\n top: '50%',\n insetInlineStart: token.inputPaddingHorizontalBase,\n insetInlineEnd: token.inputPaddingHorizontalBase,\n transform: 'translateY(-50%)',\n transition: `all ${token.motionDurationSlow}`\n }\n }\n };\n}\nconst genMultipleStyle = token => {\n const {\n componentCls\n } = token;\n const smallToken = mergeToken(token, {\n controlHeight: token.controlHeightSM,\n controlHeightSM: token.controlHeightXS,\n borderRadius: token.borderRadiusSM,\n borderRadiusSM: token.borderRadiusXS\n });\n const largeToken = mergeToken(token, {\n fontSize: token.fontSizeLG,\n controlHeight: token.controlHeightLG,\n controlHeightSM: token.controlHeight,\n borderRadius: token.borderRadiusLG,\n borderRadiusSM: token.borderRadius\n });\n const [, smSelectItemMargin] = getSelectItemStyle(token);\n return [genSizeStyle(token),\n // ======================== Small ========================\n genSizeStyle(smallToken, 'sm'),\n // Padding\n {\n [`${componentCls}-multiple${componentCls}-sm`]: {\n [`${componentCls}-selection-placeholder`]: {\n insetInline: token.controlPaddingHorizontalSM - token.lineWidth\n },\n // https://github.com/ant-design/ant-design/issues/29559\n [`${componentCls}-selection-search`]: {\n marginInlineStart: smSelectItemMargin\n }\n }\n },\n // ======================== Large ========================\n genSizeStyle(largeToken, 'lg')];\n};\nexport default genMultipleStyle;","import { resetComponent } from '../../style';\nimport { mergeToken } from '../../theme/internal';\nfunction genSizeStyle(token, suffix) {\n const {\n componentCls,\n inputPaddingHorizontalBase,\n borderRadius\n } = token;\n const selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;\n const selectionItemPadding = Math.ceil(token.fontSize * 1.25);\n const suffixCls = suffix ? `${componentCls}-${suffix}` : '';\n return {\n [`${componentCls}-single${suffixCls}`]: {\n fontSize: token.fontSize,\n // ========================= Selector =========================\n [`${componentCls}-selector`]: Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'flex',\n borderRadius,\n [`${componentCls}-selection-search`]: {\n position: 'absolute',\n top: 0,\n insetInlineStart: inputPaddingHorizontalBase,\n insetInlineEnd: inputPaddingHorizontalBase,\n bottom: 0,\n '&-input': {\n width: '100%'\n }\n },\n [`\n ${componentCls}-selection-item,\n ${componentCls}-selection-placeholder\n `]: {\n padding: 0,\n lineHeight: `${selectHeightWithoutBorder}px`,\n transition: `all ${token.motionDurationSlow}, visibility 0s`,\n // Firefox inline-block position calculation is not same as Chrome & Safari. Patch this:\n '@supports (-moz-appearance: meterbar)': {\n lineHeight: `${selectHeightWithoutBorder}px`\n }\n },\n [`${componentCls}-selection-item`]: {\n position: 'relative',\n userSelect: 'none'\n },\n [`${componentCls}-selection-placeholder`]: {\n transition: 'none',\n pointerEvents: 'none'\n },\n // For common baseline align\n [['&:after', /* For '' value baseline align */\n `${componentCls}-selection-item:after`, /* For undefined value baseline align */\n `${componentCls}-selection-placeholder:after`].join(',')]: {\n display: 'inline-block',\n width: 0,\n visibility: 'hidden',\n content: '\"\\\\a0\"'\n }\n }),\n [`\n &${componentCls}-show-arrow ${componentCls}-selection-item,\n &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n `]: {\n paddingInlineEnd: selectionItemPadding\n },\n // Opacity selection if open\n [`&${componentCls}-open ${componentCls}-selection-item`]: {\n color: token.colorTextPlaceholder\n },\n // ========================== Input ==========================\n // We only change the style of non-customize input which is only support by `combobox` mode.\n // Not customize\n [`&:not(${componentCls}-customize-input)`]: {\n [`${componentCls}-selector`]: {\n width: '100%',\n height: token.controlHeight,\n padding: `0 ${inputPaddingHorizontalBase}px`,\n [`${componentCls}-selection-search-input`]: {\n height: selectHeightWithoutBorder\n },\n '&:after': {\n lineHeight: `${selectHeightWithoutBorder}px`\n }\n }\n },\n [`&${componentCls}-customize-input`]: {\n [`${componentCls}-selector`]: {\n '&:after': {\n display: 'none'\n },\n [`${componentCls}-selection-search`]: {\n position: 'static',\n width: '100%'\n },\n [`${componentCls}-selection-placeholder`]: {\n position: 'absolute',\n insetInlineStart: 0,\n insetInlineEnd: 0,\n padding: `0 ${inputPaddingHorizontalBase}px`,\n '&:after': {\n display: 'none'\n }\n }\n }\n }\n }\n };\n}\nexport default function genSingleStyle(token) {\n const {\n componentCls\n } = token;\n const inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;\n return [genSizeStyle(token),\n // ======================== Small ========================\n // Shared\n genSizeStyle(mergeToken(token, {\n controlHeight: token.controlHeightSM,\n borderRadius: token.borderRadiusSM\n }), 'sm'),\n // padding\n {\n [`${componentCls}-single${componentCls}-sm`]: {\n [`&:not(${componentCls}-customize-input)`]: {\n [`${componentCls}-selection-search`]: {\n insetInlineStart: inputPaddingHorizontalSM,\n insetInlineEnd: inputPaddingHorizontalSM\n },\n [`${componentCls}-selector`]: {\n padding: `0 ${inputPaddingHorizontalSM}px`\n },\n // With arrow should provides `padding-right` to show the arrow\n [`&${componentCls}-show-arrow ${componentCls}-selection-search`]: {\n insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5\n },\n [`\n &${componentCls}-show-arrow ${componentCls}-selection-item,\n &${componentCls}-show-arrow ${componentCls}-selection-placeholder\n `]: {\n paddingInlineEnd: token.fontSize * 1.5\n }\n }\n }\n },\n // ======================== Large ========================\n // Shared\n genSizeStyle(mergeToken(token, {\n controlHeight: token.controlHeightLG,\n fontSize: token.fontSizeLG,\n borderRadius: token.borderRadiusLG\n }), 'lg')];\n}","import { resetComponent, resetIcon, textEllipsis } from '../../style';\nimport { genCompactItemStyle } from '../../style/compact-item';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genDropdownStyle from './dropdown';\nimport genMultipleStyle from './multiple';\nimport genSingleStyle from './single';\n// ============================= Selector =============================\nconst genSelectorStyle = token => {\n const {\n componentCls\n } = token;\n return {\n position: 'relative',\n backgroundColor: token.colorBgContainer,\n border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,\n transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,\n input: {\n cursor: 'pointer'\n },\n [`${componentCls}-show-search&`]: {\n cursor: 'text',\n input: {\n cursor: 'auto',\n color: 'inherit'\n }\n },\n [`${componentCls}-disabled&`]: {\n color: token.colorTextDisabled,\n background: token.colorBgContainerDisabled,\n cursor: 'not-allowed',\n [`${componentCls}-multiple&`]: {\n background: token.colorBgContainerDisabled\n },\n input: {\n cursor: 'not-allowed'\n }\n }\n };\n};\n// ============================== Status ==============================\nconst genStatusStyle = function (rootSelectCls, token) {\n let overwriteDefaultBorder = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n const {\n componentCls,\n borderHoverColor,\n outlineColor,\n antCls\n } = token;\n const overwriteStyle = overwriteDefaultBorder ? {\n [`${componentCls}-selector`]: {\n borderColor: borderHoverColor\n }\n } : {};\n return {\n [rootSelectCls]: {\n [`&:not(${componentCls}-disabled):not(${componentCls}-customize-input):not(${antCls}-pagination-size-changer)`]: Object.assign(Object.assign({}, overwriteStyle), {\n [`${componentCls}-focused& ${componentCls}-selector`]: {\n borderColor: borderHoverColor,\n boxShadow: `0 0 0 ${token.controlOutlineWidth}px ${outlineColor}`,\n outline: 0\n },\n [`&:hover ${componentCls}-selector`]: {\n borderColor: borderHoverColor\n }\n })\n }\n };\n};\n// ============================== Styles ==============================\n// /* Reset search input style */\nconst getSearchInputWithoutBorderStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-selection-search-input`]: {\n margin: 0,\n padding: 0,\n background: 'transparent',\n border: 'none',\n outline: 'none',\n appearance: 'none',\n '&::-webkit-search-cancel-button': {\n display: 'none',\n '-webkit-appearance': 'none'\n }\n }\n };\n};\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n inputPaddingHorizontalBase,\n iconCls\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n display: 'inline-block',\n cursor: 'pointer',\n [`&:not(${componentCls}-customize-input) ${componentCls}-selector`]: Object.assign(Object.assign({}, genSelectorStyle(token)), getSearchInputWithoutBorderStyle(token)),\n // [`&:not(&-disabled):hover ${selectCls}-selector`]: {\n // ...genHoverStyle(token),\n // },\n // ======================== Selection ========================\n [`${componentCls}-selection-item`]: Object.assign({\n flex: 1,\n fontWeight: 'normal'\n }, textEllipsis),\n // ======================= Placeholder =======================\n [`${componentCls}-selection-placeholder`]: Object.assign(Object.assign({}, textEllipsis), {\n flex: 1,\n color: token.colorTextPlaceholder,\n pointerEvents: 'none'\n }),\n // ========================== Arrow ==========================\n [`${componentCls}-arrow`]: Object.assign(Object.assign({}, resetIcon()), {\n position: 'absolute',\n top: '50%',\n insetInlineStart: 'auto',\n insetInlineEnd: inputPaddingHorizontalBase,\n height: token.fontSizeIcon,\n marginTop: -token.fontSizeIcon / 2,\n color: token.colorTextQuaternary,\n fontSize: token.fontSizeIcon,\n lineHeight: 1,\n textAlign: 'center',\n pointerEvents: 'none',\n display: 'flex',\n alignItems: 'center',\n [iconCls]: {\n verticalAlign: 'top',\n transition: `transform ${token.motionDurationSlow}`,\n '> svg': {\n verticalAlign: 'top'\n },\n [`&:not(${componentCls}-suffix)`]: {\n pointerEvents: 'auto'\n }\n },\n [`${componentCls}-disabled &`]: {\n cursor: 'not-allowed'\n },\n '> *:not(:last-child)': {\n marginInlineEnd: 8 // FIXME: magic\n }\n }),\n\n // ========================== Clear ==========================\n [`${componentCls}-clear`]: {\n position: 'absolute',\n top: '50%',\n insetInlineStart: 'auto',\n insetInlineEnd: inputPaddingHorizontalBase,\n zIndex: 1,\n display: 'inline-block',\n width: token.fontSizeIcon,\n height: token.fontSizeIcon,\n marginTop: -token.fontSizeIcon / 2,\n color: token.colorTextQuaternary,\n fontSize: token.fontSizeIcon,\n fontStyle: 'normal',\n lineHeight: 1,\n textAlign: 'center',\n textTransform: 'none',\n background: token.colorBgContainer,\n cursor: 'pointer',\n opacity: 0,\n transition: `color ${token.motionDurationMid} ease, opacity ${token.motionDurationSlow} ease`,\n textRendering: 'auto',\n '&:before': {\n display: 'block'\n },\n '&:hover': {\n color: token.colorTextTertiary\n }\n },\n '&:hover': {\n [`${componentCls}-clear`]: {\n opacity: 1\n }\n }\n }),\n // ========================= Feedback ==========================\n [`${componentCls}-has-feedback`]: {\n [`${componentCls}-clear`]: {\n insetInlineEnd: inputPaddingHorizontalBase + token.fontSize + token.paddingXS\n }\n }\n };\n};\n// ============================== Styles ==============================\nconst genSelectStyle = token => {\n const {\n componentCls\n } = token;\n return [{\n [componentCls]: {\n // ==================== BorderLess ====================\n [`&-borderless ${componentCls}-selector`]: {\n backgroundColor: `transparent !important`,\n borderColor: `transparent !important`,\n boxShadow: `none !important`\n },\n // ==================== In Form ====================\n [`&${componentCls}-in-form-item`]: {\n width: '100%'\n }\n }\n },\n // =====================================================\n // == LTR ==\n // =====================================================\n // Base\n genBaseStyle(token),\n // Single\n genSingleStyle(token),\n // Multiple\n genMultipleStyle(token),\n // Dropdown\n genDropdownStyle(token),\n // =====================================================\n // == RTL ==\n // =====================================================\n {\n [`${componentCls}-rtl`]: {\n direction: 'rtl'\n }\n },\n // =====================================================\n // == Status ==\n // =====================================================\n genStatusStyle(componentCls, mergeToken(token, {\n borderHoverColor: token.colorPrimaryHover,\n outlineColor: token.controlOutline\n })), genStatusStyle(`${componentCls}-status-error`, mergeToken(token, {\n borderHoverColor: token.colorErrorHover,\n outlineColor: token.colorErrorOutline\n }), true), genStatusStyle(`${componentCls}-status-warning`, mergeToken(token, {\n borderHoverColor: token.colorWarningHover,\n outlineColor: token.colorWarningOutline\n }), true),\n // =====================================================\n // == Space Compact ==\n // =====================================================\n genCompactItemStyle(token, {\n borderElCls: `${componentCls}-selector`,\n focusElCls: `${componentCls}-focused`\n })];\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Select', (token, _ref) => {\n let {\n rootPrefixCls\n } = _ref;\n const selectToken = mergeToken(token, {\n rootPrefixCls,\n inputPaddingHorizontalBase: token.paddingSM - 1\n });\n return [genSelectStyle(selectToken)];\n}, token => ({\n zIndexPopup: token.zIndexPopupBase + 50\n}));","const getBuiltInPlacements = popupOverflow => {\n const htmlRegion = popupOverflow === 'scroll' ? 'scroll' : 'visible';\n const sharedConfig = {\n overflow: {\n adjustX: true,\n adjustY: true,\n shiftY: true\n },\n htmlRegion,\n _experimental: {\n dynamicInset: true\n }\n };\n return {\n bottomLeft: Object.assign(Object.assign({}, sharedConfig), {\n points: ['tl', 'bl'],\n offset: [0, 4]\n }),\n bottomRight: Object.assign(Object.assign({}, sharedConfig), {\n points: ['tr', 'br'],\n offset: [0, 4]\n }),\n topLeft: Object.assign(Object.assign({}, sharedConfig), {\n points: ['bl', 'tl'],\n offset: [0, -4]\n }),\n topRight: Object.assign(Object.assign({}, sharedConfig), {\n points: ['br', 'tr'],\n offset: [0, -4]\n })\n };\n};\nexport default function useBuiltinPlacements(buildInPlacements, popupOverflow) {\n return buildInPlacements || getBuiltInPlacements(popupOverflow);\n}","/**\n * Since Select, TreeSelect, Cascader is same Select like component.\n * We just use same hook to handle this logic.\n *\n * If `suffixIcon` is not equal to `null`, always show it.\n */\nexport default function useShowArrow(suffixIcon, showArrow) {\n return showArrow !== undefined ? showArrow : suffixIcon !== null;\n}","import CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport DownOutlined from \"@ant-design/icons/es/icons/DownOutlined\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport SearchOutlined from \"@ant-design/icons/es/icons/SearchOutlined\";\nimport * as React from 'react';\nimport warning from '../../_util/warning';\nexport default function getIcons(_ref) {\n let {\n suffixIcon,\n clearIcon,\n menuItemSelectedIcon,\n removeIcon,\n loading,\n multiple,\n hasFeedback,\n prefixCls,\n showSuffixIcon,\n feedbackIcon,\n showArrow,\n componentName\n } = _ref;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!clearIcon, componentName, '`clearIcon` is deprecated, please use `allowClear={{ clearIcon: React.ReactNode }}` instead.') : void 0;\n }\n // Clear Icon\n const mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : /*#__PURE__*/React.createElement(CloseCircleFilled, null);\n // Validation Feedback Icon\n const getSuffixIconNode = arrowIcon => {\n if (suffixIcon === null && !hasFeedback && !showArrow) {\n return null;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, showSuffixIcon !== false && arrowIcon, hasFeedback && feedbackIcon);\n };\n // Arrow item icon\n let mergedSuffixIcon = null;\n if (suffixIcon !== undefined) {\n mergedSuffixIcon = getSuffixIconNode(suffixIcon);\n } else if (loading) {\n mergedSuffixIcon = getSuffixIconNode( /*#__PURE__*/React.createElement(LoadingOutlined, {\n spin: true\n }));\n } else {\n const iconCls = `${prefixCls}-suffix`;\n mergedSuffixIcon = _ref2 => {\n let {\n open,\n showSearch\n } = _ref2;\n if (open && showSearch) {\n return getSuffixIconNode( /*#__PURE__*/React.createElement(SearchOutlined, {\n className: iconCls\n }));\n }\n return getSuffixIconNode( /*#__PURE__*/React.createElement(DownOutlined, {\n className: iconCls\n }));\n };\n }\n // Checked item icon\n let mergedItemIcon = null;\n if (menuItemSelectedIcon !== undefined) {\n mergedItemIcon = menuItemSelectedIcon;\n } else if (multiple) {\n mergedItemIcon = /*#__PURE__*/React.createElement(CheckOutlined, null);\n } else {\n mergedItemIcon = null;\n }\n let mergedRemoveIcon = null;\n if (removeIcon !== undefined) {\n mergedRemoveIcon = removeIcon;\n } else {\n mergedRemoveIcon = /*#__PURE__*/React.createElement(CloseOutlined, null);\n }\n return {\n clearIcon: mergedClearIcon,\n suffixIcon: mergedSuffixIcon,\n itemIcon: mergedItemIcon,\n removeIcon: mergedRemoveIcon\n };\n}","import classNames from 'classnames';\nimport * as React from 'react';\nconst Element = props => {\n const {\n prefixCls,\n className,\n style,\n size,\n shape\n } = props;\n const sizeCls = classNames({\n [`${prefixCls}-lg`]: size === 'large',\n [`${prefixCls}-sm`]: size === 'small'\n });\n const shapeCls = classNames({\n [`${prefixCls}-circle`]: shape === 'circle',\n [`${prefixCls}-square`]: shape === 'square',\n [`${prefixCls}-round`]: shape === 'round'\n });\n const sizeStyle = React.useMemo(() => typeof size === 'number' ? {\n width: size,\n height: size,\n lineHeight: `${size}px`\n } : {}, [size]);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(prefixCls, sizeCls, shapeCls, className),\n style: Object.assign(Object.assign({}, sizeStyle), style)\n });\n};\nexport default Element;","import { Keyframes } from '@ant-design/cssinjs';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst skeletonClsLoading = new Keyframes(`ant-skeleton-loading`, {\n '0%': {\n backgroundPosition: '100% 50%'\n },\n '100%': {\n backgroundPosition: '0 50%'\n }\n});\nconst genSkeletonElementCommonSize = size => ({\n height: size,\n lineHeight: `${size}px`\n});\nconst genSkeletonElementAvatarSize = size => Object.assign({\n width: size\n}, genSkeletonElementCommonSize(size));\nconst genSkeletonColor = token => ({\n background: token.skeletonLoadingBackground,\n backgroundSize: '400% 100%',\n animationName: skeletonClsLoading,\n animationDuration: token.skeletonLoadingMotionDuration,\n animationTimingFunction: 'ease',\n animationIterationCount: 'infinite'\n});\nconst genSkeletonElementInputSize = size => Object.assign({\n width: size * 5,\n minWidth: size * 5\n}, genSkeletonElementCommonSize(size));\nconst genSkeletonElementAvatar = token => {\n const {\n skeletonAvatarCls,\n gradientFromColor,\n controlHeight,\n controlHeightLG,\n controlHeightSM\n } = token;\n return {\n [`${skeletonAvatarCls}`]: Object.assign({\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor\n }, genSkeletonElementAvatarSize(controlHeight)),\n [`${skeletonAvatarCls}${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}${skeletonAvatarCls}-lg`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightLG)),\n [`${skeletonAvatarCls}${skeletonAvatarCls}-sm`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightSM))\n };\n};\nconst genSkeletonElementInput = token => {\n const {\n controlHeight,\n borderRadiusSM,\n skeletonInputCls,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor\n } = token;\n return {\n [`${skeletonInputCls}`]: Object.assign({\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM\n }, genSkeletonElementInputSize(controlHeight)),\n [`${skeletonInputCls}-lg`]: Object.assign({}, genSkeletonElementInputSize(controlHeightLG)),\n [`${skeletonInputCls}-sm`]: Object.assign({}, genSkeletonElementInputSize(controlHeightSM))\n };\n};\nconst genSkeletonElementImageSize = size => Object.assign({\n width: size\n}, genSkeletonElementCommonSize(size));\nconst genSkeletonElementImage = token => {\n const {\n skeletonImageCls,\n imageSizeBase,\n gradientFromColor,\n borderRadiusSM\n } = token;\n return {\n [`${skeletonImageCls}`]: Object.assign(Object.assign({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM\n }, genSkeletonElementImageSize(imageSizeBase * 2)), {\n [`${skeletonImageCls}-path`]: {\n fill: '#bfbfbf'\n },\n [`${skeletonImageCls}-svg`]: Object.assign(Object.assign({}, genSkeletonElementImageSize(imageSizeBase)), {\n maxWidth: imageSizeBase * 4,\n maxHeight: imageSizeBase * 4\n }),\n [`${skeletonImageCls}-svg${skeletonImageCls}-svg-circle`]: {\n borderRadius: '50%'\n }\n }),\n [`${skeletonImageCls}${skeletonImageCls}-circle`]: {\n borderRadius: '50%'\n }\n };\n};\nconst genSkeletonElementButtonShape = (token, size, buttonCls) => {\n const {\n skeletonButtonCls\n } = token;\n return {\n [`${buttonCls}${skeletonButtonCls}-circle`]: {\n width: size,\n minWidth: size,\n borderRadius: '50%'\n },\n [`${buttonCls}${skeletonButtonCls}-round`]: {\n borderRadius: size\n }\n };\n};\nconst genSkeletonElementButtonSize = size => Object.assign({\n width: size * 2,\n minWidth: size * 2\n}, genSkeletonElementCommonSize(size));\nconst genSkeletonElementButton = token => {\n const {\n borderRadiusSM,\n skeletonButtonCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor\n } = token;\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({\n [`${skeletonButtonCls}`]: Object.assign({\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor,\n borderRadius: borderRadiusSM,\n width: controlHeight * 2,\n minWidth: controlHeight * 2\n }, genSkeletonElementButtonSize(controlHeight))\n }, genSkeletonElementButtonShape(token, controlHeight, skeletonButtonCls)), {\n [`${skeletonButtonCls}-lg`]: Object.assign({}, genSkeletonElementButtonSize(controlHeightLG))\n }), genSkeletonElementButtonShape(token, controlHeightLG, `${skeletonButtonCls}-lg`)), {\n [`${skeletonButtonCls}-sm`]: Object.assign({}, genSkeletonElementButtonSize(controlHeightSM))\n }), genSkeletonElementButtonShape(token, controlHeightSM, `${skeletonButtonCls}-sm`));\n};\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n skeletonAvatarCls,\n skeletonTitleCls,\n skeletonParagraphCls,\n skeletonButtonCls,\n skeletonInputCls,\n skeletonImageCls,\n controlHeight,\n controlHeightLG,\n controlHeightSM,\n gradientFromColor,\n padding,\n marginSM,\n borderRadius,\n titleHeight,\n blockRadius,\n paragraphLiHeight,\n controlHeightXS,\n paragraphMarginTop\n } = token;\n return {\n [`${componentCls}`]: {\n display: 'table',\n width: '100%',\n [`${componentCls}-header`]: {\n display: 'table-cell',\n paddingInlineEnd: padding,\n verticalAlign: 'top',\n // Avatar\n [`${skeletonAvatarCls}`]: Object.assign({\n display: 'inline-block',\n verticalAlign: 'top',\n background: gradientFromColor\n }, genSkeletonElementAvatarSize(controlHeight)),\n [`${skeletonAvatarCls}-circle`]: {\n borderRadius: '50%'\n },\n [`${skeletonAvatarCls}-lg`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightLG)),\n [`${skeletonAvatarCls}-sm`]: Object.assign({}, genSkeletonElementAvatarSize(controlHeightSM))\n },\n [`${componentCls}-content`]: {\n display: 'table-cell',\n width: '100%',\n verticalAlign: 'top',\n // Title\n [`${skeletonTitleCls}`]: {\n width: '100%',\n height: titleHeight,\n background: gradientFromColor,\n borderRadius: blockRadius,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: controlHeightSM\n }\n },\n // paragraph\n [`${skeletonParagraphCls}`]: {\n padding: 0,\n '> li': {\n width: '100%',\n height: paragraphLiHeight,\n listStyle: 'none',\n background: gradientFromColor,\n borderRadius: blockRadius,\n '+ li': {\n marginBlockStart: controlHeightXS\n }\n }\n },\n [`${skeletonParagraphCls}> li:last-child:not(:first-child):not(:nth-child(2))`]: {\n width: '61%'\n }\n },\n [`&-round ${componentCls}-content`]: {\n [`${skeletonTitleCls}, ${skeletonParagraphCls} > li`]: {\n borderRadius\n }\n }\n },\n [`${componentCls}-with-avatar ${componentCls}-content`]: {\n // Title\n [`${skeletonTitleCls}`]: {\n marginBlockStart: marginSM,\n [`+ ${skeletonParagraphCls}`]: {\n marginBlockStart: paragraphMarginTop\n }\n }\n },\n // Skeleton element\n [`${componentCls}${componentCls}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({\n display: 'inline-block',\n width: 'auto'\n }, genSkeletonElementButton(token)), genSkeletonElementAvatar(token)), genSkeletonElementInput(token)), genSkeletonElementImage(token)),\n // Skeleton Block Button, Input\n [`${componentCls}${componentCls}-block`]: {\n width: '100%',\n [`${skeletonButtonCls}`]: {\n width: '100%'\n },\n [`${skeletonInputCls}`]: {\n width: '100%'\n }\n },\n // With active animation\n [`${componentCls}${componentCls}-active`]: {\n [`\n ${skeletonTitleCls},\n ${skeletonParagraphCls} > li,\n ${skeletonAvatarCls},\n ${skeletonButtonCls},\n ${skeletonInputCls},\n ${skeletonImageCls}\n `]: Object.assign({}, genSkeletonColor(token))\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Skeleton', token => {\n const {\n componentCls\n } = token;\n const skeletonToken = mergeToken(token, {\n skeletonAvatarCls: `${componentCls}-avatar`,\n skeletonTitleCls: `${componentCls}-title`,\n skeletonParagraphCls: `${componentCls}-paragraph`,\n skeletonButtonCls: `${componentCls}-button`,\n skeletonInputCls: `${componentCls}-input`,\n skeletonImageCls: `${componentCls}-image`,\n imageSizeBase: token.controlHeight * 1.5,\n borderRadius: 100,\n skeletonLoadingBackground: `linear-gradient(90deg, ${token.gradientFromColor} 25%, ${token.gradientToColor} 37%, ${token.gradientFromColor} 63%)`,\n skeletonLoadingMotionDuration: '1.4s'\n });\n return [genBaseStyle(skeletonToken)];\n}, token => {\n const {\n colorFillContent,\n colorFill\n } = token;\n const gradientFromColor = colorFillContent;\n const gradientToColor = colorFill;\n return {\n color: gradientFromColor,\n colorGradientEnd: gradientToColor,\n gradientFromColor,\n gradientToColor,\n titleHeight: token.controlHeight / 2,\n blockRadius: token.borderRadiusSM,\n paragraphMarginTop: token.marginLG + token.marginXXS,\n paragraphLiHeight: token.controlHeight / 2\n };\n}, {\n deprecatedTokens: [['color', 'gradientFromColor'], ['colorGradientEnd', 'gradientToColor']]\n});","import classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonAvatar = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n active,\n shape = 'circle',\n size = 'default'\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const otherProps = omit(props, ['prefixCls', 'className']);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, Object.assign({\n prefixCls: `${prefixCls}-avatar`,\n shape: shape,\n size: size\n }, otherProps))));\n};\nexport default SkeletonAvatar;","import classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonButton = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n active,\n block = false,\n size = 'default'\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const otherProps = omit(props, ['prefixCls']);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, Object.assign({\n prefixCls: `${prefixCls}-button`,\n size: size\n }, otherProps))));\n};\nexport default SkeletonButton;","import classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst path = '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';\nconst SkeletonImage = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n style,\n active\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(`${prefixCls}-image`, className),\n style: style\n }, /*#__PURE__*/React.createElement(\"svg\", {\n viewBox: \"0 0 1098 1024\",\n xmlns: \"http://www.w3.org/2000/svg\",\n className: `${prefixCls}-image-svg`\n }, /*#__PURE__*/React.createElement(\"path\", {\n d: path,\n className: `${prefixCls}-image-path`\n })))));\n};\nexport default SkeletonImage;","import classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport Element from './Element';\nimport useStyle from './style';\nconst SkeletonInput = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n active,\n block,\n size = 'default'\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const otherProps = omit(props, ['prefixCls']);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-block`]: block\n }, className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(Element, Object.assign({\n prefixCls: `${prefixCls}-input`,\n size: size\n }, otherProps))));\n};\nexport default SkeletonInput;","// This icon file is generated automatically.\nvar DotChartOutlined = { \"icon\": { \"tag\": \"svg\", \"attrs\": { \"viewBox\": \"64 64 896 896\", \"focusable\": \"false\" }, \"children\": [{ \"tag\": \"path\", \"attrs\": { \"d\": \"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z\" } }] }, \"name\": \"dot-chart\", \"theme\": \"outlined\" };\nexport default DotChartOutlined;\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\n// GENERATE BY ./scripts/generate.ts\n// DON NOT EDIT IT MANUALLY\n\nimport * as React from 'react';\nimport DotChartOutlinedSvg from \"@ant-design/icons-svg/es/asn/DotChartOutlined\";\nimport AntdIcon from \"../components/AntdIcon\";\nvar DotChartOutlined = function DotChartOutlined(props, ref) {\n return /*#__PURE__*/React.createElement(AntdIcon, _extends({}, props, {\n ref: ref,\n icon: DotChartOutlinedSvg\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n DotChartOutlined.displayName = 'DotChartOutlined';\n}\nexport default /*#__PURE__*/React.forwardRef(DotChartOutlined);","import DotChartOutlined from \"@ant-design/icons/es/icons/DotChartOutlined\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nconst SkeletonNode = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n style,\n active,\n children\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const cls = classNames(prefixCls, `${prefixCls}-element`, {\n [`${prefixCls}-active`]: active\n }, hashId, className, rootClassName);\n const content = children !== null && children !== void 0 ? children : /*#__PURE__*/React.createElement(DotChartOutlined, null);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(`${prefixCls}-image`, className),\n style: style\n }, content)));\n};\nexport default SkeletonNode;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nconst Paragraph = props => {\n const getWidth = index => {\n const {\n width,\n rows = 2\n } = props;\n if (Array.isArray(width)) {\n return width[index];\n }\n // last paragraph\n if (rows - 1 === index) {\n return width;\n }\n return undefined;\n };\n const {\n prefixCls,\n className,\n style,\n rows\n } = props;\n const rowList = _toConsumableArray(Array(rows)).map((_, index) =>\n /*#__PURE__*/\n // eslint-disable-next-line react/no-array-index-key\n React.createElement(\"li\", {\n key: index,\n style: {\n width: getWidth(index)\n }\n }));\n return /*#__PURE__*/React.createElement(\"ul\", {\n className: classNames(prefixCls, className),\n style: style\n }, rowList);\n};\nexport default Paragraph;","/* eslint-disable jsx-a11y/heading-has-content */\nimport classNames from 'classnames';\nimport * as React from 'react';\nconst Title = _ref => {\n let {\n prefixCls,\n className,\n width,\n style\n } = _ref;\n return /*#__PURE__*/React.createElement(\"h3\", {\n className: classNames(prefixCls, className),\n style: Object.assign({\n width\n }, style)\n });\n};\nexport default Title;","import classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport SkeletonAvatar from './Avatar';\nimport SkeletonButton from './Button';\nimport Element from './Element';\nimport SkeletonImage from './Image';\nimport SkeletonInput from './Input';\nimport SkeletonNode from './Node';\nimport Paragraph from './Paragraph';\nimport Title from './Title';\nimport useStyle from './style';\nfunction getComponentProps(prop) {\n if (prop && typeof prop === 'object') {\n return prop;\n }\n return {};\n}\nfunction getAvatarBasicProps(hasTitle, hasParagraph) {\n if (hasTitle && !hasParagraph) {\n // Square avatar\n return {\n size: 'large',\n shape: 'square'\n };\n }\n return {\n size: 'large',\n shape: 'circle'\n };\n}\nfunction getTitleBasicProps(hasAvatar, hasParagraph) {\n if (!hasAvatar && hasParagraph) {\n return {\n width: '38%'\n };\n }\n if (hasAvatar && hasParagraph) {\n return {\n width: '50%'\n };\n }\n return {};\n}\nfunction getParagraphBasicProps(hasAvatar, hasTitle) {\n const basicProps = {};\n // Width\n if (!hasAvatar || !hasTitle) {\n basicProps.width = '61%';\n }\n // Rows\n if (!hasAvatar && hasTitle) {\n basicProps.rows = 3;\n } else {\n basicProps.rows = 2;\n }\n return basicProps;\n}\nconst Skeleton = props => {\n const {\n prefixCls: customizePrefixCls,\n loading,\n className,\n rootClassName,\n style,\n children,\n avatar = false,\n title = true,\n paragraph = true,\n active,\n round\n } = props;\n const {\n getPrefixCls,\n direction,\n skeleton\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('skeleton', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n if (loading || !('loading' in props)) {\n const hasAvatar = !!avatar;\n const hasTitle = !!title;\n const hasParagraph = !!paragraph;\n // Avatar\n let avatarNode;\n if (hasAvatar) {\n const avatarProps = Object.assign(Object.assign({\n prefixCls: `${prefixCls}-avatar`\n }, getAvatarBasicProps(hasTitle, hasParagraph)), getComponentProps(avatar));\n // We direct use SkeletonElement as avatar in skeleton internal.\n avatarNode = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-header`\n }, /*#__PURE__*/React.createElement(Element, Object.assign({}, avatarProps)));\n }\n let contentNode;\n if (hasTitle || hasParagraph) {\n // Title\n let $title;\n if (hasTitle) {\n const titleProps = Object.assign(Object.assign({\n prefixCls: `${prefixCls}-title`\n }, getTitleBasicProps(hasAvatar, hasParagraph)), getComponentProps(title));\n $title = /*#__PURE__*/React.createElement(Title, Object.assign({}, titleProps));\n }\n // Paragraph\n let paragraphNode;\n if (hasParagraph) {\n const paragraphProps = Object.assign(Object.assign({\n prefixCls: `${prefixCls}-paragraph`\n }, getParagraphBasicProps(hasAvatar, hasTitle)), getComponentProps(paragraph));\n paragraphNode = /*#__PURE__*/React.createElement(Paragraph, Object.assign({}, paragraphProps));\n }\n contentNode = /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-content`\n }, $title, paragraphNode);\n }\n const cls = classNames(prefixCls, {\n [`${prefixCls}-with-avatar`]: hasAvatar,\n [`${prefixCls}-active`]: active,\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-round`]: round\n }, skeleton === null || skeleton === void 0 ? void 0 : skeleton.className, className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: Object.assign(Object.assign({}, skeleton === null || skeleton === void 0 ? void 0 : skeleton.style), style)\n }, avatarNode, contentNode));\n }\n return typeof children !== 'undefined' ? children : null;\n};\nSkeleton.Button = SkeletonButton;\nSkeleton.Avatar = SkeletonAvatar;\nSkeleton.Input = SkeletonInput;\nSkeleton.Image = SkeletonImage;\nSkeleton.Node = SkeletonNode;\nif (process.env.NODE_ENV !== 'production') {\n Skeleton.displayName = 'Skeleton';\n}\nexport default Skeleton;","'use client';\n\nimport Skeleton from './Skeleton';\nexport default Skeleton;","import * as React from 'react';\nvar SliderContext = /*#__PURE__*/React.createContext({\n min: 0,\n max: 0,\n direction: 'ltr',\n step: 1,\n includedStart: 0,\n includedEnd: 0,\n tabIndex: 0,\n keyboard: true\n});\nexport default SliderContext;","export function getOffset(value, min, max) {\n return (value - min) / (max - min);\n}\nexport function getDirectionStyle(direction, value, min, max) {\n var offset = getOffset(value, min, max);\n var positionStyle = {};\n switch (direction) {\n case 'rtl':\n positionStyle.right = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateX(50%)';\n break;\n case 'btt':\n positionStyle.bottom = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateY(50%)';\n break;\n case 'ttb':\n positionStyle.top = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateY(-50%)';\n break;\n default:\n positionStyle.left = \"\".concat(offset * 100, \"%\");\n positionStyle.transform = 'translateX(-50%)';\n break;\n }\n return positionStyle;\n}\n/** Return index value if is list or return value directly */\nexport function getIndex(value, index) {\n return Array.isArray(value) ? value[index] : value;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"value\", \"valueIndex\", \"onStartMove\", \"style\", \"render\", \"dragging\", \"onOffsetChange\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport SliderContext from '../context';\nimport { getDirectionStyle, getIndex } from '../util';\nvar Handle = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _classNames, _getIndex;\n var prefixCls = props.prefixCls,\n value = props.value,\n valueIndex = props.valueIndex,\n onStartMove = props.onStartMove,\n style = props.style,\n render = props.render,\n dragging = props.dragging,\n onOffsetChange = props.onOffsetChange,\n restProps = _objectWithoutProperties(props, _excluded);\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n disabled = _React$useContext.disabled,\n keyboard = _React$useContext.keyboard,\n range = _React$useContext.range,\n tabIndex = _React$useContext.tabIndex,\n ariaLabelForHandle = _React$useContext.ariaLabelForHandle,\n ariaLabelledByForHandle = _React$useContext.ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle = _React$useContext.ariaValueTextFormatterForHandle;\n var handlePrefixCls = \"\".concat(prefixCls, \"-handle\");\n // ============================ Events ============================\n var onInternalStartMove = function onInternalStartMove(e) {\n if (!disabled) {\n onStartMove(e, valueIndex);\n }\n };\n // =========================== Keyboard ===========================\n var onKeyDown = function onKeyDown(e) {\n if (!disabled && keyboard) {\n var offset = null;\n // Change the value\n switch (e.which || e.keyCode) {\n case KeyCode.LEFT:\n offset = direction === 'ltr' || direction === 'btt' ? -1 : 1;\n break;\n case KeyCode.RIGHT:\n offset = direction === 'ltr' || direction === 'btt' ? 1 : -1;\n break;\n // Up is plus\n case KeyCode.UP:\n offset = direction !== 'ttb' ? 1 : -1;\n break;\n // Down is minus\n case KeyCode.DOWN:\n offset = direction !== 'ttb' ? -1 : 1;\n break;\n case KeyCode.HOME:\n offset = 'min';\n break;\n case KeyCode.END:\n offset = 'max';\n break;\n case KeyCode.PAGE_UP:\n offset = 2;\n break;\n case KeyCode.PAGE_DOWN:\n offset = -2;\n break;\n }\n if (offset !== null) {\n e.preventDefault();\n onOffsetChange(offset, valueIndex);\n }\n }\n };\n // ============================ Offset ============================\n var positionStyle = getDirectionStyle(direction, value, min, max);\n // ============================ Render ============================\n var handleNode = /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref,\n className: classNames(handlePrefixCls, (_classNames = {}, _defineProperty(_classNames, \"\".concat(handlePrefixCls, \"-\").concat(valueIndex + 1), range), _defineProperty(_classNames, \"\".concat(handlePrefixCls, \"-dragging\"), dragging), _classNames)),\n style: _objectSpread(_objectSpread({}, positionStyle), style),\n onMouseDown: onInternalStartMove,\n onTouchStart: onInternalStartMove,\n onKeyDown: onKeyDown,\n tabIndex: disabled ? null : getIndex(tabIndex, valueIndex),\n role: \"slider\",\n \"aria-valuemin\": min,\n \"aria-valuemax\": max,\n \"aria-valuenow\": value,\n \"aria-disabled\": disabled,\n \"aria-label\": getIndex(ariaLabelForHandle, valueIndex),\n \"aria-labelledby\": getIndex(ariaLabelledByForHandle, valueIndex),\n \"aria-valuetext\": (_getIndex = getIndex(ariaValueTextFormatterForHandle, valueIndex)) === null || _getIndex === void 0 ? void 0 : _getIndex(value)\n }, restProps));\n // Customize\n if (render) {\n handleNode = render(handleNode, {\n index: valueIndex,\n prefixCls: prefixCls,\n value: value,\n dragging: dragging\n });\n }\n return handleNode;\n});\nif (process.env.NODE_ENV !== 'production') {\n Handle.displayName = 'Handle';\n}\nexport default Handle;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"style\", \"onStartMove\", \"onOffsetChange\", \"values\", \"handleRender\", \"draggingIndex\"];\nimport * as React from 'react';\nimport Handle from './Handle';\nimport { getIndex } from '../util';\nvar Handles = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var prefixCls = props.prefixCls,\n style = props.style,\n onStartMove = props.onStartMove,\n onOffsetChange = props.onOffsetChange,\n values = props.values,\n handleRender = props.handleRender,\n draggingIndex = props.draggingIndex,\n restProps = _objectWithoutProperties(props, _excluded);\n var handlesRef = React.useRef({});\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus(index) {\n var _handlesRef$current$i;\n (_handlesRef$current$i = handlesRef.current[index]) === null || _handlesRef$current$i === void 0 ? void 0 : _handlesRef$current$i.focus();\n }\n };\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, values.map(function (value, index) {\n return /*#__PURE__*/React.createElement(Handle, _extends({\n ref: function ref(node) {\n if (!node) {\n delete handlesRef.current[index];\n } else {\n handlesRef.current[index] = node;\n }\n },\n dragging: draggingIndex === index,\n prefixCls: prefixCls,\n style: getIndex(style, index),\n key: index,\n value: value,\n valueIndex: index,\n onStartMove: onStartMove,\n onOffsetChange: onOffsetChange,\n render: handleRender\n }, restProps));\n }));\n});\nif (process.env.NODE_ENV !== 'production') {\n Handles.displayName = 'Handles';\n}\nexport default Handles;","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nfunction getPosition(e) {\n var obj = 'touches' in e ? e.touches[0] : e;\n return {\n pageX: obj.pageX,\n pageY: obj.pageY\n };\n}\nexport default function useDrag(containerRef, direction, rawValues, min, max, formatValue, triggerChange, finishChange, offsetValues) {\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n draggingValue = _React$useState2[0],\n setDraggingValue = _React$useState2[1];\n var _React$useState3 = React.useState(-1),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n draggingIndex = _React$useState4[0],\n setDraggingIndex = _React$useState4[1];\n var _React$useState5 = React.useState(rawValues),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n cacheValues = _React$useState6[0],\n setCacheValues = _React$useState6[1];\n var _React$useState7 = React.useState(rawValues),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n originValues = _React$useState8[0],\n setOriginValues = _React$useState8[1];\n var mouseMoveEventRef = React.useRef(null);\n var mouseUpEventRef = React.useRef(null);\n React.useEffect(function () {\n if (draggingIndex === -1) {\n setCacheValues(rawValues);\n }\n }, [rawValues, draggingIndex]);\n // Clean up event\n React.useEffect(function () {\n return function () {\n document.removeEventListener('mousemove', mouseMoveEventRef.current);\n document.removeEventListener('mouseup', mouseUpEventRef.current);\n document.removeEventListener('touchmove', mouseMoveEventRef.current);\n document.removeEventListener('touchend', mouseUpEventRef.current);\n };\n }, []);\n var flushValues = function flushValues(nextValues, nextValue) {\n // Perf: Only update state when value changed\n if (cacheValues.some(function (val, i) {\n return val !== nextValues[i];\n })) {\n if (nextValue !== undefined) {\n setDraggingValue(nextValue);\n }\n setCacheValues(nextValues);\n triggerChange(nextValues);\n }\n };\n var updateCacheValue = function updateCacheValue(valueIndex, offsetPercent) {\n // Basic point offset\n if (valueIndex === -1) {\n // >>>> Dragging on the track\n var startValue = originValues[0];\n var endValue = originValues[originValues.length - 1];\n var maxStartOffset = min - startValue;\n var maxEndOffset = max - endValue;\n // Get valid offset\n var offset = offsetPercent * (max - min);\n offset = Math.max(offset, maxStartOffset);\n offset = Math.min(offset, maxEndOffset);\n // Use first value to revert back of valid offset (like steps marks)\n var formatStartValue = formatValue(startValue + offset);\n offset = formatStartValue - startValue;\n var cloneCacheValues = originValues.map(function (val) {\n return val + offset;\n });\n flushValues(cloneCacheValues);\n } else {\n // >>>> Dragging on the handle\n var offsetDist = (max - min) * offsetPercent;\n // Always start with the valueIndex origin value\n var cloneValues = _toConsumableArray(cacheValues);\n cloneValues[valueIndex] = originValues[valueIndex];\n var next = offsetValues(cloneValues, offsetDist, valueIndex, 'dist');\n flushValues(next.values, next.value);\n }\n };\n // Resolve closure\n var updateCacheValueRef = React.useRef(updateCacheValue);\n updateCacheValueRef.current = updateCacheValue;\n var onStartMove = function onStartMove(e, valueIndex) {\n e.stopPropagation();\n var originValue = rawValues[valueIndex];\n setDraggingIndex(valueIndex);\n setDraggingValue(originValue);\n setOriginValues(rawValues);\n var _getPosition = getPosition(e),\n startX = _getPosition.pageX,\n startY = _getPosition.pageY;\n // Moving\n var onMouseMove = function onMouseMove(event) {\n event.preventDefault();\n var _getPosition2 = getPosition(event),\n moveX = _getPosition2.pageX,\n moveY = _getPosition2.pageY;\n var offsetX = moveX - startX;\n var offsetY = moveY - startY;\n var _containerRef$current = containerRef.current.getBoundingClientRect(),\n width = _containerRef$current.width,\n height = _containerRef$current.height;\n var offSetPercent;\n switch (direction) {\n case 'btt':\n offSetPercent = -offsetY / height;\n break;\n case 'ttb':\n offSetPercent = offsetY / height;\n break;\n case 'rtl':\n offSetPercent = -offsetX / width;\n break;\n default:\n offSetPercent = offsetX / width;\n }\n updateCacheValueRef.current(valueIndex, offSetPercent);\n };\n // End\n var onMouseUp = function onMouseUp(event) {\n event.preventDefault();\n document.removeEventListener('mouseup', onMouseUp);\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('touchend', onMouseUp);\n document.removeEventListener('touchmove', onMouseMove);\n mouseMoveEventRef.current = null;\n mouseUpEventRef.current = null;\n setDraggingIndex(-1);\n finishChange();\n };\n document.addEventListener('mouseup', onMouseUp);\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('touchend', onMouseUp);\n document.addEventListener('touchmove', onMouseMove);\n mouseMoveEventRef.current = onMouseMove;\n mouseUpEventRef.current = onMouseUp;\n };\n // Only return cache value when it mapping with rawValues\n var returnValues = React.useMemo(function () {\n var sourceValues = _toConsumableArray(rawValues).sort(function (a, b) {\n return a - b;\n });\n var targetValues = _toConsumableArray(cacheValues).sort(function (a, b) {\n return a - b;\n });\n return sourceValues.every(function (val, index) {\n return val === targetValues[index];\n }) ? cacheValues : rawValues;\n }, [rawValues, cacheValues]);\n return [draggingIndex, draggingValue, returnValues, onStartMove];\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport SliderContext from '../context';\nimport { getOffset } from '../util';\nexport default function Track(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n start = props.start,\n end = props.end,\n index = props.index,\n onStartMove = props.onStartMove;\n var _React$useContext = React.useContext(SliderContext),\n direction = _React$useContext.direction,\n min = _React$useContext.min,\n max = _React$useContext.max,\n disabled = _React$useContext.disabled,\n range = _React$useContext.range;\n var trackPrefixCls = \"\".concat(prefixCls, \"-track\");\n var offsetStart = getOffset(start, min, max);\n var offsetEnd = getOffset(end, min, max);\n // ============================ Events ============================\n var onInternalStartMove = function onInternalStartMove(e) {\n if (!disabled && onStartMove) {\n onStartMove(e, -1);\n }\n };\n // ============================ Render ============================\n var positionStyle = {};\n switch (direction) {\n case 'rtl':\n positionStyle.right = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.width = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n case 'btt':\n positionStyle.bottom = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.height = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n case 'ttb':\n positionStyle.top = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.height = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n break;\n default:\n positionStyle.left = \"\".concat(offsetStart * 100, \"%\");\n positionStyle.width = \"\".concat(offsetEnd * 100 - offsetStart * 100, \"%\");\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(trackPrefixCls, range && \"\".concat(trackPrefixCls, \"-\").concat(index + 1)),\n style: _objectSpread(_objectSpread({}, positionStyle), style),\n onMouseDown: onInternalStartMove,\n onTouchStart: onInternalStartMove\n });\n}","import * as React from 'react';\nimport SliderContext from '../context';\nimport Track from './Track';\nimport { getIndex } from '../util';\nexport default function Tracks(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n values = props.values,\n startPoint = props.startPoint,\n onStartMove = props.onStartMove;\n var _React$useContext = React.useContext(SliderContext),\n included = _React$useContext.included,\n range = _React$useContext.range,\n min = _React$useContext.min;\n var trackList = React.useMemo(function () {\n if (!range) {\n // null value do not have track\n if (values.length === 0) {\n return [];\n }\n var startValue = startPoint !== null && startPoint !== void 0 ? startPoint : min;\n var endValue = values[0];\n return [{\n start: Math.min(startValue, endValue),\n end: Math.max(startValue, endValue)\n }];\n }\n // Multiple\n var list = [];\n for (var i = 0; i < values.length - 1; i += 1) {\n list.push({\n start: values[i],\n end: values[i + 1]\n });\n }\n return list;\n }, [values, range, startPoint, min]);\n return included ? trackList.map(function (_ref, index) {\n var start = _ref.start,\n end = _ref.end;\n return /*#__PURE__*/React.createElement(Track, {\n index: index,\n prefixCls: prefixCls,\n style: getIndex(style, index),\n start: start,\n end: end,\n key: index,\n onStartMove: onStartMove\n });\n }) : null;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from '../util';\nimport SliderContext from '../context';\nexport default function Mark(props) {\n var prefixCls = props.prefixCls,\n style = props.style,\n children = props.children,\n value = props.value,\n _onClick = props.onClick;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n includedStart = _React$useContext.includedStart,\n includedEnd = _React$useContext.includedEnd,\n included = _React$useContext.included;\n var textCls = \"\".concat(prefixCls, \"-text\");\n // ============================ Offset ============================\n var positionStyle = getDirectionStyle(direction, value, min, max);\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(textCls, _defineProperty({}, \"\".concat(textCls, \"-active\"), included && includedStart <= value && value <= includedEnd)),\n style: _objectSpread(_objectSpread({}, positionStyle), style),\n onMouseDown: function onMouseDown(e) {\n e.stopPropagation();\n },\n onClick: function onClick() {\n _onClick(value);\n }\n }, children);\n}","import * as React from 'react';\nimport Mark from './Mark';\nexport default function Marks(props) {\n var prefixCls = props.prefixCls,\n marks = props.marks,\n onClick = props.onClick;\n var markPrefixCls = \"\".concat(prefixCls, \"-mark\");\n // Not render mark if empty\n if (!marks.length) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n className: markPrefixCls\n }, marks.map(function (_ref) {\n var value = _ref.value,\n style = _ref.style,\n label = _ref.label;\n return /*#__PURE__*/React.createElement(Mark, {\n key: value,\n prefixCls: markPrefixCls,\n style: style,\n value: value,\n onClick: onClick\n }, label);\n }));\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport { getDirectionStyle } from '../util';\nimport SliderContext from '../context';\nexport default function Dot(props) {\n var prefixCls = props.prefixCls,\n value = props.value,\n style = props.style,\n activeStyle = props.activeStyle;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n direction = _React$useContext.direction,\n included = _React$useContext.included,\n includedStart = _React$useContext.includedStart,\n includedEnd = _React$useContext.includedEnd;\n var dotClassName = \"\".concat(prefixCls, \"-dot\");\n var active = included && includedStart <= value && value <= includedEnd;\n // ============================ Offset ============================\n var mergedStyle = _objectSpread(_objectSpread({}, getDirectionStyle(direction, value, min, max)), typeof style === 'function' ? style(value) : style);\n if (active) {\n mergedStyle = _objectSpread(_objectSpread({}, mergedStyle), typeof activeStyle === 'function' ? activeStyle(value) : activeStyle);\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(dotClassName, _defineProperty({}, \"\".concat(dotClassName, \"-active\"), active)),\n style: mergedStyle\n });\n}","import * as React from 'react';\nimport SliderContext from '../context';\nimport Dot from './Dot';\nexport default function Steps(props) {\n var prefixCls = props.prefixCls,\n marks = props.marks,\n dots = props.dots,\n style = props.style,\n activeStyle = props.activeStyle;\n var _React$useContext = React.useContext(SliderContext),\n min = _React$useContext.min,\n max = _React$useContext.max,\n step = _React$useContext.step;\n var stepDots = React.useMemo(function () {\n var dotSet = new Set();\n // Add marks\n marks.forEach(function (mark) {\n dotSet.add(mark.value);\n });\n // Fill dots\n if (dots && step !== null) {\n var current = min;\n while (current <= max) {\n dotSet.add(current);\n current += step;\n }\n }\n return Array.from(dotSet);\n }, [min, max, step, dots, marks]);\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-step\")\n }, stepDots.map(function (dotValue) {\n return /*#__PURE__*/React.createElement(Dot, {\n prefixCls: prefixCls,\n key: dotValue,\n value: dotValue,\n style: style,\n activeStyle: activeStyle\n });\n }));\n}","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nexport default function useOffset(min, max, step, markList, allowCross, pushable) {\n var formatRangeValue = React.useCallback(function (val) {\n var formatNextValue = isFinite(val) ? val : min;\n formatNextValue = Math.min(max, val);\n formatNextValue = Math.max(min, formatNextValue);\n return formatNextValue;\n }, [min, max]);\n var formatStepValue = React.useCallback(function (val) {\n if (step !== null) {\n var stepValue = min + Math.round((formatRangeValue(val) - min) / step) * step;\n // Cut number in case to be like 0.30000000000000004\n var getDecimal = function getDecimal(num) {\n return (String(num).split('.')[1] || '').length;\n };\n var maxDecimal = Math.max(getDecimal(step), getDecimal(max), getDecimal(min));\n var fixedValue = Number(stepValue.toFixed(maxDecimal));\n return min <= fixedValue && fixedValue <= max ? fixedValue : null;\n }\n return null;\n }, [step, min, max, formatRangeValue]);\n var formatValue = React.useCallback(function (val) {\n var formatNextValue = formatRangeValue(val);\n // List align values\n var alignValues = markList.map(function (mark) {\n return mark.value;\n });\n if (step !== null) {\n alignValues.push(formatStepValue(val));\n }\n // min & max\n alignValues.push(min, max);\n // Align with marks\n var closeValue = alignValues[0];\n var closeDist = max - min;\n alignValues.forEach(function (alignValue) {\n var dist = Math.abs(formatNextValue - alignValue);\n if (dist <= closeDist) {\n closeValue = alignValue;\n closeDist = dist;\n }\n });\n return closeValue;\n }, [min, max, markList, step, formatRangeValue, formatStepValue]);\n // ========================== Offset ==========================\n // Single Value\n var offsetValue = function offsetValue(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n if (typeof offset === 'number') {\n var nextValue;\n var originValue = values[valueIndex];\n // Only used for `dist` mode\n var targetDistValue = originValue + offset;\n // Compare next step value & mark value which is best match\n var potentialValues = [];\n markList.forEach(function (mark) {\n potentialValues.push(mark.value);\n });\n // Min & Max\n potentialValues.push(min, max);\n // In case origin value is align with mark but not with step\n potentialValues.push(formatStepValue(originValue));\n // Put offset step value also\n var sign = offset > 0 ? 1 : -1;\n if (mode === 'unit') {\n potentialValues.push(formatStepValue(originValue + sign * step));\n } else {\n potentialValues.push(formatStepValue(targetDistValue));\n }\n // Find close one\n potentialValues = potentialValues.filter(function (val) {\n return val !== null;\n })\n // Remove reverse value\n .filter(function (val) {\n return offset < 0 ? val <= originValue : val >= originValue;\n });\n if (mode === 'unit') {\n // `unit` mode can not contain itself\n potentialValues = potentialValues.filter(function (val) {\n return val !== originValue;\n });\n }\n var compareValue = mode === 'unit' ? originValue : targetDistValue;\n nextValue = potentialValues[0];\n var valueDist = Math.abs(nextValue - compareValue);\n potentialValues.forEach(function (potentialValue) {\n var dist = Math.abs(potentialValue - compareValue);\n if (dist < valueDist) {\n nextValue = potentialValue;\n valueDist = dist;\n }\n });\n // Out of range will back to range\n if (nextValue === undefined) {\n return offset < 0 ? min : max;\n }\n // `dist` mode\n if (mode === 'dist') {\n return nextValue;\n }\n // `unit` mode may need another round\n if (Math.abs(offset) > 1) {\n var cloneValues = _toConsumableArray(values);\n cloneValues[valueIndex] = nextValue;\n return offsetValue(cloneValues, offset - sign, valueIndex, mode);\n }\n return nextValue;\n } else if (offset === 'min') {\n return min;\n } else if (offset === 'max') {\n return max;\n }\n };\n /** Same as `offsetValue` but return `changed` mark to tell value changed */\n var offsetChangedValue = function offsetChangedValue(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n var originValue = values[valueIndex];\n var nextValue = offsetValue(values, offset, valueIndex, mode);\n return {\n value: nextValue,\n changed: nextValue !== originValue\n };\n };\n var needPush = function needPush(dist) {\n return pushable === null && dist === 0 || typeof pushable === 'number' && dist < pushable;\n };\n // Values\n var offsetValues = function offsetValues(values, offset, valueIndex) {\n var mode = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'unit';\n var nextValues = values.map(formatValue);\n var originValue = nextValues[valueIndex];\n var nextValue = offsetValue(nextValues, offset, valueIndex, mode);\n nextValues[valueIndex] = nextValue;\n if (allowCross === false) {\n // >>>>> Allow Cross\n var pushNum = pushable || 0;\n // ============ AllowCross ===============\n if (valueIndex > 0 && nextValues[valueIndex - 1] !== originValue) {\n nextValues[valueIndex] = Math.max(nextValues[valueIndex], nextValues[valueIndex - 1] + pushNum);\n }\n if (valueIndex < nextValues.length - 1 && nextValues[valueIndex + 1] !== originValue) {\n nextValues[valueIndex] = Math.min(nextValues[valueIndex], nextValues[valueIndex + 1] - pushNum);\n }\n } else if (typeof pushable === 'number' || pushable === null) {\n // >>>>> Pushable\n // =============== Push ==================\n // >>>>>> Basic push\n // End values\n for (var i = valueIndex + 1; i < nextValues.length; i += 1) {\n var changed = true;\n while (needPush(nextValues[i] - nextValues[i - 1]) && changed) {\n var _offsetChangedValue = offsetChangedValue(nextValues, 1, i);\n nextValues[i] = _offsetChangedValue.value;\n changed = _offsetChangedValue.changed;\n }\n }\n // Start values\n for (var _i = valueIndex; _i > 0; _i -= 1) {\n var _changed = true;\n while (needPush(nextValues[_i] - nextValues[_i - 1]) && _changed) {\n var _offsetChangedValue2 = offsetChangedValue(nextValues, -1, _i - 1);\n nextValues[_i - 1] = _offsetChangedValue2.value;\n _changed = _offsetChangedValue2.changed;\n }\n }\n // >>>>> Revert back to safe push range\n // End to Start\n for (var _i2 = nextValues.length - 1; _i2 > 0; _i2 -= 1) {\n var _changed2 = true;\n while (needPush(nextValues[_i2] - nextValues[_i2 - 1]) && _changed2) {\n var _offsetChangedValue3 = offsetChangedValue(nextValues, -1, _i2 - 1);\n nextValues[_i2 - 1] = _offsetChangedValue3.value;\n _changed2 = _offsetChangedValue3.changed;\n }\n }\n // Start to End\n for (var _i3 = 0; _i3 < nextValues.length - 1; _i3 += 1) {\n var _changed3 = true;\n while (needPush(nextValues[_i3 + 1] - nextValues[_i3]) && _changed3) {\n var _offsetChangedValue4 = offsetChangedValue(nextValues, 1, _i3 + 1);\n nextValues[_i3 + 1] = _offsetChangedValue4.value;\n _changed3 = _offsetChangedValue4.changed;\n }\n }\n }\n return {\n value: nextValues[valueIndex],\n values: nextValues\n };\n };\n return [formatValue, offsetValues];\n}","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport isEqual from \"rc-util/es/isEqual\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport Handles from './Handles';\nimport useDrag from './hooks/useDrag';\nimport SliderContext from './context';\nimport Tracks from './Tracks';\nimport Marks from './Marks';\nimport Steps from './Steps';\nimport useOffset from './hooks/useOffset';\nimport warning from \"rc-util/es/warning\";\nvar Slider = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _classNames;\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-slider' : _props$prefixCls,\n className = props.className,\n style = props.style,\n _props$disabled = props.disabled,\n disabled = _props$disabled === void 0 ? false : _props$disabled,\n _props$keyboard = props.keyboard,\n keyboard = _props$keyboard === void 0 ? true : _props$keyboard,\n autoFocus = props.autoFocus,\n onFocus = props.onFocus,\n onBlur = props.onBlur,\n _props$min = props.min,\n min = _props$min === void 0 ? 0 : _props$min,\n _props$max = props.max,\n max = _props$max === void 0 ? 100 : _props$max,\n _props$step = props.step,\n step = _props$step === void 0 ? 1 : _props$step,\n value = props.value,\n defaultValue = props.defaultValue,\n range = props.range,\n count = props.count,\n onChange = props.onChange,\n onBeforeChange = props.onBeforeChange,\n onAfterChange = props.onAfterChange,\n _props$allowCross = props.allowCross,\n allowCross = _props$allowCross === void 0 ? true : _props$allowCross,\n _props$pushable = props.pushable,\n pushable = _props$pushable === void 0 ? false : _props$pushable,\n draggableTrack = props.draggableTrack,\n reverse = props.reverse,\n vertical = props.vertical,\n _props$included = props.included,\n included = _props$included === void 0 ? true : _props$included,\n startPoint = props.startPoint,\n trackStyle = props.trackStyle,\n handleStyle = props.handleStyle,\n railStyle = props.railStyle,\n dotStyle = props.dotStyle,\n activeDotStyle = props.activeDotStyle,\n marks = props.marks,\n dots = props.dots,\n handleRender = props.handleRender,\n _props$tabIndex = props.tabIndex,\n tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,\n ariaLabelForHandle = props.ariaLabelForHandle,\n ariaLabelledByForHandle = props.ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle = props.ariaValueTextFormatterForHandle;\n var handlesRef = React.useRef();\n var containerRef = React.useRef();\n var direction = React.useMemo(function () {\n if (vertical) {\n return reverse ? 'ttb' : 'btt';\n }\n return reverse ? 'rtl' : 'ltr';\n }, [reverse, vertical]);\n // ============================ Range =============================\n var mergedMin = React.useMemo(function () {\n return isFinite(min) ? min : 0;\n }, [min]);\n var mergedMax = React.useMemo(function () {\n return isFinite(max) ? max : 100;\n }, [max]);\n // ============================= Step =============================\n var mergedStep = React.useMemo(function () {\n return step !== null && step <= 0 ? 1 : step;\n }, [step]);\n // ============================= Push =============================\n var mergedPush = React.useMemo(function () {\n if (pushable === true) {\n return mergedStep;\n }\n return pushable >= 0 ? pushable : false;\n }, [pushable, mergedStep]);\n // ============================ Marks =============================\n var markList = React.useMemo(function () {\n var keys = Object.keys(marks || {});\n return keys.map(function (key) {\n var mark = marks[key];\n var markObj = {\n value: Number(key)\n };\n if (mark && _typeof(mark) === 'object' && ! /*#__PURE__*/React.isValidElement(mark) && ('label' in mark || 'style' in mark)) {\n markObj.style = mark.style;\n markObj.label = mark.label;\n } else {\n markObj.label = mark;\n }\n return markObj;\n }).filter(function (_ref) {\n var label = _ref.label;\n return label || typeof label === 'number';\n }).sort(function (a, b) {\n return a.value - b.value;\n });\n }, [marks]);\n // ============================ Format ============================\n var _useOffset = useOffset(mergedMin, mergedMax, mergedStep, markList, allowCross, mergedPush),\n _useOffset2 = _slicedToArray(_useOffset, 2),\n formatValue = _useOffset2[0],\n offsetValues = _useOffset2[1];\n // ============================ Values ============================\n var _useMergedState = useMergedState(defaultValue, {\n value: value\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n mergedValue = _useMergedState2[0],\n setValue = _useMergedState2[1];\n var rawValues = React.useMemo(function () {\n var valueList = mergedValue === null || mergedValue === undefined ? [] : Array.isArray(mergedValue) ? mergedValue : [mergedValue];\n var _valueList = _slicedToArray(valueList, 1),\n _valueList$ = _valueList[0],\n val0 = _valueList$ === void 0 ? mergedMin : _valueList$;\n var returnValues = mergedValue === null ? [] : [val0];\n // Format as range\n if (range) {\n returnValues = _toConsumableArray(valueList);\n // When count provided or value is `undefined`, we fill values\n if (count || mergedValue === undefined) {\n var pointCount = count >= 0 ? count + 1 : 2;\n returnValues = returnValues.slice(0, pointCount);\n // Fill with count\n while (returnValues.length < pointCount) {\n var _returnValues;\n returnValues.push((_returnValues = returnValues[returnValues.length - 1]) !== null && _returnValues !== void 0 ? _returnValues : mergedMin);\n }\n }\n returnValues.sort(function (a, b) {\n return a - b;\n });\n }\n // Align in range\n returnValues.forEach(function (val, index) {\n returnValues[index] = formatValue(val);\n });\n return returnValues;\n }, [mergedValue, range, mergedMin, count, formatValue]);\n // =========================== onChange ===========================\n var rawValuesRef = React.useRef(rawValues);\n rawValuesRef.current = rawValues;\n var getTriggerValue = function getTriggerValue(triggerValues) {\n return range ? triggerValues : triggerValues[0];\n };\n var triggerChange = function triggerChange(nextValues) {\n // Order first\n var cloneNextValues = _toConsumableArray(nextValues).sort(function (a, b) {\n return a - b;\n });\n // Trigger event if needed\n if (onChange && !isEqual(cloneNextValues, rawValuesRef.current, true)) {\n onChange(getTriggerValue(cloneNextValues));\n }\n // We set this later since it will re-render component immediately\n setValue(cloneNextValues);\n };\n var changeToCloseValue = function changeToCloseValue(newValue) {\n if (!disabled) {\n var valueIndex = 0;\n var valueDist = mergedMax - mergedMin;\n rawValues.forEach(function (val, index) {\n var dist = Math.abs(newValue - val);\n if (dist <= valueDist) {\n valueDist = dist;\n valueIndex = index;\n }\n });\n // Create new values\n var cloneNextValues = _toConsumableArray(rawValues);\n cloneNextValues[valueIndex] = newValue;\n // Fill value to match default 2\n if (range && !rawValues.length && count === undefined) {\n cloneNextValues.push(newValue);\n }\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(cloneNextValues));\n triggerChange(cloneNextValues);\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(cloneNextValues));\n }\n };\n // ============================ Click =============================\n var onSliderMouseDown = function onSliderMouseDown(e) {\n e.preventDefault();\n var _containerRef$current = containerRef.current.getBoundingClientRect(),\n width = _containerRef$current.width,\n height = _containerRef$current.height,\n left = _containerRef$current.left,\n top = _containerRef$current.top,\n bottom = _containerRef$current.bottom,\n right = _containerRef$current.right;\n var clientX = e.clientX,\n clientY = e.clientY;\n var percent;\n switch (direction) {\n case 'btt':\n percent = (bottom - clientY) / height;\n break;\n case 'ttb':\n percent = (clientY - top) / height;\n break;\n case 'rtl':\n percent = (right - clientX) / width;\n break;\n default:\n percent = (clientX - left) / width;\n }\n var nextValue = mergedMin + percent * (mergedMax - mergedMin);\n changeToCloseValue(formatValue(nextValue));\n };\n // =========================== Keyboard ===========================\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n keyboardValue = _React$useState2[0],\n setKeyboardValue = _React$useState2[1];\n var onHandleOffsetChange = function onHandleOffsetChange(offset, valueIndex) {\n if (!disabled) {\n var next = offsetValues(rawValues, offset, valueIndex);\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(rawValues));\n triggerChange(next.values);\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(next.values));\n setKeyboardValue(next.value);\n }\n };\n React.useEffect(function () {\n if (keyboardValue !== null) {\n var valueIndex = rawValues.indexOf(keyboardValue);\n if (valueIndex >= 0) {\n handlesRef.current.focus(valueIndex);\n }\n }\n setKeyboardValue(null);\n }, [keyboardValue]);\n // ============================= Drag =============================\n var mergedDraggableTrack = React.useMemo(function () {\n if (draggableTrack && mergedStep === null) {\n if (process.env.NODE_ENV !== 'production') {\n warning(false, '`draggableTrack` is not supported when `step` is `null`.');\n }\n return false;\n }\n return draggableTrack;\n }, [draggableTrack, mergedStep]);\n var finishChange = function finishChange() {\n onAfterChange === null || onAfterChange === void 0 ? void 0 : onAfterChange(getTriggerValue(rawValuesRef.current));\n };\n var _useDrag = useDrag(containerRef, direction, rawValues, mergedMin, mergedMax, formatValue, triggerChange, finishChange, offsetValues),\n _useDrag2 = _slicedToArray(_useDrag, 4),\n draggingIndex = _useDrag2[0],\n draggingValue = _useDrag2[1],\n cacheValues = _useDrag2[2],\n onStartDrag = _useDrag2[3];\n var onStartMove = function onStartMove(e, valueIndex) {\n onStartDrag(e, valueIndex);\n onBeforeChange === null || onBeforeChange === void 0 ? void 0 : onBeforeChange(getTriggerValue(rawValuesRef.current));\n };\n // Auto focus for updated handle\n var dragging = draggingIndex !== -1;\n React.useEffect(function () {\n if (!dragging) {\n var valueIndex = rawValues.lastIndexOf(draggingValue);\n handlesRef.current.focus(valueIndex);\n }\n }, [dragging]);\n // =========================== Included ===========================\n var sortedCacheValues = React.useMemo(function () {\n return _toConsumableArray(cacheValues).sort(function (a, b) {\n return a - b;\n });\n }, [cacheValues]);\n // Provide a range values with included [min, max]\n // Used for Track, Mark & Dot\n var _React$useMemo = React.useMemo(function () {\n if (!range) {\n return [mergedMin, sortedCacheValues[0]];\n }\n return [sortedCacheValues[0], sortedCacheValues[sortedCacheValues.length - 1]];\n }, [sortedCacheValues, range, mergedMin]),\n _React$useMemo2 = _slicedToArray(_React$useMemo, 2),\n includedStart = _React$useMemo2[0],\n includedEnd = _React$useMemo2[1];\n // ============================= Refs =============================\n React.useImperativeHandle(ref, function () {\n return {\n focus: function focus() {\n handlesRef.current.focus(0);\n },\n blur: function blur() {\n var _document = document,\n activeElement = _document.activeElement;\n if (containerRef.current.contains(activeElement)) {\n activeElement === null || activeElement === void 0 ? void 0 : activeElement.blur();\n }\n }\n };\n });\n // ========================== Auto Focus ==========================\n React.useEffect(function () {\n if (autoFocus) {\n handlesRef.current.focus(0);\n }\n }, []);\n // =========================== Context ============================\n var context = React.useMemo(function () {\n return {\n min: mergedMin,\n max: mergedMax,\n direction: direction,\n disabled: disabled,\n keyboard: keyboard,\n step: mergedStep,\n included: included,\n includedStart: includedStart,\n includedEnd: includedEnd,\n range: range,\n tabIndex: tabIndex,\n ariaLabelForHandle: ariaLabelForHandle,\n ariaLabelledByForHandle: ariaLabelledByForHandle,\n ariaValueTextFormatterForHandle: ariaValueTextFormatterForHandle\n };\n }, [mergedMin, mergedMax, direction, disabled, keyboard, mergedStep, included, includedStart, includedEnd, range, tabIndex, ariaLabelForHandle, ariaLabelledByForHandle, ariaValueTextFormatterForHandle]);\n // ============================ Render ============================\n return /*#__PURE__*/React.createElement(SliderContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: containerRef,\n className: classNames(prefixCls, className, (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-disabled\"), disabled), _defineProperty(_classNames, \"\".concat(prefixCls, \"-vertical\"), vertical), _defineProperty(_classNames, \"\".concat(prefixCls, \"-horizontal\"), !vertical), _defineProperty(_classNames, \"\".concat(prefixCls, \"-with-marks\"), markList.length), _classNames)),\n style: style,\n onMouseDown: onSliderMouseDown\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-rail\"),\n style: railStyle\n }), /*#__PURE__*/React.createElement(Tracks, {\n prefixCls: prefixCls,\n style: trackStyle,\n values: sortedCacheValues,\n startPoint: startPoint,\n onStartMove: mergedDraggableTrack ? onStartMove : null\n }), /*#__PURE__*/React.createElement(Steps, {\n prefixCls: prefixCls,\n marks: markList,\n dots: dots,\n style: dotStyle,\n activeStyle: activeDotStyle\n }), /*#__PURE__*/React.createElement(Handles, {\n ref: handlesRef,\n prefixCls: prefixCls,\n style: handleStyle,\n values: cacheValues,\n draggingIndex: draggingIndex,\n onStartMove: onStartMove,\n onOffsetChange: onHandleOffsetChange,\n onFocus: onFocus,\n onBlur: onBlur,\n handleRender: handleRender\n }), /*#__PURE__*/React.createElement(Marks, {\n prefixCls: prefixCls,\n marks: markList,\n onClick: changeToCloseValue\n })));\n});\nif (process.env.NODE_ENV !== 'production') {\n Slider.displayName = 'Slider';\n}\nexport default Slider;","import Slider from './Slider';\nexport default Slider;","import raf from \"rc-util/es/raf\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { useRef } from 'react';\nimport Tooltip from '../tooltip';\nconst SliderTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n open\n } = props;\n const innerRef = useRef(null);\n const rafRef = useRef(null);\n function cancelKeepAlign() {\n raf.cancel(rafRef.current);\n rafRef.current = null;\n }\n function keepAlign() {\n rafRef.current = raf(() => {\n var _a;\n (_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.forceAlign();\n rafRef.current = null;\n });\n }\n React.useEffect(() => {\n if (open) {\n keepAlign();\n } else {\n cancelKeepAlign();\n }\n return cancelKeepAlign;\n }, [open, props.title]);\n return /*#__PURE__*/React.createElement(Tooltip, Object.assign({\n ref: composeRef(innerRef, ref)\n }, props));\n});\nif (process.env.NODE_ENV !== 'production') {\n SliderTooltip.displayName = 'SliderTooltip';\n}\nexport default SliderTooltip;","import { TinyColor } from '@ctrl/tinycolor';\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n antCls,\n controlSize,\n dotSize,\n marginFull,\n marginPart,\n colorFillContentHover\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'relative',\n height: controlSize,\n margin: `${marginPart}px ${marginFull}px`,\n padding: 0,\n cursor: 'pointer',\n touchAction: 'none',\n [`&-vertical`]: {\n margin: `${marginFull}px ${marginPart}px`\n },\n [`${componentCls}-rail`]: {\n position: 'absolute',\n backgroundColor: token.railBg,\n borderRadius: token.borderRadiusXS,\n transition: `background-color ${token.motionDurationMid}`\n },\n [`${componentCls}-track`]: {\n position: 'absolute',\n backgroundColor: token.trackBg,\n borderRadius: token.borderRadiusXS,\n transition: `background-color ${token.motionDurationMid}`\n },\n '&:hover': {\n [`${componentCls}-rail`]: {\n backgroundColor: token.railHoverBg\n },\n [`${componentCls}-track`]: {\n backgroundColor: token.trackHoverBg\n },\n [`${componentCls}-dot`]: {\n borderColor: colorFillContentHover\n },\n [`${componentCls}-handle::after`]: {\n boxShadow: `0 0 0 ${token.handleLineWidth}px ${token.colorPrimaryBorderHover}`\n },\n [`${componentCls}-dot-active`]: {\n borderColor: token.dotActiveBorderColor\n }\n },\n [`${componentCls}-handle`]: {\n position: 'absolute',\n width: token.handleSize,\n height: token.handleSize,\n outline: 'none',\n [`${componentCls}-dragging`]: {\n zIndex: 1\n },\n // 扩大选区\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n insetInlineStart: -token.handleLineWidth,\n insetBlockStart: -token.handleLineWidth,\n width: token.handleSize + token.handleLineWidth * 2,\n height: token.handleSize + token.handleLineWidth * 2,\n backgroundColor: 'transparent'\n },\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n insetBlockStart: 0,\n insetInlineStart: 0,\n width: token.handleSize,\n height: token.handleSize,\n backgroundColor: token.colorBgElevated,\n boxShadow: `0 0 0 ${token.handleLineWidth}px ${token.handleColor}`,\n borderRadius: '50%',\n cursor: 'pointer',\n transition: `\n inset-inline-start ${token.motionDurationMid},\n inset-block-start ${token.motionDurationMid},\n width ${token.motionDurationMid},\n height ${token.motionDurationMid},\n box-shadow ${token.motionDurationMid}\n `\n },\n '&:hover, &:active, &:focus': {\n '&::before': {\n insetInlineStart: -((token.handleSizeHover - token.handleSize) / 2 + token.handleLineWidthHover),\n insetBlockStart: -((token.handleSizeHover - token.handleSize) / 2 + token.handleLineWidthHover),\n width: token.handleSizeHover + token.handleLineWidthHover * 2,\n height: token.handleSizeHover + token.handleLineWidthHover * 2\n },\n '&::after': {\n boxShadow: `0 0 0 ${token.handleLineWidthHover}px ${token.handleActiveColor}`,\n width: token.handleSizeHover,\n height: token.handleSizeHover,\n insetInlineStart: (token.handleSize - token.handleSizeHover) / 2,\n insetBlockStart: (token.handleSize - token.handleSizeHover) / 2\n }\n }\n },\n [`${componentCls}-mark`]: {\n position: 'absolute',\n fontSize: token.fontSize\n },\n [`${componentCls}-mark-text`]: {\n position: 'absolute',\n display: 'inline-block',\n color: token.colorTextDescription,\n textAlign: 'center',\n wordBreak: 'keep-all',\n cursor: 'pointer',\n userSelect: 'none',\n '&-active': {\n color: token.colorText\n }\n },\n [`${componentCls}-step`]: {\n position: 'absolute',\n background: 'transparent',\n pointerEvents: 'none'\n },\n [`${componentCls}-dot`]: {\n position: 'absolute',\n width: dotSize,\n height: dotSize,\n backgroundColor: token.colorBgElevated,\n border: `${token.handleLineWidth}px solid ${token.dotBorderColor}`,\n borderRadius: '50%',\n cursor: 'pointer',\n transition: `border-color ${token.motionDurationSlow}`,\n pointerEvents: 'auto',\n '&-active': {\n borderColor: token.dotActiveBorderColor\n }\n },\n [`&${componentCls}-disabled`]: {\n cursor: 'not-allowed',\n [`${componentCls}-rail`]: {\n backgroundColor: `${token.railBg} !important`\n },\n [`${componentCls}-track`]: {\n backgroundColor: `${token.trackBgDisabled} !important`\n },\n [`\n ${componentCls}-dot\n `]: {\n backgroundColor: token.colorBgElevated,\n borderColor: token.trackBgDisabled,\n boxShadow: 'none',\n cursor: 'not-allowed'\n },\n [`${componentCls}-handle::after`]: {\n backgroundColor: token.colorBgElevated,\n cursor: 'not-allowed',\n width: token.handleSize,\n height: token.handleSize,\n boxShadow: `0 0 0 ${token.handleLineWidth}px ${new TinyColor(token.colorTextDisabled).onBackground(token.colorBgContainer).toHexShortString()}`,\n insetInlineStart: 0,\n insetBlockStart: 0\n },\n [`\n ${componentCls}-mark-text,\n ${componentCls}-dot\n `]: {\n cursor: `not-allowed !important`\n }\n },\n [`&-tooltip ${antCls}-tooltip-inner`]: {\n minWidth: 'unset'\n }\n })\n };\n};\n// ============================ Horizontal ============================\nconst genDirectionStyle = (token, horizontal) => {\n const {\n componentCls,\n railSize,\n handleSize,\n dotSize\n } = token;\n const railPadding = horizontal ? 'paddingBlock' : 'paddingInline';\n const full = horizontal ? 'width' : 'height';\n const part = horizontal ? 'height' : 'width';\n const handlePos = horizontal ? 'insetBlockStart' : 'insetInlineStart';\n const markInset = horizontal ? 'top' : 'insetInlineStart';\n return {\n [railPadding]: railSize,\n [part]: railSize * 3,\n [`${componentCls}-rail`]: {\n [full]: '100%',\n [part]: railSize\n },\n [`${componentCls}-track`]: {\n [part]: railSize\n },\n [`${componentCls}-handle`]: {\n [handlePos]: (railSize * 3 - handleSize) / 2\n },\n [`${componentCls}-mark`]: {\n // Reset all\n insetInlineStart: 0,\n top: 0,\n // https://github.com/ant-design/ant-design/issues/43731\n [markInset]: railSize * 3 + (horizontal ? 0 : token.marginFull),\n [full]: '100%'\n },\n [`${componentCls}-step`]: {\n // Reset all\n insetInlineStart: 0,\n top: 0,\n [markInset]: railSize,\n [full]: '100%',\n [part]: railSize\n },\n [`${componentCls}-dot`]: {\n position: 'absolute',\n [handlePos]: (railSize - dotSize) / 2\n }\n };\n};\n// ============================ Horizontal ============================\nconst genHorizontalStyle = token => {\n const {\n componentCls,\n marginPartWithMark\n } = token;\n return {\n [`${componentCls}-horizontal`]: Object.assign(Object.assign({}, genDirectionStyle(token, true)), {\n [`&${componentCls}-with-marks`]: {\n marginBottom: marginPartWithMark\n }\n })\n };\n};\n// ============================= Vertical =============================\nconst genVerticalStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [`${componentCls}-vertical`]: Object.assign(Object.assign({}, genDirectionStyle(token, false)), {\n height: '100%'\n })\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Slider', token => {\n const sliderToken = mergeToken(token, {\n marginPart: (token.controlHeight - token.controlSize) / 2,\n marginFull: token.controlSize / 2,\n marginPartWithMark: token.controlHeightLG - token.controlSize\n });\n return [genBaseStyle(sliderToken), genHorizontalStyle(sliderToken), genVerticalStyle(sliderToken)];\n}, token => {\n // Handle line width is always width-er 1px\n const increaseHandleWidth = 1;\n const controlSize = token.controlHeightLG / 4;\n const controlSizeHover = token.controlHeightSM / 2;\n const handleLineWidth = token.lineWidth + increaseHandleWidth;\n const handleLineWidthHover = token.lineWidth + increaseHandleWidth * 3;\n return {\n controlSize,\n railSize: 4,\n handleSize: controlSize,\n handleSizeHover: controlSizeHover,\n dotSize: 8,\n handleLineWidth,\n handleLineWidthHover,\n railBg: token.colorFillTertiary,\n railHoverBg: token.colorFillSecondary,\n trackBg: token.colorPrimaryBorder,\n trackHoverBg: token.colorPrimaryBorderHover,\n handleColor: token.colorPrimaryBorder,\n handleActiveColor: token.colorPrimary,\n dotBorderColor: token.colorBorderSecondary,\n dotActiveBorderColor: token.colorPrimaryBorder,\n trackBgDisabled: token.colorBgContainerDisabled\n };\n});","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport RcSlider from 'rc-slider';\nimport React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport SliderTooltip from './SliderTooltip';\nimport useStyle from './style';\nconst defaultFormatter = val => typeof val === 'number' ? val.toString() : '';\nconst Slider = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n range,\n className,\n rootClassName,\n style,\n disabled,\n // Deprecated Props\n tooltipPrefixCls: legacyTooltipPrefixCls,\n tipFormatter: legacyTipFormatter,\n tooltipVisible: legacyTooltipVisible,\n getTooltipPopupContainer: legacyGetTooltipPopupContainer,\n tooltipPlacement: legacyTooltipPlacement\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"range\", \"className\", \"rootClassName\", \"style\", \"disabled\", \"tooltipPrefixCls\", \"tipFormatter\", \"tooltipVisible\", \"getTooltipPopupContainer\", \"tooltipPlacement\"]);\n const {\n direction,\n slider,\n getPrefixCls,\n getPopupContainer\n } = React.useContext(ConfigContext);\n const contextDisabled = React.useContext(DisabledContext);\n const mergedDisabled = disabled !== null && disabled !== void 0 ? disabled : contextDisabled;\n const [opens, setOpens] = React.useState({});\n const toggleTooltipOpen = (index, open) => {\n setOpens(prev => Object.assign(Object.assign({}, prev), {\n [index]: open\n }));\n };\n const getTooltipPlacement = (placement, vertical) => {\n if (placement) {\n return placement;\n }\n if (!vertical) {\n return 'top';\n }\n return direction === 'rtl' ? 'left' : 'right';\n };\n const prefixCls = getPrefixCls('slider', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const cls = classNames(className, slider === null || slider === void 0 ? void 0 : slider.className, rootClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, hashId);\n // make reverse default on rtl direction\n if (direction === 'rtl' && !restProps.vertical) {\n restProps.reverse = !restProps.reverse;\n }\n // Range config\n const [mergedRange, draggableTrack] = React.useMemo(() => {\n if (!range) {\n return [false];\n }\n return typeof range === 'object' ? [true, range.draggableTrack] : [true, false];\n }, [range]);\n // Warning for deprecated usage\n if (process.env.NODE_ENV !== 'production') {\n [['tooltipPrefixCls', 'prefixCls'], ['getTooltipPopupContainer', 'getPopupContainer'], ['tipFormatter', 'formatter'], ['tooltipPlacement', 'placement'], ['tooltipVisible', 'open']].forEach(_ref => {\n let [deprecatedName, newName] = _ref;\n process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Slider', `\\`${deprecatedName}\\` is deprecated, please use \\`tooltip.${newName}\\` instead.`) : void 0;\n });\n }\n const handleRender = (node, info) => {\n var _a;\n const {\n index,\n dragging\n } = info;\n const {\n tooltip = {},\n vertical\n } = props;\n const tooltipProps = Object.assign({}, tooltip);\n const {\n open: tooltipOpen,\n placement: tooltipPlacement,\n getPopupContainer: getTooltipPopupContainer,\n prefixCls: customizeTooltipPrefixCls,\n formatter: tipFormatter\n } = tooltipProps;\n let mergedTipFormatter;\n if (tipFormatter || tipFormatter === null) {\n mergedTipFormatter = tipFormatter;\n } else if (legacyTipFormatter || legacyTipFormatter === null) {\n mergedTipFormatter = legacyTipFormatter;\n } else {\n mergedTipFormatter = defaultFormatter;\n }\n const isTipFormatter = mergedTipFormatter ? opens[index] || dragging : false;\n const open = (_a = tooltipOpen !== null && tooltipOpen !== void 0 ? tooltipOpen : legacyTooltipVisible) !== null && _a !== void 0 ? _a : tooltipOpen === undefined && isTipFormatter;\n const passedProps = Object.assign(Object.assign({}, node.props), {\n onMouseEnter: () => toggleTooltipOpen(index, true),\n onMouseLeave: () => toggleTooltipOpen(index, false)\n });\n const tooltipPrefixCls = getPrefixCls('tooltip', customizeTooltipPrefixCls !== null && customizeTooltipPrefixCls !== void 0 ? customizeTooltipPrefixCls : legacyTooltipPrefixCls);\n return /*#__PURE__*/React.createElement(SliderTooltip, Object.assign({}, tooltipProps, {\n prefixCls: tooltipPrefixCls,\n title: mergedTipFormatter ? mergedTipFormatter(info.value) : '',\n open: open,\n placement: getTooltipPlacement(tooltipPlacement !== null && tooltipPlacement !== void 0 ? tooltipPlacement : legacyTooltipPlacement, vertical),\n key: index,\n overlayClassName: `${prefixCls}-tooltip`,\n getPopupContainer: getTooltipPopupContainer || legacyGetTooltipPopupContainer || getPopupContainer\n }), /*#__PURE__*/React.cloneElement(node, passedProps));\n };\n const mergedStyle = Object.assign(Object.assign({}, slider === null || slider === void 0 ? void 0 : slider.style), style);\n return wrapSSR( /*#__PURE__*/React.createElement(RcSlider, Object.assign({}, restProps, {\n step: restProps.step,\n range: mergedRange,\n draggableTrack: draggableTrack,\n className: cls,\n style: mergedStyle,\n disabled: mergedDisabled,\n ref: ref,\n prefixCls: prefixCls,\n handleRender: handleRender\n })));\n});\nif (process.env.NODE_ENV !== 'production') {\n Slider.displayName = 'Slider';\n}\nexport default Slider;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport useStyle from './style';\nexport const SpaceCompactItemContext = /*#__PURE__*/React.createContext(null);\nexport const useCompactItemContext = (prefixCls, direction) => {\n const compactItemContext = React.useContext(SpaceCompactItemContext);\n const compactItemClassnames = React.useMemo(() => {\n if (!compactItemContext) {\n return '';\n }\n const {\n compactDirection,\n isFirstItem,\n isLastItem\n } = compactItemContext;\n const separator = compactDirection === 'vertical' ? '-vertical-' : '-';\n return classNames(`${prefixCls}-compact${separator}item`, {\n [`${prefixCls}-compact${separator}first-item`]: isFirstItem,\n [`${prefixCls}-compact${separator}last-item`]: isLastItem,\n [`${prefixCls}-compact${separator}item-rtl`]: direction === 'rtl'\n });\n }, [prefixCls, direction, compactItemContext]);\n return {\n compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,\n compactDirection: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactDirection,\n compactItemClassnames\n };\n};\nexport const NoCompactStyle = _ref => {\n let {\n children\n } = _ref;\n return /*#__PURE__*/React.createElement(SpaceCompactItemContext.Provider, {\n value: null\n }, children);\n};\nconst CompactItem = _a => {\n var {\n children\n } = _a,\n otherProps = __rest(_a, [\"children\"]);\n return /*#__PURE__*/React.createElement(SpaceCompactItemContext.Provider, {\n value: otherProps\n }, children);\n};\nconst Compact = props => {\n const {\n getPrefixCls,\n direction: directionConfig\n } = React.useContext(ConfigContext);\n const {\n size,\n direction,\n block,\n prefixCls: customizePrefixCls,\n className,\n rootClassName,\n children\n } = props,\n restProps = __rest(props, [\"size\", \"direction\", \"block\", \"prefixCls\", \"className\", \"rootClassName\", \"children\"]);\n const mergedSize = useSize(ctx => size !== null && size !== void 0 ? size : ctx);\n const prefixCls = getPrefixCls('space-compact', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const clx = classNames(prefixCls, hashId, {\n [`${prefixCls}-rtl`]: directionConfig === 'rtl',\n [`${prefixCls}-block`]: block,\n [`${prefixCls}-vertical`]: direction === 'vertical'\n }, className, rootClassName);\n const compactItemContext = React.useContext(SpaceCompactItemContext);\n const childNodes = toArray(children);\n const nodes = React.useMemo(() => childNodes.map((child, i) => {\n const key = child && child.key || `${prefixCls}-item-${i}`;\n return /*#__PURE__*/React.createElement(CompactItem, {\n key: key,\n compactSize: mergedSize,\n compactDirection: direction,\n isFirstItem: i === 0 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isFirstItem)),\n isLastItem: i === childNodes.length - 1 && (!compactItemContext || (compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.isLastItem))\n }, child);\n }), [size, childNodes, compactItemContext]);\n // =========================== Render ===========================\n if (childNodes.length === 0) {\n return null;\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({\n className: clx\n }, restProps), nodes));\n};\nexport default Compact;","import React from 'react';\nexport const SpaceContext = /*#__PURE__*/React.createContext({\n latestIndex: 0,\n horizontalSize: 0,\n verticalSize: 0,\n supportFlexGap: false\n});\nexport const SpaceContextProvider = SpaceContext.Provider;","import * as React from 'react';\nimport { SpaceContext } from './context';\nconst Item = _ref => {\n let {\n className,\n direction,\n index,\n marginDirection,\n children,\n split,\n wrap,\n style: customStyle\n } = _ref;\n const {\n horizontalSize,\n verticalSize,\n latestIndex,\n supportFlexGap\n } = React.useContext(SpaceContext);\n let style = {};\n if (!supportFlexGap) {\n if (direction === 'vertical') {\n if (index < latestIndex) {\n style = {\n marginBottom: horizontalSize / (split ? 2 : 1)\n };\n }\n } else {\n style = Object.assign(Object.assign({}, index < latestIndex && {\n [marginDirection]: horizontalSize / (split ? 2 : 1)\n }), wrap && {\n paddingBottom: verticalSize\n });\n }\n }\n if (children === null || children === undefined) {\n return null;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: className,\n style: Object.assign(Object.assign({}, style), customStyle)\n }, children), index < latestIndex && split && /*#__PURE__*/React.createElement(\"span\", {\n className: `${className}-split`,\n style: style\n }, split));\n};\nexport default Item;","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport * as React from 'react';\nimport useFlexGapSupport from '../_util/hooks/useFlexGapSupport';\nimport { ConfigContext } from '../config-provider';\nimport Compact from './Compact';\nimport Item from './Item';\nimport { SpaceContextProvider } from './context';\nimport useStyle from './style';\nexport { SpaceContext } from './context';\nconst spaceSize = {\n small: 8,\n middle: 16,\n large: 24\n};\nfunction getNumberSize(size) {\n return typeof size === 'string' ? spaceSize[size] : size || 0;\n}\nconst Space = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a, _b;\n const {\n getPrefixCls,\n space,\n direction: directionConfig\n } = React.useContext(ConfigContext);\n const {\n size = (space === null || space === void 0 ? void 0 : space.size) || 'small',\n align,\n className,\n rootClassName,\n children,\n direction = 'horizontal',\n prefixCls: customizePrefixCls,\n split,\n style,\n wrap = false,\n classNames: customClassNames,\n styles\n } = props,\n otherProps = __rest(props, [\"size\", \"align\", \"className\", \"rootClassName\", \"children\", \"direction\", \"prefixCls\", \"split\", \"style\", \"wrap\", \"classNames\", \"styles\"]);\n const supportFlexGap = useFlexGapSupport();\n const [horizontalSize, verticalSize] = React.useMemo(() => (Array.isArray(size) ? size : [size, size]).map(item => getNumberSize(item)), [size]);\n const childNodes = toArray(children, {\n keepEmpty: true\n });\n const mergedAlign = align === undefined && direction === 'horizontal' ? 'center' : align;\n const prefixCls = getPrefixCls('space', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n const cn = classNames(prefixCls, space === null || space === void 0 ? void 0 : space.className, hashId, `${prefixCls}-${direction}`, {\n [`${prefixCls}-rtl`]: directionConfig === 'rtl',\n [`${prefixCls}-align-${mergedAlign}`]: mergedAlign\n }, className, rootClassName);\n const itemClassName = classNames(`${prefixCls}-item`, (_a = customClassNames === null || customClassNames === void 0 ? void 0 : customClassNames.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.classNames) === null || _b === void 0 ? void 0 : _b.item);\n const marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';\n // Calculate latest one\n let latestIndex = 0;\n const nodes = childNodes.map((child, i) => {\n var _a, _b;\n if (child !== null && child !== undefined) {\n latestIndex = i;\n }\n const key = child && child.key || `${itemClassName}-${i}`;\n return /*#__PURE__*/React.createElement(Item, {\n className: itemClassName,\n key: key,\n direction: direction,\n index: i,\n marginDirection: marginDirection,\n split: split,\n wrap: wrap,\n style: (_a = styles === null || styles === void 0 ? void 0 : styles.item) !== null && _a !== void 0 ? _a : (_b = space === null || space === void 0 ? void 0 : space.styles) === null || _b === void 0 ? void 0 : _b.item\n }, child);\n });\n const spaceContext = React.useMemo(() => ({\n horizontalSize,\n verticalSize,\n latestIndex,\n supportFlexGap\n }), [horizontalSize, verticalSize, latestIndex, supportFlexGap]);\n // =========================== Render ===========================\n if (childNodes.length === 0) {\n return null;\n }\n const gapStyle = {};\n if (wrap) {\n gapStyle.flexWrap = 'wrap';\n // Patch for gap not support\n if (!supportFlexGap) {\n gapStyle.marginBottom = -verticalSize;\n }\n }\n if (supportFlexGap) {\n gapStyle.columnGap = horizontalSize;\n gapStyle.rowGap = verticalSize;\n }\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", Object.assign({\n ref: ref,\n className: cn,\n style: Object.assign(Object.assign(Object.assign({}, gapStyle), space === null || space === void 0 ? void 0 : space.style), style)\n }, otherProps), /*#__PURE__*/React.createElement(SpaceContextProvider, {\n value: spaceContext\n }, nodes)));\n});\nif (process.env.NODE_ENV !== 'production') {\n Space.displayName = 'Space';\n}\nconst CompoundedSpace = Space;\nCompoundedSpace.Compact = Compact;\nexport default CompoundedSpace;","const genSpaceCompactStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n '&-block': {\n display: 'flex',\n width: '100%'\n },\n '&-vertical': {\n flexDirection: 'column'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genSpaceCompactStyle;","import { genComponentStyleHook } from '../../theme/internal';\nimport genSpaceCompactStyle from './compact';\nconst genSpaceStyle = token => {\n const {\n componentCls\n } = token;\n return {\n [componentCls]: {\n display: 'inline-flex',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-vertical': {\n flexDirection: 'column'\n },\n '&-align': {\n flexDirection: 'column',\n '&-center': {\n alignItems: 'center'\n },\n '&-start': {\n alignItems: 'flex-start'\n },\n '&-end': {\n alignItems: 'flex-end'\n },\n '&-baseline': {\n alignItems: 'baseline'\n }\n },\n [`${componentCls}-item:empty`]: {\n display: 'none'\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Space', token => [genSpaceStyle(token), genSpaceCompactStyle(token)], () => ({}), {\n // Space component don't apply extra font style\n // https://github.com/ant-design/ant-design/issues/40315\n resetStyle: false\n});","import { Keyframes } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nconst antSpinMove = new Keyframes('antSpinMove', {\n to: {\n opacity: 1\n }\n});\nconst antRotate = new Keyframes('antRotate', {\n to: {\n transform: 'rotate(405deg)'\n }\n});\nconst genSpinStyle = token => ({\n [`${token.componentCls}`]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n display: 'none',\n color: token.colorPrimary,\n fontSize: 0,\n textAlign: 'center',\n verticalAlign: 'middle',\n opacity: 0,\n transition: `transform ${token.motionDurationSlow} ${token.motionEaseInOutCirc}`,\n '&-spinning': {\n position: 'static',\n display: 'inline-block',\n opacity: 1\n },\n '&-nested-loading': {\n position: 'relative',\n [`> div > ${token.componentCls}`]: {\n position: 'absolute',\n top: 0,\n insetInlineStart: 0,\n zIndex: 4,\n display: 'block',\n width: '100%',\n height: '100%',\n maxHeight: token.contentHeight,\n [`${token.componentCls}-dot`]: {\n position: 'absolute',\n top: '50%',\n insetInlineStart: '50%',\n margin: -token.spinDotSize / 2\n },\n [`${token.componentCls}-text`]: {\n position: 'absolute',\n top: '50%',\n width: '100%',\n paddingTop: (token.spinDotSize - token.fontSize) / 2 + 2,\n textShadow: `0 1px 2px ${token.colorBgContainer}`,\n fontSize: token.fontSize\n },\n [`&${token.componentCls}-show-text ${token.componentCls}-dot`]: {\n marginTop: -(token.spinDotSize / 2) - 10\n },\n '&-sm': {\n [`${token.componentCls}-dot`]: {\n margin: -token.spinDotSizeSM / 2\n },\n [`${token.componentCls}-text`]: {\n paddingTop: (token.spinDotSizeSM - token.fontSize) / 2 + 2\n },\n [`&${token.componentCls}-show-text ${token.componentCls}-dot`]: {\n marginTop: -(token.spinDotSizeSM / 2) - 10\n }\n },\n '&-lg': {\n [`${token.componentCls}-dot`]: {\n margin: -(token.spinDotSizeLG / 2)\n },\n [`${token.componentCls}-text`]: {\n paddingTop: (token.spinDotSizeLG - token.fontSize) / 2 + 2\n },\n [`&${token.componentCls}-show-text ${token.componentCls}-dot`]: {\n marginTop: -(token.spinDotSizeLG / 2) - 10\n }\n }\n },\n [`${token.componentCls}-container`]: {\n position: 'relative',\n transition: `opacity ${token.motionDurationSlow}`,\n '&::after': {\n position: 'absolute',\n top: 0,\n insetInlineEnd: 0,\n bottom: 0,\n insetInlineStart: 0,\n zIndex: 10,\n width: '100%',\n height: '100%',\n background: token.colorBgContainer,\n opacity: 0,\n transition: `all ${token.motionDurationSlow}`,\n content: '\"\"',\n pointerEvents: 'none'\n }\n },\n [`${token.componentCls}-blur`]: {\n clear: 'both',\n opacity: 0.5,\n userSelect: 'none',\n pointerEvents: 'none',\n [`&::after`]: {\n opacity: 0.4,\n pointerEvents: 'auto'\n }\n }\n },\n // tip\n // ------------------------------\n [`&-tip`]: {\n color: token.spinDotDefault\n },\n // dots\n // ------------------------------\n [`${token.componentCls}-dot`]: {\n position: 'relative',\n display: 'inline-block',\n fontSize: token.spinDotSize,\n width: '1em',\n height: '1em',\n '&-item': {\n position: 'absolute',\n display: 'block',\n width: (token.spinDotSize - token.marginXXS / 2) / 2,\n height: (token.spinDotSize - token.marginXXS / 2) / 2,\n backgroundColor: token.colorPrimary,\n borderRadius: '100%',\n transform: 'scale(0.75)',\n transformOrigin: '50% 50%',\n opacity: 0.3,\n animationName: antSpinMove,\n animationDuration: '1s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear',\n animationDirection: 'alternate',\n '&:nth-child(1)': {\n top: 0,\n insetInlineStart: 0\n },\n '&:nth-child(2)': {\n top: 0,\n insetInlineEnd: 0,\n animationDelay: '0.4s'\n },\n '&:nth-child(3)': {\n insetInlineEnd: 0,\n bottom: 0,\n animationDelay: '0.8s'\n },\n '&:nth-child(4)': {\n bottom: 0,\n insetInlineStart: 0,\n animationDelay: '1.2s'\n }\n },\n '&-spin': {\n transform: 'rotate(45deg)',\n animationName: antRotate,\n animationDuration: '1.2s',\n animationIterationCount: 'infinite',\n animationTimingFunction: 'linear'\n }\n },\n // Sizes\n // ------------------------------\n // small\n [`&-sm ${token.componentCls}-dot`]: {\n fontSize: token.spinDotSizeSM,\n i: {\n width: (token.spinDotSizeSM - token.marginXXS / 2) / 2,\n height: (token.spinDotSizeSM - token.marginXXS / 2) / 2\n }\n },\n // large\n [`&-lg ${token.componentCls}-dot`]: {\n fontSize: token.spinDotSizeLG,\n i: {\n width: (token.spinDotSizeLG - token.marginXXS) / 2,\n height: (token.spinDotSizeLG - token.marginXXS) / 2\n }\n },\n [`&${token.componentCls}-show-text ${token.componentCls}-text`]: {\n display: 'block'\n }\n })\n});\n// ============================== Export ==============================\nexport default genComponentStyleHook('Spin', token => {\n const spinToken = mergeToken(token, {\n spinDotDefault: token.colorTextDescription,\n spinDotSize: token.controlHeightLG / 2,\n spinDotSizeSM: token.controlHeightLG * 0.35,\n spinDotSizeLG: token.controlHeight\n });\n return [genSpinStyle(spinToken)];\n}, {\n contentHeight: 400\n});","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport omit from \"rc-util/es/omit\";\nimport * as React from 'react';\nimport { debounce } from 'throttle-debounce';\nimport { cloneElement, isValidElement } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style/index';\nconst SpinSizes = ['small', 'default', 'large'];\n// Render indicator\nlet defaultIndicator = null;\nfunction renderIndicator(prefixCls, props) {\n const {\n indicator\n } = props;\n const dotClassName = `${prefixCls}-dot`;\n // should not be render default indicator when indicator value is null\n if (indicator === null) {\n return null;\n }\n if (isValidElement(indicator)) {\n return cloneElement(indicator, {\n className: classNames(indicator.props.className, dotClassName)\n });\n }\n if (isValidElement(defaultIndicator)) {\n return cloneElement(defaultIndicator, {\n className: classNames(defaultIndicator.props.className, dotClassName)\n });\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n className: classNames(dotClassName, `${prefixCls}-dot-spin`)\n }, /*#__PURE__*/React.createElement(\"i\", {\n className: `${prefixCls}-dot-item`,\n key: 1\n }), /*#__PURE__*/React.createElement(\"i\", {\n className: `${prefixCls}-dot-item`,\n key: 2\n }), /*#__PURE__*/React.createElement(\"i\", {\n className: `${prefixCls}-dot-item`,\n key: 3\n }), /*#__PURE__*/React.createElement(\"i\", {\n className: `${prefixCls}-dot-item`,\n key: 4\n }));\n}\nfunction shouldDelay(spinning, delay) {\n return !!spinning && !!delay && !isNaN(Number(delay));\n}\nconst Spin = props => {\n const {\n spinPrefixCls: prefixCls,\n spinning: customSpinning = true,\n delay = 0,\n className,\n rootClassName,\n size = 'default',\n tip,\n wrapperClassName,\n style,\n children,\n hashId\n } = props,\n restProps = __rest(props, [\"spinPrefixCls\", \"spinning\", \"delay\", \"className\", \"rootClassName\", \"size\", \"tip\", \"wrapperClassName\", \"style\", \"children\", \"hashId\"]);\n const [spinning, setSpinning] = React.useState(() => customSpinning && !shouldDelay(customSpinning, delay));\n React.useEffect(() => {\n if (customSpinning) {\n const showSpinning = debounce(delay, () => {\n setSpinning(true);\n });\n showSpinning();\n return () => {\n var _a;\n (_a = showSpinning === null || showSpinning === void 0 ? void 0 : showSpinning.cancel) === null || _a === void 0 ? void 0 : _a.call(showSpinning);\n };\n }\n setSpinning(false);\n }, [delay, customSpinning]);\n const isNestedPattern = React.useMemo(() => typeof children !== 'undefined', [children]);\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!tip || isNestedPattern, 'Spin', '`tip` only work in nest pattern.') : void 0;\n }\n const {\n direction,\n spin\n } = React.useContext(ConfigContext);\n const spinClassName = classNames(prefixCls, spin === null || spin === void 0 ? void 0 : spin.className, {\n [`${prefixCls}-sm`]: size === 'small',\n [`${prefixCls}-lg`]: size === 'large',\n [`${prefixCls}-spinning`]: spinning,\n [`${prefixCls}-show-text`]: !!tip,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, className, rootClassName, hashId);\n const containerClassName = classNames(`${prefixCls}-container`, {\n [`${prefixCls}-blur`]: spinning\n });\n // fix https://fb.me/react-unknown-prop\n const divProps = omit(restProps, ['indicator', 'prefixCls']);\n const mergedStyle = Object.assign(Object.assign({}, spin === null || spin === void 0 ? void 0 : spin.style), style);\n const spinElement = /*#__PURE__*/React.createElement(\"div\", Object.assign({}, divProps, {\n style: mergedStyle,\n className: spinClassName,\n \"aria-live\": \"polite\",\n \"aria-busy\": spinning\n }), renderIndicator(prefixCls, props), tip && isNestedPattern ? /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-text`\n }, tip) : null);\n if (isNestedPattern) {\n return /*#__PURE__*/React.createElement(\"div\", Object.assign({}, divProps, {\n className: classNames(`${prefixCls}-nested-loading`, wrapperClassName, hashId)\n }), spinning && /*#__PURE__*/React.createElement(\"div\", {\n key: \"loading\"\n }, spinElement), /*#__PURE__*/React.createElement(\"div\", {\n className: containerClassName,\n key: \"container\"\n }, children));\n }\n return spinElement;\n};\nconst SpinFC = props => {\n const {\n prefixCls: customizePrefixCls\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const spinPrefixCls = getPrefixCls('spin', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(spinPrefixCls);\n const spinClassProps = Object.assign(Object.assign({}, props), {\n spinPrefixCls,\n hashId\n });\n return wrapSSR( /*#__PURE__*/React.createElement(Spin, Object.assign({}, spinClassProps)));\n};\nSpinFC.setDefaultIndicator = indicator => {\n defaultIndicator = indicator;\n};\nif (process.env.NODE_ENV !== 'production') {\n SpinFC.displayName = 'Spin';\n}\nexport default SpinFC;","// handle border collapse\nfunction compactItemBorder(token, parentCls, options) {\n const {\n focusElCls,\n focus,\n borderElCls\n } = options;\n const childCombinator = borderElCls ? '> *' : '';\n const hoverEffects = ['hover', focus ? 'focus' : null, 'active'].filter(Boolean).map(n => `&:${n} ${childCombinator}`).join(',');\n return {\n [`&-item:not(${parentCls}-last-item)`]: {\n marginInlineEnd: -token.lineWidth\n },\n '&-item': Object.assign(Object.assign({\n [hoverEffects]: {\n zIndex: 2\n }\n }, focusElCls ? {\n [`&${focusElCls}`]: {\n zIndex: 2\n }\n } : {}), {\n [`&[disabled] ${childCombinator}`]: {\n zIndex: 0\n }\n })\n };\n}\n// handle border-radius\nfunction compactItemBorderRadius(prefixCls, parentCls, options) {\n const {\n borderElCls\n } = options;\n const childCombinator = borderElCls ? `> ${borderElCls}` : '';\n return {\n [`&-item:not(${parentCls}-first-item):not(${parentCls}-last-item) ${childCombinator}`]: {\n borderRadius: 0\n },\n [`&-item:not(${parentCls}-last-item)${parentCls}-first-item`]: {\n [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n borderStartEndRadius: 0,\n borderEndEndRadius: 0\n }\n },\n [`&-item:not(${parentCls}-first-item)${parentCls}-last-item`]: {\n [`& ${childCombinator}, &${prefixCls}-sm ${childCombinator}, &${prefixCls}-lg ${childCombinator}`]: {\n borderStartStartRadius: 0,\n borderEndStartRadius: 0\n }\n }\n };\n}\nexport function genCompactItemStyle(token) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n focus: true\n };\n const {\n componentCls\n } = token;\n const compactCls = `${componentCls}-compact`;\n return {\n [compactCls]: Object.assign(Object.assign({}, compactItemBorder(token, compactCls, options)), compactItemBorderRadius(componentCls, compactCls, options))\n };\n}","'use client';\n\nexport { operationUnit } from './operationUnit';\nexport { roundedArrow } from './roundedArrow';\nexport const textEllipsis = {\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n};\nexport const resetComponent = token => ({\n boxSizing: 'border-box',\n margin: 0,\n padding: 0,\n color: token.colorText,\n fontSize: token.fontSize,\n // font-variant: @font-variant-base;\n lineHeight: token.lineHeight,\n listStyle: 'none',\n // font-feature-settings: @font-feature-settings-base;\n fontFamily: token.fontFamily\n});\nexport const resetIcon = () => ({\n display: 'inline-flex',\n alignItems: 'center',\n color: 'inherit',\n fontStyle: 'normal',\n lineHeight: 0,\n textAlign: 'center',\n textTransform: 'none',\n // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4\n verticalAlign: '-0.125em',\n textRendering: 'optimizeLegibility',\n '-webkit-font-smoothing': 'antialiased',\n '-moz-osx-font-smoothing': 'grayscale',\n '> *': {\n lineHeight: 1\n },\n svg: {\n display: 'inline-block'\n }\n});\nexport const clearFix = () => ({\n // https://github.com/ant-design/ant-design/issues/21301#issuecomment-583955229\n '&::before': {\n display: 'table',\n content: '\"\"'\n },\n '&::after': {\n // https://github.com/ant-design/ant-design/issues/21864\n display: 'table',\n clear: 'both',\n content: '\"\"'\n }\n});\nexport const genLinkStyle = token => ({\n a: {\n color: token.colorLink,\n textDecoration: token.linkDecoration,\n backgroundColor: 'transparent',\n outline: 'none',\n cursor: 'pointer',\n transition: `color ${token.motionDurationSlow}`,\n '-webkit-text-decoration-skip': 'objects',\n '&:hover': {\n color: token.colorLinkHover\n },\n '&:active': {\n color: token.colorLinkActive\n },\n [`&:active,\n &:hover`]: {\n textDecoration: token.linkHoverDecoration,\n outline: 0\n },\n // https://github.com/ant-design/ant-design/issues/22503\n '&:focus': {\n textDecoration: token.linkFocusDecoration,\n outline: 0\n },\n '&[disabled]': {\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n }\n }\n});\nexport const genCommonStyle = (token, componentPrefixCls) => {\n const {\n fontFamily,\n fontSize\n } = token;\n const rootPrefixSelector = `[class^=\"${componentPrefixCls}\"], [class*=\" ${componentPrefixCls}\"]`;\n return {\n [rootPrefixSelector]: {\n fontFamily,\n fontSize,\n boxSizing: 'border-box',\n '&::before, &::after': {\n boxSizing: 'border-box'\n },\n [rootPrefixSelector]: {\n boxSizing: 'border-box',\n '&::before, &::after': {\n boxSizing: 'border-box'\n }\n }\n }\n };\n};\nexport const genFocusOutline = token => ({\n outline: `${token.lineWidthFocus}px solid ${token.colorPrimaryBorder}`,\n outlineOffset: 1,\n transition: 'outline-offset 0s, outline 0s'\n});\nexport const genFocusStyle = token => ({\n '&:focus-visible': Object.assign({}, genFocusOutline(token))\n});","const genCollapseMotion = token => ({\n [token.componentCls]: {\n // For common/openAnimation\n [`${token.antCls}-motion-collapse-legacy`]: {\n overflow: 'hidden',\n '&-active': {\n transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},\n opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`\n }\n },\n [`${token.antCls}-motion-collapse`]: {\n overflow: 'hidden',\n transition: `height ${token.motionDurationMid} ${token.motionEaseInOut},\n opacity ${token.motionDurationMid} ${token.motionEaseInOut} !important`\n }\n }\n});\nexport default genCollapseMotion;","import { Keyframes } from '@ant-design/cssinjs';\nimport { initMotion } from './motion';\nexport const fadeIn = new Keyframes('antFadeIn', {\n '0%': {\n opacity: 0\n },\n '100%': {\n opacity: 1\n }\n});\nexport const fadeOut = new Keyframes('antFadeOut', {\n '0%': {\n opacity: 1\n },\n '100%': {\n opacity: 0\n }\n});\nexport const initFadeMotion = function (token) {\n let sameLevel = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n const {\n antCls\n } = token;\n const motionCls = `${antCls}-fade`;\n const sameLevelPrefix = sameLevel ? '&' : '';\n return [initMotion(motionCls, fadeIn, fadeOut, token.motionDurationMid, sameLevel), {\n [`\n ${sameLevelPrefix}${motionCls}-enter,\n ${sameLevelPrefix}${motionCls}-appear\n `]: {\n opacity: 0,\n animationTimingFunction: 'linear'\n },\n [`${sameLevelPrefix}${motionCls}-leave`]: {\n animationTimingFunction: 'linear'\n }\n }];\n};","const initMotionCommon = duration => ({\n animationDuration: duration,\n animationFillMode: 'both'\n});\n// FIXME: origin less code seems same as initMotionCommon. Maybe we can safe remove\nconst initMotionCommonLeave = duration => ({\n animationDuration: duration,\n animationFillMode: 'both'\n});\nexport const initMotion = function (motionCls, inKeyframes, outKeyframes, duration) {\n let sameLevel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n const sameLevelPrefix = sameLevel ? '&' : '';\n return {\n [`\n ${sameLevelPrefix}${motionCls}-enter,\n ${sameLevelPrefix}${motionCls}-appear\n `]: Object.assign(Object.assign({}, initMotionCommon(duration)), {\n animationPlayState: 'paused'\n }),\n [`${sameLevelPrefix}${motionCls}-leave`]: Object.assign(Object.assign({}, initMotionCommonLeave(duration)), {\n animationPlayState: 'paused'\n }),\n [`\n ${sameLevelPrefix}${motionCls}-enter${motionCls}-enter-active,\n ${sameLevelPrefix}${motionCls}-appear${motionCls}-appear-active\n `]: {\n animationName: inKeyframes,\n animationPlayState: 'running'\n },\n [`${sameLevelPrefix}${motionCls}-leave${motionCls}-leave-active`]: {\n animationName: outKeyframes,\n animationPlayState: 'running',\n pointerEvents: 'none'\n }\n };\n};","import { Keyframes } from '@ant-design/cssinjs';\nimport { initMotion } from './motion';\nexport const moveDownIn = new Keyframes('antMoveDownIn', {\n '0%': {\n transform: 'translate3d(0, 100%, 0)',\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n});\nexport const moveDownOut = new Keyframes('antMoveDownOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: 'translate3d(0, 100%, 0)',\n transformOrigin: '0 0',\n opacity: 0\n }\n});\nexport const moveLeftIn = new Keyframes('antMoveLeftIn', {\n '0%': {\n transform: 'translate3d(-100%, 0, 0)',\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n});\nexport const moveLeftOut = new Keyframes('antMoveLeftOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: 'translate3d(-100%, 0, 0)',\n transformOrigin: '0 0',\n opacity: 0\n }\n});\nexport const moveRightIn = new Keyframes('antMoveRightIn', {\n '0%': {\n transform: 'translate3d(100%, 0, 0)',\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n});\nexport const moveRightOut = new Keyframes('antMoveRightOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: 'translate3d(100%, 0, 0)',\n transformOrigin: '0 0',\n opacity: 0\n }\n});\nexport const moveUpIn = new Keyframes('antMoveUpIn', {\n '0%': {\n transform: 'translate3d(0, -100%, 0)',\n transformOrigin: '0 0',\n opacity: 0\n },\n '100%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n }\n});\nexport const moveUpOut = new Keyframes('antMoveUpOut', {\n '0%': {\n transform: 'translate3d(0, 0, 0)',\n transformOrigin: '0 0',\n opacity: 1\n },\n '100%': {\n transform: 'translate3d(0, -100%, 0)',\n transformOrigin: '0 0',\n opacity: 0\n }\n});\nconst moveMotion = {\n 'move-up': {\n inKeyframes: moveUpIn,\n outKeyframes: moveUpOut\n },\n 'move-down': {\n inKeyframes: moveDownIn,\n outKeyframes: moveDownOut\n },\n 'move-left': {\n inKeyframes: moveLeftIn,\n outKeyframes: moveLeftOut\n },\n 'move-right': {\n inKeyframes: moveRightIn,\n outKeyframes: moveRightOut\n }\n};\nexport const initMoveMotion = (token, motionName) => {\n const {\n antCls\n } = token;\n const motionCls = `${antCls}-${motionName}`;\n const {\n inKeyframes,\n outKeyframes\n } = moveMotion[motionName];\n return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {\n [`\n ${motionCls}-enter,\n ${motionCls}-appear\n `]: {\n opacity: 0,\n animationTimingFunction: token.motionEaseOutCirc\n },\n [`${motionCls}-leave`]: {\n animationTimingFunction: token.motionEaseInOutCirc\n }\n }];\n};","import { Keyframes } from '@ant-design/cssinjs';\nimport { initMotion } from './motion';\nexport const slideUpIn = new Keyframes('antSlideUpIn', {\n '0%': {\n transform: 'scaleY(0.8)',\n transformOrigin: '0% 0%',\n opacity: 0\n },\n '100%': {\n transform: 'scaleY(1)',\n transformOrigin: '0% 0%',\n opacity: 1\n }\n});\nexport const slideUpOut = new Keyframes('antSlideUpOut', {\n '0%': {\n transform: 'scaleY(1)',\n transformOrigin: '0% 0%',\n opacity: 1\n },\n '100%': {\n transform: 'scaleY(0.8)',\n transformOrigin: '0% 0%',\n opacity: 0\n }\n});\nexport const slideDownIn = new Keyframes('antSlideDownIn', {\n '0%': {\n transform: 'scaleY(0.8)',\n transformOrigin: '100% 100%',\n opacity: 0\n },\n '100%': {\n transform: 'scaleY(1)',\n transformOrigin: '100% 100%',\n opacity: 1\n }\n});\nexport const slideDownOut = new Keyframes('antSlideDownOut', {\n '0%': {\n transform: 'scaleY(1)',\n transformOrigin: '100% 100%',\n opacity: 1\n },\n '100%': {\n transform: 'scaleY(0.8)',\n transformOrigin: '100% 100%',\n opacity: 0\n }\n});\nexport const slideLeftIn = new Keyframes('antSlideLeftIn', {\n '0%': {\n transform: 'scaleX(0.8)',\n transformOrigin: '0% 0%',\n opacity: 0\n },\n '100%': {\n transform: 'scaleX(1)',\n transformOrigin: '0% 0%',\n opacity: 1\n }\n});\nexport const slideLeftOut = new Keyframes('antSlideLeftOut', {\n '0%': {\n transform: 'scaleX(1)',\n transformOrigin: '0% 0%',\n opacity: 1\n },\n '100%': {\n transform: 'scaleX(0.8)',\n transformOrigin: '0% 0%',\n opacity: 0\n }\n});\nexport const slideRightIn = new Keyframes('antSlideRightIn', {\n '0%': {\n transform: 'scaleX(0.8)',\n transformOrigin: '100% 0%',\n opacity: 0\n },\n '100%': {\n transform: 'scaleX(1)',\n transformOrigin: '100% 0%',\n opacity: 1\n }\n});\nexport const slideRightOut = new Keyframes('antSlideRightOut', {\n '0%': {\n transform: 'scaleX(1)',\n transformOrigin: '100% 0%',\n opacity: 1\n },\n '100%': {\n transform: 'scaleX(0.8)',\n transformOrigin: '100% 0%',\n opacity: 0\n }\n});\nconst slideMotion = {\n 'slide-up': {\n inKeyframes: slideUpIn,\n outKeyframes: slideUpOut\n },\n 'slide-down': {\n inKeyframes: slideDownIn,\n outKeyframes: slideDownOut\n },\n 'slide-left': {\n inKeyframes: slideLeftIn,\n outKeyframes: slideLeftOut\n },\n 'slide-right': {\n inKeyframes: slideRightIn,\n outKeyframes: slideRightOut\n }\n};\nexport const initSlideMotion = (token, motionName) => {\n const {\n antCls\n } = token;\n const motionCls = `${antCls}-${motionName}`;\n const {\n inKeyframes,\n outKeyframes\n } = slideMotion[motionName];\n return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {\n [`\n ${motionCls}-enter,\n ${motionCls}-appear\n `]: {\n transform: 'scale(0)',\n transformOrigin: '0% 0%',\n opacity: 0,\n animationTimingFunction: token.motionEaseOutQuint,\n [`&-prepare`]: {\n transform: 'scale(1)'\n }\n },\n [`${motionCls}-leave`]: {\n animationTimingFunction: token.motionEaseInQuint\n }\n }];\n};","import { Keyframes } from '@ant-design/cssinjs';\nimport { initMotion } from './motion';\nexport const zoomIn = new Keyframes('antZoomIn', {\n '0%': {\n transform: 'scale(0.2)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n opacity: 1\n }\n});\nexport const zoomOut = new Keyframes('antZoomOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0.2)',\n opacity: 0\n }\n});\nexport const zoomBigIn = new Keyframes('antZoomBigIn', {\n '0%': {\n transform: 'scale(0.8)',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n opacity: 1\n }\n});\nexport const zoomBigOut = new Keyframes('antZoomBigOut', {\n '0%': {\n transform: 'scale(1)'\n },\n '100%': {\n transform: 'scale(0.8)',\n opacity: 0\n }\n});\nexport const zoomUpIn = new Keyframes('antZoomUpIn', {\n '0%': {\n transform: 'scale(0.8)',\n transformOrigin: '50% 0%',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n transformOrigin: '50% 0%'\n }\n});\nexport const zoomUpOut = new Keyframes('antZoomUpOut', {\n '0%': {\n transform: 'scale(1)',\n transformOrigin: '50% 0%'\n },\n '100%': {\n transform: 'scale(0.8)',\n transformOrigin: '50% 0%',\n opacity: 0\n }\n});\nexport const zoomLeftIn = new Keyframes('antZoomLeftIn', {\n '0%': {\n transform: 'scale(0.8)',\n transformOrigin: '0% 50%',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n transformOrigin: '0% 50%'\n }\n});\nexport const zoomLeftOut = new Keyframes('antZoomLeftOut', {\n '0%': {\n transform: 'scale(1)',\n transformOrigin: '0% 50%'\n },\n '100%': {\n transform: 'scale(0.8)',\n transformOrigin: '0% 50%',\n opacity: 0\n }\n});\nexport const zoomRightIn = new Keyframes('antZoomRightIn', {\n '0%': {\n transform: 'scale(0.8)',\n transformOrigin: '100% 50%',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n transformOrigin: '100% 50%'\n }\n});\nexport const zoomRightOut = new Keyframes('antZoomRightOut', {\n '0%': {\n transform: 'scale(1)',\n transformOrigin: '100% 50%'\n },\n '100%': {\n transform: 'scale(0.8)',\n transformOrigin: '100% 50%',\n opacity: 0\n }\n});\nexport const zoomDownIn = new Keyframes('antZoomDownIn', {\n '0%': {\n transform: 'scale(0.8)',\n transformOrigin: '50% 100%',\n opacity: 0\n },\n '100%': {\n transform: 'scale(1)',\n transformOrigin: '50% 100%'\n }\n});\nexport const zoomDownOut = new Keyframes('antZoomDownOut', {\n '0%': {\n transform: 'scale(1)',\n transformOrigin: '50% 100%'\n },\n '100%': {\n transform: 'scale(0.8)',\n transformOrigin: '50% 100%',\n opacity: 0\n }\n});\nconst zoomMotion = {\n zoom: {\n inKeyframes: zoomIn,\n outKeyframes: zoomOut\n },\n 'zoom-big': {\n inKeyframes: zoomBigIn,\n outKeyframes: zoomBigOut\n },\n 'zoom-big-fast': {\n inKeyframes: zoomBigIn,\n outKeyframes: zoomBigOut\n },\n 'zoom-left': {\n inKeyframes: zoomLeftIn,\n outKeyframes: zoomLeftOut\n },\n 'zoom-right': {\n inKeyframes: zoomRightIn,\n outKeyframes: zoomRightOut\n },\n 'zoom-up': {\n inKeyframes: zoomUpIn,\n outKeyframes: zoomUpOut\n },\n 'zoom-down': {\n inKeyframes: zoomDownIn,\n outKeyframes: zoomDownOut\n }\n};\nexport const initZoomMotion = (token, motionName) => {\n const {\n antCls\n } = token;\n const motionCls = `${antCls}-${motionName}`;\n const {\n inKeyframes,\n outKeyframes\n } = zoomMotion[motionName];\n return [initMotion(motionCls, inKeyframes, outKeyframes, motionName === 'zoom-big-fast' ? token.motionDurationFast : token.motionDurationMid), {\n [`\n ${motionCls}-enter,\n ${motionCls}-appear\n `]: {\n transform: 'scale(0)',\n opacity: 0,\n animationTimingFunction: token.motionEaseOutCirc,\n '&-prepare': {\n transform: 'none'\n }\n },\n [`${motionCls}-leave`]: {\n animationTimingFunction: token.motionEaseInOutCirc\n }\n }];\n};","import { roundedArrow } from './roundedArrow';\nexport const MAX_VERTICAL_CONTENT_RADIUS = 8;\nexport function getArrowOffset(options) {\n const maxVerticalContentRadius = MAX_VERTICAL_CONTENT_RADIUS;\n const {\n contentRadius,\n limitVerticalRadius\n } = options;\n const dropdownArrowOffset = contentRadius > 12 ? contentRadius + 2 : 12;\n const dropdownArrowOffsetVertical = limitVerticalRadius ? maxVerticalContentRadius : dropdownArrowOffset;\n return {\n dropdownArrowOffset,\n dropdownArrowOffsetVertical\n };\n}\nfunction isInject(valid, code) {\n if (!valid) return {};\n return code;\n}\nexport default function getArrowStyle(token, options) {\n const {\n componentCls,\n sizePopupArrow,\n borderRadiusXS,\n borderRadiusOuter,\n boxShadowPopoverArrow\n } = token;\n const {\n colorBg,\n contentRadius = token.borderRadiusLG,\n limitVerticalRadius,\n arrowDistance = 0,\n arrowPlacement = {\n left: true,\n right: true,\n top: true,\n bottom: true\n }\n } = options;\n const {\n dropdownArrowOffsetVertical,\n dropdownArrowOffset\n } = getArrowOffset({\n contentRadius,\n limitVerticalRadius\n });\n return {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({\n // ============================ Basic ============================\n [`${componentCls}-arrow`]: [Object.assign(Object.assign({\n position: 'absolute',\n zIndex: 1,\n display: 'block'\n }, roundedArrow(sizePopupArrow, borderRadiusXS, borderRadiusOuter, colorBg, boxShadowPopoverArrow)), {\n '&:before': {\n background: colorBg\n }\n })]\n }, isInject(!!arrowPlacement.top, {\n [[`&-placement-top ${componentCls}-arrow`, `&-placement-topLeft ${componentCls}-arrow`, `&-placement-topRight ${componentCls}-arrow`].join(',')]: {\n bottom: arrowDistance,\n transform: 'translateY(100%) rotate(180deg)'\n },\n [`&-placement-top ${componentCls}-arrow`]: {\n left: {\n _skip_check_: true,\n value: '50%'\n },\n transform: 'translateX(-50%) translateY(100%) rotate(180deg)'\n },\n [`&-placement-topLeft ${componentCls}-arrow`]: {\n left: {\n _skip_check_: true,\n value: dropdownArrowOffset\n }\n },\n [`&-placement-topRight ${componentCls}-arrow`]: {\n right: {\n _skip_check_: true,\n value: dropdownArrowOffset\n }\n }\n })), isInject(!!arrowPlacement.bottom, {\n [[`&-placement-bottom ${componentCls}-arrow`, `&-placement-bottomLeft ${componentCls}-arrow`, `&-placement-bottomRight ${componentCls}-arrow`].join(',')]: {\n top: arrowDistance,\n transform: `translateY(-100%)`\n },\n [`&-placement-bottom ${componentCls}-arrow`]: {\n left: {\n _skip_check_: true,\n value: '50%'\n },\n transform: `translateX(-50%) translateY(-100%)`\n },\n [`&-placement-bottomLeft ${componentCls}-arrow`]: {\n left: {\n _skip_check_: true,\n value: dropdownArrowOffset\n }\n },\n [`&-placement-bottomRight ${componentCls}-arrow`]: {\n right: {\n _skip_check_: true,\n value: dropdownArrowOffset\n }\n }\n })), isInject(!!arrowPlacement.left, {\n [[`&-placement-left ${componentCls}-arrow`, `&-placement-leftTop ${componentCls}-arrow`, `&-placement-leftBottom ${componentCls}-arrow`].join(',')]: {\n right: {\n _skip_check_: true,\n value: arrowDistance\n },\n transform: 'translateX(100%) rotate(90deg)'\n },\n [`&-placement-left ${componentCls}-arrow`]: {\n top: {\n _skip_check_: true,\n value: '50%'\n },\n transform: 'translateY(-50%) translateX(100%) rotate(90deg)'\n },\n [`&-placement-leftTop ${componentCls}-arrow`]: {\n top: dropdownArrowOffsetVertical\n },\n [`&-placement-leftBottom ${componentCls}-arrow`]: {\n bottom: dropdownArrowOffsetVertical\n }\n })), isInject(!!arrowPlacement.right, {\n [[`&-placement-right ${componentCls}-arrow`, `&-placement-rightTop ${componentCls}-arrow`, `&-placement-rightBottom ${componentCls}-arrow`].join(',')]: {\n left: {\n _skip_check_: true,\n value: arrowDistance\n },\n transform: 'translateX(-100%) rotate(-90deg)'\n },\n [`&-placement-right ${componentCls}-arrow`]: {\n top: {\n _skip_check_: true,\n value: '50%'\n },\n transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'\n },\n [`&-placement-rightTop ${componentCls}-arrow`]: {\n top: dropdownArrowOffsetVertical\n },\n [`&-placement-rightBottom ${componentCls}-arrow`]: {\n bottom: dropdownArrowOffsetVertical\n }\n }))\n };\n}","export const roundedArrow = (width, innerRadius, outerRadius, bgColor, boxShadow) => {\n const unitWidth = width / 2;\n const ax = 0;\n const ay = unitWidth;\n const bx = outerRadius * 1 / Math.sqrt(2);\n const by = unitWidth - outerRadius * (1 - 1 / Math.sqrt(2));\n const cx = unitWidth - innerRadius * (1 / Math.sqrt(2));\n const cy = outerRadius * (Math.sqrt(2) - 1) + innerRadius * (1 / Math.sqrt(2));\n const dx = 2 * unitWidth - cx;\n const dy = cy;\n const ex = 2 * unitWidth - bx;\n const ey = by;\n const fx = 2 * unitWidth - ax;\n const fy = ay;\n const shadowWidth = unitWidth * Math.sqrt(2) + outerRadius * (Math.sqrt(2) - 2);\n const polygonOffset = outerRadius * (Math.sqrt(2) - 1);\n return {\n pointerEvents: 'none',\n width,\n height: width,\n overflow: 'hidden',\n '&::before': {\n position: 'absolute',\n bottom: 0,\n insetInlineStart: 0,\n width,\n height: width / 2,\n background: bgColor,\n clipPath: {\n _multi_value_: true,\n value: [`polygon(${polygonOffset}px 100%, 50% ${polygonOffset}px, ${2 * unitWidth - polygonOffset}px 100%, ${polygonOffset}px 100%)`, `path('M ${ax} ${ay} A ${outerRadius} ${outerRadius} 0 0 0 ${bx} ${by} L ${cx} ${cy} A ${innerRadius} ${innerRadius} 0 0 1 ${dx} ${dy} L ${ex} ${ey} A ${outerRadius} ${outerRadius} 0 0 0 ${fx} ${fy} Z')`]\n },\n content: '\"\"'\n },\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n width: shadowWidth,\n height: shadowWidth,\n bottom: 0,\n insetInline: 0,\n margin: 'auto',\n borderRadius: {\n _skip_check_: true,\n value: `0 0 ${innerRadius}px 0`\n },\n transform: 'translateY(50%) rotate(-135deg)',\n boxShadow,\n zIndex: 0,\n background: 'transparent'\n }\n };\n};","import { createContext } from 'react';\nexport default /*#__PURE__*/createContext(null);","import * as React from 'react';\nimport classNames from 'classnames';\nvar TabPane = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var prefixCls = _ref.prefixCls,\n className = _ref.className,\n style = _ref.style,\n id = _ref.id,\n active = _ref.active,\n tabKey = _ref.tabKey,\n children = _ref.children;\n return /*#__PURE__*/React.createElement(\"div\", {\n id: id && \"\".concat(id, \"-panel-\").concat(tabKey),\n role: \"tabpanel\",\n tabIndex: active ? 0 : -1,\n \"aria-labelledby\": id && \"\".concat(id, \"-tab-\").concat(tabKey),\n \"aria-hidden\": !active,\n style: style,\n className: classNames(prefixCls, active && \"\".concat(prefixCls, \"-active\"), className),\n ref: ref\n }, children);\n});\nif (process.env.NODE_ENV !== 'production') {\n TabPane.displayName = 'TabPane';\n}\nexport default TabPane;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nvar _excluded = [\"key\", \"forceRender\", \"style\", \"className\"];\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport CSSMotion from 'rc-motion';\nimport TabContext from \"../TabContext\";\nimport TabPane from \"./TabPane\";\nexport default function TabPanelList(_ref) {\n var id = _ref.id,\n activeKey = _ref.activeKey,\n animated = _ref.animated,\n tabPosition = _ref.tabPosition,\n destroyInactiveTabPane = _ref.destroyInactiveTabPane;\n var _React$useContext = React.useContext(TabContext),\n prefixCls = _React$useContext.prefixCls,\n tabs = _React$useContext.tabs;\n var tabPaneAnimated = animated.tabPane;\n var tabPanePrefixCls = \"\".concat(prefixCls, \"-tabpane\");\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-content-holder\"))\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-content\"), \"\".concat(prefixCls, \"-content-\").concat(tabPosition), _defineProperty({}, \"\".concat(prefixCls, \"-content-animated\"), tabPaneAnimated))\n }, tabs.map(function (_ref2) {\n var key = _ref2.key,\n forceRender = _ref2.forceRender,\n paneStyle = _ref2.style,\n paneClassName = _ref2.className,\n restTabProps = _objectWithoutProperties(_ref2, _excluded);\n var active = key === activeKey;\n return /*#__PURE__*/React.createElement(CSSMotion, _extends({\n key: key,\n visible: active,\n forceRender: forceRender,\n removeOnLeave: !!destroyInactiveTabPane,\n leavedClassName: \"\".concat(tabPanePrefixCls, \"-hidden\")\n }, animated.tabPaneMotion), function (_ref3, ref) {\n var motionStyle = _ref3.style,\n motionClassName = _ref3.className;\n return /*#__PURE__*/React.createElement(TabPane, _extends({}, restTabProps, {\n prefixCls: tabPanePrefixCls,\n id: id,\n tabKey: key,\n animated: tabPaneAnimated,\n active: active,\n style: _objectSpread(_objectSpread({}, paneStyle), motionStyle),\n className: classNames(paneClassName, motionClassName),\n ref: ref\n }));\n });\n })));\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport { useMemo } from 'react';\nvar DEFAULT_SIZE = {\n width: 0,\n height: 0,\n left: 0,\n top: 0\n};\nexport default function useOffsets(tabs, tabSizes, holderScrollWidth) {\n return useMemo(function () {\n var _tabs$;\n var map = new Map();\n var lastOffset = tabSizes.get((_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key) || DEFAULT_SIZE;\n var rightOffset = lastOffset.left + lastOffset.width;\n for (var i = 0; i < tabs.length; i += 1) {\n var key = tabs[i].key;\n var data = tabSizes.get(key);\n\n // Reuse last one when not exist yet\n if (!data) {\n var _tabs;\n data = tabSizes.get((_tabs = tabs[i - 1]) === null || _tabs === void 0 ? void 0 : _tabs.key) || DEFAULT_SIZE;\n }\n var entity = map.get(key) || _objectSpread({}, data);\n\n // Right\n entity.right = rightOffset - entity.left - entity.width;\n\n // Update entity\n map.set(key, entity);\n }\n return map;\n }, [tabs.map(function (tab) {\n return tab.key;\n }).join('_'), tabSizes, holderScrollWidth]);\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nexport default function useSyncState(defaultState, onChange) {\n var stateRef = React.useRef(defaultState);\n var _React$useState = React.useState({}),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n forceUpdate = _React$useState2[1];\n function setState(updater) {\n var newValue = typeof updater === 'function' ? updater(stateRef.current) : updater;\n if (newValue !== stateRef.current) {\n onChange(newValue, stateRef.current);\n }\n stateRef.current = newValue;\n forceUpdate({});\n }\n return [stateRef.current, setState];\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport * as React from 'react';\nimport { useState, useRef } from 'react';\nvar MIN_SWIPE_DISTANCE = 0.1;\nvar STOP_SWIPE_DISTANCE = 0.01;\nvar REFRESH_INTERVAL = 20;\nvar SPEED_OFF_MULTIPLE = Math.pow(0.995, REFRESH_INTERVAL);\n\n// ================================= Hook =================================\nexport default function useTouchMove(ref, onOffset) {\n var _useState = useState(),\n _useState2 = _slicedToArray(_useState, 2),\n touchPosition = _useState2[0],\n setTouchPosition = _useState2[1];\n var _useState3 = useState(0),\n _useState4 = _slicedToArray(_useState3, 2),\n lastTimestamp = _useState4[0],\n setLastTimestamp = _useState4[1];\n var _useState5 = useState(0),\n _useState6 = _slicedToArray(_useState5, 2),\n lastTimeDiff = _useState6[0],\n setLastTimeDiff = _useState6[1];\n var _useState7 = useState(),\n _useState8 = _slicedToArray(_useState7, 2),\n lastOffset = _useState8[0],\n setLastOffset = _useState8[1];\n var motionRef = useRef();\n\n // ========================= Events =========================\n // >>> Touch events\n function onTouchStart(e) {\n var _e$touches$ = e.touches[0],\n screenX = _e$touches$.screenX,\n screenY = _e$touches$.screenY;\n setTouchPosition({\n x: screenX,\n y: screenY\n });\n window.clearInterval(motionRef.current);\n }\n function onTouchMove(e) {\n if (!touchPosition) return;\n e.preventDefault();\n var _e$touches$2 = e.touches[0],\n screenX = _e$touches$2.screenX,\n screenY = _e$touches$2.screenY;\n setTouchPosition({\n x: screenX,\n y: screenY\n });\n var offsetX = screenX - touchPosition.x;\n var offsetY = screenY - touchPosition.y;\n onOffset(offsetX, offsetY);\n var now = Date.now();\n setLastTimestamp(now);\n setLastTimeDiff(now - lastTimestamp);\n setLastOffset({\n x: offsetX,\n y: offsetY\n });\n }\n function onTouchEnd() {\n if (!touchPosition) return;\n setTouchPosition(null);\n setLastOffset(null);\n\n // Swipe if needed\n if (lastOffset) {\n var distanceX = lastOffset.x / lastTimeDiff;\n var distanceY = lastOffset.y / lastTimeDiff;\n var absX = Math.abs(distanceX);\n var absY = Math.abs(distanceY);\n\n // Skip swipe if low distance\n if (Math.max(absX, absY) < MIN_SWIPE_DISTANCE) return;\n var currentX = distanceX;\n var currentY = distanceY;\n motionRef.current = window.setInterval(function () {\n if (Math.abs(currentX) < STOP_SWIPE_DISTANCE && Math.abs(currentY) < STOP_SWIPE_DISTANCE) {\n window.clearInterval(motionRef.current);\n return;\n }\n currentX *= SPEED_OFF_MULTIPLE;\n currentY *= SPEED_OFF_MULTIPLE;\n onOffset(currentX * REFRESH_INTERVAL, currentY * REFRESH_INTERVAL);\n }, REFRESH_INTERVAL);\n }\n }\n\n // >>> Wheel event\n var lastWheelDirectionRef = useRef();\n function onWheel(e) {\n var deltaX = e.deltaX,\n deltaY = e.deltaY;\n\n // Convert both to x & y since wheel only happened on PC\n var mixed = 0;\n var absX = Math.abs(deltaX);\n var absY = Math.abs(deltaY);\n if (absX === absY) {\n mixed = lastWheelDirectionRef.current === 'x' ? deltaX : deltaY;\n } else if (absX > absY) {\n mixed = deltaX;\n lastWheelDirectionRef.current = 'x';\n } else {\n mixed = deltaY;\n lastWheelDirectionRef.current = 'y';\n }\n if (onOffset(-mixed, -mixed)) {\n e.preventDefault();\n }\n }\n\n // ========================= Effect =========================\n var touchEventsRef = useRef(null);\n touchEventsRef.current = {\n onTouchStart: onTouchStart,\n onTouchMove: onTouchMove,\n onTouchEnd: onTouchEnd,\n onWheel: onWheel\n };\n React.useEffect(function () {\n function onProxyTouchStart(e) {\n touchEventsRef.current.onTouchStart(e);\n }\n function onProxyTouchMove(e) {\n touchEventsRef.current.onTouchMove(e);\n }\n function onProxyTouchEnd(e) {\n touchEventsRef.current.onTouchEnd(e);\n }\n function onProxyWheel(e) {\n touchEventsRef.current.onWheel(e);\n }\n document.addEventListener('touchmove', onProxyTouchMove, {\n passive: false\n });\n document.addEventListener('touchend', onProxyTouchEnd, {\n passive: false\n });\n\n // No need to clean up since element removed\n ref.current.addEventListener('touchstart', onProxyTouchStart, {\n passive: false\n });\n ref.current.addEventListener('wheel', onProxyWheel);\n return function () {\n document.removeEventListener('touchmove', onProxyTouchMove);\n document.removeEventListener('touchend', onProxyTouchEnd);\n };\n }, []);\n}","import _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { useLayoutUpdateEffect } from \"rc-util/es/hooks/useLayoutEffect\";\nimport { useRef, useState } from 'react';\n\n/**\n * Help to merge callback with `useLayoutEffect`.\n * One time will only trigger once.\n */\nexport default function useUpdate(callback) {\n var _useState = useState(0),\n _useState2 = _slicedToArray(_useState, 2),\n count = _useState2[0],\n setCount = _useState2[1];\n var effectRef = useRef(0);\n var callbackRef = useRef();\n callbackRef.current = callback;\n\n // Trigger on `useLayoutEffect`\n useLayoutUpdateEffect(function () {\n var _callbackRef$current;\n (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef);\n }, [count]);\n\n // Trigger to update count\n return function () {\n if (effectRef.current !== count) {\n return;\n }\n effectRef.current += 1;\n setCount(effectRef.current);\n };\n}\nexport function useUpdateState(defaultState) {\n var batchRef = useRef([]);\n var _useState3 = useState({}),\n _useState4 = _slicedToArray(_useState3, 2),\n forceUpdate = _useState4[1];\n var state = useRef(typeof defaultState === 'function' ? defaultState() : defaultState);\n var flushUpdate = useUpdate(function () {\n var current = state.current;\n batchRef.current.forEach(function (callback) {\n current = callback(current);\n });\n batchRef.current = [];\n state.current = current;\n forceUpdate({});\n });\n function updater(callback) {\n batchRef.current.push(callback);\n flushUpdate();\n }\n return [state.current, updater];\n}","import { useMemo } from 'react';\nvar DEFAULT_SIZE = {\n width: 0,\n height: 0,\n left: 0,\n top: 0,\n right: 0\n};\nexport default function useVisibleRange(tabOffsets, visibleTabContentValue, transform, tabContentSizeValue, addNodeSizeValue, operationNodeSizeValue, _ref) {\n var tabs = _ref.tabs,\n tabPosition = _ref.tabPosition,\n rtl = _ref.rtl;\n var charUnit;\n var position;\n var transformSize;\n if (['top', 'bottom'].includes(tabPosition)) {\n charUnit = 'width';\n position = rtl ? 'right' : 'left';\n transformSize = Math.abs(transform);\n } else {\n charUnit = 'height';\n position = 'top';\n transformSize = -transform;\n }\n return useMemo(function () {\n if (!tabs.length) {\n return [0, 0];\n }\n var len = tabs.length;\n var endIndex = len;\n for (var i = 0; i < len; i += 1) {\n var offset = tabOffsets.get(tabs[i].key) || DEFAULT_SIZE;\n if (offset[position] + offset[charUnit] > transformSize + visibleTabContentValue) {\n endIndex = i - 1;\n break;\n }\n }\n var startIndex = 0;\n for (var _i = len - 1; _i >= 0; _i -= 1) {\n var _offset = tabOffsets.get(tabs[_i].key) || DEFAULT_SIZE;\n if (_offset[position] < transformSize) {\n startIndex = _i + 1;\n break;\n }\n }\n return startIndex >= endIndex ? [0, 0] : [startIndex, endIndex];\n }, [tabOffsets, visibleTabContentValue, tabContentSizeValue, addNodeSizeValue, operationNodeSizeValue, transformSize, tabPosition, tabs.map(function (tab) {\n return tab.key;\n }).join('_'), rtl]);\n}","/**\n * We trade Map as deps which may change with same value but different ref object.\n * We should make it as hash for deps\n * */\nexport function stringify(obj) {\n var tgt;\n if (obj instanceof Map) {\n tgt = {};\n obj.forEach(function (v, k) {\n tgt[k] = v;\n });\n } else {\n tgt = obj;\n }\n return JSON.stringify(tgt);\n}\nvar RC_TABS_DOUBLE_QUOTE = 'TABS_DQ';\nexport function genDataNodeKey(key) {\n return String(key).replace(/\"/g, RC_TABS_DOUBLE_QUOTE);\n}\nexport function getRemovable(closable, closeIcon, editable, disabled) {\n if (\n // Only editable tabs can be removed\n !editable ||\n // Tabs cannot be removed when disabled\n disabled ||\n // closable is false\n closable === false ||\n // If closable is undefined, the remove button should be hidden when closeIcon is null or false\n closable === undefined && (closeIcon === false || closeIcon === null)) {\n return false;\n }\n return true;\n}","import * as React from 'react';\nfunction AddButton(_ref, ref) {\n var prefixCls = _ref.prefixCls,\n editable = _ref.editable,\n locale = _ref.locale,\n style = _ref.style;\n if (!editable || editable.showAdd === false) {\n return null;\n }\n return /*#__PURE__*/React.createElement(\"button\", {\n ref: ref,\n type: \"button\",\n className: \"\".concat(prefixCls, \"-nav-add\"),\n style: style,\n \"aria-label\": (locale === null || locale === void 0 ? void 0 : locale.addAriaLabel) || 'Add tab',\n onClick: function onClick(event) {\n editable.onEdit('add', {\n event: event\n });\n }\n }, editable.addIcon || '+');\n}\nexport default /*#__PURE__*/React.forwardRef(AddButton);","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport * as React from 'react';\nvar ExtraContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {\n var position = _ref.position,\n prefixCls = _ref.prefixCls,\n extra = _ref.extra;\n if (!extra) return null;\n var content;\n\n // Parse extra\n var assertExtra = {};\n if (_typeof(extra) === 'object' && ! /*#__PURE__*/React.isValidElement(extra)) {\n assertExtra = extra;\n } else {\n assertExtra.right = extra;\n }\n if (position === 'right') {\n content = assertExtra.right;\n }\n if (position === 'left') {\n content = assertExtra.left;\n }\n return content ? /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(prefixCls, \"-extra-content\"),\n ref: ref\n }, content) : null;\n});\nif (process.env.NODE_ENV !== 'production') {\n ExtraContent.displayName = 'ExtraContent';\n}\nexport default ExtraContent;","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport classNames from 'classnames';\nimport Dropdown from 'rc-dropdown';\nimport Menu, { MenuItem } from 'rc-menu';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport * as React from 'react';\nimport { useEffect, useState } from 'react';\nimport AddButton from \"./AddButton\";\nimport { getRemovable } from \"../util\";\nfunction OperationNode(_ref, ref) {\n var prefixCls = _ref.prefixCls,\n id = _ref.id,\n tabs = _ref.tabs,\n locale = _ref.locale,\n mobile = _ref.mobile,\n _ref$moreIcon = _ref.moreIcon,\n moreIcon = _ref$moreIcon === void 0 ? 'More' : _ref$moreIcon,\n moreTransitionName = _ref.moreTransitionName,\n style = _ref.style,\n className = _ref.className,\n editable = _ref.editable,\n tabBarGutter = _ref.tabBarGutter,\n rtl = _ref.rtl,\n removeAriaLabel = _ref.removeAriaLabel,\n onTabClick = _ref.onTabClick,\n getPopupContainer = _ref.getPopupContainer,\n popupClassName = _ref.popupClassName;\n // ======================== Dropdown ========================\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n open = _useState2[0],\n setOpen = _useState2[1];\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n selectedKey = _useState4[0],\n setSelectedKey = _useState4[1];\n var popupId = \"\".concat(id, \"-more-popup\");\n var dropdownPrefix = \"\".concat(prefixCls, \"-dropdown\");\n var selectedItemId = selectedKey !== null ? \"\".concat(popupId, \"-\").concat(selectedKey) : null;\n var dropdownAriaLabel = locale === null || locale === void 0 ? void 0 : locale.dropdownAriaLabel;\n function onRemoveTab(event, key) {\n event.preventDefault();\n event.stopPropagation();\n editable.onEdit('remove', {\n key: key,\n event: event\n });\n }\n var menu = /*#__PURE__*/React.createElement(Menu, {\n onClick: function onClick(_ref2) {\n var key = _ref2.key,\n domEvent = _ref2.domEvent;\n onTabClick(key, domEvent);\n setOpen(false);\n },\n prefixCls: \"\".concat(dropdownPrefix, \"-menu\"),\n id: popupId,\n tabIndex: -1,\n role: \"listbox\",\n \"aria-activedescendant\": selectedItemId,\n selectedKeys: [selectedKey],\n \"aria-label\": dropdownAriaLabel !== undefined ? dropdownAriaLabel : 'expanded dropdown'\n }, tabs.map(function (tab) {\n var closable = tab.closable,\n disabled = tab.disabled,\n closeIcon = tab.closeIcon,\n key = tab.key,\n label = tab.label;\n var removable = getRemovable(closable, closeIcon, editable, disabled);\n return /*#__PURE__*/React.createElement(MenuItem, {\n key: key,\n id: \"\".concat(popupId, \"-\").concat(key),\n role: \"option\",\n \"aria-controls\": id && \"\".concat(id, \"-panel-\").concat(key),\n disabled: disabled\n }, /*#__PURE__*/React.createElement(\"span\", null, label), removable && /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n \"aria-label\": removeAriaLabel || 'remove',\n tabIndex: 0,\n className: \"\".concat(dropdownPrefix, \"-menu-item-remove\"),\n onClick: function onClick(e) {\n e.stopPropagation();\n onRemoveTab(e, key);\n }\n }, closeIcon || editable.removeIcon || '×'));\n }));\n function selectOffset(offset) {\n var enabledTabs = tabs.filter(function (tab) {\n return !tab.disabled;\n });\n var selectedIndex = enabledTabs.findIndex(function (tab) {\n return tab.key === selectedKey;\n }) || 0;\n var len = enabledTabs.length;\n for (var i = 0; i < len; i += 1) {\n selectedIndex = (selectedIndex + offset + len) % len;\n var tab = enabledTabs[selectedIndex];\n if (!tab.disabled) {\n setSelectedKey(tab.key);\n return;\n }\n }\n }\n function onKeyDown(e) {\n var which = e.which;\n if (!open) {\n if ([KeyCode.DOWN, KeyCode.SPACE, KeyCode.ENTER].includes(which)) {\n setOpen(true);\n e.preventDefault();\n }\n return;\n }\n switch (which) {\n case KeyCode.UP:\n selectOffset(-1);\n e.preventDefault();\n break;\n case KeyCode.DOWN:\n selectOffset(1);\n e.preventDefault();\n break;\n case KeyCode.ESC:\n setOpen(false);\n break;\n case KeyCode.SPACE:\n case KeyCode.ENTER:\n if (selectedKey !== null) onTabClick(selectedKey, e);\n break;\n }\n }\n\n // ========================= Effect =========================\n useEffect(function () {\n // We use query element here to avoid React strict warning\n var ele = document.getElementById(selectedItemId);\n if (ele && ele.scrollIntoView) {\n ele.scrollIntoView(false);\n }\n }, [selectedKey]);\n useEffect(function () {\n if (!open) {\n setSelectedKey(null);\n }\n }, [open]);\n\n // ========================= Render =========================\n var moreStyle = _defineProperty({}, rtl ? 'marginRight' : 'marginLeft', tabBarGutter);\n if (!tabs.length) {\n moreStyle.visibility = 'hidden';\n moreStyle.order = 1;\n }\n var overlayClassName = classNames(_defineProperty({}, \"\".concat(dropdownPrefix, \"-rtl\"), rtl));\n var moreNode = mobile ? null : /*#__PURE__*/React.createElement(Dropdown, {\n prefixCls: dropdownPrefix,\n overlay: menu,\n trigger: ['hover'],\n visible: tabs.length ? open : false,\n transitionName: moreTransitionName,\n onVisibleChange: setOpen,\n overlayClassName: classNames(overlayClassName, popupClassName),\n mouseEnterDelay: 0.1,\n mouseLeaveDelay: 0.1,\n getPopupContainer: getPopupContainer\n }, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n className: \"\".concat(prefixCls, \"-nav-more\"),\n style: moreStyle,\n tabIndex: -1,\n \"aria-hidden\": \"true\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": popupId,\n id: \"\".concat(id, \"-more\"),\n \"aria-expanded\": open,\n onKeyDown: onKeyDown\n }, moreIcon));\n return /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-nav-operations\"), className),\n style: style,\n ref: ref\n }, moreNode, /*#__PURE__*/React.createElement(AddButton, {\n prefixCls: prefixCls,\n locale: locale,\n editable: editable\n }));\n}\nexport default /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(OperationNode), function (_, next) {\n return (\n // https://github.com/ant-design/ant-design/issues/32544\n // We'd better remove syntactic sugar in `rc-menu` since this has perf issue\n next.tabMoving\n );\n});","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport classNames from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport * as React from 'react';\nimport { genDataNodeKey, getRemovable } from \"../util\";\nfunction TabNode(_ref) {\n var _classNames;\n var prefixCls = _ref.prefixCls,\n id = _ref.id,\n active = _ref.active,\n _ref$tab = _ref.tab,\n key = _ref$tab.key,\n label = _ref$tab.label,\n disabled = _ref$tab.disabled,\n closeIcon = _ref$tab.closeIcon,\n closable = _ref.closable,\n renderWrapper = _ref.renderWrapper,\n removeAriaLabel = _ref.removeAriaLabel,\n editable = _ref.editable,\n onClick = _ref.onClick,\n onFocus = _ref.onFocus,\n style = _ref.style;\n var tabPrefix = \"\".concat(prefixCls, \"-tab\");\n var removable = getRemovable(closable, closeIcon, editable, disabled);\n function onInternalClick(e) {\n if (disabled) {\n return;\n }\n onClick(e);\n }\n function onRemoveTab(event) {\n event.preventDefault();\n event.stopPropagation();\n editable.onEdit('remove', {\n key: key,\n event: event\n });\n }\n var node = /*#__PURE__*/React.createElement(\"div\", {\n key: key\n // ref={ref}\n ,\n \"data-node-key\": genDataNodeKey(key),\n className: classNames(tabPrefix, (_classNames = {}, _defineProperty(_classNames, \"\".concat(tabPrefix, \"-with-remove\"), removable), _defineProperty(_classNames, \"\".concat(tabPrefix, \"-active\"), active), _defineProperty(_classNames, \"\".concat(tabPrefix, \"-disabled\"), disabled), _classNames)),\n style: style,\n onClick: onInternalClick\n }, /*#__PURE__*/React.createElement(\"div\", {\n role: \"tab\",\n \"aria-selected\": active,\n id: id && \"\".concat(id, \"-tab-\").concat(key),\n className: \"\".concat(tabPrefix, \"-btn\"),\n \"aria-controls\": id && \"\".concat(id, \"-panel-\").concat(key),\n \"aria-disabled\": disabled,\n tabIndex: disabled ? null : 0,\n onClick: function onClick(e) {\n e.stopPropagation();\n onInternalClick(e);\n },\n onKeyDown: function onKeyDown(e) {\n if ([KeyCode.SPACE, KeyCode.ENTER].includes(e.which)) {\n e.preventDefault();\n onInternalClick(e);\n }\n },\n onFocus: onFocus\n }, label), removable && /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n \"aria-label\": removeAriaLabel || 'remove',\n tabIndex: 0,\n className: \"\".concat(tabPrefix, \"-remove\"),\n onClick: function onClick(e) {\n e.stopPropagation();\n onRemoveTab(e);\n }\n }, closeIcon || editable.removeIcon || '×'));\n return renderWrapper ? renderWrapper(node) : node;\n}\nexport default TabNode;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport raf from \"rc-util/es/raf\";\nimport { useComposeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nimport { useEffect, useRef, useState } from 'react';\nimport useOffsets from \"../hooks/useOffsets\";\nimport useSyncState from \"../hooks/useSyncState\";\nimport useTouchMove from \"../hooks/useTouchMove\";\nimport useUpdate, { useUpdateState } from \"../hooks/useUpdate\";\nimport useVisibleRange from \"../hooks/useVisibleRange\";\nimport TabContext from \"../TabContext\";\nimport { genDataNodeKey, stringify } from \"../util\";\nimport AddButton from \"./AddButton\";\nimport ExtraContent from \"./ExtraContent\";\nimport OperationNode from \"./OperationNode\";\nimport TabNode from \"./TabNode\";\nvar getSize = function getSize(refObj) {\n var _ref = refObj.current || {},\n _ref$offsetWidth = _ref.offsetWidth,\n offsetWidth = _ref$offsetWidth === void 0 ? 0 : _ref$offsetWidth,\n _ref$offsetHeight = _ref.offsetHeight,\n offsetHeight = _ref$offsetHeight === void 0 ? 0 : _ref$offsetHeight;\n return [offsetWidth, offsetHeight];\n};\n\n/**\n * Convert `SizeInfo` to unit value. Such as [123, 456] with `top` position get `123`\n */\nvar getUnitValue = function getUnitValue(size, tabPositionTopOrBottom) {\n return size[tabPositionTopOrBottom ? 0 : 1];\n};\nfunction TabNavList(props, ref) {\n var _classNames;\n var _React$useContext = React.useContext(TabContext),\n prefixCls = _React$useContext.prefixCls,\n tabs = _React$useContext.tabs;\n var className = props.className,\n style = props.style,\n id = props.id,\n animated = props.animated,\n activeKey = props.activeKey,\n rtl = props.rtl,\n extra = props.extra,\n editable = props.editable,\n locale = props.locale,\n tabPosition = props.tabPosition,\n tabBarGutter = props.tabBarGutter,\n children = props.children,\n onTabClick = props.onTabClick,\n onTabScroll = props.onTabScroll;\n var containerRef = useRef();\n var extraLeftRef = useRef();\n var extraRightRef = useRef();\n var tabsWrapperRef = useRef();\n var tabListRef = useRef();\n var operationsRef = useRef();\n var innerAddButtonRef = useRef();\n // const [getBtnRef, removeBtnRef] = useRefs();\n\n var tabPositionTopOrBottom = tabPosition === 'top' || tabPosition === 'bottom';\n var _useSyncState = useSyncState(0, function (next, prev) {\n if (tabPositionTopOrBottom && onTabScroll) {\n onTabScroll({\n direction: next > prev ? 'left' : 'right'\n });\n }\n }),\n _useSyncState2 = _slicedToArray(_useSyncState, 2),\n transformLeft = _useSyncState2[0],\n setTransformLeft = _useSyncState2[1];\n var _useSyncState3 = useSyncState(0, function (next, prev) {\n if (!tabPositionTopOrBottom && onTabScroll) {\n onTabScroll({\n direction: next > prev ? 'top' : 'bottom'\n });\n }\n }),\n _useSyncState4 = _slicedToArray(_useSyncState3, 2),\n transformTop = _useSyncState4[0],\n setTransformTop = _useSyncState4[1];\n var _useState = useState([0, 0]),\n _useState2 = _slicedToArray(_useState, 2),\n containerExcludeExtraSize = _useState2[0],\n setContainerExcludeExtraSize = _useState2[1];\n var _useState3 = useState([0, 0]),\n _useState4 = _slicedToArray(_useState3, 2),\n tabContentSize = _useState4[0],\n setTabContentSize = _useState4[1];\n var _useState5 = useState([0, 0]),\n _useState6 = _slicedToArray(_useState5, 2),\n addSize = _useState6[0],\n setAddSize = _useState6[1];\n var _useState7 = useState([0, 0]),\n _useState8 = _slicedToArray(_useState7, 2),\n operationSize = _useState8[0],\n setOperationSize = _useState8[1];\n var _useUpdateState = useUpdateState(new Map()),\n _useUpdateState2 = _slicedToArray(_useUpdateState, 2),\n tabSizes = _useUpdateState2[0],\n setTabSizes = _useUpdateState2[1];\n var tabOffsets = useOffsets(tabs, tabSizes, tabContentSize[0]);\n\n // ========================== Unit =========================\n var containerExcludeExtraSizeValue = getUnitValue(containerExcludeExtraSize, tabPositionTopOrBottom);\n var tabContentSizeValue = getUnitValue(tabContentSize, tabPositionTopOrBottom);\n var addSizeValue = getUnitValue(addSize, tabPositionTopOrBottom);\n var operationSizeValue = getUnitValue(operationSize, tabPositionTopOrBottom);\n var needScroll = containerExcludeExtraSizeValue < tabContentSizeValue + addSizeValue;\n var visibleTabContentValue = needScroll ? containerExcludeExtraSizeValue - operationSizeValue : containerExcludeExtraSizeValue - addSizeValue;\n\n // ========================== Util =========================\n var operationsHiddenClassName = \"\".concat(prefixCls, \"-nav-operations-hidden\");\n var transformMin = 0;\n var transformMax = 0;\n if (!tabPositionTopOrBottom) {\n transformMin = Math.min(0, visibleTabContentValue - tabContentSizeValue);\n transformMax = 0;\n } else if (rtl) {\n transformMin = 0;\n transformMax = Math.max(0, tabContentSizeValue - visibleTabContentValue);\n } else {\n transformMin = Math.min(0, visibleTabContentValue - tabContentSizeValue);\n transformMax = 0;\n }\n function alignInRange(value) {\n if (value < transformMin) {\n return transformMin;\n }\n if (value > transformMax) {\n return transformMax;\n }\n return value;\n }\n\n // ========================= Mobile ========================\n var touchMovingRef = useRef();\n var _useState9 = useState(),\n _useState10 = _slicedToArray(_useState9, 2),\n lockAnimation = _useState10[0],\n setLockAnimation = _useState10[1];\n function doLockAnimation() {\n setLockAnimation(Date.now());\n }\n function clearTouchMoving() {\n window.clearTimeout(touchMovingRef.current);\n }\n useTouchMove(tabsWrapperRef, function (offsetX, offsetY) {\n function doMove(setState, offset) {\n setState(function (value) {\n var newValue = alignInRange(value + offset);\n return newValue;\n });\n }\n\n // Skip scroll if place is enough\n if (!needScroll) {\n return false;\n }\n if (tabPositionTopOrBottom) {\n doMove(setTransformLeft, offsetX);\n } else {\n doMove(setTransformTop, offsetY);\n }\n clearTouchMoving();\n doLockAnimation();\n return true;\n });\n useEffect(function () {\n clearTouchMoving();\n if (lockAnimation) {\n touchMovingRef.current = window.setTimeout(function () {\n setLockAnimation(0);\n }, 100);\n }\n return clearTouchMoving;\n }, [lockAnimation]);\n\n // ===================== Visible Range =====================\n // Render tab node & collect tab offset\n var _useVisibleRange = useVisibleRange(tabOffsets,\n // Container\n visibleTabContentValue,\n // Transform\n tabPositionTopOrBottom ? transformLeft : transformTop,\n // Tabs\n tabContentSizeValue,\n // Add\n addSizeValue,\n // Operation\n operationSizeValue, _objectSpread(_objectSpread({}, props), {}, {\n tabs: tabs\n })),\n _useVisibleRange2 = _slicedToArray(_useVisibleRange, 2),\n visibleStart = _useVisibleRange2[0],\n visibleEnd = _useVisibleRange2[1];\n\n // ========================= Scroll ========================\n var scrollToTab = useEvent(function () {\n var key = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : activeKey;\n var tabOffset = tabOffsets.get(key) || {\n width: 0,\n height: 0,\n left: 0,\n right: 0,\n top: 0\n };\n if (tabPositionTopOrBottom) {\n // ============ Align with top & bottom ============\n var newTransform = transformLeft;\n\n // RTL\n if (rtl) {\n if (tabOffset.right < transformLeft) {\n newTransform = tabOffset.right;\n } else if (tabOffset.right + tabOffset.width > transformLeft + visibleTabContentValue) {\n newTransform = tabOffset.right + tabOffset.width - visibleTabContentValue;\n }\n }\n // LTR\n else if (tabOffset.left < -transformLeft) {\n newTransform = -tabOffset.left;\n } else if (tabOffset.left + tabOffset.width > -transformLeft + visibleTabContentValue) {\n newTransform = -(tabOffset.left + tabOffset.width - visibleTabContentValue);\n }\n setTransformTop(0);\n setTransformLeft(alignInRange(newTransform));\n } else {\n // ============ Align with left & right ============\n var _newTransform = transformTop;\n if (tabOffset.top < -transformTop) {\n _newTransform = -tabOffset.top;\n } else if (tabOffset.top + tabOffset.height > -transformTop + visibleTabContentValue) {\n _newTransform = -(tabOffset.top + tabOffset.height - visibleTabContentValue);\n }\n setTransformLeft(0);\n setTransformTop(alignInRange(_newTransform));\n }\n });\n\n // ========================== Tab ==========================\n var tabNodeStyle = {};\n if (tabPosition === 'top' || tabPosition === 'bottom') {\n tabNodeStyle[rtl ? 'marginRight' : 'marginLeft'] = tabBarGutter;\n } else {\n tabNodeStyle.marginTop = tabBarGutter;\n }\n var tabNodes = tabs.map(function (tab, i) {\n var key = tab.key;\n return /*#__PURE__*/React.createElement(TabNode, {\n id: id,\n prefixCls: prefixCls,\n key: key,\n tab: tab\n /* first node should not have margin left */,\n style: i === 0 ? undefined : tabNodeStyle,\n closable: tab.closable,\n editable: editable,\n active: key === activeKey,\n renderWrapper: children,\n removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,\n onClick: function onClick(e) {\n onTabClick(key, e);\n },\n onFocus: function onFocus() {\n scrollToTab(key);\n doLockAnimation();\n if (!tabsWrapperRef.current) {\n return;\n }\n // Focus element will make scrollLeft change which we should reset back\n if (!rtl) {\n tabsWrapperRef.current.scrollLeft = 0;\n }\n tabsWrapperRef.current.scrollTop = 0;\n }\n });\n });\n\n // Update buttons records\n var updateTabSizes = function updateTabSizes() {\n return setTabSizes(function () {\n var newSizes = new Map();\n tabs.forEach(function (_ref2) {\n var _tabListRef$current;\n var key = _ref2.key;\n var btnNode = (_tabListRef$current = tabListRef.current) === null || _tabListRef$current === void 0 ? void 0 : _tabListRef$current.querySelector(\"[data-node-key=\\\"\".concat(genDataNodeKey(key), \"\\\"]\"));\n if (btnNode) {\n newSizes.set(key, {\n width: btnNode.offsetWidth,\n height: btnNode.offsetHeight,\n left: btnNode.offsetLeft,\n top: btnNode.offsetTop\n });\n }\n });\n return newSizes;\n });\n };\n useEffect(function () {\n updateTabSizes();\n }, [tabs.map(function (tab) {\n return tab.key;\n }).join('_')]);\n var onListHolderResize = useUpdate(function () {\n // Update wrapper records\n var containerSize = getSize(containerRef);\n var extraLeftSize = getSize(extraLeftRef);\n var extraRightSize = getSize(extraRightRef);\n setContainerExcludeExtraSize([containerSize[0] - extraLeftSize[0] - extraRightSize[0], containerSize[1] - extraLeftSize[1] - extraRightSize[1]]);\n var newAddSize = getSize(innerAddButtonRef);\n setAddSize(newAddSize);\n var newOperationSize = getSize(operationsRef);\n setOperationSize(newOperationSize);\n\n // Which includes add button size\n var tabContentFullSize = getSize(tabListRef);\n setTabContentSize([tabContentFullSize[0] - newAddSize[0], tabContentFullSize[1] - newAddSize[1]]);\n\n // Update buttons records\n updateTabSizes();\n });\n\n // ======================== Dropdown =======================\n var startHiddenTabs = tabs.slice(0, visibleStart);\n var endHiddenTabs = tabs.slice(visibleEnd + 1);\n var hiddenTabs = [].concat(_toConsumableArray(startHiddenTabs), _toConsumableArray(endHiddenTabs));\n\n // =================== Link & Operations ===================\n var _useState11 = useState(),\n _useState12 = _slicedToArray(_useState11, 2),\n inkStyle = _useState12[0],\n setInkStyle = _useState12[1];\n var activeTabOffset = tabOffsets.get(activeKey);\n\n // Delay set ink style to avoid remove tab blink\n var inkBarRafRef = useRef();\n function cleanInkBarRaf() {\n raf.cancel(inkBarRafRef.current);\n }\n useEffect(function () {\n var newInkStyle = {};\n if (activeTabOffset) {\n if (tabPositionTopOrBottom) {\n if (rtl) {\n newInkStyle.right = activeTabOffset.right;\n } else {\n newInkStyle.left = activeTabOffset.left;\n }\n newInkStyle.width = activeTabOffset.width;\n } else {\n newInkStyle.top = activeTabOffset.top;\n newInkStyle.height = activeTabOffset.height;\n }\n }\n cleanInkBarRaf();\n inkBarRafRef.current = raf(function () {\n setInkStyle(newInkStyle);\n });\n return cleanInkBarRaf;\n }, [activeTabOffset, tabPositionTopOrBottom, rtl]);\n\n // ========================= Effect ========================\n useEffect(function () {\n scrollToTab();\n // eslint-disable-next-line\n }, [activeKey, transformMin, transformMax, stringify(activeTabOffset), stringify(tabOffsets), tabPositionTopOrBottom]);\n\n // Should recalculate when rtl changed\n useEffect(function () {\n onListHolderResize();\n // eslint-disable-next-line\n }, [rtl]);\n\n // ========================= Render ========================\n var hasDropdown = !!hiddenTabs.length;\n var wrapPrefix = \"\".concat(prefixCls, \"-nav-wrap\");\n var pingLeft;\n var pingRight;\n var pingTop;\n var pingBottom;\n if (tabPositionTopOrBottom) {\n if (rtl) {\n pingRight = transformLeft > 0;\n pingLeft = transformLeft !== transformMax;\n } else {\n pingLeft = transformLeft < 0;\n pingRight = transformLeft !== transformMin;\n }\n } else {\n pingTop = transformTop < 0;\n pingBottom = transformTop !== transformMin;\n }\n return /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onListHolderResize\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: useComposeRef(ref, containerRef),\n role: \"tablist\",\n className: classNames(\"\".concat(prefixCls, \"-nav\"), className),\n style: style,\n onKeyDown: function onKeyDown() {\n // No need animation when use keyboard\n doLockAnimation();\n }\n }, /*#__PURE__*/React.createElement(ExtraContent, {\n ref: extraLeftRef,\n position: \"left\",\n extra: extra,\n prefixCls: prefixCls\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(wrapPrefix, (_classNames = {}, _defineProperty(_classNames, \"\".concat(wrapPrefix, \"-ping-left\"), pingLeft), _defineProperty(_classNames, \"\".concat(wrapPrefix, \"-ping-right\"), pingRight), _defineProperty(_classNames, \"\".concat(wrapPrefix, \"-ping-top\"), pingTop), _defineProperty(_classNames, \"\".concat(wrapPrefix, \"-ping-bottom\"), pingBottom), _classNames)),\n ref: tabsWrapperRef\n }, /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onListHolderResize\n }, /*#__PURE__*/React.createElement(\"div\", {\n ref: tabListRef,\n className: \"\".concat(prefixCls, \"-nav-list\"),\n style: {\n transform: \"translate(\".concat(transformLeft, \"px, \").concat(transformTop, \"px)\"),\n transition: lockAnimation ? 'none' : undefined\n }\n }, tabNodes, /*#__PURE__*/React.createElement(AddButton, {\n ref: innerAddButtonRef,\n prefixCls: prefixCls,\n locale: locale,\n editable: editable,\n style: _objectSpread(_objectSpread({}, tabNodes.length === 0 ? undefined : tabNodeStyle), {}, {\n visibility: hasDropdown ? 'hidden' : null\n })\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: classNames(\"\".concat(prefixCls, \"-ink-bar\"), _defineProperty({}, \"\".concat(prefixCls, \"-ink-bar-animated\"), animated.inkBar)),\n style: inkStyle\n })))), /*#__PURE__*/React.createElement(OperationNode, _extends({}, props, {\n removeAriaLabel: locale === null || locale === void 0 ? void 0 : locale.removeAriaLabel,\n ref: operationsRef,\n prefixCls: prefixCls,\n tabs: hiddenTabs,\n className: !hasDropdown && operationsHiddenClassName,\n tabMoving: !!lockAnimation\n })), /*#__PURE__*/React.createElement(ExtraContent, {\n ref: extraRightRef,\n position: \"right\",\n extra: extra,\n prefixCls: prefixCls\n })));\n /* eslint-enable */\n}\n\nexport default /*#__PURE__*/React.forwardRef(TabNavList);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"renderTabBar\"],\n _excluded2 = [\"label\", \"key\"];\n// zombieJ: To compatible with `renderTabBar` usage.\n\nimport * as React from 'react';\nimport TabNavList from '.';\nimport TabContext from \"../TabContext\";\nimport TabPane from \"../TabPanelList/TabPane\";\n// We have to create a TabNavList components.\nexport default function TabNavListWrapper(_ref) {\n var renderTabBar = _ref.renderTabBar,\n restProps = _objectWithoutProperties(_ref, _excluded);\n var _React$useContext = React.useContext(TabContext),\n tabs = _React$useContext.tabs;\n if (renderTabBar) {\n var tabNavBarProps = _objectSpread(_objectSpread({}, restProps), {}, {\n // Legacy support. We do not use this actually\n panes: tabs.map(function (_ref2) {\n var label = _ref2.label,\n key = _ref2.key,\n restTabProps = _objectWithoutProperties(_ref2, _excluded2);\n return /*#__PURE__*/React.createElement(TabPane, _extends({\n tab: label,\n key: key,\n tabKey: key\n }, restTabProps));\n })\n });\n return renderTabBar(tabNavBarProps, TabNavList);\n }\n return /*#__PURE__*/React.createElement(TabNavList, restProps);\n}","import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport warning from \"rc-util/es/warning\";\nexport default function useAnimateConfig() {\n var animated = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {\n inkBar: true,\n tabPane: false\n };\n var mergedAnimated;\n if (animated === false) {\n mergedAnimated = {\n inkBar: false,\n tabPane: false\n };\n } else if (animated === true) {\n mergedAnimated = {\n inkBar: true,\n tabPane: false\n };\n } else {\n mergedAnimated = _objectSpread({\n inkBar: true\n }, _typeof(animated) === 'object' ? animated : {});\n }\n\n // Enable tabPane animation if provide motion\n if (mergedAnimated.tabPaneMotion && mergedAnimated.tabPane === undefined) {\n mergedAnimated.tabPane = true;\n }\n if (!mergedAnimated.tabPaneMotion && mergedAnimated.tabPane) {\n if (process.env.NODE_ENV !== 'production') {\n warning(false, '`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work.');\n }\n mergedAnimated.tabPane = false;\n }\n return mergedAnimated;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"id\", \"prefixCls\", \"className\", \"items\", \"direction\", \"activeKey\", \"defaultActiveKey\", \"editable\", \"animated\", \"tabPosition\", \"tabBarGutter\", \"tabBarStyle\", \"tabBarExtraContent\", \"locale\", \"moreIcon\", \"moreTransitionName\", \"destroyInactiveTabPane\", \"renderTabBar\", \"onChange\", \"onTabClick\", \"onTabScroll\", \"getPopupContainer\", \"popupClassName\"];\n// Accessibility https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Tab_Role\nimport * as React from 'react';\nimport { useEffect, useState } from 'react';\nimport classNames from 'classnames';\nimport isMobile from \"rc-util/es/isMobile\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport TabPanelList from \"./TabPanelList\";\nimport TabContext from \"./TabContext\";\nimport TabNavListWrapper from \"./TabNavList/Wrapper\";\nimport useAnimateConfig from \"./hooks/useAnimateConfig\";\n\n/**\n * Should added antd:\n * - type\n *\n * Removed:\n * - onNextClick\n * - onPrevClick\n * - keyboard\n */\n\n// Used for accessibility\nvar uuid = 0;\nfunction Tabs(_ref, ref) {\n var _classNames;\n var id = _ref.id,\n _ref$prefixCls = _ref.prefixCls,\n prefixCls = _ref$prefixCls === void 0 ? 'rc-tabs' : _ref$prefixCls,\n className = _ref.className,\n items = _ref.items,\n direction = _ref.direction,\n activeKey = _ref.activeKey,\n defaultActiveKey = _ref.defaultActiveKey,\n editable = _ref.editable,\n animated = _ref.animated,\n _ref$tabPosition = _ref.tabPosition,\n tabPosition = _ref$tabPosition === void 0 ? 'top' : _ref$tabPosition,\n tabBarGutter = _ref.tabBarGutter,\n tabBarStyle = _ref.tabBarStyle,\n tabBarExtraContent = _ref.tabBarExtraContent,\n locale = _ref.locale,\n moreIcon = _ref.moreIcon,\n moreTransitionName = _ref.moreTransitionName,\n destroyInactiveTabPane = _ref.destroyInactiveTabPane,\n renderTabBar = _ref.renderTabBar,\n onChange = _ref.onChange,\n onTabClick = _ref.onTabClick,\n onTabScroll = _ref.onTabScroll,\n getPopupContainer = _ref.getPopupContainer,\n popupClassName = _ref.popupClassName,\n restProps = _objectWithoutProperties(_ref, _excluded);\n var tabs = React.useMemo(function () {\n return (items || []).filter(function (item) {\n return item && _typeof(item) === 'object' && 'key' in item;\n });\n }, [items]);\n var rtl = direction === 'rtl';\n var mergedAnimated = useAnimateConfig(animated);\n\n // ======================== Mobile ========================\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n mobile = _useState2[0],\n setMobile = _useState2[1];\n useEffect(function () {\n // Only update on the client side\n setMobile(isMobile());\n }, []);\n\n // ====================== Active Key ======================\n var _useMergedState = useMergedState(function () {\n var _tabs$;\n return (_tabs$ = tabs[0]) === null || _tabs$ === void 0 ? void 0 : _tabs$.key;\n }, {\n value: activeKey,\n defaultValue: defaultActiveKey\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n mergedActiveKey = _useMergedState2[0],\n setMergedActiveKey = _useMergedState2[1];\n var _useState3 = useState(function () {\n return tabs.findIndex(function (tab) {\n return tab.key === mergedActiveKey;\n });\n }),\n _useState4 = _slicedToArray(_useState3, 2),\n activeIndex = _useState4[0],\n setActiveIndex = _useState4[1];\n\n // Reset active key if not exist anymore\n useEffect(function () {\n var newActiveIndex = tabs.findIndex(function (tab) {\n return tab.key === mergedActiveKey;\n });\n if (newActiveIndex === -1) {\n var _tabs$newActiveIndex;\n newActiveIndex = Math.max(0, Math.min(activeIndex, tabs.length - 1));\n setMergedActiveKey((_tabs$newActiveIndex = tabs[newActiveIndex]) === null || _tabs$newActiveIndex === void 0 ? void 0 : _tabs$newActiveIndex.key);\n }\n setActiveIndex(newActiveIndex);\n }, [tabs.map(function (tab) {\n return tab.key;\n }).join('_'), mergedActiveKey, activeIndex]);\n\n // ===================== Accessibility ====================\n var _useMergedState3 = useMergedState(null, {\n value: id\n }),\n _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n mergedId = _useMergedState4[0],\n setMergedId = _useMergedState4[1];\n\n // Async generate id to avoid ssr mapping failed\n useEffect(function () {\n if (!id) {\n setMergedId(\"rc-tabs-\".concat(process.env.NODE_ENV === 'test' ? 'test' : uuid));\n uuid += 1;\n }\n }, []);\n\n // ======================== Events ========================\n function onInternalTabClick(key, e) {\n onTabClick === null || onTabClick === void 0 ? void 0 : onTabClick(key, e);\n var isActiveChanged = key !== mergedActiveKey;\n setMergedActiveKey(key);\n if (isActiveChanged) {\n onChange === null || onChange === void 0 ? void 0 : onChange(key);\n }\n }\n\n // ======================== Render ========================\n var sharedProps = {\n id: mergedId,\n activeKey: mergedActiveKey,\n animated: mergedAnimated,\n tabPosition: tabPosition,\n rtl: rtl,\n mobile: mobile\n };\n var tabNavBar;\n var tabNavBarProps = _objectSpread(_objectSpread({}, sharedProps), {}, {\n editable: editable,\n locale: locale,\n moreIcon: moreIcon,\n moreTransitionName: moreTransitionName,\n tabBarGutter: tabBarGutter,\n onTabClick: onInternalTabClick,\n onTabScroll: onTabScroll,\n extra: tabBarExtraContent,\n style: tabBarStyle,\n panes: null,\n getPopupContainer: getPopupContainer,\n popupClassName: popupClassName\n });\n return /*#__PURE__*/React.createElement(TabContext.Provider, {\n value: {\n tabs: tabs,\n prefixCls: prefixCls\n }\n }, /*#__PURE__*/React.createElement(\"div\", _extends({\n ref: ref,\n id: id,\n className: classNames(prefixCls, \"\".concat(prefixCls, \"-\").concat(tabPosition), (_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-mobile\"), mobile), _defineProperty(_classNames, \"\".concat(prefixCls, \"-editable\"), editable), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), rtl), _classNames), className)\n }, restProps), tabNavBar, /*#__PURE__*/React.createElement(TabNavListWrapper, _extends({}, tabNavBarProps, {\n renderTabBar: renderTabBar\n })), /*#__PURE__*/React.createElement(TabPanelList, _extends({\n destroyInactiveTabPane: destroyInactiveTabPane\n }, sharedProps, {\n animated: mergedAnimated\n }))));\n}\nvar ForwardTabs = /*#__PURE__*/React.forwardRef(Tabs);\nif (process.env.NODE_ENV !== 'production') {\n ForwardTabs.displayName = 'Tabs';\n}\nexport default ForwardTabs;","import Tabs from \"./Tabs\";\nexport default Tabs;","const TabPane = () => null;\nif (process.env.NODE_ENV !== 'production') {\n TabPane.displayName = 'DeprecatedTabPane';\n}\nexport default TabPane;","import { getTransitionName } from '../../_util/motion';\nconst motion = {\n motionAppear: false,\n motionEnter: true,\n motionLeave: true\n};\nexport default function useAnimateConfig(prefixCls) {\n let animated = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {\n inkBar: true,\n tabPane: false\n };\n let mergedAnimated;\n if (animated === false) {\n mergedAnimated = {\n inkBar: false,\n tabPane: false\n };\n } else if (animated === true) {\n mergedAnimated = {\n inkBar: true,\n tabPane: true\n };\n } else {\n mergedAnimated = Object.assign({\n inkBar: true\n }, typeof animated === 'object' ? animated : {});\n }\n if (mergedAnimated.tabPane) {\n mergedAnimated.tabPaneMotion = Object.assign(Object.assign({}, motion), {\n motionName: getTransitionName(prefixCls, 'switch')\n });\n }\n return mergedAnimated;\n}","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport warning from '../../_util/warning';\nfunction filter(items) {\n return items.filter(item => item);\n}\nexport default function useLegacyItems(items, children) {\n if (items) {\n return items;\n }\n process.env.NODE_ENV !== \"production\" ? warning(!children, 'Tabs', 'Tabs.TabPane is deprecated. Please use `items` directly.') : void 0;\n const childrenItems = toArray(children).map(node => {\n if ( /*#__PURE__*/React.isValidElement(node)) {\n const {\n key,\n props\n } = node;\n const _a = props || {},\n {\n tab\n } = _a,\n restProps = __rest(_a, [\"tab\"]);\n const item = Object.assign(Object.assign({\n key: String(key)\n }, restProps), {\n label: tab\n });\n return item;\n }\n return null;\n });\n return filter(childrenItems);\n}","import { initSlideMotion } from '../../style/motion';\nconst genMotionStyle = token => {\n const {\n componentCls,\n motionDurationSlow\n } = token;\n return [{\n [componentCls]: {\n [`${componentCls}-switch`]: {\n '&-appear, &-enter': {\n transition: 'none',\n '&-start': {\n opacity: 0\n },\n '&-active': {\n opacity: 1,\n transition: `opacity ${motionDurationSlow}`\n }\n },\n '&-leave': {\n position: 'absolute',\n transition: 'none',\n inset: 0,\n '&-start': {\n opacity: 1\n },\n '&-active': {\n opacity: 0,\n transition: `opacity ${motionDurationSlow}`\n }\n }\n }\n }\n },\n // Follow code may reuse in other components\n [initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down')]];\n};\nexport default genMotionStyle;","import { genFocusStyle, resetComponent, textEllipsis } from '../../style';\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\nimport genMotionStyle from './motion';\nconst genCardStyle = token => {\n const {\n componentCls,\n tabsCardPadding,\n cardBg,\n cardGutter,\n colorBorderSecondary,\n itemSelectedColor\n } = token;\n return {\n [`${componentCls}-card`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n margin: 0,\n padding: tabsCardPadding,\n background: cardBg,\n border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseInOut}`\n },\n [`${componentCls}-tab-active`]: {\n color: itemSelectedColor,\n background: token.colorBgContainer\n },\n [`${componentCls}-ink-bar`]: {\n visibility: 'hidden'\n }\n },\n // ========================== Top & Bottom ==========================\n [`&${componentCls}-top, &${componentCls}-bottom`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab + ${componentCls}-tab`]: {\n marginLeft: {\n _skip_check_: true,\n value: `${cardGutter}px`\n }\n }\n }\n },\n [`&${componentCls}-top`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`\n },\n [`${componentCls}-tab-active`]: {\n borderBottomColor: token.colorBgContainer\n }\n }\n },\n [`&${componentCls}-bottom`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n borderRadius: `0 0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px`\n },\n [`${componentCls}-tab-active`]: {\n borderTopColor: token.colorBgContainer\n }\n }\n },\n // ========================== Left & Right ==========================\n [`&${componentCls}-left, &${componentCls}-right`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab + ${componentCls}-tab`]: {\n marginTop: `${cardGutter}px`\n }\n }\n },\n [`&${componentCls}-left`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n borderRadius: {\n _skip_check_: true,\n value: `${token.borderRadiusLG}px 0 0 ${token.borderRadiusLG}px`\n }\n },\n [`${componentCls}-tab-active`]: {\n borderRightColor: {\n _skip_check_: true,\n value: token.colorBgContainer\n }\n }\n }\n },\n [`&${componentCls}-right`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n borderRadius: {\n _skip_check_: true,\n value: `0 ${token.borderRadiusLG}px ${token.borderRadiusLG}px 0`\n }\n },\n [`${componentCls}-tab-active`]: {\n borderLeftColor: {\n _skip_check_: true,\n value: token.colorBgContainer\n }\n }\n }\n }\n }\n };\n};\nconst genDropdownStyle = token => {\n const {\n componentCls,\n itemHoverColor,\n dropdownEdgeChildVerticalPadding\n } = token;\n return {\n [`${componentCls}-dropdown`]: Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n top: -9999,\n left: {\n _skip_check_: true,\n value: -9999\n },\n zIndex: token.zIndexPopup,\n display: 'block',\n '&-hidden': {\n display: 'none'\n },\n [`${componentCls}-dropdown-menu`]: {\n maxHeight: token.tabsDropdownHeight,\n margin: 0,\n padding: `${dropdownEdgeChildVerticalPadding}px 0`,\n overflowX: 'hidden',\n overflowY: 'auto',\n textAlign: {\n _skip_check_: true,\n value: 'left'\n },\n listStyleType: 'none',\n backgroundColor: token.colorBgContainer,\n backgroundClip: 'padding-box',\n borderRadius: token.borderRadiusLG,\n outline: 'none',\n boxShadow: token.boxShadowSecondary,\n '&-item': Object.assign(Object.assign({}, textEllipsis), {\n display: 'flex',\n alignItems: 'center',\n minWidth: token.tabsDropdownWidth,\n margin: 0,\n padding: `${token.paddingXXS}px ${token.paddingSM}px`,\n color: token.colorText,\n fontWeight: 'normal',\n fontSize: token.fontSize,\n lineHeight: token.lineHeight,\n cursor: 'pointer',\n transition: `all ${token.motionDurationSlow}`,\n '> span': {\n flex: 1,\n whiteSpace: 'nowrap'\n },\n '&-remove': {\n flex: 'none',\n marginLeft: {\n _skip_check_: true,\n value: token.marginSM\n },\n color: token.colorTextDescription,\n fontSize: token.fontSizeSM,\n background: 'transparent',\n border: 0,\n cursor: 'pointer',\n '&:hover': {\n color: itemHoverColor\n }\n },\n '&:hover': {\n background: token.controlItemBgHover\n },\n '&-disabled': {\n '&, &:hover': {\n color: token.colorTextDisabled,\n background: 'transparent',\n cursor: 'not-allowed'\n }\n }\n })\n }\n })\n };\n};\nconst genPositionStyle = token => {\n const {\n componentCls,\n margin,\n colorBorderSecondary,\n horizontalMargin,\n verticalItemPadding,\n verticalItemMargin\n } = token;\n return {\n // ========================== Top & Bottom ==========================\n [`${componentCls}-top, ${componentCls}-bottom`]: {\n flexDirection: 'column',\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n margin: horizontalMargin,\n '&::before': {\n position: 'absolute',\n right: {\n _skip_check_: true,\n value: 0\n },\n left: {\n _skip_check_: true,\n value: 0\n },\n borderBottom: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,\n content: \"''\"\n },\n [`${componentCls}-ink-bar`]: {\n height: token.lineWidthBold,\n '&-animated': {\n transition: `width ${token.motionDurationSlow}, left ${token.motionDurationSlow},\n right ${token.motionDurationSlow}`\n }\n },\n [`${componentCls}-nav-wrap`]: {\n '&::before, &::after': {\n top: 0,\n bottom: 0,\n width: token.controlHeight\n },\n '&::before': {\n left: {\n _skip_check_: true,\n value: 0\n },\n boxShadow: token.boxShadowTabsOverflowLeft\n },\n '&::after': {\n right: {\n _skip_check_: true,\n value: 0\n },\n boxShadow: token.boxShadowTabsOverflowRight\n },\n [`&${componentCls}-nav-wrap-ping-left::before`]: {\n opacity: 1\n },\n [`&${componentCls}-nav-wrap-ping-right::after`]: {\n opacity: 1\n }\n }\n }\n },\n [`${componentCls}-top`]: {\n [`> ${componentCls}-nav,\n > div > ${componentCls}-nav`]: {\n '&::before': {\n bottom: 0\n },\n [`${componentCls}-ink-bar`]: {\n bottom: 0\n }\n }\n },\n [`${componentCls}-bottom`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n order: 1,\n marginTop: `${margin}px`,\n marginBottom: 0,\n '&::before': {\n top: 0\n },\n [`${componentCls}-ink-bar`]: {\n top: 0\n }\n },\n [`> ${componentCls}-content-holder, > div > ${componentCls}-content-holder`]: {\n order: 0\n }\n },\n // ========================== Left & Right ==========================\n [`${componentCls}-left, ${componentCls}-right`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n flexDirection: 'column',\n minWidth: token.controlHeight * 1.25,\n // >>>>>>>>>>> Tab\n [`${componentCls}-tab`]: {\n padding: verticalItemPadding,\n textAlign: 'center'\n },\n [`${componentCls}-tab + ${componentCls}-tab`]: {\n margin: verticalItemMargin\n },\n // >>>>>>>>>>> Nav\n [`${componentCls}-nav-wrap`]: {\n flexDirection: 'column',\n '&::before, &::after': {\n right: {\n _skip_check_: true,\n value: 0\n },\n left: {\n _skip_check_: true,\n value: 0\n },\n height: token.controlHeight\n },\n '&::before': {\n top: 0,\n boxShadow: token.boxShadowTabsOverflowTop\n },\n '&::after': {\n bottom: 0,\n boxShadow: token.boxShadowTabsOverflowBottom\n },\n [`&${componentCls}-nav-wrap-ping-top::before`]: {\n opacity: 1\n },\n [`&${componentCls}-nav-wrap-ping-bottom::after`]: {\n opacity: 1\n }\n },\n // >>>>>>>>>>> Ink Bar\n [`${componentCls}-ink-bar`]: {\n width: token.lineWidthBold,\n '&-animated': {\n transition: `height ${token.motionDurationSlow}, top ${token.motionDurationSlow}`\n }\n },\n [`${componentCls}-nav-list, ${componentCls}-nav-operations`]: {\n flex: '1 0 auto',\n flexDirection: 'column'\n }\n }\n },\n [`${componentCls}-left`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-ink-bar`]: {\n right: {\n _skip_check_: true,\n value: 0\n }\n }\n },\n [`> ${componentCls}-content-holder, > div > ${componentCls}-content-holder`]: {\n marginLeft: {\n _skip_check_: true,\n value: `-${token.lineWidth}px`\n },\n borderLeft: {\n _skip_check_: true,\n value: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`\n },\n [`> ${componentCls}-content > ${componentCls}-tabpane`]: {\n paddingLeft: {\n _skip_check_: true,\n value: token.paddingLG\n }\n }\n }\n },\n [`${componentCls}-right`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n order: 1,\n [`${componentCls}-ink-bar`]: {\n left: {\n _skip_check_: true,\n value: 0\n }\n }\n },\n [`> ${componentCls}-content-holder, > div > ${componentCls}-content-holder`]: {\n order: 0,\n marginRight: {\n _skip_check_: true,\n value: -token.lineWidth\n },\n borderRight: {\n _skip_check_: true,\n value: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`\n },\n [`> ${componentCls}-content > ${componentCls}-tabpane`]: {\n paddingRight: {\n _skip_check_: true,\n value: token.paddingLG\n }\n }\n }\n }\n };\n};\nconst genSizeStyle = token => {\n const {\n componentCls,\n cardPaddingSM,\n cardPaddingLG,\n horizontalItemPaddingSM,\n horizontalItemPaddingLG\n } = token;\n return {\n [componentCls]: {\n '&-small': {\n [`> ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n padding: horizontalItemPaddingSM,\n fontSize: token.titleFontSizeSM\n }\n }\n },\n '&-large': {\n [`> ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n padding: horizontalItemPaddingLG,\n fontSize: token.titleFontSizeLG\n }\n }\n }\n },\n [`${componentCls}-card`]: {\n [`&${componentCls}-small`]: {\n [`> ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n padding: cardPaddingSM\n }\n },\n [`&${componentCls}-bottom`]: {\n [`> ${componentCls}-nav ${componentCls}-tab`]: {\n borderRadius: `0 0 ${token.borderRadius}px ${token.borderRadius}px`\n }\n },\n [`&${componentCls}-top`]: {\n [`> ${componentCls}-nav ${componentCls}-tab`]: {\n borderRadius: `${token.borderRadius}px ${token.borderRadius}px 0 0`\n }\n },\n [`&${componentCls}-right`]: {\n [`> ${componentCls}-nav ${componentCls}-tab`]: {\n borderRadius: {\n _skip_check_: true,\n value: `0 ${token.borderRadius}px ${token.borderRadius}px 0`\n }\n }\n },\n [`&${componentCls}-left`]: {\n [`> ${componentCls}-nav ${componentCls}-tab`]: {\n borderRadius: {\n _skip_check_: true,\n value: `${token.borderRadius}px 0 0 ${token.borderRadius}px`\n }\n }\n }\n },\n [`&${componentCls}-large`]: {\n [`> ${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n padding: cardPaddingLG\n }\n }\n }\n }\n };\n};\nconst genTabStyle = token => {\n const {\n componentCls,\n itemActiveColor,\n itemHoverColor,\n iconCls,\n tabsHorizontalItemMargin,\n horizontalItemPadding,\n itemSelectedColor\n } = token;\n const tabCls = `${componentCls}-tab`;\n return {\n [tabCls]: {\n position: 'relative',\n WebkitTouchCallout: 'none',\n WebkitTapHighlightColor: 'transparent',\n display: 'inline-flex',\n alignItems: 'center',\n padding: horizontalItemPadding,\n fontSize: token.titleFontSize,\n background: 'transparent',\n border: 0,\n outline: 'none',\n cursor: 'pointer',\n '&-btn, &-remove': Object.assign({\n '&:focus:not(:focus-visible), &:active': {\n color: itemActiveColor\n }\n }, genFocusStyle(token)),\n '&-btn': {\n outline: 'none',\n transition: 'all 0.3s'\n },\n '&-remove': {\n flex: 'none',\n marginRight: {\n _skip_check_: true,\n value: -token.marginXXS\n },\n marginLeft: {\n _skip_check_: true,\n value: token.marginXS\n },\n color: token.colorTextDescription,\n fontSize: token.fontSizeSM,\n background: 'transparent',\n border: 'none',\n outline: 'none',\n cursor: 'pointer',\n transition: `all ${token.motionDurationSlow}`,\n '&:hover': {\n color: token.colorTextHeading\n }\n },\n '&:hover': {\n color: itemHoverColor\n },\n [`&${tabCls}-active ${tabCls}-btn`]: {\n color: itemSelectedColor,\n textShadow: token.tabsActiveTextShadow\n },\n [`&${tabCls}-disabled`]: {\n color: token.colorTextDisabled,\n cursor: 'not-allowed'\n },\n [`&${tabCls}-disabled ${tabCls}-btn, &${tabCls}-disabled ${componentCls}-remove`]: {\n '&:focus, &:active': {\n color: token.colorTextDisabled\n }\n },\n [`& ${tabCls}-remove ${iconCls}`]: {\n margin: 0\n },\n [iconCls]: {\n marginRight: {\n _skip_check_: true,\n value: token.marginSM\n }\n }\n },\n [`${tabCls} + ${tabCls}`]: {\n margin: {\n _skip_check_: true,\n value: tabsHorizontalItemMargin\n }\n }\n };\n};\nconst genRtlStyle = token => {\n const {\n componentCls,\n tabsHorizontalItemMarginRTL,\n iconCls,\n cardGutter\n } = token;\n const rtlCls = `${componentCls}-rtl`;\n return {\n [rtlCls]: {\n direction: 'rtl',\n [`${componentCls}-nav`]: {\n [`${componentCls}-tab`]: {\n margin: {\n _skip_check_: true,\n value: tabsHorizontalItemMarginRTL\n },\n [`${componentCls}-tab:last-of-type`]: {\n marginLeft: {\n _skip_check_: true,\n value: 0\n }\n },\n [iconCls]: {\n marginRight: {\n _skip_check_: true,\n value: 0\n },\n marginLeft: {\n _skip_check_: true,\n value: `${token.marginSM}px`\n }\n },\n [`${componentCls}-tab-remove`]: {\n marginRight: {\n _skip_check_: true,\n value: `${token.marginXS}px`\n },\n marginLeft: {\n _skip_check_: true,\n value: `-${token.marginXXS}px`\n },\n [iconCls]: {\n margin: 0\n }\n }\n }\n },\n [`&${componentCls}-left`]: {\n [`> ${componentCls}-nav`]: {\n order: 1\n },\n [`> ${componentCls}-content-holder`]: {\n order: 0\n }\n },\n [`&${componentCls}-right`]: {\n [`> ${componentCls}-nav`]: {\n order: 0\n },\n [`> ${componentCls}-content-holder`]: {\n order: 1\n }\n },\n // ====================== Card ======================\n [`&${componentCls}-card${componentCls}-top, &${componentCls}-card${componentCls}-bottom`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-tab + ${componentCls}-tab`]: {\n marginRight: {\n _skip_check_: true,\n value: cardGutter\n },\n marginLeft: {\n _skip_check_: true,\n value: 0\n }\n }\n }\n }\n },\n [`${componentCls}-dropdown-rtl`]: {\n direction: 'rtl'\n },\n [`${componentCls}-menu-item`]: {\n [`${componentCls}-dropdown-rtl`]: {\n textAlign: {\n _skip_check_: true,\n value: 'right'\n }\n }\n }\n };\n};\nconst genTabsStyle = token => {\n const {\n componentCls,\n tabsCardPadding,\n cardHeight,\n cardGutter,\n itemHoverColor,\n itemActiveColor,\n colorBorderSecondary\n } = token;\n return {\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n display: 'flex',\n // ========================== Navigation ==========================\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n position: 'relative',\n display: 'flex',\n flex: 'none',\n alignItems: 'center',\n [`${componentCls}-nav-wrap`]: {\n position: 'relative',\n display: 'flex',\n flex: 'auto',\n alignSelf: 'stretch',\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n transform: 'translate(0)',\n // >>>>> Ping shadow\n '&::before, &::after': {\n position: 'absolute',\n zIndex: 1,\n opacity: 0,\n transition: `opacity ${token.motionDurationSlow}`,\n content: \"''\",\n pointerEvents: 'none'\n }\n },\n [`${componentCls}-nav-list`]: {\n position: 'relative',\n display: 'flex',\n transition: `opacity ${token.motionDurationSlow}`\n },\n // >>>>>>>> Operations\n [`${componentCls}-nav-operations`]: {\n display: 'flex',\n alignSelf: 'stretch'\n },\n [`${componentCls}-nav-operations-hidden`]: {\n position: 'absolute',\n visibility: 'hidden',\n pointerEvents: 'none'\n },\n [`${componentCls}-nav-more`]: {\n position: 'relative',\n padding: tabsCardPadding,\n background: 'transparent',\n border: 0,\n color: token.colorText,\n '&::after': {\n position: 'absolute',\n right: {\n _skip_check_: true,\n value: 0\n },\n bottom: 0,\n left: {\n _skip_check_: true,\n value: 0\n },\n height: token.controlHeightLG / 8,\n transform: 'translateY(100%)',\n content: \"''\"\n }\n },\n [`${componentCls}-nav-add`]: Object.assign({\n minWidth: cardHeight,\n marginLeft: {\n _skip_check_: true,\n value: cardGutter\n },\n padding: `0 ${token.paddingXS}px`,\n background: 'transparent',\n border: `${token.lineWidth}px ${token.lineType} ${colorBorderSecondary}`,\n borderRadius: `${token.borderRadiusLG}px ${token.borderRadiusLG}px 0 0`,\n outline: 'none',\n cursor: 'pointer',\n color: token.colorText,\n transition: `all ${token.motionDurationSlow} ${token.motionEaseInOut}`,\n '&:hover': {\n color: itemHoverColor\n },\n '&:active, &:focus:not(:focus-visible)': {\n color: itemActiveColor\n }\n }, genFocusStyle(token))\n },\n [`${componentCls}-extra-content`]: {\n flex: 'none'\n },\n // ============================ InkBar ============================\n [`${componentCls}-ink-bar`]: {\n position: 'absolute',\n background: token.inkBarColor,\n pointerEvents: 'none'\n }\n }), genTabStyle(token)), {\n // =========================== TabPanes ===========================\n [`${componentCls}-content`]: {\n position: 'relative',\n width: '100%'\n },\n [`${componentCls}-content-holder`]: {\n flex: 'auto',\n minWidth: 0,\n minHeight: 0\n },\n [`${componentCls}-tabpane`]: {\n outline: 'none',\n '&-hidden': {\n display: 'none'\n }\n }\n }),\n [`${componentCls}-centered`]: {\n [`> ${componentCls}-nav, > div > ${componentCls}-nav`]: {\n [`${componentCls}-nav-wrap`]: {\n [`&:not([class*='${componentCls}-nav-wrap-ping'])`]: {\n justifyContent: 'center'\n }\n }\n }\n }\n };\n};\n// ============================== Export ==============================\nexport default genComponentStyleHook('Tabs', token => {\n const tabsToken = mergeToken(token, {\n // `cardPadding` is empty by default, so we could calculate with dynamic `cardHeight`\n tabsCardPadding: token.cardPadding || `${(token.cardHeight - Math.round(token.fontSize * token.lineHeight)) / 2 - token.lineWidth}px ${token.padding}px`,\n dropdownEdgeChildVerticalPadding: token.paddingXXS,\n tabsActiveTextShadow: '0 0 0.25px currentcolor',\n tabsDropdownHeight: 200,\n tabsDropdownWidth: 120,\n tabsHorizontalItemMargin: `0 0 0 ${token.horizontalItemGutter}px`,\n tabsHorizontalItemMarginRTL: `0 0 0 ${token.horizontalItemGutter}px`\n });\n return [genSizeStyle(tabsToken), genRtlStyle(tabsToken), genPositionStyle(tabsToken), genDropdownStyle(tabsToken), genCardStyle(tabsToken), genTabsStyle(tabsToken), genMotionStyle(tabsToken)];\n}, token => {\n const cardHeight = token.controlHeightLG;\n return {\n zIndexPopup: token.zIndexPopupBase + 50,\n cardBg: token.colorFillAlter,\n cardHeight,\n // Initialize with empty string, because cardPadding will be calculated with cardHeight by default.\n cardPadding: ``,\n cardPaddingSM: `${token.paddingXXS * 1.5}px ${token.padding}px`,\n cardPaddingLG: `${token.paddingXS}px ${token.padding}px ${token.paddingXXS * 1.5}px`,\n titleFontSize: token.fontSize,\n titleFontSizeLG: token.fontSizeLG,\n titleFontSizeSM: token.fontSize,\n inkBarColor: token.colorPrimary,\n horizontalMargin: `0 0 ${token.margin}px 0`,\n horizontalItemGutter: 32,\n // Initialize with empty string, because horizontalItemMargin will be calculated with horizontalItemGutter by default.\n horizontalItemMargin: ``,\n horizontalItemMarginRTL: ``,\n horizontalItemPadding: `${token.paddingSM}px 0`,\n horizontalItemPaddingSM: `${token.paddingXS}px 0`,\n horizontalItemPaddingLG: `${token.padding}px 0`,\n verticalItemPadding: `${token.paddingXS}px ${token.paddingLG}px`,\n verticalItemMargin: `${token.margin}px 0 0 0`,\n itemSelectedColor: token.colorPrimary,\n itemHoverColor: token.colorPrimaryHover,\n itemActiveColor: token.colorPrimaryActive,\n cardGutter: token.marginXXS / 2\n };\n});","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport CloseOutlined from \"@ant-design/icons/es/icons/CloseOutlined\";\nimport EllipsisOutlined from \"@ant-design/icons/es/icons/EllipsisOutlined\";\nimport PlusOutlined from \"@ant-design/icons/es/icons/PlusOutlined\";\nimport classNames from 'classnames';\nimport RcTabs from 'rc-tabs';\nimport * as React from 'react';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport useSize from '../config-provider/hooks/useSize';\nimport TabPane from './TabPane';\nimport useAnimateConfig from './hooks/useAnimateConfig';\nimport useLegacyItems from './hooks/useLegacyItems';\nimport useStyle from './style';\nconst Tabs = props => {\n const {\n type,\n className,\n rootClassName,\n size: customSize,\n onEdit,\n hideAdd,\n centered,\n addIcon,\n popupClassName,\n children,\n items,\n animated,\n style\n } = props,\n otherProps = __rest(props, [\"type\", \"className\", \"rootClassName\", \"size\", \"onEdit\", \"hideAdd\", \"centered\", \"addIcon\", \"popupClassName\", \"children\", \"items\", \"animated\", \"style\"]);\n const {\n prefixCls: customizePrefixCls,\n moreIcon = /*#__PURE__*/React.createElement(EllipsisOutlined, null)\n } = otherProps;\n const {\n direction,\n tabs,\n getPrefixCls,\n getPopupContainer\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('tabs', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls);\n let editable;\n if (type === 'editable-card') {\n editable = {\n onEdit: (editType, _ref) => {\n let {\n key,\n event\n } = _ref;\n onEdit === null || onEdit === void 0 ? void 0 : onEdit(editType === 'add' ? event : key, editType);\n },\n removeIcon: /*#__PURE__*/React.createElement(CloseOutlined, null),\n addIcon: addIcon || /*#__PURE__*/React.createElement(PlusOutlined, null),\n showAdd: hideAdd !== true\n };\n }\n const rootPrefixCls = getPrefixCls();\n process.env.NODE_ENV !== \"production\" ? warning(!('onPrevClick' in props) && !('onNextClick' in props), 'Tabs', '`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead.') : void 0;\n const mergedItems = useLegacyItems(items, children);\n const mergedAnimated = useAnimateConfig(prefixCls, animated);\n const size = useSize(customSize);\n const mergedStyle = Object.assign(Object.assign({}, tabs === null || tabs === void 0 ? void 0 : tabs.style), style);\n return wrapSSR( /*#__PURE__*/React.createElement(RcTabs, Object.assign({\n direction: direction,\n getPopupContainer: getPopupContainer,\n moreTransitionName: `${rootPrefixCls}-slide-up`\n }, otherProps, {\n items: mergedItems,\n className: classNames({\n [`${prefixCls}-${size}`]: size,\n [`${prefixCls}-card`]: ['card', 'editable-card'].includes(type),\n [`${prefixCls}-editable-card`]: type === 'editable-card',\n [`${prefixCls}-centered`]: centered\n }, tabs === null || tabs === void 0 ? void 0 : tabs.className, className, rootClassName, hashId),\n popupClassName: classNames(popupClassName, hashId),\n style: mergedStyle,\n editable: editable,\n moreIcon: moreIcon,\n prefixCls: prefixCls,\n animated: mergedAnimated\n })));\n};\nTabs.TabPane = TabPane;\nif (process.env.NODE_ENV !== 'production') {\n Tabs.displayName = 'Tabs';\n}\nexport default Tabs;","import { createTheme } from '@ant-design/cssinjs';\nimport React from 'react';\nimport defaultDerivative from './themes/default';\nimport defaultSeedToken from './themes/seed';\nexport const defaultTheme = createTheme(defaultDerivative);\n// ================================ Context =================================\n// To ensure snapshot stable. We disable hashed in test env.\nexport const defaultConfig = {\n token: defaultSeedToken,\n hashed: true\n};\nexport const DesignTokenContext = /*#__PURE__*/React.createContext(defaultConfig);","import { createTheme, getComputedToken } from '@ant-design/cssinjs';\nimport defaultDerivative from './themes/default';\nimport seedToken from './themes/seed';\nimport formatToken from './util/alias';\nconst getDesignToken = config => {\n const theme = (config === null || config === void 0 ? void 0 : config.algorithm) ? createTheme(config.algorithm) : createTheme(defaultDerivative);\n const mergedToken = Object.assign(Object.assign({}, seedToken), config === null || config === void 0 ? void 0 : config.token);\n return getComputedToken(mergedToken, {\n override: config === null || config === void 0 ? void 0 : config.token\n }, theme, formatToken);\n};\nexport default getDesignToken;","export default function genSizeMapToken(token) {\n const {\n sizeUnit,\n sizeStep\n } = token;\n const compactSizeStep = sizeStep - 2;\n return {\n sizeXXL: sizeUnit * (compactSizeStep + 10),\n sizeXL: sizeUnit * (compactSizeStep + 6),\n sizeLG: sizeUnit * (compactSizeStep + 2),\n sizeMD: sizeUnit * (compactSizeStep + 2),\n sizeMS: sizeUnit * (compactSizeStep + 1),\n size: sizeUnit * compactSizeStep,\n sizeSM: sizeUnit * compactSizeStep,\n sizeXS: sizeUnit * (compactSizeStep - 1),\n sizeXXS: sizeUnit * (compactSizeStep - 1)\n };\n}","import genControlHeight from '../shared/genControlHeight';\nimport defaultAlgorithm from '../default';\nimport genCompactSizeMapToken from './genCompactSizeMapToken';\nimport genFontMapToken from '../shared/genFontMapToken';\nconst derivative = (token, mapToken) => {\n const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n const fontSize = mergedMapToken.fontSizeSM; // Smaller size font-size as base\n const controlHeight = mergedMapToken.controlHeight - 4;\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, mergedMapToken), genCompactSizeMapToken(mapToken !== null && mapToken !== void 0 ? mapToken : token)), genFontMapToken(fontSize)), {\n // controlHeight\n controlHeight\n }), genControlHeight(Object.assign(Object.assign({}, mergedMapToken), {\n controlHeight\n })));\n};\nexport default derivative;","import { TinyColor } from '@ctrl/tinycolor';\nexport const getAlphaColor = (baseColor, alpha) => new TinyColor(baseColor).setAlpha(alpha).toRgbString();\nexport const getSolidColor = (baseColor, brightness) => {\n const instance = new TinyColor(baseColor);\n return instance.lighten(brightness).toHexString();\n};","import { generate } from '@ant-design/colors';\nimport { getAlphaColor, getSolidColor } from './colorAlgorithm';\nexport const generateColorPalettes = baseColor => {\n const colors = generate(baseColor, {\n theme: 'dark'\n });\n return {\n 1: colors[0],\n 2: colors[1],\n 3: colors[2],\n 4: colors[3],\n 5: colors[6],\n 6: colors[5],\n 7: colors[4],\n 8: colors[6],\n 9: colors[5],\n 10: colors[4]\n // 8: colors[9],\n // 9: colors[8],\n // 10: colors[7],\n };\n};\n\nexport const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {\n const colorBgBase = bgBaseColor || '#000';\n const colorTextBase = textBaseColor || '#fff';\n return {\n colorBgBase,\n colorTextBase,\n colorText: getAlphaColor(colorTextBase, 0.85),\n colorTextSecondary: getAlphaColor(colorTextBase, 0.65),\n colorTextTertiary: getAlphaColor(colorTextBase, 0.45),\n colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),\n colorFill: getAlphaColor(colorTextBase, 0.18),\n colorFillSecondary: getAlphaColor(colorTextBase, 0.12),\n colorFillTertiary: getAlphaColor(colorTextBase, 0.08),\n colorFillQuaternary: getAlphaColor(colorTextBase, 0.04),\n colorBgElevated: getSolidColor(colorBgBase, 12),\n colorBgContainer: getSolidColor(colorBgBase, 8),\n colorBgLayout: getSolidColor(colorBgBase, 0),\n colorBgSpotlight: getSolidColor(colorBgBase, 26),\n colorBorder: getSolidColor(colorBgBase, 26),\n colorBorderSecondary: getSolidColor(colorBgBase, 19)\n };\n};","import { generate } from '@ant-design/colors';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport defaultAlgorithm from '../default';\nconst derivative = (token, mapToken) => {\n const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n const colors = generate(token[colorKey], {\n theme: 'dark'\n });\n return new Array(10).fill(1).reduce((prev, _, i) => {\n prev[`${colorKey}-${i + 1}`] = colors[i];\n prev[`${colorKey}${i + 1}`] = colors[i];\n return prev;\n }, {});\n }).reduce((prev, cur) => {\n prev = Object.assign(Object.assign({}, prev), cur);\n return prev;\n }, {});\n const mergedMapToken = mapToken !== null && mapToken !== void 0 ? mapToken : defaultAlgorithm(token);\n return Object.assign(Object.assign(Object.assign({}, mergedMapToken), colorPalettes), genColorMapToken(token, {\n generateColorPalettes,\n generateNeutralColorPalettes\n }));\n};\nexport default derivative;","'use client';\n\n/* eslint-disable import/prefer-default-export */\nimport getDesignToken from './getDesignToken';\nimport { defaultConfig, useToken as useInternalToken } from './internal';\nimport compactAlgorithm from './themes/compact';\nimport darkAlgorithm from './themes/dark';\nimport defaultAlgorithm from './themes/default';\n// ZombieJ: We export as object to user but array in internal.\n// This is used to minimize the bundle size for antd package but safe to refactor as object also.\n// Please do not export internal `useToken` directly to avoid something export unexpected.\n/** Get current context Design Token. Will be different if you are using nest theme config. */\nfunction useToken() {\n const [theme, token, hashId] = useInternalToken();\n return {\n theme,\n token,\n hashId\n };\n}\nexport default {\n /** @private Test Usage. Do not use in production. */\n defaultConfig,\n /** Default seedToken */\n defaultSeed: defaultConfig.token,\n useToken,\n defaultAlgorithm,\n darkAlgorithm,\n compactAlgorithm,\n getDesignToken\n};","export const PresetColors = ['blue', 'purple', 'cyan', 'green', 'magenta', 'pink', 'red', 'orange', 'yellow', 'volcano', 'geekblue', 'lime', 'gold'];","export default function genSizeMapToken(token) {\n const {\n sizeUnit,\n sizeStep\n } = token;\n return {\n sizeXXL: sizeUnit * (sizeStep + 8),\n sizeXL: sizeUnit * (sizeStep + 4),\n sizeLG: sizeUnit * (sizeStep + 2),\n sizeMD: sizeUnit * (sizeStep + 1),\n sizeMS: sizeUnit * sizeStep,\n size: sizeUnit * sizeStep,\n sizeSM: sizeUnit * (sizeStep - 1),\n sizeXS: sizeUnit * (sizeStep - 2),\n sizeXXS: sizeUnit * (sizeStep - 3) // 4\n };\n}","const genRadius = radiusBase => {\n let radiusLG = radiusBase;\n let radiusSM = radiusBase;\n let radiusXS = radiusBase;\n let radiusOuter = radiusBase;\n // radiusLG\n if (radiusBase < 6 && radiusBase >= 5) {\n radiusLG = radiusBase + 1;\n } else if (radiusBase < 16 && radiusBase >= 6) {\n radiusLG = radiusBase + 2;\n } else if (radiusBase >= 16) {\n radiusLG = 16;\n }\n // radiusSM\n if (radiusBase < 7 && radiusBase >= 5) {\n radiusSM = 4;\n } else if (radiusBase < 8 && radiusBase >= 7) {\n radiusSM = 5;\n } else if (radiusBase < 14 && radiusBase >= 8) {\n radiusSM = 6;\n } else if (radiusBase < 16 && radiusBase >= 14) {\n radiusSM = 7;\n } else if (radiusBase >= 16) {\n radiusSM = 8;\n }\n // radiusXS\n if (radiusBase < 6 && radiusBase >= 2) {\n radiusXS = 1;\n } else if (radiusBase >= 6) {\n radiusXS = 2;\n }\n // radiusOuter\n if (radiusBase > 4 && radiusBase < 8) {\n radiusOuter = 4;\n } else if (radiusBase >= 8) {\n radiusOuter = 6;\n }\n return {\n borderRadius: radiusBase > 16 ? 16 : radiusBase,\n borderRadiusXS: radiusXS,\n borderRadiusSM: radiusSM,\n borderRadiusLG: radiusLG,\n borderRadiusOuter: radiusOuter\n };\n};\nexport default genRadius;","import genRadius from './genRadius';\nexport default function genCommonMapToken(token) {\n const {\n motionUnit,\n motionBase,\n borderRadius,\n lineWidth\n } = token;\n return Object.assign({\n // motion\n motionDurationFast: `${(motionBase + motionUnit).toFixed(1)}s`,\n motionDurationMid: `${(motionBase + motionUnit * 2).toFixed(1)}s`,\n motionDurationSlow: `${(motionBase + motionUnit * 3).toFixed(1)}s`,\n // line\n lineWidthBold: lineWidth + 1\n }, genRadius(borderRadius));\n}","import { TinyColor } from '@ctrl/tinycolor';\nexport const getAlphaColor = (baseColor, alpha) => new TinyColor(baseColor).setAlpha(alpha).toRgbString();\nexport const getSolidColor = (baseColor, brightness) => {\n const instance = new TinyColor(baseColor);\n return instance.darken(brightness).toHexString();\n};","import { generate } from '@ant-design/colors';\nimport { getAlphaColor, getSolidColor } from './colorAlgorithm';\nexport const generateColorPalettes = baseColor => {\n const colors = generate(baseColor);\n return {\n 1: colors[0],\n 2: colors[1],\n 3: colors[2],\n 4: colors[3],\n 5: colors[4],\n 6: colors[5],\n 7: colors[6],\n 8: colors[4],\n 9: colors[5],\n 10: colors[6]\n // 8: colors[7],\n // 9: colors[8],\n // 10: colors[9],\n };\n};\n\nexport const generateNeutralColorPalettes = (bgBaseColor, textBaseColor) => {\n const colorBgBase = bgBaseColor || '#fff';\n const colorTextBase = textBaseColor || '#000';\n return {\n colorBgBase,\n colorTextBase,\n colorText: getAlphaColor(colorTextBase, 0.88),\n colorTextSecondary: getAlphaColor(colorTextBase, 0.65),\n colorTextTertiary: getAlphaColor(colorTextBase, 0.45),\n colorTextQuaternary: getAlphaColor(colorTextBase, 0.25),\n colorFill: getAlphaColor(colorTextBase, 0.15),\n colorFillSecondary: getAlphaColor(colorTextBase, 0.06),\n colorFillTertiary: getAlphaColor(colorTextBase, 0.04),\n colorFillQuaternary: getAlphaColor(colorTextBase, 0.02),\n colorBgLayout: getSolidColor(colorBgBase, 4),\n colorBgContainer: getSolidColor(colorBgBase, 0),\n colorBgElevated: getSolidColor(colorBgBase, 0),\n colorBgSpotlight: getAlphaColor(colorTextBase, 0.85),\n colorBorder: getSolidColor(colorBgBase, 15),\n colorBorderSecondary: getSolidColor(colorBgBase, 6)\n };\n};","import { generate } from '@ant-design/colors';\nimport genControlHeight from '../shared/genControlHeight';\nimport genSizeMapToken from '../shared/genSizeMapToken';\nimport { defaultPresetColors } from '../seed';\nimport genColorMapToken from '../shared/genColorMapToken';\nimport genCommonMapToken from '../shared/genCommonMapToken';\nimport { generateColorPalettes, generateNeutralColorPalettes } from './colors';\nimport genFontMapToken from '../shared/genFontMapToken';\nexport default function derivative(token) {\n const colorPalettes = Object.keys(defaultPresetColors).map(colorKey => {\n const colors = generate(token[colorKey]);\n return new Array(10).fill(1).reduce((prev, _, i) => {\n prev[`${colorKey}-${i + 1}`] = colors[i];\n prev[`${colorKey}${i + 1}`] = colors[i];\n return prev;\n }, {});\n }).reduce((prev, cur) => {\n prev = Object.assign(Object.assign({}, prev), cur);\n return prev;\n }, {});\n return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, token), colorPalettes), genColorMapToken(token, {\n generateColorPalettes,\n generateNeutralColorPalettes\n })), genFontMapToken(token.fontSize)), genSizeMapToken(token)), genControlHeight(token)), genCommonMapToken(token));\n}","export const defaultPresetColors = {\n blue: '#1677ff',\n purple: '#722ED1',\n cyan: '#13C2C2',\n green: '#52C41A',\n magenta: '#EB2F96',\n pink: '#eb2f96',\n red: '#F5222D',\n orange: '#FA8C16',\n yellow: '#FADB14',\n volcano: '#FA541C',\n geekblue: '#2F54EB',\n gold: '#FAAD14',\n lime: '#A0D911'\n};\nconst seedToken = Object.assign(Object.assign({}, defaultPresetColors), {\n // Color\n colorPrimary: '#1677ff',\n colorSuccess: '#52c41a',\n colorWarning: '#faad14',\n colorError: '#ff4d4f',\n colorInfo: '#1677ff',\n colorLink: '',\n colorTextBase: '',\n colorBgBase: '',\n // Font\n 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'`,\n fontFamilyCode: `'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace`,\n fontSize: 14,\n // Line\n lineWidth: 1,\n lineType: 'solid',\n // Motion\n motionUnit: 0.1,\n motionBase: 0,\n motionEaseOutCirc: 'cubic-bezier(0.08, 0.82, 0.17, 1)',\n motionEaseInOutCirc: 'cubic-bezier(0.78, 0.14, 0.15, 0.86)',\n motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',\n motionEaseInOut: 'cubic-bezier(0.645, 0.045, 0.355, 1)',\n motionEaseOutBack: 'cubic-bezier(0.12, 0.4, 0.29, 1.46)',\n motionEaseInBack: 'cubic-bezier(0.71, -0.46, 0.88, 0.6)',\n motionEaseInQuint: 'cubic-bezier(0.755, 0.05, 0.855, 0.06)',\n motionEaseOutQuint: 'cubic-bezier(0.23, 1, 0.32, 1)',\n // Radius\n borderRadius: 6,\n // Size\n sizeUnit: 4,\n sizeStep: 4,\n sizePopupArrow: 16,\n // Control Base\n controlHeight: 32,\n // zIndex\n zIndexBase: 0,\n zIndexPopupBase: 1000,\n // Image\n opacityImage: 1,\n // Wireframe\n wireframe: false,\n // Motion\n motion: true\n});\nexport default seedToken;","import { TinyColor } from '@ctrl/tinycolor';\nexport default function genColorMapToken(seed, _ref) {\n let {\n generateColorPalettes,\n generateNeutralColorPalettes\n } = _ref;\n const {\n colorSuccess: colorSuccessBase,\n colorWarning: colorWarningBase,\n colorError: colorErrorBase,\n colorInfo: colorInfoBase,\n colorPrimary: colorPrimaryBase,\n colorBgBase,\n colorTextBase\n } = seed;\n const primaryColors = generateColorPalettes(colorPrimaryBase);\n const successColors = generateColorPalettes(colorSuccessBase);\n const warningColors = generateColorPalettes(colorWarningBase);\n const errorColors = generateColorPalettes(colorErrorBase);\n const infoColors = generateColorPalettes(colorInfoBase);\n const neutralColors = generateNeutralColorPalettes(colorBgBase, colorTextBase);\n // Color Link\n const colorLink = seed.colorLink || seed.colorInfo;\n const linkColors = generateColorPalettes(colorLink);\n return Object.assign(Object.assign({}, neutralColors), {\n colorPrimaryBg: primaryColors[1],\n colorPrimaryBgHover: primaryColors[2],\n colorPrimaryBorder: primaryColors[3],\n colorPrimaryBorderHover: primaryColors[4],\n colorPrimaryHover: primaryColors[5],\n colorPrimary: primaryColors[6],\n colorPrimaryActive: primaryColors[7],\n colorPrimaryTextHover: primaryColors[8],\n colorPrimaryText: primaryColors[9],\n colorPrimaryTextActive: primaryColors[10],\n colorSuccessBg: successColors[1],\n colorSuccessBgHover: successColors[2],\n colorSuccessBorder: successColors[3],\n colorSuccessBorderHover: successColors[4],\n colorSuccessHover: successColors[4],\n colorSuccess: successColors[6],\n colorSuccessActive: successColors[7],\n colorSuccessTextHover: successColors[8],\n colorSuccessText: successColors[9],\n colorSuccessTextActive: successColors[10],\n colorErrorBg: errorColors[1],\n colorErrorBgHover: errorColors[2],\n colorErrorBorder: errorColors[3],\n colorErrorBorderHover: errorColors[4],\n colorErrorHover: errorColors[5],\n colorError: errorColors[6],\n colorErrorActive: errorColors[7],\n colorErrorTextHover: errorColors[8],\n colorErrorText: errorColors[9],\n colorErrorTextActive: errorColors[10],\n colorWarningBg: warningColors[1],\n colorWarningBgHover: warningColors[2],\n colorWarningBorder: warningColors[3],\n colorWarningBorderHover: warningColors[4],\n colorWarningHover: warningColors[4],\n colorWarning: warningColors[6],\n colorWarningActive: warningColors[7],\n colorWarningTextHover: warningColors[8],\n colorWarningText: warningColors[9],\n colorWarningTextActive: warningColors[10],\n colorInfoBg: infoColors[1],\n colorInfoBgHover: infoColors[2],\n colorInfoBorder: infoColors[3],\n colorInfoBorderHover: infoColors[4],\n colorInfoHover: infoColors[4],\n colorInfo: infoColors[6],\n colorInfoActive: infoColors[7],\n colorInfoTextHover: infoColors[8],\n colorInfoText: infoColors[9],\n colorInfoTextActive: infoColors[10],\n colorLinkHover: linkColors[4],\n colorLink: linkColors[6],\n colorLinkActive: linkColors[7],\n colorBgMask: new TinyColor('#000').setAlpha(0.45).toRgbString(),\n colorWhite: '#fff'\n });\n}","const genControlHeight = token => {\n const {\n controlHeight\n } = token;\n return {\n controlHeightSM: controlHeight * 0.75,\n controlHeightXS: controlHeight * 0.5,\n controlHeightLG: controlHeight * 1.25\n };\n};\nexport default genControlHeight;","// https://zhuanlan.zhihu.com/p/32746810\nexport default function getFontSizes(base) {\n const fontSizes = new Array(10).fill(null).map((_, index) => {\n const i = index - 1;\n const baseSize = base * Math.pow(2.71828, i / 5);\n const intSize = index > 1 ? Math.floor(baseSize) : Math.ceil(baseSize);\n // Convert to even\n return Math.floor(intSize / 2) * 2;\n });\n fontSizes[1] = base;\n return fontSizes.map(size => {\n const height = size + 8;\n return {\n size,\n lineHeight: height / size\n };\n });\n}","import genFontSizes from './genFontSizes';\nconst genFontMapToken = fontSize => {\n const fontSizePairs = genFontSizes(fontSize);\n const fontSizes = fontSizePairs.map(pair => pair.size);\n const lineHeights = fontSizePairs.map(pair => pair.lineHeight);\n return {\n fontSizeSM: fontSizes[0],\n fontSize: fontSizes[1],\n fontSizeLG: fontSizes[2],\n fontSizeXL: fontSizes[3],\n fontSizeHeading1: fontSizes[6],\n fontSizeHeading2: fontSizes[5],\n fontSizeHeading3: fontSizes[4],\n fontSizeHeading4: fontSizes[3],\n fontSizeHeading5: fontSizes[2],\n lineHeight: lineHeights[1],\n lineHeightLG: lineHeights[2],\n lineHeightSM: lineHeights[0],\n lineHeightHeading1: lineHeights[6],\n lineHeightHeading2: lineHeights[5],\n lineHeightHeading3: lineHeights[4],\n lineHeightHeading4: lineHeights[3],\n lineHeightHeading5: lineHeights[2]\n };\n};\nexport default genFontMapToken;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { useCacheToken } from '@ant-design/cssinjs';\nimport React from 'react';\nimport version from '../version';\nimport { defaultTheme, DesignTokenContext } from './context';\nimport defaultSeedToken from './themes/seed';\nimport formatToken from './util/alias';\nexport const getComputedToken = (originToken, overrideToken, theme) => {\n const derivativeToken = theme.getDerivativeToken(originToken);\n const {\n override\n } = overrideToken,\n components = __rest(overrideToken, [\"override\"]);\n // Merge with override\n let mergedDerivativeToken = Object.assign(Object.assign({}, derivativeToken), {\n override\n });\n // Format if needed\n mergedDerivativeToken = formatToken(mergedDerivativeToken);\n if (components) {\n Object.entries(components).forEach(_ref => {\n let [key, value] = _ref;\n const {\n theme: componentTheme\n } = value,\n componentTokens = __rest(value, [\"theme\"]);\n let mergedComponentToken = componentTokens;\n if (componentTheme) {\n mergedComponentToken = getComputedToken(Object.assign(Object.assign({}, mergedDerivativeToken), componentTokens), {\n override: componentTokens\n }, componentTheme);\n }\n mergedDerivativeToken[key] = mergedComponentToken;\n });\n }\n return mergedDerivativeToken;\n};\n// ================================== Hook ==================================\nexport default function useToken() {\n const {\n token: rootDesignToken,\n hashed,\n theme,\n components\n } = React.useContext(DesignTokenContext);\n const salt = `${version}-${hashed || ''}`;\n const mergedTheme = theme || defaultTheme;\n const [token, hashId] = useCacheToken(mergedTheme, [defaultSeedToken, rootDesignToken], {\n salt,\n override: Object.assign({\n override: rootDesignToken\n }, components),\n getComputedToken,\n // formatToken will not be consumed after 1.15.0 with getComputedToken.\n // But token will break if @ant-design/cssinjs is under 1.15.0 without it\n formatToken\n });\n return [mergedTheme, token, hashed ? hashId : ''];\n}","import { TinyColor } from '@ctrl/tinycolor';\nfunction isStableColor(color) {\n return color >= 0 && color <= 255;\n}\nfunction getAlphaColor(frontColor, backgroundColor) {\n const {\n r: fR,\n g: fG,\n b: fB,\n a: originAlpha\n } = new TinyColor(frontColor).toRgb();\n if (originAlpha < 1) {\n return frontColor;\n }\n const {\n r: bR,\n g: bG,\n b: bB\n } = new TinyColor(backgroundColor).toRgb();\n for (let fA = 0.01; fA <= 1; fA += 0.01) {\n const r = Math.round((fR - bR * (1 - fA)) / fA);\n const g = Math.round((fG - bG * (1 - fA)) / fA);\n const b = Math.round((fB - bB * (1 - fA)) / fA);\n if (isStableColor(r) && isStableColor(g) && isStableColor(b)) {\n return new TinyColor({\n r,\n g,\n b,\n a: Math.round(fA * 100) / 100\n }).toRgbString();\n }\n }\n // fallback\n /* istanbul ignore next */\n return new TinyColor({\n r: fR,\n g: fG,\n b: fB,\n a: 1\n }).toRgbString();\n}\nexport default getAlphaColor;","var __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { TinyColor } from '@ctrl/tinycolor';\nimport seedToken from '../themes/seed';\nimport getAlphaColor from './getAlphaColor';\n/**\n * Seed (designer) > Derivative (designer) > Alias (developer).\n *\n * Merge seed & derivative & override token and generate alias token for developer.\n */\nexport default function formatToken(derivativeToken) {\n const {\n override\n } = derivativeToken,\n restToken = __rest(derivativeToken, [\"override\"]);\n const overrideTokens = Object.assign({}, override);\n Object.keys(seedToken).forEach(token => {\n delete overrideTokens[token];\n });\n const mergedToken = Object.assign(Object.assign({}, restToken), overrideTokens);\n const screenXS = 480;\n const screenSM = 576;\n const screenMD = 768;\n const screenLG = 992;\n const screenXL = 1200;\n const screenXXL = 1600;\n // Motion\n if (mergedToken.motion === false) {\n const fastDuration = '0s';\n mergedToken.motionDurationFast = fastDuration;\n mergedToken.motionDurationMid = fastDuration;\n mergedToken.motionDurationSlow = fastDuration;\n }\n // Generate alias token\n const aliasToken = Object.assign(Object.assign(Object.assign({}, mergedToken), {\n // ============== Background ============== //\n colorFillContent: mergedToken.colorFillSecondary,\n colorFillContentHover: mergedToken.colorFill,\n colorFillAlter: mergedToken.colorFillQuaternary,\n colorBgContainerDisabled: mergedToken.colorFillTertiary,\n // ============== Split ============== //\n colorBorderBg: mergedToken.colorBgContainer,\n colorSplit: getAlphaColor(mergedToken.colorBorderSecondary, mergedToken.colorBgContainer),\n // ============== Text ============== //\n colorTextPlaceholder: mergedToken.colorTextQuaternary,\n colorTextDisabled: mergedToken.colorTextQuaternary,\n colorTextHeading: mergedToken.colorText,\n colorTextLabel: mergedToken.colorTextSecondary,\n colorTextDescription: mergedToken.colorTextTertiary,\n colorTextLightSolid: mergedToken.colorWhite,\n colorHighlight: mergedToken.colorError,\n colorBgTextHover: mergedToken.colorFillSecondary,\n colorBgTextActive: mergedToken.colorFill,\n colorIcon: mergedToken.colorTextTertiary,\n colorIconHover: mergedToken.colorText,\n colorErrorOutline: getAlphaColor(mergedToken.colorErrorBg, mergedToken.colorBgContainer),\n colorWarningOutline: getAlphaColor(mergedToken.colorWarningBg, mergedToken.colorBgContainer),\n // Font\n fontSizeIcon: mergedToken.fontSizeSM,\n // Line\n lineWidthFocus: mergedToken.lineWidth * 4,\n // Control\n lineWidth: mergedToken.lineWidth,\n controlOutlineWidth: mergedToken.lineWidth * 2,\n // Checkbox size and expand icon size\n controlInteractiveSize: mergedToken.controlHeight / 2,\n controlItemBgHover: mergedToken.colorFillTertiary,\n controlItemBgActive: mergedToken.colorPrimaryBg,\n controlItemBgActiveHover: mergedToken.colorPrimaryBgHover,\n controlItemBgActiveDisabled: mergedToken.colorFill,\n controlTmpOutline: mergedToken.colorFillQuaternary,\n controlOutline: getAlphaColor(mergedToken.colorPrimaryBg, mergedToken.colorBgContainer),\n lineType: mergedToken.lineType,\n borderRadius: mergedToken.borderRadius,\n borderRadiusXS: mergedToken.borderRadiusXS,\n borderRadiusSM: mergedToken.borderRadiusSM,\n borderRadiusLG: mergedToken.borderRadiusLG,\n fontWeightStrong: 600,\n opacityLoading: 0.65,\n linkDecoration: 'none',\n linkHoverDecoration: 'none',\n linkFocusDecoration: 'none',\n controlPaddingHorizontal: 12,\n controlPaddingHorizontalSM: 8,\n paddingXXS: mergedToken.sizeXXS,\n paddingXS: mergedToken.sizeXS,\n paddingSM: mergedToken.sizeSM,\n padding: mergedToken.size,\n paddingMD: mergedToken.sizeMD,\n paddingLG: mergedToken.sizeLG,\n paddingXL: mergedToken.sizeXL,\n paddingContentHorizontalLG: mergedToken.sizeLG,\n paddingContentVerticalLG: mergedToken.sizeMS,\n paddingContentHorizontal: mergedToken.sizeMS,\n paddingContentVertical: mergedToken.sizeSM,\n paddingContentHorizontalSM: mergedToken.size,\n paddingContentVerticalSM: mergedToken.sizeXS,\n marginXXS: mergedToken.sizeXXS,\n marginXS: mergedToken.sizeXS,\n marginSM: mergedToken.sizeSM,\n margin: mergedToken.size,\n marginMD: mergedToken.sizeMD,\n marginLG: mergedToken.sizeLG,\n marginXL: mergedToken.sizeXL,\n marginXXL: mergedToken.sizeXXL,\n 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 `,\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 `,\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 `,\n screenXS,\n screenXSMin: screenXS,\n screenXSMax: screenSM - 1,\n screenSM,\n screenSMMin: screenSM,\n screenSMMax: screenMD - 1,\n screenMD,\n screenMDMin: screenMD,\n screenMDMax: screenLG - 1,\n screenLG,\n screenLGMin: screenLG,\n screenLGMax: screenXL - 1,\n screenXL,\n screenXLMin: screenXL,\n screenXLMax: screenXXL - 1,\n screenXXL,\n screenXXLMin: screenXXL,\n boxShadowPopoverArrow: '2px 2px 5px rgba(0, 0, 0, 0.05)',\n boxShadowCard: `\n 0 1px 2px -2px ${new TinyColor('rgba(0, 0, 0, 0.16)').toRgbString()},\n 0 3px 6px 0 ${new TinyColor('rgba(0, 0, 0, 0.12)').toRgbString()},\n 0 5px 12px 4px ${new TinyColor('rgba(0, 0, 0, 0.09)').toRgbString()}\n `,\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 `,\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 `,\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 `,\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 `,\n boxShadowTabsOverflowLeft: 'inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)',\n boxShadowTabsOverflowRight: 'inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)',\n boxShadowTabsOverflowTop: 'inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)',\n boxShadowTabsOverflowBottom: 'inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)'\n }), overrideTokens);\n return aliasToken;\n}","/* eslint-disable no-redeclare */\nimport { useContext } from 'react';\nimport { useStyleRegister } from '@ant-design/cssinjs';\nimport { warning } from 'rc-util';\nimport { ConfigContext } from '../../config-provider/context';\nimport { genCommonStyle, genLinkStyle } from '../../style';\nimport useToken from '../useToken';\nimport statisticToken, { merge as mergeToken } from './statistic';\nimport useResetIconStyle from './useResetIconStyle';\nexport default function genComponentStyleHook(componentName, styleFn, getDefaultToken, options) {\n const cells = Array.isArray(componentName) ? componentName : [componentName, componentName];\n const [component] = cells;\n const concatComponent = cells.join('-');\n return prefixCls => {\n const [theme, token, hashId] = useToken();\n const {\n getPrefixCls,\n iconPrefixCls,\n csp\n } = useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n // Shared config\n const sharedConfig = {\n theme,\n token,\n hashId,\n nonce: () => csp === null || csp === void 0 ? void 0 : csp.nonce,\n clientOnly: options === null || options === void 0 ? void 0 : options.clientOnly,\n // antd is always at top of styles\n order: -999\n };\n // Generate style for all a tags in antd component.\n useStyleRegister(Object.assign(Object.assign({}, sharedConfig), {\n clientOnly: false,\n path: ['Shared', rootPrefixCls]\n }), () => [{\n // Link\n '&': genLinkStyle(token)\n }]);\n // Generate style for icons\n useResetIconStyle(iconPrefixCls);\n return [useStyleRegister(Object.assign(Object.assign({}, sharedConfig), {\n path: [concatComponent, prefixCls, iconPrefixCls]\n }), () => {\n const {\n token: proxyToken,\n flush\n } = statisticToken(token);\n const customComponentToken = Object.assign({}, token[component]);\n if (options === null || options === void 0 ? void 0 : options.deprecatedTokens) {\n const {\n deprecatedTokens\n } = options;\n deprecatedTokens.forEach(_ref => {\n let [oldTokenKey, newTokenKey] = _ref;\n var _a;\n if (process.env.NODE_ENV !== 'production') {\n process.env.NODE_ENV !== \"production\" ? warning(!(customComponentToken === null || customComponentToken === void 0 ? void 0 : customComponentToken[oldTokenKey]), `The token '${String(oldTokenKey)}' of ${component} had deprecated, use '${String(newTokenKey)}' instead.`) : void 0;\n }\n // Should wrap with `if` clause, or there will be `undefined` in object.\n if ((customComponentToken === null || customComponentToken === void 0 ? void 0 : customComponentToken[oldTokenKey]) || (customComponentToken === null || customComponentToken === void 0 ? void 0 : customComponentToken[newTokenKey])) {\n (_a = customComponentToken[newTokenKey]) !== null && _a !== void 0 ? _a : customComponentToken[newTokenKey] = customComponentToken === null || customComponentToken === void 0 ? void 0 : customComponentToken[oldTokenKey];\n }\n });\n }\n const defaultComponentToken = typeof getDefaultToken === 'function' ? getDefaultToken(mergeToken(proxyToken, customComponentToken !== null && customComponentToken !== void 0 ? customComponentToken : {})) : getDefaultToken;\n const mergedComponentToken = Object.assign(Object.assign({}, defaultComponentToken), customComponentToken);\n const componentCls = `.${prefixCls}`;\n const mergedToken = mergeToken(proxyToken, {\n componentCls,\n prefixCls,\n iconCls: `.${iconPrefixCls}`,\n antCls: `.${rootPrefixCls}`\n }, mergedComponentToken);\n const styleInterpolation = styleFn(mergedToken, {\n hashId,\n prefixCls,\n rootPrefixCls,\n iconPrefixCls,\n overrideComponentToken: customComponentToken\n });\n flush(component, mergedComponentToken);\n return [(options === null || options === void 0 ? void 0 : options.resetStyle) === false ? null : genCommonStyle(token, prefixCls), styleInterpolation];\n }), hashId];\n };\n}","import { PresetColors } from '../interface';\nexport default function genPresetColor(token, genCss) {\n return PresetColors.reduce((prev, colorKey) => {\n const lightColor = token[`${colorKey}1`];\n const lightBorderColor = token[`${colorKey}3`];\n const darkColor = token[`${colorKey}6`];\n const textColor = token[`${colorKey}7`];\n return Object.assign(Object.assign({}, prev), genCss(colorKey, {\n lightColor,\n lightBorderColor,\n darkColor,\n textColor\n }));\n }, {});\n}","const enableStatistic = process.env.NODE_ENV !== 'production' || typeof CSSINJS_STATISTIC !== 'undefined';\nlet recording = true;\n/**\n * This function will do as `Object.assign` in production. But will use Object.defineProperty:get to\n * pass all value access in development. To support statistic field usage with alias token.\n */\nexport function merge() {\n for (var _len = arguments.length, objs = new Array(_len), _key = 0; _key < _len; _key++) {\n objs[_key] = arguments[_key];\n }\n /* istanbul ignore next */\n if (!enableStatistic) {\n return Object.assign.apply(Object, [{}].concat(objs));\n }\n recording = false;\n const ret = {};\n objs.forEach(obj => {\n const keys = Object.keys(obj);\n keys.forEach(key => {\n Object.defineProperty(ret, key, {\n configurable: true,\n enumerable: true,\n get: () => obj[key]\n });\n });\n });\n recording = true;\n return ret;\n}\n/** @internal Internal Usage. Not use in your production. */\nexport const statistic = {};\n/** @internal Internal Usage. Not use in your production. */\n// eslint-disable-next-line camelcase\nexport const _statistic_build_ = {};\n/* istanbul ignore next */\nfunction noop() {}\n/** Statistic token usage case. Should use `merge` function if you do not want spread record. */\nexport default function statisticToken(token) {\n let tokenKeys;\n let proxy = token;\n let flush = noop;\n if (enableStatistic) {\n tokenKeys = new Set();\n proxy = new Proxy(token, {\n get(obj, prop) {\n if (recording) {\n tokenKeys.add(prop);\n }\n return obj[prop];\n }\n });\n flush = (componentName, componentToken) => {\n var _a;\n statistic[componentName] = {\n global: Array.from(tokenKeys),\n component: Object.assign(Object.assign({}, (_a = statistic[componentName]) === null || _a === void 0 ? void 0 : _a.component), componentToken)\n };\n };\n }\n return {\n token: proxy,\n keys: tokenKeys,\n flush\n };\n}","import { useStyleRegister } from '@ant-design/cssinjs';\nimport { resetIcon } from '../../style';\nimport useToken from '../useToken';\nconst useResetIconStyle = (iconPrefixCls, csp) => {\n const [theme, token] = useToken();\n // Generate style for icons\n return useStyleRegister({\n theme,\n token,\n hashId: '',\n path: ['ant-design-icons', iconPrefixCls],\n nonce: () => csp === null || csp === void 0 ? void 0 : csp.nonce\n }, () => [{\n [`.${iconPrefixCls}`]: Object.assign(Object.assign({}, resetIcon()), {\n [`.${iconPrefixCls} .${iconPrefixCls}-icon`]: {\n display: 'block'\n }\n })\n }]);\n};\nexport default useResetIconStyle;","const locale = {\n placeholder: 'Select time',\n rangePlaceholder: ['Start time', 'End time']\n};\nexport default locale;","import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';\nimport { genComponentStyleHook, genPresetColor, mergeToken } from '../../theme/internal';\nconst genTooltipStyle = token => {\n const {\n componentCls,\n // ant-tooltip\n tooltipMaxWidth,\n tooltipColor,\n tooltipBg,\n tooltipBorderRadius,\n zIndexPopup,\n controlHeight,\n boxShadowSecondary,\n paddingSM,\n paddingXS,\n tooltipRadiusOuter\n } = token;\n return [{\n [componentCls]: Object.assign(Object.assign(Object.assign(Object.assign({}, resetComponent(token)), {\n position: 'absolute',\n zIndex: zIndexPopup,\n display: 'block',\n width: 'max-content',\n maxWidth: tooltipMaxWidth,\n visibility: 'visible',\n transformOrigin: `var(--arrow-x, 50%) var(--arrow-y, 50%)`,\n '&-hidden': {\n display: 'none'\n },\n '--antd-arrow-background-color': tooltipBg,\n // Wrapper for the tooltip content\n [`${componentCls}-inner`]: {\n minWidth: controlHeight,\n minHeight: controlHeight,\n padding: `${paddingSM / 2}px ${paddingXS}px`,\n color: tooltipColor,\n textAlign: 'start',\n textDecoration: 'none',\n wordWrap: 'break-word',\n backgroundColor: tooltipBg,\n borderRadius: tooltipBorderRadius,\n boxShadow: boxShadowSecondary,\n boxSizing: 'border-box'\n },\n // Limit left and right placement radius\n [[`&-placement-left`, `&-placement-leftTop`, `&-placement-leftBottom`, `&-placement-right`, `&-placement-rightTop`, `&-placement-rightBottom`].join(',')]: {\n [`${componentCls}-inner`]: {\n borderRadius: Math.min(tooltipBorderRadius, MAX_VERTICAL_CONTENT_RADIUS)\n }\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n }\n }), genPresetColor(token, (colorKey, _ref) => {\n let {\n darkColor\n } = _ref;\n return {\n [`&${componentCls}-${colorKey}`]: {\n [`${componentCls}-inner`]: {\n backgroundColor: darkColor\n },\n [`${componentCls}-arrow`]: {\n '--antd-arrow-background-color': darkColor\n }\n }\n };\n })), {\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n })\n },\n // Arrow Style\n getArrowStyle(mergeToken(token, {\n borderRadiusOuter: tooltipRadiusOuter\n }), {\n colorBg: 'var(--antd-arrow-background-color)',\n contentRadius: tooltipBorderRadius,\n limitVerticalRadius: true\n }),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow\n }\n }];\n};\n// ============================== Export ==============================\nexport default ((prefixCls, injectStyle) => {\n const useOriginHook = genComponentStyleHook('Tooltip', token => {\n // Popover use Tooltip as internal component. We do not need to handle this.\n if (injectStyle === false) {\n return [];\n }\n const {\n borderRadius,\n colorTextLightSolid,\n colorBgDefault,\n borderRadiusOuter\n } = token;\n const TooltipToken = mergeToken(token, {\n // default variables\n tooltipMaxWidth: 250,\n tooltipColor: colorTextLightSolid,\n tooltipBorderRadius: borderRadius,\n tooltipBg: colorBgDefault,\n tooltipRadiusOuter: borderRadiusOuter > 4 ? 4 : borderRadiusOuter\n });\n return [genTooltipStyle(TooltipToken), initZoomMotion(token, 'zoom-big-fast')];\n }, _ref2 => {\n let {\n zIndexPopupBase,\n colorBgSpotlight\n } = _ref2;\n return {\n zIndexPopup: zIndexPopupBase + 70,\n colorBgDefault: colorBgSpotlight\n };\n }, {\n resetStyle: false\n });\n return useOriginHook(prefixCls);\n});","/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { isPresetColor } from '../_util/colors';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = classNames({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}","import classNames from 'classnames';\nimport { Popup } from 'rc-tooltip';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useStyle from './style';\nimport { parseColor } from './util';\n/** @private Internal Component. Do not use in your production. */\nconst PurePanel = props => {\n const {\n prefixCls: customizePrefixCls,\n className,\n placement = 'top',\n title,\n color,\n overlayInnerStyle\n } = props;\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const [wrapSSR, hashId] = useStyle(prefixCls, true);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n const cls = classNames(hashId, prefixCls, `${prefixCls}-pure`, `${prefixCls}-placement-${placement}`, className, colorInfo.className);\n return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n className: cls,\n style: arrowContentStyle\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-arrow`\n }), /*#__PURE__*/React.createElement(Popup, Object.assign({}, props, {\n className: hashId,\n prefixCls: prefixCls,\n overlayInnerStyle: formattedOverlayInnerStyle\n }), title)));\n};\nexport default PurePanel;","'use client';\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment, isValidElement } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport { NoCompactStyle } from '../space/Compact';\nimport theme from '../theme';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport { parseColor } from './util';\nconst {\n useToken\n} = theme;\nconst splitObject = (obj, keys) => {\n const picked = {};\n const omitted = Object.assign({}, obj);\n keys.forEach(key => {\n if (obj && key in obj) {\n picked[key] = obj[key];\n delete omitted[key];\n }\n });\n return {\n picked,\n omitted\n };\n};\n// Fix Tooltip won't hide at disabled button\n// mouse events don't trigger at disabled button in Chrome\n// https://github.com/react-component/tooltip/issues/18\nfunction getDisabledCompatibleChildren(element, prefixCls) {\n const elementType = element.type;\n if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {\n // Pick some layout related style properties up to span\n // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254\n const {\n picked,\n omitted\n } = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']);\n const spanStyle = Object.assign(Object.assign({\n display: 'inline-block'\n }, picked), {\n cursor: 'not-allowed',\n width: element.props.block ? '100%' : undefined\n });\n const buttonStyle = Object.assign(Object.assign({}, omitted), {\n pointerEvents: 'none'\n });\n const child = cloneElement(element, {\n style: buttonStyle,\n className: null\n });\n return /*#__PURE__*/React.createElement(\"span\", {\n style: spanStyle,\n className: classNames(element.props.className, `${prefixCls}-disabled-compatible-wrapper`)\n }, child);\n }\n return element;\n}\nconst Tooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a, _b;\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n overlayClassName,\n color,\n overlayInnerStyle,\n children,\n afterOpenChange,\n afterVisibleChange,\n destroyTooltipOnHide,\n arrow = true,\n title,\n overlay,\n builtinPlacements,\n arrowPointAtCenter = false,\n autoAdjustOverflow = true\n } = props;\n const mergedShowArrow = !!arrow;\n const {\n token\n } = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n // ============================== Ref ===============================\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n var _a;\n (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.forceAlign();\n };\n React.useImperativeHandle(ref, () => ({\n forceAlign,\n forcePopupAlign: () => {\n process.env.NODE_ENV !== \"production\" ? warning(false, 'Tooltip', '`forcePopupAlign` is align to `forceAlign` instead.') : void 0;\n forceAlign();\n }\n }));\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange'], ['arrowPointAtCenter', 'arrow={{ pointAtCenter: true }}']].forEach(_ref => {\n let [deprecatedName, newName] = _ref;\n process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Tooltip', `\\`${deprecatedName}\\` is deprecated, please use \\`${newName}\\` instead.`) : void 0;\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'Tooltip', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!arrow || typeof arrow === 'boolean' || !('arrowPointAtCenter' in arrow), 'Tooltip', '`arrowPointAtCenter` in `arrow` is deprecated, please use `pointAtCenter` instead.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useMergedState(false, {\n value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,\n defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible\n });\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onOpenChange = vis => {\n var _a, _b;\n setOpen(noTitle ? false : vis);\n if (!noTitle) {\n (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n var _a, _b;\n let mergedArrowPointAtCenter = arrowPointAtCenter;\n if (typeof arrow === 'object') {\n mergedArrowPointAtCenter = (_b = (_a = arrow.pointAtCenter) !== null && _a !== void 0 ? _a : arrow.arrowPointAtCenter) !== null && _b !== void 0 ? _b : arrowPointAtCenter;\n }\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrowPointAtCenter,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [arrowPointAtCenter, arrow, builtinPlacements, token]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(NoCompactStyle, null, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n const {\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n overlayStyle,\n rootClassName\n } = props,\n otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\", \"rootClassName\"]);\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && !('visible' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children), prefixCls);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const [wrapSSR, hashId] = useStyle(prefixCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n const customOverlayClassName = classNames(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, hashId);\n return wrapSSR( /*#__PURE__*/React.createElement(RcTooltip, Object.assign({}, otherProps, {\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n overlayClassName: customOverlayClassName,\n overlayStyle: Object.assign(Object.assign({}, arrowContentStyle), overlayStyle),\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onOpenChange,\n afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,\n overlayInnerStyle: formattedOverlayInnerStyle,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n motionDeadline: 1000\n },\n destroyTooltipOnHide: !!destroyTooltipOnHide\n }), tempOpen ? cloneElement(child, {\n className: childCls\n }) : child));\n});\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tooltip;","export default '5.8.5';","/* eslint import/no-unresolved: 0 */\n// @ts-ignore\nimport version from './version';\nexport default version;","function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n return _extends.apply(this, arguments);\n}\n\nfunction _inheritsLoose(subClass, superClass) {\n subClass.prototype = Object.create(superClass.prototype);\n subClass.prototype.constructor = subClass;\n\n _setPrototypeOf(subClass, superClass);\n}\n\nfunction _getPrototypeOf(o) {\n _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nfunction _setPrototypeOf(o, p) {\n _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n return _setPrototypeOf(o, p);\n}\n\nfunction _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nfunction _construct(Parent, args, Class) {\n if (_isNativeReflectConstruct()) {\n _construct = Reflect.construct.bind();\n } else {\n _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) _setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nfunction _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !_isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return _construct(Class, arguments, _getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return _setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\n/* eslint no-console:0 */\nvar formatRegExp = /%[sdj%]/g;\nvar warning = function warning() {}; // don't print warning message when in production env or node runtime\n\nif (typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {\n warning = function warning(type, errors) {\n if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') {\n if (errors.every(function (e) {\n return typeof e === 'string';\n })) {\n console.warn(type, errors);\n }\n }\n };\n}\n\nfunction convertFieldsError(errors) {\n if (!errors || !errors.length) return null;\n var fields = {};\n errors.forEach(function (error) {\n var field = error.field;\n fields[field] = fields[field] || [];\n fields[field].push(error);\n });\n return fields;\n}\nfunction format(template) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var i = 0;\n var len = args.length;\n\n if (typeof template === 'function') {\n return template.apply(null, args);\n }\n\n if (typeof template === 'string') {\n var str = template.replace(formatRegExp, function (x) {\n if (x === '%%') {\n return '%';\n }\n\n if (i >= len) {\n return x;\n }\n\n switch (x) {\n case '%s':\n return String(args[i++]);\n\n case '%d':\n return Number(args[i++]);\n\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n\n break;\n\n default:\n return x;\n }\n });\n return str;\n }\n\n return template;\n}\n\nfunction isNativeStringType(type) {\n return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';\n}\n\nfunction isEmptyValue(value, type) {\n if (value === undefined || value === null) {\n return true;\n }\n\n if (type === 'array' && Array.isArray(value) && !value.length) {\n return true;\n }\n\n if (isNativeStringType(type) && typeof value === 'string' && !value) {\n return true;\n }\n\n return false;\n}\n\nfunction asyncParallelArray(arr, func, callback) {\n var results = [];\n var total = 0;\n var arrLength = arr.length;\n\n function count(errors) {\n results.push.apply(results, errors || []);\n total++;\n\n if (total === arrLength) {\n callback(results);\n }\n }\n\n arr.forEach(function (a) {\n func(a, count);\n });\n}\n\nfunction asyncSerialArray(arr, func, callback) {\n var index = 0;\n var arrLength = arr.length;\n\n function next(errors) {\n if (errors && errors.length) {\n callback(errors);\n return;\n }\n\n var original = index;\n index = index + 1;\n\n if (original < arrLength) {\n func(arr[original], next);\n } else {\n callback([]);\n }\n }\n\n next([]);\n}\n\nfunction flattenObjArr(objArr) {\n var ret = [];\n Object.keys(objArr).forEach(function (k) {\n ret.push.apply(ret, objArr[k] || []);\n });\n return ret;\n}\n\nvar AsyncValidationError = /*#__PURE__*/function (_Error) {\n _inheritsLoose(AsyncValidationError, _Error);\n\n function AsyncValidationError(errors, fields) {\n var _this;\n\n _this = _Error.call(this, 'Async Validation Error') || this;\n _this.errors = errors;\n _this.fields = fields;\n return _this;\n }\n\n return AsyncValidationError;\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nfunction asyncMap(objArr, option, func, callback, source) {\n if (option.first) {\n var _pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n callback(errors);\n return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);\n };\n\n var flattenArr = flattenObjArr(objArr);\n asyncSerialArray(flattenArr, func, next);\n });\n\n _pending[\"catch\"](function (e) {\n return e;\n });\n\n return _pending;\n }\n\n var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];\n var objArrKeys = Object.keys(objArr);\n var objArrLength = objArrKeys.length;\n var total = 0;\n var results = [];\n var pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n results.push.apply(results, errors);\n total++;\n\n if (total === objArrLength) {\n callback(results);\n return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);\n }\n };\n\n if (!objArrKeys.length) {\n callback(results);\n resolve(source);\n }\n\n objArrKeys.forEach(function (key) {\n var arr = objArr[key];\n\n if (firstFields.indexOf(key) !== -1) {\n asyncSerialArray(arr, func, next);\n } else {\n asyncParallelArray(arr, func, next);\n }\n });\n });\n pending[\"catch\"](function (e) {\n return e;\n });\n return pending;\n}\n\nfunction isErrorObj(obj) {\n return !!(obj && obj.message !== undefined);\n}\n\nfunction getValue(value, path) {\n var v = value;\n\n for (var i = 0; i < path.length; i++) {\n if (v == undefined) {\n return v;\n }\n\n v = v[path[i]];\n }\n\n return v;\n}\n\nfunction complementError(rule, source) {\n return function (oe) {\n var fieldValue;\n\n if (rule.fullFields) {\n fieldValue = getValue(source, rule.fullFields);\n } else {\n fieldValue = source[oe.field || rule.fullField];\n }\n\n if (isErrorObj(oe)) {\n oe.field = oe.field || rule.fullField;\n oe.fieldValue = fieldValue;\n return oe;\n }\n\n return {\n message: typeof oe === 'function' ? oe() : oe,\n fieldValue: fieldValue,\n field: oe.field || rule.fullField\n };\n };\n}\nfunction deepMerge(target, source) {\n if (source) {\n for (var s in source) {\n if (source.hasOwnProperty(s)) {\n var value = source[s];\n\n if (typeof value === 'object' && typeof target[s] === 'object') {\n target[s] = _extends({}, target[s], value);\n } else {\n target[s] = value;\n }\n }\n }\n }\n\n return target;\n}\n\nvar required$1 = function required(rule, value, source, errors, options, type) {\n if (rule.required && (!source.hasOwnProperty(rule.field) || isEmptyValue(value, type || rule.type))) {\n errors.push(format(options.messages.required, rule.fullField));\n }\n};\n\n/**\n * Rule for validating whitespace.\n *\n * @param rule The validation rule.\n * @param value The value of the field on the source object.\n * @param source The source object being validated.\n * @param errors An array of errors that this rule may add\n * validation errors to.\n * @param options The validation options.\n * @param options.messages The validation messages.\n */\n\nvar whitespace = function whitespace(rule, value, source, errors, options) {\n if (/^\\s+$/.test(value) || value === '') {\n errors.push(format(options.messages.whitespace, rule.fullField));\n }\n};\n\n// https://github.com/kevva/url-regex/blob/master/index.js\nvar urlReg;\nvar getUrlRegex = (function () {\n if (urlReg) {\n return urlReg;\n }\n\n var word = '[a-fA-F\\\\d:]';\n\n var b = function b(options) {\n return options && options.includeBoundaries ? \"(?:(?<=\\\\s|^)(?=\" + word + \")|(?<=\" + word + \")(?=\\\\s|$))\" : '';\n };\n\n var v4 = '(?: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}';\n var v6seg = '[a-fA-F\\\\d]{1,4}';\n var v6 = (\"\\n(?:\\n(?:\" + v6seg + \":){7}(?:\" + v6seg + \"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\\n(?:\" + v6seg + \":){6}(?:\" + v4 + \"|:\" + v6seg + \"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\\n(?:\" + v6seg + \":){5}(?::\" + v4 + \"|(?::\" + v6seg + \"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\\n(?:\" + v6seg + \":){4}(?:(?::\" + v6seg + \"){0,1}:\" + v4 + \"|(?::\" + v6seg + \"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\\n(?:\" + v6seg + \":){3}(?:(?::\" + v6seg + \"){0,2}:\" + v4 + \"|(?::\" + v6seg + \"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\\n(?:\" + v6seg + \":){2}(?:(?::\" + v6seg + \"){0,3}:\" + v4 + \"|(?::\" + v6seg + \"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\\n(?:\" + v6seg + \":){1}(?:(?::\" + v6seg + \"){0,4}:\" + v4 + \"|(?::\" + v6seg + \"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\\n(?::(?:(?::\" + v6seg + \"){0,5}:\" + v4 + \"|(?::\" + v6seg + \"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\\n\").replace(/\\s*\\/\\/.*$/gm, '').replace(/\\n/g, '').trim(); // Pre-compile only the exact regexes because adding a global flag make regexes stateful\n\n var v46Exact = new RegExp(\"(?:^\" + v4 + \"$)|(?:^\" + v6 + \"$)\");\n var v4exact = new RegExp(\"^\" + v4 + \"$\");\n var v6exact = new RegExp(\"^\" + v6 + \"$\");\n\n var ip = function ip(options) {\n return options && options.exact ? v46Exact : new RegExp(\"(?:\" + b(options) + v4 + b(options) + \")|(?:\" + b(options) + v6 + b(options) + \")\", 'g');\n };\n\n ip.v4 = function (options) {\n return options && options.exact ? v4exact : new RegExp(\"\" + b(options) + v4 + b(options), 'g');\n };\n\n ip.v6 = function (options) {\n return options && options.exact ? v6exact : new RegExp(\"\" + b(options) + v6 + b(options), 'g');\n };\n\n var protocol = \"(?:(?:[a-z]+:)?//)\";\n var auth = '(?:\\\\S+(?::\\\\S*)?@)?';\n var ipv4 = ip.v4().source;\n var ipv6 = ip.v6().source;\n var host = \"(?:(?:[a-z\\\\u00a1-\\\\uffff0-9][-_]*)*[a-z\\\\u00a1-\\\\uffff0-9]+)\";\n var domain = \"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*\";\n var tld = \"(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,}))\";\n var port = '(?::\\\\d{2,5})?';\n var path = '(?:[/?#][^\\\\s\"]*)?';\n var regex = \"(?:\" + protocol + \"|www\\\\.)\" + auth + \"(?:localhost|\" + ipv4 + \"|\" + ipv6 + \"|\" + host + domain + tld + \")\" + port + path;\n urlReg = new RegExp(\"(?:^\" + regex + \"$)\", 'i');\n return urlReg;\n});\n\n/* eslint max-len:0 */\n\nvar pattern$2 = {\n // http://emailregex.com/\n email: /^(([^<>()\\[\\]\\\\.,;:\\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,}))$/,\n // url: new RegExp(\n // '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$',\n // 'i',\n // ),\n hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i\n};\nvar types = {\n integer: function integer(value) {\n return types.number(value) && parseInt(value, 10) === value;\n },\n \"float\": function float(value) {\n return types.number(value) && !types.integer(value);\n },\n array: function array(value) {\n return Array.isArray(value);\n },\n regexp: function regexp(value) {\n if (value instanceof RegExp) {\n return true;\n }\n\n try {\n return !!new RegExp(value);\n } catch (e) {\n return false;\n }\n },\n date: function date(value) {\n return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());\n },\n number: function number(value) {\n if (isNaN(value)) {\n return false;\n }\n\n return typeof value === 'number';\n },\n object: function object(value) {\n return typeof value === 'object' && !types.array(value);\n },\n method: function method(value) {\n return typeof value === 'function';\n },\n email: function email(value) {\n return typeof value === 'string' && value.length <= 320 && !!value.match(pattern$2.email);\n },\n url: function url(value) {\n return typeof value === 'string' && value.length <= 2048 && !!value.match(getUrlRegex());\n },\n hex: function hex(value) {\n return typeof value === 'string' && !!value.match(pattern$2.hex);\n }\n};\n\nvar type$1 = function type(rule, value, source, errors, options) {\n if (rule.required && value === undefined) {\n required$1(rule, value, source, errors, options);\n return;\n }\n\n var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];\n var ruleType = rule.type;\n\n if (custom.indexOf(ruleType) > -1) {\n if (!types[ruleType](value)) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n } // straight typeof check\n\n } else if (ruleType && typeof value !== rule.type) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n }\n};\n\nvar range = function range(rule, value, source, errors, options) {\n var len = typeof rule.len === 'number';\n var min = typeof rule.min === 'number';\n var max = typeof rule.max === 'number'; // 正则匹配码点范围从U+010000一直到U+10FFFF的文字(补充平面Supplementary Plane)\n\n var spRegexp = /[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g;\n var val = value;\n var key = null;\n var num = typeof value === 'number';\n var str = typeof value === 'string';\n var arr = Array.isArray(value);\n\n if (num) {\n key = 'number';\n } else if (str) {\n key = 'string';\n } else if (arr) {\n key = 'array';\n } // if the value is not of a supported type for range validation\n // the validation rule rule should use the\n // type property to also test for a particular type\n\n\n if (!key) {\n return false;\n }\n\n if (arr) {\n val = value.length;\n }\n\n if (str) {\n // 处理码点大于U+010000的文字length属性不准确的bug,如\"𠮷𠮷𠮷\".lenght !== 3\n val = value.replace(spRegexp, '_').length;\n }\n\n if (len) {\n if (val !== rule.len) {\n errors.push(format(options.messages[key].len, rule.fullField, rule.len));\n }\n } else if (min && !max && val < rule.min) {\n errors.push(format(options.messages[key].min, rule.fullField, rule.min));\n } else if (max && !min && val > rule.max) {\n errors.push(format(options.messages[key].max, rule.fullField, rule.max));\n } else if (min && max && (val < rule.min || val > rule.max)) {\n errors.push(format(options.messages[key].range, rule.fullField, rule.min, rule.max));\n }\n};\n\nvar ENUM$1 = 'enum';\n\nvar enumerable$1 = function enumerable(rule, value, source, errors, options) {\n rule[ENUM$1] = Array.isArray(rule[ENUM$1]) ? rule[ENUM$1] : [];\n\n if (rule[ENUM$1].indexOf(value) === -1) {\n errors.push(format(options.messages[ENUM$1], rule.fullField, rule[ENUM$1].join(', ')));\n }\n};\n\nvar pattern$1 = function pattern(rule, value, source, errors, options) {\n if (rule.pattern) {\n if (rule.pattern instanceof RegExp) {\n // if a RegExp instance is passed, reset `lastIndex` in case its `global`\n // flag is accidentally set to `true`, which in a validation scenario\n // is not necessary and the result might be misleading\n rule.pattern.lastIndex = 0;\n\n if (!rule.pattern.test(value)) {\n errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));\n }\n } else if (typeof rule.pattern === 'string') {\n var _pattern = new RegExp(rule.pattern);\n\n if (!_pattern.test(value)) {\n errors.push(format(options.messages.pattern.mismatch, rule.fullField, value, rule.pattern));\n }\n }\n }\n};\n\nvar rules = {\n required: required$1,\n whitespace: whitespace,\n type: type$1,\n range: range,\n \"enum\": enumerable$1,\n pattern: pattern$1\n};\n\nvar string = function string(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value, 'string') && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options, 'string');\n\n if (!isEmptyValue(value, 'string')) {\n rules.type(rule, value, source, errors, options);\n rules.range(rule, value, source, errors, options);\n rules.pattern(rule, value, source, errors, options);\n\n if (rule.whitespace === true) {\n rules.whitespace(rule, value, source, errors, options);\n }\n }\n }\n\n callback(errors);\n};\n\nvar method = function method(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar number = function number(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (value === '') {\n value = undefined;\n }\n\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n rules.range(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar _boolean = function _boolean(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar regexp = function regexp(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (!isEmptyValue(value)) {\n rules.type(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar integer = function integer(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n rules.range(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar floatFn = function floatFn(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n rules.range(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar array = function array(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if ((value === undefined || value === null) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options, 'array');\n\n if (value !== undefined && value !== null) {\n rules.type(rule, value, source, errors, options);\n rules.range(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar object = function object(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules.type(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar ENUM = 'enum';\n\nvar enumerable = function enumerable(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (value !== undefined) {\n rules[ENUM](rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar pattern = function pattern(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value, 'string') && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (!isEmptyValue(value, 'string')) {\n rules.pattern(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar date = function date(rule, value, callback, source, options) {\n // console.log('integer rule called %j', rule);\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);\n\n if (validate) {\n if (isEmptyValue(value, 'date') && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n\n if (!isEmptyValue(value, 'date')) {\n var dateObject;\n\n if (value instanceof Date) {\n dateObject = value;\n } else {\n dateObject = new Date(value);\n }\n\n rules.type(rule, dateObject, source, errors, options);\n\n if (dateObject) {\n rules.range(rule, dateObject.getTime(), source, errors, options);\n }\n }\n }\n\n callback(errors);\n};\n\nvar required = function required(rule, value, callback, source, options) {\n var errors = [];\n var type = Array.isArray(value) ? 'array' : typeof value;\n rules.required(rule, value, source, errors, options, type);\n callback(errors);\n};\n\nvar type = function type(rule, value, callback, source, options) {\n var ruleType = rule.type;\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value, ruleType) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options, ruleType);\n\n if (!isEmptyValue(value, ruleType)) {\n rules.type(rule, value, source, errors, options);\n }\n }\n\n callback(errors);\n};\n\nvar any = function any(rule, value, callback, source, options) {\n var errors = [];\n var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);\n\n if (validate) {\n if (isEmptyValue(value) && !rule.required) {\n return callback();\n }\n\n rules.required(rule, value, source, errors, options);\n }\n\n callback(errors);\n};\n\nvar validators = {\n string: string,\n method: method,\n number: number,\n \"boolean\": _boolean,\n regexp: regexp,\n integer: integer,\n \"float\": floatFn,\n array: array,\n object: object,\n \"enum\": enumerable,\n pattern: pattern,\n date: date,\n url: type,\n hex: type,\n email: type,\n required: required,\n any: any\n};\n\nfunction newMessages() {\n return {\n \"default\": 'Validation error on field %s',\n required: '%s is required',\n \"enum\": '%s must be one of %s',\n whitespace: '%s cannot be empty',\n date: {\n format: '%s date %s is invalid for format %s',\n parse: '%s date could not be parsed, %s is invalid ',\n invalid: '%s date %s is invalid'\n },\n types: {\n string: '%s is not a %s',\n method: '%s is not a %s (function)',\n array: '%s is not an %s',\n object: '%s is not an %s',\n number: '%s is not a %s',\n date: '%s is not a %s',\n \"boolean\": '%s is not a %s',\n integer: '%s is not an %s',\n \"float\": '%s is not a %s',\n regexp: '%s is not a valid %s',\n email: '%s is not a valid %s',\n url: '%s is not a valid %s',\n hex: '%s is not a valid %s'\n },\n string: {\n len: '%s must be exactly %s characters',\n min: '%s must be at least %s characters',\n max: '%s cannot be longer than %s characters',\n range: '%s must be between %s and %s characters'\n },\n number: {\n len: '%s must equal %s',\n min: '%s cannot be less than %s',\n max: '%s cannot be greater than %s',\n range: '%s must be between %s and %s'\n },\n array: {\n len: '%s must be exactly %s in length',\n min: '%s cannot be less than %s in length',\n max: '%s cannot be greater than %s in length',\n range: '%s must be between %s and %s in length'\n },\n pattern: {\n mismatch: '%s value %s does not match pattern %s'\n },\n clone: function clone() {\n var cloned = JSON.parse(JSON.stringify(this));\n cloned.clone = this.clone;\n return cloned;\n }\n };\n}\nvar messages = newMessages();\n\n/**\n * Encapsulates a validation schema.\n *\n * @param descriptor An object declaring validation rules\n * for this schema.\n */\n\nvar Schema = /*#__PURE__*/function () {\n // ========================= Static =========================\n // ======================== Instance ========================\n function Schema(descriptor) {\n this.rules = null;\n this._messages = messages;\n this.define(descriptor);\n }\n\n var _proto = Schema.prototype;\n\n _proto.define = function define(rules) {\n var _this = this;\n\n if (!rules) {\n throw new Error('Cannot configure a schema with no rules');\n }\n\n if (typeof rules !== 'object' || Array.isArray(rules)) {\n throw new Error('Rules must be an object');\n }\n\n this.rules = {};\n Object.keys(rules).forEach(function (name) {\n var item = rules[name];\n _this.rules[name] = Array.isArray(item) ? item : [item];\n });\n };\n\n _proto.messages = function messages(_messages) {\n if (_messages) {\n this._messages = deepMerge(newMessages(), _messages);\n }\n\n return this._messages;\n };\n\n _proto.validate = function validate(source_, o, oc) {\n var _this2 = this;\n\n if (o === void 0) {\n o = {};\n }\n\n if (oc === void 0) {\n oc = function oc() {};\n }\n\n var source = source_;\n var options = o;\n var callback = oc;\n\n if (typeof options === 'function') {\n callback = options;\n options = {};\n }\n\n if (!this.rules || Object.keys(this.rules).length === 0) {\n if (callback) {\n callback(null, source);\n }\n\n return Promise.resolve(source);\n }\n\n function complete(results) {\n var errors = [];\n var fields = {};\n\n function add(e) {\n if (Array.isArray(e)) {\n var _errors;\n\n errors = (_errors = errors).concat.apply(_errors, e);\n } else {\n errors.push(e);\n }\n }\n\n for (var i = 0; i < results.length; i++) {\n add(results[i]);\n }\n\n if (!errors.length) {\n callback(null, source);\n } else {\n fields = convertFieldsError(errors);\n callback(errors, fields);\n }\n }\n\n if (options.messages) {\n var messages$1 = this.messages();\n\n if (messages$1 === messages) {\n messages$1 = newMessages();\n }\n\n deepMerge(messages$1, options.messages);\n options.messages = messages$1;\n } else {\n options.messages = this.messages();\n }\n\n var series = {};\n var keys = options.keys || Object.keys(this.rules);\n keys.forEach(function (z) {\n var arr = _this2.rules[z];\n var value = source[z];\n arr.forEach(function (r) {\n var rule = r;\n\n if (typeof rule.transform === 'function') {\n if (source === source_) {\n source = _extends({}, source);\n }\n\n value = source[z] = rule.transform(value);\n }\n\n if (typeof rule === 'function') {\n rule = {\n validator: rule\n };\n } else {\n rule = _extends({}, rule);\n } // Fill validator. Skip if nothing need to validate\n\n\n rule.validator = _this2.getValidationMethod(rule);\n\n if (!rule.validator) {\n return;\n }\n\n rule.field = z;\n rule.fullField = rule.fullField || z;\n rule.type = _this2.getType(rule);\n series[z] = series[z] || [];\n series[z].push({\n rule: rule,\n value: value,\n source: source,\n field: z\n });\n });\n });\n var errorFields = {};\n return asyncMap(series, options, function (data, doIt) {\n var rule = data.rule;\n var deep = (rule.type === 'object' || rule.type === 'array') && (typeof rule.fields === 'object' || typeof rule.defaultField === 'object');\n deep = deep && (rule.required || !rule.required && data.value);\n rule.field = data.field;\n\n function addFullField(key, schema) {\n return _extends({}, schema, {\n fullField: rule.fullField + \".\" + key,\n fullFields: rule.fullFields ? [].concat(rule.fullFields, [key]) : [key]\n });\n }\n\n function cb(e) {\n if (e === void 0) {\n e = [];\n }\n\n var errorList = Array.isArray(e) ? e : [e];\n\n if (!options.suppressWarning && errorList.length) {\n Schema.warning('async-validator:', errorList);\n }\n\n if (errorList.length && rule.message !== undefined) {\n errorList = [].concat(rule.message);\n } // Fill error info\n\n\n var filledErrors = errorList.map(complementError(rule, source));\n\n if (options.first && filledErrors.length) {\n errorFields[rule.field] = 1;\n return doIt(filledErrors);\n }\n\n if (!deep) {\n doIt(filledErrors);\n } else {\n // if rule is required but the target object\n // does not exist fail at the rule level and don't\n // go deeper\n if (rule.required && !data.value) {\n if (rule.message !== undefined) {\n filledErrors = [].concat(rule.message).map(complementError(rule, source));\n } else if (options.error) {\n filledErrors = [options.error(rule, format(options.messages.required, rule.field))];\n }\n\n return doIt(filledErrors);\n }\n\n var fieldsSchema = {};\n\n if (rule.defaultField) {\n Object.keys(data.value).map(function (key) {\n fieldsSchema[key] = rule.defaultField;\n });\n }\n\n fieldsSchema = _extends({}, fieldsSchema, data.rule.fields);\n var paredFieldsSchema = {};\n Object.keys(fieldsSchema).forEach(function (field) {\n var fieldSchema = fieldsSchema[field];\n var fieldSchemaList = Array.isArray(fieldSchema) ? fieldSchema : [fieldSchema];\n paredFieldsSchema[field] = fieldSchemaList.map(addFullField.bind(null, field));\n });\n var schema = new Schema(paredFieldsSchema);\n schema.messages(options.messages);\n\n if (data.rule.options) {\n data.rule.options.messages = options.messages;\n data.rule.options.error = options.error;\n }\n\n schema.validate(data.value, data.rule.options || options, function (errs) {\n var finalErrors = [];\n\n if (filledErrors && filledErrors.length) {\n finalErrors.push.apply(finalErrors, filledErrors);\n }\n\n if (errs && errs.length) {\n finalErrors.push.apply(finalErrors, errs);\n }\n\n doIt(finalErrors.length ? finalErrors : null);\n });\n }\n }\n\n var res;\n\n if (rule.asyncValidator) {\n res = rule.asyncValidator(rule, data.value, cb, data.source, options);\n } else if (rule.validator) {\n try {\n res = rule.validator(rule, data.value, cb, data.source, options);\n } catch (error) {\n console.error == null ? void 0 : console.error(error); // rethrow to report error\n\n if (!options.suppressValidatorError) {\n setTimeout(function () {\n throw error;\n }, 0);\n }\n\n cb(error.message);\n }\n\n if (res === true) {\n cb();\n } else if (res === false) {\n cb(typeof rule.message === 'function' ? rule.message(rule.fullField || rule.field) : rule.message || (rule.fullField || rule.field) + \" fails\");\n } else if (res instanceof Array) {\n cb(res);\n } else if (res instanceof Error) {\n cb(res.message);\n }\n }\n\n if (res && res.then) {\n res.then(function () {\n return cb();\n }, function (e) {\n return cb(e);\n });\n }\n }, function (results) {\n complete(results);\n }, source);\n };\n\n _proto.getType = function getType(rule) {\n if (rule.type === undefined && rule.pattern instanceof RegExp) {\n rule.type = 'pattern';\n }\n\n if (typeof rule.validator !== 'function' && rule.type && !validators.hasOwnProperty(rule.type)) {\n throw new Error(format('Unknown rule type %s', rule.type));\n }\n\n return rule.type || 'string';\n };\n\n _proto.getValidationMethod = function getValidationMethod(rule) {\n if (typeof rule.validator === 'function') {\n return rule.validator;\n }\n\n var keys = Object.keys(rule);\n var messageIndex = keys.indexOf('message');\n\n if (messageIndex !== -1) {\n keys.splice(messageIndex, 1);\n }\n\n if (keys.length === 1 && keys[0] === 'required') {\n return validators.required;\n }\n\n return validators[this.getType(rule)] || undefined;\n };\n\n return Schema;\n}();\n\nSchema.register = function register(type, validator) {\n if (typeof validator !== 'function') {\n throw new Error('Cannot register a validator by type, validator is not a function');\n }\n\n validators[type] = validator;\n};\n\nSchema.warning = warning;\nSchema.messages = messages;\nSchema.validators = validators;\n\nexport { Schema as default };\n//# sourceMappingURL=index.js.map\n","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar transitionalDefaults = require('../defaults/transitional');\nvar AxiosError = require('../core/AxiosError');\nvar CanceledError = require('../cancel/CanceledError');\nvar parseProtocol = require('../helpers/parseProtocol');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n var onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData) && utils.isStandardBrowserEnv()) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(new AxiosError('Request aborted', AxiosError.ECONNABORTED, config, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(new AxiosError('Network Error', AxiosError.ERR_NETWORK, config, request, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = config.transitional || transitionalDefaults;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(new AxiosError(\n timeoutErrorMessage,\n transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,\n config,\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function(cancel) {\n if (!request) {\n return;\n }\n reject(!cancel || (cancel && cancel.type) ? new CanceledError() : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n var protocol = parseProtocol(fullPath);\n\n if (protocol && [ 'http', 'https', 'file' ].indexOf(protocol) === -1) {\n reject(new AxiosError('Unsupported protocol ' + protocol + ':', AxiosError.ERR_BAD_REQUEST, config));\n return;\n }\n\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.CanceledError = require('./cancel/CanceledError');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\naxios.VERSION = require('./env/data').version;\naxios.toFormData = require('./helpers/toFormData');\n\n// Expose AxiosError class\naxios.AxiosError = require('../lib/core/AxiosError');\n\n// alias for CanceledError for backward compatibility\naxios.Cancel = axios.CanceledError;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\nvar CanceledError = require('./CanceledError');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(function(cancel) {\n if (!token._listeners) return;\n\n var i;\n var l = token._listeners.length;\n\n for (i = 0; i < l; i++) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = function(onfulfilled) {\n var _resolve;\n // eslint-disable-next-line func-names\n var promise = new Promise(function(resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new CanceledError(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Subscribe to the cancel signal\n */\n\nCancelToken.prototype.subscribe = function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n};\n\n/**\n * Unsubscribe from the cancel signal\n */\n\nCancelToken.prototype.unsubscribe = function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n var index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nvar AxiosError = require('../core/AxiosError');\nvar utils = require('../utils');\n\n/**\n * A `CanceledError` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction CanceledError(message) {\n // eslint-disable-next-line no-eq-null,eqeqeq\n AxiosError.call(this, message == null ? 'canceled' : message, AxiosError.ERR_CANCELED);\n this.name = 'CanceledError';\n}\n\nutils.inherits(CanceledError, AxiosError, {\n __CANCEL__: true\n});\n\nmodule.exports = CanceledError;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar buildFullPath = require('./buildFullPath');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(configOrUrl, config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof configOrUrl === 'string') {\n config = config || {};\n config.url = configOrUrl;\n } else {\n config = configOrUrl || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n var fullPath = buildFullPath(config.baseURL, config.url);\n return buildURL(fullPath, config.params, config.paramsSerializer);\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n\n function generateHTTPMethod(isForm) {\n return function httpMethod(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n headers: isForm ? {\n 'Content-Type': 'multipart/form-data'\n } : {},\n url: url,\n data: data\n }));\n };\n }\n\n Axios.prototype[method] = generateHTTPMethod();\n\n Axios.prototype[method + 'Form'] = generateHTTPMethod(true);\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [config] The config.\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nfunction AxiosError(message, code, config, request, response) {\n Error.call(this);\n this.message = message;\n this.name = 'AxiosError';\n code && (this.code = code);\n config && (this.config = config);\n request && (this.request = request);\n response && (this.response = response);\n}\n\nutils.inherits(AxiosError, Error, {\n toJSON: function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n }\n});\n\nvar prototype = AxiosError.prototype;\nvar descriptors = {};\n\n[\n 'ERR_BAD_OPTION_VALUE',\n 'ERR_BAD_OPTION',\n 'ECONNABORTED',\n 'ETIMEDOUT',\n 'ERR_NETWORK',\n 'ERR_FR_TOO_MANY_REDIRECTS',\n 'ERR_DEPRECATED',\n 'ERR_BAD_RESPONSE',\n 'ERR_BAD_REQUEST',\n 'ERR_CANCELED'\n// eslint-disable-next-line func-names\n].forEach(function(code) {\n descriptors[code] = {value: code};\n});\n\nObject.defineProperties(AxiosError, descriptors);\nObject.defineProperty(prototype, 'isAxiosError', {value: true});\n\n// eslint-disable-next-line func-names\nAxiosError.from = function(error, code, config, request, response, customProps) {\n var axiosError = Object.create(prototype);\n\n utils.toFlatObject(error, axiosError, function filter(obj) {\n return obj !== Error.prototype;\n });\n\n AxiosError.call(axiosError, error.message, code, config, request, response);\n\n axiosError.name = error.name;\n\n customProps && Object.assign(axiosError, customProps);\n\n return axiosError;\n};\n\nmodule.exports = AxiosError;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar CanceledError = require('../cancel/CanceledError');\n\n/**\n * Throws a `CanceledError` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new CanceledError();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(prop) {\n if (prop in config2) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n var mergeMap = {\n 'url': valueFromConfig2,\n 'method': valueFromConfig2,\n 'data': valueFromConfig2,\n 'baseURL': defaultToConfig2,\n 'transformRequest': defaultToConfig2,\n 'transformResponse': defaultToConfig2,\n 'paramsSerializer': defaultToConfig2,\n 'timeout': defaultToConfig2,\n 'timeoutMessage': defaultToConfig2,\n 'withCredentials': defaultToConfig2,\n 'adapter': defaultToConfig2,\n 'responseType': defaultToConfig2,\n 'xsrfCookieName': defaultToConfig2,\n 'xsrfHeaderName': defaultToConfig2,\n 'onUploadProgress': defaultToConfig2,\n 'onDownloadProgress': defaultToConfig2,\n 'decompress': defaultToConfig2,\n 'maxContentLength': defaultToConfig2,\n 'maxBodyLength': defaultToConfig2,\n 'beforeRedirect': defaultToConfig2,\n 'transport': defaultToConfig2,\n 'httpAgent': defaultToConfig2,\n 'httpsAgent': defaultToConfig2,\n 'cancelToken': defaultToConfig2,\n 'socketPath': defaultToConfig2,\n 'responseEncoding': defaultToConfig2,\n 'validateStatus': mergeDirectKeys\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n};\n","'use strict';\n\nvar AxiosError = require('./AxiosError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(new AxiosError(\n 'Request failed with status code ' + response.status,\n [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4],\n response.config,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('../utils');\nvar normalizeHeaderName = require('../helpers/normalizeHeaderName');\nvar AxiosError = require('../core/AxiosError');\nvar transitionalDefaults = require('./transitional');\nvar toFormData = require('../helpers/toFormData');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('../adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('../adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: transitionalDefaults,\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n\n var isObjectPayload = utils.isObject(data);\n var contentType = headers && headers['Content-Type'];\n\n var isFileList;\n\n if ((isFileList = utils.isFileList(data)) || (isObjectPayload && contentType === 'multipart/form-data')) {\n var _FormData = this.env && this.env.FormData;\n return toFormData(isFileList ? {'files[]': data} : data, _FormData && new _FormData());\n } else if (isObjectPayload || contentType === 'application/json') {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n env: {\n FormData: require('./env/FormData')\n },\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nmodule.exports = {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n};\n","module.exports = {\n \"version\": \"0.27.2\"\n};","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d+\\-.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return utils.isObject(payload) && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","// eslint-disable-next-line strict\nmodule.exports = null;\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\nmodule.exports = function parseProtocol(url) {\n var match = /^([-+\\w]{1,25})(:?\\/\\/|:)/.exec(url);\n return match && match[1] || '';\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Convert a data object to FormData\n * @param {Object} obj\n * @param {?Object} [formData]\n * @returns {Object}\n **/\n\nfunction toFormData(obj, formData) {\n // eslint-disable-next-line no-param-reassign\n formData = formData || new FormData();\n\n var stack = [];\n\n function convertValue(value) {\n if (value === null) return '';\n\n if (utils.isDate(value)) {\n return value.toISOString();\n }\n\n if (utils.isArrayBuffer(value) || utils.isTypedArray(value)) {\n return typeof Blob === 'function' ? new Blob([value]) : Buffer.from(value);\n }\n\n return value;\n }\n\n function build(data, parentKey) {\n if (utils.isPlainObject(data) || utils.isArray(data)) {\n if (stack.indexOf(data) !== -1) {\n throw Error('Circular reference detected in ' + parentKey);\n }\n\n stack.push(data);\n\n utils.forEach(data, function each(value, key) {\n if (utils.isUndefined(value)) return;\n var fullKey = parentKey ? parentKey + '.' + key : key;\n var arr;\n\n if (value && !parentKey && typeof value === 'object') {\n if (utils.endsWith(key, '{}')) {\n // eslint-disable-next-line no-param-reassign\n value = JSON.stringify(value);\n } else if (utils.endsWith(key, '[]') && (arr = utils.toArray(value))) {\n // eslint-disable-next-line func-names\n arr.forEach(function(el) {\n !utils.isUndefined(el) && formData.append(fullKey, convertValue(el));\n });\n return;\n }\n }\n\n build(value, fullKey);\n });\n\n stack.pop();\n } else {\n formData.append(parentKey, convertValue(data));\n }\n }\n\n build(obj);\n\n return formData;\n}\n\nmodule.exports = toFormData;\n","'use strict';\n\nvar VERSION = require('../env/data').version;\nvar AxiosError = require('../core/AxiosError');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new AxiosError(\n formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')),\n AxiosError.ERR_DEPRECATED\n );\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new AxiosError('options must be an object', AxiosError.ERR_BAD_OPTION_VALUE);\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new AxiosError('option ' + opt + ' must be ' + result, AxiosError.ERR_BAD_OPTION_VALUE);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw new AxiosError('Unknown option ' + opt, AxiosError.ERR_BAD_OPTION);\n }\n }\n}\n\nmodule.exports = {\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n// eslint-disable-next-line func-names\nvar kindOf = (function(cache) {\n // eslint-disable-next-line func-names\n return function(thing) {\n var str = toString.call(thing);\n return cache[str] || (cache[str] = str.slice(8, -1).toLowerCase());\n };\n})(Object.create(null));\n\nfunction kindOfTest(type) {\n type = type.toLowerCase();\n return function isKindOf(thing) {\n return kindOf(thing) === type;\n };\n}\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return Array.isArray(val);\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nvar isArrayBuffer = kindOfTest('ArrayBuffer');\n\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (kindOf(val) !== 'object') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nvar isDate = kindOfTest('Date');\n\n/**\n * Determine if a value is a File\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nvar isFile = kindOfTest('File');\n\n/**\n * Determine if a value is a Blob\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nvar isBlob = kindOfTest('Blob');\n\n/**\n * Determine if a value is a FileList\n *\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nvar isFileList = kindOfTest('FileList');\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} thing The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(thing) {\n var pattern = '[object FormData]';\n return thing && (\n (typeof FormData === 'function' && thing instanceof FormData) ||\n toString.call(thing) === pattern ||\n (isFunction(thing.toString) && thing.toString() === pattern)\n );\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n * @function\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nvar isURLSearchParams = kindOfTest('URLSearchParams');\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\n/**\n * Inherit the prototype methods from one constructor into another\n * @param {function} constructor\n * @param {function} superConstructor\n * @param {object} [props]\n * @param {object} [descriptors]\n */\n\nfunction inherits(constructor, superConstructor, props, descriptors) {\n constructor.prototype = Object.create(superConstructor.prototype, descriptors);\n constructor.prototype.constructor = constructor;\n props && Object.assign(constructor.prototype, props);\n}\n\n/**\n * Resolve object with deep prototype chain to a flat object\n * @param {Object} sourceObj source object\n * @param {Object} [destObj]\n * @param {Function} [filter]\n * @returns {Object}\n */\n\nfunction toFlatObject(sourceObj, destObj, filter) {\n var props;\n var i;\n var prop;\n var merged = {};\n\n destObj = destObj || {};\n\n do {\n props = Object.getOwnPropertyNames(sourceObj);\n i = props.length;\n while (i-- > 0) {\n prop = props[i];\n if (!merged[prop]) {\n destObj[prop] = sourceObj[prop];\n merged[prop] = true;\n }\n }\n sourceObj = Object.getPrototypeOf(sourceObj);\n } while (sourceObj && (!filter || filter(sourceObj, destObj)) && sourceObj !== Object.prototype);\n\n return destObj;\n}\n\n/*\n * determines whether a string ends with the characters of a specified string\n * @param {String} str\n * @param {String} searchString\n * @param {Number} [position= 0]\n * @returns {boolean}\n */\nfunction endsWith(str, searchString, position) {\n str = String(str);\n if (position === undefined || position > str.length) {\n position = str.length;\n }\n position -= searchString.length;\n var lastIndex = str.indexOf(searchString, position);\n return lastIndex !== -1 && lastIndex === position;\n}\n\n\n/**\n * Returns new array from array like object\n * @param {*} [thing]\n * @returns {Array}\n */\nfunction toArray(thing) {\n if (!thing) return null;\n var i = thing.length;\n if (isUndefined(i)) return null;\n var arr = new Array(i);\n while (i-- > 0) {\n arr[i] = thing[i];\n }\n return arr;\n}\n\n// eslint-disable-next-line func-names\nvar isTypedArray = (function(TypedArray) {\n // eslint-disable-next-line func-names\n return function(thing) {\n return TypedArray && thing instanceof TypedArray;\n };\n})(typeof Uint8Array !== 'undefined' && Object.getPrototypeOf(Uint8Array));\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM,\n inherits: inherits,\n toFlatObject: toFlatObject,\n kindOf: kindOf,\n kindOfTest: kindOfTest,\n endsWith: endsWith,\n toArray: toArray,\n isTypedArray: isTypedArray,\n isFileList: isFileList\n};\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = require('base64-js')\nvar ieee754 = require('ieee754')\nvar isArray = require('isarray')\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\n/*\n * Export kMaxLength after typed array support is determined.\n */\nexports.kMaxLength = kMaxLength()\n\nfunction typedArraySupport () {\n try {\n var arr = new Uint8Array(1)\n arr.__proto__ = {__proto__: Uint8Array.prototype, foo: function () { return 42 }}\n return arr.foo() === 42 && // typed array instances can be augmented\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\nfunction createBuffer (that, length) {\n if (kMaxLength() < length) {\n throw new RangeError('Invalid typed array length')\n }\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = new Uint8Array(length)\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n if (that === null) {\n that = new Buffer(length)\n }\n that.length = length\n }\n\n return that\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n if (!Buffer.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer)) {\n return new Buffer(arg, encodingOrOffset, length)\n }\n\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new Error(\n 'If encoding is specified then the first argument must be a string'\n )\n }\n return allocUnsafe(this, arg)\n }\n return from(this, arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\n// TODO: Legacy, not needed anymore. Remove in next major version.\nBuffer._augment = function (arr) {\n arr.__proto__ = Buffer.prototype\n return arr\n}\n\nfunction from (that, value, encodingOrOffset, length) {\n if (typeof value === 'number') {\n throw new TypeError('\"value\" argument must not be a number')\n }\n\n if (typeof ArrayBuffer !== 'undefined' && value instanceof ArrayBuffer) {\n return fromArrayBuffer(that, value, encodingOrOffset, length)\n }\n\n if (typeof value === 'string') {\n return fromString(that, value, encodingOrOffset)\n }\n\n return fromObject(that, value)\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(null, value, encodingOrOffset, length)\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n if (typeof Symbol !== 'undefined' && Symbol.species &&\n Buffer[Symbol.species] === Buffer) {\n // Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97\n Object.defineProperty(Buffer, Symbol.species, {\n value: null,\n configurable: true\n })\n }\n}\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be a number')\n } else if (size < 0) {\n throw new RangeError('\"size\" argument must not be negative')\n }\n}\n\nfunction alloc (that, size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(that, size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(that, size).fill(fill, encoding)\n : createBuffer(that, size).fill(fill)\n }\n return createBuffer(that, size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(null, size, fill, encoding)\n}\n\nfunction allocUnsafe (that, size) {\n assertSize(size)\n that = createBuffer(that, size < 0 ? 0 : checked(size) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < size; ++i) {\n that[i] = 0\n }\n }\n return that\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(null, size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(null, size)\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('\"encoding\" must be a valid string encoding')\n }\n\n var length = byteLength(string, encoding) | 0\n that = createBuffer(that, length)\n\n var actual = that.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n that = that.slice(0, actual)\n }\n\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n that = createBuffer(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array, byteOffset, length) {\n array.byteLength // this throws if `array` is not a valid ArrayBuffer\n\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\\'offset\\' is out of bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\\'length\\' is out of bounds')\n }\n\n if (byteOffset === undefined && length === undefined) {\n array = new Uint8Array(array)\n } else if (length === undefined) {\n array = new Uint8Array(array, byteOffset)\n } else {\n array = new Uint8Array(array, byteOffset, length)\n }\n\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = array\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromArrayLike(that, array)\n }\n return that\n}\n\nfunction fromObject (that, obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n that = createBuffer(that, len)\n\n if (that.length === 0) {\n return that\n }\n\n obj.copy(that, 0, 0, len)\n return that\n }\n\n if (obj) {\n if ((typeof ArrayBuffer !== 'undefined' &&\n obj.buffer instanceof ArrayBuffer) || 'length' in obj) {\n if (typeof obj.length !== 'number' || isnan(obj.length)) {\n return createBuffer(that, 0)\n }\n return fromArrayLike(that, obj)\n }\n\n if (obj.type === 'Buffer' && isArray(obj.data)) {\n return fromArrayLike(that, obj.data)\n }\n }\n\n throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength()` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (typeof ArrayBuffer !== 'undefined' && typeof ArrayBuffer.isView === 'function' &&\n (ArrayBuffer.isView(string) || string instanceof ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n string = '' + string\n }\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n case undefined:\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect\n// Buffer instances.\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (!Buffer.isBuffer(target)) {\n throw new TypeError('Argument must be a Buffer')\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (isNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (Buffer.TYPED_ARRAY_SUPPORT &&\n typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [ val ], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new TypeError('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = this.subarray(start, end)\n newBuf.__proto__ = Buffer.prototype\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; ++i) {\n newBuf[i] = this[i + start]\n }\n }\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; ++i) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; ++i) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; ++i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, start + len),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if (code < 256) {\n val = code\n }\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n } else if (typeof val === 'number') {\n val = val & 255\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : utf8ToBytes(new Buffer(val, encoding).toString())\n var len = bytes.length\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\nfunction isnan (val) {\n return val !== val // eslint-disable-line no-self-compare\n}\n","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","\"use strict\";\n\nvar deselectCurrent = require(\"toggle-selection\");\n\nvar clipboardToIE11Formatting = {\n \"text/plain\": \"Text\",\n \"text/html\": \"Url\",\n \"default\": \"Text\"\n}\n\nvar defaultMessage = \"Copy to clipboard: #{key}, Enter\";\n\nfunction format(message) {\n var copyKey = (/mac os x/i.test(navigator.userAgent) ? \"⌘\" : \"Ctrl\") + \"+C\";\n return message.replace(/#{\\s*key\\s*}/g, copyKey);\n}\n\nfunction copy(text, options) {\n var debug,\n message,\n reselectPrevious,\n range,\n selection,\n mark,\n success = false;\n if (!options) {\n options = {};\n }\n debug = options.debug || false;\n try {\n reselectPrevious = deselectCurrent();\n\n range = document.createRange();\n selection = document.getSelection();\n\n mark = document.createElement(\"span\");\n mark.textContent = text;\n // avoid screen readers from reading out loud the text\n mark.ariaHidden = \"true\"\n // reset user styles for span element\n mark.style.all = \"unset\";\n // prevents scrolling to the end of the page\n mark.style.position = \"fixed\";\n mark.style.top = 0;\n mark.style.clip = \"rect(0, 0, 0, 0)\";\n // used to preserve spaces and line breaks\n mark.style.whiteSpace = \"pre\";\n // do not inherit user-select (it may be `none`)\n mark.style.webkitUserSelect = \"text\";\n mark.style.MozUserSelect = \"text\";\n mark.style.msUserSelect = \"text\";\n mark.style.userSelect = \"text\";\n mark.addEventListener(\"copy\", function(e) {\n e.stopPropagation();\n if (options.format) {\n e.preventDefault();\n if (typeof e.clipboardData === \"undefined\") { // IE 11\n debug && console.warn(\"unable to use e.clipboardData\");\n debug && console.warn(\"trying IE specific stuff\");\n window.clipboardData.clearData();\n var format = clipboardToIE11Formatting[options.format] || clipboardToIE11Formatting[\"default\"]\n window.clipboardData.setData(format, text);\n } else { // all other browsers\n e.clipboardData.clearData();\n e.clipboardData.setData(options.format, text);\n }\n }\n if (options.onCopy) {\n e.preventDefault();\n options.onCopy(e.clipboardData);\n }\n });\n\n document.body.appendChild(mark);\n\n range.selectNodeContents(mark);\n selection.addRange(range);\n\n var successful = document.execCommand(\"copy\");\n if (!successful) {\n throw new Error(\"copy command was unsuccessful\");\n }\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using execCommand: \", err);\n debug && console.warn(\"trying IE specific stuff\");\n try {\n window.clipboardData.setData(options.format || \"text\", text);\n options.onCopy && options.onCopy(window.clipboardData);\n success = true;\n } catch (err) {\n debug && console.error(\"unable to copy using clipboardData: \", err);\n debug && console.error(\"falling back to prompt\");\n message = format(\"message\" in options ? options.message : defaultMessage);\n window.prompt(message, text);\n }\n } finally {\n if (selection) {\n if (typeof selection.removeRange == \"function\") {\n selection.removeRange(range);\n } else {\n selection.removeAllRanges();\n }\n }\n\n if (mark) {\n document.body.removeChild(mark);\n }\n reselectPrevious();\n }\n\n return success;\n}\n\nmodule.exports = copy;\n","var isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a function');\n};\n","var isConstructor = require('../internals/is-constructor');\nvar tryToString = require('../internals/try-to-string');\n\nvar $TypeError = TypeError;\n\n// `Assert: IsConstructor(argument) is true`\nmodule.exports = function (argument) {\n if (isConstructor(argument)) return argument;\n throw $TypeError(tryToString(argument) + ' is not a constructor');\n};\n","var has = require('../internals/map-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[MapData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","var isCallable = require('../internals/is-callable');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw $TypeError(\"Can't set \" + $String(argument) + ' as a prototype');\n};\n","var has = require('../internals/set-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[SetData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","var has = require('../internals/weak-map-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[WeakMapData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","var has = require('../internals/weak-set-helpers').has;\n\n// Perform ? RequireInternalSlot(M, [[WeakSetData]])\nmodule.exports = function (it) {\n has(it);\n return it;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar bind = require('../internals/function-bind-context');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar getMethod = require('../internals/get-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');\nvar DISPOSE = wellKnownSymbol('dispose');\n\nvar push = uncurryThis([].push);\n\nvar getDisposeMethod = function (V, hint) {\n if (hint == 'async-dispose') {\n return getMethod(V, ASYNC_DISPOSE) || getMethod(V, DISPOSE);\n } return getMethod(V, DISPOSE);\n};\n\n// `CreateDisposableResource` abstract operation\n// https://tc39.es/proposal-explicit-resource-management/#sec-createdisposableresource\nvar createDisposableResource = function (V, hint, method) {\n return bind(method || getDisposeMethod(V, hint), V);\n};\n\n// `AddDisposableResource` abstract operation\n// https://tc39.es/proposal-explicit-resource-management/#sec-adddisposableresource-disposable-v-hint-disposemethod\nmodule.exports = function (disposable, V, hint, method) {\n var resource;\n if (!method) {\n if (isNullOrUndefined(V)) return;\n resource = createDisposableResource(V, hint);\n } else if (isNullOrUndefined(V)) {\n resource = createDisposableResource(undefined, hint, method);\n } else {\n resource = createDisposableResource(anObject(V), hint, method);\n }\n\n push(disposable.stack, resource);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar create = require('../internals/object-create');\nvar defineProperty = require('../internals/object-define-property').f;\n\nvar UNSCOPABLES = wellKnownSymbol('unscopables');\nvar ArrayPrototype = Array.prototype;\n\n// Array.prototype[@@unscopables]\n// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables\nif (ArrayPrototype[UNSCOPABLES] == undefined) {\n defineProperty(ArrayPrototype, UNSCOPABLES, {\n configurable: true,\n value: create(null)\n });\n}\n\n// add a key to Array.prototype[@@unscopables]\nmodule.exports = function (key) {\n ArrayPrototype[UNSCOPABLES][key] = true;\n};\n","var isPrototypeOf = require('../internals/object-is-prototype-of');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (it, Prototype) {\n if (isPrototypeOf(Prototype, it)) return it;\n throw $TypeError('Incorrect invocation');\n};\n","var isObject = require('../internals/is-object');\n\nvar $String = String;\nvar $TypeError = TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw $TypeError($String(argument) + ' is not an object');\n};\n","// eslint-disable-next-line es/no-typed-arrays -- safe\nmodule.exports = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';\n","var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar classof = require('../internals/classof-raw');\n\nvar $TypeError = TypeError;\n\n// Includes\n// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).\n// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.\nmodule.exports = uncurryThisAccessor(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {\n if (classof(O) != 'ArrayBuffer') throw $TypeError('ArrayBuffer expected');\n return O.byteLength;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar arrayBufferByteLength = require('../internals/array-buffer-byte-length');\n\nvar slice = uncurryThis(ArrayBuffer.prototype.slice);\n\nmodule.exports = function (O) {\n if (arrayBufferByteLength(O) !== 0) return false;\n try {\n slice(O, 0, 0);\n return false;\n } catch (error) {\n return true;\n }\n};\n","// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it\nvar fails = require('../internals/fails');\n\nmodule.exports = fails(function () {\n if (typeof ArrayBuffer == 'function') {\n var buffer = new ArrayBuffer(8);\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe\n if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });\n }\n});\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar toIndex = require('../internals/to-index');\nvar isDetached = require('../internals/array-buffer-is-detached');\nvar arrayBufferByteLength = require('../internals/array-buffer-byte-length');\nvar PROPER_TRANSFER = require('../internals/structured-clone-proper-transfer');\n\nvar TypeError = global.TypeError;\nvar structuredClone = global.structuredClone;\nvar ArrayBuffer = global.ArrayBuffer;\nvar DataView = global.DataView;\nvar min = Math.min;\nvar ArrayBufferPrototype = ArrayBuffer.prototype;\nvar DataViewPrototype = DataView.prototype;\nvar slice = uncurryThis(ArrayBufferPrototype.slice);\nvar isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');\nvar maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');\nvar getInt8 = uncurryThis(DataViewPrototype.getInt8);\nvar setInt8 = uncurryThis(DataViewPrototype.setInt8);\n\nmodule.exports = PROPER_TRANSFER && function (arrayBuffer, newLength, preserveResizability) {\n var byteLength = arrayBufferByteLength(arrayBuffer);\n var newByteLength = newLength === undefined ? byteLength : min(toIndex(newLength), byteLength);\n var fixedLength = !isResizable || !isResizable(arrayBuffer);\n if (isDetached(arrayBuffer)) throw TypeError('ArrayBuffer is detached');\n var newBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });\n if (byteLength == newByteLength && (preserveResizability || fixedLength)) return newBuffer;\n if (!preserveResizability || fixedLength) return slice(newBuffer, 0, newByteLength);\n var newNewBuffer = new ArrayBuffer(newByteLength, maxByteLength && { maxByteLength: maxByteLength(newBuffer) });\n var a = new DataView(newBuffer);\n var b = new DataView(newNewBuffer);\n for (var i = 0; i < newByteLength; i++) setInt8(b, i, getInt8(a, i));\n return newNewBuffer;\n};\n","'use strict';\nvar NATIVE_ARRAY_BUFFER = require('../internals/array-buffer-basic-detection');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar classof = require('../internals/classof');\nvar tryToString = require('../internals/try-to-string');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar uid = require('../internals/uid');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar Int8Array = global.Int8Array;\nvar Int8ArrayPrototype = Int8Array && Int8Array.prototype;\nvar Uint8ClampedArray = global.Uint8ClampedArray;\nvar Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;\nvar TypedArray = Int8Array && getPrototypeOf(Int8Array);\nvar TypedArrayPrototype = Int8ArrayPrototype && getPrototypeOf(Int8ArrayPrototype);\nvar ObjectPrototype = Object.prototype;\nvar TypeError = global.TypeError;\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar TYPED_ARRAY_TAG = uid('TYPED_ARRAY_TAG');\nvar TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';\n// Fixing native typed arrays in Opera Presto crashes the browser, see #595\nvar NATIVE_ARRAY_BUFFER_VIEWS = NATIVE_ARRAY_BUFFER && !!setPrototypeOf && classof(global.opera) !== 'Opera';\nvar TYPED_ARRAY_TAG_REQUIRED = false;\nvar NAME, Constructor, Prototype;\n\nvar TypedArrayConstructorsList = {\n Int8Array: 1,\n Uint8Array: 1,\n Uint8ClampedArray: 1,\n Int16Array: 2,\n Uint16Array: 2,\n Int32Array: 4,\n Uint32Array: 4,\n Float32Array: 4,\n Float64Array: 8\n};\n\nvar BigIntArrayConstructorsList = {\n BigInt64Array: 8,\n BigUint64Array: 8\n};\n\nvar isView = function isView(it) {\n if (!isObject(it)) return false;\n var klass = classof(it);\n return klass === 'DataView'\n || hasOwn(TypedArrayConstructorsList, klass)\n || hasOwn(BigIntArrayConstructorsList, klass);\n};\n\nvar getTypedArrayConstructor = function (it) {\n var proto = getPrototypeOf(it);\n if (!isObject(proto)) return;\n var state = getInternalState(proto);\n return (state && hasOwn(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor(proto);\n};\n\nvar isTypedArray = function (it) {\n if (!isObject(it)) return false;\n var klass = classof(it);\n return hasOwn(TypedArrayConstructorsList, klass)\n || hasOwn(BigIntArrayConstructorsList, klass);\n};\n\nvar aTypedArray = function (it) {\n if (isTypedArray(it)) return it;\n throw TypeError('Target is not a typed array');\n};\n\nvar aTypedArrayConstructor = function (C) {\n if (isCallable(C) && (!setPrototypeOf || isPrototypeOf(TypedArray, C))) return C;\n throw TypeError(tryToString(C) + ' is not a typed array constructor');\n};\n\nvar exportTypedArrayMethod = function (KEY, property, forced, options) {\n if (!DESCRIPTORS) return;\n if (forced) for (var ARRAY in TypedArrayConstructorsList) {\n var TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && hasOwn(TypedArrayConstructor.prototype, KEY)) try {\n delete TypedArrayConstructor.prototype[KEY];\n } catch (error) {\n // old WebKit bug - some methods are non-configurable\n try {\n TypedArrayConstructor.prototype[KEY] = property;\n } catch (error2) { /* empty */ }\n }\n }\n if (!TypedArrayPrototype[KEY] || forced) {\n defineBuiltIn(TypedArrayPrototype, KEY, forced ? property\n : NATIVE_ARRAY_BUFFER_VIEWS && Int8ArrayPrototype[KEY] || property, options);\n }\n};\n\nvar exportTypedArrayStaticMethod = function (KEY, property, forced) {\n var ARRAY, TypedArrayConstructor;\n if (!DESCRIPTORS) return;\n if (setPrototypeOf) {\n if (forced) for (ARRAY in TypedArrayConstructorsList) {\n TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && hasOwn(TypedArrayConstructor, KEY)) try {\n delete TypedArrayConstructor[KEY];\n } catch (error) { /* empty */ }\n }\n if (!TypedArray[KEY] || forced) {\n // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable\n try {\n return defineBuiltIn(TypedArray, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS && TypedArray[KEY] || property);\n } catch (error) { /* empty */ }\n } else return;\n }\n for (ARRAY in TypedArrayConstructorsList) {\n TypedArrayConstructor = global[ARRAY];\n if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {\n defineBuiltIn(TypedArrayConstructor, KEY, property);\n }\n }\n};\n\nfor (NAME in TypedArrayConstructorsList) {\n Constructor = global[NAME];\n Prototype = Constructor && Constructor.prototype;\n if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;\n else NATIVE_ARRAY_BUFFER_VIEWS = false;\n}\n\nfor (NAME in BigIntArrayConstructorsList) {\n Constructor = global[NAME];\n Prototype = Constructor && Constructor.prototype;\n if (Prototype) enforceInternalState(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;\n}\n\n// WebKit bug - typed arrays constructors prototype is Object.prototype\nif (!NATIVE_ARRAY_BUFFER_VIEWS || !isCallable(TypedArray) || TypedArray === Function.prototype) {\n // eslint-disable-next-line no-shadow -- safe\n TypedArray = function TypedArray() {\n throw TypeError('Incorrect invocation');\n };\n if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n if (global[NAME]) setPrototypeOf(global[NAME], TypedArray);\n }\n}\n\nif (!NATIVE_ARRAY_BUFFER_VIEWS || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype) {\n TypedArrayPrototype = TypedArray.prototype;\n if (NATIVE_ARRAY_BUFFER_VIEWS) for (NAME in TypedArrayConstructorsList) {\n if (global[NAME]) setPrototypeOf(global[NAME].prototype, TypedArrayPrototype);\n }\n}\n\n// WebKit bug - one more object in Uint8ClampedArray prototype chain\nif (NATIVE_ARRAY_BUFFER_VIEWS && getPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {\n setPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);\n}\n\nif (DESCRIPTORS && !hasOwn(TypedArrayPrototype, TO_STRING_TAG)) {\n TYPED_ARRAY_TAG_REQUIRED = true;\n defineBuiltInAccessor(TypedArrayPrototype, TO_STRING_TAG, {\n configurable: true,\n get: function () {\n return isObject(this) ? this[TYPED_ARRAY_TAG] : undefined;\n }\n });\n for (NAME in TypedArrayConstructorsList) if (global[NAME]) {\n createNonEnumerableProperty(global[NAME], TYPED_ARRAY_TAG, NAME);\n }\n}\n\nmodule.exports = {\n NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS,\n TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,\n aTypedArray: aTypedArray,\n aTypedArrayConstructor: aTypedArrayConstructor,\n exportTypedArrayMethod: exportTypedArrayMethod,\n exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,\n getTypedArrayConstructor: getTypedArrayConstructor,\n isView: isView,\n isTypedArray: isTypedArray,\n TypedArray: TypedArray,\n TypedArrayPrototype: TypedArrayPrototype\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\nvar isConstructor = require('../internals/is-constructor');\nvar getAsyncIterator = require('../internals/get-async-iterator');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar getMethod = require('../internals/get-method');\nvar getVirtual = require('../internals/entry-virtual');\nvar getBuiltIn = require('../internals/get-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');\nvar toArray = require('../internals/async-iterator-iteration').toArray;\n\nvar ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');\nvar arrayIterator = uncurryThis(getVirtual('Array').values);\nvar arrayIteratorNext = uncurryThis(arrayIterator([]).next);\n\nvar safeArrayIterator = function () {\n return new SafeArrayIterator(this);\n};\n\nvar SafeArrayIterator = function (O) {\n this.iterator = arrayIterator(O);\n};\n\nSafeArrayIterator.prototype.next = function () {\n return arrayIteratorNext(this.iterator);\n};\n\n// `Array.fromAsync` method implementation\n// https://github.com/tc39/proposal-array-from-async\nmodule.exports = function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) {\n var C = this;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var thisArg = argumentsLength > 2 ? arguments[2] : undefined;\n return new (getBuiltIn('Promise'))(function (resolve) {\n var O = toObject(asyncItems);\n if (mapfn !== undefined) mapfn = bind(mapfn, thisArg);\n var usingAsyncIterator = getMethod(O, ASYNC_ITERATOR);\n var usingSyncIterator = usingAsyncIterator ? undefined : getIteratorMethod(O) || safeArrayIterator;\n var A = isConstructor(C) ? new C() : [];\n var iterator = usingAsyncIterator\n ? getAsyncIterator(O, usingAsyncIterator)\n : new AsyncFromSyncIterator(getIteratorDirect(getIterator(O, usingSyncIterator)));\n resolve(toArray(iterator, mapfn, A));\n });\n};\n","var lengthOfArrayLike = require('../internals/length-of-array-like');\n\nmodule.exports = function (Constructor, list) {\n var index = 0;\n var length = lengthOfArrayLike(list);\n var result = new Constructor(length);\n while (length > index) result[index] = list[index++];\n return result;\n};\n","'use strict';\nvar bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar MapHelpers = require('../internals/map-helpers');\n\nvar Map = MapHelpers.Map;\nvar mapGet = MapHelpers.get;\nvar mapHas = MapHelpers.has;\nvar mapSet = MapHelpers.set;\nvar push = uncurryThis([].push);\n\n// `Array.prototype.groupToMap` method\n// https://github.com/tc39/proposal-array-grouping\nmodule.exports = function groupToMap(callbackfn /* , thisArg */) {\n var O = toObject(this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var map = new Map();\n var length = lengthOfArrayLike(self);\n var index = 0;\n var key, value;\n for (;length > index; index++) {\n value = self[index];\n key = boundFunction(value, index, O);\n if (mapHas(map, key)) push(mapGet(map, key), value);\n else mapSet(map, key, [value]);\n } return map;\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar objectCreate = require('../internals/object-create');\nvar arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\n\nvar $Array = Array;\nvar push = uncurryThis([].push);\n\nmodule.exports = function ($this, callbackfn, that, specificConstructor) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var target = objectCreate(null);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var Constructor, key, value;\n for (;length > index; index++) {\n value = self[index];\n key = toPropertyKey(boundFunction(value, index, O));\n // in some IE10 builds, `hasOwnProperty` returns incorrect result on integer keys\n // but since it's a `null` prototype object, we can safely use `in`\n if (key in target) push(target[key], value);\n else target[key] = [value];\n }\n // TODO: Remove this block from `core-js@4`\n if (specificConstructor) {\n Constructor = specificConstructor(O);\n if (Constructor !== $Array) {\n for (key in target) target[key] = arrayFromConstructorAndList(Constructor, target[key]);\n }\n } return target;\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var bind = require('../internals/function-bind-context');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ findLast, findLastIndex }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_FIND_LAST_INDEX = TYPE == 1;\n return function ($this, callbackfn, that) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var index = lengthOfArrayLike(self);\n var value, result;\n while (index-- > 0) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (result) switch (TYPE) {\n case 0: return value; // findLast\n case 1: return index; // findLastIndex\n }\n }\n return IS_FIND_LAST_INDEX ? -1 : undefined;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.findLast` method\n // https://github.com/tc39/proposal-array-find-from-last\n findLast: createMethod(0),\n // `Array.prototype.findLastIndex` method\n // https://github.com/tc39/proposal-array-find-from-last\n findLastIndex: createMethod(1)\n};\n","var bind = require('../internals/function-bind-context');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar IndexedObject = require('../internals/indexed-object');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar arraySpeciesCreate = require('../internals/array-species-create');\n\nvar push = uncurryThis([].push);\n\n// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation\nvar createMethod = function (TYPE) {\n var IS_MAP = TYPE == 1;\n var IS_FILTER = TYPE == 2;\n var IS_SOME = TYPE == 3;\n var IS_EVERY = TYPE == 4;\n var IS_FIND_INDEX = TYPE == 6;\n var IS_FILTER_REJECT = TYPE == 7;\n var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;\n return function ($this, callbackfn, that, specificCreate) {\n var O = toObject($this);\n var self = IndexedObject(O);\n var boundFunction = bind(callbackfn, that);\n var length = lengthOfArrayLike(self);\n var index = 0;\n var create = specificCreate || arraySpeciesCreate;\n var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;\n var value, result;\n for (;length > index; index++) if (NO_HOLES || index in self) {\n value = self[index];\n result = boundFunction(value, index, O);\n if (TYPE) {\n if (IS_MAP) target[index] = result; // map\n else if (result) switch (TYPE) {\n case 3: return true; // some\n case 5: return value; // find\n case 6: return index; // findIndex\n case 2: push(target, value); // filter\n } else switch (TYPE) {\n case 4: return false; // every\n case 7: push(target, value); // filterReject\n }\n }\n }\n return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.forEach` method\n // https://tc39.es/ecma262/#sec-array.prototype.foreach\n forEach: createMethod(0),\n // `Array.prototype.map` method\n // https://tc39.es/ecma262/#sec-array.prototype.map\n map: createMethod(1),\n // `Array.prototype.filter` method\n // https://tc39.es/ecma262/#sec-array.prototype.filter\n filter: createMethod(2),\n // `Array.prototype.some` method\n // https://tc39.es/ecma262/#sec-array.prototype.some\n some: createMethod(3),\n // `Array.prototype.every` method\n // https://tc39.es/ecma262/#sec-array.prototype.every\n every: createMethod(4),\n // `Array.prototype.find` method\n // https://tc39.es/ecma262/#sec-array.prototype.find\n find: createMethod(5),\n // `Array.prototype.findIndex` method\n // https://tc39.es/ecma262/#sec-array.prototype.findIndex\n findIndex: createMethod(6),\n // `Array.prototype.filterReject` method\n // https://github.com/tc39/proposal-array-filtering\n filterReject: createMethod(7)\n};\n","'use strict';\nvar fails = require('../internals/fails');\n\nmodule.exports = function (METHOD_NAME, argument) {\n var method = [][METHOD_NAME];\n return !!method && fails(function () {\n // eslint-disable-next-line no-useless-call -- required for testing\n method.call(null, argument || function () { return 1; }, 1);\n });\n};\n","var aCallable = require('../internals/a-callable');\nvar toObject = require('../internals/to-object');\nvar IndexedObject = require('../internals/indexed-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\n\n// `Array.prototype.{ reduce, reduceRight }` methods implementation\nvar createMethod = function (IS_RIGHT) {\n return function (that, callbackfn, argumentsLength, memo) {\n aCallable(callbackfn);\n var O = toObject(that);\n var self = IndexedObject(O);\n var length = lengthOfArrayLike(O);\n var index = IS_RIGHT ? length - 1 : 0;\n var i = IS_RIGHT ? -1 : 1;\n if (argumentsLength < 2) while (true) {\n if (index in self) {\n memo = self[index];\n index += i;\n break;\n }\n index += i;\n if (IS_RIGHT ? index < 0 : length <= index) {\n throw $TypeError('Reduce of empty array with no initial value');\n }\n }\n for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {\n memo = callbackfn(memo, self[index], index, O);\n }\n return memo;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.reduce` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduce\n left: createMethod(false),\n // `Array.prototype.reduceRight` method\n // https://tc39.es/ecma262/#sec-array.prototype.reduceright\n right: createMethod(true)\n};\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar isArray = require('../internals/is-array');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Safari < 13 does not throw an error in this case\nvar SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {\n // makes no sense without proper strict mode support\n if (this !== undefined) return true;\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).length = 1;\n } catch (error) {\n return error instanceof TypeError;\n }\n}();\n\nmodule.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {\n if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {\n throw $TypeError('Cannot set read only .length');\n } return O.length = length;\n} : function (O, length) {\n return O.length = length;\n};\n","var toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\n\nvar $Array = Array;\nvar max = Math.max;\n\nmodule.exports = function (O, start, end) {\n var length = lengthOfArrayLike(O);\n var k = toAbsoluteIndex(start, length);\n var fin = toAbsoluteIndex(end === undefined ? length : end, length);\n var result = $Array(max(fin - k, 0));\n for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);\n result.length = n;\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis([].slice);\n","var isArray = require('../internals/is-array');\nvar isConstructor = require('../internals/is-constructor');\nvar isObject = require('../internals/is-object');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\nvar $Array = Array;\n\n// a part of `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray) {\n var C;\n if (isArray(originalArray)) {\n C = originalArray.constructor;\n // cross-realm fallback\n if (isConstructor(C) && (C === $Array || isArray(C.prototype))) C = undefined;\n else if (isObject(C)) {\n C = C[SPECIES];\n if (C === null) C = undefined;\n }\n } return C === undefined ? $Array : C;\n};\n","var arraySpeciesConstructor = require('../internals/array-species-constructor');\n\n// `ArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#sec-arrayspeciescreate\nmodule.exports = function (originalArray, length) {\n return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);\n};\n","var lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed\nmodule.exports = function (O, C) {\n var len = lengthOfArrayLike(O);\n var A = new C(len);\n var k = 0;\n for (; k < len; k++) A[k] = O[len - k - 1];\n return A;\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toObject = require('../internals/to-object');\nvar MapHelpers = require('../internals/map-helpers');\nvar iterate = require('../internals/map-iterate');\n\nvar Map = MapHelpers.Map;\nvar mapHas = MapHelpers.has;\nvar mapSet = MapHelpers.set;\nvar push = uncurryThis([].push);\n\n// `Array.prototype.uniqueBy` method\n// https://github.com/tc39/proposal-array-unique\nmodule.exports = function uniqueBy(resolver) {\n var that = toObject(this);\n var length = lengthOfArrayLike(that);\n var result = [];\n var map = new Map();\n var resolverFunction = !isNullOrUndefined(resolver) ? aCallable(resolver) : function (value) {\n return value;\n };\n var index, item, key;\n for (index = 0; index < length; index++) {\n item = that[index];\n key = resolverFunction(item);\n if (!mapHas(map, key)) mapSet(map, key, item);\n }\n iterate(map, function (value) {\n push(result, value);\n });\n return result;\n};\n","var lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar $RangeError = RangeError;\n\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with\nmodule.exports = function (O, C, index, value) {\n var len = lengthOfArrayLike(O);\n var relativeIndex = toIntegerOrInfinity(index);\n var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;\n if (actualIndex >= len || actualIndex < 0) throw $RangeError('Incorrect index');\n var A = new C(len);\n var k = 0;\n for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];\n return A;\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar create = require('../internals/object-create');\nvar getMethod = require('../internals/get-method');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar InternalStateModule = require('../internals/internal-state');\nvar getBuiltIn = require('../internals/get-built-in');\nvar AsyncIteratorPrototype = require('../internals/async-iterator-prototype');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar Promise = getBuiltIn('Promise');\n\nvar ASYNC_FROM_SYNC_ITERATOR = 'AsyncFromSyncIterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(ASYNC_FROM_SYNC_ITERATOR);\n\nvar asyncFromSyncIteratorContinuation = function (result, resolve, reject) {\n var done = result.done;\n Promise.resolve(result.value).then(function (value) {\n resolve(createIterResultObject(value, done));\n }, reject);\n};\n\nvar AsyncFromSyncIterator = function AsyncIterator(iteratorRecord) {\n iteratorRecord.type = ASYNC_FROM_SYNC_ITERATOR;\n setInternalState(this, iteratorRecord);\n};\n\nAsyncFromSyncIterator.prototype = defineBuiltIns(create(AsyncIteratorPrototype), {\n next: function next() {\n var state = getInternalState(this);\n return new Promise(function (resolve, reject) {\n var result = anObject(call(state.next, state.iterator));\n asyncFromSyncIteratorContinuation(result, resolve, reject);\n });\n },\n 'return': function () {\n var iterator = getInternalState(this).iterator;\n return new Promise(function (resolve, reject) {\n var $return = getMethod(iterator, 'return');\n if ($return === undefined) return resolve(createIterResultObject(undefined, true));\n var result = anObject(call($return, iterator));\n asyncFromSyncIteratorContinuation(result, resolve, reject);\n });\n }\n});\n\nmodule.exports = AsyncFromSyncIterator;\n","var call = require('../internals/function-call');\nvar getBuiltIn = require('../internals/get-built-in');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, method, argument, reject) {\n try {\n var returnMethod = getMethod(iterator, 'return');\n if (returnMethod) {\n return getBuiltIn('Promise').resolve(call(returnMethod, iterator)).then(function () {\n method(argument);\n }, function (error) {\n reject(error);\n });\n }\n } catch (error2) {\n return reject(error2);\n } method(argument);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar perform = require('../internals/perform');\nvar anObject = require('../internals/an-object');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar getBuiltIn = require('../internals/get-built-in');\nvar getMethod = require('../internals/get-method');\nvar AsyncIteratorPrototype = require('../internals/async-iterator-prototype');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar Promise = getBuiltIn('Promise');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ASYNC_ITERATOR_HELPER = 'AsyncIteratorHelper';\nvar WRAP_FOR_VALID_ASYNC_ITERATOR = 'WrapForValidAsyncIterator';\nvar setInternalState = InternalStateModule.set;\n\nvar createAsyncIteratorProxyPrototype = function (IS_ITERATOR) {\n var IS_GENERATOR = !IS_ITERATOR;\n var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER);\n\n var getStateOrEarlyExit = function (that) {\n var stateCompletion = perform(function () {\n return getInternalState(that);\n });\n\n var stateError = stateCompletion.error;\n var state = stateCompletion.value;\n\n if (stateError || (IS_GENERATOR && state.done)) {\n return { exit: true, value: stateError ? Promise.reject(state) : Promise.resolve(createIterResultObject(undefined, true)) };\n } return { exit: false, value: state };\n };\n\n return defineBuiltIns(create(AsyncIteratorPrototype), {\n next: function next() {\n var stateCompletion = getStateOrEarlyExit(this);\n var state = stateCompletion.value;\n if (stateCompletion.exit) return state;\n var handlerCompletion = perform(function () {\n return anObject(state.nextHandler(Promise));\n });\n var handlerError = handlerCompletion.error;\n var value = handlerCompletion.value;\n if (handlerError) state.done = true;\n return handlerError ? Promise.reject(value) : Promise.resolve(value);\n },\n 'return': function () {\n var stateCompletion = getStateOrEarlyExit(this);\n var state = stateCompletion.value;\n if (stateCompletion.exit) return state;\n state.done = true;\n var iterator = state.iterator;\n var returnMethod, result;\n var completion = perform(function () {\n if (state.inner) try {\n iteratorClose(state.inner.iterator, 'normal');\n } catch (error) {\n return iteratorClose(iterator, 'throw', error);\n }\n return getMethod(iterator, 'return');\n });\n returnMethod = result = completion.value;\n if (completion.error) return Promise.reject(result);\n if (returnMethod === undefined) return Promise.resolve(createIterResultObject(undefined, true));\n completion = perform(function () {\n return call(returnMethod, iterator);\n });\n result = completion.value;\n if (completion.error) return Promise.reject(result);\n return IS_ITERATOR ? Promise.resolve(result) : Promise.resolve(result).then(function (resolved) {\n anObject(resolved);\n return createIterResultObject(undefined, true);\n });\n }\n });\n};\n\nvar WrapForValidAsyncIteratorPrototype = createAsyncIteratorProxyPrototype(true);\nvar AsyncIteratorHelperPrototype = createAsyncIteratorProxyPrototype(false);\n\ncreateNonEnumerableProperty(AsyncIteratorHelperPrototype, TO_STRING_TAG, 'Async Iterator Helper');\n\nmodule.exports = function (nextHandler, IS_ITERATOR) {\n var AsyncIteratorProxy = function AsyncIterator(record, state) {\n if (state) {\n state.iterator = record.iterator;\n state.next = record.next;\n } else state = record;\n state.type = IS_ITERATOR ? WRAP_FOR_VALID_ASYNC_ITERATOR : ASYNC_ITERATOR_HELPER;\n state.nextHandler = nextHandler;\n state.counter = 0;\n state.done = false;\n setInternalState(this, state);\n };\n\n AsyncIteratorProxy.prototype = IS_ITERATOR ? WrapForValidAsyncIteratorPrototype : AsyncIteratorHelperPrototype;\n\n return AsyncIteratorProxy;\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar map = require('../internals/async-iterator-map');\n\nvar callback = function (value, counter) {\n return [counter, value];\n};\n\n// `AsyncIterator.prototype.indexed` method\n// https://github.com/tc39/proposal-iterator-helpers\nmodule.exports = function indexed() {\n return call(map, this, callback);\n};\n","'use strict';\n// https://github.com/tc39/proposal-iterator-helpers\n// https://github.com/tc39/proposal-array-from-async\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar getBuiltIn = require('../internals/get-built-in');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar closeAsyncIteration = require('../internals/async-iterator-close');\n\nvar createMethod = function (TYPE) {\n var IS_TO_ARRAY = TYPE == 0;\n var IS_FOR_EACH = TYPE == 1;\n var IS_EVERY = TYPE == 2;\n var IS_SOME = TYPE == 3;\n return function (object, fn, target) {\n var record = getIteratorDirect(object);\n var Promise = getBuiltIn('Promise');\n var iterator = record.iterator;\n var next = record.next;\n var counter = 0;\n var MAPPING = fn !== undefined;\n if (MAPPING || !IS_TO_ARRAY) aCallable(fn);\n\n return new Promise(function (resolve, reject) {\n var ifAbruptCloseAsyncIterator = function (error) {\n closeAsyncIteration(iterator, reject, error, reject);\n };\n\n var loop = function () {\n try {\n if (MAPPING) try {\n doesNotExceedSafeInteger(counter);\n } catch (error5) { ifAbruptCloseAsyncIterator(error5); }\n Promise.resolve(anObject(call(next, iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n if (IS_TO_ARRAY) {\n target.length = counter;\n resolve(target);\n } else resolve(IS_SOME ? false : IS_EVERY || undefined);\n } else {\n var value = step.value;\n try {\n if (MAPPING) {\n var result = fn(value, counter);\n\n var handler = function ($result) {\n if (IS_FOR_EACH) {\n loop();\n } else if (IS_EVERY) {\n $result ? loop() : closeAsyncIteration(iterator, resolve, false, reject);\n } else if (IS_TO_ARRAY) {\n try {\n target[counter++] = $result;\n loop();\n } catch (error4) { ifAbruptCloseAsyncIterator(error4); }\n } else {\n $result ? closeAsyncIteration(iterator, resolve, IS_SOME || value, reject) : loop();\n }\n };\n\n if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);\n else handler(result);\n } else {\n target[counter++] = value;\n loop();\n }\n } catch (error3) { ifAbruptCloseAsyncIterator(error3); }\n }\n } catch (error2) { reject(error2); }\n }, reject);\n } catch (error) { reject(error); }\n };\n\n loop();\n });\n };\n};\n\nmodule.exports = {\n toArray: createMethod(0),\n forEach: createMethod(1),\n every: createMethod(2),\n some: createMethod(3),\n find: createMethod(4)\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar closeAsyncIteration = require('../internals/async-iterator-close');\n\nvar AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {\n var state = this;\n var iterator = state.iterator;\n var mapper = state.mapper;\n\n return new Promise(function (resolve, reject) {\n var doneAndReject = function (error) {\n state.done = true;\n reject(error);\n };\n\n var ifAbruptCloseAsyncIterator = function (error) {\n closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);\n };\n\n Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n state.done = true;\n resolve(createIterResultObject(undefined, true));\n } else {\n var value = step.value;\n try {\n var result = mapper(value, state.counter++);\n\n var handler = function (mapped) {\n resolve(createIterResultObject(mapped, false));\n };\n\n if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);\n else handler(result);\n } catch (error2) { ifAbruptCloseAsyncIterator(error2); }\n }\n } catch (error) { doneAndReject(error); }\n }, doneAndReject);\n });\n});\n\n// `AsyncIterator.prototype.map` method\n// https://github.com/tc39/proposal-iterator-helpers\nmodule.exports = function map(mapper) {\n return new AsyncIteratorProxy(getIteratorDirect(this), {\n mapper: aCallable(mapper)\n });\n};\n","var global = require('../internals/global');\nvar shared = require('../internals/shared-store');\nvar isCallable = require('../internals/is-callable');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar USE_FUNCTION_CONSTRUCTOR = 'USE_FUNCTION_CONSTRUCTOR';\nvar ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');\nvar AsyncIterator = global.AsyncIterator;\nvar PassedAsyncIteratorPrototype = shared.AsyncIteratorPrototype;\nvar AsyncIteratorPrototype, prototype;\n\nif (PassedAsyncIteratorPrototype) {\n AsyncIteratorPrototype = PassedAsyncIteratorPrototype;\n} else if (isCallable(AsyncIterator)) {\n AsyncIteratorPrototype = AsyncIterator.prototype;\n} else if (shared[USE_FUNCTION_CONSTRUCTOR] || global[USE_FUNCTION_CONSTRUCTOR]) {\n try {\n // eslint-disable-next-line no-new-func -- we have no alternatives without usage of modern syntax\n prototype = getPrototypeOf(getPrototypeOf(getPrototypeOf(Function('return async function*(){}()')())));\n if (getPrototypeOf(prototype) === Object.prototype) AsyncIteratorPrototype = prototype;\n } catch (error) { /* empty */ }\n}\n\nif (!AsyncIteratorPrototype) AsyncIteratorPrototype = {};\nelse if (IS_PURE) AsyncIteratorPrototype = create(AsyncIteratorPrototype);\n\nif (!isCallable(AsyncIteratorPrototype[ASYNC_ITERATOR])) {\n defineBuiltIn(AsyncIteratorPrototype, ASYNC_ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = AsyncIteratorPrototype;\n","var call = require('../internals/function-call');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\n\nmodule.exports = createAsyncIteratorProxy(function () {\n return call(this.next, this.iterator);\n}, true);\n","var anObject = require('../internals/an-object');\nvar iteratorClose = require('../internals/iterator-close');\n\n// call something on iterator step with safe closing on error\nmodule.exports = function (iterator, fn, value, ENTRIES) {\n try {\n return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Object = Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","'use strict';\n// https://tc39.github.io/proposal-setmap-offrom/\nvar bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\n\nvar push = [].push;\n\nmodule.exports = function from(source /* , mapFn, thisArg */) {\n var length = arguments.length;\n var mapFn = length > 1 ? arguments[1] : undefined;\n var mapping, array, n, boundFunction;\n aConstructor(this);\n mapping = mapFn !== undefined;\n if (mapping) aCallable(mapFn);\n if (isNullOrUndefined(source)) return new this();\n array = [];\n if (mapping) {\n n = 0;\n boundFunction = bind(mapFn, length > 2 ? arguments[2] : undefined);\n iterate(source, function (nextItem) {\n call(push, array, boundFunction(nextItem, n++));\n });\n } else {\n iterate(source, push, { that: array });\n }\n return new this(array);\n};\n","'use strict';\nvar arraySlice = require('../internals/array-slice');\n\n// https://tc39.github.io/proposal-setmap-offrom/\nmodule.exports = function of() {\n return new this(arraySlice(arguments));\n};\n","'use strict';\nvar create = require('../internals/object-create');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar bind = require('../internals/function-bind-context');\nvar anInstance = require('../internals/an-instance');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar iterate = require('../internals/iterate');\nvar defineIterator = require('../internals/iterator-define');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar setSpecies = require('../internals/set-species');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar fastKey = require('../internals/internal-metadata').fastKey;\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n index: create(null),\n first: undefined,\n last: undefined,\n size: 0\n });\n if (!DESCRIPTORS) that.size = 0;\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n var previous, index;\n // change existing entry\n if (entry) {\n entry.value = value;\n // create new entry\n } else {\n state.last = entry = {\n index: index = fastKey(key, true),\n key: key,\n value: value,\n previous: previous = state.last,\n next: undefined,\n removed: false\n };\n if (!state.first) state.first = entry;\n if (previous) previous.next = entry;\n if (DESCRIPTORS) state.size++;\n else that.size++;\n // add to index\n if (index !== 'F') state.index[index] = entry;\n } return that;\n };\n\n var getEntry = function (that, key) {\n var state = getInternalState(that);\n // fast case\n var index = fastKey(key);\n var entry;\n if (index !== 'F') return state.index[index];\n // frozen object case\n for (entry = state.first; entry; entry = entry.next) {\n if (entry.key == key) return entry;\n }\n };\n\n defineBuiltIns(Prototype, {\n // `{ Map, Set }.prototype.clear()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.clear\n // https://tc39.es/ecma262/#sec-set.prototype.clear\n clear: function clear() {\n var that = this;\n var state = getInternalState(that);\n var data = state.index;\n var entry = state.first;\n while (entry) {\n entry.removed = true;\n if (entry.previous) entry.previous = entry.previous.next = undefined;\n delete data[entry.index];\n entry = entry.next;\n }\n state.first = state.last = undefined;\n if (DESCRIPTORS) state.size = 0;\n else that.size = 0;\n },\n // `{ Map, Set }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.delete\n // https://tc39.es/ecma262/#sec-set.prototype.delete\n 'delete': function (key) {\n var that = this;\n var state = getInternalState(that);\n var entry = getEntry(that, key);\n if (entry) {\n var next = entry.next;\n var prev = entry.previous;\n delete state.index[entry.index];\n entry.removed = true;\n if (prev) prev.next = next;\n if (next) next.previous = prev;\n if (state.first == entry) state.first = next;\n if (state.last == entry) state.last = prev;\n if (DESCRIPTORS) state.size--;\n else that.size--;\n } return !!entry;\n },\n // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.foreach\n // https://tc39.es/ecma262/#sec-set.prototype.foreach\n forEach: function forEach(callbackfn /* , that = undefined */) {\n var state = getInternalState(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var entry;\n while (entry = entry ? entry.next : state.first) {\n boundFunction(entry.value, entry.key, this);\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n }\n },\n // `{ Map, Set}.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-map.prototype.has\n // https://tc39.es/ecma262/#sec-set.prototype.has\n has: function has(key) {\n return !!getEntry(this, key);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `Map.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-map.prototype.get\n get: function get(key) {\n var entry = getEntry(this, key);\n return entry && entry.value;\n },\n // `Map.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-map.prototype.set\n set: function set(key, value) {\n return define(this, key === 0 ? 0 : key, value);\n }\n } : {\n // `Set.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-set.prototype.add\n add: function add(value) {\n return define(this, value = value === 0 ? 0 : value, value);\n }\n });\n if (DESCRIPTORS) defineBuiltInAccessor(Prototype, 'size', {\n configurable: true,\n get: function () {\n return getInternalState(this).size;\n }\n });\n return Constructor;\n },\n setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) {\n var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator';\n var getInternalCollectionState = internalStateGetterFor(CONSTRUCTOR_NAME);\n var getInternalIteratorState = internalStateGetterFor(ITERATOR_NAME);\n // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods\n // https://tc39.es/ecma262/#sec-map.prototype.entries\n // https://tc39.es/ecma262/#sec-map.prototype.keys\n // https://tc39.es/ecma262/#sec-map.prototype.values\n // https://tc39.es/ecma262/#sec-map.prototype-@@iterator\n // https://tc39.es/ecma262/#sec-set.prototype.entries\n // https://tc39.es/ecma262/#sec-set.prototype.keys\n // https://tc39.es/ecma262/#sec-set.prototype.values\n // https://tc39.es/ecma262/#sec-set.prototype-@@iterator\n defineIterator(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) {\n setInternalState(this, {\n type: ITERATOR_NAME,\n target: iterated,\n state: getInternalCollectionState(iterated),\n kind: kind,\n last: undefined\n });\n }, function () {\n var state = getInternalIteratorState(this);\n var kind = state.kind;\n var entry = state.last;\n // revert to the last existing entry\n while (entry && entry.removed) entry = entry.previous;\n // get next entry\n if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {\n // or finish the iteration\n state.target = undefined;\n return createIterResultObject(undefined, true);\n }\n // return step by kind\n if (kind == 'keys') return createIterResultObject(entry.key, false);\n if (kind == 'values') return createIterResultObject(entry.value, false);\n return createIterResultObject([entry.key, entry.value], false);\n }, IS_MAP ? 'entries' : 'values', !IS_MAP, true);\n\n // `{ Map, Set }.prototype[@@species]` accessors\n // https://tc39.es/ecma262/#sec-get-map-@@species\n // https://tc39.es/ecma262/#sec-get-set-@@species\n setSpecies(CONSTRUCTOR_NAME);\n }\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar getWeakData = require('../internals/internal-metadata').getWeakData;\nvar anInstance = require('../internals/an-instance');\nvar anObject = require('../internals/an-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar iterate = require('../internals/iterate');\nvar ArrayIterationModule = require('../internals/array-iteration');\nvar hasOwn = require('../internals/has-own-property');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar setInternalState = InternalStateModule.set;\nvar internalStateGetterFor = InternalStateModule.getterFor;\nvar find = ArrayIterationModule.find;\nvar findIndex = ArrayIterationModule.findIndex;\nvar splice = uncurryThis([].splice);\nvar id = 0;\n\n// fallback for uncaught frozen keys\nvar uncaughtFrozenStore = function (state) {\n return state.frozen || (state.frozen = new UncaughtFrozenStore());\n};\n\nvar UncaughtFrozenStore = function () {\n this.entries = [];\n};\n\nvar findUncaughtFrozen = function (store, key) {\n return find(store.entries, function (it) {\n return it[0] === key;\n });\n};\n\nUncaughtFrozenStore.prototype = {\n get: function (key) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) return entry[1];\n },\n has: function (key) {\n return !!findUncaughtFrozen(this, key);\n },\n set: function (key, value) {\n var entry = findUncaughtFrozen(this, key);\n if (entry) entry[1] = value;\n else this.entries.push([key, value]);\n },\n 'delete': function (key) {\n var index = findIndex(this.entries, function (it) {\n return it[0] === key;\n });\n if (~index) splice(this.entries, index, 1);\n return !!~index;\n }\n};\n\nmodule.exports = {\n getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {\n var Constructor = wrapper(function (that, iterable) {\n anInstance(that, Prototype);\n setInternalState(that, {\n type: CONSTRUCTOR_NAME,\n id: id++,\n frozen: undefined\n });\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n });\n\n var Prototype = Constructor.prototype;\n\n var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME);\n\n var define = function (that, key, value) {\n var state = getInternalState(that);\n var data = getWeakData(anObject(key), true);\n if (data === true) uncaughtFrozenStore(state).set(key, value);\n else data[state.id] = value;\n return that;\n };\n\n defineBuiltIns(Prototype, {\n // `{ WeakMap, WeakSet }.prototype.delete(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.delete\n // https://tc39.es/ecma262/#sec-weakset.prototype.delete\n 'delete': function (key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state)['delete'](key);\n return data && hasOwn(data, state.id) && delete data[state.id];\n },\n // `{ WeakMap, WeakSet }.prototype.has(key)` methods\n // https://tc39.es/ecma262/#sec-weakmap.prototype.has\n // https://tc39.es/ecma262/#sec-weakset.prototype.has\n has: function has(key) {\n var state = getInternalState(this);\n if (!isObject(key)) return false;\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).has(key);\n return data && hasOwn(data, state.id);\n }\n });\n\n defineBuiltIns(Prototype, IS_MAP ? {\n // `WeakMap.prototype.get(key)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.get\n get: function get(key) {\n var state = getInternalState(this);\n if (isObject(key)) {\n var data = getWeakData(key);\n if (data === true) return uncaughtFrozenStore(state).get(key);\n return data ? data[state.id] : undefined;\n }\n },\n // `WeakMap.prototype.set(key, value)` method\n // https://tc39.es/ecma262/#sec-weakmap.prototype.set\n set: function set(key, value) {\n return define(this, key, value);\n }\n } : {\n // `WeakSet.prototype.add(value)` method\n // https://tc39.es/ecma262/#sec-weakset.prototype.add\n add: function add(value) {\n return define(this, value, true);\n }\n });\n\n return Constructor;\n }\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isForced = require('../internals/is-forced');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar iterate = require('../internals/iterate');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar fails = require('../internals/fails');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar inheritIfRequired = require('../internals/inherit-if-required');\n\nmodule.exports = function (CONSTRUCTOR_NAME, wrapper, common) {\n var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1;\n var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1;\n var ADDER = IS_MAP ? 'set' : 'add';\n var NativeConstructor = global[CONSTRUCTOR_NAME];\n var NativePrototype = NativeConstructor && NativeConstructor.prototype;\n var Constructor = NativeConstructor;\n var exported = {};\n\n var fixMethod = function (KEY) {\n var uncurriedNativeMethod = uncurryThis(NativePrototype[KEY]);\n defineBuiltIn(NativePrototype, KEY,\n KEY == 'add' ? function add(value) {\n uncurriedNativeMethod(this, value === 0 ? 0 : value);\n return this;\n } : KEY == 'delete' ? function (key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'get' ? function get(key) {\n return IS_WEAK && !isObject(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : KEY == 'has' ? function has(key) {\n return IS_WEAK && !isObject(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);\n } : function set(key, value) {\n uncurriedNativeMethod(this, key === 0 ? 0 : key, value);\n return this;\n }\n );\n };\n\n var REPLACE = isForced(\n CONSTRUCTOR_NAME,\n !isCallable(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails(function () {\n new NativeConstructor().entries().next();\n }))\n );\n\n if (REPLACE) {\n // create collection constructor\n Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER);\n InternalMetadataModule.enable();\n } else if (isForced(CONSTRUCTOR_NAME, true)) {\n var instance = new Constructor();\n // early implementations not supports chaining\n var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance;\n // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false\n var THROWS_ON_PRIMITIVES = fails(function () { instance.has(1); });\n // most early implementations doesn't supports iterables, most modern - not close it correctly\n // eslint-disable-next-line no-new -- required for testing\n var ACCEPT_ITERABLES = checkCorrectnessOfIteration(function (iterable) { new NativeConstructor(iterable); });\n // for early implementations -0 and +0 not the same\n var BUGGY_ZERO = !IS_WEAK && fails(function () {\n // V8 ~ Chromium 42- fails only with 5+ elements\n var $instance = new NativeConstructor();\n var index = 5;\n while (index--) $instance[ADDER](index, index);\n return !$instance.has(-0);\n });\n\n if (!ACCEPT_ITERABLES) {\n Constructor = wrapper(function (dummy, iterable) {\n anInstance(dummy, NativePrototype);\n var that = inheritIfRequired(new NativeConstructor(), dummy, Constructor);\n if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP });\n return that;\n });\n Constructor.prototype = NativePrototype;\n NativePrototype.constructor = Constructor;\n }\n\n if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) {\n fixMethod('delete');\n fixMethod('has');\n IS_MAP && fixMethod('get');\n }\n\n if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER);\n\n // weak collections should not contains .clear method\n if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear;\n }\n\n exported[CONSTRUCTOR_NAME] = Constructor;\n $({ global: true, constructor: true, forced: Constructor != NativeConstructor }, exported);\n\n setToStringTag(Constructor, CONSTRUCTOR_NAME);\n\n if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);\n\n return Constructor;\n};\n","// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.map');\nrequire('../modules/es.weak-map');\nvar getBuiltIn = require('../internals/get-built-in');\nvar create = require('../internals/object-create');\nvar isObject = require('../internals/is-object');\n\nvar $Object = Object;\nvar $TypeError = TypeError;\nvar Map = getBuiltIn('Map');\nvar WeakMap = getBuiltIn('WeakMap');\n\nvar Node = function () {\n // keys\n this.object = null;\n this.symbol = null;\n // child nodes\n this.primitives = null;\n this.objectsByIndex = create(null);\n};\n\nNode.prototype.get = function (key, initializer) {\n return this[key] || (this[key] = initializer());\n};\n\nNode.prototype.next = function (i, it, IS_OBJECT) {\n var store = IS_OBJECT\n ? this.objectsByIndex[i] || (this.objectsByIndex[i] = new WeakMap())\n : this.primitives || (this.primitives = new Map());\n var entry = store.get(it);\n if (!entry) store.set(it, entry = new Node());\n return entry;\n};\n\nvar root = new Node();\n\nmodule.exports = function () {\n var active = root;\n var length = arguments.length;\n var i, it;\n // for prevent leaking, start from objects\n for (i = 0; i < length; i++) {\n if (isObject(it = arguments[i])) active = active.next(i, it, true);\n }\n if (this === $Object && active === root) throw $TypeError('Composite keys must contain a non-primitive component');\n for (i = 0; i < length; i++) {\n if (!isObject(it = arguments[i])) active = active.next(i, it, false);\n } return active;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n function F() { /* empty */ }\n F.prototype.constructor = null;\n // eslint-disable-next-line es/no-object-getprototypeof -- required for testing\n return Object.getPrototypeOf(new F()) !== F.prototype;\n});\n","// `CreateIterResultObject` abstract operation\n// https://tc39.es/ecma262/#sec-createiterresultobject\nmodule.exports = function (value, done) {\n return { value: value, done: done };\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","'use strict';\nvar toPropertyKey = require('../internals/to-property-key');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = function (object, key, value) {\n var propertyKey = toPropertyKey(key);\n if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));\n else object[propertyKey] = value;\n};\n","var makeBuiltIn = require('../internals/make-built-in');\nvar defineProperty = require('../internals/object-define-property');\n\nmodule.exports = function (target, name, descriptor) {\n if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });\n if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });\n return defineProperty.f(target, name, descriptor);\n};\n","var isCallable = require('../internals/is-callable');\nvar definePropertyModule = require('../internals/object-define-property');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nmodule.exports = function (O, key, value, options) {\n if (!options) options = {};\n var simple = options.enumerable;\n var name = options.name !== undefined ? options.name : key;\n if (isCallable(value)) makeBuiltIn(value, name, options);\n if (options.global) {\n if (simple) O[key] = value;\n else defineGlobalProperty(key, value);\n } else {\n try {\n if (!options.unsafe) delete O[key];\n else if (O[key]) simple = true;\n } catch (error) { /* empty */ }\n if (simple) O[key] = value;\n else definePropertyModule.f(O, key, {\n value: value,\n enumerable: false,\n configurable: !options.nonConfigurable,\n writable: !options.nonWritable\n });\n } return O;\n};\n","var defineBuiltIn = require('../internals/define-built-in');\n\nmodule.exports = function (target, src, options) {\n for (var key in src) defineBuiltIn(target, key, src[key], options);\n return target;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var documentAll = typeof document == 'object' && document.all;\n\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot\n// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing\nvar IS_HTMLDDA = typeof documentAll == 'undefined' && documentAll !== undefined;\n\nmodule.exports = {\n all: documentAll,\n IS_HTMLDDA: IS_HTMLDDA\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var $TypeError = TypeError;\nvar MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991\n\nmodule.exports = function (it) {\n if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');\n return it;\n};\n","module.exports = {\n IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },\n DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },\n HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },\n WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },\n InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },\n NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },\n NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },\n NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },\n NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },\n InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },\n InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },\n SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },\n InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },\n NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },\n InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },\n ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },\n TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },\n SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },\n NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },\n AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },\n URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },\n QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },\n TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },\n InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },\n DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }\n};\n","var IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nmodule.exports = !IS_DENO && !IS_NODE\n && typeof window == 'object'\n && typeof document == 'object';\n","/* global Bun -- Deno case */\nmodule.exports = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';\n","/* global Deno -- Deno case */\nmodule.exports = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';\n","var userAgent = require('../internals/engine-user-agent');\n\n// eslint-disable-next-line redos/no-vulnerable -- safe\nmodule.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);\n","var classof = require('../internals/classof-raw');\n\nmodule.exports = typeof process != 'undefined' && classof(process) == 'process';\n","module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","var global = require('../internals/global');\n\nmodule.exports = function (CONSTRUCTOR) {\n return global[CONSTRUCTOR].prototype;\n};\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar $Error = Error;\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\n\n// non-standard V8\nvar captureStackTrace = Error.captureStackTrace;\n\nmodule.exports = function (error, C, stack, dropEntries) {\n if (ERROR_STACK_INSTALLABLE) {\n if (captureStackTrace) captureStackTrace(error, C);\n else createNonEnumerableProperty(error, 'stack', clearErrorStack(stack, dropEntries));\n }\n};\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineGlobalProperty = require('../internals/define-global-property');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.dontCallGetSet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || defineGlobalProperty(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.dontCallGetSet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n defineBuiltIn(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing\n return Object.isExtensible(Object.preventExtensions({}));\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var uncurryThis = require('../internals/function-uncurry-this-clause');\nvar aCallable = require('../internals/a-callable');\nvar NATIVE_BIND = require('../internals/function-bind-native');\n\nvar bind = uncurryThis(uncurryThis.bind);\n\n// optional / simple context binding\nmodule.exports = function (fn, that) {\n aCallable(fn);\n return that === undefined ? fn : NATIVE_BIND ? bind(fn, that) : function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-function-prototype-bind -- safe\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function demethodize() {\n return uncurryThis(aCallable(this));\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\n\nmodule.exports = function (object, key, method) {\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));\n } catch (error) { /* empty */ }\n};\n","var classofRaw = require('../internals/classof-raw');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = function (fn) {\n // Nashorn bug:\n // https://github.com/zloirock/core-js/issues/1128\n // https://github.com/zloirock/core-js/issues/1130\n if (classofRaw(fn) === 'Function') return uncurryThis(fn);\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar call = FunctionPrototype.call;\nvar uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {\n return function () {\n return call.apply(fn, arguments);\n };\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar getMethod = require('../internals/get-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');\n\nvar ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');\n\nmodule.exports = function from(obj) {\n var object = anObject(obj);\n var alreadyAsync = true;\n var method = getMethod(object, ASYNC_ITERATOR);\n var iterator;\n if (!isCallable(method)) {\n method = getIteratorMethod(object);\n alreadyAsync = false;\n }\n if (isCallable(method)) {\n iterator = call(method, object);\n } else {\n iterator = object;\n alreadyAsync = true;\n }\n anObject(iterator);\n return getIteratorDirect(alreadyAsync ? iterator : new AsyncFromSyncIterator(getIteratorDirect(iterator)));\n};\n","var call = require('../internals/function-call');\nvar AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');\nvar anObject = require('../internals/an-object');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar getMethod = require('../internals/get-method');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ASYNC_ITERATOR = wellKnownSymbol('asyncIterator');\n\nmodule.exports = function (it, usingIterator) {\n var method = arguments.length < 2 ? getMethod(it, ASYNC_ITERATOR) : usingIterator;\n return method ? anObject(call(method, it)) : new AsyncFromSyncIterator(getIteratorDirect(getIterator(it)));\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\n\nmodule.exports = function (obj) {\n return {\n iterator: obj,\n next: aCallable(anObject(obj).next)\n };\n};\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nmodule.exports = function (obj) {\n var object = anObject(obj);\n var method = getIteratorMethod(object);\n return getIteratorDirect(anObject(isCallable(method) ? call(method, object) : object));\n};\n","var classof = require('../internals/classof');\nvar getMethod = require('../internals/get-method');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar Iterators = require('../internals/iterators');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\n\nmodule.exports = function (it) {\n if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR)\n || getMethod(it, '@@iterator')\n || Iterators[classof(it)];\n};\n","var call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar getIteratorMethod = require('../internals/get-iterator-method');\n\nvar $TypeError = TypeError;\n\nmodule.exports = function (argument, usingIterator) {\n var iteratorMethod = arguments.length < 2 ? getIteratorMethod(argument) : usingIterator;\n if (aCallable(iteratorMethod)) return anObject(call(iteratorMethod, argument));\n throw $TypeError(tryToString(argument) + ' is not iterable');\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isArray = require('../internals/is-array');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof-raw');\nvar toString = require('../internals/to-string');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (replacer) {\n if (isCallable(replacer)) return replacer;\n if (!isArray(replacer)) return;\n var rawLength = replacer.length;\n var keys = [];\n for (var i = 0; i < rawLength; i++) {\n var element = replacer[i];\n if (typeof element == 'string') push(keys, element);\n else if (typeof element == 'number' || classof(element) == 'Number' || classof(element) == 'String') push(keys, toString(element));\n }\n var keysLength = keys.length;\n var root = true;\n return function (key, value) {\n if (root) {\n root = false;\n return value;\n }\n if (isArray(this)) return value;\n for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;\n };\n};\n","var aCallable = require('../internals/a-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return isNullOrUndefined(func) ? undefined : aCallable(func);\n};\n","var aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar call = require('../internals/function-call');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar $TypeError = TypeError;\nvar max = Math.max;\n\nvar SetRecord = function (set, size, has, keys) {\n this.set = set;\n this.size = size;\n this.has = has;\n this.keys = keys;\n};\n\nSetRecord.prototype = {\n getIterator: function () {\n return anObject(call(this.keys, this.set));\n },\n includes: function (it) {\n return call(this.has, this.set, it);\n }\n};\n\n// `GetSetRecord` abstract operation\n// https://tc39.es/proposal-set-methods/#sec-getsetrecord\nmodule.exports = function (obj) {\n anObject(obj);\n var numSize = +obj.size;\n // NOTE: If size is undefined, then numSize will be NaN\n // eslint-disable-next-line no-self-compare -- NaN check\n if (numSize != numSize) throw $TypeError('Invalid size');\n return new SetRecord(\n obj,\n max(toIntegerOrInfinity(numSize), 0),\n aCallable(obj.has),\n aCallable(obj.keys)\n );\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar floor = Math.floor;\nvar charAt = uncurryThis(''.charAt);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\n// eslint-disable-next-line redos/no-vulnerable -- safe\nvar SUBSTITUTION_SYMBOLS = /\\$([$&'`]|\\d{1,2}|<[^>]*>)/g;\nvar SUBSTITUTION_SYMBOLS_NO_NAMED = /\\$([$&'`]|\\d{1,2})/g;\n\n// `GetSubstitution` abstract operation\n// https://tc39.es/ecma262/#sec-getsubstitution\nmodule.exports = function (matched, str, position, captures, namedCaptures, replacement) {\n var tailPos = position + matched.length;\n var m = captures.length;\n var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;\n if (namedCaptures !== undefined) {\n namedCaptures = toObject(namedCaptures);\n symbols = SUBSTITUTION_SYMBOLS;\n }\n return replace(replacement, symbols, function (match, ch) {\n var capture;\n switch (charAt(ch, 0)) {\n case '$': return '$';\n case '&': return matched;\n case '`': return stringSlice(str, 0, position);\n case \"'\": return stringSlice(str, tailPos);\n case '<':\n capture = namedCaptures[stringSlice(ch, 1, -1)];\n break;\n default: // \\d\\d?\n var n = +ch;\n if (n === 0) return match;\n if (n > m) {\n var f = floor(n / 10);\n if (f === 0) return match;\n if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);\n return match;\n }\n capture = captures[n - 1];\n }\n return capture === undefined ? '' : capture;\n });\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\n// eslint-disable-next-line es/no-object-hasown -- safe\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","module.exports = function (a, b) {\n try {\n // eslint-disable-next-line no-console -- safe\n arguments.length == 1 ? console.error(a) : console.error(a, b);\n } catch (error) { /* empty */ }\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('document', 'documentElement');\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar $Object = Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !$Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : $Object(it);\n} : $Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar isObject = require('../internals/is-object');\nvar hasOwn = require('../internals/has-own-property');\nvar defineProperty = require('../internals/object-define-property').f;\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertyNamesExternalModule = require('../internals/object-get-own-property-names-external');\nvar isExtensible = require('../internals/object-is-extensible');\nvar uid = require('../internals/uid');\nvar FREEZING = require('../internals/freezing');\n\nvar REQUIRED = false;\nvar METADATA = uid('meta');\nvar id = 0;\n\nvar setMetadata = function (it) {\n defineProperty(it, METADATA, { value: {\n objectID: 'O' + id++, // object ID\n weakData: {} // weak collections IDs\n } });\n};\n\nvar fastKey = function (it, create) {\n // return a primitive with prefix\n if (!isObject(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return 'F';\n // not necessary to add metadata\n if (!create) return 'E';\n // add missing metadata\n setMetadata(it);\n // return object ID\n } return it[METADATA].objectID;\n};\n\nvar getWeakData = function (it, create) {\n if (!hasOwn(it, METADATA)) {\n // can't set metadata to uncaught frozen object\n if (!isExtensible(it)) return true;\n // not necessary to add metadata\n if (!create) return false;\n // add missing metadata\n setMetadata(it);\n // return the store of weak collections IDs\n } return it[METADATA].weakData;\n};\n\n// add metadata on freeze-family methods calling\nvar onFreeze = function (it) {\n if (FREEZING && REQUIRED && isExtensible(it) && !hasOwn(it, METADATA)) setMetadata(it);\n return it;\n};\n\nvar enable = function () {\n meta.enable = function () { /* empty */ };\n REQUIRED = true;\n var getOwnPropertyNames = getOwnPropertyNamesModule.f;\n var splice = uncurryThis([].splice);\n var test = {};\n test[METADATA] = 1;\n\n // prevent exposing of metadata key\n if (getOwnPropertyNames(test).length) {\n getOwnPropertyNamesModule.f = function (it) {\n var result = getOwnPropertyNames(it);\n for (var i = 0, length = result.length; i < length; i++) {\n if (result[i] === METADATA) {\n splice(result, i, 1);\n break;\n }\n } return result;\n };\n\n $({ target: 'Object', stat: true, forced: true }, {\n getOwnPropertyNames: getOwnPropertyNamesExternalModule.f\n });\n }\n};\n\nvar meta = module.exports = {\n enable: enable,\n fastKey: fastKey,\n getWeakData: getWeakData,\n onFreeze: onFreeze\n};\n\nhiddenKeys[METADATA] = true;\n","var NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\nvar global = require('../internals/global');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n /* eslint-disable no-self-assign -- prototype methods protection */\n store.get = store.get;\n store.has = store.has;\n store.set = store.set;\n /* eslint-enable no-self-assign -- prototype methods protection */\n set = function (it, metadata) {\n if (store.has(it)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n store.set(it, metadata);\n return metadata;\n };\n get = function (it) {\n return store.get(it) || {};\n };\n has = function (it) {\n return store.has(it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar ArrayPrototype = Array.prototype;\n\n// check on default Array iterator\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayPrototype[ITERATOR] === it);\n};\n","var classof = require('../internals/classof-raw');\n\n// `IsArray` abstract operation\n// https://tc39.es/ecma262/#sec-isarray\n// eslint-disable-next-line es/no-array-isarray -- safe\nmodule.exports = Array.isArray || function isArray(argument) {\n return classof(argument) == 'Array';\n};\n","var classof = require('../internals/classof');\n\nmodule.exports = function (it) {\n var klass = classof(it);\n return klass == 'BigInt64Array' || klass == 'BigUint64Array';\n};\n","var $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\n// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = $documentAll.IS_HTMLDDA ? function (argument) {\n return typeof argument == 'function' || argument === documentAll;\n} : function (argument) {\n return typeof argument == 'function';\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar classof = require('../internals/classof');\nvar getBuiltIn = require('../internals/get-built-in');\nvar inspectSource = require('../internals/inspect-source');\n\nvar noop = function () { /* empty */ };\nvar empty = [];\nvar construct = getBuiltIn('Reflect', 'construct');\nvar constructorRegExp = /^\\s*(?:class|function)\\b/;\nvar exec = uncurryThis(constructorRegExp.exec);\nvar INCORRECT_TO_STRING = !constructorRegExp.exec(noop);\n\nvar isConstructorModern = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n try {\n construct(noop, empty, argument);\n return true;\n } catch (error) {\n return false;\n }\n};\n\nvar isConstructorLegacy = function isConstructor(argument) {\n if (!isCallable(argument)) return false;\n switch (classof(argument)) {\n case 'AsyncFunction':\n case 'GeneratorFunction':\n case 'AsyncGeneratorFunction': return false;\n }\n try {\n // we can't check .prototype since constructors produced by .bind haven't it\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));\n } catch (error) {\n return true;\n }\n};\n\nisConstructorLegacy.sham = true;\n\n// `IsConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-isconstructor\nmodule.exports = !construct || fails(function () {\n var called;\n return isConstructorModern(isConstructorModern.call)\n || !isConstructorModern(Object)\n || !isConstructorModern(function () { called = true; })\n || called;\n}) ? isConstructorLegacy : isConstructorModern;\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var classof = require('../internals/classof');\nvar hasOwn = require('../internals/has-own-property');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar $Object = Object;\n\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) return false;\n var O = $Object(it);\n return O[ITERATOR] !== undefined\n || '@@iterator' in O\n || hasOwn(Iterators, classof(O));\n};\n","// we can't use just `it == null` since of `document.all` special case\n// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec\nmodule.exports = function (it) {\n return it === null || it === undefined;\n};\n","var isCallable = require('../internals/is-callable');\nvar $documentAll = require('../internals/document-all');\n\nvar documentAll = $documentAll.all;\n\nmodule.exports = $documentAll.IS_HTMLDDA ? function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it) || it === documentAll;\n} : function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var isObject = require('../internals/is-object');\nvar getInternalState = require('../internals/internal-state').get;\n\nmodule.exports = function isRawJSON(O) {\n if (!isObject(O)) return false;\n var state = getInternalState(O);\n return !!state && state.type === 'RawJSON';\n};\n","var isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar MATCH = wellKnownSymbol('match');\n\n// `IsRegExp` abstract operation\n// https://tc39.es/ecma262/#sec-isregexp\nmodule.exports = function (it) {\n var isRegExp;\n return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classof(it) == 'RegExp');\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar $Object = Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));\n};\n","var call = require('../internals/function-call');\n\nmodule.exports = function (iterator, fn, $next) {\n var next = $next || iterator.next;\n var step, result;\n while (!(step = call(next, iterator)).done) {\n result = fn(step.value);\n if (result !== undefined) return result;\n }\n};\n","var bind = require('../internals/function-bind-context');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar tryToString = require('../internals/try-to-string');\nvar isArrayIteratorMethod = require('../internals/is-array-iterator-method');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getIterator = require('../internals/get-iterator');\nvar getIteratorMethod = require('../internals/get-iterator-method');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar $TypeError = TypeError;\n\nvar Result = function (stopped, result) {\n this.stopped = stopped;\n this.result = result;\n};\n\nvar ResultPrototype = Result.prototype;\n\nmodule.exports = function (iterable, unboundFunction, options) {\n var that = options && options.that;\n var AS_ENTRIES = !!(options && options.AS_ENTRIES);\n var IS_RECORD = !!(options && options.IS_RECORD);\n var IS_ITERATOR = !!(options && options.IS_ITERATOR);\n var INTERRUPTED = !!(options && options.INTERRUPTED);\n var fn = bind(unboundFunction, that);\n var iterator, iterFn, index, length, result, next, step;\n\n var stop = function (condition) {\n if (iterator) iteratorClose(iterator, 'normal', condition);\n return new Result(true, condition);\n };\n\n var callFn = function (value) {\n if (AS_ENTRIES) {\n anObject(value);\n return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);\n } return INTERRUPTED ? fn(value, stop) : fn(value);\n };\n\n if (IS_RECORD) {\n iterator = iterable.iterator;\n } else if (IS_ITERATOR) {\n iterator = iterable;\n } else {\n iterFn = getIteratorMethod(iterable);\n if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');\n // optimisation for array iterators\n if (isArrayIteratorMethod(iterFn)) {\n for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {\n result = callFn(iterable[index]);\n if (result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n }\n iterator = getIterator(iterable, iterFn);\n }\n\n next = IS_RECORD ? iterable.next : iterator.next;\n while (!(step = call(next, iterator)).done) {\n try {\n result = callFn(step.value);\n } catch (error) {\n iteratorClose(iterator, 'throw', error);\n }\n if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;\n } return new Result(false);\n};\n","var call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getMethod = require('../internals/get-method');\n\nmodule.exports = function (iterator, kind, value) {\n var innerResult, innerError;\n anObject(iterator);\n try {\n innerResult = getMethod(iterator, 'return');\n if (!innerResult) {\n if (kind === 'throw') throw value;\n return value;\n }\n innerResult = call(innerResult, iterator);\n } catch (error) {\n innerError = true;\n innerResult = error;\n }\n if (kind === 'throw') throw value;\n if (innerError) throw innerResult;\n anObject(innerResult);\n return value;\n};\n","'use strict';\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar create = require('../internals/object-create');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar Iterators = require('../internals/iterators');\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {\n var TO_STRING_TAG = NAME + ' Iterator';\n IteratorConstructor.prototype = create(IteratorPrototype, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });\n setToStringTag(IteratorConstructor, TO_STRING_TAG, false, true);\n Iterators[TO_STRING_TAG] = returnThis;\n return IteratorConstructor;\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar getMethod = require('../internals/get-method');\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar ITERATOR_HELPER = 'IteratorHelper';\nvar WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';\nvar setInternalState = InternalStateModule.set;\n\nvar createIteratorProxyPrototype = function (IS_ITERATOR) {\n var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);\n\n return defineBuiltIns(create(IteratorPrototype), {\n next: function next() {\n var state = getInternalState(this);\n // for simplification:\n // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`\n // for `%IteratorHelperPrototype%.next` - just a value\n if (IS_ITERATOR) return state.nextHandler();\n try {\n var result = state.done ? undefined : state.nextHandler();\n return createIterResultObject(result, state.done);\n } catch (error) {\n state.done = true;\n throw error;\n }\n },\n 'return': function () {\n var state = getInternalState(this);\n var iterator = state.iterator;\n state.done = true;\n if (IS_ITERATOR) {\n var returnMethod = getMethod(iterator, 'return');\n return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);\n }\n if (state.inner) try {\n iteratorClose(state.inner.iterator, 'normal');\n } catch (error) {\n return iteratorClose(iterator, 'throw', error);\n }\n iteratorClose(iterator, 'normal');\n return createIterResultObject(undefined, true);\n }\n });\n};\n\nvar WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);\nvar IteratorHelperPrototype = createIteratorProxyPrototype(false);\n\ncreateNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');\n\nmodule.exports = function (nextHandler, IS_ITERATOR) {\n var IteratorProxy = function Iterator(record, state) {\n if (state) {\n state.iterator = record.iterator;\n state.next = record.next;\n } else state = record;\n state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;\n state.nextHandler = nextHandler;\n state.counter = 0;\n state.done = false;\n setInternalState(this, state);\n };\n\n IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;\n\n return IteratorProxy;\n};\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar IS_PURE = require('../internals/is-pure');\nvar FunctionName = require('../internals/function-name');\nvar isCallable = require('../internals/is-callable');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar setToStringTag = require('../internals/set-to-string-tag');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar Iterators = require('../internals/iterators');\nvar IteratorsCore = require('../internals/iterators-core');\n\nvar PROPER_FUNCTION_NAME = FunctionName.PROPER;\nvar CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;\nvar IteratorPrototype = IteratorsCore.IteratorPrototype;\nvar BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;\nvar ITERATOR = wellKnownSymbol('iterator');\nvar KEYS = 'keys';\nvar VALUES = 'values';\nvar ENTRIES = 'entries';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {\n createIteratorConstructor(IteratorConstructor, NAME, next);\n\n var getIterationMethod = function (KIND) {\n if (KIND === DEFAULT && defaultIterator) return defaultIterator;\n if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];\n switch (KIND) {\n case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };\n case VALUES: return function values() { return new IteratorConstructor(this, KIND); };\n case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };\n } return function () { return new IteratorConstructor(this); };\n };\n\n var TO_STRING_TAG = NAME + ' Iterator';\n var INCORRECT_VALUES_NAME = false;\n var IterablePrototype = Iterable.prototype;\n var nativeIterator = IterablePrototype[ITERATOR]\n || IterablePrototype['@@iterator']\n || DEFAULT && IterablePrototype[DEFAULT];\n var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);\n var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;\n var CurrentIteratorPrototype, methods, KEY;\n\n // fix native\n if (anyNativeIterator) {\n CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));\n if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {\n if (!IS_PURE && getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {\n if (setPrototypeOf) {\n setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);\n } else if (!isCallable(CurrentIteratorPrototype[ITERATOR])) {\n defineBuiltIn(CurrentIteratorPrototype, ITERATOR, returnThis);\n }\n }\n // Set @@toStringTag to native iterators\n setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true, true);\n if (IS_PURE) Iterators[TO_STRING_TAG] = returnThis;\n }\n }\n\n // fix Array.prototype.{ values, @@iterator }.name in V8 / FF\n if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {\n if (!IS_PURE && CONFIGURABLE_FUNCTION_NAME) {\n createNonEnumerableProperty(IterablePrototype, 'name', VALUES);\n } else {\n INCORRECT_VALUES_NAME = true;\n defaultIterator = function values() { return call(nativeIterator, this); };\n }\n }\n\n // export additional methods\n if (DEFAULT) {\n methods = {\n values: getIterationMethod(VALUES),\n keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),\n entries: getIterationMethod(ENTRIES)\n };\n if (FORCED) for (KEY in methods) {\n if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {\n defineBuiltIn(IterablePrototype, KEY, methods[KEY]);\n }\n } else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);\n }\n\n // define iterator\n if ((!IS_PURE || FORCED) && IterablePrototype[ITERATOR] !== defaultIterator) {\n defineBuiltIn(IterablePrototype, ITERATOR, defaultIterator, { name: DEFAULT });\n }\n Iterators[NAME] = defaultIterator;\n\n return methods;\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar map = require('../internals/iterator-map');\n\nvar callback = function (value, counter) {\n return [counter, value];\n};\n\n// `Iterator.prototype.indexed` method\n// https://github.com/tc39/proposal-iterator-helpers\nmodule.exports = function indexed() {\n return call(map, this, callback);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var result = anObject(call(this.next, iterator));\n var done = this.done = !!result.done;\n if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);\n});\n\n// `Iterator.prototype.map` method\n// https://github.com/tc39/proposal-iterator-helpers\nmodule.exports = function map(mapper) {\n return new IteratorProxy(getIteratorDirect(this), {\n mapper: aCallable(mapper)\n });\n};\n","'use strict';\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar create = require('../internals/object-create');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar BUGGY_SAFARI_ITERATORS = false;\n\n// `%IteratorPrototype%` object\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-object\nvar IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;\n\n/* eslint-disable es/no-array-prototype-keys -- safe */\nif ([].keys) {\n arrayIterator = [].keys();\n // Safari 8 has buggy iterators w/o `next`\n if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;\n else {\n PrototypeOfArrayIteratorPrototype = getPrototypeOf(getPrototypeOf(arrayIterator));\n if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;\n }\n}\n\nvar NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype) || fails(function () {\n var test = {};\n // FF44- legacy iterators case\n return IteratorPrototype[ITERATOR].call(test) !== test;\n});\n\nif (NEW_ITERATOR_PROTOTYPE) IteratorPrototype = {};\nelse if (IS_PURE) IteratorPrototype = create(IteratorPrototype);\n\n// `%IteratorPrototype%[@@iterator]()` method\n// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator\nif (!isCallable(IteratorPrototype[ITERATOR])) {\n defineBuiltIn(IteratorPrototype, ITERATOR, function () {\n return this;\n });\n}\n\nmodule.exports = {\n IteratorPrototype: IteratorPrototype,\n BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS\n};\n","module.exports = {};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar enforceInternalState = InternalStateModule.enforce;\nvar getInternalState = InternalStateModule.get;\nvar $String = String;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar stringSlice = uncurryThis(''.slice);\nvar replace = uncurryThis(''.replace);\nvar join = uncurryThis([].join);\n\nvar CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {\n return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;\n});\n\nvar TEMPLATE = String(String).split('String');\n\nvar makeBuiltIn = module.exports = function (value, name, options) {\n if (stringSlice($String(name), 0, 7) === 'Symbol(') {\n name = '[' + replace($String(name), /^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (options && options.getter) name = 'get ' + name;\n if (options && options.setter) name = 'set ' + name;\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });\n else value.name = name;\n }\n if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {\n defineProperty(value, 'length', { value: options.arity });\n }\n try {\n if (options && hasOwn(options, 'constructor') && options.constructor) {\n if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });\n // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable\n } else if (value.prototype) value.prototype = undefined;\n } catch (error) { /* empty */ }\n var state = enforceInternalState(value);\n if (!hasOwn(state, 'source')) {\n state.source = join(TEMPLATE, typeof name == 'string' ? name : '');\n } return value;\n};\n\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n// eslint-disable-next-line no-extend-native -- required\nFunction.prototype.toString = makeBuiltIn(function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n}, 'toString');\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-map -- safe\nvar MapPrototype = Map.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-map -- safe\n Map: Map,\n set: uncurryThis(MapPrototype.set),\n get: uncurryThis(MapPrototype.get),\n has: uncurryThis(MapPrototype.has),\n remove: uncurryThis(MapPrototype['delete']),\n proto: MapPrototype\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar iterateSimple = require('../internals/iterate-simple');\nvar MapHelpers = require('../internals/map-helpers');\n\nvar Map = MapHelpers.Map;\nvar MapPrototype = MapHelpers.proto;\nvar forEach = uncurryThis(MapPrototype.forEach);\nvar entries = uncurryThis(MapPrototype.entries);\nvar next = entries(new Map()).next;\n\nmodule.exports = function (map, fn, interruptible) {\n return interruptible ? iterateSimple(entries(map), function (entry) {\n return fn(entry[1], entry[0]);\n }, next) : forEach(map, fn);\n};\n","'use strict';\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar isCallable = require('../internals/is-callable');\nvar anObject = require('../internals/an-object');\n\nvar $TypeError = TypeError;\n\n// `Map.prototype.upsert` method\n// https://github.com/tc39/proposal-upsert\nmodule.exports = function upsert(key, updateFn /* , insertFn */) {\n var map = anObject(this);\n var get = aCallable(map.get);\n var has = aCallable(map.has);\n var set = aCallable(map.set);\n var insertFn = arguments.length > 2 ? arguments[2] : undefined;\n var value;\n if (!isCallable(updateFn) && !isCallable(insertFn)) {\n throw $TypeError('At least one callback required');\n }\n if (call(has, map, key)) {\n value = call(get, map, key);\n if (isCallable(updateFn)) {\n value = updateFn(value);\n call(set, map, key, value);\n }\n } else if (isCallable(insertFn)) {\n value = insertFn();\n call(set, map, key, value);\n } return value;\n};\n","var sign = require('../internals/math-sign');\n\nvar abs = Math.abs;\nvar pow = Math.pow;\nvar EPSILON = pow(2, -52);\nvar EPSILON32 = pow(2, -23);\nvar MAX32 = pow(2, 127) * (2 - EPSILON32);\nvar MIN32 = pow(2, -126);\n\nvar roundTiesToEven = function (n) {\n return n + 1 / EPSILON - 1 / EPSILON;\n};\n\n// `Math.fround` method implementation\n// https://tc39.es/ecma262/#sec-math.fround\n// eslint-disable-next-line es/no-math-fround -- safe\nmodule.exports = Math.fround || function fround(x) {\n var n = +x;\n var $abs = abs(n);\n var $sign = sign(n);\n var a, result;\n if ($abs < MIN32) return $sign * roundTiesToEven($abs / MIN32 / EPSILON32) * MIN32 * EPSILON32;\n a = (1 + EPSILON32 / EPSILON) * $abs;\n result = a - (a - $abs);\n // eslint-disable-next-line no-self-compare -- NaN check\n if (result > MAX32 || result != result) return $sign * Infinity;\n return $sign * result;\n};\n","// `Math.scale` method implementation\n// https://rwaldron.github.io/proposal-math-extensions/\nmodule.exports = Math.scale || function scale(x, inLow, inHigh, outLow, outHigh) {\n var nx = +x;\n var nInLow = +inLow;\n var nInHigh = +inHigh;\n var nOutLow = +outLow;\n var nOutHigh = +outHigh;\n // eslint-disable-next-line no-self-compare -- NaN check\n if (nx != nx || nInLow != nInLow || nInHigh != nInHigh || nOutLow != nOutLow || nOutHigh != nOutHigh) return NaN;\n if (nx === Infinity || nx === -Infinity) return nx;\n return (nx - nInLow) * (nOutHigh - nOutLow) / (nInHigh - nInLow) + nOutLow;\n};\n","// `Math.sign` method implementation\n// https://tc39.es/ecma262/#sec-math.sign\n// eslint-disable-next-line es/no-math-sign -- safe\nmodule.exports = Math.sign || function sign(x) {\n var n = +x;\n // eslint-disable-next-line no-self-compare -- NaN check\n return n == 0 || n != n ? n : n < 0 ? -1 : 1;\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `Math.trunc` method\n// https://tc39.es/ecma262/#sec-math.trunc\n// eslint-disable-next-line es/no-math-trunc -- safe\nmodule.exports = Math.trunc || function trunc(x) {\n var n = +x;\n return (n > 0 ? floor : ceil)(n);\n};\n","/* eslint-disable es/no-json -- safe */\nvar fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n var unsafeInt = '9007199254740993';\n var raw = JSON.rawJSON(unsafeInt);\n return !JSON.isRawJSON(raw) || JSON.stringify(raw) !== unsafeInt;\n});\n","'use strict';\nvar aCallable = require('../internals/a-callable');\n\nvar $TypeError = TypeError;\n\nvar PromiseCapability = function (C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw $TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aCallable(resolve);\n this.reject = aCallable(reject);\n};\n\n// `NewPromiseCapability` abstract operation\n// https://tc39.es/ecma262/#sec-newpromisecapability\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var $RangeError = RangeError;\n\nmodule.exports = function (it) {\n // eslint-disable-next-line no-self-compare -- NaN check\n if (it === it) return it;\n throw $RangeError('NaN is not allowed');\n};\n","var global = require('../internals/global');\n\nvar globalIsFinite = global.isFinite;\n\n// `Number.isFinite` method\n// https://tc39.es/ecma262/#sec-number.isfinite\n// eslint-disable-next-line es/no-number-isfinite -- safe\nmodule.exports = Number.isFinite || function isFinite(it) {\n return typeof it == 'number' && globalIsFinite(it);\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toString = require('../internals/to-string');\nvar trim = require('../internals/string-trim').trim;\nvar whitespaces = require('../internals/whitespaces');\n\nvar $parseInt = global.parseInt;\nvar Symbol = global.Symbol;\nvar ITERATOR = Symbol && Symbol.iterator;\nvar hex = /^[+-]?0x/i;\nvar exec = uncurryThis(hex.exec);\nvar FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22\n // MS Edge 18- broken with boxed symbols\n || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));\n\n// `parseInt` method\n// https://tc39.es/ecma262/#sec-parseint-string-radix\nmodule.exports = FORCED ? function parseInt(string, radix) {\n var S = trim(toString(string));\n return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));\n} : $parseInt;\n","'use strict';\nvar InternalStateModule = require('../internals/internal-state');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar defineProperties = require('../internals/object-define-properties').f;\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar INCORRECT_RANGE = 'Incorrect Iterator.range arguments';\nvar NUMERIC_RANGE_ITERATOR = 'NumericRangeIterator';\n\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(NUMERIC_RANGE_ITERATOR);\n\nvar $RangeError = RangeError;\nvar $TypeError = TypeError;\n\nvar $RangeIterator = createIteratorConstructor(function NumericRangeIterator(start, end, option, type, zero, one) {\n // TODO: Drop the first `typeof` check after removing lagacy methods in `core-js@4`\n if (typeof start != type || (end !== Infinity && end !== -Infinity && typeof end != type)) {\n throw $TypeError(INCORRECT_RANGE);\n }\n if (start === Infinity || start === -Infinity) {\n throw $RangeError(INCORRECT_RANGE);\n }\n var ifIncrease = end > start;\n var inclusiveEnd = false;\n var step;\n if (option === undefined) {\n step = undefined;\n } else if (isObject(option)) {\n step = option.step;\n inclusiveEnd = !!option.inclusive;\n } else if (typeof option == type) {\n step = option;\n } else {\n throw $TypeError(INCORRECT_RANGE);\n }\n if (isNullOrUndefined(step)) {\n step = ifIncrease ? one : -one;\n }\n if (typeof step != type) {\n throw $TypeError(INCORRECT_RANGE);\n }\n if (step === Infinity || step === -Infinity || (step === zero && start !== end)) {\n throw $RangeError(INCORRECT_RANGE);\n }\n // eslint-disable-next-line no-self-compare -- NaN check\n var hitsEnd = start != start || end != end || step != step || (end > start) !== (step > zero);\n setInternalState(this, {\n type: NUMERIC_RANGE_ITERATOR,\n start: start,\n end: end,\n step: step,\n inclusiveEnd: inclusiveEnd,\n hitsEnd: hitsEnd,\n currentCount: zero,\n zero: zero\n });\n if (!DESCRIPTORS) {\n this.start = start;\n this.end = end;\n this.step = step;\n this.inclusive = inclusiveEnd;\n }\n}, NUMERIC_RANGE_ITERATOR, function next() {\n var state = getInternalState(this);\n if (state.hitsEnd) return createIterResultObject(undefined, true);\n var start = state.start;\n var end = state.end;\n var step = state.step;\n var currentYieldingValue = start + (step * state.currentCount++);\n if (currentYieldingValue === end) state.hitsEnd = true;\n var inclusiveEnd = state.inclusiveEnd;\n var endCondition;\n if (end > start) {\n endCondition = inclusiveEnd ? currentYieldingValue > end : currentYieldingValue >= end;\n } else {\n endCondition = inclusiveEnd ? end > currentYieldingValue : end >= currentYieldingValue;\n }\n if (endCondition) {\n state.hitsEnd = true;\n return createIterResultObject(undefined, true);\n } return createIterResultObject(currentYieldingValue, false);\n});\n\nvar getter = function (fn) {\n return { get: fn, set: function () { /* empty */ }, configurable: true, enumerable: false };\n};\n\nif (DESCRIPTORS) {\n defineProperties($RangeIterator.prototype, {\n start: getter(function () {\n return getInternalState(this).start;\n }),\n end: getter(function () {\n return getInternalState(this).end;\n }),\n inclusive: getter(function () {\n return getInternalState(this).inclusiveEnd;\n }),\n step: getter(function () {\n return getInternalState(this).step;\n })\n });\n}\n\nmodule.exports = $RangeIterator;\n","/* global ActiveXObject -- old IE, WSH */\nvar anObject = require('../internals/an-object');\nvar definePropertiesModule = require('../internals/object-define-properties');\nvar enumBugKeys = require('../internals/enum-bug-keys');\nvar hiddenKeys = require('../internals/hidden-keys');\nvar html = require('../internals/html');\nvar documentCreateElement = require('../internals/document-create-element');\nvar sharedKey = require('../internals/shared-key');\n\nvar GT = '>';\nvar LT = '<';\nvar PROTOTYPE = 'prototype';\nvar SCRIPT = 'script';\nvar IE_PROTO = sharedKey('IE_PROTO');\n\nvar EmptyConstructor = function () { /* empty */ };\n\nvar scriptTag = function (content) {\n return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;\n};\n\n// Create object with fake `null` prototype: use ActiveX Object with cleared prototype\nvar NullProtoObjectViaActiveX = function (activeXDocument) {\n activeXDocument.write(scriptTag(''));\n activeXDocument.close();\n var temp = activeXDocument.parentWindow.Object;\n activeXDocument = null; // avoid memory leak\n return temp;\n};\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar NullProtoObjectViaIFrame = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = documentCreateElement('iframe');\n var JS = 'java' + SCRIPT + ':';\n var iframeDocument;\n iframe.style.display = 'none';\n html.appendChild(iframe);\n // https://github.com/zloirock/core-js/issues/475\n iframe.src = String(JS);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(scriptTag('document.F=Object'));\n iframeDocument.close();\n return iframeDocument.F;\n};\n\n// Check for document.domain and active x support\n// No need to use active x approach when document.domain is not set\n// see https://github.com/es-shims/es5-shim/issues/150\n// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346\n// avoid IE GC bug\nvar activeXDocument;\nvar NullProtoObject = function () {\n try {\n activeXDocument = new ActiveXObject('htmlfile');\n } catch (error) { /* ignore */ }\n NullProtoObject = typeof document != 'undefined'\n ? document.domain && activeXDocument\n ? NullProtoObjectViaActiveX(activeXDocument) // old IE\n : NullProtoObjectViaIFrame()\n : NullProtoObjectViaActiveX(activeXDocument); // WSH\n var length = enumBugKeys.length;\n while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];\n return NullProtoObject();\n};\n\nhiddenKeys[IE_PROTO] = true;\n\n// `Object.create` method\n// https://tc39.es/ecma262/#sec-object.create\n// eslint-disable-next-line es/no-object-create -- safe\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n EmptyConstructor[PROTOTYPE] = anObject(O);\n result = new EmptyConstructor();\n EmptyConstructor[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = NullProtoObject();\n return Properties === undefined ? result : definePropertiesModule.f(result, Properties);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar definePropertyModule = require('../internals/object-define-property');\nvar anObject = require('../internals/an-object');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar objectKeys = require('../internals/object-keys');\n\n// `Object.defineProperties` method\n// https://tc39.es/ecma262/#sec-object.defineproperties\n// eslint-disable-next-line es/no-object-defineproperties -- safe\nexports.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var props = toIndexedObject(Properties);\n var keys = objectKeys(Properties);\n var length = keys.length;\n var index = 0;\n var key;\n while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","/* eslint-disable es/no-object-getownpropertynames -- safe */\nvar classof = require('../internals/classof-raw');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar $getOwnPropertyNames = require('../internals/object-get-own-property-names').f;\nvar arraySlice = require('../internals/array-slice-simple');\n\nvar windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function (it) {\n try {\n return $getOwnPropertyNames(it);\n } catch (error) {\n return arraySlice(windowNames);\n }\n};\n\n// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nmodule.exports.f = function getOwnPropertyNames(it) {\n return windowNames && classof(it) == 'Window'\n ? getWindowNames(it)\n : $getOwnPropertyNames(toIndexedObject(it));\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var hasOwn = require('../internals/has-own-property');\nvar isCallable = require('../internals/is-callable');\nvar toObject = require('../internals/to-object');\nvar sharedKey = require('../internals/shared-key');\nvar CORRECT_PROTOTYPE_GETTER = require('../internals/correct-prototype-getter');\n\nvar IE_PROTO = sharedKey('IE_PROTO');\nvar $Object = Object;\nvar ObjectPrototype = $Object.prototype;\n\n// `Object.getPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.getprototypeof\n// eslint-disable-next-line es/no-object-getprototypeof -- safe\nmodule.exports = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {\n var object = toObject(O);\n if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];\n var constructor = object.constructor;\n if (isCallable(constructor) && object instanceof constructor) {\n return constructor.prototype;\n } return object instanceof $Object ? ObjectPrototype : null;\n};\n","var fails = require('../internals/fails');\nvar isObject = require('../internals/is-object');\nvar classof = require('../internals/classof-raw');\nvar ARRAY_BUFFER_NON_EXTENSIBLE = require('../internals/array-buffer-non-extensible');\n\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar $isExtensible = Object.isExtensible;\nvar FAILS_ON_PRIMITIVES = fails(function () { $isExtensible(1); });\n\n// `Object.isExtensible` method\n// https://tc39.es/ecma262/#sec-object.isextensible\nmodule.exports = (FAILS_ON_PRIMITIVES || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) {\n if (!isObject(it)) return false;\n if (ARRAY_BUFFER_NON_EXTENSIBLE && classof(it) == 'ArrayBuffer') return false;\n return $isExtensible ? $isExtensible(it) : true;\n} : $isExtensible;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","'use strict';\nvar InternalStateModule = require('../internals/internal-state');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar hasOwn = require('../internals/has-own-property');\nvar objectKeys = require('../internals/object-keys');\nvar toObject = require('../internals/to-object');\n\nvar OBJECT_ITERATOR = 'Object Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(OBJECT_ITERATOR);\n\nmodule.exports = createIteratorConstructor(function ObjectIterator(source, mode) {\n var object = toObject(source);\n setInternalState(this, {\n type: OBJECT_ITERATOR,\n mode: mode,\n object: object,\n keys: objectKeys(object),\n index: 0\n });\n}, 'Object', function next() {\n var state = getInternalState(this);\n var keys = state.keys;\n while (true) {\n if (keys === null || state.index >= keys.length) {\n state.object = state.keys = null;\n return createIterResultObject(undefined, true);\n }\n var key = keys[state.index++];\n var object = state.object;\n if (!hasOwn(object, key)) continue;\n switch (state.mode) {\n case 'keys': return createIterResultObject(key, false);\n case 'values': return createIterResultObject(object[key], false);\n } /* entries */ return createIterResultObject([key, object[key]], false);\n }\n});\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\n// `Object.keys` method\n// https://tc39.es/ecma262/#sec-object.keys\n// eslint-disable-next-line es/no-object-keys -- safe\nmodule.exports = Object.keys || function keys(O) {\n return internalObjectKeys(O, enumBugKeys);\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $$OBSERVABLE = wellKnownSymbol('observable');\nvar NativeObservable = global.Observable;\nvar NativeObservablePrototype = NativeObservable && NativeObservable.prototype;\n\nmodule.exports = !isCallable(NativeObservable)\n || !isCallable(NativeObservable.from)\n || !isCallable(NativeObservable.of)\n || !isCallable(NativeObservablePrototype.subscribe)\n || !isCallable(NativeObservablePrototype[$$OBSERVABLE]);\n","var call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar $TypeError = TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw $TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\n\nvar $SyntaxError = SyntaxError;\nvar $parseInt = parseInt;\nvar fromCharCode = String.fromCharCode;\nvar at = uncurryThis(''.charAt);\nvar slice = uncurryThis(''.slice);\nvar exec = uncurryThis(/./.exec);\n\nvar codePoints = {\n '\\\\\"': '\"',\n '\\\\\\\\': '\\\\',\n '\\\\/': '/',\n '\\\\b': '\\b',\n '\\\\f': '\\f',\n '\\\\n': '\\n',\n '\\\\r': '\\r',\n '\\\\t': '\\t'\n};\n\nvar IS_4_HEX_DIGITS = /^[\\da-f]{4}$/i;\n// eslint-disable-next-line regexp/no-control-character -- safe\nvar IS_C0_CONTROL_CODE = /^[\\u0000-\\u001F]$/;\n\nmodule.exports = function (source, i) {\n var unterminated = true;\n var value = '';\n while (i < source.length) {\n var chr = at(source, i);\n if (chr == '\\\\') {\n var twoChars = slice(source, i, i + 2);\n if (hasOwn(codePoints, twoChars)) {\n value += codePoints[twoChars];\n i += 2;\n } else if (twoChars == '\\\\u') {\n i += 2;\n var fourHexDigits = slice(source, i, i + 4);\n if (!exec(IS_4_HEX_DIGITS, fourHexDigits)) throw $SyntaxError('Bad Unicode escape at: ' + i);\n value += fromCharCode($parseInt(fourHexDigits, 16));\n i += 4;\n } else throw $SyntaxError('Unknown escape sequence: \"' + twoChars + '\"');\n } else if (chr == '\"') {\n unterminated = false;\n i++;\n break;\n } else {\n if (exec(IS_C0_CONTROL_CODE, chr)) throw $SyntaxError('Bad control character in string literal at: ' + i);\n value += chr;\n i++;\n }\n }\n if (unterminated) throw $SyntaxError('Unterminated string at: ' + i);\n return { value: value, end: i };\n};\n","var global = require('../internals/global');\n\nmodule.exports = global;\n","module.exports = function (exec) {\n try {\n return { error: false, value: exec() };\n } catch (error) {\n return { error: true, value: error };\n }\n};\n","var global = require('../internals/global');\nvar NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar isCallable = require('../internals/is-callable');\nvar isForced = require('../internals/is-forced');\nvar inspectSource = require('../internals/inspect-source');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_PURE = require('../internals/is-pure');\nvar V8_VERSION = require('../internals/engine-v8-version');\n\nvar NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;\nvar SPECIES = wellKnownSymbol('species');\nvar SUBCLASSING = false;\nvar NATIVE_PROMISE_REJECTION_EVENT = isCallable(global.PromiseRejectionEvent);\n\nvar FORCED_PROMISE_CONSTRUCTOR = isForced('Promise', function () {\n var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor);\n var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor);\n // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // We can't detect it synchronously, so just check versions\n if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;\n // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution\n if (IS_PURE && !(NativePromisePrototype['catch'] && NativePromisePrototype['finally'])) return true;\n // We can't use @@species feature detection in V8 since it causes\n // deoptimization and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {\n // Detect correctness of subclassing with @@species support\n var promise = new NativePromiseConstructor(function (resolve) { resolve(1); });\n var FakePromise = function (exec) {\n exec(function () { /* empty */ }, function () { /* empty */ });\n };\n var constructor = promise.constructor = {};\n constructor[SPECIES] = FakePromise;\n SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;\n if (!SUBCLASSING) return true;\n // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT;\n});\n\nmodule.exports = {\n CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR,\n REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT,\n SUBCLASSING: SUBCLASSING\n};\n","var global = require('../internals/global');\n\nmodule.exports = global.Promise;\n","var NativePromiseConstructor = require('../internals/promise-native-constructor');\nvar checkCorrectnessOfIteration = require('../internals/check-correctness-of-iteration');\nvar FORCED_PROMISE_CONSTRUCTOR = require('../internals/promise-constructor-detection').CONSTRUCTOR;\n\nmodule.exports = FORCED_PROMISE_CONSTRUCTOR || !checkCorrectnessOfIteration(function (iterable) {\n NativePromiseConstructor.all(iterable).then(undefined, function () { /* empty */ });\n});\n","var defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (Target, Source, key) {\n key in Target || defineProperty(Target, key, {\n configurable: true,\n get: function () { return Source[key]; },\n set: function (it) { Source[key] = it; }\n });\n};\n","// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`\nrequire('../modules/es.map');\nrequire('../modules/es.weak-map');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar shared = require('../internals/shared');\n\nvar Map = getBuiltIn('Map');\nvar WeakMap = getBuiltIn('WeakMap');\nvar push = uncurryThis([].push);\n\nvar metadata = shared('metadata');\nvar store = metadata.store || (metadata.store = new WeakMap());\n\nvar getOrCreateMetadataMap = function (target, targetKey, create) {\n var targetMetadata = store.get(target);\n if (!targetMetadata) {\n if (!create) return;\n store.set(target, targetMetadata = new Map());\n }\n var keyMetadata = targetMetadata.get(targetKey);\n if (!keyMetadata) {\n if (!create) return;\n targetMetadata.set(targetKey, keyMetadata = new Map());\n } return keyMetadata;\n};\n\nvar ordinaryHasOwnMetadata = function (MetadataKey, O, P) {\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? false : metadataMap.has(MetadataKey);\n};\n\nvar ordinaryGetOwnMetadata = function (MetadataKey, O, P) {\n var metadataMap = getOrCreateMetadataMap(O, P, false);\n return metadataMap === undefined ? undefined : metadataMap.get(MetadataKey);\n};\n\nvar ordinaryDefineOwnMetadata = function (MetadataKey, MetadataValue, O, P) {\n getOrCreateMetadataMap(O, P, true).set(MetadataKey, MetadataValue);\n};\n\nvar ordinaryOwnMetadataKeys = function (target, targetKey) {\n var metadataMap = getOrCreateMetadataMap(target, targetKey, false);\n var keys = [];\n if (metadataMap) metadataMap.forEach(function (_, key) { push(keys, key); });\n return keys;\n};\n\nvar toMetadataKey = function (it) {\n return it === undefined || typeof it == 'symbol' ? it : String(it);\n};\n\nmodule.exports = {\n store: store,\n getMap: getOrCreateMetadataMap,\n has: ordinaryHasOwnMetadata,\n get: ordinaryGetOwnMetadata,\n set: ordinaryDefineOwnMetadata,\n keys: ordinaryOwnMetadataKeys,\n toKey: toMetadataKey\n};\n","'use strict';\nvar anObject = require('../internals/an-object');\n\n// `RegExp.prototype.flags` getter implementation\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nmodule.exports = function () {\n var that = anObject(this);\n var result = '';\n if (that.hasIndices) result += 'd';\n if (that.global) result += 'g';\n if (that.ignoreCase) result += 'i';\n if (that.multiline) result += 'm';\n if (that.dotAll) result += 's';\n if (that.unicode) result += 'u';\n if (that.unicodeSets) result += 'v';\n if (that.sticky) result += 'y';\n return result;\n};\n","var call = require('../internals/function-call');\nvar hasOwn = require('../internals/has-own-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar regExpFlags = require('../internals/regexp-flags');\n\nvar RegExpPrototype = RegExp.prototype;\n\nmodule.exports = function (R) {\n var flags = R.flags;\n return flags === undefined && !('flags' in RegExpPrototype) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype, R)\n ? call(regExpFlags, R) : flags;\n};\n","var isNullOrUndefined = require('../internals/is-null-or-undefined');\n\nvar $TypeError = TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (isNullOrUndefined(it)) throw $TypeError(\"Can't call method on \" + it);\n return it;\n};\n","// `SameValueZero` abstract operation\n// https://tc39.es/ecma262/#sec-samevaluezero\nmodule.exports = function (x, y) {\n // eslint-disable-next-line no-self-compare -- NaN check\n return x === y || x != x && y != y;\n};\n","'use strict';\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar isCallable = require('../internals/is-callable');\nvar ENGINE_IS_BUN = require('../internals/engine-is-bun');\nvar USER_AGENT = require('../internals/engine-user-agent');\nvar arraySlice = require('../internals/array-slice');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\n\nvar Function = global.Function;\n// dirty IE9- and Bun 0.3.0- checks\nvar WRAP = /MSIE .\\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {\n var version = global.Bun.version.split('.');\n return version.length < 3 || version[0] == 0 && (version[1] < 3 || version[1] == 3 && version[2] == 0);\n})();\n\n// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix\n// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers\n// https://github.com/oven-sh/bun/issues/1633\nmodule.exports = function (scheduler, hasTimeArg) {\n var firstParamIndex = hasTimeArg ? 2 : 1;\n return WRAP ? function (handler, timeout /* , ...arguments */) {\n var boundArgs = validateArgumentsLength(arguments.length, 1) > firstParamIndex;\n var fn = isCallable(handler) ? handler : Function(handler);\n var params = boundArgs ? arraySlice(arguments, firstParamIndex) : [];\n var callback = boundArgs ? function () {\n apply(fn, this, params);\n } : fn;\n return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);\n } : scheduler;\n};\n","var SetHelpers = require('../internals/set-helpers');\nvar iterate = require('../internals/set-iterate');\n\nvar Set = SetHelpers.Set;\nvar add = SetHelpers.add;\n\nmodule.exports = function (set) {\n var result = new Set();\n iterate(set, function (it) {\n add(result, it);\n });\n return result;\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar SetHelpers = require('../internals/set-helpers');\nvar clone = require('../internals/set-clone');\nvar size = require('../internals/set-size');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSet = require('../internals/set-iterate');\nvar iterateSimple = require('../internals/iterate-simple');\n\nvar has = SetHelpers.has;\nvar remove = SetHelpers.remove;\n\n// `Set.prototype.difference` method\n// https://github.com/tc39/proposal-set-methods\nmodule.exports = function difference(other) {\n var O = aSet(this);\n var otherRec = getSetRecord(other);\n var result = clone(O);\n if (size(O) <= otherRec.size) iterateSet(O, function (e) {\n if (otherRec.includes(e)) remove(result, e);\n });\n else iterateSimple(otherRec.getIterator(), function (e) {\n if (has(O, e)) remove(result, e);\n });\n return result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-set -- safe\nvar SetPrototype = Set.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-set -- safe\n Set: Set,\n add: uncurryThis(SetPrototype.add),\n has: uncurryThis(SetPrototype.has),\n remove: uncurryThis(SetPrototype['delete']),\n proto: SetPrototype,\n $has: SetPrototype.has,\n $keys: SetPrototype.keys\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar SetHelpers = require('../internals/set-helpers');\nvar size = require('../internals/set-size');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSet = require('../internals/set-iterate');\nvar iterateSimple = require('../internals/iterate-simple');\n\nvar Set = SetHelpers.Set;\nvar add = SetHelpers.add;\nvar has = SetHelpers.has;\nvar nativeHas = SetHelpers.$has;\nvar nativeKeys = SetHelpers.$keys;\n\nvar isNativeSetRecord = function (record) {\n return record.has === nativeHas && record.keys === nativeKeys;\n};\n\n// `Set.prototype.intersection` method\n// https://github.com/tc39/proposal-set-methods\nmodule.exports = function intersection(other) {\n var O = aSet(this);\n var otherRec = getSetRecord(other);\n var result = new Set();\n\n // observable side effects\n if (!isNativeSetRecord(otherRec) && size(O) > otherRec.size) {\n iterateSimple(otherRec.getIterator(), function (e) {\n if (has(O, e)) add(result, e);\n });\n\n if (size(result) < 2) return result;\n\n var disordered = result;\n result = new Set();\n iterateSet(O, function (e) {\n if (has(disordered, e)) add(result, e);\n });\n } else {\n iterateSet(O, function (e) {\n if (otherRec.includes(e)) add(result, e);\n });\n }\n\n return result;\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar has = require('../internals/set-helpers').has;\nvar size = require('../internals/set-size');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSet = require('../internals/set-iterate');\nvar iterateSimple = require('../internals/iterate-simple');\nvar iteratorClose = require('../internals/iterator-close');\n\n// `Set.prototype.isDisjointFrom` method\n// https://tc39.github.io/proposal-set-methods/#Set.prototype.isDisjointFrom\nmodule.exports = function isDisjointFrom(other) {\n var O = aSet(this);\n var otherRec = getSetRecord(other);\n if (size(O) <= otherRec.size) return iterateSet(O, function (e) {\n if (otherRec.includes(e)) return false;\n }, true) !== false;\n var iterator = otherRec.getIterator();\n return iterateSimple(iterator, function (e) {\n if (has(O, e)) return iteratorClose(iterator, 'normal', false);\n }) !== false;\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar size = require('../internals/set-size');\nvar iterate = require('../internals/set-iterate');\nvar getSetRecord = require('../internals/get-set-record');\n\n// `Set.prototype.isSubsetOf` method\n// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSubsetOf\nmodule.exports = function isSubsetOf(other) {\n var O = aSet(this);\n var otherRec = getSetRecord(other);\n if (size(O) > otherRec.size) return false;\n return iterate(O, function (e) {\n if (!otherRec.includes(e)) return false;\n }, true) !== false;\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar has = require('../internals/set-helpers').has;\nvar size = require('../internals/set-size');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSimple = require('../internals/iterate-simple');\nvar iteratorClose = require('../internals/iterator-close');\n\n// `Set.prototype.isSupersetOf` method\n// https://tc39.github.io/proposal-set-methods/#Set.prototype.isSupersetOf\nmodule.exports = function isSupersetOf(other) {\n var O = aSet(this);\n var otherRec = getSetRecord(other);\n if (size(O) < otherRec.size) return false;\n var iterator = otherRec.getIterator();\n return iterateSimple(iterator, function (e) {\n if (!has(O, e)) return iteratorClose(iterator, 'normal', false);\n }) !== false;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar iterateSimple = require('../internals/iterate-simple');\nvar SetHelpers = require('../internals/set-helpers');\n\nvar Set = SetHelpers.Set;\nvar SetPrototype = SetHelpers.proto;\nvar forEach = uncurryThis(SetPrototype.forEach);\nvar keys = uncurryThis(SetPrototype.keys);\nvar next = keys(new Set()).next;\n\nmodule.exports = function (set, fn, interruptible) {\n return interruptible ? iterateSimple(keys(set), fn, next) : forEach(set, fn);\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nvar createEmptySetLike = function () {\n return {\n size: 0,\n has: function () {\n return false;\n },\n keys: function () {\n return {\n next: function () {\n return { done: true };\n }\n };\n }\n };\n};\n\nmodule.exports = function (name) {\n try {\n var Set = getBuiltIn('Set');\n new Set()[name](createEmptySetLike());\n return true;\n } catch (error) {\n return false;\n }\n};\n","var uncurryThisAccessor = require('../internals/function-uncurry-this-accessor');\nvar SetHelpers = require('../internals/set-helpers');\n\nmodule.exports = uncurryThisAccessor(SetHelpers.proto, 'size', 'get') || function (set) {\n return set.size;\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar SPECIES = wellKnownSymbol('species');\n\nmodule.exports = function (CONSTRUCTOR_NAME) {\n var Constructor = getBuiltIn(CONSTRUCTOR_NAME);\n\n if (DESCRIPTORS && Constructor && !Constructor[SPECIES]) {\n defineBuiltInAccessor(Constructor, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n }\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar SetHelpers = require('../internals/set-helpers');\nvar clone = require('../internals/set-clone');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSimple = require('../internals/iterate-simple');\n\nvar add = SetHelpers.add;\nvar has = SetHelpers.has;\nvar remove = SetHelpers.remove;\n\n// `Set.prototype.symmetricDifference` method\n// https://github.com/tc39/proposal-set-methods\nmodule.exports = function symmetricDifference(other) {\n var O = aSet(this);\n var keysIter = getSetRecord(other).getIterator();\n var result = clone(O);\n iterateSimple(keysIter, function (e) {\n if (has(O, e)) remove(result, e);\n else add(result, e);\n });\n return result;\n};\n","var defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nmodule.exports = function (target, TAG, STATIC) {\n if (target && !STATIC) target = target.prototype;\n if (target && !hasOwn(target, TO_STRING_TAG)) {\n defineProperty(target, TO_STRING_TAG, { configurable: true, value: TAG });\n }\n};\n","'use strict';\nvar aSet = require('../internals/a-set');\nvar add = require('../internals/set-helpers').add;\nvar clone = require('../internals/set-clone');\nvar getSetRecord = require('../internals/get-set-record');\nvar iterateSimple = require('../internals/iterate-simple');\n\n// `Set.prototype.union` method\n// https://github.com/tc39/proposal-set-methods\nmodule.exports = function union(other) {\n var O = aSet(this);\n var keysIter = getSetRecord(other).getIterator();\n var result = clone(O);\n iterateSimple(keysIter, function (it) {\n add(result, it);\n });\n return result;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar defineGlobalProperty = require('../internals/define-global-property');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || defineGlobalProperty(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.28.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.28.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var anObject = require('../internals/an-object');\nvar aConstructor = require('../internals/a-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar SPECIES = wellKnownSymbol('species');\n\n// `SpeciesConstructor` abstract operation\n// https://tc39.es/ecma262/#sec-speciesconstructor\nmodule.exports = function (O, defaultConstructor) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || isNullOrUndefined(S = anObject(C)[SPECIES]) ? defaultConstructor : aConstructor(S);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toString = require('../internals/to-string');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\nvar $TypeError = TypeError;\nvar push = uncurryThis([].push);\nvar join = uncurryThis([].join);\n\n// `String.cooked` method\n// https://tc39.es/proposal-string-cooked/\nmodule.exports = function cooked(template /* , ...substitutions */) {\n var cookedTemplate = toIndexedObject(template);\n var literalSegments = lengthOfArrayLike(cookedTemplate);\n if (!literalSegments) return '';\n var argumentsLength = arguments.length;\n var elements = [];\n var i = 0;\n while (true) {\n var nextVal = cookedTemplate[i++];\n if (nextVal === undefined) throw $TypeError('Incorrect template');\n push(elements, toString(nextVal));\n if (i === literalSegments) return join(elements, '');\n if (i < argumentsLength) push(elements, toString(arguments[i]));\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringSlice = uncurryThis(''.slice);\n\nvar createMethod = function (CONVERT_TO_STRING) {\n return function ($this, pos) {\n var S = toString(requireObjectCoercible($this));\n var position = toIntegerOrInfinity(pos);\n var size = S.length;\n var first, second;\n if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;\n first = charCodeAt(S, position);\n return first < 0xD800 || first > 0xDBFF || position + 1 === size\n || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF\n ? CONVERT_TO_STRING\n ? charAt(S, position)\n : first\n : CONVERT_TO_STRING\n ? stringSlice(S, position, position + 2)\n : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;\n };\n};\n\nmodule.exports = {\n // `String.prototype.codePointAt` method\n // https://tc39.es/ecma262/#sec-string.prototype.codepointat\n codeAt: createMethod(false),\n // `String.prototype.at` method\n // https://github.com/mathiasbynens/String.prototype.at\n charAt: createMethod(true)\n};\n","// adapted from https://github.com/jridgewell/string-dedent\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar fromCharCode = String.fromCharCode;\nvar fromCodePoint = getBuiltIn('String', 'fromCodePoint');\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar stringIndexOf = uncurryThis(''.indexOf);\nvar stringSlice = uncurryThis(''.slice);\n\nvar ZERO_CODE = 48;\nvar NINE_CODE = 57;\nvar LOWER_A_CODE = 97;\nvar LOWER_F_CODE = 102;\nvar UPPER_A_CODE = 65;\nvar UPPER_F_CODE = 70;\n\nvar isDigit = function (str, index) {\n var c = charCodeAt(str, index);\n return c >= ZERO_CODE && c <= NINE_CODE;\n};\n\nvar parseHex = function (str, index, end) {\n if (end >= str.length) return -1;\n var n = 0;\n for (; index < end; index++) {\n var c = hexToInt(charCodeAt(str, index));\n if (c === -1) return -1;\n n = n * 16 + c;\n }\n return n;\n};\n\nvar hexToInt = function (c) {\n if (c >= ZERO_CODE && c <= NINE_CODE) return c - ZERO_CODE;\n if (c >= LOWER_A_CODE && c <= LOWER_F_CODE) return c - LOWER_A_CODE + 10;\n if (c >= UPPER_A_CODE && c <= UPPER_F_CODE) return c - UPPER_A_CODE + 10;\n return -1;\n};\n\nmodule.exports = function (raw) {\n var out = '';\n var start = 0;\n // We need to find every backslash escape sequence, and cook the escape into a real char.\n var i = 0;\n var n;\n while ((i = stringIndexOf(raw, '\\\\', i)) > -1) {\n out += stringSlice(raw, start, i);\n // If the backslash is the last char of the string, then it was an invalid sequence.\n // This can't actually happen in a tagged template literal, but could happen if you manually\n // invoked the tag with an array.\n if (++i === raw.length) return;\n var next = charAt(raw, i++);\n switch (next) {\n // Escaped control codes need to be individually processed.\n case 'b':\n out += '\\b';\n break;\n case 't':\n out += '\\t';\n break;\n case 'n':\n out += '\\n';\n break;\n case 'v':\n out += '\\v';\n break;\n case 'f':\n out += '\\f';\n break;\n case 'r':\n out += '\\r';\n break;\n // Escaped line terminators just skip the char.\n case '\\r':\n // Treat `\\r\\n` as a single terminator.\n if (i < raw.length && charAt(raw, i) === '\\n') ++i;\n // break omitted\n case '\\n':\n case '\\u2028':\n case '\\u2029':\n break;\n // `\\0` is a null control char, but `\\0` followed by another digit is an illegal octal escape.\n case '0':\n if (isDigit(raw, i)) return;\n out += '\\0';\n break;\n // Hex escapes must contain 2 hex chars.\n case 'x':\n n = parseHex(raw, i, i + 2);\n if (n === -1) return;\n i += 2;\n out += fromCharCode(n);\n break;\n // Unicode escapes contain either 4 chars, or an unlimited number between `{` and `}`.\n // The hex value must not overflow 0x10FFFF.\n case 'u':\n if (i < raw.length && charAt(raw, i) === '{') {\n var end = stringIndexOf(raw, '}', ++i);\n if (end === -1) return;\n n = parseHex(raw, i, end);\n i = end + 1;\n } else {\n n = parseHex(raw, i, i + 4);\n i += 4;\n }\n if (n === -1 || n > 0x10FFFF) return;\n out += fromCodePoint(n);\n break;\n default:\n if (isDigit(next, 0)) return;\n out += next;\n }\n start = i;\n }\n return out + stringSlice(raw, start);\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar whitespaces = require('../internals/whitespaces');\n\nvar replace = uncurryThis(''.replace);\nvar ltrim = RegExp('^[' + whitespaces + ']+');\nvar rtrim = RegExp('(^|[^' + whitespaces + '])[' + whitespaces + ']+$');\n\n// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation\nvar createMethod = function (TYPE) {\n return function ($this) {\n var string = toString(requireObjectCoercible($this));\n if (TYPE & 1) string = replace(string, ltrim, '');\n if (TYPE & 2) string = replace(string, rtrim, '$1');\n return string;\n };\n};\n\nmodule.exports = {\n // `String.prototype.{ trimLeft, trimStart }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimstart\n start: createMethod(1),\n // `String.prototype.{ trimRight, trimEnd }` methods\n // https://tc39.es/ecma262/#sec-string.prototype.trimend\n end: createMethod(2),\n // `String.prototype.trim` method\n // https://tc39.es/ecma262/#sec-string.prototype.trim\n trim: createMethod(3)\n};\n","var global = require('../internals/global');\nvar fails = require('../internals/fails');\nvar V8 = require('../internals/engine-v8-version');\nvar IS_BROWSER = require('../internals/engine-is-browser');\nvar IS_DENO = require('../internals/engine-is-deno');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar structuredClone = global.structuredClone;\n\nmodule.exports = !!structuredClone && !fails(function () {\n // prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation\n // https://github.com/zloirock/core-js/issues/679\n if ((IS_DENO && V8 > 92) || (IS_NODE && V8 > 94) || (IS_BROWSER && V8 > 97)) return false;\n var buffer = new ArrayBuffer(8);\n var clone = structuredClone(buffer, { transfer: [buffer] });\n return buffer.byteLength != 0 || clone.byteLength != 8;\n});\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar bind = require('../internals/function-bind-context');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar fails = require('../internals/fails');\nvar html = require('../internals/html');\nvar arraySlice = require('../internals/array-slice');\nvar createElement = require('../internals/document-create-element');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar IS_IOS = require('../internals/engine-is-ios');\nvar IS_NODE = require('../internals/engine-is-node');\n\nvar set = global.setImmediate;\nvar clear = global.clearImmediate;\nvar process = global.process;\nvar Dispatch = global.Dispatch;\nvar Function = global.Function;\nvar MessageChannel = global.MessageChannel;\nvar String = global.String;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar $location, defer, channel, port;\n\nfails(function () {\n // Deno throws a ReferenceError on `location` access without `--location` flag\n $location = global.location;\n});\n\nvar run = function (id) {\n if (hasOwn(queue, id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\n\nvar runner = function (id) {\n return function () {\n run(id);\n };\n};\n\nvar eventListener = function (event) {\n run(event.data);\n};\n\nvar globalPostMessageDefer = function (id) {\n // old engines have not location.origin\n global.postMessage(String(id), $location.protocol + '//' + $location.host);\n};\n\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!set || !clear) {\n set = function setImmediate(handler) {\n validateArgumentsLength(arguments.length, 1);\n var fn = isCallable(handler) ? handler : Function(handler);\n var args = arraySlice(arguments, 1);\n queue[++counter] = function () {\n apply(fn, undefined, args);\n };\n defer(counter);\n return counter;\n };\n clear = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (IS_NODE) {\n defer = function (id) {\n process.nextTick(runner(id));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(runner(id));\n };\n // Browsers with MessageChannel, includes WebWorkers\n // except iOS - https://github.com/zloirock/core-js/issues/624\n } else if (MessageChannel && !IS_IOS) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = eventListener;\n defer = bind(port.postMessage, port);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (\n global.addEventListener &&\n isCallable(global.postMessage) &&\n !global.importScripts &&\n $location && $location.protocol !== 'file:' &&\n !fails(globalPostMessageDefer)\n ) {\n defer = globalPostMessageDefer;\n global.addEventListener('message', eventListener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in createElement('script')) {\n defer = function (id) {\n html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(runner(id), 0);\n };\n }\n}\n\nmodule.exports = {\n set: set,\n clear: clear\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","var toPrimitive = require('../internals/to-primitive');\n\nvar $TypeError = TypeError;\n\n// `ToBigInt` abstract operation\n// https://tc39.es/ecma262/#sec-tobigint\nmodule.exports = function (argument) {\n var prim = toPrimitive(argument, 'number');\n if (typeof prim == 'number') throw $TypeError(\"Can't convert number to bigint\");\n // eslint-disable-next-line es/no-bigint -- safe\n return BigInt(prim);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toLength = require('../internals/to-length');\n\nvar $RangeError = RangeError;\n\n// `ToIndex` abstract operation\n// https://tc39.es/ecma262/#sec-toindex\nmodule.exports = function (it) {\n if (it === undefined) return 0;\n var number = toIntegerOrInfinity(it);\n var length = toLength(number);\n if (number !== length) throw $RangeError('Wrong length or index');\n return length;\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var trunc = require('../internals/math-trunc');\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- NaN check\n return number !== number || number === 0 ? 0 : trunc(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar $Object = Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return $Object(requireObjectCoercible(argument));\n};\n","var toPositiveInteger = require('../internals/to-positive-integer');\n\nvar $RangeError = RangeError;\n\nmodule.exports = function (it, BYTES) {\n var offset = toPositiveInteger(it);\n if (offset % BYTES) throw $RangeError('Wrong offset');\n return offset;\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar $RangeError = RangeError;\n\nmodule.exports = function (it) {\n var result = toIntegerOrInfinity(it);\n if (result < 0) throw $RangeError(\"The argument can't be less than 0\");\n return result;\n};\n","var call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar $TypeError = TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw $TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isIterable = require('../internals/is-iterable');\nvar isObject = require('../internals/is-object');\n\nvar Set = getBuiltIn('Set');\n\nvar isSetLike = function (it) {\n return isObject(it)\n && typeof it.size == 'number'\n && isCallable(it.has)\n && isCallable(it.keys);\n};\n\n// fallback old -> new set methods proposal arguments\nmodule.exports = function (it) {\n if (isSetLike(it)) return it;\n if (isIterable(it)) return new Set(it);\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var classof = require('../internals/classof');\n\nvar $String = String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return $String(argument);\n};\n","var $String = String;\n\nmodule.exports = function (argument) {\n try {\n return $String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\n\nmodule.exports = function (instance, list) {\n return arrayFromConstructorAndList(typedArraySpeciesConstructor(instance), list);\n};\n","var ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar speciesConstructor = require('../internals/species-constructor');\n\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\n\n// a part of `TypedArraySpeciesCreate` abstract operation\n// https://tc39.es/ecma262/#typedarray-species-create\nmodule.exports = function (originalArray) {\n return aTypedArrayConstructor(speciesConstructor(originalArray, getTypedArrayConstructor(originalArray)));\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var $TypeError = TypeError;\n\nmodule.exports = function (passed, required) {\n if (passed < required) throw $TypeError('Not enough arguments');\n return passed;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-weak-map -- safe\nvar WeakMapPrototype = WeakMap.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-weak-map -- safe\n WeakMap: WeakMap,\n set: uncurryThis(WeakMapPrototype.set),\n get: uncurryThis(WeakMapPrototype.get),\n has: uncurryThis(WeakMapPrototype.has),\n remove: uncurryThis(WeakMapPrototype['delete'])\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\n// eslint-disable-next-line es/no-weak-set -- safe\nvar WeakSetPrototype = WeakSet.prototype;\n\nmodule.exports = {\n // eslint-disable-next-line es/no-weak-set -- safe\n WeakSet: WeakSet,\n add: uncurryThis(WeakSetPrototype.add),\n has: uncurryThis(WeakSetPrototype.has),\n remove: uncurryThis(WeakSetPrototype['delete'])\n};\n","var path = require('../internals/path');\nvar hasOwn = require('../internals/has-own-property');\nvar wrappedWellKnownSymbolModule = require('../internals/well-known-symbol-wrapped');\nvar defineProperty = require('../internals/object-define-property').f;\n\nmodule.exports = function (NAME) {\n var Symbol = path.Symbol || (path.Symbol = {});\n if (!hasOwn(Symbol, NAME)) defineProperty(Symbol, NAME, {\n value: wrappedWellKnownSymbolModule.f(NAME)\n });\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nexports.f = wellKnownSymbol;\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Symbol = global.Symbol;\nvar WellKnownSymbolsStore = shared('wks');\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name)) {\n WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)\n ? Symbol[name]\n : createWellKnownSymbol('Symbol.' + name);\n } return WellKnownSymbolsStore[name];\n};\n","// a string of all valid unicode whitespaces\nmodule.exports = '\\u0009\\u000A\\u000B\\u000C\\u000D\\u0020\\u00A0\\u1680\\u2000\\u2001\\u2002' +\n '\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\\uFEFF';\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar proxyAccessor = require('../internals/proxy-accessor');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar installErrorStack = require('../internals/error-stack-install');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var STACK_TRACE_LIMIT = 'stackTraceLimit';\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n installErrorStack(result, WrappedError, result.stack, 2);\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n } else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {\n proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);\n proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\nvar fails = require('../internals/fails');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar AGGREGATE_ERROR = 'AggregateError';\nvar $AggregateError = getBuiltIn(AGGREGATE_ERROR);\n\nvar FORCED = !fails(function () {\n return $AggregateError([1]).errors[0] !== 1;\n}) && fails(function () {\n return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;\n});\n\n// https://github.com/tc39/proposal-error-cause\n$({ global: true, constructor: true, arity: 2, forced: FORCED }, {\n AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {\n // eslint-disable-next-line no-unused-vars -- required for functions `.length`\n return function AggregateError(errors, message) { return apply(init, this, arguments); };\n }, FORCED, true)\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar installErrorCause = require('../internals/install-error-cause');\nvar installErrorStack = require('../internals/error-stack-install');\nvar iterate = require('../internals/iterate');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\nvar push = [].push;\n\nvar $AggregateError = function AggregateError(errors, message /* , options */) {\n var isInstance = isPrototypeOf(AggregateErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : AggregateErrorPrototype);\n } else {\n that = isInstance ? this : create(AggregateErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $AggregateError, that.stack, 1);\n if (arguments.length > 2) installErrorCause(that, arguments[2]);\n var errorsArray = [];\n iterate(errors, push, { that: errorsArray });\n createNonEnumerableProperty(that, 'errors', errorsArray);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($AggregateError, $Error);\nelse copyConstructorProperties($AggregateError, $Error, { name: true });\n\nvar AggregateErrorPrototype = $AggregateError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $AggregateError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'AggregateError')\n});\n\n// `AggregateError` constructor\n// https://tc39.es/ecma262/#sec-aggregate-error-constructor\n$({ global: true, constructor: true, arity: 2 }, {\n AggregateError: $AggregateError\n});\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.aggregate-error.constructor');\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\n$({ target: 'Array', proto: true }, {\n at: function at(index) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var relativeIndex = toIntegerOrInfinity(index);\n var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n return (k < 0 || k >= len) ? undefined : O[k];\n }\n});\n\naddToUnscopables('at');\n","'use strict';\nvar $ = require('../internals/export');\nvar $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.findLastIndex` method\n// https://github.com/tc39/proposal-array-find-from-last\n$({ target: 'Array', proto: true }, {\n findLastIndex: function findLastIndex(callbackfn /* , that = undefined */) {\n return $findLastIndex(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\naddToUnscopables('findLastIndex');\n","'use strict';\nvar $ = require('../internals/export');\nvar $findLast = require('../internals/array-iteration-from-last').findLast;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.findLast` method\n// https://github.com/tc39/proposal-array-find-from-last\n$({ target: 'Array', proto: true }, {\n findLast: function findLast(callbackfn /* , that = undefined */) {\n return $findLast(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\naddToUnscopables('findLast');\n","'use strict';\nvar $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar setArrayLength = require('../internals/array-set-length');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar fails = require('../internals/fails');\n\nvar INCORRECT_TO_LENGTH = fails(function () {\n return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;\n});\n\n// V8 and Safari <= 15.4, FF < 23 throws InternalError\n// https://bugs.chromium.org/p/v8/issues/detail?id=12681\nvar properErrorOnNonWritableLength = function () {\n try {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty([], 'length', { writable: false }).push();\n } catch (error) {\n return error instanceof TypeError;\n }\n};\n\nvar FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();\n\n// `Array.prototype.push` method\n// https://tc39.es/ecma262/#sec-array.prototype.push\n$({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n push: function push(item) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n var argCount = arguments.length;\n doesNotExceedSafeInteger(len + argCount);\n for (var i = 0; i < argCount; i++) {\n O[len] = arguments[i];\n len++;\n }\n setArrayLength(O, len);\n return len;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduceRight = require('../internals/array-reduce').right;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduceRight');\n\n// `Array.prototype.reduceRight` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduceright\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduceRight: function reduceRight(callbackfn /* , initialValue */) {\n return $reduceRight(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $reduce = require('../internals/array-reduce').left;\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar CHROME_VERSION = require('../internals/engine-v8-version');\nvar IS_NODE = require('../internals/engine-is-node');\n\n// Chrome 80-82 has a critical bug\n// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982\nvar CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;\nvar FORCED = CHROME_BUG || !arrayMethodIsStrict('reduce');\n\n// `Array.prototype.reduce` method\n// https://tc39.es/ecma262/#sec-array.prototype.reduce\n$({ target: 'Array', proto: true, forced: FORCED }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var length = arguments.length;\n return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar arrayToReversed = require('../internals/array-to-reversed');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar $Array = Array;\n\n// `Array.prototype.toReversed` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed\n$({ target: 'Array', proto: true }, {\n toReversed: function toReversed() {\n return arrayToReversed(toIndexedObject(this), $Array);\n }\n});\n\naddToUnscopables('toReversed');\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\nvar getVirtual = require('../internals/entry-virtual');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\nvar $Array = Array;\nvar sort = uncurryThis(getVirtual('Array').sort);\n\n// `Array.prototype.toSorted` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSorted\n$({ target: 'Array', proto: true }, {\n toSorted: function toSorted(compareFn) {\n if (compareFn !== undefined) aCallable(compareFn);\n var O = toIndexedObject(this);\n var A = arrayFromConstructorAndList($Array, O);\n return sort(A, compareFn);\n }\n});\n\naddToUnscopables('toSorted');\n","'use strict';\nvar $ = require('../internals/export');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar doesNotExceedSafeInteger = require('../internals/does-not-exceed-safe-integer');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar $Array = Array;\nvar max = Math.max;\nvar min = Math.min;\n\n// `Array.prototype.toSpliced` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toSpliced\n$({ target: 'Array', proto: true }, {\n toSpliced: function toSpliced(start, deleteCount /* , ...items */) {\n var O = toIndexedObject(this);\n var len = lengthOfArrayLike(O);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var k = 0;\n var insertCount, actualDeleteCount, newLen, A;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n insertCount = argumentsLength - 2;\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n }\n newLen = doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);\n A = $Array(newLen);\n\n for (; k < actualStart; k++) A[k] = O[k];\n for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2];\n for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];\n\n return A;\n }\n});\n\naddToUnscopables('toSpliced');\n","'use strict';\nvar $ = require('../internals/export');\nvar arrayWith = require('../internals/array-with');\nvar toIndexedObject = require('../internals/to-indexed-object');\n\nvar $Array = Array;\n\n// `Array.prototype.with` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with\n$({ target: 'Array', proto: true }, {\n 'with': function (index, value) {\n return arrayWith(toIndexedObject(this), $Array, index, value);\n }\n});\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, constructor: true, arity: 1, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED }, O);\n }\n};\n\n// https://tc39.es/ecma262/#sec-nativeerror\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","'use strict';\nvar collection = require('../internals/collection');\nvar collectionStrong = require('../internals/collection-strong');\n\n// `Map` constructor\n// https://tc39.es/ecma262/#sec-map-objects\ncollection('Map', function (init) {\n return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };\n}, collectionStrong);\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.map.constructor');\n","var $ = require('../internals/export');\nvar hasOwn = require('../internals/has-own-property');\n\n// `Object.hasOwn` method\n// https://github.com/tc39/proposal-accessible-object-hasownproperty\n$({ target: 'Object', stat: true }, {\n hasOwn: hasOwn\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar getBuiltIn = require('../internals/get-built-in');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\nvar iterate = require('../internals/iterate');\nvar PROMISE_STATICS_INCORRECT_ITERATION = require('../internals/promise-statics-incorrect-iteration');\n\nvar PROMISE_ANY_ERROR = 'No one promise resolved';\n\n// `Promise.any` method\n// https://tc39.es/ecma262/#sec-promise.any\n$({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {\n any: function any(iterable) {\n var C = this;\n var AggregateError = getBuiltIn('AggregateError');\n var capability = newPromiseCapabilityModule.f(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var promiseResolve = aCallable(C.resolve);\n var errors = [];\n var counter = 0;\n var remaining = 1;\n var alreadyResolved = false;\n iterate(iterable, function (promise) {\n var index = counter++;\n var alreadyRejected = false;\n remaining++;\n call(promiseResolve, C, promise).then(function (value) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyResolved = true;\n resolve(value);\n }, function (error) {\n if (alreadyRejected || alreadyResolved) return;\n alreadyRejected = true;\n errors[index] = error;\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n });\n --remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));\n });\n if (result.error) reject(result.value);\n return capability.promise;\n }\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar setToStringTag = require('../internals/set-to-string-tag');\n\n$({ global: true }, { Reflect: {} });\n\n// Reflect[@@toStringTag] property\n// https://tc39.es/ecma262/#sec-reflect-@@tostringtag\nsetToStringTag(global.Reflect, 'Reflect', true);\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar regExpFlags = require('../internals/regexp-flags');\nvar fails = require('../internals/fails');\n\n// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError\nvar RegExp = global.RegExp;\nvar RegExpPrototype = RegExp.prototype;\n\nvar FORCED = DESCRIPTORS && fails(function () {\n var INDICES_SUPPORT = true;\n try {\n RegExp('.', 'd');\n } catch (error) {\n INDICES_SUPPORT = false;\n }\n\n var O = {};\n // modern V8 bug\n var calls = '';\n var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';\n\n var addGetter = function (key, chr) {\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(O, key, { get: function () {\n calls += chr;\n return true;\n } });\n };\n\n var pairs = {\n dotAll: 's',\n global: 'g',\n ignoreCase: 'i',\n multiline: 'm',\n sticky: 'y'\n };\n\n if (INDICES_SUPPORT) pairs.hasIndices = 'd';\n\n for (var key in pairs) addGetter(key, pairs[key]);\n\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var result = Object.getOwnPropertyDescriptor(RegExpPrototype, 'flags').get.call(O);\n\n return result !== expected || calls !== expected;\n});\n\n// `RegExp.prototype.flags` getter\n// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags\nif (FORCED) defineBuiltInAccessor(RegExpPrototype, 'flags', {\n configurable: true,\n get: regExpFlags\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\n\nvar charAt = uncurryThis(''.charAt);\n\nvar FORCED = fails(function () {\n // eslint-disable-next-line es/no-array-string-prototype-at -- safe\n return '𠮷'.at(-2) !== '\\uD842';\n});\n\n// `String.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\n$({ target: 'String', proto: true, forced: FORCED }, {\n at: function at(index) {\n var S = toString(requireObjectCoercible(this));\n var len = S.length;\n var relativeIndex = toIntegerOrInfinity(index);\n var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n return (k < 0 || k >= len) ? undefined : charAt(S, k);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isRegExp = require('../internals/is-regexp');\nvar toString = require('../internals/to-string');\nvar getMethod = require('../internals/get-method');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar getSubstitution = require('../internals/get-substitution');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IS_PURE = require('../internals/is-pure');\n\nvar REPLACE = wellKnownSymbol('replace');\nvar $TypeError = TypeError;\nvar indexOf = uncurryThis(''.indexOf);\nvar replace = uncurryThis(''.replace);\nvar stringSlice = uncurryThis(''.slice);\nvar max = Math.max;\n\nvar stringIndexOf = function (string, searchValue, fromIndex) {\n if (fromIndex > string.length) return -1;\n if (searchValue === '') return fromIndex;\n return indexOf(string, searchValue, fromIndex);\n};\n\n// `String.prototype.replaceAll` method\n// https://tc39.es/ecma262/#sec-string.prototype.replaceall\n$({ target: 'String', proto: true }, {\n replaceAll: function replaceAll(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;\n var position = 0;\n var endOfLastMatch = 0;\n var result = '';\n if (!isNullOrUndefined(searchValue)) {\n IS_REG_EXP = isRegExp(searchValue);\n if (IS_REG_EXP) {\n flags = toString(requireObjectCoercible(getRegExpFlags(searchValue)));\n if (!~indexOf(flags, 'g')) throw $TypeError('`.replaceAll` does not allow non-global regexes');\n }\n replacer = getMethod(searchValue, REPLACE);\n if (replacer) {\n return call(replacer, searchValue, O, replaceValue);\n } else if (IS_PURE && IS_REG_EXP) {\n return replace(toString(O), searchValue, replaceValue);\n }\n }\n string = toString(O);\n searchString = toString(searchValue);\n functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n searchLength = searchString.length;\n advanceBy = max(1, searchLength);\n position = stringIndexOf(string, searchString, 0);\n while (position !== -1) {\n replacement = functionalReplace\n ? toString(replaceValue(searchString, position, string))\n : getSubstitution(searchString, string, position, [], undefined, replaceValue);\n result += stringSlice(string, endOfLastMatch, position) + replacement;\n endOfLastMatch = position + searchLength;\n position = stringIndexOf(string, searchString, position + advanceBy);\n }\n if (endOfLastMatch < string.length) {\n result += stringSlice(string, endOfLastMatch);\n }\n return result;\n }\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.at` method\n// https://github.com/tc39/proposal-relative-indexing-method\nexportTypedArrayMethod('at', function at(index) {\n var O = aTypedArray(this);\n var len = lengthOfArrayLike(O);\n var relativeIndex = toIntegerOrInfinity(index);\n var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n return (k < 0 || k >= len) ? undefined : O[k];\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $findLastIndex = require('../internals/array-iteration-from-last').findLastIndex;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.findLastIndex` method\n// https://github.com/tc39/proposal-array-find-from-last\nexportTypedArrayMethod('findLastIndex', function findLastIndex(predicate /* , thisArg */) {\n return $findLastIndex(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $findLast = require('../internals/array-iteration-from-last').findLast;\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.findLast` method\n// https://github.com/tc39/proposal-array-find-from-last\nexportTypedArrayMethod('findLast', function findLast(predicate /* , thisArg */) {\n return $findLast(aTypedArray(this), predicate, arguments.length > 1 ? arguments[1] : undefined);\n});\n","'use strict';\nvar global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar toOffset = require('../internals/to-offset');\nvar toIndexedObject = require('../internals/to-object');\nvar fails = require('../internals/fails');\n\nvar RangeError = global.RangeError;\nvar Int8Array = global.Int8Array;\nvar Int8ArrayPrototype = Int8Array && Int8Array.prototype;\nvar $set = Int8ArrayPrototype && Int8ArrayPrototype.set;\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\nvar WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {\n // eslint-disable-next-line es/no-typed-arrays -- required for testing\n var array = new Uint8ClampedArray(2);\n call($set, array, { length: 1, 0: 3 }, 1);\n return array[1] !== 3;\n});\n\n// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other\nvar TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {\n var array = new Int8Array(2);\n array.set(1);\n array.set('2', 1);\n return array[0] !== 0 || array[1] !== 2;\n});\n\n// `%TypedArray%.prototype.set` method\n// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set\nexportTypedArrayMethod('set', function set(arrayLike /* , offset */) {\n aTypedArray(this);\n var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);\n var src = toIndexedObject(arrayLike);\n if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);\n var length = this.length;\n var len = lengthOfArrayLike(src);\n var index = 0;\n if (len + offset > length) throw RangeError('Wrong length');\n while (index < len) this[offset + index] = src[index++];\n}, !WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);\n","'use strict';\nvar arrayToReversed = require('../internals/array-to-reversed');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\n\n// `%TypedArray%.prototype.toReversed` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed\nexportTypedArrayMethod('toReversed', function toReversed() {\n return arrayToReversed(aTypedArray(this), getTypedArrayConstructor(this));\n});\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aCallable = require('../internals/a-callable');\nvar arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar sort = uncurryThis(ArrayBufferViewCore.TypedArrayPrototype.sort);\n\n// `%TypedArray%.prototype.toSorted` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSorted\nexportTypedArrayMethod('toSorted', function toSorted(compareFn) {\n if (compareFn !== undefined) aCallable(compareFn);\n var O = aTypedArray(this);\n var A = arrayFromConstructorAndList(getTypedArrayConstructor(O), O);\n return sort(A, compareFn);\n});\n","'use strict';\nvar arrayWith = require('../internals/array-with');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar isBigIntArray = require('../internals/is-big-int-array');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toBigInt = require('../internals/to-big-int');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\nvar PROPER_ORDER = !!function () {\n try {\n // eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing\n new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });\n } catch (error) {\n // some early implementations, like WebKit, does not follow the final semantic\n // https://github.com/tc39/proposal-change-array-by-copy/pull/86\n return error === 8;\n }\n}();\n\n// `%TypedArray%.prototype.with` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with\nexportTypedArrayMethod('with', { 'with': function (index, value) {\n var O = aTypedArray(this);\n var relativeIndex = toIntegerOrInfinity(index);\n var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;\n return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);\n} }['with'], !PROPER_ORDER);\n","'use strict';\nvar FREEZING = require('../internals/freezing');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar InternalMetadataModule = require('../internals/internal-metadata');\nvar collection = require('../internals/collection');\nvar collectionWeak = require('../internals/collection-weak');\nvar isObject = require('../internals/is-object');\nvar enforceInternalState = require('../internals/internal-state').enforce;\nvar fails = require('../internals/fails');\nvar NATIVE_WEAK_MAP = require('../internals/weak-map-basic-detection');\n\nvar $Object = Object;\n// eslint-disable-next-line es/no-array-isarray -- safe\nvar isArray = Array.isArray;\n// eslint-disable-next-line es/no-object-isextensible -- safe\nvar isExtensible = $Object.isExtensible;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = $Object.isFrozen;\n// eslint-disable-next-line es/no-object-issealed -- safe\nvar isSealed = $Object.isSealed;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = $Object.freeze;\n// eslint-disable-next-line es/no-object-seal -- safe\nvar seal = $Object.seal;\n\nvar FROZEN = {};\nvar SEALED = {};\nvar IS_IE11 = !global.ActiveXObject && 'ActiveXObject' in global;\nvar InternalWeakMap;\n\nvar wrapper = function (init) {\n return function WeakMap() {\n return init(this, arguments.length ? arguments[0] : undefined);\n };\n};\n\n// `WeakMap` constructor\n// https://tc39.es/ecma262/#sec-weakmap-constructor\nvar $WeakMap = collection('WeakMap', wrapper, collectionWeak);\nvar WeakMapPrototype = $WeakMap.prototype;\nvar nativeSet = uncurryThis(WeakMapPrototype.set);\n\n// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them\nvar hasMSEdgeFreezingBug = function () {\n return FREEZING && fails(function () {\n var frozenArray = freeze([]);\n nativeSet(new $WeakMap(), frozenArray, 1);\n return !isFrozen(frozenArray);\n });\n};\n\n// IE11 WeakMap frozen keys fix\n// We can't use feature detection because it crash some old IE builds\n// https://github.com/zloirock/core-js/issues/485\nif (NATIVE_WEAK_MAP) if (IS_IE11) {\n InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true);\n InternalMetadataModule.enable();\n var nativeDelete = uncurryThis(WeakMapPrototype['delete']);\n var nativeHas = uncurryThis(WeakMapPrototype.has);\n var nativeGet = uncurryThis(WeakMapPrototype.get);\n defineBuiltIns(WeakMapPrototype, {\n 'delete': function (key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeDelete(this, key) || state.frozen['delete'](key);\n } return nativeDelete(this, key);\n },\n has: function has(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) || state.frozen.has(key);\n } return nativeHas(this, key);\n },\n get: function get(key) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);\n } return nativeGet(this, key);\n },\n set: function set(key, value) {\n if (isObject(key) && !isExtensible(key)) {\n var state = enforceInternalState(this);\n if (!state.frozen) state.frozen = new InternalWeakMap();\n nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);\n } else nativeSet(this, key, value);\n return this;\n }\n });\n// Chakra Edge frozen keys fix\n} else if (hasMSEdgeFreezingBug()) {\n defineBuiltIns(WeakMapPrototype, {\n set: function set(key, value) {\n var arrayIntegrityLevel;\n if (isArray(key)) {\n if (isFrozen(key)) arrayIntegrityLevel = FROZEN;\n else if (isSealed(key)) arrayIntegrityLevel = SEALED;\n }\n nativeSet(this, key, value);\n if (arrayIntegrityLevel == FROZEN) freeze(key);\n if (arrayIntegrityLevel == SEALED) seal(key);\n return this;\n }\n });\n}\n","// TODO: Remove this module from `core-js@4` since it's replaced to module below\nrequire('../modules/es.weak-map.constructor');\n","'use strict';\nvar DESCRIPTORS = require('../internals/descriptors');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar isDetached = require('../internals/array-buffer-is-detached');\n\nvar ArrayBufferPrototype = ArrayBuffer.prototype;\n\nif (DESCRIPTORS && !('detached' in ArrayBufferPrototype)) {\n defineBuiltInAccessor(ArrayBufferPrototype, 'detached', {\n configurable: true,\n get: function detached() {\n return isDetached(this);\n }\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar $transfer = require('../internals/array-buffer-transfer');\n\n// `ArrayBuffer.prototype.transferToFixedLength` method\n// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength\nif ($transfer) $({ target: 'ArrayBuffer', proto: true }, {\n transferToFixedLength: function transferToFixedLength() {\n return $transfer(this, arguments.length ? arguments[0] : undefined, false);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $transfer = require('../internals/array-buffer-transfer');\n\n// `ArrayBuffer.prototype.transfer` method\n// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer\nif ($transfer) $({ target: 'ArrayBuffer', proto: true }, {\n transfer: function transfer() {\n return $transfer(this, arguments.length ? arguments[0] : undefined, true);\n }\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar $filterReject = require('../internals/array-iteration').filterReject;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.filterOut` method\n// https://github.com/tc39/proposal-array-filtering\n$({ target: 'Array', proto: true, forced: true }, {\n filterOut: function filterOut(callbackfn /* , thisArg */) {\n return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\naddToUnscopables('filterOut');\n","'use strict';\nvar $ = require('../internals/export');\nvar $filterReject = require('../internals/array-iteration').filterReject;\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.filterReject` method\n// https://github.com/tc39/proposal-array-filtering\n$({ target: 'Array', proto: true, forced: true }, {\n filterReject: function filterReject(callbackfn /* , thisArg */) {\n return $filterReject(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n }\n});\n\naddToUnscopables('filterReject');\n","var $ = require('../internals/export');\nvar fromAsync = require('../internals/array-from-async');\n\n// `Array.fromAsync` method\n// https://github.com/tc39/proposal-array-from-async\n$({ target: 'Array', stat: true }, {\n fromAsync: fromAsync\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar $groupToMap = require('../internals/array-group-to-map');\nvar IS_PURE = require('../internals/is-pure');\n\n// `Array.prototype.groupByToMap` method\n// https://github.com/tc39/proposal-array-grouping\n// https://bugs.webkit.org/show_bug.cgi?id=236541\n$({ target: 'Array', proto: true, name: 'groupToMap', forced: IS_PURE || !arrayMethodIsStrict('groupByToMap') }, {\n groupByToMap: $groupToMap\n});\n\naddToUnscopables('groupByToMap');\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar $group = require('../internals/array-group');\nvar arrayMethodIsStrict = require('../internals/array-method-is-strict');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.groupBy` method\n// https://github.com/tc39/proposal-array-grouping\n// https://bugs.webkit.org/show_bug.cgi?id=236541\n$({ target: 'Array', proto: true, forced: !arrayMethodIsStrict('groupBy') }, {\n groupBy: function groupBy(callbackfn /* , thisArg */) {\n var thisArg = arguments.length > 1 ? arguments[1] : undefined;\n return $group(this, callbackfn, thisArg);\n }\n});\n\naddToUnscopables('groupBy');\n","var $ = require('../internals/export');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar $groupToMap = require('../internals/array-group-to-map');\nvar IS_PURE = require('../internals/is-pure');\n\n// `Array.prototype.groupToMap` method\n// https://github.com/tc39/proposal-array-grouping\n$({ target: 'Array', proto: true, forced: IS_PURE }, {\n groupToMap: $groupToMap\n});\n\naddToUnscopables('groupToMap');\n","'use strict';\nvar $ = require('../internals/export');\nvar $group = require('../internals/array-group');\nvar addToUnscopables = require('../internals/add-to-unscopables');\n\n// `Array.prototype.group` method\n// https://github.com/tc39/proposal-array-grouping\n$({ target: 'Array', proto: true }, {\n group: function group(callbackfn /* , thisArg */) {\n var thisArg = arguments.length > 1 ? arguments[1] : undefined;\n return $group(this, callbackfn, thisArg);\n }\n});\n\naddToUnscopables('group');\n","var $ = require('../internals/export');\nvar isArray = require('../internals/is-array');\n\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = Object.isFrozen;\n\nvar isFrozenStringArray = function (array, allowUndefined) {\n if (!isFrozen || !isArray(array) || !isFrozen(array)) return false;\n var index = 0;\n var length = array.length;\n var element;\n while (index < length) {\n element = array[index++];\n if (!(typeof element == 'string' || (allowUndefined && element === undefined))) {\n return false;\n }\n } return length !== 0;\n};\n\n// `Array.isTemplateObject` method\n// https://github.com/tc39/proposal-array-is-template-object\n$({ target: 'Array', stat: true, sham: true, forced: true }, {\n isTemplateObject: function isTemplateObject(value) {\n if (!isFrozenStringArray(value, true)) return false;\n var raw = value.raw;\n return raw.length === value.length && isFrozenStringArray(raw, false);\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar DESCRIPTORS = require('../internals/descriptors');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\n// `Array.prototype.lastIndex` getter\n// https://github.com/keithamus/proposal-array-last\nif (DESCRIPTORS) {\n defineBuiltInAccessor(Array.prototype, 'lastIndex', {\n configurable: true,\n get: function lastIndex() {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n return len == 0 ? 0 : len - 1;\n }\n });\n\n addToUnscopables('lastIndex');\n}\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar DESCRIPTORS = require('../internals/descriptors');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar toObject = require('../internals/to-object');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\n\n// `Array.prototype.lastIndex` accessor\n// https://github.com/keithamus/proposal-array-last\nif (DESCRIPTORS) {\n defineBuiltInAccessor(Array.prototype, 'lastItem', {\n configurable: true,\n get: function lastItem() {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n return len == 0 ? undefined : O[len - 1];\n },\n set: function lastItem(value) {\n var O = toObject(this);\n var len = lengthOfArrayLike(O);\n return O[len == 0 ? 0 : len - 1] = value;\n }\n });\n\n addToUnscopables('lastItem');\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar addToUnscopables = require('../internals/add-to-unscopables');\nvar uniqueBy = require('../internals/array-unique-by');\n\n// `Array.prototype.uniqueBy` method\n// https://github.com/tc39/proposal-array-unique\n$({ target: 'Array', proto: true, forced: true }, {\n uniqueBy: uniqueBy\n});\n\naddToUnscopables('uniqueBy');\n","'use strict';\n// https://github.com/tc39/proposal-async-explicit-resource-management\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar getBuiltIn = require('../internals/get-built-in');\nvar aCallable = require('../internals/a-callable');\nvar anInstance = require('../internals/an-instance');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar addDisposableResource = require('../internals/add-disposable-resource');\n\nvar Promise = getBuiltIn('Promise');\nvar SuppressedError = getBuiltIn('SuppressedError');\nvar $ReferenceError = ReferenceError;\n\nvar ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nvar ASYNC_DISPOSABLE_STACK = 'AsyncDisposableStack';\nvar setInternalState = InternalStateModule.set;\nvar getAsyncDisposableStackInternalState = InternalStateModule.getterFor(ASYNC_DISPOSABLE_STACK);\n\nvar HINT = 'async-dispose';\nvar DISPOSED = 'disposed';\nvar PENDING = 'pending';\n\nvar ALREADY_DISPOSED = ASYNC_DISPOSABLE_STACK + ' already disposed';\n\nvar $AsyncDisposableStack = function AsyncDisposableStack() {\n setInternalState(anInstance(this, AsyncDisposableStackPrototype), {\n type: ASYNC_DISPOSABLE_STACK,\n state: PENDING,\n stack: []\n });\n\n if (!DESCRIPTORS) this.disposed = false;\n};\n\nvar AsyncDisposableStackPrototype = $AsyncDisposableStack.prototype;\n\ndefineBuiltIns(AsyncDisposableStackPrototype, {\n disposeAsync: function disposeAsync() {\n var asyncDisposableStack = this;\n return new Promise(function (resolve, reject) {\n var internalState = getAsyncDisposableStackInternalState(asyncDisposableStack);\n if (internalState.state == DISPOSED) return resolve(undefined);\n internalState.state = DISPOSED;\n if (!DESCRIPTORS) asyncDisposableStack.disposed = true;\n var stack = internalState.stack;\n var i = stack.length;\n var thrown = false;\n var suppressed;\n\n var handleError = function (result) {\n if (thrown) {\n suppressed = new SuppressedError(result, suppressed);\n } else {\n thrown = true;\n suppressed = result;\n }\n\n loop();\n };\n\n var loop = function () {\n if (i) {\n var disposeMethod = stack[--i];\n stack[i] = null;\n try {\n Promise.resolve(disposeMethod()).then(loop, handleError);\n } catch (error) {\n handleError(error);\n }\n } else {\n internalState.stack = null;\n thrown ? reject(suppressed) : resolve(undefined);\n }\n };\n\n loop();\n });\n },\n use: function use(value) {\n var internalState = getAsyncDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n addDisposableResource(internalState, value, HINT);\n return value;\n },\n adopt: function adopt(value, onDispose) {\n var internalState = getAsyncDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n aCallable(onDispose);\n addDisposableResource(internalState, undefined, HINT, function () {\n onDispose(value);\n });\n return value;\n },\n defer: function defer(onDispose) {\n var internalState = getAsyncDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n aCallable(onDispose);\n addDisposableResource(internalState, undefined, HINT, onDispose);\n },\n move: function move() {\n var internalState = getAsyncDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n var newAsyncDisposableStack = new $AsyncDisposableStack();\n getAsyncDisposableStackInternalState(newAsyncDisposableStack).stack = internalState.stack;\n internalState.stack = [];\n return newAsyncDisposableStack;\n }\n});\n\nif (DESCRIPTORS) defineBuiltInAccessor(AsyncDisposableStackPrototype, 'disposed', {\n configurable: true,\n get: function disposed() {\n return getAsyncDisposableStackInternalState(this).state == DISPOSED;\n }\n});\n\ndefineBuiltIn(AsyncDisposableStackPrototype, ASYNC_DISPOSE, AsyncDisposableStackPrototype.disposeAsync, { name: 'disposeAsync' });\ndefineBuiltIn(AsyncDisposableStackPrototype, TO_STRING_TAG, ASYNC_DISPOSABLE_STACK, { nonWritable: true });\n\n$({ global: true, constructor: true, forced: true }, {\n AsyncDisposableStack: $AsyncDisposableStack\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar indexed = require('../internals/async-iterator-indexed');\n\n// `AsyncIterator.prototype.asIndexedPairs` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'AsyncIterator', name: 'indexed', proto: true, real: true, forced: true }, {\n asIndexedPairs: indexed\n});\n","'use strict';\n// https://github.com/tc39/proposal-async-explicit-resource-management\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar getBuiltIn = require('../internals/get-built-in');\nvar getMethod = require('../internals/get-method');\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar AsyncIteratorPrototype = require('../internals/async-iterator-prototype');\n\nvar ASYNC_DISPOSE = wellKnownSymbol('asyncDispose');\nvar Promise = getBuiltIn('Promise');\n\nif (!hasOwn(AsyncIteratorPrototype, ASYNC_DISPOSE)) {\n defineBuiltIn(AsyncIteratorPrototype, ASYNC_DISPOSE, function () {\n var O = this;\n return new Promise(function (resolve, reject) {\n var $return = getMethod(O, 'return');\n if ($return) {\n Promise.resolve(call($return, O)).then(function () {\n resolve(undefined);\n }, reject);\n } else resolve(undefined);\n });\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar anInstance = require('../internals/an-instance');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar AsyncIteratorPrototype = require('../internals/async-iterator-prototype');\nvar IS_PURE = require('../internals/is-pure');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nvar AsyncIteratorConstructor = function AsyncIterator() {\n anInstance(this, AsyncIteratorPrototype);\n};\n\nAsyncIteratorConstructor.prototype = AsyncIteratorPrototype;\n\nif (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) {\n createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator');\n}\n\nif (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) {\n createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor);\n}\n\n// `AsyncIterator` constructor\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ global: true, constructor: true, forced: IS_PURE }, {\n AsyncIterator: AsyncIteratorConstructor\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar notANaN = require('../internals/not-a-nan');\nvar toPositiveInteger = require('../internals/to-positive-integer');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {\n var state = this;\n\n return new Promise(function (resolve, reject) {\n var doneAndReject = function (error) {\n state.done = true;\n reject(error);\n };\n\n var loop = function () {\n try {\n Promise.resolve(anObject(call(state.next, state.iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n state.done = true;\n resolve(createIterResultObject(undefined, true));\n } else if (state.remaining) {\n state.remaining--;\n loop();\n } else resolve(createIterResultObject(step.value, false));\n } catch (err) { doneAndReject(err); }\n }, doneAndReject);\n } catch (error) { doneAndReject(error); }\n };\n\n loop();\n });\n});\n\n// `AsyncIterator.prototype.drop` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n drop: function drop(limit) {\n return new AsyncIteratorProxy(getIteratorDirect(this), {\n remaining: toPositiveInteger(notANaN(+limit))\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $every = require('../internals/async-iterator-iteration').every;\n\n// `AsyncIterator.prototype.every` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n every: function every(predicate) {\n return $every(this, predicate);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar closeAsyncIteration = require('../internals/async-iterator-close');\n\nvar AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {\n var state = this;\n var iterator = state.iterator;\n var predicate = state.predicate;\n\n return new Promise(function (resolve, reject) {\n var doneAndReject = function (error) {\n state.done = true;\n reject(error);\n };\n\n var ifAbruptCloseAsyncIterator = function (error) {\n closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);\n };\n\n var loop = function () {\n try {\n Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n state.done = true;\n resolve(createIterResultObject(undefined, true));\n } else {\n var value = step.value;\n try {\n var result = predicate(value, state.counter++);\n\n var handler = function (selected) {\n selected ? resolve(createIterResultObject(value, false)) : loop();\n };\n\n if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);\n else handler(result);\n } catch (error3) { ifAbruptCloseAsyncIterator(error3); }\n }\n } catch (error2) { doneAndReject(error2); }\n }, doneAndReject);\n } catch (error) { doneAndReject(error); }\n };\n\n loop();\n });\n});\n\n// `AsyncIterator.prototype.filter` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n filter: function filter(predicate) {\n return new AsyncIteratorProxy(getIteratorDirect(this), {\n predicate: aCallable(predicate)\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $find = require('../internals/async-iterator-iteration').find;\n\n// `AsyncIterator.prototype.find` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n find: function find(predicate) {\n return $find(this, predicate);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar getAsyncIteratorFlattenable = require('../internals/get-async-iterator-flattenable');\nvar closeAsyncIteration = require('../internals/async-iterator-close');\n\nvar AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {\n var state = this;\n var iterator = state.iterator;\n var mapper = state.mapper;\n\n return new Promise(function (resolve, reject) {\n var doneAndReject = function (error) {\n state.done = true;\n reject(error);\n };\n\n var ifAbruptCloseAsyncIterator = function (error) {\n closeAsyncIteration(iterator, doneAndReject, error, doneAndReject);\n };\n\n var outerLoop = function () {\n try {\n Promise.resolve(anObject(call(state.next, iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n state.done = true;\n resolve(createIterResultObject(undefined, true));\n } else {\n var value = step.value;\n try {\n var result = mapper(value, state.counter++);\n\n var handler = function (mapped) {\n try {\n state.inner = getAsyncIteratorFlattenable(mapped);\n innerLoop();\n } catch (error4) { ifAbruptCloseAsyncIterator(error4); }\n };\n\n if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);\n else handler(result);\n } catch (error3) { ifAbruptCloseAsyncIterator(error3); }\n }\n } catch (error2) { doneAndReject(error2); }\n }, doneAndReject);\n } catch (error) { doneAndReject(error); }\n };\n\n var innerLoop = function () {\n var inner = state.inner;\n if (inner) {\n try {\n Promise.resolve(anObject(call(inner.next, inner.iterator))).then(function (result) {\n try {\n if (anObject(result).done) {\n state.inner = null;\n outerLoop();\n } else resolve(createIterResultObject(result.value, false));\n } catch (error1) { ifAbruptCloseAsyncIterator(error1); }\n }, ifAbruptCloseAsyncIterator);\n } catch (error) { ifAbruptCloseAsyncIterator(error); }\n } else outerLoop();\n };\n\n innerLoop();\n });\n});\n\n// `AsyncIterator.prototype.flaMap` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n flatMap: function flatMap(mapper) {\n return new AsyncIteratorProxy(getIteratorDirect(this), {\n mapper: aCallable(mapper),\n inner: null\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $forEach = require('../internals/async-iterator-iteration').forEach;\n\n// `AsyncIterator.prototype.forEach` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n forEach: function forEach(fn) {\n return $forEach(this, fn);\n }\n});\n","var $ = require('../internals/export');\nvar toObject = require('../internals/to-object');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getAsyncIteratorFlattenable = require('../internals/get-async-iterator-flattenable');\nvar AsyncIteratorPrototype = require('../internals/async-iterator-prototype');\nvar WrapAsyncIterator = require('../internals/async-iterator-wrap');\n\n// `AsyncIterator.from` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', stat: true }, {\n from: function from(O) {\n var iteratorRecord = getAsyncIteratorFlattenable(typeof O == 'string' ? toObject(O) : O);\n return isPrototypeOf(AsyncIteratorPrototype, iteratorRecord.iterator)\n ? iteratorRecord.iterator\n : new WrapAsyncIterator(iteratorRecord);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar indexed = require('../internals/async-iterator-indexed');\n\n// `AsyncIterator.prototype.indexed` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, {\n indexed: indexed\n});\n","var $ = require('../internals/export');\nvar map = require('../internals/async-iterator-map');\n\n// `AsyncIterator.prototype.map` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n map: map\n});\n\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar isObject = require('../internals/is-object');\nvar getBuiltIn = require('../internals/get-built-in');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar closeAsyncIteration = require('../internals/async-iterator-close');\n\nvar Promise = getBuiltIn('Promise');\nvar $TypeError = TypeError;\n\n// `AsyncIterator.prototype.reduce` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n reduce: function reduce(reducer /* , initialValue */) {\n var record = getIteratorDirect(this);\n var iterator = record.iterator;\n var next = record.next;\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n var counter = 0;\n aCallable(reducer);\n\n return new Promise(function (resolve, reject) {\n var ifAbruptCloseAsyncIterator = function (error) {\n closeAsyncIteration(iterator, reject, error, reject);\n };\n\n var loop = function () {\n try {\n Promise.resolve(anObject(call(next, iterator))).then(function (step) {\n try {\n if (anObject(step).done) {\n noInitial ? reject($TypeError('Reduce of empty iterator with no initial value')) : resolve(accumulator);\n } else {\n var value = step.value;\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n loop();\n } else try {\n var result = reducer(accumulator, value, counter);\n\n var handler = function ($result) {\n accumulator = $result;\n loop();\n };\n\n if (isObject(result)) Promise.resolve(result).then(handler, ifAbruptCloseAsyncIterator);\n else handler(result);\n } catch (error3) { ifAbruptCloseAsyncIterator(error3); }\n }\n counter++;\n } catch (error2) { reject(error2); }\n }, reject);\n } catch (error) { reject(error); }\n };\n\n loop();\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $some = require('../internals/async-iterator-iteration').some;\n\n// `AsyncIterator.prototype.some` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n some: function some(predicate) {\n return $some(this, predicate);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar notANaN = require('../internals/not-a-nan');\nvar toPositiveInteger = require('../internals/to-positive-integer');\nvar createAsyncIteratorProxy = require('../internals/async-iterator-create-proxy');\nvar createIterResultObject = require('../internals/create-iter-result-object');\n\nvar AsyncIteratorProxy = createAsyncIteratorProxy(function (Promise) {\n var state = this;\n var iterator = state.iterator;\n var returnMethod;\n\n if (!state.remaining--) {\n var resultDone = createIterResultObject(undefined, true);\n state.done = true;\n returnMethod = iterator['return'];\n if (returnMethod !== undefined) {\n return Promise.resolve(call(returnMethod, iterator, undefined)).then(function () {\n return resultDone;\n });\n }\n return resultDone;\n } return Promise.resolve(call(state.next, iterator)).then(function (step) {\n if (anObject(step).done) {\n state.done = true;\n return createIterResultObject(undefined, true);\n } return createIterResultObject(step.value, false);\n }).then(null, function (error) {\n state.done = true;\n throw error;\n });\n});\n\n// `AsyncIterator.prototype.take` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n take: function take(limit) {\n return new AsyncIteratorProxy(getIteratorDirect(this), {\n remaining: toPositiveInteger(notANaN(+limit))\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar $toArray = require('../internals/async-iterator-iteration').toArray;\n\n// `AsyncIterator.prototype.toArray` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'AsyncIterator', proto: true, real: true }, {\n toArray: function toArray() {\n return $toArray(this, undefined, []);\n }\n});\n","'use strict';\n/* eslint-disable es/no-bigint -- safe */\nvar $ = require('../internals/export');\nvar NumericRangeIterator = require('../internals/numeric-range-iterator');\n\n// `BigInt.range` method\n// https://github.com/tc39/proposal-Number.range\n// TODO: Remove from `core-js@4`\nif (typeof BigInt == 'function') {\n $({ target: 'BigInt', stat: true, forced: true }, {\n range: function range(start, end, option) {\n return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));\n }\n });\n}\n","var $ = require('../internals/export');\nvar apply = require('../internals/function-apply');\nvar getCompositeKeyNode = require('../internals/composite-key');\nvar getBuiltIn = require('../internals/get-built-in');\nvar create = require('../internals/object-create');\n\nvar $Object = Object;\n\nvar initializer = function () {\n var freeze = getBuiltIn('Object', 'freeze');\n return freeze ? freeze(create(null)) : create(null);\n};\n\n// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey\n$({ global: true, forced: true }, {\n compositeKey: function compositeKey() {\n return apply(getCompositeKeyNode, $Object, arguments).get('object', initializer);\n }\n});\n","var $ = require('../internals/export');\nvar getCompositeKeyNode = require('../internals/composite-key');\nvar getBuiltIn = require('../internals/get-built-in');\nvar apply = require('../internals/function-apply');\n\n// https://github.com/tc39/proposal-richer-keys/tree/master/compositeKey\n$({ global: true, forced: true }, {\n compositeSymbol: function compositeSymbol() {\n if (arguments.length == 1 && typeof arguments[0] == 'string') return getBuiltIn('Symbol')['for'](arguments[0]);\n return apply(getCompositeKeyNode, null, arguments).get('symbol', getBuiltIn('Symbol'));\n }\n});\n","'use strict';\n// https://github.com/tc39/proposal-explicit-resource-management\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar getBuiltIn = require('../internals/get-built-in');\nvar aCallable = require('../internals/a-callable');\nvar anInstance = require('../internals/an-instance');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar addDisposableResource = require('../internals/add-disposable-resource');\n\nvar SuppressedError = getBuiltIn('SuppressedError');\nvar $ReferenceError = ReferenceError;\n\nvar DISPOSE = wellKnownSymbol('dispose');\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nvar DISPOSABLE_STACK = 'DisposableStack';\nvar setInternalState = InternalStateModule.set;\nvar getDisposableStackInternalState = InternalStateModule.getterFor(DISPOSABLE_STACK);\n\nvar HINT = 'sync-dispose';\nvar DISPOSED = 'disposed';\nvar PENDING = 'pending';\n\nvar ALREADY_DISPOSED = DISPOSABLE_STACK + ' already disposed';\n\nvar $DisposableStack = function DisposableStack() {\n setInternalState(anInstance(this, DisposableStackPrototype), {\n type: DISPOSABLE_STACK,\n state: PENDING,\n stack: []\n });\n\n if (!DESCRIPTORS) this.disposed = false;\n};\n\nvar DisposableStackPrototype = $DisposableStack.prototype;\n\ndefineBuiltIns(DisposableStackPrototype, {\n dispose: function dispose() {\n var internalState = getDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) return;\n internalState.state = DISPOSED;\n if (!DESCRIPTORS) this.disposed = true;\n var stack = internalState.stack;\n var i = stack.length;\n var thrown = false;\n var suppressed;\n while (i) {\n var disposeMethod = stack[--i];\n stack[i] = null;\n try {\n disposeMethod();\n } catch (errorResult) {\n if (thrown) {\n suppressed = new SuppressedError(errorResult, suppressed);\n } else {\n thrown = true;\n suppressed = errorResult;\n }\n }\n }\n internalState.stack = null;\n if (thrown) throw suppressed;\n },\n use: function use(value) {\n var internalState = getDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n addDisposableResource(internalState, value, HINT);\n return value;\n },\n adopt: function adopt(value, onDispose) {\n var internalState = getDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n aCallable(onDispose);\n addDisposableResource(internalState, undefined, HINT, function () {\n onDispose(value);\n });\n return value;\n },\n defer: function defer(onDispose) {\n var internalState = getDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n aCallable(onDispose);\n addDisposableResource(internalState, undefined, HINT, onDispose);\n },\n move: function move() {\n var internalState = getDisposableStackInternalState(this);\n if (internalState.state == DISPOSED) throw $ReferenceError(ALREADY_DISPOSED);\n var newDisposableStack = new $DisposableStack();\n getDisposableStackInternalState(newDisposableStack).stack = internalState.stack;\n internalState.stack = [];\n return newDisposableStack;\n }\n});\n\nif (DESCRIPTORS) defineBuiltInAccessor(DisposableStackPrototype, 'disposed', {\n configurable: true,\n get: function disposed() {\n return getDisposableStackInternalState(this).state == DISPOSED;\n }\n});\n\ndefineBuiltIn(DisposableStackPrototype, DISPOSE, DisposableStackPrototype.dispose, { name: 'dispose' });\ndefineBuiltIn(DisposableStackPrototype, TO_STRING_TAG, DISPOSABLE_STACK, { nonWritable: true });\n\n$({ global: true, constructor: true }, {\n DisposableStack: $DisposableStack\n});\n","var $ = require('../internals/export');\nvar demethodize = require('../internals/function-demethodize');\n\n// `Function.prototype.demethodize` method\n// https://github.com/js-choi/proposal-function-demethodize\n$({ target: 'Function', proto: true, forced: true }, {\n demethodize: demethodize\n});\n","var $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar $isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\nvar hasOwn = require('../internals/has-own-property');\nvar DESCRIPTORS = require('../internals/descriptors');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar classRegExp = /^\\s*class\\b/;\nvar exec = uncurryThis(classRegExp.exec);\n\nvar isClassConstructor = function (argument) {\n try {\n // `Function#toString` throws on some built-it function in some legacy engines\n // (for example, `DOMQuad` and similar in FF41-)\n if (!DESCRIPTORS || !exec(classRegExp, inspectSource(argument))) return false;\n } catch (error) { /* empty */ }\n var prototype = getOwnPropertyDescriptor(argument, 'prototype');\n return !!prototype && hasOwn(prototype, 'writable') && !prototype.writable;\n};\n\n// `Function.isCallable` method\n// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md\n$({ target: 'Function', stat: true, sham: true, forced: true }, {\n isCallable: function isCallable(argument) {\n return $isCallable(argument) && !isClassConstructor(argument);\n }\n});\n","var $ = require('../internals/export');\nvar isConstructor = require('../internals/is-constructor');\n\n// `Function.isConstructor` method\n// https://github.com/caitp/TC39-Proposals/blob/trunk/tc39-reflect-isconstructor-iscallable.md\n$({ target: 'Function', stat: true, forced: true }, {\n isConstructor: isConstructor\n});\n","var $ = require('../internals/export');\nvar demethodize = require('../internals/function-demethodize');\n\n// `Function.prototype.unThis` method\n// https://github.com/js-choi/proposal-function-demethodize\n// TODO: Remove from `core-js@4`\n$({ target: 'Function', proto: true, forced: true, name: 'demethodize' }, {\n unThis: demethodize\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar indexed = require('../internals/iterator-indexed');\n\n// `Iterator.prototype.asIndexedPairs` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', name: 'indexed', proto: true, real: true, forced: true }, {\n asIndexedPairs: indexed\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar fails = require('../internals/fails');\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar IS_PURE = require('../internals/is-pure');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\n\nvar NativeIterator = global.Iterator;\n\n// FF56- have non-standard global helper `Iterator`\nvar FORCED = IS_PURE\n || !isCallable(NativeIterator)\n || NativeIterator.prototype !== IteratorPrototype\n // FF44- non-standard `Iterator` passes previous tests\n || !fails(function () { NativeIterator({}); });\n\nvar IteratorConstructor = function Iterator() {\n anInstance(this, IteratorPrototype);\n};\n\nif (!hasOwn(IteratorPrototype, TO_STRING_TAG)) {\n createNonEnumerableProperty(IteratorPrototype, TO_STRING_TAG, 'Iterator');\n}\n\nif (FORCED || !hasOwn(IteratorPrototype, 'constructor') || IteratorPrototype.constructor === Object) {\n createNonEnumerableProperty(IteratorPrototype, 'constructor', IteratorConstructor);\n}\n\nIteratorConstructor.prototype = IteratorPrototype;\n\n// `Iterator` constructor\n// https://github.com/tc39/proposal-iterator-helpers\n$({ global: true, constructor: true, forced: FORCED }, {\n Iterator: IteratorConstructor\n});\n","'use strict';\n// https://github.com/tc39/proposal-explicit-resource-management\nvar call = require('../internals/function-call');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar getMethod = require('../internals/get-method');\nvar hasOwn = require('../internals/has-own-property');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\n\nvar DISPOSE = wellKnownSymbol('dispose');\n\nif (!hasOwn(IteratorPrototype, DISPOSE)) {\n defineBuiltIn(IteratorPrototype, DISPOSE, function () {\n var $return = getMethod(this, 'return');\n if ($return) call($return, this);\n });\n}\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar notANaN = require('../internals/not-a-nan');\nvar toPositiveInteger = require('../internals/to-positive-integer');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var next = this.next;\n var result, done;\n while (this.remaining) {\n this.remaining--;\n result = anObject(call(next, iterator));\n done = this.done = !!result.done;\n if (done) return;\n }\n result = anObject(call(next, iterator));\n done = this.done = !!result.done;\n if (!done) return result.value;\n});\n\n// `Iterator.prototype.drop` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n drop: function drop(limit) {\n return new IteratorProxy(getIteratorDirect(this), {\n remaining: toPositiveInteger(notANaN(+limit))\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.every` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n every: function every(predicate) {\n var record = getIteratorDirect(this);\n var counter = 0;\n aCallable(predicate);\n return !iterate(record, function (value, stop) {\n if (!predicate(value, counter++)) return stop();\n }, { IS_RECORD: true, INTERRUPTED: true }).stopped;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar callWithSafeIterationClosing = require('../internals/call-with-safe-iteration-closing');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var predicate = this.predicate;\n var next = this.next;\n var result, done, value;\n while (true) {\n result = anObject(call(next, iterator));\n done = this.done = !!result.done;\n if (done) return;\n value = result.value;\n if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;\n }\n});\n\n// `Iterator.prototype.filter` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n filter: function filter(predicate) {\n return new IteratorProxy(getIteratorDirect(this), {\n predicate: aCallable(predicate)\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.find` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n find: function find(predicate) {\n var record = getIteratorDirect(this);\n var counter = 0;\n aCallable(predicate);\n return iterate(record, function (value, stop) {\n if (predicate(value, counter++)) return stop(value);\n }, { IS_RECORD: true, INTERRUPTED: true }).result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar getIteratorFlattenable = require('../internals/get-iterator-flattenable');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n var mapper = this.mapper;\n var result, inner;\n\n while (true) {\n if (inner = this.inner) try {\n result = anObject(call(inner.next, inner.iterator));\n if (!result.done) return result.value;\n this.inner = null;\n } catch (error) { iteratorClose(iterator, 'throw', error); }\n\n result = anObject(call(this.next, iterator));\n\n if (this.done = !!result.done) return;\n\n try {\n this.inner = getIteratorFlattenable(mapper(result.value, this.counter++));\n } catch (error) { iteratorClose(iterator, 'throw', error); }\n }\n});\n\n// `Iterator.prototype.flatMap` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n flatMap: function flatMap(mapper) {\n return new IteratorProxy(getIteratorDirect(this), {\n mapper: aCallable(mapper),\n inner: null\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.forEach` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n forEach: function forEach(fn) {\n var record = getIteratorDirect(this);\n var counter = 0;\n aCallable(fn);\n iterate(record, function (value) {\n fn(value, counter++);\n }, { IS_RECORD: true });\n }\n});\n","var $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toObject = require('../internals/to-object');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar getIteratorFlattenable = require('../internals/get-iterator-flattenable');\n\nvar IteratorProxy = createIteratorProxy(function () {\n return call(this.next, this.iterator);\n}, true);\n\n// `Iterator.from` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', stat: true }, {\n from: function from(O) {\n var iteratorRecord = getIteratorFlattenable(typeof O == 'string' ? toObject(O) : O);\n return isPrototypeOf(IteratorPrototype, iteratorRecord.iterator)\n ? iteratorRecord.iterator\n : new IteratorProxy(iteratorRecord);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar indexed = require('../internals/iterator-indexed');\n\n// `Iterator.prototype.indexed` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true, forced: true }, {\n indexed: indexed\n});\n","var $ = require('../internals/export');\nvar map = require('../internals/iterator-map');\n\n// `Iterator.prototype.map` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n map: map\n});\n","'use strict';\n/* eslint-disable es/no-bigint -- safe */\nvar $ = require('../internals/export');\nvar NumericRangeIterator = require('../internals/numeric-range-iterator');\n\nvar $TypeError = TypeError;\n\n// `Iterator.range` method\n// https://github.com/tc39/proposal-Number.range\n$({ target: 'Iterator', stat: true, forced: true }, {\n range: function range(start, end, option) {\n if (typeof start == 'number') return new NumericRangeIterator(start, end, option, 'number', 0, 1);\n if (typeof start == 'bigint') return new NumericRangeIterator(start, end, option, 'bigint', BigInt(0), BigInt(1));\n throw $TypeError('Incorrect Iterator.range arguments');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\nvar $TypeError = TypeError;\n\n// `Iterator.prototype.reduce` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n reduce: function reduce(reducer /* , initialValue */) {\n var record = getIteratorDirect(this);\n aCallable(reducer);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n var counter = 0;\n iterate(record, function (value) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = reducer(accumulator, value, counter);\n }\n counter++;\n }, { IS_RECORD: true });\n if (noInitial) throw $TypeError('Reduce of empty iterator with no initial value');\n return accumulator;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar aCallable = require('../internals/a-callable');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.some` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n some: function some(predicate) {\n var record = getIteratorDirect(this);\n var counter = 0;\n aCallable(predicate);\n return iterate(record, function (value, stop) {\n if (predicate(value, counter++)) return stop();\n }, { IS_RECORD: true, INTERRUPTED: true }).stopped;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\nvar notANaN = require('../internals/not-a-nan');\nvar toPositiveInteger = require('../internals/to-positive-integer');\nvar createIteratorProxy = require('../internals/iterator-create-proxy');\nvar iteratorClose = require('../internals/iterator-close');\n\nvar IteratorProxy = createIteratorProxy(function () {\n var iterator = this.iterator;\n if (!this.remaining--) {\n this.done = true;\n return iteratorClose(iterator, 'normal', undefined);\n }\n var result = anObject(call(this.next, iterator));\n var done = this.done = !!result.done;\n if (!done) return result.value;\n});\n\n// `Iterator.prototype.take` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n take: function take(limit) {\n return new IteratorProxy(getIteratorDirect(this), {\n remaining: toPositiveInteger(notANaN(+limit))\n });\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar iterate = require('../internals/iterate');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\nvar push = [].push;\n\n// `Iterator.prototype.toArray` method\n// https://github.com/tc39/proposal-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n toArray: function toArray() {\n var result = [];\n iterate(getIteratorDirect(this), push, { that: result, IS_RECORD: true });\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar AsyncFromSyncIterator = require('../internals/async-from-sync-iterator');\nvar WrapAsyncIterator = require('../internals/async-iterator-wrap');\nvar getIteratorDirect = require('../internals/get-iterator-direct');\n\n// `Iterator.prototype.toAsync` method\n// https://github.com/tc39/proposal-async-iterator-helpers\n$({ target: 'Iterator', proto: true, real: true }, {\n toAsync: function toAsync() {\n return new WrapAsyncIterator(getIteratorDirect(new AsyncFromSyncIterator(getIteratorDirect(this))));\n }\n});\n","var $ = require('../internals/export');\nvar NATIVE_RAW_JSON = require('../internals/native-raw-json');\nvar isRawJSON = require('../internals/is-raw-json');\n\n// `JSON.parse` method\n// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson\n// https://github.com/tc39/proposal-json-parse-with-source\n$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, {\n isRawJSON: isRawJSON\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar isArray = require('../internals/is-array');\nvar hasOwn = require('../internals/has-own-property');\nvar toString = require('../internals/to-string');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar createProperty = require('../internals/create-property');\nvar fails = require('../internals/fails');\nvar parseJSONString = require('../internals/parse-json-string');\nvar NATIVE_SYMBOL = require('../internals/symbol-constructor-detection');\n\nvar JSON = global.JSON;\nvar Number = global.Number;\nvar SyntaxError = global.SyntaxError;\nvar nativeParse = JSON && JSON.parse;\nvar enumerableOwnProperties = getBuiltIn('Object', 'keys');\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar at = uncurryThis(''.charAt);\nvar slice = uncurryThis(''.slice);\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis([].push);\n\nvar IS_DIGIT = /^\\d$/;\nvar IS_NON_ZERO_DIGIT = /^[1-9]$/;\nvar IS_NUMBER_START = /^(-|\\d)$/;\nvar IS_WHITESPACE = /^[\\t\\n\\r ]$/;\n\nvar PRIMITIVE = 0;\nvar OBJECT = 1;\n\nvar $parse = function (source, reviver) {\n source = toString(source);\n var context = new Context(source, 0, '');\n var root = context.parse();\n var value = root.value;\n var endIndex = context.skip(IS_WHITESPACE, root.end);\n if (endIndex < source.length) {\n throw SyntaxError('Unexpected extra character: \"' + at(source, endIndex) + '\" after the parsed data at: ' + endIndex);\n }\n return isCallable(reviver) ? internalize({ '': value }, '', reviver, root) : value;\n};\n\nvar internalize = function (holder, name, reviver, node) {\n var val = holder[name];\n var unmodified = node && val === node.value;\n var context = unmodified && typeof node.source == 'string' ? { source: node.source } : {};\n var elementRecordsLen, keys, len, i, P;\n if (isObject(val)) {\n var nodeIsArray = isArray(val);\n var nodes = unmodified ? node.nodes : nodeIsArray ? [] : {};\n if (nodeIsArray) {\n elementRecordsLen = nodes.length;\n len = lengthOfArrayLike(val);\n for (i = 0; i < len; i++) {\n internalizeProperty(val, i, internalize(val, '' + i, reviver, i < elementRecordsLen ? nodes[i] : undefined));\n }\n } else {\n keys = enumerableOwnProperties(val);\n len = lengthOfArrayLike(keys);\n for (i = 0; i < len; i++) {\n P = keys[i];\n internalizeProperty(val, P, internalize(val, P, reviver, hasOwn(nodes, P) ? nodes[P] : undefined));\n }\n }\n }\n return call(reviver, holder, name, val, context);\n};\n\nvar internalizeProperty = function (object, key, value) {\n if (DESCRIPTORS) {\n var descriptor = getOwnPropertyDescriptor(object, key);\n if (descriptor && !descriptor.configurable) return;\n }\n if (value === undefined) delete object[key];\n else createProperty(object, key, value);\n};\n\nvar Node = function (value, end, source, nodes) {\n this.value = value;\n this.end = end;\n this.source = source;\n this.nodes = nodes;\n};\n\nvar Context = function (source, index) {\n this.source = source;\n this.index = index;\n};\n\n// https://www.json.org/json-en.html\nContext.prototype = {\n fork: function (nextIndex) {\n return new Context(this.source, nextIndex);\n },\n parse: function () {\n var source = this.source;\n var i = this.skip(IS_WHITESPACE, this.index);\n var fork = this.fork(i);\n var chr = at(source, i);\n var result;\n if (exec(IS_NUMBER_START, chr)) result = fork.number();\n else switch (chr) {\n case '{':\n result = fork.object();\n break;\n case '[':\n result = fork.array();\n break;\n case '\"':\n result = fork.string();\n break;\n case 't':\n result = fork.keyword(true);\n break;\n case 'f':\n result = fork.keyword(false);\n break;\n case 'n':\n result = fork.keyword(null);\n break;\n default:\n throw SyntaxError('Unexpected character: \"' + chr + '\" at: ' + i);\n }\n return result;\n },\n node: function (type, value, start, end, nodes) {\n return new Node(value, end, type ? null : slice(this.source, start, end), nodes);\n },\n object: function () {\n var source = this.source;\n var i = this.index + 1;\n var expectKeypair = false;\n var object = {};\n var nodes = {};\n while (i < source.length) {\n i = this.until(['\"', '}'], i);\n if (at(source, i) == '}' && !expectKeypair) {\n i++;\n break;\n }\n // Parsing the key\n var result = this.fork(i).string();\n var key = result.value;\n i = result.end;\n i = this.until([':'], i) + 1;\n // Parsing value\n i = this.skip(IS_WHITESPACE, i);\n result = this.fork(i).parse();\n createProperty(nodes, key, result);\n createProperty(object, key, result.value);\n i = this.until([',', '}'], result.end);\n var chr = at(source, i);\n if (chr == ',') {\n expectKeypair = true;\n i++;\n } else if (chr == '}') {\n i++;\n break;\n }\n }\n return this.node(OBJECT, object, this.index, i, nodes);\n },\n array: function () {\n var source = this.source;\n var i = this.index + 1;\n var expectElement = false;\n var array = [];\n var nodes = [];\n while (i < source.length) {\n i = this.skip(IS_WHITESPACE, i);\n if (at(source, i) == ']' && !expectElement) {\n i++;\n break;\n }\n var result = this.fork(i).parse();\n push(nodes, result);\n push(array, result.value);\n i = this.until([',', ']'], result.end);\n if (at(source, i) == ',') {\n expectElement = true;\n i++;\n } else if (at(source, i) == ']') {\n i++;\n break;\n }\n }\n return this.node(OBJECT, array, this.index, i, nodes);\n },\n string: function () {\n var index = this.index;\n var parsed = parseJSONString(this.source, this.index + 1);\n return this.node(PRIMITIVE, parsed.value, index, parsed.end);\n },\n number: function () {\n var source = this.source;\n var startIndex = this.index;\n var i = startIndex;\n if (at(source, i) == '-') i++;\n if (at(source, i) == '0') i++;\n else if (exec(IS_NON_ZERO_DIGIT, at(source, i))) i = this.skip(IS_DIGIT, ++i);\n else throw SyntaxError('Failed to parse number at: ' + i);\n if (at(source, i) == '.') i = this.skip(IS_DIGIT, ++i);\n if (at(source, i) == 'e' || at(source, i) == 'E') {\n i++;\n if (at(source, i) == '+' || at(source, i) == '-') i++;\n var exponentStartIndex = i;\n i = this.skip(IS_DIGIT, i);\n if (exponentStartIndex == i) throw SyntaxError(\"Failed to parse number's exponent value at: \" + i);\n }\n return this.node(PRIMITIVE, Number(slice(source, startIndex, i)), startIndex, i);\n },\n keyword: function (value) {\n var keyword = '' + value;\n var index = this.index;\n var endIndex = index + keyword.length;\n if (slice(this.source, index, endIndex) != keyword) throw SyntaxError('Failed to parse value at: ' + index);\n return this.node(PRIMITIVE, value, index, endIndex);\n },\n skip: function (regex, i) {\n var source = this.source;\n for (; i < source.length; i++) if (!exec(regex, at(source, i))) break;\n return i;\n },\n until: function (array, i) {\n i = this.skip(IS_WHITESPACE, i);\n var chr = at(this.source, i);\n for (var j = 0; j < array.length; j++) if (array[j] == chr) return i;\n throw SyntaxError('Unexpected character: \"' + chr + '\" at: ' + i);\n }\n};\n\nvar NO_SOURCE_SUPPORT = fails(function () {\n var unsafeInt = '9007199254740993';\n var source;\n nativeParse(unsafeInt, function (key, value, context) {\n source = context.source;\n });\n return source !== unsafeInt;\n});\n\nvar PROPER_BASE_PARSE = NATIVE_SYMBOL && !fails(function () {\n // Safari 9 bug\n return 1 / nativeParse('-0 \\t') !== -Infinity;\n});\n\n// `JSON.parse` method\n// https://tc39.es/ecma262/#sec-json.parse\n// https://github.com/tc39/proposal-json-parse-with-source\n$({ target: 'JSON', stat: true, forced: NO_SOURCE_SUPPORT }, {\n parse: function parse(text, reviver) {\n return PROPER_BASE_PARSE && !isCallable(reviver) ? nativeParse(text) : $parse(text, reviver);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar FREEZING = require('../internals/freezing');\nvar NATIVE_RAW_JSON = require('../internals/native-raw-json');\nvar getBuiltIn = require('../internals/get-built-in');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar isRawJSON = require('../internals/is-raw-json');\nvar toString = require('../internals/to-string');\nvar createProperty = require('../internals/create-property');\nvar parseJSONString = require('../internals/parse-json-string');\nvar getReplacerFunction = require('../internals/get-json-replacer-function');\nvar uid = require('../internals/uid');\nvar setInternalState = require('../internals/internal-state').set;\n\nvar $String = String;\nvar $SyntaxError = SyntaxError;\nvar parse = getBuiltIn('JSON', 'parse');\nvar $stringify = getBuiltIn('JSON', 'stringify');\nvar create = getBuiltIn('Object', 'create');\nvar freeze = getBuiltIn('Object', 'freeze');\nvar at = uncurryThis(''.charAt);\nvar slice = uncurryThis(''.slice);\nvar exec = uncurryThis(/./.exec);\nvar push = uncurryThis([].push);\n\nvar MARK = uid();\nvar MARK_LENGTH = MARK.length;\nvar ERROR_MESSAGE = 'Unacceptable as raw JSON';\nvar IS_WHITESPACE = /^[\\t\\n\\r ]$/;\n\n// `JSON.parse` method\n// https://tc39.es/proposal-json-parse-with-source/#sec-json.israwjson\n// https://github.com/tc39/proposal-json-parse-with-source\n$({ target: 'JSON', stat: true, forced: !NATIVE_RAW_JSON }, {\n rawJSON: function rawJSON(text) {\n var jsonString = toString(text);\n if (jsonString == '' || exec(IS_WHITESPACE, at(jsonString, 0)) || exec(IS_WHITESPACE, at(jsonString, jsonString.length - 1))) {\n throw $SyntaxError(ERROR_MESSAGE);\n }\n var parsed = parse(jsonString);\n if (typeof parsed == 'object' && parsed !== null) throw $SyntaxError(ERROR_MESSAGE);\n var obj = create(null);\n setInternalState(obj, { type: 'RawJSON' });\n createProperty(obj, 'rawJSON', jsonString);\n return FREEZING ? freeze(obj) : obj;\n }\n});\n\n// `JSON.stringify` method\n// https://tc39.es/ecma262/#sec-json.stringify\n// https://github.com/tc39/proposal-json-parse-with-source\nif ($stringify) $({ target: 'JSON', stat: true, arity: 3, forced: !NATIVE_RAW_JSON }, {\n stringify: function stringify(text, replacer, space) {\n var replacerFunction = getReplacerFunction(replacer);\n var rawStrings = [];\n\n var json = $stringify(text, function (key, value) {\n // some old implementations (like WebKit) could pass numbers as keys\n var v = isCallable(replacerFunction) ? call(replacerFunction, this, $String(key), value) : value;\n return isRawJSON(v) ? MARK + (push(rawStrings, v.rawJSON) - 1) : v;\n }, space);\n\n if (typeof json != 'string') return json;\n\n var result = '';\n var length = json.length;\n\n for (var i = 0; i < length; i++) {\n var chr = at(json, i);\n if (chr == '\"') {\n var end = parseJSONString(json, ++i).end - 1;\n var string = slice(json, i, end);\n result += slice(string, 0, MARK_LENGTH) == MARK\n ? rawStrings[slice(string, MARK_LENGTH)]\n : '\"' + string + '\"';\n i = end;\n } else result += chr;\n }\n\n return result;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aMap = require('../internals/a-map');\nvar remove = require('../internals/map-helpers').remove;\n\n// `Map.prototype.deleteAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n deleteAll: function deleteAll(/* ...elements */) {\n var collection = aMap(this);\n var allDeleted = true;\n var wasDeleted;\n for (var k = 0, len = arguments.length; k < len; k++) {\n wasDeleted = remove(collection, arguments[k]);\n allDeleted = allDeleted && wasDeleted;\n } return !!allDeleted;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\n\nvar get = MapHelpers.get;\nvar has = MapHelpers.has;\nvar set = MapHelpers.set;\n\n// `Map.prototype.emplace` method\n// https://github.com/tc39/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n emplace: function emplace(key, handler) {\n var map = aMap(this);\n var value, inserted;\n if (has(map, key)) {\n value = get(map, key);\n if ('update' in handler) {\n value = handler.update(value, key, map);\n set(map, key, value);\n } return value;\n }\n inserted = handler.insert(key, map);\n set(map, key, inserted);\n return inserted;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.every` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n every: function every(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return iterate(map, function (value, key) {\n if (!boundFunction(value, key, map)) return false;\n }, true) !== false;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\nvar iterate = require('../internals/map-iterate');\n\nvar Map = MapHelpers.Map;\nvar set = MapHelpers.set;\n\n// `Map.prototype.filter` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n filter: function filter(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var newMap = new Map();\n iterate(map, function (value, key) {\n if (boundFunction(value, key, map)) set(newMap, key, value);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.findKey` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n findKey: function findKey(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var result = iterate(map, function (value, key) {\n if (boundFunction(value, key, map)) return { key: key };\n }, true);\n return result && result.key;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.find` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n find: function find(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var result = iterate(map, function (value, key) {\n if (boundFunction(value, key, map)) return { value: value };\n }, true);\n return result && result.value;\n }\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/collection-from');\n\n// `Map.from` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-map.from\n$({ target: 'Map', stat: true, forced: true }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar aCallable = require('../internals/a-callable');\nvar iterate = require('../internals/iterate');\nvar Map = require('../internals/map-helpers').Map;\n\nvar push = uncurryThis([].push);\n\n// `Map.groupBy` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', stat: true, forced: true }, {\n groupBy: function groupBy(iterable, keyDerivative) {\n var C = isCallable(this) ? this : Map;\n var newMap = new C();\n aCallable(keyDerivative);\n var has = aCallable(newMap.has);\n var get = aCallable(newMap.get);\n var set = aCallable(newMap.set);\n iterate(iterable, function (element) {\n var derivedKey = keyDerivative(element);\n if (!call(has, newMap, derivedKey)) call(set, newMap, derivedKey, [element]);\n else push(call(get, newMap, derivedKey), element);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar sameValueZero = require('../internals/same-value-zero');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.includes` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n includes: function includes(searchElement) {\n return iterate(aMap(this), function (value) {\n if (sameValueZero(value, searchElement)) return true;\n }, true) === true;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar iterate = require('../internals/iterate');\nvar isCallable = require('../internals/is-callable');\nvar aCallable = require('../internals/a-callable');\nvar Map = require('../internals/map-helpers').Map;\n\n// `Map.keyBy` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', stat: true, forced: true }, {\n keyBy: function keyBy(iterable, keyDerivative) {\n var C = isCallable(this) ? this : Map;\n var newMap = new C();\n aCallable(keyDerivative);\n var setter = aCallable(newMap.set);\n iterate(iterable, function (element) {\n call(setter, newMap, keyDerivative(element), element);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.keyOf` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n keyOf: function keyOf(searchElement) {\n var result = iterate(aMap(this), function (value, key) {\n if (value === searchElement) return { key: key };\n }, true);\n return result && result.key;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\nvar iterate = require('../internals/map-iterate');\n\nvar Map = MapHelpers.Map;\nvar set = MapHelpers.set;\n\n// `Map.prototype.mapKeys` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n mapKeys: function mapKeys(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var newMap = new Map();\n iterate(map, function (value, key) {\n set(newMap, boundFunction(value, key, map), value);\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\nvar iterate = require('../internals/map-iterate');\n\nvar Map = MapHelpers.Map;\nvar set = MapHelpers.set;\n\n// `Map.prototype.mapValues` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n mapValues: function mapValues(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var newMap = new Map();\n iterate(map, function (value, key) {\n set(newMap, key, boundFunction(value, key, map));\n });\n return newMap;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/iterate');\nvar set = require('../internals/map-helpers').set;\n\n// `Map.prototype.merge` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, arity: 1, forced: true }, {\n // eslint-disable-next-line no-unused-vars -- required for `.length`\n merge: function merge(iterable /* ...iterables */) {\n var map = aMap(this);\n var argumentsLength = arguments.length;\n var i = 0;\n while (i < argumentsLength) {\n iterate(arguments[i++], function (key, value) {\n set(map, key, value);\n }, { AS_ENTRIES: true });\n }\n return map;\n }\n});\n","var $ = require('../internals/export');\nvar of = require('../internals/collection-of');\n\n// `Map.of` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-map.of\n$({ target: 'Map', stat: true, forced: true }, {\n of: of\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aCallable = require('../internals/a-callable');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\nvar $TypeError = TypeError;\n\n// `Map.prototype.reduce` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var map = aMap(this);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n aCallable(callbackfn);\n iterate(map, function (value, key) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = callbackfn(accumulator, value, key, map);\n }\n });\n if (noInitial) throw $TypeError('Reduce of empty map with no initial value');\n return accumulator;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aMap = require('../internals/a-map');\nvar iterate = require('../internals/map-iterate');\n\n// `Map.prototype.some` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n some: function some(callbackfn /* , thisArg */) {\n var map = aMap(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return iterate(map, function (value, key) {\n if (boundFunction(value, key, map)) return true;\n }, true) === true;\n }\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar upsert = require('../internals/map-upsert');\n\n// `Map.prototype.updateOrInsert` method (replaced by `Map.prototype.emplace`)\n// https://github.com/thumbsupep/proposal-upsert\n$({ target: 'Map', proto: true, real: true, name: 'upsert', forced: true }, {\n updateOrInsert: upsert\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aCallable = require('../internals/a-callable');\nvar aMap = require('../internals/a-map');\nvar MapHelpers = require('../internals/map-helpers');\n\nvar $TypeError = TypeError;\nvar get = MapHelpers.get;\nvar has = MapHelpers.has;\nvar set = MapHelpers.set;\n\n// `Map.prototype.update` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n update: function update(key, callback /* , thunk */) {\n var map = aMap(this);\n var length = arguments.length;\n aCallable(callback);\n var isPresentInMap = has(map, key);\n if (!isPresentInMap && length < 3) {\n throw $TypeError('Updating absent value');\n }\n var value = isPresentInMap ? get(map, key) : aCallable(length > 2 ? arguments[2] : undefined)(key, map);\n set(map, key, callback(value, key, map));\n return map;\n }\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar upsert = require('../internals/map-upsert');\n\n// `Map.prototype.upsert` method (replaced by `Map.prototype.emplace`)\n// https://github.com/thumbsupep/proposal-upsert\n$({ target: 'Map', proto: true, real: true, forced: true }, {\n upsert: upsert\n});\n","var $ = require('../internals/export');\n\nvar min = Math.min;\nvar max = Math.max;\n\n// `Math.clamp` method\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, forced: true }, {\n clamp: function clamp(x, lower, upper) {\n return min(upper, max(lower, x));\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.DEG_PER_RAD` constant\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {\n DEG_PER_RAD: Math.PI / 180\n});\n","var $ = require('../internals/export');\n\nvar RAD_PER_DEG = 180 / Math.PI;\n\n// `Math.degrees` method\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, forced: true }, {\n degrees: function degrees(radians) {\n return radians * RAD_PER_DEG;\n }\n});\n","var $ = require('../internals/export');\n\nvar scale = require('../internals/math-scale');\nvar fround = require('../internals/math-fround');\n\n// `Math.fscale` method\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, forced: true }, {\n fscale: function fscale(x, inLow, inHigh, outLow, outHigh) {\n return fround(scale(x, inLow, inHigh, outLow, outHigh));\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.iaddh` method\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\n// TODO: Remove from `core-js@4`\n$({ target: 'Math', stat: true, forced: true }, {\n iaddh: function iaddh(x0, x1, y0, y1) {\n var $x0 = x0 >>> 0;\n var $x1 = x1 >>> 0;\n var $y0 = y0 >>> 0;\n return $x1 + (y1 >>> 0) + (($x0 & $y0 | ($x0 | $y0) & ~($x0 + $y0 >>> 0)) >>> 31) | 0;\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.imulh` method\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\n// TODO: Remove from `core-js@4`\n$({ target: 'Math', stat: true, forced: true }, {\n imulh: function imulh(u, v) {\n var UINT16 = 0xFFFF;\n var $u = +u;\n var $v = +v;\n var u0 = $u & UINT16;\n var v0 = $v & UINT16;\n var u1 = $u >> 16;\n var v1 = $v >> 16;\n var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >> 16);\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.isubh` method\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\n// TODO: Remove from `core-js@4`\n$({ target: 'Math', stat: true, forced: true }, {\n isubh: function isubh(x0, x1, y0, y1) {\n var $x0 = x0 >>> 0;\n var $x1 = x1 >>> 0;\n var $y0 = y0 >>> 0;\n return $x1 - (y1 >>> 0) - ((~$x0 & $y0 | ~($x0 ^ $y0) & $x0 - $y0 >>> 0) >>> 31) | 0;\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.RAD_PER_DEG` constant\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, nonConfigurable: true, nonWritable: true }, {\n RAD_PER_DEG: 180 / Math.PI\n});\n","var $ = require('../internals/export');\n\nvar DEG_PER_RAD = Math.PI / 180;\n\n// `Math.radians` method\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, forced: true }, {\n radians: function radians(degrees) {\n return degrees * DEG_PER_RAD;\n }\n});\n","var $ = require('../internals/export');\nvar scale = require('../internals/math-scale');\n\n// `Math.scale` method\n// https://rwaldron.github.io/proposal-math-extensions/\n$({ target: 'Math', stat: true, forced: true }, {\n scale: scale\n});\n","var $ = require('../internals/export');\nvar anObject = require('../internals/an-object');\nvar numberIsFinite = require('../internals/number-is-finite');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar InternalStateModule = require('../internals/internal-state');\n\nvar SEEDED_RANDOM = 'Seeded Random';\nvar SEEDED_RANDOM_GENERATOR = SEEDED_RANDOM + ' Generator';\nvar SEED_TYPE_ERROR = 'Math.seededPRNG() argument should have a \"seed\" field with a finite value.';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(SEEDED_RANDOM_GENERATOR);\nvar $TypeError = TypeError;\n\nvar $SeededRandomGenerator = createIteratorConstructor(function SeededRandomGenerator(seed) {\n setInternalState(this, {\n type: SEEDED_RANDOM_GENERATOR,\n seed: seed % 2147483647\n });\n}, SEEDED_RANDOM, function next() {\n var state = getInternalState(this);\n var seed = state.seed = (state.seed * 1103515245 + 12345) % 2147483647;\n return createIterResultObject((seed & 1073741823) / 1073741823, false);\n});\n\n// `Math.seededPRNG` method\n// https://github.com/tc39/proposal-seeded-random\n// based on https://github.com/tc39/proposal-seeded-random/blob/78b8258835b57fc2100d076151ab506bc3202ae6/demo.html\n$({ target: 'Math', stat: true, forced: true }, {\n seededPRNG: function seededPRNG(it) {\n var seed = anObject(it).seed;\n if (!numberIsFinite(seed)) throw $TypeError(SEED_TYPE_ERROR);\n return new $SeededRandomGenerator(seed);\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.signbit` method\n// https://github.com/tc39/proposal-Math.signbit\n$({ target: 'Math', stat: true, forced: true }, {\n signbit: function signbit(x) {\n var n = +x;\n // eslint-disable-next-line no-self-compare -- NaN check\n return n == n && n == 0 ? 1 / n == -Infinity : n < 0;\n }\n});\n","var $ = require('../internals/export');\n\n// `Math.umulh` method\n// https://gist.github.com/BrendanEich/4294d5c212a6d2254703\n// TODO: Remove from `core-js@4`\n$({ target: 'Math', stat: true, forced: true }, {\n umulh: function umulh(u, v) {\n var UINT16 = 0xFFFF;\n var $u = +u;\n var $v = +v;\n var u0 = $u & UINT16;\n var v0 = $v & UINT16;\n var u1 = $u >>> 16;\n var v1 = $v >>> 16;\n var t = (u1 * v0 >>> 0) + (u0 * v0 >>> 16);\n return u1 * v1 + (t >>> 16) + ((u0 * v1 >>> 0) + (t & UINT16) >>> 16);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar parseInt = require('../internals/number-parse-int');\n\nvar INVALID_NUMBER_REPRESENTATION = 'Invalid number representation';\nvar INVALID_RADIX = 'Invalid radix';\nvar $RangeError = RangeError;\nvar $SyntaxError = SyntaxError;\nvar $TypeError = TypeError;\nvar valid = /^[\\da-z]+$/;\nvar charAt = uncurryThis(''.charAt);\nvar exec = uncurryThis(valid.exec);\nvar numberToString = uncurryThis(1.0.toString);\nvar stringSlice = uncurryThis(''.slice);\n\n// `Number.fromString` method\n// https://github.com/tc39/proposal-number-fromstring\n$({ target: 'Number', stat: true, forced: true }, {\n fromString: function fromString(string, radix) {\n var sign = 1;\n var R, mathNum;\n if (typeof string != 'string') throw $TypeError(INVALID_NUMBER_REPRESENTATION);\n if (!string.length) throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);\n if (charAt(string, 0) == '-') {\n sign = -1;\n string = stringSlice(string, 1);\n if (!string.length) throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);\n }\n R = radix === undefined ? 10 : toIntegerOrInfinity(radix);\n if (R < 2 || R > 36) throw $RangeError(INVALID_RADIX);\n if (!exec(valid, string) || numberToString(mathNum = parseInt(string, R), R) !== string) {\n throw $SyntaxError(INVALID_NUMBER_REPRESENTATION);\n }\n return sign * mathNum;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar NumericRangeIterator = require('../internals/numeric-range-iterator');\n\n// `Number.range` method\n// https://github.com/tc39/proposal-Number.range\n// TODO: Remove from `core-js@4`\n$({ target: 'Number', stat: true, forced: true }, {\n range: function range(start, end, option) {\n return new NumericRangeIterator(start, end, option, 'number', 0, 1);\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ObjectIterator = require('../internals/object-iterator');\n\n// `Object.iterateEntries` method\n// https://github.com/tc39/proposal-object-iteration\n$({ target: 'Object', stat: true, forced: true }, {\n iterateEntries: function iterateEntries(object) {\n return new ObjectIterator(object, 'entries');\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ObjectIterator = require('../internals/object-iterator');\n\n// `Object.iterateKeys` method\n// https://github.com/tc39/proposal-object-iteration\n$({ target: 'Object', stat: true, forced: true }, {\n iterateKeys: function iterateKeys(object) {\n return new ObjectIterator(object, 'keys');\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ObjectIterator = require('../internals/object-iterator');\n\n// `Object.iterateValues` method\n// https://github.com/tc39/proposal-object-iteration\n$({ target: 'Object', stat: true, forced: true }, {\n iterateValues: function iterateValues(object) {\n return new ObjectIterator(object, 'values');\n }\n});\n","'use strict';\n// https://github.com/tc39/proposal-observable\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar setSpecies = require('../internals/set-species');\nvar aCallable = require('../internals/a-callable');\nvar anObject = require('../internals/an-object');\nvar anInstance = require('../internals/an-instance');\nvar isCallable = require('../internals/is-callable');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar getMethod = require('../internals/get-method');\nvar defineBuiltIn = require('../internals/define-built-in');\nvar defineBuiltIns = require('../internals/define-built-ins');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar hostReportErrors = require('../internals/host-report-errors');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar InternalStateModule = require('../internals/internal-state');\nvar OBSERVABLE_FORCED = require('../internals/observable-forced');\n\nvar $$OBSERVABLE = wellKnownSymbol('observable');\nvar OBSERVABLE = 'Observable';\nvar SUBSCRIPTION = 'Subscription';\nvar SUBSCRIPTION_OBSERVER = 'SubscriptionObserver';\nvar getterFor = InternalStateModule.getterFor;\nvar setInternalState = InternalStateModule.set;\nvar getObservableInternalState = getterFor(OBSERVABLE);\nvar getSubscriptionInternalState = getterFor(SUBSCRIPTION);\nvar getSubscriptionObserverInternalState = getterFor(SUBSCRIPTION_OBSERVER);\n\nvar SubscriptionState = function (observer) {\n this.observer = anObject(observer);\n this.cleanup = undefined;\n this.subscriptionObserver = undefined;\n};\n\nSubscriptionState.prototype = {\n type: SUBSCRIPTION,\n clean: function () {\n var cleanup = this.cleanup;\n if (cleanup) {\n this.cleanup = undefined;\n try {\n cleanup();\n } catch (error) {\n hostReportErrors(error);\n }\n }\n },\n close: function () {\n if (!DESCRIPTORS) {\n var subscription = this.facade;\n var subscriptionObserver = this.subscriptionObserver;\n subscription.closed = true;\n if (subscriptionObserver) subscriptionObserver.closed = true;\n } this.observer = undefined;\n },\n isClosed: function () {\n return this.observer === undefined;\n }\n};\n\nvar Subscription = function (observer, subscriber) {\n var subscriptionState = setInternalState(this, new SubscriptionState(observer));\n var start;\n if (!DESCRIPTORS) this.closed = false;\n try {\n if (start = getMethod(observer, 'start')) call(start, observer, this);\n } catch (error) {\n hostReportErrors(error);\n }\n if (subscriptionState.isClosed()) return;\n var subscriptionObserver = subscriptionState.subscriptionObserver = new SubscriptionObserver(subscriptionState);\n try {\n var cleanup = subscriber(subscriptionObserver);\n var subscription = cleanup;\n if (!isNullOrUndefined(cleanup)) subscriptionState.cleanup = isCallable(cleanup.unsubscribe)\n ? function () { subscription.unsubscribe(); }\n : aCallable(cleanup);\n } catch (error) {\n subscriptionObserver.error(error);\n return;\n } if (subscriptionState.isClosed()) subscriptionState.clean();\n};\n\nSubscription.prototype = defineBuiltIns({}, {\n unsubscribe: function unsubscribe() {\n var subscriptionState = getSubscriptionInternalState(this);\n if (!subscriptionState.isClosed()) {\n subscriptionState.close();\n subscriptionState.clean();\n }\n }\n});\n\nif (DESCRIPTORS) defineBuiltInAccessor(Subscription.prototype, 'closed', {\n configurable: true,\n get: function closed() {\n return getSubscriptionInternalState(this).isClosed();\n }\n});\n\nvar SubscriptionObserver = function (subscriptionState) {\n setInternalState(this, {\n type: SUBSCRIPTION_OBSERVER,\n subscriptionState: subscriptionState\n });\n if (!DESCRIPTORS) this.closed = false;\n};\n\nSubscriptionObserver.prototype = defineBuiltIns({}, {\n next: function next(value) {\n var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;\n if (!subscriptionState.isClosed()) {\n var observer = subscriptionState.observer;\n try {\n var nextMethod = getMethod(observer, 'next');\n if (nextMethod) call(nextMethod, observer, value);\n } catch (error) {\n hostReportErrors(error);\n }\n }\n },\n error: function error(value) {\n var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;\n if (!subscriptionState.isClosed()) {\n var observer = subscriptionState.observer;\n subscriptionState.close();\n try {\n var errorMethod = getMethod(observer, 'error');\n if (errorMethod) call(errorMethod, observer, value);\n else hostReportErrors(value);\n } catch (err) {\n hostReportErrors(err);\n } subscriptionState.clean();\n }\n },\n complete: function complete() {\n var subscriptionState = getSubscriptionObserverInternalState(this).subscriptionState;\n if (!subscriptionState.isClosed()) {\n var observer = subscriptionState.observer;\n subscriptionState.close();\n try {\n var completeMethod = getMethod(observer, 'complete');\n if (completeMethod) call(completeMethod, observer);\n } catch (error) {\n hostReportErrors(error);\n } subscriptionState.clean();\n }\n }\n});\n\nif (DESCRIPTORS) defineBuiltInAccessor(SubscriptionObserver.prototype, 'closed', {\n configurable: true,\n get: function closed() {\n return getSubscriptionObserverInternalState(this).subscriptionState.isClosed();\n }\n});\n\nvar $Observable = function Observable(subscriber) {\n anInstance(this, ObservablePrototype);\n setInternalState(this, {\n type: OBSERVABLE,\n subscriber: aCallable(subscriber)\n });\n};\n\nvar ObservablePrototype = $Observable.prototype;\n\ndefineBuiltIns(ObservablePrototype, {\n subscribe: function subscribe(observer) {\n var length = arguments.length;\n return new Subscription(isCallable(observer) ? {\n next: observer,\n error: length > 1 ? arguments[1] : undefined,\n complete: length > 2 ? arguments[2] : undefined\n } : isObject(observer) ? observer : {}, getObservableInternalState(this).subscriber);\n }\n});\n\ndefineBuiltIn(ObservablePrototype, $$OBSERVABLE, function () { return this; });\n\n$({ global: true, constructor: true, forced: OBSERVABLE_FORCED }, {\n Observable: $Observable\n});\n\nsetSpecies(OBSERVABLE);\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar call = require('../internals/function-call');\nvar anObject = require('../internals/an-object');\nvar isConstructor = require('../internals/is-constructor');\nvar getIterator = require('../internals/get-iterator');\nvar getMethod = require('../internals/get-method');\nvar iterate = require('../internals/iterate');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\nvar OBSERVABLE_FORCED = require('../internals/observable-forced');\n\nvar $$OBSERVABLE = wellKnownSymbol('observable');\n\n// `Observable.from` method\n// https://github.com/tc39/proposal-observable\n$({ target: 'Observable', stat: true, forced: OBSERVABLE_FORCED }, {\n from: function from(x) {\n var C = isConstructor(this) ? this : getBuiltIn('Observable');\n var observableMethod = getMethod(anObject(x), $$OBSERVABLE);\n if (observableMethod) {\n var observable = anObject(call(observableMethod, x));\n return observable.constructor === C ? observable : new C(function (observer) {\n return observable.subscribe(observer);\n });\n }\n var iterator = getIterator(x);\n return new C(function (observer) {\n iterate(iterator, function (it, stop) {\n observer.next(it);\n if (observer.closed) return stop();\n }, { IS_ITERATOR: true, INTERRUPTED: true });\n observer.complete();\n });\n }\n});\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/esnext.observable.constructor');\nrequire('../modules/esnext.observable.from');\nrequire('../modules/esnext.observable.of');\n","'use strict';\nvar $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isConstructor = require('../internals/is-constructor');\nvar OBSERVABLE_FORCED = require('../internals/observable-forced');\n\nvar Array = getBuiltIn('Array');\n\n// `Observable.of` method\n// https://github.com/tc39/proposal-observable\n$({ target: 'Observable', stat: true, forced: OBSERVABLE_FORCED }, {\n of: function of() {\n var C = isConstructor(this) ? this : getBuiltIn('Observable');\n var length = arguments.length;\n var items = Array(length);\n var index = 0;\n while (index < length) items[index] = arguments[index++];\n return new C(function (observer) {\n for (var i = 0; i < length; i++) {\n observer.next(items[i]);\n if (observer.closed) return;\n } observer.complete();\n });\n }\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar newPromiseCapabilityModule = require('../internals/new-promise-capability');\nvar perform = require('../internals/perform');\n\n// `Promise.try` method\n// https://github.com/tc39/proposal-promise-try\n$({ target: 'Promise', stat: true, forced: true }, {\n 'try': function (callbackfn) {\n var promiseCapability = newPromiseCapabilityModule.f(this);\n var result = perform(callbackfn);\n (result.error ? promiseCapability.reject : promiseCapability.resolve)(result.value);\n return promiseCapability.promise;\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar toMetadataKey = ReflectMetadataModule.toKey;\nvar ordinaryDefineOwnMetadata = ReflectMetadataModule.set;\n\n// `Reflect.defineMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n defineMetadata: function defineMetadata(metadataKey, metadataValue, target /* , targetKey */) {\n var targetKey = arguments.length < 4 ? undefined : toMetadataKey(arguments[3]);\n ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), targetKey);\n }\n});\n","var $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar toMetadataKey = ReflectMetadataModule.toKey;\nvar getOrCreateMetadataMap = ReflectMetadataModule.getMap;\nvar store = ReflectMetadataModule.store;\n\n// `Reflect.deleteMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n deleteMetadata: function deleteMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);\n var metadataMap = getOrCreateMetadataMap(anObject(target), targetKey, false);\n if (metadataMap === undefined || !metadataMap['delete'](metadataKey)) return false;\n if (metadataMap.size) return true;\n var targetMetadata = store.get(target);\n targetMetadata['delete'](targetKey);\n return !!targetMetadata.size || store['delete'](target);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar $arrayUniqueBy = require('../internals/array-unique-by');\n\nvar arrayUniqueBy = uncurryThis($arrayUniqueBy);\nvar concat = uncurryThis([].concat);\nvar ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\nvar ordinaryMetadataKeys = function (O, P) {\n var oKeys = ordinaryOwnMetadataKeys(O, P);\n var parent = getPrototypeOf(O);\n if (parent === null) return oKeys;\n var pKeys = ordinaryMetadataKeys(parent, P);\n return pKeys.length ? oKeys.length ? arrayUniqueBy(concat(oKeys, pKeys)) : pKeys : oKeys;\n};\n\n// `Reflect.getMetadataKeys` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n getMetadataKeys: function getMetadataKeys(target /* , targetKey */) {\n var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);\n return ordinaryMetadataKeys(anObject(target), targetKey);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\n\nvar ordinaryHasOwnMetadata = ReflectMetadataModule.has;\nvar ordinaryGetOwnMetadata = ReflectMetadataModule.get;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\nvar ordinaryGetMetadata = function (MetadataKey, O, P) {\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn) return ordinaryGetOwnMetadata(MetadataKey, O, P);\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryGetMetadata(MetadataKey, parent, P) : undefined;\n};\n\n// `Reflect.getMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n getMetadata: function getMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);\n return ordinaryGetMetadata(metadataKey, anObject(target), targetKey);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar ordinaryOwnMetadataKeys = ReflectMetadataModule.keys;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\n// `Reflect.getOwnMetadataKeys` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n getOwnMetadataKeys: function getOwnMetadataKeys(target /* , targetKey */) {\n var targetKey = arguments.length < 2 ? undefined : toMetadataKey(arguments[1]);\n return ordinaryOwnMetadataKeys(anObject(target), targetKey);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar ordinaryGetOwnMetadata = ReflectMetadataModule.get;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\n// `Reflect.getOwnMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n getOwnMetadata: function getOwnMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);\n return ordinaryGetOwnMetadata(metadataKey, anObject(target), targetKey);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\n\nvar ordinaryHasOwnMetadata = ReflectMetadataModule.has;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\nvar ordinaryHasMetadata = function (MetadataKey, O, P) {\n var hasOwn = ordinaryHasOwnMetadata(MetadataKey, O, P);\n if (hasOwn) return true;\n var parent = getPrototypeOf(O);\n return parent !== null ? ordinaryHasMetadata(MetadataKey, parent, P) : false;\n};\n\n// `Reflect.hasMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n hasMetadata: function hasMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);\n return ordinaryHasMetadata(metadataKey, anObject(target), targetKey);\n }\n});\n","// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar ordinaryHasOwnMetadata = ReflectMetadataModule.has;\nvar toMetadataKey = ReflectMetadataModule.toKey;\n\n// `Reflect.hasOwnMetadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n hasOwnMetadata: function hasOwnMetadata(metadataKey, target /* , targetKey */) {\n var targetKey = arguments.length < 3 ? undefined : toMetadataKey(arguments[2]);\n return ordinaryHasOwnMetadata(metadataKey, anObject(target), targetKey);\n }\n});\n","var $ = require('../internals/export');\nvar ReflectMetadataModule = require('../internals/reflect-metadata');\nvar anObject = require('../internals/an-object');\n\nvar toMetadataKey = ReflectMetadataModule.toKey;\nvar ordinaryDefineOwnMetadata = ReflectMetadataModule.set;\n\n// `Reflect.metadata` method\n// https://github.com/rbuckton/reflect-metadata\n$({ target: 'Reflect', stat: true }, {\n metadata: function metadata(metadataKey, metadataValue) {\n return function decorator(target, key) {\n ordinaryDefineOwnMetadata(metadataKey, metadataValue, anObject(target), toMetadataKey(key));\n };\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aSet = require('../internals/a-set');\nvar add = require('../internals/set-helpers').add;\n\n// `Set.prototype.addAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n addAll: function addAll(/* ...elements */) {\n var set = aSet(this);\n for (var k = 0, len = arguments.length; k < len; k++) {\n add(set, arguments[k]);\n } return set;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aSet = require('../internals/a-set');\nvar remove = require('../internals/set-helpers').remove;\n\n// `Set.prototype.deleteAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n deleteAll: function deleteAll(/* ...elements */) {\n var collection = aSet(this);\n var allDeleted = true;\n var wasDeleted;\n for (var k = 0, len = arguments.length; k < len; k++) {\n wasDeleted = remove(collection, arguments[k]);\n allDeleted = allDeleted && wasDeleted;\n } return !!allDeleted;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $difference = require('../internals/set-difference');\n\n// `Set.prototype.difference` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n difference: function difference(other) {\n return call($difference, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar difference = require('../internals/set-difference');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.difference` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('difference') }, {\n difference: difference\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aSet = require('../internals/a-set');\nvar iterate = require('../internals/set-iterate');\n\n// `Set.prototype.every` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n every: function every(callbackfn /* , thisArg */) {\n var set = aSet(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return iterate(set, function (value) {\n if (!boundFunction(value, value, set)) return false;\n }, true) !== false;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aSet = require('../internals/a-set');\nvar SetHelpers = require('../internals/set-helpers');\nvar iterate = require('../internals/set-iterate');\n\nvar Set = SetHelpers.Set;\nvar add = SetHelpers.add;\n\n// `Set.prototype.filter` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n filter: function filter(callbackfn /* , thisArg */) {\n var set = aSet(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var newSet = new Set();\n iterate(set, function (value) {\n if (boundFunction(value, value, set)) add(newSet, value);\n });\n return newSet;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aSet = require('../internals/a-set');\nvar iterate = require('../internals/set-iterate');\n\n// `Set.prototype.find` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n find: function find(callbackfn /* , thisArg */) {\n var set = aSet(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var result = iterate(set, function (value) {\n if (boundFunction(value, value, set)) return { value: value };\n }, true);\n return result && result.value;\n }\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/collection-from');\n\n// `Set.from` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-set.from\n$({ target: 'Set', stat: true, forced: true }, {\n from: from\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $intersection = require('../internals/set-intersection');\n\n// `Set.prototype.intersection` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n intersection: function intersection(other) {\n return call($intersection, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar intersection = require('../internals/set-intersection');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.intersection` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('intersection') }, {\n intersection: intersection\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $isDisjointFrom = require('../internals/set-is-disjoint-from');\n\n// `Set.prototype.isDisjointFrom` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n isDisjointFrom: function isDisjointFrom(other) {\n return call($isDisjointFrom, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar isDisjointFrom = require('../internals/set-is-disjoint-from');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.isDisjointFrom` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isDisjointFrom') }, {\n isDisjointFrom: isDisjointFrom\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $isSubsetOf = require('../internals/set-is-subset-of');\n\n// `Set.prototype.isSubsetOf` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n isSubsetOf: function isSubsetOf(other) {\n return call($isSubsetOf, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar isSubsetOf = require('../internals/set-is-subset-of');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.isSubsetOf` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSubsetOf') }, {\n isSubsetOf: isSubsetOf\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $isSupersetOf = require('../internals/set-is-superset-of');\n\n// `Set.prototype.isSupersetOf` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n isSupersetOf: function isSupersetOf(other) {\n return call($isSupersetOf, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar isSupersetOf = require('../internals/set-is-superset-of');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.isSupersetOf` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('isSupersetOf') }, {\n isSupersetOf: isSupersetOf\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar aSet = require('../internals/a-set');\nvar iterate = require('../internals/set-iterate');\nvar toString = require('../internals/to-string');\n\nvar arrayJoin = uncurryThis([].join);\nvar push = uncurryThis([].push);\n\n// `Set.prototype.join` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n join: function join(separator) {\n var set = aSet(this);\n var sep = separator === undefined ? ',' : toString(separator);\n var array = [];\n iterate(set, function (value) {\n push(array, value);\n });\n return arrayJoin(array, sep);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aSet = require('../internals/a-set');\nvar SetHelpers = require('../internals/set-helpers');\nvar iterate = require('../internals/set-iterate');\n\nvar Set = SetHelpers.Set;\nvar add = SetHelpers.add;\n\n// `Set.prototype.map` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n map: function map(callbackfn /* , thisArg */) {\n var set = aSet(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n var newSet = new Set();\n iterate(set, function (value) {\n add(newSet, boundFunction(value, value, set));\n });\n return newSet;\n }\n});\n","var $ = require('../internals/export');\nvar of = require('../internals/collection-of');\n\n// `Set.of` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-set.of\n$({ target: 'Set', stat: true, forced: true }, {\n of: of\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aCallable = require('../internals/a-callable');\nvar aSet = require('../internals/a-set');\nvar iterate = require('../internals/set-iterate');\n\nvar $TypeError = TypeError;\n\n// `Set.prototype.reduce` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n reduce: function reduce(callbackfn /* , initialValue */) {\n var set = aSet(this);\n var noInitial = arguments.length < 2;\n var accumulator = noInitial ? undefined : arguments[1];\n aCallable(callbackfn);\n iterate(set, function (value) {\n if (noInitial) {\n noInitial = false;\n accumulator = value;\n } else {\n accumulator = callbackfn(accumulator, value, value, set);\n }\n });\n if (noInitial) throw $TypeError('Reduce of empty set with no initial value');\n return accumulator;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar bind = require('../internals/function-bind-context');\nvar aSet = require('../internals/a-set');\nvar iterate = require('../internals/set-iterate');\n\n// `Set.prototype.some` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n some: function some(callbackfn /* , thisArg */) {\n var set = aSet(this);\n var boundFunction = bind(callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return iterate(set, function (value) {\n if (boundFunction(value, value, set)) return true;\n }, true) === true;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $symmetricDifference = require('../internals/set-symmetric-difference');\n\n// `Set.prototype.symmetricDifference` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n symmetricDifference: function symmetricDifference(other) {\n return call($symmetricDifference, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar symmetricDifference = require('../internals/set-symmetric-difference');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.symmetricDifference` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('symmetricDifference') }, {\n symmetricDifference: symmetricDifference\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar toSetLike = require('../internals/to-set-like');\nvar $union = require('../internals/set-union');\n\n// `Set.prototype.union` method\n// https://github.com/tc39/proposal-set-methods\n// TODO: Obsolete version, remove from `core-js@4`\n$({ target: 'Set', proto: true, real: true, forced: true }, {\n union: function union(other) {\n return call($union, this, toSetLike(other));\n }\n});\n","var $ = require('../internals/export');\nvar union = require('../internals/set-union');\nvar setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');\n\n// `Set.prototype.union` method\n// https://github.com/tc39/proposal-set-methods\n$({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {\n union: union\n});\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar $ = require('../internals/export');\nvar charAt = require('../internals/string-multibyte').charAt;\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar toString = require('../internals/to-string');\n\n// `String.prototype.at` method\n// https://github.com/mathiasbynens/String.prototype.at\n$({ target: 'String', proto: true, forced: true }, {\n at: function at(index) {\n var S = toString(requireObjectCoercible(this));\n var len = S.length;\n var relativeIndex = toIntegerOrInfinity(index);\n var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;\n return (k < 0 || k >= len) ? undefined : charAt(S, k);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar createIteratorConstructor = require('../internals/iterator-create-constructor');\nvar createIterResultObject = require('../internals/create-iter-result-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar StringMultibyteModule = require('../internals/string-multibyte');\n\nvar codeAt = StringMultibyteModule.codeAt;\nvar charAt = StringMultibyteModule.charAt;\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// TODO: unify with String#@@iterator\nvar $StringIterator = createIteratorConstructor(function StringIterator(string) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: string,\n index: 0\n });\n}, 'String', function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return createIterResultObject(undefined, true);\n point = charAt(string, index);\n state.index += point.length;\n return createIterResultObject({ codePoint: codeAt(point, 0), position: index }, false);\n});\n\n// `String.prototype.codePoints` method\n// https://github.com/tc39/proposal-string-prototype-codepoints\n$({ target: 'String', proto: true, forced: true }, {\n codePoints: function codePoints() {\n return new $StringIterator(toString(requireObjectCoercible(this)));\n }\n});\n","var $ = require('../internals/export');\nvar cooked = require('../internals/string-cooked');\n\n// `String.cooked` method\n// https://github.com/tc39/proposal-string-cooked\n$({ target: 'String', stat: true, forced: true }, {\n cooked: cooked\n});\n","'use strict';\nvar FREEZING = require('../internals/freezing');\nvar $ = require('../internals/export');\nvar shared = require('../internals/shared');\nvar getBuiltIn = require('../internals/get-built-in');\nvar makeBuiltIn = require('../internals/make-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar apply = require('../internals/function-apply');\nvar anObject = require('../internals/an-object');\nvar toObject = require('../internals/to-object');\nvar isCallable = require('../internals/is-callable');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar defineProperty = require('../internals/object-define-property').f;\nvar createArrayFromList = require('../internals/array-slice-simple');\nvar cooked = require('../internals/string-cooked');\nvar parse = require('../internals/string-parse');\nvar whitespaces = require('../internals/whitespaces');\n\nvar WeakMap = getBuiltIn('WeakMap');\nvar globalDedentRegistry = shared('GlobalDedentRegistry', new WeakMap());\n\n/* eslint-disable no-self-assign -- prototype methods protection */\nglobalDedentRegistry.has = globalDedentRegistry.has;\nglobalDedentRegistry.get = globalDedentRegistry.get;\nglobalDedentRegistry.set = globalDedentRegistry.set;\n/* eslint-enable no-self-assign -- prototype methods protection */\n\nvar $Array = Array;\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-freeze -- safe\nvar freeze = Object.freeze || Object;\n// eslint-disable-next-line es/no-object-isfrozen -- safe\nvar isFrozen = Object.isFrozen;\nvar min = Math.min;\nvar charAt = uncurryThis(''.charAt);\nvar stringSlice = uncurryThis(''.slice);\nvar split = uncurryThis(''.split);\nvar exec = uncurryThis(/./.exec);\n\nvar NEW_LINE = /([\\n\\u2028\\u2029]|\\r\\n?)/g;\nvar LEADING_WHITESPACE = RegExp('^[' + whitespaces + ']*');\nvar NON_WHITESPACE = RegExp('[^' + whitespaces + ']');\nvar INVALID_TAG = 'Invalid tag';\nvar INVALID_OPENING_LINE = 'Invalid opening line';\nvar INVALID_CLOSING_LINE = 'Invalid closing line';\n\nvar dedentTemplateStringsArray = function (template) {\n var rawInput = template.raw;\n // https://github.com/tc39/proposal-string-dedent/issues/75\n if (FREEZING && !isFrozen(rawInput)) throw $TypeError('Raw template should be frozen');\n if (globalDedentRegistry.has(rawInput)) return globalDedentRegistry.get(rawInput);\n var raw = dedentStringsArray(rawInput);\n var cookedArr = cookStrings(raw);\n defineProperty(cookedArr, 'raw', {\n value: freeze(raw)\n });\n freeze(cookedArr);\n globalDedentRegistry.set(rawInput, cookedArr);\n return cookedArr;\n};\n\nvar dedentStringsArray = function (template) {\n var t = toObject(template);\n var length = lengthOfArrayLike(t);\n var blocks = $Array(length);\n var dedented = $Array(length);\n var i = 0;\n var lines, common;\n\n if (!length) throw $TypeError(INVALID_TAG);\n\n for (; i < length; i++) {\n var element = t[i];\n if (typeof element == 'string') blocks[i] = split(element, NEW_LINE);\n else throw $TypeError(INVALID_TAG);\n }\n\n for (i = 0; i < length; i++) {\n var lastSplit = i + 1 === length;\n lines = blocks[i];\n if (i === 0) {\n if (lines.length === 1 || lines[0].length > 0) {\n throw $TypeError(INVALID_OPENING_LINE);\n }\n lines[1] = '';\n }\n if (lastSplit) {\n if (lines.length === 1 || exec(NON_WHITESPACE, lines[lines.length - 1])) {\n throw $TypeError(INVALID_CLOSING_LINE);\n }\n lines[lines.length - 2] = '';\n lines[lines.length - 1] = '';\n }\n for (var j = 2; j < lines.length; j += 2) {\n var text = lines[j];\n var lineContainsTemplateExpression = j + 1 === lines.length && !lastSplit;\n var leading = exec(LEADING_WHITESPACE, text)[0];\n if (!lineContainsTemplateExpression && leading.length === text.length) {\n lines[j] = '';\n continue;\n }\n common = commonLeadingIndentation(leading, common);\n }\n }\n\n var count = common ? common.length : 0;\n\n for (i = 0; i < length; i++) {\n lines = blocks[i];\n for (var quasi = lines[0], k = 1; k < lines.length; k += 2) {\n quasi += lines[k] + stringSlice(lines[k + 1], count);\n }\n dedented[i] = quasi;\n }\n\n return dedented;\n};\n\nvar commonLeadingIndentation = function (a, b) {\n if (b === undefined || a === b) return a;\n var i = 0;\n for (var len = min(a.length, b.length); i < len; i++) {\n if (charAt(a, i) !== charAt(b, i)) break;\n }\n return stringSlice(a, 0, i);\n};\n\nvar cookStrings = function (raw) {\n for (var i = 0, length = raw.length, result = $Array(length); i < length; i++) {\n result[i] = parse(raw[i]);\n } return result;\n};\n\nvar makeDedentTag = function (tag) {\n return makeBuiltIn(function (template /* , ...substitutions */) {\n var args = createArrayFromList(arguments);\n args[0] = dedentTemplateStringsArray(anObject(template));\n return apply(tag, this, args);\n }, '');\n};\n\nvar cookedDedentTag = makeDedentTag(cooked);\n\n// `String.dedent` method\n// https://github.com/tc39/proposal-string-dedent\n$({ target: 'String', stat: true, forced: true }, {\n dedent: function dedent(templateOrFn /* , ...substitutions */) {\n anObject(templateOrFn);\n if (isCallable(templateOrFn)) return makeDedentTag(templateOrFn);\n return apply(cookedDedentTag, this, arguments);\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\n\nvar charCodeAt = uncurryThis(''.charCodeAt);\n\n// `String.prototype.isWellFormed` method\n// https://github.com/tc39/proposal-is-usv-string\n$({ target: 'String', proto: true }, {\n isWellFormed: function isWellFormed() {\n var S = toString(requireObjectCoercible(this));\n var length = S.length;\n for (var i = 0; i < length; i++) {\n var charCode = charCodeAt(S, i);\n // single UTF-16 code unit\n if ((charCode & 0xF800) != 0xD800) continue;\n // unpaired surrogate\n if (charCode >= 0xDC00 || ++i >= length || (charCodeAt(S, i) & 0xFC00) != 0xDC00) return false;\n } return true;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar call = require('../internals/function-call');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\nvar toString = require('../internals/to-string');\nvar fails = require('../internals/fails');\n\nvar $Array = Array;\nvar charAt = uncurryThis(''.charAt);\nvar charCodeAt = uncurryThis(''.charCodeAt);\nvar join = uncurryThis([].join);\nvar $toWellFormed = ''.toWellFormed;\nvar REPLACEMENT_CHARACTER = '\\uFFFD';\n\n// Safari bug\nvar TO_STRING_CONVERSION_BUG = $toWellFormed && fails(function () {\n return call($toWellFormed, 1) !== '1';\n});\n\n// `String.prototype.toWellFormed` method\n// https://github.com/tc39/proposal-is-usv-string\n$({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, {\n toWellFormed: function toWellFormed() {\n var S = toString(requireObjectCoercible(this));\n if (TO_STRING_CONVERSION_BUG) return call($toWellFormed, S);\n var length = S.length;\n var result = $Array(length);\n for (var i = 0; i < length; i++) {\n var charCode = charCodeAt(S, i);\n // single UTF-16 code unit\n if ((charCode & 0xF800) != 0xD800) result[i] = charAt(S, i);\n // unpaired surrogate\n else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt(S, i + 1) & 0xFC00) != 0xDC00) result[i] = REPLACEMENT_CHARACTER;\n // surrogate pair\n else {\n result[i] = charAt(S, i);\n result[++i] = charAt(S, i);\n }\n } return join(result, '');\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar getPrototypeOf = require('../internals/object-get-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar create = require('../internals/object-create');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar installErrorStack = require('../internals/error-stack-install');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar $Error = Error;\n\nvar $SuppressedError = function SuppressedError(error, suppressed, message) {\n var isInstance = isPrototypeOf(SuppressedErrorPrototype, this);\n var that;\n if (setPrototypeOf) {\n that = setPrototypeOf($Error(), isInstance ? getPrototypeOf(this) : SuppressedErrorPrototype);\n } else {\n that = isInstance ? this : create(SuppressedErrorPrototype);\n createNonEnumerableProperty(that, TO_STRING_TAG, 'Error');\n }\n if (message !== undefined) createNonEnumerableProperty(that, 'message', normalizeStringArgument(message));\n installErrorStack(that, $SuppressedError, that.stack, 1);\n createNonEnumerableProperty(that, 'error', error);\n createNonEnumerableProperty(that, 'suppressed', suppressed);\n return that;\n};\n\nif (setPrototypeOf) setPrototypeOf($SuppressedError, $Error);\nelse copyConstructorProperties($SuppressedError, $Error, { name: true });\n\nvar SuppressedErrorPrototype = $SuppressedError.prototype = create($Error.prototype, {\n constructor: createPropertyDescriptor(1, $SuppressedError),\n message: createPropertyDescriptor(1, ''),\n name: createPropertyDescriptor(1, 'SuppressedError')\n});\n\n// `SuppressedError` constructor\n// https://github.com/tc39/proposal-explicit-resource-management\n$({ global: true, constructor: true, arity: 3 }, {\n SuppressedError: $SuppressedError\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.asyncDispose` well-known symbol\n// https://github.com/tc39/proposal-async-explicit-resource-management\ndefineWellKnownSymbol('asyncDispose');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.dispose` well-known symbol\n// https://github.com/tc39/proposal-explicit-resource-management\ndefineWellKnownSymbol('dispose');\n","var $ = require('../internals/export');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\n\nvar Symbol = getBuiltIn('Symbol');\nvar keyFor = Symbol.keyFor;\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\n\n// `Symbol.isRegistered` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregistered\n$({ target: 'Symbol', stat: true }, {\n isRegistered: function isRegistered(value) {\n try {\n return keyFor(thisSymbolValue(value)) !== undefined;\n } catch (error) {\n return false;\n }\n }\n});\n","var $ = require('../internals/export');\nvar shared = require('../internals/shared');\nvar getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isSymbol = require('../internals/is-symbol');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar Symbol = getBuiltIn('Symbol');\nvar $isWellKnown = Symbol.isWellKnown;\nvar getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames');\nvar thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);\nvar WellKnownSymbolsStore = shared('wks');\n\nfor (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {\n // some old engines throws on access to some keys like `arguments` or `caller`\n try {\n var symbolKey = symbolKeys[i];\n if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey);\n } catch (error) { /* empty */ }\n}\n\n// `Symbol.isWellKnown` method\n// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknown\n// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected\n$({ target: 'Symbol', stat: true, forced: true }, {\n isWellKnown: function isWellKnown(value) {\n if ($isWellKnown && $isWellKnown(value)) return true;\n try {\n var symbol = thisSymbolValue(value);\n for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {\n if (WellKnownSymbolsStore[keys[j]] == symbol) return true;\n }\n } catch (error) { /* empty */ }\n return false;\n }\n});\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.matcher` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('matcher');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadataKey` well-known symbol\n// https://github.com/tc39/proposal-decorator-metadata\ndefineWellKnownSymbol('metadataKey');\n","// TODO: Remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.metadata` well-known symbol\n// https://github.com/tc39/proposal-decorators\ndefineWellKnownSymbol('metadata');\n","var defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.observable` well-known symbol\n// https://github.com/tc39/proposal-observable\ndefineWellKnownSymbol('observable');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\n// `Symbol.patternMatch` well-known symbol\n// https://github.com/tc39/proposal-pattern-matching\ndefineWellKnownSymbol('patternMatch');\n","// TODO: remove from `core-js@4`\nvar defineWellKnownSymbol = require('../internals/well-known-symbol-define');\n\ndefineWellKnownSymbol('replaceAll');\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $filterReject = require('../internals/array-iteration').filterReject;\nvar fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.filterOut` method\n// https://github.com/tc39/proposal-array-filtering\nexportTypedArrayMethod('filterOut', function filterOut(callbackfn /* , thisArg */) {\n var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return fromSpeciesAndList(this, list);\n}, true);\n","'use strict';\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $filterReject = require('../internals/array-iteration').filterReject;\nvar fromSpeciesAndList = require('../internals/typed-array-from-species-and-list');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.filterReject` method\n// https://github.com/tc39/proposal-array-filtering\nexportTypedArrayMethod('filterReject', function filterReject(callbackfn /* , thisArg */) {\n var list = $filterReject(aTypedArray(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);\n return fromSpeciesAndList(this, list);\n}, true);\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar getBuiltIn = require('../internals/get-built-in');\nvar aConstructor = require('../internals/a-constructor');\nvar arrayFromAsync = require('../internals/array-from-async');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\n\nvar aTypedArrayConstructor = ArrayBufferViewCore.aTypedArrayConstructor;\nvar exportTypedArrayStaticMethod = ArrayBufferViewCore.exportTypedArrayStaticMethod;\n\n// `%TypedArray%.fromAsync` method\n// https://github.com/tc39/proposal-array-from-async\nexportTypedArrayStaticMethod('fromAsync', function fromAsync(asyncItems /* , mapfn = undefined, thisArg = undefined */) {\n var C = this;\n var argumentsLength = arguments.length;\n var mapfn = argumentsLength > 1 ? arguments[1] : undefined;\n var thisArg = argumentsLength > 2 ? arguments[2] : undefined;\n return new (getBuiltIn('Promise'))(function (resolve) {\n aConstructor(C);\n resolve(arrayFromAsync(asyncItems, mapfn, thisArg));\n }).then(function (list) {\n return arrayFromConstructorAndList(aTypedArrayConstructor(C), list);\n });\n}, true);\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar $group = require('../internals/array-group');\nvar typedArraySpeciesConstructor = require('../internals/typed-array-species-constructor');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\n\n// `%TypedArray%.prototype.groupBy` method\n// https://github.com/tc39/proposal-array-grouping\nexportTypedArrayMethod('groupBy', function groupBy(callbackfn /* , thisArg */) {\n var thisArg = arguments.length > 1 ? arguments[1] : undefined;\n return $group(aTypedArray(this), callbackfn, thisArg, typedArraySpeciesConstructor);\n}, true);\n","'use strict';\n// TODO: Remove from `core-js@4`\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar isBigIntArray = require('../internals/is-big-int-array');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar toBigInt = require('../internals/to-big-int');\nvar toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\nvar fails = require('../internals/fails');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar max = Math.max;\nvar min = Math.min;\n\n// some early implementations, like WebKit, does not follow the final semantic\nvar PROPER_ORDER = !fails(function () {\n // eslint-disable-next-line es/no-typed-arrays -- required for testing\n var array = new Int8Array([1]);\n\n var spliced = array.toSpliced(1, 0, {\n valueOf: function () {\n array[0] = 2;\n return 3;\n }\n });\n\n return spliced[0] !== 2 || spliced[1] !== 3;\n});\n\n// `%TypedArray%.prototype.toSpliced` method\n// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSpliced\nexportTypedArrayMethod('toSpliced', function toSpliced(start, deleteCount /* , ...items */) {\n var O = aTypedArray(this);\n var C = getTypedArrayConstructor(O);\n var len = lengthOfArrayLike(O);\n var actualStart = toAbsoluteIndex(start, len);\n var argumentsLength = arguments.length;\n var k = 0;\n var insertCount, actualDeleteCount, thisIsBigIntArray, convertedItems, value, newLen, A;\n if (argumentsLength === 0) {\n insertCount = actualDeleteCount = 0;\n } else if (argumentsLength === 1) {\n insertCount = 0;\n actualDeleteCount = len - actualStart;\n } else {\n actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);\n insertCount = argumentsLength - 2;\n if (insertCount) {\n convertedItems = new C(insertCount);\n thisIsBigIntArray = isBigIntArray(convertedItems);\n for (var i = 2; i < argumentsLength; i++) {\n value = arguments[i];\n // FF30- typed arrays doesn't properly convert objects to typed array values\n convertedItems[i - 2] = thisIsBigIntArray ? toBigInt(value) : +value;\n }\n }\n }\n newLen = len + insertCount - actualDeleteCount;\n A = new C(newLen);\n\n for (; k < actualStart; k++) A[k] = O[k];\n for (; k < actualStart + insertCount; k++) A[k] = convertedItems[k - actualStart];\n for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];\n\n return A;\n}, !PROPER_ORDER);\n","'use strict';\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar ArrayBufferViewCore = require('../internals/array-buffer-view-core');\nvar arrayFromConstructorAndList = require('../internals/array-from-constructor-and-list');\nvar $arrayUniqueBy = require('../internals/array-unique-by');\n\nvar aTypedArray = ArrayBufferViewCore.aTypedArray;\nvar getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;\nvar exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;\nvar arrayUniqueBy = uncurryThis($arrayUniqueBy);\n\n// `%TypedArray%.prototype.uniqueBy` method\n// https://github.com/tc39/proposal-array-unique\nexportTypedArrayMethod('uniqueBy', function uniqueBy(resolver) {\n aTypedArray(this);\n return arrayFromConstructorAndList(getTypedArrayConstructor(this), arrayUniqueBy(this, resolver));\n}, true);\n","'use strict';\nvar $ = require('../internals/export');\nvar aWeakMap = require('../internals/a-weak-map');\nvar remove = require('../internals/weak-map-helpers').remove;\n\n// `WeakMap.prototype.deleteAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'WeakMap', proto: true, real: true, forced: true }, {\n deleteAll: function deleteAll(/* ...elements */) {\n var collection = aWeakMap(this);\n var allDeleted = true;\n var wasDeleted;\n for (var k = 0, len = arguments.length; k < len; k++) {\n wasDeleted = remove(collection, arguments[k]);\n allDeleted = allDeleted && wasDeleted;\n } return !!allDeleted;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aWeakMap = require('../internals/a-weak-map');\nvar WeakMapHelpers = require('../internals/weak-map-helpers');\n\nvar get = WeakMapHelpers.get;\nvar has = WeakMapHelpers.has;\nvar set = WeakMapHelpers.set;\n\n// `WeakMap.prototype.emplace` method\n// https://github.com/tc39/proposal-upsert\n$({ target: 'WeakMap', proto: true, real: true, forced: true }, {\n emplace: function emplace(key, handler) {\n var map = aWeakMap(this);\n var value, inserted;\n if (has(map, key)) {\n value = get(map, key);\n if ('update' in handler) {\n value = handler.update(value, key, map);\n set(map, key, value);\n } return value;\n }\n inserted = handler.insert(key, map);\n set(map, key, inserted);\n return inserted;\n }\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/collection-from');\n\n// `WeakMap.from` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.from\n$({ target: 'WeakMap', stat: true, forced: true }, {\n from: from\n});\n","var $ = require('../internals/export');\nvar of = require('../internals/collection-of');\n\n// `WeakMap.of` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-weakmap.of\n$({ target: 'WeakMap', stat: true, forced: true }, {\n of: of\n});\n","'use strict';\n// TODO: remove from `core-js@4`\nvar $ = require('../internals/export');\nvar upsert = require('../internals/map-upsert');\n\n// `WeakMap.prototype.upsert` method (replaced by `WeakMap.prototype.emplace`)\n// https://github.com/tc39/proposal-upsert\n$({ target: 'WeakMap', proto: true, real: true, forced: true }, {\n upsert: upsert\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aWeakSet = require('../internals/a-weak-set');\nvar add = require('../internals/weak-set-helpers').add;\n\n// `WeakSet.prototype.addAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'WeakSet', proto: true, real: true, forced: true }, {\n addAll: function addAll(/* ...elements */) {\n var set = aWeakSet(this);\n for (var k = 0, len = arguments.length; k < len; k++) {\n add(set, arguments[k]);\n } return set;\n }\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar aWeakSet = require('../internals/a-weak-set');\nvar remove = require('../internals/weak-set-helpers').remove;\n\n// `WeakSet.prototype.deleteAll` method\n// https://github.com/tc39/proposal-collection-methods\n$({ target: 'WeakSet', proto: true, real: true, forced: true }, {\n deleteAll: function deleteAll(/* ...elements */) {\n var collection = aWeakSet(this);\n var allDeleted = true;\n var wasDeleted;\n for (var k = 0, len = arguments.length; k < len; k++) {\n wasDeleted = remove(collection, arguments[k]);\n allDeleted = allDeleted && wasDeleted;\n } return !!allDeleted;\n }\n});\n","var $ = require('../internals/export');\nvar from = require('../internals/collection-from');\n\n// `WeakSet.from` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.from\n$({ target: 'WeakSet', stat: true, forced: true }, {\n from: from\n});\n","var $ = require('../internals/export');\nvar of = require('../internals/collection-of');\n\n// `WeakSet.of` method\n// https://tc39.github.io/proposal-setmap-offrom/#sec-weakset.of\n$({ target: 'WeakSet', stat: true, forced: true }, {\n of: of\n});\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar clearImmediate = require('../internals/task').clear;\n\n// `clearImmediate` method\n// http://w3c.github.io/setImmediate/#si-clearImmediate\n$({ global: true, bind: true, enumerable: true, forced: global.clearImmediate !== clearImmediate }, {\n clearImmediate: clearImmediate\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar defineProperty = require('../internals/object-define-property').f;\nvar hasOwn = require('../internals/has-own-property');\nvar anInstance = require('../internals/an-instance');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar DOMExceptionConstants = require('../internals/dom-exception-constants');\nvar clearErrorStack = require('../internals/error-stack-clear');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IS_PURE = require('../internals/is-pure');\n\nvar DOM_EXCEPTION = 'DOMException';\nvar Error = getBuiltIn('Error');\nvar NativeDOMException = getBuiltIn(DOM_EXCEPTION);\n\nvar $DOMException = function DOMException() {\n anInstance(this, DOMExceptionPrototype);\n var argumentsLength = arguments.length;\n var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);\n var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');\n var that = new NativeDOMException(message, name);\n var error = Error(message);\n error.name = DOM_EXCEPTION;\n defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));\n inheritIfRequired(that, this, $DOMException);\n return that;\n};\n\nvar DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;\n\nvar ERROR_HAS_STACK = 'stack' in Error(DOM_EXCEPTION);\nvar DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global, DOM_EXCEPTION);\n\n// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it\n// https://github.com/Jarred-Sumner/bun/issues/399\nvar BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);\n\nvar FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;\n\n// `DOMException` constructor patch for `.stack` where it's required\n// https://webidl.spec.whatwg.org/#es-DOMException-specialness\n$({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic\n DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException\n});\n\nvar PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);\nvar PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;\n\nif (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {\n if (!IS_PURE) {\n defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));\n }\n\n for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {\n var constant = DOMExceptionConstants[key];\n var constantName = constant.s;\n if (!hasOwn(PolyfilledDOMException, constantName)) {\n defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));\n }\n }\n}\n","// TODO: Remove this module from `core-js@4` since it's split to modules listed below\nrequire('../modules/web.clear-immediate');\nrequire('../modules/web.set-immediate');\n","'use strict';\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar defineBuiltInAccessor = require('../internals/define-built-in-accessor');\nvar DESCRIPTORS = require('../internals/descriptors');\n\nvar $TypeError = TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\nvar INCORRECT_VALUE = global.self !== global;\n\n// `self` getter\n// https://html.spec.whatwg.org/multipage/window-object.html#dom-self\ntry {\n if (DESCRIPTORS) {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n var descriptor = Object.getOwnPropertyDescriptor(global, 'self');\n // some engines have `self`, but with incorrect descriptor\n // https://github.com/denoland/deno/issues/15765\n if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {\n defineBuiltInAccessor(global, 'self', {\n get: function self() {\n return global;\n },\n set: function self(value) {\n if (this !== global) throw $TypeError('Illegal invocation');\n defineProperty(global, 'self', {\n value: value,\n writable: true,\n configurable: true,\n enumerable: true\n });\n },\n configurable: true,\n enumerable: true\n });\n }\n } else $({ global: true, simple: true, forced: INCORRECT_VALUE }, {\n self: global\n });\n} catch (error) { /* empty */ }\n","var $ = require('../internals/export');\nvar global = require('../internals/global');\nvar setTask = require('../internals/task').set;\nvar schedulersFix = require('../internals/schedulers-fix');\n\n// https://github.com/oven-sh/bun/issues/1633\nvar setImmediate = global.setImmediate ? schedulersFix(setTask, false) : setTask;\n\n// `setImmediate` method\n// http://w3c.github.io/setImmediate/#si-setImmediate\n$({ global: true, bind: true, enumerable: true, forced: global.setImmediate !== setImmediate }, {\n setImmediate: setImmediate\n});\n","var IS_PURE = require('../internals/is-pure');\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar getBuiltin = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar uid = require('../internals/uid');\nvar isCallable = require('../internals/is-callable');\nvar isConstructor = require('../internals/is-constructor');\nvar isNullOrUndefined = require('../internals/is-null-or-undefined');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar iterate = require('../internals/iterate');\nvar anObject = require('../internals/an-object');\nvar classof = require('../internals/classof');\nvar hasOwn = require('../internals/has-own-property');\nvar createProperty = require('../internals/create-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\nvar validateArgumentsLength = require('../internals/validate-arguments-length');\nvar getRegExpFlags = require('../internals/regexp-get-flags');\nvar MapHelpers = require('../internals/map-helpers');\nvar SetHelpers = require('../internals/set-helpers');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar PROPER_TRANSFER = require('../internals/structured-clone-proper-transfer');\n\nvar Object = global.Object;\nvar Array = global.Array;\nvar Date = global.Date;\nvar Error = global.Error;\nvar EvalError = global.EvalError;\nvar RangeError = global.RangeError;\nvar ReferenceError = global.ReferenceError;\nvar SyntaxError = global.SyntaxError;\nvar TypeError = global.TypeError;\nvar URIError = global.URIError;\nvar PerformanceMark = global.PerformanceMark;\nvar WebAssembly = global.WebAssembly;\nvar CompileError = WebAssembly && WebAssembly.CompileError || Error;\nvar LinkError = WebAssembly && WebAssembly.LinkError || Error;\nvar RuntimeError = WebAssembly && WebAssembly.RuntimeError || Error;\nvar DOMException = getBuiltin('DOMException');\nvar Map = MapHelpers.Map;\nvar mapHas = MapHelpers.has;\nvar mapGet = MapHelpers.get;\nvar mapSet = MapHelpers.set;\nvar Set = SetHelpers.Set;\nvar setAdd = SetHelpers.add;\nvar objectKeys = getBuiltin('Object', 'keys');\nvar push = uncurryThis([].push);\nvar thisBooleanValue = uncurryThis(true.valueOf);\nvar thisNumberValue = uncurryThis(1.0.valueOf);\nvar thisStringValue = uncurryThis(''.valueOf);\nvar thisTimeValue = uncurryThis(Date.prototype.getTime);\nvar PERFORMANCE_MARK = uid('structuredClone');\nvar DATA_CLONE_ERROR = 'DataCloneError';\nvar TRANSFERRING = 'Transferring';\n\nvar checkBasicSemantic = function (structuredCloneImplementation) {\n return !fails(function () {\n var set1 = new global.Set([7]);\n var set2 = structuredCloneImplementation(set1);\n var number = structuredCloneImplementation(Object(7));\n return set2 == set1 || !set2.has(7) || typeof number != 'object' || number != 7;\n }) && structuredCloneImplementation;\n};\n\nvar checkErrorsCloning = function (structuredCloneImplementation, $Error) {\n return !fails(function () {\n var error = new $Error();\n var test = structuredCloneImplementation({ a: error, b: error });\n return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);\n });\n};\n\n// https://github.com/whatwg/html/pull/5749\nvar checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {\n return !fails(function () {\n var test = structuredCloneImplementation(new global.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));\n return test.name != 'AggregateError' || test.errors[0] != 1 || test.message != PERFORMANCE_MARK || test.cause != 3;\n });\n};\n\n// FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+\n// FF<103 and Safari implementations can't clone errors\n// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604\n// FF103 can clone errors, but `.stack` of clone is an empty string\n// https://bugzilla.mozilla.org/show_bug.cgi?id=1778762\n// FF104+ fixed it on usual errors, but not on DOMExceptions\n// https://bugzilla.mozilla.org/show_bug.cgi?id=1777321\n// Chrome <102 returns `null` if cloned object contains multiple references to one error\n// https://bugs.chromium.org/p/v8/issues/detail?id=12542\n// NodeJS implementation can't clone DOMExceptions\n// https://github.com/nodejs/node/issues/41038\n// only FF103+ supports new (html/5749) error cloning semantic\nvar nativeStructuredClone = global.structuredClone;\n\nvar FORCED_REPLACEMENT = IS_PURE\n || !checkErrorsCloning(nativeStructuredClone, Error)\n || !checkErrorsCloning(nativeStructuredClone, DOMException)\n || !checkNewErrorsCloningSemantic(nativeStructuredClone);\n\n// Chrome 82+, Safari 14.1+, Deno 1.11+\n// Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException`\n// Chrome returns `null` if cloned object contains multiple references to one error\n// Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround\n// Safari implementation can't clone errors\n// Deno 1.2-1.10 implementations too naive\n// NodeJS 16.0+ does not have `PerformanceMark` constructor\n// NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive\n// and can't clone, for example, `RegExp` or some boxed primitives\n// https://github.com/nodejs/node/issues/40840\n// no one of those implementations supports new (html/5749) error cloning semantic\nvar structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) {\n return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;\n});\n\nvar nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;\n\nvar throwUncloneable = function (type) {\n throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR);\n};\n\nvar throwUnpolyfillable = function (type, action) {\n throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR);\n};\n\nvar createDataTransfer = function () {\n var dataTransfer;\n try {\n dataTransfer = new global.DataTransfer();\n } catch (error) {\n try {\n dataTransfer = new global.ClipboardEvent('').clipboardData;\n } catch (error2) { /* empty */ }\n }\n return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null;\n};\n\nvar structuredCloneInternal = function (value, map) {\n if (isSymbol(value)) throwUncloneable('Symbol');\n if (!isObject(value)) return value;\n // effectively preserves circular references\n if (map) {\n if (mapHas(map, value)) return mapGet(map, value);\n } else map = new Map();\n\n var type = classof(value);\n var deep = false;\n var C, name, cloned, dataTransfer, i, length, keys, key, source, target;\n\n switch (type) {\n case 'Array':\n cloned = Array(lengthOfArrayLike(value));\n deep = true;\n break;\n case 'Object':\n cloned = {};\n deep = true;\n break;\n case 'Map':\n cloned = new Map();\n deep = true;\n break;\n case 'Set':\n cloned = new Set();\n deep = true;\n break;\n case 'RegExp':\n // in this block because of a Safari 14.1 bug\n // old FF does not clone regexes passed to the constructor, so get the source and flags directly\n cloned = new RegExp(value.source, getRegExpFlags(value));\n break;\n case 'Error':\n name = value.name;\n switch (name) {\n case 'AggregateError':\n cloned = getBuiltin('AggregateError')([]);\n break;\n case 'EvalError':\n cloned = EvalError();\n break;\n case 'RangeError':\n cloned = RangeError();\n break;\n case 'ReferenceError':\n cloned = ReferenceError();\n break;\n case 'SyntaxError':\n cloned = SyntaxError();\n break;\n case 'TypeError':\n cloned = TypeError();\n break;\n case 'URIError':\n cloned = URIError();\n break;\n case 'CompileError':\n cloned = CompileError();\n break;\n case 'LinkError':\n cloned = LinkError();\n break;\n case 'RuntimeError':\n cloned = RuntimeError();\n break;\n default:\n cloned = Error();\n }\n deep = true;\n break;\n case 'DOMException':\n cloned = new DOMException(value.message, value.name);\n deep = true;\n break;\n case 'DataView':\n case 'Int8Array':\n case 'Uint8Array':\n case 'Uint8ClampedArray':\n case 'Int16Array':\n case 'Uint16Array':\n case 'Int32Array':\n case 'Uint32Array':\n case 'Float32Array':\n case 'Float64Array':\n case 'BigInt64Array':\n case 'BigUint64Array':\n C = global[type];\n // in some old engines like Safari 9, typeof C is 'object'\n // on Uint8ClampedArray or some other constructors\n if (!isObject(C)) throwUnpolyfillable(type);\n cloned = new C(\n // this is safe, since arraybuffer cannot have circular references\n structuredCloneInternal(value.buffer, map),\n value.byteOffset,\n type === 'DataView' ? value.byteLength : value.length\n );\n break;\n case 'DOMQuad':\n try {\n cloned = new DOMQuad(\n structuredCloneInternal(value.p1, map),\n structuredCloneInternal(value.p2, map),\n structuredCloneInternal(value.p3, map),\n structuredCloneInternal(value.p4, map)\n );\n } catch (error) {\n if (nativeRestrictedStructuredClone) {\n cloned = nativeRestrictedStructuredClone(value);\n } else throwUnpolyfillable(type);\n }\n break;\n case 'FileList':\n dataTransfer = createDataTransfer();\n if (dataTransfer) {\n for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {\n dataTransfer.items.add(structuredCloneInternal(value[i], map));\n }\n cloned = dataTransfer.files;\n } else if (nativeRestrictedStructuredClone) {\n cloned = nativeRestrictedStructuredClone(value);\n } else throwUnpolyfillable(type);\n break;\n case 'ImageData':\n // Safari 9 ImageData is a constructor, but typeof ImageData is 'object'\n try {\n cloned = new ImageData(\n structuredCloneInternal(value.data, map),\n value.width,\n value.height,\n { colorSpace: value.colorSpace }\n );\n } catch (error) {\n if (nativeRestrictedStructuredClone) {\n cloned = nativeRestrictedStructuredClone(value);\n } else throwUnpolyfillable(type);\n } break;\n default:\n if (nativeRestrictedStructuredClone) {\n cloned = nativeRestrictedStructuredClone(value);\n } else switch (type) {\n case 'BigInt':\n // can be a 3rd party polyfill\n cloned = Object(value.valueOf());\n break;\n case 'Boolean':\n cloned = Object(thisBooleanValue(value));\n break;\n case 'Number':\n cloned = Object(thisNumberValue(value));\n break;\n case 'String':\n cloned = Object(thisStringValue(value));\n break;\n case 'Date':\n cloned = new Date(thisTimeValue(value));\n break;\n case 'ArrayBuffer':\n C = global.DataView;\n // `ArrayBuffer#slice` is not available in IE10\n // `ArrayBuffer#slice` and `DataView` are not available in old FF\n if (!C && typeof value.slice != 'function') throwUnpolyfillable(type);\n // detached buffers throws in `DataView` and `.slice`\n try {\n if (typeof value.slice == 'function') {\n cloned = value.slice(0);\n } else {\n length = value.byteLength;\n cloned = new ArrayBuffer(length);\n source = new C(value);\n target = new C(cloned);\n for (i = 0; i < length; i++) {\n target.setUint8(i, source.getUint8(i));\n }\n }\n } catch (error) {\n throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR);\n } break;\n case 'SharedArrayBuffer':\n // SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original\n cloned = value;\n break;\n case 'Blob':\n try {\n cloned = value.slice(0, value.size, value.type);\n } catch (error) {\n throwUnpolyfillable(type);\n } break;\n case 'DOMPoint':\n case 'DOMPointReadOnly':\n C = global[type];\n try {\n cloned = C.fromPoint\n ? C.fromPoint(value)\n : new C(value.x, value.y, value.z, value.w);\n } catch (error) {\n throwUnpolyfillable(type);\n } break;\n case 'DOMRect':\n case 'DOMRectReadOnly':\n C = global[type];\n try {\n cloned = C.fromRect\n ? C.fromRect(value)\n : new C(value.x, value.y, value.width, value.height);\n } catch (error) {\n throwUnpolyfillable(type);\n } break;\n case 'DOMMatrix':\n case 'DOMMatrixReadOnly':\n C = global[type];\n try {\n cloned = C.fromMatrix\n ? C.fromMatrix(value)\n : new C(value);\n } catch (error) {\n throwUnpolyfillable(type);\n } break;\n case 'AudioData':\n case 'VideoFrame':\n if (!isCallable(value.clone)) throwUnpolyfillable(type);\n try {\n cloned = value.clone();\n } catch (error) {\n throwUncloneable(type);\n } break;\n case 'File':\n try {\n cloned = new File([value], value.name, value);\n } catch (error) {\n throwUnpolyfillable(type);\n } break;\n case 'CropTarget':\n case 'CryptoKey':\n case 'FileSystemDirectoryHandle':\n case 'FileSystemFileHandle':\n case 'FileSystemHandle':\n case 'GPUCompilationInfo':\n case 'GPUCompilationMessage':\n case 'ImageBitmap':\n case 'RTCCertificate':\n case 'WebAssembly.Module':\n throwUnpolyfillable(type);\n // break omitted\n default:\n throwUncloneable(type);\n }\n }\n\n mapSet(map, value, cloned);\n\n if (deep) switch (type) {\n case 'Array':\n case 'Object':\n keys = objectKeys(value);\n for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {\n key = keys[i];\n createProperty(cloned, key, structuredCloneInternal(value[key], map));\n } break;\n case 'Map':\n value.forEach(function (v, k) {\n mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));\n });\n break;\n case 'Set':\n value.forEach(function (v) {\n setAdd(cloned, structuredCloneInternal(v, map));\n });\n break;\n case 'Error':\n createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));\n if (hasOwn(value, 'cause')) {\n createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));\n }\n if (name == 'AggregateError') {\n cloned.errors = structuredCloneInternal(value.errors, map);\n } // break omitted\n case 'DOMException':\n if (ERROR_STACK_INSTALLABLE) {\n createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));\n }\n }\n\n return cloned;\n};\n\nvar tryToTransfer = function (rawTransfer, map) {\n if (!isObject(rawTransfer)) throw TypeError('Transfer option cannot be converted to a sequence');\n\n var transfer = [];\n\n iterate(rawTransfer, function (value) {\n push(transfer, anObject(value));\n });\n\n var i = 0;\n var length = lengthOfArrayLike(transfer);\n var value, type, C, transferredArray, transferred, canvas, context;\n\n if (PROPER_TRANSFER) {\n transferredArray = nativeStructuredClone(transfer, { transfer: transfer });\n while (i < length) mapSet(map, transfer[i], transferredArray[i++]);\n } else while (i < length) {\n value = transfer[i++];\n if (mapHas(map, value)) throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);\n\n type = classof(value);\n\n switch (type) {\n case 'ImageBitmap':\n C = global.OffscreenCanvas;\n if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING);\n try {\n canvas = new C(value.width, value.height);\n context = canvas.getContext('bitmaprenderer');\n context.transferFromImageBitmap(value);\n transferred = canvas.transferToImageBitmap();\n } catch (error) { /* empty */ }\n break;\n case 'AudioData':\n case 'VideoFrame':\n if (!isCallable(value.clone) || !isCallable(value.close)) throwUnpolyfillable(type, TRANSFERRING);\n try {\n transferred = value.clone();\n value.close();\n } catch (error) { /* empty */ }\n break;\n case 'ArrayBuffer':\n if (!isCallable(value.transfer)) throwUnpolyfillable(type, TRANSFERRING);\n transferred = value.transfer();\n break;\n case 'MediaSourceHandle':\n case 'MessagePort':\n case 'OffscreenCanvas':\n case 'ReadableStream':\n case 'TransformStream':\n case 'WritableStream':\n throwUnpolyfillable(type, TRANSFERRING);\n }\n\n if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR);\n mapSet(map, value, transferred);\n }\n};\n\n// `structuredClone` method\n// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone\n$({ global: true, enumerable: true, sham: !PROPER_TRANSFER, forced: FORCED_REPLACEMENT }, {\n structuredClone: function structuredClone(value /* , { transfer } */) {\n var options = validateArgumentsLength(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject(arguments[1]) : undefined;\n var transfer = options ? options.transfer : undefined;\n var map;\n\n if (transfer !== undefined) {\n map = new Map();\n tryToTransfer(transfer, map);\n }\n\n return structuredCloneInternal(value, map);\n }\n});\n","\"use strict\";\n\nvar isValue = require(\"type/value/is\")\n , isPlainFunction = require(\"type/plain-function/is\")\n , assign = require(\"es5-ext/object/assign\")\n , normalizeOpts = require(\"es5-ext/object/normalize-options\")\n , contains = require(\"es5-ext/string/#/contains\");\n\nvar d = (module.exports = function (dscr, value/*, options*/) {\n\tvar c, e, w, options, desc;\n\tif (arguments.length < 2 || typeof dscr !== \"string\") {\n\t\toptions = value;\n\t\tvalue = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[2];\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t\tw = contains.call(dscr, \"w\");\n\t} else {\n\t\tc = w = true;\n\t\te = false;\n\t}\n\n\tdesc = { value: value, configurable: c, enumerable: e, writable: w };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n});\n\nd.gs = function (dscr, get, set/*, options*/) {\n\tvar c, e, options, desc;\n\tif (typeof dscr !== \"string\") {\n\t\toptions = set;\n\t\tset = get;\n\t\tget = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[3];\n\t}\n\tif (!isValue(get)) {\n\t\tget = undefined;\n\t} else if (!isPlainFunction(get)) {\n\t\toptions = get;\n\t\tget = set = undefined;\n\t} else if (!isValue(set)) {\n\t\tset = undefined;\n\t} else if (!isPlainFunction(set)) {\n\t\toptions = set;\n\t\tset = undefined;\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t} else {\n\t\tc = true;\n\t\te = false;\n\t}\n\n\tdesc = { get: get, set: set, configurable: c, enumerable: e };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n};\n","'use strict';\nvar token = '%[a-f0-9]{2}';\nvar singleMatcher = new RegExp('(' + token + ')|([^%]+?)', 'gi');\nvar multiMatcher = new RegExp('(' + token + ')+', 'gi');\n\nfunction decodeComponents(components, split) {\n\ttry {\n\t\t// Try to decode the entire string first\n\t\treturn [decodeURIComponent(components.join(''))];\n\t} catch (err) {\n\t\t// Do nothing\n\t}\n\n\tif (components.length === 1) {\n\t\treturn components;\n\t}\n\n\tsplit = split || 1;\n\n\t// Split the array in 2 parts\n\tvar left = components.slice(0, split);\n\tvar right = components.slice(split);\n\n\treturn Array.prototype.concat.call([], decodeComponents(left), decodeComponents(right));\n}\n\nfunction decode(input) {\n\ttry {\n\t\treturn decodeURIComponent(input);\n\t} catch (err) {\n\t\tvar tokens = input.match(singleMatcher) || [];\n\n\t\tfor (var i = 1; i < tokens.length; i++) {\n\t\t\tinput = decodeComponents(tokens, i).join('');\n\n\t\t\ttokens = input.match(singleMatcher) || [];\n\t\t}\n\n\t\treturn input;\n\t}\n}\n\nfunction customDecodeURIComponent(input) {\n\t// Keep track of all the replacements and prefill the map with the `BOM`\n\tvar replaceMap = {\n\t\t'%FE%FF': '\\uFFFD\\uFFFD',\n\t\t'%FF%FE': '\\uFFFD\\uFFFD'\n\t};\n\n\tvar match = multiMatcher.exec(input);\n\twhile (match) {\n\t\ttry {\n\t\t\t// Decode as big chunks as possible\n\t\t\treplaceMap[match[0]] = decodeURIComponent(match[0]);\n\t\t} catch (err) {\n\t\t\tvar result = decode(match[0]);\n\n\t\t\tif (result !== match[0]) {\n\t\t\t\treplaceMap[match[0]] = result;\n\t\t\t}\n\t\t}\n\n\t\tmatch = multiMatcher.exec(input);\n\t}\n\n\t// Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else\n\treplaceMap['%C2'] = '\\uFFFD';\n\n\tvar entries = Object.keys(replaceMap);\n\n\tfor (var i = 0; i < entries.length; i++) {\n\t\t// Replace all decoded components\n\t\tvar key = entries[i];\n\t\tinput = input.replace(new RegExp(key, 'g'), replaceMap[key]);\n\t}\n\n\treturn input;\n}\n\nmodule.exports = function (encodedURI) {\n\tif (typeof encodedURI !== 'string') {\n\t\tthrow new TypeError('Expected `encodedURI` to be of type `string`, got `' + typeof encodedURI + '`');\n\t}\n\n\ttry {\n\t\tencodedURI = encodedURI.replace(/\\+/g, ' ');\n\n\t\t// Try the built in decoder first\n\t\treturn decodeURIComponent(encodedURI);\n\t} catch (err) {\n\t\t// Fallback to a more advanced decoder\n\t\treturn customDecodeURIComponent(encodedURI);\n\t}\n};\n","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.enquireScreen = enquireScreen;\nexports.unenquireScreen = unenquireScreen;\nvar enquireJs = void 0;\nif (typeof window !== 'undefined') {\n var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {\n return {\n media: mediaQuery,\n matches: false,\n addListener: function addListener() {},\n removeListener: function removeListener() {}\n };\n };\n window.matchMedia = window.matchMedia || matchMediaPolyfill;\n enquireJs = require('enquire.js');\n}\n\nvar mobileQuery = 'only screen and (max-width: 767.99px)';\n\nfunction enquireScreen(cb) {\n var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : mobileQuery;\n\n if (!enquireJs) {\n return;\n }\n\n var handler = {\n match: function match() {\n cb && cb(true);\n },\n unmatch: function unmatch() {\n cb && cb();\n }\n };\n enquireJs.register(query, handler);\n return handler;\n}\n\nfunction unenquireScreen(handler) {\n var query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : mobileQuery;\n\n if (!enquireJs) {\n return;\n }\n enquireJs.unregister(query, handler);\n}\n\nexports.default = enquireJs;\n","var QueryHandler = require('./QueryHandler');\nvar each = require('./Util').each;\n\n/**\n * Represents a single media query, manages it's state and registered handlers for this query\n *\n * @constructor\n * @param {string} query the media query string\n * @param {boolean} [isUnconditional=false] whether the media query should run regardless of whether the conditions are met. Primarily for helping older browsers deal with mobile-first design\n */\nfunction MediaQuery(query, isUnconditional) {\n this.query = query;\n this.isUnconditional = isUnconditional;\n this.handlers = [];\n this.mql = window.matchMedia(query);\n\n var self = this;\n this.listener = function(mql) {\n // Chrome passes an MediaQueryListEvent object, while other browsers pass MediaQueryList directly\n self.mql = mql.currentTarget || mql;\n self.assess();\n };\n this.mql.addListener(this.listener);\n}\n\nMediaQuery.prototype = {\n\n constuctor : MediaQuery,\n\n /**\n * add a handler for this query, triggering if already active\n *\n * @param {object} handler\n * @param {function} handler.match callback for when query is activated\n * @param {function} [handler.unmatch] callback for when query is deactivated\n * @param {function} [handler.setup] callback for immediate execution when a query handler is registered\n * @param {boolean} [handler.deferSetup=false] should the setup callback be deferred until the first time the handler is matched?\n */\n addHandler : function(handler) {\n var qh = new QueryHandler(handler);\n this.handlers.push(qh);\n\n this.matches() && qh.on();\n },\n\n /**\n * removes the given handler from the collection, and calls it's destroy methods\n *\n * @param {object || function} handler the handler to remove\n */\n removeHandler : function(handler) {\n var handlers = this.handlers;\n each(handlers, function(h, i) {\n if(h.equals(handler)) {\n h.destroy();\n return !handlers.splice(i,1); //remove from array and exit each early\n }\n });\n },\n\n /**\n * Determine whether the media query should be considered a match\n *\n * @return {Boolean} true if media query can be considered a match, false otherwise\n */\n matches : function() {\n return this.mql.matches || this.isUnconditional;\n },\n\n /**\n * Clears all handlers and unbinds events\n */\n clear : function() {\n each(this.handlers, function(handler) {\n handler.destroy();\n });\n this.mql.removeListener(this.listener);\n this.handlers.length = 0; //clear array\n },\n\n /*\n * Assesses the query, turning on all handlers if it matches, turning them off if it doesn't match\n */\n assess : function() {\n var action = this.matches() ? 'on' : 'off';\n\n each(this.handlers, function(handler) {\n handler[action]();\n });\n }\n};\n\nmodule.exports = MediaQuery;\n","var MediaQuery = require('./MediaQuery');\nvar Util = require('./Util');\nvar each = Util.each;\nvar isFunction = Util.isFunction;\nvar isArray = Util.isArray;\n\n/**\n * Allows for registration of query handlers.\n * Manages the query handler's state and is responsible for wiring up browser events\n *\n * @constructor\n */\nfunction MediaQueryDispatch () {\n if(!window.matchMedia) {\n throw new Error('matchMedia not present, legacy browsers require a polyfill');\n }\n\n this.queries = {};\n this.browserIsIncapable = !window.matchMedia('only all').matches;\n}\n\nMediaQueryDispatch.prototype = {\n\n constructor : MediaQueryDispatch,\n\n /**\n * Registers a handler for the given media query\n *\n * @param {string} q the media query\n * @param {object || Array || Function} options either a single query handler object, a function, or an array of query handlers\n * @param {function} options.match fired when query matched\n * @param {function} [options.unmatch] fired when a query is no longer matched\n * @param {function} [options.setup] fired when handler first triggered\n * @param {boolean} [options.deferSetup=false] whether setup should be run immediately or deferred until query is first matched\n * @param {boolean} [shouldDegrade=false] whether this particular media query should always run on incapable browsers\n */\n register : function(q, options, shouldDegrade) {\n var queries = this.queries,\n isUnconditional = shouldDegrade && this.browserIsIncapable;\n\n if(!queries[q]) {\n queries[q] = new MediaQuery(q, isUnconditional);\n }\n\n //normalise to object in an array\n if(isFunction(options)) {\n options = { match : options };\n }\n if(!isArray(options)) {\n options = [options];\n }\n each(options, function(handler) {\n if (isFunction(handler)) {\n handler = { match : handler };\n }\n queries[q].addHandler(handler);\n });\n\n return this;\n },\n\n /**\n * unregisters a query and all it's handlers, or a specific handler for a query\n *\n * @param {string} q the media query to target\n * @param {object || function} [handler] specific handler to unregister\n */\n unregister : function(q, handler) {\n var query = this.queries[q];\n\n if(query) {\n if(handler) {\n query.removeHandler(handler);\n }\n else {\n query.clear();\n delete this.queries[q];\n }\n }\n\n return this;\n }\n};\n\nmodule.exports = MediaQueryDispatch;\n","/**\n * Delegate to handle a media query being matched and unmatched.\n *\n * @param {object} options\n * @param {function} options.match callback for when the media query is matched\n * @param {function} [options.unmatch] callback for when the media query is unmatched\n * @param {function} [options.setup] one-time callback triggered the first time a query is matched\n * @param {boolean} [options.deferSetup=false] should the setup callback be run immediately, rather than first time query is matched?\n * @constructor\n */\nfunction QueryHandler(options) {\n this.options = options;\n !options.deferSetup && this.setup();\n}\n\nQueryHandler.prototype = {\n\n constructor : QueryHandler,\n\n /**\n * coordinates setup of the handler\n *\n * @function\n */\n setup : function() {\n if(this.options.setup) {\n this.options.setup();\n }\n this.initialised = true;\n },\n\n /**\n * coordinates setup and triggering of the handler\n *\n * @function\n */\n on : function() {\n !this.initialised && this.setup();\n this.options.match && this.options.match();\n },\n\n /**\n * coordinates the unmatch event for the handler\n *\n * @function\n */\n off : function() {\n this.options.unmatch && this.options.unmatch();\n },\n\n /**\n * called when a handler is to be destroyed.\n * delegates to the destroy or unmatch callbacks, depending on availability.\n *\n * @function\n */\n destroy : function() {\n this.options.destroy ? this.options.destroy() : this.off();\n },\n\n /**\n * determines equality by reference.\n * if object is supplied compare options, if function, compare match callback\n *\n * @function\n * @param {object || function} [target] the target for comparison\n */\n equals : function(target) {\n return this.options === target || this.options.match === target;\n }\n\n};\n\nmodule.exports = QueryHandler;\n","/**\n * Helper function for iterating over a collection\n *\n * @param collection\n * @param fn\n */\nfunction each(collection, fn) {\n var i = 0,\n length = collection.length,\n cont;\n\n for(i; i < length; i++) {\n cont = fn(collection[i], i);\n if(cont === false) {\n break; //allow early exit\n }\n }\n}\n\n/**\n * Helper function for determining whether target object is an array\n *\n * @param target the object under test\n * @return {Boolean} true if array, false otherwise\n */\nfunction isArray(target) {\n return Object.prototype.toString.apply(target) === '[object Array]';\n}\n\n/**\n * Helper function for determining whether target object is a function\n *\n * @param target the object under test\n * @return {Boolean} true if function, false otherwise\n */\nfunction isFunction(target) {\n return typeof target === 'function';\n}\n\nmodule.exports = {\n isFunction : isFunction,\n isArray : isArray,\n each : each\n};\n","var MediaQueryDispatch = require('./MediaQueryDispatch');\nmodule.exports = new MediaQueryDispatch();\n","\"use strict\";\n\n// eslint-disable-next-line no-empty-function\nmodule.exports = function () {};\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")() ? Object.assign : require(\"./shim\");\n","\"use strict\";\n\nmodule.exports = function () {\n\tvar assign = Object.assign, obj;\n\tif (typeof assign !== \"function\") return false;\n\tobj = { foo: \"raz\" };\n\tassign(obj, { bar: \"dwa\" }, { trzy: \"trzy\" });\n\treturn obj.foo + obj.bar + obj.trzy === \"razdwatrzy\";\n};\n","\"use strict\";\n\nvar keys = require(\"../keys\")\n , value = require(\"../valid-value\")\n , max = Math.max;\n\nmodule.exports = function (dest, src /*, …srcn*/) {\n\tvar error, i, length = max(arguments.length, 2), assign;\n\tdest = Object(value(dest));\n\tassign = function (key) {\n\t\ttry {\n\t\t\tdest[key] = src[key];\n\t\t} catch (e) {\n\t\t\tif (!error) error = e;\n\t\t}\n\t};\n\tfor (i = 1; i < length; ++i) {\n\t\tsrc = arguments[i];\n\t\tkeys(src).forEach(assign);\n\t}\n\tif (error !== undefined) throw error;\n\treturn dest;\n};\n","\"use strict\";\n\nvar _undefined = require(\"../function/noop\")(); // Support ES3 engines\n\nmodule.exports = function (val) { return val !== _undefined && val !== null; };\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")() ? Object.keys : require(\"./shim\");\n","\"use strict\";\n\nmodule.exports = function () {\n\ttry {\n\t\tObject.keys(\"primitive\");\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\n","\"use strict\";\n\nvar isValue = require(\"../is-value\");\n\nvar keys = Object.keys;\n\nmodule.exports = function (object) { return keys(isValue(object) ? Object(object) : object); };\n","\"use strict\";\n\nvar isValue = require(\"./is-value\");\n\nvar forEach = Array.prototype.forEach, create = Object.create;\n\nvar process = function (src, obj) {\n\tvar key;\n\tfor (key in src) obj[key] = src[key];\n};\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function (opts1 /*, …options*/) {\n\tvar result = create(null);\n\tforEach.call(arguments, function (options) {\n\t\tif (!isValue(options)) return;\n\t\tprocess(Object(options), result);\n\t});\n\treturn result;\n};\n","\"use strict\";\n\nmodule.exports = function (fn) {\n\tif (typeof fn !== \"function\") throw new TypeError(fn + \" is not a function\");\n\treturn fn;\n};\n","\"use strict\";\n\nvar isValue = require(\"./is-value\");\n\nmodule.exports = function (value) {\n\tif (!isValue(value)) throw new TypeError(\"Cannot use null or undefined\");\n\treturn value;\n};\n","\"use strict\";\n\nmodule.exports = require(\"./is-implemented\")() ? String.prototype.contains : require(\"./shim\");\n","\"use strict\";\n\nvar str = \"razdwatrzy\";\n\nmodule.exports = function () {\n\tif (typeof str.contains !== \"function\") return false;\n\treturn str.contains(\"dwa\") === true && str.contains(\"foo\") === false;\n};\n","\"use strict\";\n\nvar indexOf = String.prototype.indexOf;\n\nmodule.exports = function (searchString /*, position*/) {\n\treturn indexOf.call(this, searchString, arguments[1]) > -1;\n};\n","'use strict';\n\nvar d = require('d')\n , callable = require('es5-ext/object/valid-callable')\n\n , apply = Function.prototype.apply, call = Function.prototype.call\n , create = Object.create, defineProperty = Object.defineProperty\n , defineProperties = Object.defineProperties\n , hasOwnProperty = Object.prototype.hasOwnProperty\n , descriptor = { configurable: true, enumerable: false, writable: true }\n\n , on, once, off, emit, methods, descriptors, base;\n\non = function (type, listener) {\n\tvar data;\n\n\tcallable(listener);\n\n\tif (!hasOwnProperty.call(this, '__ee__')) {\n\t\tdata = descriptor.value = create(null);\n\t\tdefineProperty(this, '__ee__', descriptor);\n\t\tdescriptor.value = null;\n\t} else {\n\t\tdata = this.__ee__;\n\t}\n\tif (!data[type]) data[type] = listener;\n\telse if (typeof data[type] === 'object') data[type].push(listener);\n\telse data[type] = [data[type], listener];\n\n\treturn this;\n};\n\nonce = function (type, listener) {\n\tvar once, self;\n\n\tcallable(listener);\n\tself = this;\n\ton.call(this, type, once = function () {\n\t\toff.call(self, type, once);\n\t\tapply.call(listener, this, arguments);\n\t});\n\n\tonce.__eeOnceListener__ = listener;\n\treturn this;\n};\n\noff = function (type, listener) {\n\tvar data, listeners, candidate, i;\n\n\tcallable(listener);\n\n\tif (!hasOwnProperty.call(this, '__ee__')) return this;\n\tdata = this.__ee__;\n\tif (!data[type]) return this;\n\tlisteners = data[type];\n\n\tif (typeof listeners === 'object') {\n\t\tfor (i = 0; (candidate = listeners[i]); ++i) {\n\t\t\tif ((candidate === listener) ||\n\t\t\t\t\t(candidate.__eeOnceListener__ === listener)) {\n\t\t\t\tif (listeners.length === 2) data[type] = listeners[i ? 0 : 1];\n\t\t\t\telse listeners.splice(i, 1);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif ((listeners === listener) ||\n\t\t\t\t(listeners.__eeOnceListener__ === listener)) {\n\t\t\tdelete data[type];\n\t\t}\n\t}\n\n\treturn this;\n};\n\nemit = function (type) {\n\tvar i, l, listener, listeners, args;\n\n\tif (!hasOwnProperty.call(this, '__ee__')) return;\n\tlisteners = this.__ee__[type];\n\tif (!listeners) return;\n\n\tif (typeof listeners === 'object') {\n\t\tl = arguments.length;\n\t\targs = new Array(l - 1);\n\t\tfor (i = 1; i < l; ++i) args[i - 1] = arguments[i];\n\n\t\tlisteners = listeners.slice();\n\t\tfor (i = 0; (listener = listeners[i]); ++i) {\n\t\t\tapply.call(listener, this, args);\n\t\t}\n\t} else {\n\t\tswitch (arguments.length) {\n\t\tcase 1:\n\t\t\tcall.call(listeners, this);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcall.call(listeners, this, arguments[1]);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tcall.call(listeners, this, arguments[1], arguments[2]);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tl = arguments.length;\n\t\t\targs = new Array(l - 1);\n\t\t\tfor (i = 1; i < l; ++i) {\n\t\t\t\targs[i - 1] = arguments[i];\n\t\t\t}\n\t\t\tapply.call(listeners, this, args);\n\t\t}\n\t}\n};\n\nmethods = {\n\ton: on,\n\tonce: once,\n\toff: off,\n\temit: emit\n};\n\ndescriptors = {\n\ton: d(on),\n\tonce: d(once),\n\toff: d(off),\n\temit: d(emit)\n};\n\nbase = defineProperties({}, descriptors);\n\nmodule.exports = exports = function (o) {\n\treturn (o == null) ? create(base) : defineProperties(Object(o), descriptors);\n};\nexports.methods = methods;\n","'use strict';\n\n// do not edit .js files directly - edit src/index.jst\n\n\n\nmodule.exports = function equal(a, b) {\n if (a === b) return true;\n\n if (a && b && typeof a == 'object' && typeof b == 'object') {\n if (a.constructor !== b.constructor) return false;\n\n var length, i, keys;\n if (Array.isArray(a)) {\n length = a.length;\n if (length != b.length) return false;\n for (i = length; i-- !== 0;)\n if (!equal(a[i], b[i])) return false;\n return true;\n }\n\n\n\n if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;\n if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();\n if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();\n\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) return false;\n\n for (i = length; i-- !== 0;)\n if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;\n\n for (i = length; i-- !== 0;) {\n var key = keys[i];\n\n if (!equal(a[key], b[key])) return false;\n }\n\n return true;\n }\n\n // true if both NaN, false otherwise\n return a!==a && b!==b;\n};\n","'use strict';\nmodule.exports = function (obj, predicate) {\n\tvar ret = {};\n\tvar keys = Object.keys(obj);\n\tvar isArr = Array.isArray(predicate);\n\n\tfor (var i = 0; i < keys.length; i++) {\n\t\tvar key = keys[i];\n\t\tvar val = obj[key];\n\n\t\tif (isArr ? predicate.indexOf(key) !== -1 : predicate(key, val, obj)) {\n\t\t\tret[key] = val;\n\t\t}\n\t}\n\n\treturn ret;\n};\n","import _extends from '@babel/runtime/helpers/esm/extends';\n\n/**\r\n * Actions represent the type of change to a location value.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#action\r\n */\nvar Action;\n\n(function (Action) {\n /**\r\n * A POP indicates a change to an arbitrary index in the history stack, such\r\n * as a back or forward navigation. It does not describe the direction of the\r\n * navigation, only that the current index changed.\r\n *\r\n * Note: This is the default action for newly created history objects.\r\n */\n Action[\"Pop\"] = \"POP\";\n /**\r\n * A PUSH indicates a new entry being added to the history stack, such as when\r\n * a link is clicked and a new page loads. When this happens, all subsequent\r\n * entries in the stack are lost.\r\n */\n\n Action[\"Push\"] = \"PUSH\";\n /**\r\n * A REPLACE indicates the entry at the current index in the history stack\r\n * being replaced by a new one.\r\n */\n\n Action[\"Replace\"] = \"REPLACE\";\n})(Action || (Action = {}));\n\nvar readOnly = process.env.NODE_ENV !== \"production\" ? function (obj) {\n return Object.freeze(obj);\n} : function (obj) {\n return obj;\n};\n\nfunction warning(cond, message) {\n if (!cond) {\n // eslint-disable-next-line no-console\n if (typeof console !== 'undefined') console.warn(message);\n\n try {\n // Welcome to debugging history!\n //\n // This error is thrown as a convenience so you can more easily\n // find the source for a warning that appears in the console by\n // enabling \"pause on exceptions\" in your JavaScript debugger.\n throw new Error(message); // eslint-disable-next-line no-empty\n } catch (e) {}\n }\n}\n\nvar BeforeUnloadEventType = 'beforeunload';\nvar HashChangeEventType = 'hashchange';\nvar PopStateEventType = 'popstate';\n/**\r\n * Browser history stores the location in regular URLs. This is the standard for\r\n * most web apps, but it requires some configuration on the server to ensure you\r\n * serve the same app at multiple URLs.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createbrowserhistory\r\n */\n\nfunction createBrowserHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options = options,\n _options$window = _options.window,\n window = _options$window === void 0 ? document.defaultView : _options$window;\n var globalHistory = window.history;\n\n function getIndexAndLocation() {\n var _window$location = window.location,\n pathname = _window$location.pathname,\n search = _window$location.search,\n hash = _window$location.hash;\n var state = globalHistory.state || {};\n return [state.idx, readOnly({\n pathname: pathname,\n search: search,\n hash: hash,\n state: state.usr || null,\n key: state.key || 'default'\n })];\n }\n\n var blockedPopTx = null;\n\n function handlePop() {\n if (blockedPopTx) {\n blockers.call(blockedPopTx);\n blockedPopTx = null;\n } else {\n var nextAction = Action.Pop;\n\n var _getIndexAndLocation = getIndexAndLocation(),\n nextIndex = _getIndexAndLocation[0],\n nextLocation = _getIndexAndLocation[1];\n\n if (blockers.length) {\n if (nextIndex != null) {\n var delta = index - nextIndex;\n\n if (delta) {\n // Revert the POP\n blockedPopTx = {\n action: nextAction,\n location: nextLocation,\n retry: function retry() {\n go(delta * -1);\n }\n };\n go(delta);\n }\n } else {\n // Trying to POP to a location with no index. We did not create\n // this location, so we can't effectively block the navigation.\n process.env.NODE_ENV !== \"production\" ? warning(false, // TODO: Write up a doc that explains our blocking strategy in\n // detail and link to it here so people can understand better what\n // is going on and how to avoid it.\n \"You are trying to block a POP navigation to a location that was not \" + \"created by the history library. The block will fail silently in \" + \"production, but in general you should do all navigation with the \" + \"history library (instead of using window.history.pushState directly) \" + \"to avoid this situation.\") : void 0;\n }\n } else {\n applyTx(nextAction);\n }\n }\n }\n\n window.addEventListener(PopStateEventType, handlePop);\n var action = Action.Pop;\n\n var _getIndexAndLocation2 = getIndexAndLocation(),\n index = _getIndexAndLocation2[0],\n location = _getIndexAndLocation2[1];\n\n var listeners = createEvents();\n var blockers = createEvents();\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), '');\n }\n\n function createHref(to) {\n return typeof to === 'string' ? to : createPath(to);\n } // state defaults to `null` because `window.history.state` does\n\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n hash: '',\n search: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function getHistoryStateAndUrl(nextLocation, index) {\n return [{\n usr: nextLocation.state,\n key: nextLocation.key,\n idx: index\n }, createHref(nextLocation)];\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction) {\n action = nextAction;\n\n var _getIndexAndLocation3 = getIndexAndLocation();\n\n index = _getIndexAndLocation3[0];\n location = _getIndexAndLocation3[1];\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr = getHistoryStateAndUrl(nextLocation, index + 1),\n historyState = _getHistoryStateAndUr[0],\n url = _getHistoryStateAndUr[1]; // TODO: Support forced reloading\n // try...catch because iOS limits us to 100 pushState calls :/\n\n\n try {\n globalHistory.pushState(historyState, '', url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n applyTx(nextAction);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr2 = getHistoryStateAndUrl(nextLocation, index),\n historyState = _getHistoryStateAndUr2[0],\n url = _getHistoryStateAndUr2[1]; // TODO: Support forced reloading\n\n\n globalHistory.replaceState(historyState, '', url);\n applyTx(nextAction);\n }\n }\n\n function go(delta) {\n globalHistory.go(delta);\n }\n\n var history = {\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n var unblock = blockers.push(blocker);\n\n if (blockers.length === 1) {\n window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n\n return function () {\n unblock(); // Remove the beforeunload listener so the document may\n // still be salvageable in the pagehide event.\n // See https://html.spec.whatwg.org/#unloading-documents\n\n if (!blockers.length) {\n window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n };\n }\n };\n return history;\n}\n/**\r\n * Hash history stores the location in window.location.hash. This makes it ideal\r\n * for situations where you don't want to send the location to the server for\r\n * some reason, either because you do cannot configure it or the URL space is\r\n * reserved for something else.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createhashhistory\r\n */\n\nfunction createHashHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options2 = options,\n _options2$window = _options2.window,\n window = _options2$window === void 0 ? document.defaultView : _options2$window;\n var globalHistory = window.history;\n\n function getIndexAndLocation() {\n var _parsePath = parsePath(window.location.hash.substr(1)),\n _parsePath$pathname = _parsePath.pathname,\n pathname = _parsePath$pathname === void 0 ? '/' : _parsePath$pathname,\n _parsePath$search = _parsePath.search,\n search = _parsePath$search === void 0 ? '' : _parsePath$search,\n _parsePath$hash = _parsePath.hash,\n hash = _parsePath$hash === void 0 ? '' : _parsePath$hash;\n\n var state = globalHistory.state || {};\n return [state.idx, readOnly({\n pathname: pathname,\n search: search,\n hash: hash,\n state: state.usr || null,\n key: state.key || 'default'\n })];\n }\n\n var blockedPopTx = null;\n\n function handlePop() {\n if (blockedPopTx) {\n blockers.call(blockedPopTx);\n blockedPopTx = null;\n } else {\n var nextAction = Action.Pop;\n\n var _getIndexAndLocation4 = getIndexAndLocation(),\n nextIndex = _getIndexAndLocation4[0],\n nextLocation = _getIndexAndLocation4[1];\n\n if (blockers.length) {\n if (nextIndex != null) {\n var delta = index - nextIndex;\n\n if (delta) {\n // Revert the POP\n blockedPopTx = {\n action: nextAction,\n location: nextLocation,\n retry: function retry() {\n go(delta * -1);\n }\n };\n go(delta);\n }\n } else {\n // Trying to POP to a location with no index. We did not create\n // this location, so we can't effectively block the navigation.\n process.env.NODE_ENV !== \"production\" ? warning(false, // TODO: Write up a doc that explains our blocking strategy in\n // detail and link to it here so people can understand better\n // what is going on and how to avoid it.\n \"You are trying to block a POP navigation to a location that was not \" + \"created by the history library. The block will fail silently in \" + \"production, but in general you should do all navigation with the \" + \"history library (instead of using window.history.pushState directly) \" + \"to avoid this situation.\") : void 0;\n }\n } else {\n applyTx(nextAction);\n }\n }\n }\n\n window.addEventListener(PopStateEventType, handlePop); // popstate does not fire on hashchange in IE 11 and old (trident) Edge\n // https://developer.mozilla.org/de/docs/Web/API/Window/popstate_event\n\n window.addEventListener(HashChangeEventType, function () {\n var _getIndexAndLocation5 = getIndexAndLocation(),\n nextLocation = _getIndexAndLocation5[1]; // Ignore extraneous hashchange events.\n\n\n if (createPath(nextLocation) !== createPath(location)) {\n handlePop();\n }\n });\n var action = Action.Pop;\n\n var _getIndexAndLocation6 = getIndexAndLocation(),\n index = _getIndexAndLocation6[0],\n location = _getIndexAndLocation6[1];\n\n var listeners = createEvents();\n var blockers = createEvents();\n\n if (index == null) {\n index = 0;\n globalHistory.replaceState(_extends({}, globalHistory.state, {\n idx: index\n }), '');\n }\n\n function getBaseHref() {\n var base = document.querySelector('base');\n var href = '';\n\n if (base && base.getAttribute('href')) {\n var url = window.location.href;\n var hashIndex = url.indexOf('#');\n href = hashIndex === -1 ? url : url.slice(0, hashIndex);\n }\n\n return href;\n }\n\n function createHref(to) {\n return getBaseHref() + '#' + (typeof to === 'string' ? to : createPath(to));\n }\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n hash: '',\n search: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function getHistoryStateAndUrl(nextLocation, index) {\n return [{\n usr: nextLocation.state,\n key: nextLocation.key,\n idx: index\n }, createHref(nextLocation)];\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction) {\n action = nextAction;\n\n var _getIndexAndLocation7 = getIndexAndLocation();\n\n index = _getIndexAndLocation7[0];\n location = _getIndexAndLocation7[1];\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(nextLocation.pathname.charAt(0) === '/', \"Relative pathnames are not supported in hash history.push(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr3 = getHistoryStateAndUrl(nextLocation, index + 1),\n historyState = _getHistoryStateAndUr3[0],\n url = _getHistoryStateAndUr3[1]; // TODO: Support forced reloading\n // try...catch because iOS limits us to 100 pushState calls :/\n\n\n try {\n globalHistory.pushState(historyState, '', url);\n } catch (error) {\n // They are going to lose state here, but there is no real\n // way to warn them about it since the page will refresh...\n window.location.assign(url);\n }\n\n applyTx(nextAction);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(nextLocation.pathname.charAt(0) === '/', \"Relative pathnames are not supported in hash history.replace(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n var _getHistoryStateAndUr4 = getHistoryStateAndUrl(nextLocation, index),\n historyState = _getHistoryStateAndUr4[0],\n url = _getHistoryStateAndUr4[1]; // TODO: Support forced reloading\n\n\n globalHistory.replaceState(historyState, '', url);\n applyTx(nextAction);\n }\n }\n\n function go(delta) {\n globalHistory.go(delta);\n }\n\n var history = {\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n var unblock = blockers.push(blocker);\n\n if (blockers.length === 1) {\n window.addEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n\n return function () {\n unblock(); // Remove the beforeunload listener so the document may\n // still be salvageable in the pagehide event.\n // See https://html.spec.whatwg.org/#unloading-documents\n\n if (!blockers.length) {\n window.removeEventListener(BeforeUnloadEventType, promptBeforeUnload);\n }\n };\n }\n };\n return history;\n}\n/**\r\n * Memory history stores the current location in memory. It is designed for use\r\n * in stateful non-browser environments like tests and React Native.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#creatememoryhistory\r\n */\n\nfunction createMemoryHistory(options) {\n if (options === void 0) {\n options = {};\n }\n\n var _options3 = options,\n _options3$initialEntr = _options3.initialEntries,\n initialEntries = _options3$initialEntr === void 0 ? ['/'] : _options3$initialEntr,\n initialIndex = _options3.initialIndex;\n var entries = initialEntries.map(function (entry) {\n var location = readOnly(_extends({\n pathname: '/',\n search: '',\n hash: '',\n state: null,\n key: createKey()\n }, typeof entry === 'string' ? parsePath(entry) : entry));\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in createMemoryHistory({ initialEntries }) (invalid entry: \" + JSON.stringify(entry) + \")\") : void 0;\n return location;\n });\n var index = clamp(initialIndex == null ? entries.length - 1 : initialIndex, 0, entries.length - 1);\n var action = Action.Pop;\n var location = entries[index];\n var listeners = createEvents();\n var blockers = createEvents();\n\n function createHref(to) {\n return typeof to === 'string' ? to : createPath(to);\n }\n\n function getNextLocation(to, state) {\n if (state === void 0) {\n state = null;\n }\n\n return readOnly(_extends({\n pathname: location.pathname,\n search: '',\n hash: ''\n }, typeof to === 'string' ? parsePath(to) : to, {\n state: state,\n key: createKey()\n }));\n }\n\n function allowTx(action, location, retry) {\n return !blockers.length || (blockers.call({\n action: action,\n location: location,\n retry: retry\n }), false);\n }\n\n function applyTx(nextAction, nextLocation) {\n action = nextAction;\n location = nextLocation;\n listeners.call({\n action: action,\n location: location\n });\n }\n\n function push(to, state) {\n var nextAction = Action.Push;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n push(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in memory history.push(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n index += 1;\n entries.splice(index, entries.length, nextLocation);\n applyTx(nextAction, nextLocation);\n }\n }\n\n function replace(to, state) {\n var nextAction = Action.Replace;\n var nextLocation = getNextLocation(to, state);\n\n function retry() {\n replace(to, state);\n }\n\n process.env.NODE_ENV !== \"production\" ? warning(location.pathname.charAt(0) === '/', \"Relative pathnames are not supported in memory history.replace(\" + JSON.stringify(to) + \")\") : void 0;\n\n if (allowTx(nextAction, nextLocation, retry)) {\n entries[index] = nextLocation;\n applyTx(nextAction, nextLocation);\n }\n }\n\n function go(delta) {\n var nextIndex = clamp(index + delta, 0, entries.length - 1);\n var nextAction = Action.Pop;\n var nextLocation = entries[nextIndex];\n\n function retry() {\n go(delta);\n }\n\n if (allowTx(nextAction, nextLocation, retry)) {\n index = nextIndex;\n applyTx(nextAction, nextLocation);\n }\n }\n\n var history = {\n get index() {\n return index;\n },\n\n get action() {\n return action;\n },\n\n get location() {\n return location;\n },\n\n createHref: createHref,\n push: push,\n replace: replace,\n go: go,\n back: function back() {\n go(-1);\n },\n forward: function forward() {\n go(1);\n },\n listen: function listen(listener) {\n return listeners.push(listener);\n },\n block: function block(blocker) {\n return blockers.push(blocker);\n }\n };\n return history;\n} ////////////////////////////////////////////////////////////////////////////////\n// UTILS\n////////////////////////////////////////////////////////////////////////////////\n\nfunction clamp(n, lowerBound, upperBound) {\n return Math.min(Math.max(n, lowerBound), upperBound);\n}\n\nfunction promptBeforeUnload(event) {\n // Cancel the event.\n event.preventDefault(); // Chrome (and legacy IE) requires returnValue to be set.\n\n event.returnValue = '';\n}\n\nfunction createEvents() {\n var handlers = [];\n return {\n get length() {\n return handlers.length;\n },\n\n push: function push(fn) {\n handlers.push(fn);\n return function () {\n handlers = handlers.filter(function (handler) {\n return handler !== fn;\n });\n };\n },\n call: function call(arg) {\n handlers.forEach(function (fn) {\n return fn && fn(arg);\n });\n }\n };\n}\n\nfunction createKey() {\n return Math.random().toString(36).substr(2, 8);\n}\n/**\r\n * Creates a string URL path from the given pathname, search, and hash components.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#createpath\r\n */\n\n\nfunction createPath(_ref) {\n var _ref$pathname = _ref.pathname,\n pathname = _ref$pathname === void 0 ? '/' : _ref$pathname,\n _ref$search = _ref.search,\n search = _ref$search === void 0 ? '' : _ref$search,\n _ref$hash = _ref.hash,\n hash = _ref$hash === void 0 ? '' : _ref$hash;\n if (search && search !== '?') pathname += search.charAt(0) === '?' ? search : '?' + search;\n if (hash && hash !== '#') pathname += hash.charAt(0) === '#' ? hash : '#' + hash;\n return pathname;\n}\n/**\r\n * Parses a string URL path into its separate pathname, search, and hash components.\r\n *\r\n * @see https://github.com/remix-run/history/tree/main/docs/api-reference.md#parsepath\r\n */\n\nfunction parsePath(path) {\n var parsedPath = {};\n\n if (path) {\n var hashIndex = path.indexOf('#');\n\n if (hashIndex >= 0) {\n parsedPath.hash = path.substr(hashIndex);\n path = path.substr(0, hashIndex);\n }\n\n var searchIndex = path.indexOf('?');\n\n if (searchIndex >= 0) {\n parsedPath.search = path.substr(searchIndex);\n path = path.substr(0, searchIndex);\n }\n\n if (path) {\n parsedPath.pathname = path;\n }\n }\n\n return parsedPath;\n}\n\nexport { Action, createBrowserHistory, createHashHistory, createMemoryHistory, createPath, parsePath };\n//# sourceMappingURL=index.js.map\n","'use strict';\n\nvar reactIs = require('react-is');\n\n/**\n * Copyright 2015, Yahoo! Inc.\n * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.\n */\nvar REACT_STATICS = {\n childContextTypes: true,\n contextType: true,\n contextTypes: true,\n defaultProps: true,\n displayName: true,\n getDefaultProps: true,\n getDerivedStateFromError: true,\n getDerivedStateFromProps: true,\n mixins: true,\n propTypes: true,\n type: true\n};\nvar KNOWN_STATICS = {\n name: true,\n length: true,\n prototype: true,\n caller: true,\n callee: true,\n arguments: true,\n arity: true\n};\nvar FORWARD_REF_STATICS = {\n '$$typeof': true,\n render: true,\n defaultProps: true,\n displayName: true,\n propTypes: true\n};\nvar MEMO_STATICS = {\n '$$typeof': true,\n compare: true,\n defaultProps: true,\n displayName: true,\n propTypes: true,\n type: true\n};\nvar TYPE_STATICS = {};\nTYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;\nTYPE_STATICS[reactIs.Memo] = MEMO_STATICS;\n\nfunction getStatics(component) {\n // React v16.11 and below\n if (reactIs.isMemo(component)) {\n return MEMO_STATICS;\n } // React v16.12 and above\n\n\n return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;\n}\n\nvar defineProperty = Object.defineProperty;\nvar getOwnPropertyNames = Object.getOwnPropertyNames;\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar getPrototypeOf = Object.getPrototypeOf;\nvar objectPrototype = Object.prototype;\nfunction hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {\n if (typeof sourceComponent !== 'string') {\n // don't hoist over string (html) components\n if (objectPrototype) {\n var inheritedComponent = getPrototypeOf(sourceComponent);\n\n if (inheritedComponent && inheritedComponent !== objectPrototype) {\n hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);\n }\n }\n\n var keys = getOwnPropertyNames(sourceComponent);\n\n if (getOwnPropertySymbols) {\n keys = keys.concat(getOwnPropertySymbols(sourceComponent));\n }\n\n var targetStatics = getStatics(targetComponent);\n var sourceStatics = getStatics(sourceComponent);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n\n if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {\n var descriptor = getOwnPropertyDescriptor(sourceComponent, key);\n\n try {\n // Avoid failures from read-only properties\n defineProperty(targetComponent, key, descriptor);\n } catch (e) {}\n }\n }\n }\n\n return targetComponent;\n}\n\nmodule.exports = hoistNonReactStatics;\n","// =========\n// = humps =\n// =========\n// Underscore-to-camelCase converter (and vice versa)\n// for strings and object keys\n\n// humps is copyright © 2012+ Dom Christie\n// Released under the MIT license.\n\n\n;(function(global) {\n\n var _processKeys = function(convert, obj, options) {\n if(!_isObject(obj) || _isDate(obj) || _isRegExp(obj) || _isBoolean(obj) || _isFunction(obj)) {\n return obj;\n }\n\n var output,\n i = 0,\n l = 0;\n\n if(_isArray(obj)) {\n output = [];\n for(l=obj.length; i */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20f0',\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\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',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',\n rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\nvar reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',\n rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,\n rsUpper + '+' + rsOptUpperContr,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboMarksRange + rsComboSymbolsRange + rsVarRange + ']');\n\n/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 'ss'\n};\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array ? array.length : 0;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\n/**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction asciiToArray(string) {\n return string.split('');\n}\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\n/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\n/**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n}\n\n/**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\nfunction unicodeToArray(string) {\n return string.match(reUnicode) || [];\n}\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\nfunction castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n}\n\n/**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\nfunction createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n}\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\nvar camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n});\n\n/**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\nfunction capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n}\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.upperFirst('fred');\n * // => 'Fred'\n *\n * _.upperFirst('FRED');\n * // => 'FRED'\n */\nvar upperFirst = createCaseFirst('toUpperCase');\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nmodule.exports = camelCase;\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = throttle;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var hashClear = require('./_hashClear'),\n hashDelete = require('./_hashDelete'),\n hashGet = require('./_hashGet'),\n hashHas = require('./_hashHas'),\n hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n","var listCacheClear = require('./_listCacheClear'),\n listCacheDelete = require('./_listCacheDelete'),\n listCacheGet = require('./_listCacheGet'),\n listCacheHas = require('./_listCacheHas'),\n listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n","var baseTimes = require('./_baseTimes'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isIndex = require('./_isIndex'),\n isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = arrayLikeKeys;\n","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n}\n\nmodule.exports = arrayPush;\n","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\nmodule.exports = arraySome;\n","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n}\n\nmodule.exports = assocIndexOf;\n","var arrayPush = require('./_arrayPush'),\n isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var Stack = require('./_Stack'),\n equalArrays = require('./_equalArrays'),\n equalByTag = require('./_equalByTag'),\n equalObjects = require('./_equalObjects'),\n getTag = require('./_getTag'),\n isArray = require('./isArray'),\n isBuffer = require('./isBuffer'),\n isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n","var isFunction = require('./isFunction'),\n isMasked = require('./_isMasked'),\n isObject = require('./isObject'),\n toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\nfunction baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n","var baseGetTag = require('./_baseGetTag'),\n isLength = require('./isLength'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n","var isPrototype = require('./_isPrototype'),\n nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeys;\n","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n}\n\nmodule.exports = baseTimes;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n return function(value) {\n return func(value);\n };\n}\n\nmodule.exports = baseUnary;\n","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalObjects;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var baseGetAllKeys = require('./_baseGetAllKeys'),\n getSymbols = require('./_getSymbols'),\n keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","var baseIsNative = require('./_baseIsNative'),\n getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var arrayFilter = require('./_arrayFilter'),\n stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n};\n\nmodule.exports = getSymbols;\n","var DataView = require('./_DataView'),\n Map = require('./_Map'),\n Promise = require('./_Promise'),\n Set = require('./_Set'),\n WeakMap = require('./_WeakMap'),\n baseGetTag = require('./_baseGetTag'),\n toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n setTag = '[object Set]',\n weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n}\n\nmodule.exports = getTag;\n","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n}\n\nmodule.exports = hashClear;\n","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = hashDelete;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n}\n\nmodule.exports = hashSet;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n}\n\nmodule.exports = isKeyable;\n","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n}\n\nmodule.exports = isPrototype;\n","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n}\n\nmodule.exports = listCacheDelete;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","var Hash = require('./_Hash'),\n ListCache = require('./_ListCache'),\n Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n}\n\nmodule.exports = mapCacheClear;\n","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n}\n\nmodule.exports = mapCacheDelete;\n","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n}\n\nmodule.exports = overArg;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n}\n\nmodule.exports = setCacheAdd;\n","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n}\n\nmodule.exports = setToArray;\n","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n}\n\nmodule.exports = stackClear;\n","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n}\n\nmodule.exports = stackDelete;\n","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var ListCache = require('./_ListCache'),\n Map = require('./_Map'),\n MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n}\n\nmodule.exports = stackSet;\n","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n}\n\nmodule.exports = toSource;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n","var baseIsArguments = require('./_baseIsArguments'),\n isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n","var isFunction = require('./isFunction'),\n isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n","var root = require('./_root'),\n stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n","var baseIsEqual = require('./_baseIsEqual');\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nmodule.exports = isEqual;\n","var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","var baseIsTypedArray = require('./_baseIsTypedArray'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n","var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeys = require('./_baseKeys'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\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',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': ' + \ No newline at end of file diff --git a/packages/app/src/pages/Dataset/index.tsx b/packages/app/src/pages/Dataset/index.tsx index ca52483..24b306d 100644 --- a/packages/app/src/pages/Dataset/index.tsx +++ b/packages/app/src/pages/Dataset/index.tsx @@ -131,7 +131,10 @@ const Page: React.FC = () => { /> )} {displayOptionsResult.showImgDesc && ( -
{item.desc}
+
+ {' '} + {item.caption || item.desc}{' '} +
)} {flagTools && item.selected ? (
diff --git a/packages/app/src/pages/Lab/FlagTool/index.tsx b/packages/app/src/pages/Lab/FlagTool/index.tsx index 0ce99f5..785b638 100644 --- a/packages/app/src/pages/Lab/FlagTool/index.tsx +++ b/packages/app/src/pages/Lab/FlagTool/index.tsx @@ -128,7 +128,10 @@ const Page: React.FC = () => { /> )} {displayOptionsResult.showImgDesc && ( -
{item.desc}
+
+ {' '} + {item.caption || item.desc}{' '} +
)} {flagTools && item.selected ? (
diff --git a/packages/app/src/types/dataset.ts b/packages/app/src/types/dataset.ts index 8dd15ea..c62a284 100644 --- a/packages/app/src/types/dataset.ts +++ b/packages/app/src/types/dataset.ts @@ -28,6 +28,7 @@ export namespace NsDataSet { export interface DataSetImg extends BaseImage { desc: string; + caption?: string; metadata: Record; objects: Array; /** 0/1/2 */ diff --git a/packages/components/src/Annotator/preview.tsx b/packages/components/src/Annotator/preview.tsx index 00890a9..23dc36e 100755 --- a/packages/components/src/Annotator/preview.tsx +++ b/packages/components/src/Annotator/preview.tsx @@ -430,6 +430,15 @@ const Preview: React.FC = (props) => { : metadata[key]}
))} + { + list[current]?.caption ? ( +
+ {'caption'} +
+ {list[current].caption} +
+ ) : null + }
diff --git a/packages/components/src/Annotator/tools/useSkeleton.ts b/packages/components/src/Annotator/tools/useSkeleton.ts index f7468f4..64b788a 100644 --- a/packages/components/src/Annotator/tools/useSkeleton.ts +++ b/packages/components/src/Annotator/tools/useSkeleton.ts @@ -40,8 +40,8 @@ const renderKeypoints = ( for (let i = 0; i * 2 < lines.length; i++) { const [index1, index2] = [lines[i * 2], lines[i * 2 + 1]]; if ( - points[index1].visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible && - points[index2].visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible + points[index1]?.visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible && + points[index2]?.visible === KEYPOINTS_VISIBLE_TYPE.labeledVisible ) { drawLine( canvas, diff --git a/packages/components/src/Annotator/type.ts b/packages/components/src/Annotator/type.ts index 9df222f..70b9678 100644 --- a/packages/components/src/Annotator/type.ts +++ b/packages/components/src/Annotator/type.ts @@ -47,6 +47,7 @@ export interface DrawImageData { urlFullRes: string; objects: DrawObject[]; metadata?: Record; + caption?: string; } export enum EObjectStatus {