ados-rcm 1.1.578 → 1.1.579

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -162,7 +162,7 @@ Error generating stack: `+y.message+`
162
162
 
163
163
  ${B["Invalid file(s)"]}: ${Nt}${At?`
164
164
 
165
- `+At:""}`)}Xe.length>0&&j([...H||[],...Xe])}},[j,ne,n,t,B,H,h]),Ee=S.useCallback(()=>{var Ye;return(Ye=re.current)==null?void 0:Ye.click()},[]),Pe=S.useCallback(Ye=>{const Xe=Ye.target.files;Xe!=null&&Xe.length&&($e(Xe),he())},[$e,he]),Be=S.useCallback(Ye=>{if(a==null||a(Ye),!j||!H)return;const Xe=Fu.getFileKey(Ye),ft=H.filter(mt=>Fu.getFileKey(mt)!==Xe);j(ft),he()},[a,j,H,he]),Ve=S.useCallback(()=>{j&&(j([]),he())},[j,he]),Ne=S.useCallback(Ye=>{if(!o)return Promise.resolve();const Xe=Fu.getFileKey(Ye);return oe.current[Xe]==="Loading"?Promise.resolve():(te(Xe,"Loading"),new Promise(ft=>{o(Ye,mt=>{te(Xe,mt),ft()})}))},[o,te]),_e=S.useCallback(async()=>{if(H!=null&&H.length){if(U){const Ye={...oe.current};H.forEach(Xe=>{Ye[Fu.getFileKey(Xe)]="Loading"}),oe.current=Ye,U(Ye)}if(w){w(H,Ye=>{if(U){const Xe={...oe.current,...Ye};oe.current=Xe,U(Xe)}});return}for(const Ye of H){if(!o)continue;const Xe=Fu.getFileKey(Ye);await new Promise(ft=>{o(Ye,mt=>{if(U){const Fe={...oe.current};Fe[Xe]=mt,oe.current=Fe,U(Fe)}ft()})})}}},[H,o,w,U]),Oe=S.useCallback(()=>{!(H!=null&&H.length)||!i||i(H)},[H,i]),Ce=S.useMemo(()=>{const Ye=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Ye(Xe),!G&&!m&&Q(!0)},onDragOver:Xe=>{Ye(Xe),!G&&!m&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var mt;Ye(Xe);const ft=(mt=de.current)==null?void 0:mt.contains(Xe.relatedTarget);(!Xe.relatedTarget||!ft)&&Q(!1)},onDrop:Xe=>{var ft;Ye(Xe),Q(!1),!G&&!m&&((ft=Xe.dataTransfer.files)!=null&&ft.length)&&$e(Xe.dataTransfer.files)}}},[G,m,$e]),qe=S.useMemo(()=>{const Ye=Ke.clsx(En.ButtonRenderer,"NoSelect");return{upload:Xe=>C.jsx(ho,{className:Ye,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Be(Xe)}),loading:()=>C.jsx(ho,{className:Ye,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Xe=>C.jsx(j6,{baseClass:Ye,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Xe,resources:B,onDownload:Ne}),download:Xe=>C.jsx(ho,{className:Ye,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Ne(Xe)}),view:()=>null}},[B,Be,Ne]),it=S.useCallback((Ye,Xe)=>{const ft=Te(Ye),mt=Re(Ye),Fe=()=>c==="Upload"?qe.upload(Ye):c==="View"?qe.view():ft?qe.loading():mt?qe.error(Ye):qe.download(Ye);return C.jsx(_v,{ButtonRenderer:Fe,className:Ke.clsx(En.FileChip,mt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(Rn,{className:En.FileNameContainer,children:[C.jsx(el,{children:Ye.name,className:Ke.clsx(mt&&En.ErrorColor)}),C.jsx("span",{children:qu(Ye.size),className:En.FileSize})]})})},Xe)},[Te,Re,c,qe]),at=S.useCallback(()=>C.jsx("div",{className:Ke.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,we&&En.Disabled,V&&!(H!=null&&H.length)&&En.FileBoxFullSize),...Ce,ref:de,children:V?C.jsxs(Rn,{className:Ke.clsx("NoSelect"),style:{gap:4,display:H!=null&&H.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:B["Drop file to select"]})]}):C.jsxs(Go,{className:Ke.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||we,type:"Raw",onClick:Ee,children:[B["Insert File"],h&&` ${(H==null?void 0:H.length)||0} / ${h}`]})}),[G,we,V,H==null?void 0:H.length,Ce,B,m,Ee,h]),_t=S.useMemo(()=>{const Ye=c==="Upload",Xe=c==="View",ft=Ye?B["Delete All"]:B["Download All"],mt=Ye?Ve:_e,Fe=(H==null?void 0:H.some(Qe=>Te(Qe)))||!1;return C.jsxs(Rn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(el,{className:Ke.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ke.clsx(G&&En.ErrorColor),children:qu(ye)})," / ",qu(d),")"]}),!Xe&&C.jsx("span",{children:ft,className:Ke.clsx(En.LabelButton,"Label1",(ie||Fe)&&En.Disabled,Ye&&En.Delete),onClick:!ie&&!Fe?mt:void 0}),i&&C.jsx("span",{children:B["Download List"]||"Download List",className:Ke.clsx(En.LabelButton,"Label1",!(H!=null&&H.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:H!=null&&H.length?Oe:void 0})]})},[c,B,Ve,_e,H,I.label,G,ye,d,ie,i,Oe,Te]);return c==="Download"&&!(H!=null&&H.length)?null:C.jsxs(Wc,{wrapId:_,wrapProps:R,labelProps:D,...I,label:_t,children:[C.jsx("input",{ref:re,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Pe}),C.jsxs(Yr,{...F,className:Ke.clsx(En.AFileUploader,v),children:[C.jsxs(Rn,{className:En.ChipsContainer,children:[c==="Upload"&&at(),H==null?void 0:H.map(it)]}),c==="Upload"&&C.jsx(Yr,{className:Ke.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ce,abaseRef:de,onClick:Ye=>Ye.preventDefault(),children:!(H!=null&&H.length)&&C.jsxs(Rn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:B["Drop file to select"]})]})})]})]})},z6="_AFloatMenu_xco8u_1",$6="_Content_xco8u_10",T0={AFloatMenu:z6,Content:$6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:q6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,A]=S.useState(!1),[_,R]=S.useState(!1),D=S.useRef(null),I=S.useCallback(P=>{R(!0),setTimeout(()=>A(!0),0),setTimeout(()=>w(P),0)},[w]),F=S.useCallback(()=>{A(!1),R(!0),i==null||i()},[i]),B=S.useCallback(()=>R(!1),[]),H=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=D.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),F())},[F,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",H),0),()=>document.removeEventListener("mousedown",H)},[T,H]);const j=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),S.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:F})},[n,I,F]);const fe=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!_?null:Ls.createPortal(C.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:B,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:oe=Io.E,...re}=V;return se?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),S.createElement(Yr,{...re,key:U,className:Ke.clsx(T0.Content,"Label2","IsClickable",re.className),tooltipDirection:oe,onClick:de=>{var ye;fe==null||fe(P),(ye=re.onClick)==null||ye.call(re,de)}},Q))})}),document.body)},q6=r=>r.defKey;function U6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:U6},W6=`${Number.MAX_SAFE_INTEGER}`.length-1,V6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):W6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(_=>{if(g)if(c&&_.startsWith("*"))g("*");else if(_==="")g("");else if(_==="-")g("-");else{_=_.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(_);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(_=>{var R;(R=w.current)==null||R.blur(),a==null||a(_)},[a]),A=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ke.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:A,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},G6="_AListView_k7t2d_1",Y6="_Row_k7t2d_10",Z6="_Label_k7t2d_20",K6="_Content_k7t2d_30",up={AListView:G6,Row:Y6,Label:Z6,Content:K6},X6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:d,middleBorder:h,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:v,contentClassName:w,labelStyle:T,contentStyle:A,..._}=r,R=a||c,D=R?"":p||"var(--AListView_border-thin)",I=R?"":m||"var(--AListView_border-thick)",F=a?"":h||"var(--AListView_border-thick)",B=S.useMemo(()=>({content:Q6,label:J6,...t}),[t]),H=S.useMemo(()=>{const j={};return ar.keys(e).forEach(G=>{const fe=e[G],P={...B,...fe};j[G]=P}),j},[B,e]);return C.jsx(Yr,{..._,className:Ke.clsx(up.AListView,_.className),style:{...g,borderTop:D},children:ar.map(H,([j],G)=>{const fe={...B,...H[j]},P=Er.getContent(fe.label,{defKey:j,item:n,def:fe}),U=Er.getContent(fe.content,{defKey:j,item:n||{[j]:""},def:fe}),V=Er.getContent(fe.bold||"label",{defKey:j,item:n,def:fe});return C.jsxs("div",{className:up.Row,style:{height:o,borderBottom:D,marginTop:G===0?0:typeof d=="number"?`${d}px`:d},children:[C.jsx("div",{className:Ke.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",v),style:{width:i,minWidth:i,maxWidth:i,borderLeft:I,paddingLeft:R?0:10,...T},children:C.jsx(el,{children:P})}),C.jsx("div",{className:Ke.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:I,...A},children:C.jsx(el,{style:{width:"100%",padding:R?0:10},children:U})})]},j)})})},J6=r=>r.defKey,Q6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},eI="_ALoadingBorder_kwc1g_1",tI="_ProgressBar_kwc1g_9",rI="_IsLoading_kwc1g_15",nI="_Cover_kwc1g_19",Zf={ALoadingBorder:eI,ProgressBar:tI,IsLoading:rI,Cover:nI},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ke.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ke.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},oI="_Container_ez8dc_1",iI="_Option_ez8dc_7",sI="_RadioButton_ez8dc_14",aI="_InnerCircle_ez8dc_24",lI="_isChecked_ez8dc_29",Yd={Container:oI,Option:iI,RadioButton:sI,InnerCircle:aI,isChecked:lI},cI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return C.jsxs(Rn,{className:Ke.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(uI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,uI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Yr,{className:Ke.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Yr,{className:Ke.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),dI="_AMultiSelect_19uuu_1",fI="_Arrow_19uuu_15",hI="_Primary_19uuu_24",pI="_UnAvailable_19uuu_35",gI="_IsOpen_19uuu_35",mI="_Secondary_19uuu_42",vI="_Placeholder_19uuu_58",yI="_ValuesContainer_19uuu_63",bI="_Values_19uuu_63",xI="_Options_19uuu_82",wI="_Option_19uuu_82",CI="_Selected_19uuu_124",SI="_CheckBox_19uuu_131",Mi={AMultiSelect:dI,Arrow:fI,Primary:hI,UnAvailable:pI,IsOpen:gI,Secondary:mI,Placeholder:vI,ValuesContainer:yI,Values:bI,Options:xI,Option:wI,Selected:CI,CheckBox:SI},_I=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=EI,OptionRenderer:c=TI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[A,_]=wn(t,[]),[R,D]=S.useState(void 0),I=S.useRef(e),F=S.useRef(null),[B,H]=S.useState(!1),[j,G]=S.useState(!1),fe=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>H(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{H(!1),G(!0),i==null||i()},[i]),V=S.useCallback(ne=>{var te;B?U():P(),setTimeout(()=>fm(T,w,e,d,h),0),(te=g.onClick)==null||te.call(g,ne)},[w,g,e,B,U,P,d,h]),Q=S.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!B||!w.current)return;const ne=w.current;let te=ne.parentElement;for(;te;)te.addEventListener("scroll",Q),te=te.parentElement;return()=>{let ge=ne.parentElement;for(;ge;)ge.removeEventListener("scroll",Q),ge=ge.parentElement}},[w,B,Q]),S.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const se=S.useCallback(ne=>{ne[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!B)return;const ne=new IntersectionObserver(se,{threshold:0});return w.current&&ne.observe(w.current),()=>ne.disconnect()},[w,B,se]);const oe=S.useCallback(ne=>{const te=ne.target,ge=w.current,Te=T.current;!ge||!te||!Te||!ge.contains(te)&&!Te.contains(te)&&U()},[w,U]),re=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",oe),0),()=>document.removeEventListener("mousedown",oe)},[B,oe]);const de=S.useCallback((ne,te)=>{ne.stopPropagation(),ne.preventDefault();let ge=[...A];ge.includes(te)?ge=ge.filter(Te=>Te!==te):ge.push(te),_==null||_(ge)},[A,_]),ye=S.useCallback(()=>{if(!m||!w.current)return;const ne=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:A,placeholder:o,optionRenderer:te=>c({option:te}),type:n,isMulti:!0});D(ne)},[m,w,e,A,o,c,n]);return S.useEffect(()=>m?((e!==I.current||R===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{ye(),F.current=null,I.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,ye,R]),S.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ke.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,re&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ke.clsx(Mi.Values,A.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:A})})}),C.jsx("div",{...p,className:Ke.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ke.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:fe,children:e.map((ne,te)=>{var Te;const ge=A.includes(ne);return C.jsxs("div",{className:Ke.clsx(Mi.Option,ge&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Te=w.current)==null?void 0:Te.getBoundingClientRect().height},onClick:Re=>de(Re,ne),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+ge,void 0]}),C.jsx(c,{option:ne})]},te)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=AI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function AI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const EI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},TI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},RI="_Container_10ion_1",kI="_Steps_10ion_9",II="_Step_10ion_9",MI="_OutCircle_10ion_26",LI="_IsOver_10ion_37",DI="_InCircle_10ion_41",OI="_Line_10ion_54",NI="_Left_10ion_66",PI="_Right_10ion_69",BI="_ContentContainer_10ion_73",FI="_Content_10ion_73",fi={Container:RI,Steps:kI,Step:II,OutCircle:MI,IsOver:LI,InCircle:DI,Line:OI,Left:NI,Right:PI,ContentContainer:BI,Content:FI},jI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),d=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ke.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:C.jsx("div",{className:Ke.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},HI="_ATab_2c2d2_1",zI="_Option_2c2d2_9",$I="_Underline_2c2d2_23",qI="_IsSelected_2c2d2_23",UI="_IndicatorTrack_2c2d2_34",WI="_Indicator_2c2d2_34",VI="_Primary_2c2d2_50",GI="_Secondary_2c2d2_57",YI="_IsDisabled_2c2d2_67",ZI="_Tertiary_2c2d2_81",KI="_Quaternary_2c2d2_111",Rc={ATab:HI,Option:zI,Underline:$I,IsSelected:qI,IndicatorTrack:UI,Indicator:WI,Primary:VI,Secondary:GI,IsDisabled:YI,Tertiary:ZI,Quaternary:KI},XI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=JI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=S.useMemo(()=>e.findIndex(te=>!(n!=null&&n(te))),[e,n]),A=o==="Tertiary"?2:0,_=o==="Secondary"?8:0,R=S.useMemo(()=>A+_,[A,_]),D=o==="Tertiary"?2:0,I=S.useMemo(()=>(_-A-D-D)/e.length,[e.length,A,_,D]),[F,B]=wn(t,e[T]),H=S.useRef([]),j=S.useCallback(te=>B==null?void 0:B(te),[B]),G=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),fe=S.useMemo(()=>e.indexOf(F),[e,F]),P=S.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),U=S.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=S.useState(0),[se,oe]=S.useState(0),[re,de]=S.useState(U),ye=S.useMemo(()=>{let te;switch(G){case void 0:te=`calc(${P} * ${fe})`;break;case"fit-content":te=`calc(${V}px)`;break;default:te=`calc((${G} + ${R}px) * ${fe})`;break}return`calc(${te} + ${D}px)`},[G,D,P,fe,V,R]),ne=S.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return S.useEffect(()=>{var ge,Te;if(e.includes(F)||B==null||B(e[T]),G!=="fit-content"){de(U);return}let te=0;H.current.forEach((Re,ie)=>{ie<fe&&Re.current&&(te+=Re.current.offsetWidth+R)}),Q(te),de(`calc(${((Te=(ge=H.current[fe])==null?void 0:ge.current)==null?void 0:Te.offsetWidth)||0}px)`),oe(H.current.reduce((Re,ie)=>{var he;return Re+((((he=ie.current)==null?void 0:he.offsetWidth)||0)+R-I)},0))},[G,H,e,F,B,T,I,R,fe,U]),C.jsxs("div",{...i,className:Ke.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[C.jsx("div",{...v,className:Ke.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:re,left:ye,marginLeft:A,...v==null?void 0:v.style}}),C.jsx("div",{...w,className:Ke.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:ne,...w==null?void 0:w.style}}),C.jsx(Nn,{w:D}),e.map((te,ge)=>{const Te=n==null?void 0:n(te);return H.current[ge]||(H.current[ge]=S.createRef()),C.jsx(Yr,{abaseRef:H.current[ge],...a,isDisabled:Te,className:Ke.clsx(Rc.Option,Te&&Rc.IsDiabled,te===F&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:U,maxWidth:U,marginLeft:A,marginRight:_,"--color":te===F&&m||p,...a==null?void 0:a.style},onClick:Re=>{!Te&&j(te),a&&a.onClick&&a.onClick(Re)},children:C.jsx(d,{option:te})},ge)}),C.jsx(Nn,{w:D+D+A}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Xu,{}),h]})]})},JI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=Qt.toDate(d.toString());return p&&Qt.eq(p,o)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=Qt.toDate(h.toString());return p&&Qt.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=Qt.toDate(d.toString());return p&&Qt.be(o.sDate,p,o.eDate)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=Qt.toDate(h.toString());return p&&Qt.be(o.sDate,p,o.eDate)}return!1}},QI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},e8=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Er.getContent(o.content,{defKey:n,def:o,item:a}),h=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},t8=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},r8=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},n8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Er.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const A=t[T],_=Er.getContent(A.content,{defKey:T,def:A,item:g});if(_!==void 0){if(typeof _=="string"){v.push(_);return}else if(typeof _=="number"){v.push(_.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
165
+ `+At:""}`)}Xe.length>0&&j([...H||[],...Xe])}},[j,ne,n,t,B,H,h]),Ee=S.useCallback(()=>{var Ye;return(Ye=re.current)==null?void 0:Ye.click()},[]),Pe=S.useCallback(Ye=>{const Xe=Ye.target.files;Xe!=null&&Xe.length&&($e(Xe),he())},[$e,he]),Be=S.useCallback(Ye=>{if(a==null||a(Ye),!j||!H)return;const Xe=Fu.getFileKey(Ye),ft=H.filter(mt=>Fu.getFileKey(mt)!==Xe);j(ft),he()},[a,j,H,he]),Ve=S.useCallback(()=>{j&&(j([]),he())},[j,he]),Ne=S.useCallback(Ye=>{if(!o)return Promise.resolve();const Xe=Fu.getFileKey(Ye);return oe.current[Xe]==="Loading"?Promise.resolve():(te(Xe,"Loading"),new Promise(ft=>{o(Ye,mt=>{te(Xe,mt),ft()})}))},[o,te]),_e=S.useCallback(async()=>{if(H!=null&&H.length){if(U){const Ye={...oe.current};H.forEach(Xe=>{Ye[Fu.getFileKey(Xe)]="Loading"}),oe.current=Ye,U(Ye)}if(w){w(H,Ye=>{if(U){const Xe={...oe.current,...Ye};oe.current=Xe,U(Xe)}});return}for(const Ye of H){if(!o)continue;const Xe=Fu.getFileKey(Ye);await new Promise(ft=>{o(Ye,mt=>{if(U){const Fe={...oe.current};Fe[Xe]=mt,oe.current=Fe,U(Fe)}ft()})})}}},[H,o,w,U]),Oe=S.useCallback(()=>{!(H!=null&&H.length)||!i||i(H)},[H,i]),Ce=S.useMemo(()=>{const Ye=Xe=>(Xe.preventDefault(),Xe.stopPropagation(),Xe);return{onDragEnter:Xe=>{Ye(Xe),!G&&!m&&Q(!0)},onDragOver:Xe=>{Ye(Xe),!G&&!m&&Xe.dataTransfer&&(Xe.dataTransfer.dropEffect="copy")},onDragLeave:Xe=>{var mt;Ye(Xe);const ft=(mt=de.current)==null?void 0:mt.contains(Xe.relatedTarget);(!Xe.relatedTarget||!ft)&&Q(!1)},onDrop:Xe=>{var ft;Ye(Xe),Q(!1),!G&&!m&&((ft=Xe.dataTransfer.files)!=null&&ft.length)&&$e(Xe.dataTransfer.files)}}},[G,m,$e]),qe=S.useMemo(()=>{const Ye=Ke.clsx(En.ButtonRenderer,"NoSelect");return{upload:Xe=>C.jsx(ho,{className:Ye,icon:"X",iconSize:"sm",style:{color:"var(--AFileUploader_text_color)"},tooltip:B.Delete,type:"Raw",onClick:()=>Be(Xe)}),loading:()=>C.jsx(ho,{className:Ye,icon:"Spinner",iconSize:"sm",type:"Raw"}),error:Xe=>C.jsx(j6,{baseClass:Ye,errorClass:En.ErrorColor,errorCursorClass:En.ErrorCursor,file:Xe,resources:B,onDownload:Ne}),download:Xe=>C.jsx(ho,{className:Ye,icon:"FileDownload",iconSize:"sm",style:{color:"var(--AFileUploader_brand_color)"},tooltip:B.Download,type:"Raw",onClick:()=>Ne(Xe)}),view:()=>null}},[B,Be,Ne]),it=S.useCallback((Ye,Xe)=>{const ft=Te(Ye),mt=Re(Ye),Fe=()=>c==="Upload"?qe.upload(Ye):c==="View"?qe.view():ft?qe.loading():mt?qe.error(Ye):qe.download(Ye);return C.jsx(_v,{ButtonRenderer:Fe,className:Ke.clsx(En.FileChip,mt&&En.ErrorBorder),label:C.jsx("div",{className:En.FileChipContent,children:C.jsxs(Rn,{className:En.FileNameContainer,children:[C.jsx(el,{children:Ye.name,className:Ke.clsx(mt&&En.ErrorColor)}),C.jsx("span",{children:qu(Ye.size),className:En.FileSize})]})})},Xe)},[Te,Re,c,qe]),at=S.useCallback(()=>C.jsx("div",{className:Ke.clsx(En.FileBox,G&&En.ErrorBorder,G&&En.ErrorColor,G&&En.ErrorCursor,we&&En.Disabled,V&&!(H!=null&&H.length)&&En.FileBoxFullSize),...Ce,ref:de,children:V?C.jsxs(Rn,{className:Ke.clsx("NoSelect"),style:{gap:4,display:H!=null&&H.length?"flex":"none"},children:[C.jsx(en,{icon:"FileDownload"}),C.jsx("span",{children:B["Drop file to select"]})]}):C.jsxs(Go,{className:Ke.clsx(En.SelectRenderer,"NoSelect"),isDisabled:G||m||we,type:"Raw",onClick:Ee,children:[B["Insert File"],h&&` ${(H==null?void 0:H.length)||0} / ${h}`]})}),[G,we,V,H==null?void 0:H.length,Ce,B,m,Ee,h]),_t=S.useMemo(()=>{const Ye=c==="Upload",Xe=c==="View",ft=Ye?B["Delete All"]:B["Download All"],mt=Ye?Ve:_e,Fe=(H==null?void 0:H.some(Qe=>Te(Qe)))||!1;return C.jsxs(Rn,{className:En.LabelContainer,children:[I.label,c==="Upload"&&C.jsxs(el,{className:Ke.clsx(En.TotalFileSize,"NoSelect"),children:["(",C.jsx("span",{className:Ke.clsx(G&&En.ErrorColor),children:qu(ye)})," / ",qu(d),")"]}),!Xe&&C.jsx("span",{children:ft,className:Ke.clsx(En.LabelButton,"Label1",(ie||Fe)&&En.Disabled,Ye&&En.Delete),onClick:!ie&&!Fe?mt:void 0}),i&&C.jsx("span",{children:B["Download List"]||"Download List",className:Ke.clsx(En.LabelButton,"Label1",!(H!=null&&H.length)&&En.Disabled),style:{marginLeft:"auto"},onClick:H!=null&&H.length?Oe:void 0})]})},[c,B,Ve,_e,H,I.label,G,ye,d,ie,i,Oe,Te]);return c==="Download"&&!(H!=null&&H.length)?null:C.jsxs(Wc,{wrapId:_,wrapProps:R,labelProps:D,...I,label:_t,children:[C.jsx("input",{ref:re,multiple:!0,accept:t||"",style:{display:"none"},type:"file",onChange:Pe}),C.jsxs(Yr,{...F,className:Ke.clsx(En.AFileUploader,v),children:[C.jsxs(Rn,{className:En.ChipsContainer,children:[c==="Upload"&&at(),H==null?void 0:H.map(it)]}),c==="Upload"&&C.jsx(Yr,{className:Ke.clsx(En.DropIdle,"Title1","NoSelect"),style:{color:V?"var(--AFileUploader_brand_color)":"var(--AFileUploader_disabled_color)",opacity:V?1:.4},...Ce,abaseRef:de,onClick:Ye=>Ye.preventDefault(),children:!(H!=null&&H.length)&&C.jsxs(Rn,{style:{gap:4},children:[C.jsx(en,{icon:"FileDownload",size:"2xl"}),C.jsx("span",{children:B["Drop file to select"]})]})})]})]})},z6="_AFloatMenu_xco8u_1",$6="_Content_xco8u_10",T0={AFloatMenu:z6,Content:$6},gC=r=>{const{defs:e,defaultDef:t,actionRef:n,offset:o,onClose:i,onClick:a,onPaperClick:c,position:d=bf.ES,width:h=137}=r,p=S.useMemo(()=>({content:q6,...t}),[t]),m=S.useMemo(()=>{const P={};return ar.keys(e).forEach(U=>{const V=e[U],Q={...p,...V};Q.noDisplay||(P[U]=Q)}),P},[p,e]),[g,v]=S.useState(null),w=S.useCallback(P=>{_w(P,D,d,o),v(P)},[d,o]),[T,A]=S.useState(!1),[_,R]=S.useState(!1),D=S.useRef(null),I=S.useCallback(P=>{R(!0),setTimeout(()=>A(!0),0),setTimeout(()=>w(P),0)},[w]),F=S.useCallback(()=>{A(!1),R(!0),i==null||i()},[i]),B=S.useCallback(()=>R(!1),[]),H=S.useCallback(async P=>{const U=document.getElementById("root"),V=P.target,Q=D.current;!U||!Q||!V||!Q.contains(V)&&U.contains(V)&&(await(c==null?void 0:c(P)),F())},[F,c]);S.useEffect(()=>{if(T)return setTimeout(()=>document.addEventListener("mousedown",H),0),()=>document.removeEventListener("mousedown",H)},[T,H]);const j=S.useCallback(()=>{g&&w(g)},[w,g]);S.useEffect(()=>{if(!T||!g)return;let P=g.parentElement;for(;P;)P.addEventListener("scroll",j),P=P.parentElement;return()=>{let U=g.parentElement;for(;U;)U.removeEventListener("scroll",j),U=U.parentElement}},[g,T,j]),S.useEffect(()=>{if(T)return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[T,j]);const G=S.useCallback(P=>{P[0].intersectionRatio===0&&F()},[F]);S.useEffect(()=>{if(!T)return;const P=new IntersectionObserver(G,{threshold:0});return D.current&&P.observe(D.current),()=>P.disconnect()},[D,T,G]),S.useEffect(()=>{n&&(n.current={open:I,close:F})},[n,I,F]);const fe=S.useCallback(P=>{var U;if(T){if((U=m[P])!=null&&U.isDisabled)return}else return;a==null||a(P),F()},[T,a,F,m]);return!T&&!_?null:Ls.createPortal(C.jsx("div",{ref:D,className:T0.AFloatMenu,style:{opacity:+T,visibility:T&&Object.keys(m).length>0?"visible":"hidden",minWidth:h},onTransitionEnd:B,children:ar.map(m,([P],U)=>{const V={...p,...m[P]};let{content:Q,noDisplay:se,tooltipDirection:oe=Io.E,...re}=V;return se?null:(Q=Er.getContent(V.content,{defKey:P,def:V}),S.createElement(Yr,{...re,key:U,className:Ke.clsx(T0.Content,"Label2","IsClickable",re.className),tooltipDirection:oe,onClick:de=>{var ye;fe==null||fe(P),(ye=re.onClick)==null||ye.call(re,de)}},Q))})}),document.body)},q6=r=>r.defKey;function U6(r){try{const e=Number.parseInt(r);return isNaN(e)?void 0:e}catch{return}}const mC={parseInt:U6},W6=`${Number.MAX_SAFE_INTEGER}`.length-1,V6=r=>{const{unit:e,type:t="Secondary",min:n,max:o,useValue:i,onEnterPress:a,canAsterisk:c=!1,onFocus:d,...h}=r,p=S.useMemo(()=>o!==void 0&&n!==void 0?Math.max(`${o}`.length+1,`${n}`.length+1):W6,[n,o]),[m,g]=wn(i,""),v=S.useCallback(_=>{if(g)if(c&&_.startsWith("*"))g("*");else if(_==="")g("");else if(_==="-")g("-");else{_=_.replace(/[^0-9-]/g,"");try{const R=mC.parseInt(_);R!==void 0&&(n!==void 0&&R<n?g(`${n}`):o!==void 0&&R>o?g(`${o}`):g(`${R}`))}catch(R){console.error("ANumInput : ",R)}}},[g,c,n,o]),w=S.useRef(null),T=S.useCallback(_=>{var R;(R=w.current)==null||R.blur(),a==null||a(_)},[a]),A=S.useMemo(()=>n===void 0&&o===void 0?e??"number":`${n??""}~${o??""}`,[n,o,e]);return C.jsx(Vc,{...h,autoComplete:"off",className:Ke.clsx(gi.ANumInput,r.className),inputRef:w,maxLength:p,placeholder:A,RightAddon:r.unit&&C.jsx("span",{style:{marginRight:4},children:r.unit}),type:t,useValue:[m,v],onEnterPress:T})},G6="_AListView_k7t2d_1",Y6="_Row_k7t2d_10",Z6="_Label_k7t2d_20",K6="_Content_k7t2d_30",up={AListView:G6,Row:Y6,Label:Z6,Content:K6},X6=r=>{const{defs:e,defaultDef:t,item:n,rowHeight:o,labelWidth:i,noBorder:a,onlyMiddleBorder:c,rowGap:d,middleBorder:h,rowBottomBorder:p,outerBorder:m,style:g,labelClassName:v,contentClassName:w,labelStyle:T,contentStyle:A,..._}=r,R=a||c,D=R?"":p||"var(--AListView_border-thin)",I=R?"":m||"var(--AListView_border-thick)",F=a?"":h||"var(--AListView_border-thick)",B=S.useMemo(()=>({content:Q6,label:J6,...t}),[t]),H=S.useMemo(()=>{const j={};return ar.keys(e).forEach(G=>{const fe=e[G],P={...B,...fe};j[G]=P}),j},[B,e]);return C.jsx(Yr,{..._,className:Ke.clsx(up.AListView,_.className),style:{...g,borderTop:D},children:ar.map(H,([j],G)=>{const fe={...B,...H[j]},P=Er.getContent(fe.label,{defKey:j,item:n,def:fe}),U=Er.getContent(fe.content,{defKey:j,item:n||{[j]:""},def:fe}),V=Er.getContent(fe.bold||"label",{defKey:j,item:n,def:fe});return C.jsxs("div",{className:up.Row,style:{height:o,minHeight:o,maxHeight:o,borderBottom:D,marginTop:G===0?0:typeof d=="number"?`${d}px`:d},children:[C.jsx("div",{className:Ke.clsx(up.Label,"NoSelect",V!=="content"&&"Bold",v),style:{width:i,minWidth:i,maxWidth:i,borderLeft:I,paddingLeft:R?0:10,...T},children:C.jsx(el,{children:P})}),C.jsx("div",{className:Ke.clsx(up.Content,V!=="label"&&"Bold",w),style:{borderLeft:F,borderRight:I,...A},children:C.jsx(el,{style:{width:"100%",padding:R?0:10},children:U})})]},j)})})},J6=r=>r.defKey,Q6=r=>{const{defKey:e,item:t}=r;if(t)if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null;else return null},eI="_ALoadingBorder_kwc1g_1",tI="_ProgressBar_kwc1g_9",rI="_IsLoading_kwc1g_15",nI="_Cover_kwc1g_19",Zf={ALoadingBorder:eI,ProgressBar:tI,IsLoading:rI,Cover:nI},Iv=r=>{const{isLoading:e}=r,[t,n]=S.useState(!1),o=S.useRef(null);return S.useEffect(()=>{e?(n(!0),o.current&&clearTimeout(o.current)):o.current=setTimeout(()=>n(!1),300)},[e]),C.jsxs("div",{className:Zf.ALoadingBorder,children:[C.jsx("div",{className:Ke.clsx(Zf.ProgressBar,t&&Zf.IsLoading)}),C.jsx("div",{className:Ke.clsx(Zf.Cover,e&&Zf.IsLoading),style:{transition:"all 300ms"}})]})},oI="_Container_ez8dc_1",iI="_Option_ez8dc_7",sI="_RadioButton_ez8dc_14",aI="_InnerCircle_ez8dc_24",lI="_isChecked_ez8dc_29",Yd={Container:oI,Option:iI,RadioButton:sI,InnerCircle:aI,isChecked:lI},cI=r=>{const{options:e,useSelect:t,selectDisabled:n,radius:o=23,innerRadius:i=o*.6,OptionRenderer:a=vC}=r,[c,d]=wn(t,e[0]);return C.jsx("div",{className:Yd.Container,children:e.map((h,p)=>{const m=n==null?void 0:n(h),g=()=>m?null:d==null?void 0:d(h);return C.jsxs(Rn,{className:Ke.clsx(Yd.Option,"IsClickable"),isDisabled:m,onClick:g,children:[C.jsx(uI,{innerRadius:i,isChecked:c===h,radius:o},p),C.jsx(a,{option:h})]},p)})})},vC=({option:r})=>r,uI=({isChecked:r,radius:e,innerRadius:t})=>C.jsx(Yr,{className:Ke.clsx(Yd.RadioButton,r&&Yd.isChecked),style:{width:e,height:e},children:C.jsx(Yr,{className:Ke.clsx(Yd.InnerCircle,r&&Yd.isChecked),style:{width:t,height:t}})}),dI="_AMultiSelect_19uuu_1",fI="_Arrow_19uuu_15",hI="_Primary_19uuu_24",pI="_UnAvailable_19uuu_35",gI="_IsOpen_19uuu_35",mI="_Secondary_19uuu_42",vI="_Placeholder_19uuu_58",yI="_ValuesContainer_19uuu_63",bI="_Values_19uuu_63",xI="_Options_19uuu_82",wI="_Option_19uuu_82",CI="_Selected_19uuu_124",SI="_CheckBox_19uuu_131",Mi={AMultiSelect:dI,Arrow:fI,Primary:hI,UnAvailable:pI,IsOpen:gI,Secondary:mI,Placeholder:vI,ValuesContainer:yI,Values:bI,Options:xI,Option:wI,Selected:CI,CheckBox:SI},_I=r=>{const{options:e,useSelect:t,type:n="Primary",placeholder:o=wr.AMultiSelect["Select(Placeholder)"],onClose:i,SelectedRenderer:a=EI,OptionRenderer:c=TI,minShowRows:d=2,maxShowRows:h=6,arrowProps:p,isAutoWidth:m=!1,...g}=r,v=S.useRef(null),w=S.useMemo(()=>g.abaseRef??v,[g.abaseRef]),T=S.useRef(null),[A,_]=wn(t,[]),[R,D]=S.useState(void 0),I=S.useRef(e),F=S.useRef(null),[B,H]=S.useState(!1),[j,G]=S.useState(!1),fe=S.useCallback(()=>G(!1),[]),P=S.useCallback(()=>{g.isDisabled||g.isLoading||e.length<1||(G(!0),setTimeout(()=>H(!0),0),setTimeout(()=>fm(T,w,e,d,h),0))},[w,g.isDisabled,g.isLoading,e,d,h]),U=S.useCallback(()=>{H(!1),G(!0),i==null||i()},[i]),V=S.useCallback(ne=>{var te;B?U():P(),setTimeout(()=>fm(T,w,e,d,h),0),(te=g.onClick)==null||te.call(g,ne)},[w,g,e,B,U,P,d,h]),Q=S.useCallback(()=>{fm(T,w,e,d,h)},[w,e,d,h]);S.useEffect(()=>{if(!B||!w.current)return;const ne=w.current;let te=ne.parentElement;for(;te;)te.addEventListener("scroll",Q),te=te.parentElement;return()=>{let ge=ne.parentElement;for(;ge;)ge.removeEventListener("scroll",Q),ge=ge.parentElement}},[w,B,Q]),S.useEffect(()=>{if(B)return window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[B,Q]);const se=S.useCallback(ne=>{ne[0].intersectionRatio===0&&U()},[U]);S.useEffect(()=>{if(!B)return;const ne=new IntersectionObserver(se,{threshold:0});return w.current&&ne.observe(w.current),()=>ne.disconnect()},[w,B,se]);const oe=S.useCallback(ne=>{const te=ne.target,ge=w.current,Te=T.current;!ge||!te||!Te||!ge.contains(te)&&!Te.contains(te)&&U()},[w,U]),re=S.useMemo(()=>g.isDisabled||g.isLoading||e.length<1,[g.isDisabled,g.isLoading,e]);S.useEffect(()=>{if(B)return setTimeout(()=>document.addEventListener("mousedown",oe),0),()=>document.removeEventListener("mousedown",oe)},[B,oe]);const de=S.useCallback((ne,te)=>{ne.stopPropagation(),ne.preventDefault();let ge=[...A];ge.includes(te)?ge=ge.filter(Te=>Te!==te):ge.push(te),_==null||_(ge)},[A,_]),ye=S.useCallback(()=>{if(!m||!w.current)return;const ne=$u.calculateOptimalSelectWidth({elementRef:w,options:e,selectedOptions:A,placeholder:o,optionRenderer:te=>c({option:te}),type:n,isMulti:!0});D(ne)},[m,w,e,A,o,c,n]);return S.useEffect(()=>m?((e!==I.current||R===void 0)&&(F.current!==null&&cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{ye(),F.current=null,I.current=[...e]})),()=>{F.current!==null&&(cancelAnimationFrame(F.current),F.current=null)}):void 0,[m,e,ye,R]),S.useEffect(()=>()=>{typeof $u.clearCache=="function"&&$u.clearCache()},[]),C.jsxs(C.Fragment,{children:[C.jsxs(Yr,{...g,abaseRef:w,isDisabled:g.isDisabled||e.length<1,className:Ke.clsx(g.className,Mi.AMultiSelect,"NoSelect",B&&Mi.IsOpen,re&&Mi.UnAvailable,Mi[n]),style:{padding:n==="Secondary"?"8px 8px 8px 0":0,width:R?`${R}px`:m?"100px":void 0,...g.style},onClick:V,children:[C.jsx("div",{className:Mi.ValuesContainer,children:C.jsx("div",{className:Ke.clsx(Mi.Values,A.length<1&&Mi.Placeholder),children:C.jsx(a,{OptionRenderer:c,placeholder:o,selectedOptions:A})})}),C.jsx("div",{...p,className:Ke.clsx(Mi.Arrow,p==null?void 0:p.className),children:C.jsx(en,{icon:"TriangleDown",style:{transform:B?"rotate(180deg)":"",transition:"var(--Transition)"}})})]}),e.length>0&&(B||j)&&Ls.createPortal(C.jsx("div",{ref:T,className:Ke.clsx(Mi.Options,Mi[n]),style:{opacity:+B,visibility:B?"visible":"hidden",pointerEvents:B?void 0:"none",width:R?`${R}px`:m?"100px":void 0,borderRadius:w.current?window.getComputedStyle(w.current).borderRadius:void 0},onTransitionEnd:fe,children:e.map((ne,te)=>{var Te;const ge=A.includes(ne);return C.jsxs("div",{className:Ke.clsx(Mi.Option,ge&&Mi.Selected,"NoSelect",Mi[n]),style:{height:(Te=w.current)==null?void 0:Te.getBoundingClientRect().height},onClick:Re=>de(Re,ne),children:[C.jsx(af,{className:Mi.CheckBox,useCheck:[+ge,void 0]}),C.jsx(c,{option:ne})]},te)})}),document.body)]})};function fm(r,e,t,n,o){if(!e.current||!r.current||!t||t.length<1)return;const i=e.current.getBoundingClientRect(),a=AI(i,t.length,n,o),c=window.getComputedStyle(e.current);r.current.style.top=`calc(${a.top??0}px - ${c.borderTopWidth})`,r.current.style.bottom=a.bottom?a.bottom+"px":"",r.current.style.left=a.left+"px",r.current.style.width||(r.current.style.minWidth=a.minWidth+"px"),r.current.style.minHeight=a.minHeight+"px",r.current.style.maxHeight=a.maxHeight+"px",r.current.style.visibility="visible"}function AI(r,e,t,n){const o={top:r.bottom,bottom:void 0,left:r.left,height:"fit-content",minWidth:r.width,minHeight:r.height*Math.min(t,e),maxHeight:r.height*n>window.innerHeight-r.bottom-10?window.innerHeight-r.bottom-10:r.height*n};return window.innerHeight-r.bottom-10<o.height&&(window.innerHeight-r.bottom-10<o.minHeight?(o.top=r.top-e*r.height,o.top<0&&(o.top=10,o.minHeight=r.top-10,o.height=r.top-10)):o.height=window.innerHeight-r.bottom-10),o}const EI=r=>{const{OptionRenderer:e,selectedOptions:t,placeholder:n}=r;return t.length<1?n:t.length===1?C.jsx(e,{option:t[0]}):`${t.length} selected`},TI=r=>{const{option:e}=r;return ar.isReactNode(e)?e:null},RI="_Container_10ion_1",kI="_Steps_10ion_9",II="_Step_10ion_9",MI="_OutCircle_10ion_26",LI="_IsOver_10ion_37",DI="_InCircle_10ion_41",OI="_Line_10ion_54",NI="_Left_10ion_66",PI="_Right_10ion_69",BI="_ContentContainer_10ion_73",FI="_Content_10ion_73",fi={Container:RI,Steps:kI,Step:II,OutCircle:MI,IsOver:LI,InCircle:DI,Line:OI,Left:NI,Right:PI,ContentContainer:BI,Content:FI},jI=r=>{const{useSelect:e,steps:t,StepRenderer:n=R0,ContentRenderer:o=R0}=r;if(t.length===0)throw new Error("steps should have at least one element");const i=S.useRef(null),[a,c]=wn(e,t[0]),d=S.useCallback(p=>c==null?void 0:c(p),[c]),h=S.useMemo(()=>t.indexOf(a),[a,t]);return S.useEffect(()=>{h<0&&d(t[0])},[h,t,d]),C.jsxs("div",{className:fi.Container,children:[C.jsx("div",{className:fi.Steps,children:t.map((p,m)=>{const g=t.indexOf(p),v=h>=m,w=h>m;return C.jsxs("div",{className:fi.Step,children:[m!==0&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Left,v&&fi.IsOver)}),m!==t.length-1&&C.jsx("div",{className:Ke.clsx(fi.Line,fi.Right,w&&fi.IsOver)}),C.jsx(Go,{className:Ke.clsx(fi.OutCircle,v&&fi.IsOver),type:"Raw",onClick:()=>d(p),children:C.jsx("div",{className:Ke.clsx(fi.InCircle,v&&fi.IsOver)})}),C.jsx(n,{step:p,stepIdx:g})]},m)})}),C.jsx("div",{ref:i,className:fi.ContentContainer,children:t.map((p,m)=>{const g=t.indexOf(p);return C.jsx("div",{className:fi.Content,style:m===0?{marginLeft:`${h*-100}%`}:{},children:C.jsx(o,{step:p,stepIdx:g})},m)})})]})},R0=r=>{const{step:e}=r;return typeof e=="object"?ar.stringify(e):e},HI="_ATab_2c2d2_1",zI="_Option_2c2d2_9",$I="_Underline_2c2d2_23",qI="_IsSelected_2c2d2_23",UI="_IndicatorTrack_2c2d2_34",WI="_Indicator_2c2d2_34",VI="_Primary_2c2d2_50",GI="_Secondary_2c2d2_57",YI="_IsDisabled_2c2d2_67",ZI="_Tertiary_2c2d2_81",KI="_Quaternary_2c2d2_111",Rc={ATab:HI,Option:zI,Underline:$I,IsSelected:qI,IndicatorTrack:UI,Indicator:WI,Primary:VI,Secondary:GI,IsDisabled:YI,Tertiary:ZI,Quaternary:KI},XI=["Primary","Secondary","Tertiary","Quaternary"],yC=r=>{const{options:e,useSelect:t,selectDisabled:n,type:o="Primary",tabProps:i,optionProps:a,optionWidth:c,OptionRenderer:d=JI,RightAddon:h,color:p,selectedColor:m,underline:g,indicatorProps:v,indicatorTrackProps:w}=r;if(e.length===0)throw new Error("options should have at least one element");const T=S.useMemo(()=>e.findIndex(te=>!(n!=null&&n(te))),[e,n]),A=o==="Tertiary"?2:0,_=o==="Secondary"?8:0,R=S.useMemo(()=>A+_,[A,_]),D=o==="Tertiary"?2:0,I=S.useMemo(()=>(_-A-D-D)/e.length,[e.length,A,_,D]),[F,B]=wn(t,e[T]),H=S.useRef([]),j=S.useCallback(te=>B==null?void 0:B(te),[B]),G=S.useMemo(()=>typeof c=="number"?c+"px":c,[c]),fe=S.useMemo(()=>e.indexOf(F),[e,F]),P=S.useMemo(()=>`calc(${100/e.length}% + ${I}px)`,[e.length,I]),U=S.useMemo(()=>G||`calc(${P} - ${R}px)`,[P,R,G]),[V,Q]=S.useState(0),[se,oe]=S.useState(0),[re,de]=S.useState(U),ye=S.useMemo(()=>{let te;switch(G){case void 0:te=`calc(${P} * ${fe})`;break;case"fit-content":te=`calc(${V}px)`;break;default:te=`calc((${G} + ${R}px) * ${fe})`;break}return`calc(${te} + ${D}px)`},[G,D,P,fe,V,R]),ne=S.useMemo(()=>{switch(G){case void 0:return;case"fit-content":return`calc(${se}px)`;default:return`calc((${G} + ${R}px - ${I}px) * ${e.length})`}},[G,I,R,e,se]);return S.useEffect(()=>{var ge,Te;if(e.includes(F)||B==null||B(e[T]),G!=="fit-content"){de(U);return}let te=0;H.current.forEach((Re,ie)=>{ie<fe&&Re.current&&(te+=Re.current.offsetWidth+R)}),Q(te),de(`calc(${((Te=(ge=H.current[fe])==null?void 0:ge.current)==null?void 0:Te.offsetWidth)||0}px)`),oe(H.current.reduce((Re,ie)=>{var he;return Re+((((he=ie.current)==null?void 0:he.offsetWidth)||0)+R-I)},0))},[G,H,e,F,B,T,I,R,fe,U]),C.jsxs("div",{...i,className:Ke.clsx(Rc.ATab,"Headline2",Rc[o],i==null?void 0:i.className),children:[C.jsx("div",{...v,className:Ke.clsx(Rc.Indicator,v==null?void 0:v.className),style:{minWidth:re,left:ye,marginLeft:A,...v==null?void 0:v.style}}),C.jsx("div",{...w,className:Ke.clsx(Rc.IndicatorTrack,w==null?void 0:w.className),style:{width:ne,...w==null?void 0:w.style}}),C.jsx(Nn,{w:D}),e.map((te,ge)=>{const Te=n==null?void 0:n(te);return H.current[ge]||(H.current[ge]=S.createRef()),C.jsx(Yr,{abaseRef:H.current[ge],...a,isDisabled:Te,className:Ke.clsx(Rc.Option,Te&&Rc.IsDiabled,te===F&&Rc.IsSelected,"IsClickable",g&&Rc.Underline,a==null?void 0:a.className),style:{minWidth:U,maxWidth:U,marginLeft:A,marginRight:_,"--color":te===F&&m||p,...a==null?void 0:a.style},onClick:Re=>{!Te&&j(te),a&&a.onClick&&a.onClick(Re)},children:C.jsx(d,{option:te})},ge)}),C.jsx(Nn,{w:D+D+A}),h&&C.jsxs(C.Fragment,{children:[C.jsx(Xu,{}),h]})]})},JI=r=>{const{option:e}=r;if(typeof e=="string")return e;if(typeof e=="number")return e;if(typeof e=="object"){if(e===null)return"";const t=ar.keys(e);return"name"in t?e.name:"label"in t?e.label:"value"in t?e.value:JSON.stringify(e)}else return JSON.stringify(e)};function bC(...r){const e=S.useRef(!1);S.useEffect(()=>{e.current||(e.current=!0,r.forEach(t=>t()))},[r])}const xC={String:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;if(t==="")return ar.keys(e).some(p=>{const m=e[p],g=Er.getContent(m.asText,{defKey:p,def:m,item:r});if(g!==void 0)return g.toString().toLowerCase().includes(o.toLowerCase());const v=Er.getContent(m.content,{defKey:p,def:m,item:r});return["string","number"].includes(typeof v)&&v!==void 0&&v!==null?v.toString().toLowerCase().includes(o.toLowerCase()):!1});const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return d.toString().toLowerCase().includes(o.toLowerCase());const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?h.toString().toLowerCase().includes(o.toLowerCase()):!1},Select:(r,e,t,n)=>{const{value:o}=n;if(o==null)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0)return o.toString().toLowerCase()===d.toString().toLowerCase();const h=Er.getContent(c.content,{defKey:a,def:c,item:r});return["string","number"].includes(typeof h)&&h!==void 0&&h!==null?o.toString().toLowerCase()===h.toString().toLowerCase():!1},Date:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=Qt.toDate(d.toString());return p&&Qt.eq(p,o)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=Qt.toDate(h.toString());return p&&Qt.eq(p,o)}return!1},DateRange:(r,e,t,n)=>{const{value:o}=n;if(o===void 0)return!1;const i=ar.keys(e),a=t;if(!i.includes(a))return!1;const c=e[a],d=Er.getContent(c.asText,{defKey:a,def:c,item:r});if(d!==void 0){const p=Qt.toDate(d.toString());return p&&Qt.be(o.sDate,p,o.eDate)}const h=Er.getContent(c.content,{defKey:a,def:c,item:r});if(["string","number"].includes(typeof h)&&h!==void 0&&h!==null){const p=Qt.toDate(h.toString());return p&&Qt.be(o.sDate,p,o.eDate)}return!1}},QI=(r,e,t)=>{let n=r;return ar.keys(t).forEach(i=>{const a=t[i];a.value===void 0||a.value===null||a.value===""||(n=n.filter(c=>{var d;return(d=a.predicate??xC[a.type])==null?void 0:d(c,e,i,a)}))}),n},e8=(r,e,t)=>{if(!t)return r;const n=t.defKey,o=e[n];if(n===void 0)return r;const i=t.sortF??((a,c)=>{const d=Er.getContent(o.content,{defKey:n,def:o,item:a}),h=Er.getContent(o.content,{defKey:n,def:o,item:c});return typeof d=="string"&&typeof h=="string"?d<h?-1:d>h?1:0:typeof d=="number"&&typeof h=="number"?d-h:typeof d=="string"&&typeof h=="number"?-1:typeof d=="number"&&typeof h=="string"||d===void 0&&h!==void 0?1:d!==void 0&&h===void 0?-1:0});return typeof i=="function"&&i.length>=3?r.slice().sort((a,c)=>i(a,c,t.isAsc)):r.slice().sort((a,c)=>{const d=i(a,c);return t.isAsc?d:-d})},t8=(r,e,t)=>r.slice((e-1)*t,e*t),wC=(r,e)=>{const t=Math.max(Math.ceil(r/e),1);return Array.from({length:t},(n,o)=>o+1)},r8=(r,e,t,n)=>{const o=wC(e,t),i=Math.floor((r-1)/n),a=i*n+1,c=(i+1)*n,d=o.slice(a-1,c);return{pages:o,rangedPages:d}},n8=(r,e,t)=>{const n=[],o=Object.keys(t),i=[];o.forEach(g=>{const v=t[g],w=Er.getContent(v.hContent,{defKey:g,def:v});if(w!==void 0){if(typeof w=="string"){i.push(w);return}else if(typeof w=="number"){i.push(w.toString());return}}const T=Er.getContent(v.name,{defKey:g,def:v});if(T!==void 0&&typeof T=="string"){i.push(T);return}i.push(g)});const a=i.map(g=>`"${g.replaceAll('"','""')}"`);n.push(a.join(",")),e.forEach(g=>{const v=[];o.forEach(T=>{const A=t[T],_=Er.getContent(A.content,{defKey:T,def:A,item:g});if(_!==void 0){if(typeof _=="string"){v.push(_);return}else if(typeof _=="number"){v.push(_.toString());return}}const R=g[T];typeof R=="string"?v.push(R):typeof R=="number"?v.push(R.toString()):v.push("")});const w=v.map(T=>`"${T.replaceAll('"','""')}"`);n.push(w.join(","))});const c=`${r}.csv`,d="\uFEFF"+n.join(`
166
166
  `),h=new Blob([d],{type:"text/csv;charset=UTF-8"}),p=URL.createObjectURL(h),m=document.createElement("a");m.href=p,m.download=c,m.click(),URL.revokeObjectURL(p)},o8=r=>{const e=ar.keys(r);if(e.length!==1)return;const t=e[0];if(t!=="")return;const n=r[t];if(n.type==="String")return n.value},i8=r=>{const e=Object.entries(r);let t={};return e.forEach(([n,o])=>{!o||o.value===void 0||o.value===null||o.value===""||(o.type==="DateRange"?(t[o.sFilterKey]=o.value.sDate,t[o.eFilterKey]=o.value.eDate):t[o.filterKey??n]=o.value)}),t},s8=r=>{const e=ar.keys(r).filter(o=>o!=="");if(e.length!==1)return;const t=e[0],n=r[t];return!n||n.value===void 0||n.value===null||n.value===""?{selectedKey:t,value:void 0}:{selectedKey:t,value:n.value}},Pl={applyFilteration:QI,applySortation:e8,applyPagination:t8,getPages:wC,getRangedPages:r8,downloadCsv:n8,getSingleFilterValue:o8,getMultiFilterValues:i8,getSelectFilterValue:s8},a8="_ATable_12zow_1",l8={ATable:a8};function CC(r,e,t,n){S.useEffect(()=>{if(r)return r.addEventListener(e,t,n),()=>{r.removeEventListener(e,t,n)}},[r,e,t,n])}const c8="_BodyHeader_ys4y0_1",u8="_TRow_ys4y0_7",d8="_OverflowSpace_ys4y0_11",f8="_BodyBody_ys4y0_16",h8="_IsSelected_ys4y0_35",p8="_IsSelectable_ys4y0_39",g8="_IsRowMarked_ys4y0_47",m8="_TH_ys4y0_52",v8="_TD_ys4y0_57",y8="_IsMarked_ys4y0_57",b8="_Resizer_ys4y0_76",x8="_IsMoving_ys4y0_88",w8="_IsResizable_ys4y0_91",C8="_ResizerCenter_ys4y0_94",S8="_ResizerOut_ys4y0_100",_8="_ResizerIn_ys4y0_104",A8="_IsClicked_ys4y0_139",E8="_NoItems_ys4y0_146",T8="_Content_ys4y0_152",Dn={BodyHeader:c8,TRow:u8,OverflowSpace:d8,BodyBody:f8,IsSelected:h8,IsSelectable:p8,IsRowMarked:g8,TH:m8,TD:v8,IsMarked:y8,Resizer:b8,IsMoving:x8,IsResizable:w8,ResizerCenter:C8,ResizerOut:S8,ResizerIn:_8,IsClicked:A8,NoItems:E8,Content:T8},Bc=25,hm=50,R8=r=>{const{defs:e,isEqual:t,rProps:n,useSelect:o,isTableDisabled:i,isSelectMulti:a,selectDisabled:c,appliedFilteration:d,useSortation:h,pagination:p,pagedItems:m,noMarking:g,noDefHeader:v,isLoading:w,showRows:T,RowRenderer:A=M8,isRowRendered:_,rowHeight:R,resources:D}=r,[I,F]=S.useMemo(()=>o??[],[o]),B=S.useCallback(Ce=>{i||!F||!I||c!=null&&c(Ce)||(a?I.some(qe=>t(qe,Ce))?F(I.filter(qe=>!t(qe,Ce))):F([...I,Ce]):F([Ce]))},[I,c,F,t,i,a]);S.useEffect(()=>{a||!I||!F||I.length>1&&F([I[I.length-1]])},[I,F,a]),S.useEffect(()=>{if(!I||!F)return;I.filter(qe=>c==null?void 0:c(qe)).length>0&&F(I.filter(qe=>!(c!=null&&c(qe))))},[I,F,c]);const[H,j]=h,G=S.useCallback((Ce,qe)=>{j&&((H==null?void 0:H.defKey)===Ce?H.isAsc===!0?j({defKey:Ce,isAsc:!1,sortF:qe}):H.isAsc===!1?j(void 0):j({defKey:Ce,isAsc:!0,sortF:qe}):j({defKey:Ce,isAsc:!0,sortF:qe}))},[H,j]),[fe,P]=S.useState({elem:null,row:null}),U=S.useRef(null),V=S.useRef(null),Q=S.useCallback(()=>P({elem:U.current,row:V.current}),[]);S.useEffect(()=>Q(),[m.length,Q]),CC(window,"resize",Q);const[se,oe]=S.useState(R);S.useEffect(()=>{const{row:Ce}=fe;Ce!=null&&oe(Ce.clientHeight)},[fe,se]);const re=S.useMemo(()=>{const{elem:Ce}=fe;return Ce?Math.floor(Ce.clientHeight/se):0},[fe,se]),de=S.useMemo(()=>T||(m.length<=re?re:m.length),[re,T,m]),ye=S.useMemo(()=>{if(T!==void 0)return T*se},[T,se]),ne=S.useMemo(()=>ye,[ye]),te=S.useMemo(()=>{const{elem:Ce}=fe;return Ce?Ce.getBoundingClientRect().height/se<m.length:!1},[fe,se,m.length]),[ge,Te]=S.useState(),Re=S.useMemo(()=>{const{elem:Ce}=fe;return!ge||!Ce?"100%":Ce.clientHeight+(_?0:50)},[ge,_,fe]),ie=S.useRef(null),[he,we]=S.useState({}),$e=S.useRef({x:0,y:0}),Ee=S.useRef({}),Pe=S.useMemo(()=>ar.keys(he),[he]),Be=S.useCallback((Ce,qe)=>{const it=ie.current;if(!it)return;const at=[];it.childNodes.forEach(ft=>{ft.classList.contains(Dn.TH)&&at.push(ft)});const _t={};ar.keys(e).forEach((ft,mt)=>{const Fe=at[mt];if(!Fe)return;const Qe=Fe.getBoundingClientRect().width;_t[ft]=Qe}),Ee.current=_t,Te(qe),$e.current={x:Ce.clientX,y:Ce.clientY};const Ye=ft=>{if(!ie.current)return;const Fe=ft.clientX-$e.current.x,Qe=I8(e,qe,Ee.current,Fe);we(Qe)};document.addEventListener("mousemove",Ye);const Xe=()=>{Te(void 0),document.removeEventListener("mousemove",Ye),document.removeEventListener("mouseup",Xe)};document.addEventListener("mouseup",Xe)},[e]),Ve=S.useCallback(()=>{Te(void 0),we({})},[]),Ne=S.useMemo(()=>{if(Pe.length===0){const it={},at=ar.keys(e);for(let _t=0;_t<at.length;_t++){const Ye=at[_t],Xe=e[Ye],ft=Er.getContent(Xe.colSpan,{defKey:Ye,def:Xe}),mt=Xe.width??80,Fe=Xe.minWidth??Bc,Qe=Xe.maxWidth,At={width:mt,minWidth:Fe,maxWidth:Qe,flexGrow:ft??1};if(it[Ye]=At,ft!==void 0){for(let Nt=1;Nt<Math.min(ft,at.length-_t);Nt++){const Rt=e[at[_t+Nt]],Ot=Rt.width??80,Wt=Rt.minWidth??Bc,rr=Rt.maxWidth;At.width+=Ot,At.minWidth+=Wt,At.maxWidth!==void 0&&(rr!==void 0?At.maxWidth+=rr:At.maxWidth=void 0)}_t+=ft-1}}return it}const Ce={},qe=ar.keys(e);for(let it=0;it<qe.length;it++){let at=qe[it];const _t=e[at];let Ye=he[at];const Xe=Er.getContent(_t.colSpan,{defKey:at,def:_t}),ft=_t.minWidth??Bc,mt=_t.maxWidth,Fe={width:Ye,minWidth:ft,maxWidth:mt,flexGrow:Xe??1};if(Ce[at]=Fe,Xe!==void 0){for(let Qe=1;Qe<Math.min(Xe,qe.length-it);Qe++){const At=e[qe[it+Qe]],Nt=he[qe[it+Qe]],Rt=At.minWidth??Bc,Ot=At.maxWidth;Fe.width+=Nt,Fe.minWidth+=Rt,Fe.maxWidth!==void 0&&(Ot!==void 0?Fe.maxWidth+=Ot:Fe.maxWidth=void 0)}it+=Xe-1}}return Ce},[e,Pe,he]),_e=S.useRef(null),Oe=S.useMemo(()=>Pl.getSingleFilterValue(d),[d]);return S.useEffect(()=>{U.current&&U.current.scrollTo({top:0})},[p.page]),S.useEffect(()=>{_&&V.current&&V.current.scrollIntoView({behavior:"smooth",block:"center"})},[I,m,_]),C.jsxs(C.Fragment,{children:[C.jsx(Iv,{isLoading:w}),C.jsx("div",{ref:_e,className:Ke.clsx(Dn.BodyHeader,ge!==void 0&&Dn.IsClicked),style:{display:v||_?"none":"flex"},children:C.jsx("div",{ref:ie,className:Dn.TRow,style:{minHeight:hm,maxHeight:hm},children:ar.map(e,([Ce],qe)=>{const it=e[Ce],at=Er.getContent(it.hContent,{defKey:Ce,def:it}),_t=it.name,Ye=qe===ar.keys(e).length-1,Xe=it.width??80,ft=it.minWidth??Bc,mt=it.maxWidth,Fe={width:Xe,minWidth:ft,maxWidth:mt,justifyContent:Er.getContent(it.hAlign,{defKey:Ce,def:it})??"flex-start",...Er.getContent(it.hStyle,{defKey:Ce,def:it})};Pe.includes(Ce)&&(Fe.width=he[Ce]);const Qe=it.isSortable,At=(H==null?void 0:H.defKey)===Ce,Nt=H==null?void 0:H.isAsc;return C.jsxs(S.Fragment,{children:[C.jsxs("div",{className:Ke.clsx(Dn.TH,"Label1",Qe?"IsClickable":"NoSelect"),style:Fe,onClick:()=>Qe&&G(Ce,it.sortF),children:[C.jsx(el,{children:at??_t,className:Dn.Content}),Qe&&C.jsx(en,{icon:At?Nt?"SortUp":"SortDown":"SortBoth",style:{width:16,height:16}})]}),!Ye&&C.jsxs("div",{className:Ke.sclsx(Dn,"Resizer","IsResizable","NoSelect",ge!==void 0&&"IsMoving"),onDoubleClick:Ve,onMouseDown:Rt=>Be(Rt,Ce),children:[C.jsx("div",{className:Dn.ResizerOut}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerCenter,style:{height:Re}}),C.jsx("div",{className:Dn.ResizerIn}),C.jsx("div",{className:Dn.ResizerOut})]}),Ye&&C.jsx(Nn,{className:Dn.OverflowSpace,h:hm,style:{color:Fe.color,backgroundColor:Fe.backgroundColor,transition:Fe.transition},w:"var(--Scrollbar-width)"})]},Ce)})})}),C.jsxs("div",{ref:U,className:Ke.clsx(Dn.BodyBody,ge!==void 0&&Dn.IsClicked),style:{overflowY:te?"scroll":"hidden",minHeight:ye,maxHeight:ne},children:[m.map((Ce,qe)=>{const it=Er.getContent(n,{item:Ce}),at=F&&!i,_t=I==null?void 0:I.some(mt=>t(mt,Ce)),Ye=I&&(c==null?void 0:c(Ce)),Xe=typeof Ye=="string"?Ye:void 0,ft={...Ce};return _&&ar.keys(e).forEach(mt=>{const Fe=e[mt],Qe=Er.getContent(Fe.content,{defKey:mt,def:Fe,item:Ce});let At=!1;if(Oe&&!g){const Nt=Er.getContent(Fe.asText,{defKey:mt,def:Fe,item:Ce});Nt!==void 0?At=Nt.toString().toLowerCase().includes(Oe.toLowerCase()):["string","number"].includes(typeof Qe)&&Qe!==void 0&&Qe!==null&&(At=Qe.toString().toLowerCase().includes(Oe.toLowerCase()))}ft[mt]=C.jsx("span",{className:Ke.clsx(At&&Dn.IsRowMarked),children:ft[mt]})}),C.jsx(Yr,{isDisabled:Ye,tooltip:Xe,...it,abaseRef:_t?V:void 0,className:Ke.clsx(it==null?void 0:it.className,at&&Dn.IsSelectable,_t&&Dn.IsSelected),onClick:mt=>{var Fe;B(Ce),(Fe=it==null?void 0:it.onClick)==null||Fe.call(it,mt)},children:C.jsx(A,{defs:e,isBodyBodyOverflowed:te,item:Ce,markedItem:ft,noMarking:g,rowHeight:R,singleFilterValue:Oe,spanWidths:Ne})},qe)}),C.jsx(k8,{isRowRendered:_,itemsLength:m.length,resources:D,rowHeight:se,showRows:de})]})]})},k8=r=>{const{showRows:e,itemsLength:t,resources:n,isRowRendered:o,rowHeight:i}=r,a=S.useMemo(()=>t===0?e:e-t,[e,t]);return Array.from({length:a},(c,d)=>C.jsx("div",{className:Ke.clsx(Dn.TRow,"NoSelect"),style:{minHeight:i,maxHeight:i,...o&&{border:"none"}},children:t===0&&d===Math.floor(e/2)&&C.jsx(Rn,{className:Dn.NoItems,children:n["No Items"]})},d))};function I8(r,e,t,n){const o={...t},i=ar.keys(r).findIndex(h=>h===e)+1,a=Object.entries(r);let c=i-1,d=i;if(n<0){for(;n<0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=p.minWidth??Bc,w=g.maxWidth,T=o[h],A=o[m];let _=T-v;w!==void 0&&(_=Math.min(_,w-A));let R=-n;R=Math.min(R,_),T-R<=v&&c--,w!==void 0&&A+R>=w&&d++,o[h]=T-R,o[m]=A+R,n+=R}return o}else if(n>0){for(;n>0&&!(c<0||d>=a.length);){const[h,p]=[a[c][0],a[c][1]],[m,g]=[a[d][0],a[d][1]],v=g.minWidth??Bc,w=p.maxWidth,T=o[m],A=o[h];let _=T-v;w!==void 0&&(_=Math.min(_,w-A));let R=n;R=Math.min(R,_),T-R<=v&&d++,w!==void 0&&A+R>=w&&c--,o[m]=T-R,o[h]=A+R,n-=R}return o}return o}const M8=r=>{const{defs:e,item:t,noMarking:n,spanWidths:o,singleFilterValue:i,isBodyBodyOverflowed:a,rowHeight:c}=r;return C.jsx("div",{className:Ke.clsx(Dn.TRow),style:{minHeight:c,maxHeight:c},children:ar.map(e,([d],h)=>{const p=o[d];if(p===void 0)return null;const m=h===ar.keys(e).length-1,g=e[d],v=Er.getContent(g.content,{defKey:d,def:g,item:t}),w={width:p.width,minWidth:p.minWidth,maxWidth:p.maxWidth,flexGrow:p.flexGrow,justifyContent:Er.getContent(g.align,{defKey:d,def:g,item:t})??"flex-start",...Er.getContent(g.style,{defKey:d,def:g,item:t})};let T=!1;if(i&&!n){const A=Er.getContent(g.asText,{defKey:d,def:g,item:t});A!==void 0?T=A.toString().toLowerCase().includes(i.toLowerCase()):["string","number"].includes(typeof v)&&v!==void 0&&v!==null&&(T=v.toString().toLowerCase().includes(i.toLowerCase()))}return C.jsxs(S.Fragment,{children:[C.jsx("div",{className:Ke.clsx(Dn.TD,"Label1",T&&Dn.IsMarked),style:w,children:C.jsx(el,{children:v,className:Dn.Content})}),!a&&m&&C.jsx(Nn,{className:Dn.OverflowSpace,h:c,style:{color:w.color,backgroundColor:w.backgroundColor},w:"var(--Scrollbar-width)"})]},d)})})},L8="_ATableFooter_w090q_1",D8="_Button_w090q_10",O8="_IsSelected_w090q_26",N8="_IsDisabled_w090q_31",oa={ATableFooter:L8,Button:D8,IsSelected:O8,IsDisabled:N8},P8=r=>{const{pages:e,rangedPages:t,pageF:n,pagination:o}=r,i=S.useMemo(()=>e[e.length-1],[e]);return C.jsxs(Rn,{className:oa.ATableFooter,children:[C.jsx(en,{className:Ke.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"FirstPage",onClick:n.moveFirst}),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===1&&oa.IsDisabled),icon:"NavigateBefore",onClick:n.movePrev}),t.map(a=>C.jsx("div",{className:Ke.clsx(oa.Button,"NoSelect",o.page===a&&oa.IsSelected),onClick:()=>n.move(a),children:a},a)),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"NavigateNext",onClick:n.moveNext}),C.jsx(en,{className:Ke.clsx(oa.Button,o.page===i&&oa.IsDisabled),icon:"LastPage",onClick:n.moveLast})]})},B8="_Filter_1b9j0_1",F8="_SelectFilter_1b9j0_11",j8="_MainFilter_1b9j0_15",H8="_IsOpen_1b9j0_26",z8="_SubFilters_1b9j0_30",$8="_Input_1b9j0_44",q8="_Main_1b9j0_15",U8="_Sub_1b9j0_30",W8="_Actions_1b9j0_62",V8="_Icon_1b9j0_67",G8="_LeftIcon_1b9j0_74",Y8="_CircleAlertOutline_1b9j0_79",Z8="_Rotate_1b9j0_87",Or={Filter:B8,SelectFilter:F8,MainFilter:j8,IsOpen:H8,SubFilters:z8,Input:$8,Main:q8,Sub:U8,Actions:W8,Icon:V8,LeftIcon:G8,CircleAlertOutline:Y8,Rotate:Z8},K8=r=>{const{defs:e,useFilteration:t,hasToggleFilteration:n,filterF:o,isRowRendered:i,isFilterSort:a,filterType:c,resources:d,placeholder:h}=r,[p,m]=S.useState([]),[g,v]=S.useMemo(()=>t,[t]),w=S.useMemo(()=>c==="Select",[c]),T=S.useMemo(()=>ar.keys(g).map(ie=>String(ie)),[g]),[A,_]=S.useState(w&&T.length>0?T[0]:null),R=S.useCallback((ie,he,we)=>{if(!v)return;const $e={...g};ie.value=he,v($e),m(Ee=>Ee.map((Pe,Be)=>Be===(we?we+1:0)?"":Pe))},[g,v]),D=S.useMemo(()=>{let ie=[],he=ar.keys(g);w&&A&&(he=he.filter(we=>we===A));for(const we of he)ie.push({key:we,def:e[we],filter:g[we]});return ie},[g,e,w,A]),I=S.useMemo(()=>D.length>0?D[0]:null,[D]),F=S.useMemo(()=>p.length>0?p[0]:"",[p]),B=S.useMemo(()=>D.length>1?D.slice(1):[],[D]),H=S.useMemo(()=>p.length>1?p.slice(1):[],[p]),j=S.useMemo(()=>B.length>0,[B]),[G,fe]=S.useState(!1),[P,U]=S.useState(!1),V=S.useRef(null),Q=S.useCallback(()=>fe(!1),[]),se=S.useRef(null),oe=S.useCallback(()=>{U(!1),fe(!0),se.current&&(document.removeEventListener("mousedown",se.current),se.current=null)},[]),re=S.useCallback(()=>{const ie=he=>{const we=document.getElementById("root"),$e=he.target,Ee=V.current;!we||!Ee||!$e||!Ee.contains($e)&&we.contains($e)&&oe()};return se.current=ie,ie},[oe]),de=S.useCallback(()=>{fe(!0),U(!0),setTimeout(()=>{const ie=re();document.addEventListener("mousedown",ie)},0)},[re]),ye=S.useMemo(()=>P?oe:de,[P,de,oe]),ne=S.useCallback(()=>{const ie=D.map((he,we)=>he.filter.type==="String"&&he.filter.validation?he.filter.validation(he.filter.value||""):he.filter.type==="Date"&&he.filter.validation||he.filter.type==="DateRange"&&he.filter.validation?he.filter.validation(he.filter.value):p[we]);return m(ie),ie.every(he=>!he)},[p,D]),te=S.useCallback(ie=>{ie.key==="Enter"?(ne()&&o.apply(),ie.stopPropagation()):ie.key==="Escape"&&(U(!1),ie.currentTarget.focus(),ie.currentTarget.blur(),ie.stopPropagation())},[ne,U,o]),ge=S.useMemo(()=>({open:de,close:oe,toggle:ye,validate:ne}),[de,oe,ye,ne]),Te=S.useCallback(()=>{o.clear()},[o]),Re=S.useCallback(ie=>{if(!v||!ie)return;_(ie);const he={...g};ar.keys(he).forEach(we=>{if(we!==ie&&he[we])switch(he[we].type){case"String":he[we].value="";break;case"Select":he[we].value=null;break;case"Date":he[we].value=void 0;break;case"DateRange":he[we].value=void 0;break}}),m([]),v(he),o.clear(),setTimeout(()=>{var $e;const we=($e=V.current)==null?void 0:$e.querySelector("input");we&&we.focus()},0)},[g,v,m,o]);return I?C.jsxs(C.Fragment,{children:[w&&C.jsx(Gc,{isAutoWidth:!0,className:Ke.clsx(Or.SelectFilter),options:T,type:"Secondary",useSelect:[A,Re],OptionRenderer:({option:ie})=>{const he=e[ie];let we;if(he!=null&&he.hContent){const $e={defKey:ie,def:he};we=typeof he.hContent=="function"?he.hContent($e):he.hContent}else{const $e=g[ie],Ee=(he==null?void 0:he.name)||($e==null?void 0:$e.placeholder)||String(ie);we=C.jsx("span",{children:Ee})}return we}}),C.jsxs("div",{ref:V,className:Ke.clsx(Or.Filter),tabIndex:-1,style:{minWidth:i?a?180:void 0:180,maxWidth:i?a?300:void 0:300},onKeyDown:te,onClick:ie=>{ie.preventDefault(),ie.stopPropagation()},children:[C.jsx(X8,{errorMessage:F,filterF:o,filterSet:I,hasSelectFilterType:w,hasSubFilters:j,hasToggleFilteration:n,isOpen:P,placeholder:h,popupF:ge,resources:d,onChange:R}),!w&&C.jsx(J8,{errorMessages:H,filterF:o,isOpen:P,isTransitioning:G,placeholder:h,resources:d,subFilterSets:B,validate:ne,onChange:R,onClearClick:Te,onTransitionEnd:Q})]})]}):null},X8=r=>{var g,v,w,T;const{filterSet:e,hasToggleFilteration:t,hasSelectFilterType:n,onChange:o,filterF:i,hasSubFilters:a,popupF:c,isOpen:d,resources:h,errorMessage:p,placeholder:m}=r;if(e.filter.type==="String"){const A=[e.filter.value??"",I=>o(e.filter,I)],_=m??e.filter.placeholder??((g=e.def)==null?void 0:g.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,d&&Or.IsOpen),children:[C.jsx(Ga,{icon:R??"Type",isOpen:d,tooltip:D}),C.jsx(Vc,{autoFocus:e.filter.autoFocus,className:Ke.clsx(Or.Input,Or.Main),dataList:e.filter.dataList,LeftAddon:t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),maxLength:e.filter.maxLength,placeholder:_??h["Search(Placeholder)"],type:p?"Error":"Primary",useValue:A,wrapProps:{style:{width:"100%",boxSizing:"border-box"}},RightAddon:C.jsx(fp,{errorMessage:p,filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="Select"){const A=[e.filter.value??null,I=>{o(e.filter,I),n&&setTimeout(()=>{c.validate()&&i.apply()},0)}],_=m??e.filter.placeholder??((v=e.def)==null?void 0:v.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,d&&Or.IsOpen),children:[C.jsx(Ga,{icon:R??"Menu",isOpen:d,tooltip:D}),C.jsx(Gc,{className:Ke.clsx(Or.Input,Or.Main),OptionRenderer:e.filter.OptionRenderer,options:e.filter.options,placeholder:_,useSelect:A,SelectedRenderer:({OptionRenderer:I,selectedOption:F})=>F===null?_||e.filter.placeholder:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),C.jsx(I,{option:F}),C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,hideSearchButton:!0,isOpen:d,popupF:c,resources:h})]})})]})}else if(e.filter.type==="Date"){const A=[e.filter.value,I=>o(e.filter,I)],_=m??e.filter.placeholder??((w=e.def)==null?void 0:w.name),R=e.filter.icon,D=e.filter.iconTooltip??_;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,d&&Or.IsOpen),children:[C.jsx(Ga,{icon:R??"CalendarDay",isOpen:d,tooltip:D}),C.jsx(Rv,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,placeholder:_,type:"Raw",useDate:A,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:R??"CalendarDay",isOpen:!d,tooltip:D}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}else if(e.filter.type==="DateRange"){const A=[e.filter.value,F=>o(e.filter,F)],{noDefaultChoices:_}=e.filter,R=m??e.filter.placeholder??((T=e.def)==null?void 0:T.name),D=e.filter.icon,I=e.filter.iconTooltip??R;return C.jsxs("div",{className:Ke.clsx(Or.MainFilter,d&&Or.IsOpen),children:[C.jsx(Ga,{icon:D??"CalendarDay",isOpen:d,tooltip:I}),C.jsx(Ev,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Main),maxDate:e.filter.maxDate,minDate:e.filter.minDate,noDefaultChoices:_,placeholder:R,type:"Raw",useDateRange:A,LeftAddon:C.jsxs(C.Fragment,{children:[t&&C.jsx(dp,{isOpen:d,filterF:i,popupF:c,resources:h}),!t&&C.jsx(Nn,{w:d?0:6}),C.jsx(Ga,{icon:D??"CalendarDay",isOpen:!d,tooltip:I}),C.jsx(Nn,{w:d?8:0})]}),RightAddon:C.jsx(fp,{filterF:i,hasSelectFilterType:n,hasSubFilters:a,isOpen:d,popupF:c,resources:h})})]})}return null},dp=r=>{const{filterF:e,popupF:t,resources:n,isOpen:o}=r;return C.jsx(ho,{className:Or.Icon,icon:"Convert",style:{width:o?0:24,marginLeft:o?0:8},tooltip:n["Toggle Filter"],type:"Raw",onMouseDown:i=>i.currentTarget.classList.remove(Or.Rotate),onClick:i=>{i.currentTarget.classList.add(Or.Rotate),e.toggle(),t.close(),i.stopPropagation()}})},fp=r=>{const{hasSubFilters:e,popupF:t,isOpen:n,resources:o,errorMessage:i,hideSearchButton:a,hasSelectFilterType:c,filterF:d}=r,h=S.useCallback(g=>{g.stopPropagation(),t.open()},[t]),p=S.useCallback(g=>{g.stopPropagation(),t.close()},[t]),m=S.useCallback(g=>{g.stopPropagation(),t.validate()&&d.apply()},[t,d]);return C.jsxs(S.Fragment,{children:[i&&C.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:i,type:"Raw"}),e&&!c&&C.jsx(ho,{className:Or.Icon,icon:"ListAdd",type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",marginRight:-24,pointerEvents:n?"none":void 0},onClick:h}),e&&!c&&C.jsx(ho,{className:Or.Icon,icon:"ListRemove",type:"Raw",style:{opacity:+n,visibility:+n?"visible":"hidden",marginRight:n?-24:0,pointerEvents:n?void 0:"none"},onClick:p}),!a&&C.jsx(ho,{className:Or.Icon,icon:"Search",tooltip:o["Search(Button)"],type:"Raw",style:{opacity:+!n,visibility:+!n?"visible":"hidden",pointerEvents:n?"none":void 0,marginRight:4},onClick:m})]})},J8=r=>{const{subFilterSets:e,onChange:t,onClearClick:n,isOpen:o,isTransitioning:i,onTransitionEnd:a,resources:c,errorMessages:d,placeholder:h,filterF:p,validate:m}=r;return!o&&!i?null:C.jsxs("div",{className:Or.SubFilters,style:{opacity:+o,visibility:+o?"visible":"hidden"},onTransitionEnd:a,children:[e.map((g,v)=>{var w,T,A,_;if(g.filter.type==="String"){const R=[g.filter.value??"",H=>t(g.filter,H,v)],D=d[v],I=h??g.filter.placeholder??((w=g.def)==null?void 0:w.name),F=g.filter.icon,B=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:F??"Type",tooltip:B}),C.jsx(Vc,{autoFocus:g.filter.autoFocus,className:Ke.clsx(Or.Input,Or.Sub),dataList:g.filter.dataList,maxLength:g.filter.maxLength,placeholder:I??c["Search(Placeholder)"],type:D?"Error":"Secondary",useValue:R,wrapProps:{style:{width:"100%"}},RightAddon:D&&C.jsx(ho,{className:Or.CircleAlertOutline,icon:"CircleAlertOutline",iconSize:"xs",tooltip:D,type:"Raw"})}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Select"){const R=[g.filter.value??null,B=>t(g.filter,B)],D=h??g.filter.placeholder??((T=g.def)==null?void 0:T.name),I=g.filter.icon,F=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"Menu",tooltip:F}),C.jsx(Gc,{arrowProps:{style:{marginRight:4}},className:Ke.clsx(Or.Input,Or.Sub),OptionRenderer:g.filter.OptionRenderer,options:g.filter.options,placeholder:D,type:"Secondary",useSelect:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="Date"){const R=[g.filter.value,B=>t(g.filter,B)],D=h??g.filter.placeholder??((A=g.def)==null?void 0:A.name),I=g.filter.icon,F=g.filter.iconTooltip??D;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:I??"CalendarDay",tooltip:F}),C.jsx(Rv,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,placeholder:D,type:"Raw",useDate:R}),C.jsx(Nn,{h:8})]},v)}else if(g.filter.type==="DateRange"){const R=[g.filter.value,H=>t(g.filter,H)],{noDefaultChoices:D}=g.filter,I=h??g.filter.placeholder??((_=g.def)==null?void 0:_.name),F=g.filter.icon,B=g.filter.iconTooltip??I;return C.jsxs(Rn,{style:{marginBottom:6},children:[C.jsx(Ga,{icon:F??"CalendarDay",tooltip:B}),C.jsx(Ev,{className:Ke.clsx(Or.DatePicker,Or.Input,Or.Sub),LeftAddon:C.jsx(Nn,{w:12}),maxDate:g.filter.maxDate,minDate:g.filter.minDate,noDefaultChoices:D,placeholder:I,type:"Raw",useDateRange:R})]},v)}else return null}),C.jsxs(Rn,{className:Or.Actions,children:[C.jsx(Go,{type:"Secondary",onClick:n,children:c["Clear(Button)"]}),C.jsx(Go,{onClick:()=>{m()&&p.apply()},children:c["Search(Button)"]})]})]})},Ga=r=>{const{icon:e,tooltip:t,isOpen:n=!0}=r;return C.jsx(ho,{className:Or.LeftIcon,icon:e,tooltip:t,type:"Raw",style:{width:n?24:0,marginRight:n?4:0,opacity:+n}})},Q8="_ATableHeader_1hzfz_1",e9="_LeftHeaderContent_1hzfz_11",t9="_RightHeaderContent_1hzfz_19",r9="_TopRightAddon_1hzfz_27",n9="_HItem_1hzfz_32",Pu={ATableHeader:Q8,LeftHeaderContent:e9,RightHeaderContent:t9,TopRightAddon:r9,HItem:n9},o9=r=>{const{defs:e,title:t,totalCount:n,useCheck:o,useFilteration:i,hasToggleFilteration:a,filterF:c,noFilter:d,noCount:h,isFiltered:p,TopLeftAddon:m,TopRightAddon:g,useSortation:v,resources:w=wr.ATable,filterType:T,placeholder:A}=r,[_]=S.useMemo(()=>o||[],[o]),R=S.useMemo(()=>p?w["Searched n items"](n):w["Total n items"](n),[w,p,n]),[D]=i,[I,F]=v,[B,H]=S.useState(!1),j=S.useMemo(()=>{const re=ar.values(D).filter(ne=>ne.type==="DateRange"),de=ar.keys(D).filter(ne=>re.includes(D[ne])),ye=ar.keys(e).filter(ne=>e[ne].isSortable);return de.length>0?(de.length>1&&H(!0),ye.map(te=>de.includes(te)?[te+"_Asc",te+"_Desc"]:te).flat()):ye},[e,D]),G=S.useMemo(()=>r.isRowRendered&&j.length>0,[j.length,r.isRowRendered]),fe=S.useCallback((re,de)=>{F&&(I==null?void 0:I.defKey)===re&&(I.isAsc===!0?F({defKey:re,isAsc:!1,sortF:de}):F({defKey:re,isAsc:!0,sortF:de}))},[I,F]),P=S.useRef(),[U,V]=S.useState(),[Q,se]=S.useState(I?I.defKey:j[0]),oe=S.useMemo(()=>{if(!U)return{};const re=e[U];return{SortUp:{onClick:()=>{F==null||F({defKey:U,isAsc:!0,sortF:re.sortF}),se(U)},content:()=>w["Sort up"]},SortDown:{onClick:()=>{F==null||F({defKey:U,isAsc:!1,sortF:re.sortF}),se(U)},content:()=>w["Sort down"]}}},[F,U,e,w]);return C.jsxs(C.Fragment,{children:[C.jsxs("div",{className:Ke.clsx(Pu.ATableHeader),children:[C.jsxs("div",{className:Ke.clsx(Pu.LeftHeaderContent,"NoSelect"),children:[C.jsxs(Rn,{style:{marginBottom:G?8:0},children:[m&&C.jsx("div",{className:Ke.clsx(Pu.HItem),children:m}),t&&C.jsx("div",{className:Ke.clsx(Pu.HItem),style:{whiteSpace:"nowrap"},children:t}),!h&&C.jsxs("div",{className:Ke.clsx(Pu.HItem),style:{maxHeight:14,...G&&{minHeight:14,color:"var(--label-neutral)"}},children:[R,_&&_.length>0&&C.jsxs(C.Fragment,{children:[" / ",w["Checked n items"](_.length)]})]})]}),G&&C.jsx(yC,{options:j,optionWidth:"fit-content",tabProps:{style:{marginRight:8}},type:"Tertiary",useSelect:[Q,()=>{}],optionProps:{style:{cursor:"default"},onClick:re=>{var ne;const de=re.currentTarget.textContent;if(de===w[de])return;re.currentTarget.querySelector("svg")===null&&((ne=P.current)==null||ne.open(re.currentTarget))}},OptionRenderer:re=>{const de=/_Asc|_Desc/.test(re.option),ye=(I==null?void 0:I.defKey)===re.option,ne=Q===re.option,te=I==null?void 0:I.isAsc,ge=()=>{if(de){V(void 0),se(re.option);const[ie,he]=re.option.split("_"),we=he==="Asc";F==null||F({defKey:ie,isAsc:we,sortF:e[ie].sortF})}else ne?fe(re.option,e[re.option].sortF):V(re.option)},Re=de?(ie=>{const[he,we]=ie.split("_");return(B?he+" ":"")+w[we]})(re.option):w["Sort by x"](re.option);return C.jsxs(Rn,{className:Ke.clsx(!(de&&ne)&&"IsClickable"),style:{height:"100%"},onClick:ge,children:[Re,ne&&!de&&C.jsx(en,{icon:ye?te?"RowSortUp":"RowSortDown":"RowSortBoth",style:{marginRight:-5,marginLeft:4}})]},re.option)}})]}),C.jsx(Xu,{}),C.jsxs("div",{className:Ke.clsx(Pu.RightHeaderContent,"NoSelect"),children:[!d&&C.jsx(K8,{defs:e,filterF:c,filterType:T,hasToggleFilteration:a,isFilterSort:j.length>0,isRowRendered:r.isRowRendered,placeholder:A,resources:w,useFilteration:i}),g&&C.jsx(Rn,{children:g,className:Ke.clsx(Pu.TopRightAddon)})]})]}),C.jsx(gC,{actionRef:P,defs:oe,position:bf.S,width:100,onClose:()=>V(void 0)})]})},i9=r=>{const{defs:e,pk:t,defaultDef:n,rProps:o,useSelect:i,isSelectMulti:a,selectDisabled:c,useCheck:d,checkDisabled:h,isLoading:p,isDisabled:m,title:g,entireItems:v,onStateChange:w,pagedItems:T,totalCount:A,useFilteration:_,useToggleFilteration:R,filterType:D="Default",placeholder:I,rowHeight:F=40,usePagination:B,useSortation:H,showRows:j,noHeader:G,noDefHeader:fe,noFooter:P,noFilter:U,noCount:V,noMarking:Q,noStateChangeOnMount:se,TopLeftAddon:oe,TopRightAddon:re,actionRef:de,RowRenderer:ye,resources:ne}=r,te=S.useMemo(()=>({...wr.ATable,...ne}),[ne]),ge=S.useCallback((Me,et)=>t!==void 0?Array.isArray(t)?t.every(ke=>Ya.isEqual(Me[ke],et[ke])):Ya.isEqual(Me[t],et[t]):Ya.isEqual(Me,et),[t]),Te=S.useMemo(()=>({content:s9,...n}),[n]),Re=S.useMemo(()=>{const Me={};return ar.keys(e).forEach(et=>{const ke=e[et],rt={...Te,...ke};Me[et]=rt}),Me},[Te,e]),[ie,he]=wn(Ya.cloneDeep(_),{"":{type:"String",placeholder:te["Search(Placeholder)"],value:""}}),[we,$e]=wn(Ya.cloneDeep(R),void 0),[Ee,Pe]=S.useState(!1),[Be,Ve]=S.useMemo(()=>Ee&&we?[we,$e]:[ie,he],[ie,Ee,he,$e,we]),[Ne,_e]=S.useState(Be),Oe=S.useMemo(()=>v?Pl.applyFilteration(v,Re,Ne):[],[v,Re,Ne]),Ce=S.useMemo(()=>{for(const Me in Ne){const et=Ne[Me];if(et.value!==void 0&&et.value!==null&&et.value!=="")return!0}return!1},[Ne]),[qe,it]=wn(H,void 0),at=S.useMemo(()=>Pl.applySortation(Oe,Re,qe),[Oe,Re,qe]),_t=S.useMemo(()=>{if(T!==void 0)return Pl.applySortation(T,Re,qe)},[T,Re,qe]),[Ye,Xe]=wn(B,{page:1,pageSize:50,pageRange:10}),ft=S.useMemo(()=>({pageSize:50,page:1,pageRange:10,...Ye}),[Ye]),{pagedItems:mt,totalCount:Fe,pagination:Qe}=S.useMemo(()=>{const Me={...ft};if(_t!==void 0){let et=A??_t.length;const ke=Pl.getPages(et,Me.pageSize);return Me.page>ke.length?Me.page=ke.length:Me.page<1&&(Me.page=1),{pagedItems:_t,totalCount:et,pagination:Me}}else if(v!==void 0){const et=A??at.length,ke=Pl.getPages(et,Me.pageSize);return Me.page>ke.length?Me.page=ke.length:Me.page<1&&(Me.page=1),{pagedItems:Pl.applyPagination(at,Me.page,Me.pageSize),totalCount:et,pagination:Me}}else return{pagedItems:[],totalCount:A??0,pagination:ft}},[v,_t,A,ft,at]),{pages:At,rangedPages:Nt}=S.useMemo(()=>Pl.getRangedPages(Qe.page,Fe,Qe.pageSize,Qe.pageRange),[Fe,Qe.pageSize,Qe.page,Qe.pageRange]),[Rt,Ot]=S.useMemo(()=>d??[],[d]),Wt=S.useMemo(()=>mt.filter(Me=>Rt==null?void 0:Rt.some(et=>ge(et,Me))),[mt,Rt,ge]),rr=S.useMemo(()=>mt.filter(Me=>!(h!=null&&h(Me))),[mt,h]),or=S.useMemo(()=>rr.length>0&&rr.every(Me=>Wt.some(et=>ge(et,Me))),[Wt,rr,ge]),hr=S.useMemo(()=>or?!1:rr.some(Me=>Wt.some(et=>ge(et,Me))),[Wt,rr,or,ge]),ur=S.useCallback(()=>{!Rt||!Ot||m||Ot(or||hr?Rt.filter(Me=>!rr.some(et=>ge(et,Me))):[...Rt,...rr])},[Rt,Ot,or,hr,rr,m,ge]),Ae=S.useCallback(Me=>{!Rt||!Ot||m||(Rt.some(et=>ge(et,Me))?Ot(Rt.filter(et=>!ge(et,Me))):Ot([...Rt,Me]))},[Rt,Ot,m,ge]);S.useEffect(()=>{if(!Ot||!Rt||!h)return;Rt.filter(et=>h(et)).length>0&&Ot(Rt.filter(et=>!h(et)))},[h,Rt,Ot]);const ae=S.useMemo(()=>({hContent:Rt&&C.jsx(af,{isIndeterminate:hr,useCheck:[or,ur]}),content:Me=>{const{item:et}=Me,ke=h==null?void 0:h(et),rt=typeof ke=="string"?ke:void 0,dt=Rt==null?void 0:Rt.some(Bt=>ge(Bt,et));return C.jsx(af,{isDisabled:ke,style:{zIndex:1},tooltip:rt,useCheck:[dt,()=>Ae(et)],onClick:Bt=>Bt.stopPropagation()})},minWidth:32,maxWidth:32}),[Rt,or,hr,ge,ur,h,Ae]),ut=S.useMemo(()=>d?{checkDef:ae,...Re}:Re,[Re,ae,d]),[vt,Ft]=S.useState(!1),Pt=S.useMemo(()=>p??vt,[p,vt]),kt=S.useCallback(async Me=>{w&&(Ft(!0),await w(Me),Ft(!1)),Xe==null||Xe(Me.pagination),it==null||it(Me.sortation),_e(Me.filteration)},[w,Xe,it]);S.useEffect(()=>{if(!de)return;const Me=ke=>{const rt={entireItems:v,filteration:Be,pagination:Qe,sortation:qe},dt=ke?ke(rt):rt;kt(dt)},et=ke=>{const rt={...Qe,page:1},dt=ke?ke(Be):Be;kt({entireItems:v,filteration:dt,pagination:rt,sortation:qe}),Ve==null||Ve(dt)};de.current={fireOnStateChange:Me,applyFilteration:et}},[de,kt,v,Ve,Be,Qe,qe]);const Ht=S.useCallback(Me=>{Me.page===Qe.page&&Me.pageSize===Qe.pageSize||(Me.page<1?Me.page=1:Me.page>At[At.length-1]&&(Me.page=At[At.length-1]),kt({entireItems:v,filteration:Ne,pagination:Me,sortation:qe}))},[Qe,At,kt,v,Ne,qe]),Ze=S.useCallback(Me=>{Ve&&Ve(Me)},[Ve]),lt=S.useCallback(Me=>{kt({entireItems:v,filteration:Ne,pagination:Qe,sortation:Me})},[kt,v,Ne,Qe]),ht=S.useCallback(Me=>{Ht({...Qe,page:Me})},[Ht,Qe]),Ct=S.useCallback(()=>{ht(Qe.page-1)},[ht,Qe.page]),tt=S.useCallback(()=>{ht(Qe.page+1)},[ht,Qe.page]),yt=S.useCallback(()=>{ht(1)},[ht]),Dt=S.useCallback(()=>{ht(At[At.length-1])},[ht,At]),Gt=S.useMemo(()=>({move:ht,movePrev:Ct,moveNext:tt,moveFirst:yt,moveLast:Dt}),[ht,Ct,tt,yt,Dt]),ir=S.useCallback(()=>{const Me={...Qe,page:1};kt({entireItems:v,filteration:Be,pagination:Me,sortation:qe})},[Be,Qe,kt,v,qe]),zt=S.useCallback(()=>{Pe(!Ee)},[Ee]),vr=S.useCallback(()=>{Ee&&we?$e==null||$e(k0(we)):Ve==null||Ve(k0(ie))},[Ee,we,$e,ie,Ve]),Br=S.useMemo(()=>({apply:ir,toggle:zt,clear:vr}),[ir,zt,vr]);bC(()=>{se||kt({entireItems:v,filteration:Be,pagination:Qe,sortation:qe})});const pr=S.useMemo(()=>ar.map(Re,([et])=>Re[et].minWidth??Bc).reduce((et,ke)=>et+ke,0),[Re]),pe=S.useMemo(()=>ye!==void 0,[ye]);return C.jsxs(Yr,{className:l8.ATable,isDisabled:m,style:{minWidth:pr},children:[!G&&C.jsx(o9,{defs:Re,filterF:Br,filterType:D,hasToggleFilteration:we!==void 0,isFiltered:Ce,isRowRendered:pe,noCount:V,noFilter:U,placeholder:I,resources:te,title:g,TopLeftAddon:oe,TopRightAddon:re,totalCount:Fe,useCheck:d&&Rt?[Rt,Ot]:void 0,useFilteration:[Be,Ze],useSortation:[qe,lt]}),C.jsx(R8,{appliedFilteration:Ne,defs:ut,isEqual:ge,isLoading:Pt,isRowRendered:pe,isSelectMulti:a,isTableDisabled:m,noDefHeader:fe,noMarking:Q,pagedItems:mt,pagination:Qe,resources:te,rowHeight:F,RowRenderer:ye,rProps:o,selectDisabled:c,showRows:j,useSelect:i,useSortation:[qe,lt]}),!P&&C.jsx(P8,{pageF:Gt,pages:At,pagination:Qe,rangedPages:Nt})]})},s9=r=>{const{defKey:e,item:t}=r;if(ar.hasKey(t,e)){const n=t[e];return ar.isReactNode(n)?n:null}else return null};function k0(r){const e={...r};for(const t in e)e[t].value=void 0;return e}const a9="_AText_1asz6_1",l9={AText:a9},SC=r=>{const{text:e,styled:t,style:n}=r,o=S.useMemo(()=>{if(e)if(t)if(n){if(t===!0)return n==="bold"?C.jsx("b",{children:e}):C.jsx("span",{style:n,children:e});if(typeof t=="string"){const i=e.split(t);return n==="bold"?i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1?C.jsx("b",{children:hp(t)}):""]},c)):i.map((a,c)=>C.jsxs(S.Fragment,{children:[hp(a),c<i.length-1&&C.jsx("span",{style:n,children:hp(t)})]},c))}}else return e;else return e;else return""},[e,n,t]);return C.jsx("div",{className:Ke.clsx("Body1Reading",l9.AText,"NoSelect"),children:o})};function hp(r){const e=r.split(`
167
167
  `);return e.map((t,n)=>C.jsxs(S.Fragment,{children:[t,n!==e.length-1&&C.jsx("br",{})]},n))}const c9="_Base_cpm4t_7",u9="_ATextArea_cpm4t_11",d9="_Primary_cpm4t_34",f9="_UnAvailable_cpm4t_39",h9="_Secondary_cpm4t_47",p9="_ReadOnly_cpm4t_59",pp={Base:c9,ATextArea:u9,Primary:d9,UnAvailable:f9,Secondary:h9,ReadOnly:p9,Error:"_Error_cpm4t_66"},g9=["Primary","Secondary","ReadOnly","Error"],m9=r=>{const{onEnterPress:e,errorMessage:t,type:n="Primary",textAreaRef:o,useValue:i,rows:a,isReadonly:c,placeholder:d,maxLength:h,tabIndex:p,autoFocus:m,textAreaProps:g,...v}=r,[{wrapId:w,wrapProps:T,labelProps:A,..._},R]=Ku(v),D=S.useMemo(()=>v9(t)?"Error":n,[t,n]),I=S.useMemo(()=>D==="ReadOnly"?!0:c,[D,c]),F=S.useMemo(()=>R.isDisabled||R.isLoading,[R.isDisabled,R.isLoading]),[B,H]=wn(i,""),j=S.useCallback(P=>{H&&H(P)},[H]),G=S.useCallback(P=>{var U;F||(j(P.target.value),(U=g==null?void 0:g.onChange)==null||U.call(g,P))},[F,j,g]),fe=S.useCallback(P=>{var U;if(!F){if((U=g==null?void 0:g.onKeyDown)==null||U.call(g,P),P.key==="Tab"){const V=P.currentTarget.selectionStart,Q=P.currentTarget.selectionEnd;P.currentTarget.value=P.currentTarget.value.substring(0,V)+" "+P.currentTarget.value.substring(Q),P.currentTarget.selectionStart=P.currentTarget.selectionEnd=V+1,P.preventDefault()}else P.key==="Enter"&&(e==null||e(P.currentTarget.value),P.stopPropagation());P.key!=="Escape"&&P.stopPropagation()}},[F,e,g]);return C.jsx(Wc,{wrapId:w,wrapProps:T,labelProps:A,..._,children:C.jsx(Yr,{...R,className:Ke.clsx(pp.Base,R.className),children:C.jsx("textarea",{...g,ref:o,autoFocus:m,className:Ke.clsx(pp.ATextArea,pp[D],F&&pp.UnAvailable,g==null?void 0:g.className),maxLength:h,placeholder:d,readOnly:I,rows:a,tabIndex:R.isDisabled||R.isLoading?-1:p,value:B,onChange:G,onKeyDown:fe})})})};function v9(r){return Array.isArray(r)?r.filter(Boolean).length>0:!!r}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:_C,setPrototypeOf:I0,isFrozen:y9,getPrototypeOf:b9,getOwnPropertyDescriptor:x9}=Object;let{freeze:mi,seal:Os,create:AC}=Object,{apply:N1,construct:P1}=typeof Reflect<"u"&&Reflect;mi||(mi=function(e){return e});Os||(Os=function(e){return e});N1||(N1=function(e,t,n){return e.apply(t,n)});P1||(P1=function(e,t){return new e(...t)});const gp=vi(Array.prototype.forEach),w9=vi(Array.prototype.lastIndexOf),M0=vi(Array.prototype.pop),Kf=vi(Array.prototype.push),C9=vi(Array.prototype.splice),zp=vi(String.prototype.toLowerCase),pm=vi(String.prototype.toString),L0=vi(String.prototype.match),Xf=vi(String.prototype.replace),S9=vi(String.prototype.indexOf),_9=vi(String.prototype.trim),aa=vi(Object.prototype.hasOwnProperty),hi=vi(RegExp.prototype.test),Jf=A9(TypeError);function vi(r){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return N1(r,e,n)}}function A9(r){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return P1(r,t)}}function Wr(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:zp;I0&&I0(r,null);let n=e.length;for(;n--;){let o=e[n];if(typeof o=="string"){const i=t(o);i!==o&&(y9(e)||(e[n]=i),o=i)}r[o]=!0}return r}function E9(r){for(let e=0;e<r.length;e++)aa(r,e)||(r[e]=null);return r}function Nl(r){const e=AC(null);for(const[t,n]of _C(r))aa(r,t)&&(Array.isArray(n)?e[t]=E9(n):n&&typeof n=="object"&&n.constructor===Object?e[t]=Nl(n):e[t]=n);return e}function Qf(r,e){for(;r!==null;){const n=x9(r,e);if(n){if(n.get)return vi(n.get);if(typeof n.value=="function")return vi(n.value)}r=b9(r)}function t(){return null}return t}const D0=mi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),gm=mi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),mm=mi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),T9=mi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),vm=mi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),R9=mi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O0=mi(["#text"]),N0=mi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ym=mi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),P0=mi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),mp=mi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),k9=Os(/\{\{[\w\W]*|[\w\W]*\}\}/gm),I9=Os(/<%[\w\W]*|[\w\W]*%>/gm),M9=Os(/\$\{[\w\W]*/gm),L9=Os(/^data-[\-\w.\u00B7-\uFFFF]+$/),D9=Os(/^aria-[\-\w]+$/),EC=Os(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),O9=Os(/^(?:\w+script|data):/i),N9=Os(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TC=Os(/^html$/i),P9=Os(/^[a-z][.\w]*(-[.\w]+)+$/i);var B0=Object.freeze({__proto__:null,ARIA_ATTR:D9,ATTR_WHITESPACE:N9,CUSTOM_ELEMENT:P9,DATA_ATTR:L9,DOCTYPE_NAME:TC,ERB_EXPR:I9,IS_ALLOWED_URI:EC,IS_SCRIPT_OR_DATA:O9,MUSTACHE_EXPR:k9,TMPLIT_EXPR:M9});const eh={element:1,text:3,progressingInstruction:7,comment:8,document:9},B9=function(){return typeof window>"u"?null:window},F9=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const o="data-tt-policy-suffix";t&&t.hasAttribute(o)&&(n=t.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},F0=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function RC(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:B9();const e=It=>RC(It);if(e.version="3.2.6",e.removed=[],!r||!r.document||r.document.nodeType!==eh.document||!r.Element)return e.isSupported=!1,e;let{document:t}=r;const n=t,o=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:c,Element:d,NodeFilter:h,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:v}=r,w=d.prototype,T=Qf(w,"cloneNode"),A=Qf(w,"remove"),_=Qf(w,"nextSibling"),R=Qf(w,"childNodes"),D=Qf(w,"parentNode");if(typeof a=="function"){const It=t.createElement("template");It.content&&It.content.ownerDocument&&(t=It.content.ownerDocument)}let I,F="";const{implementation:B,createNodeIterator:H,createDocumentFragment:j,getElementsByTagName:G}=t,{importNode:fe}=n;let P=F0();e.isSupported=typeof _C=="function"&&typeof D=="function"&&B&&B.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:U,ERB_EXPR:V,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:oe,IS_SCRIPT_OR_DATA:re,ATTR_WHITESPACE:de,CUSTOM_ELEMENT:ye}=B0;let{IS_ALLOWED_URI:ne}=B0,te=null;const ge=Wr({},[...D0,...gm,...mm,...vm,...O0]);let Te=null;const Re=Wr({},[...N0,...ym,...P0,...mp]);let ie=Object.seal(AC(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),he=null,we=null,$e=!0,Ee=!0,Pe=!1,Be=!0,Ve=!1,Ne=!0,_e=!1,Oe=!1,Ce=!1,qe=!1,it=!1,at=!1,_t=!0,Ye=!1;const Xe="user-content-";let ft=!0,mt=!1,Fe={},Qe=null;const At=Wr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Nt=null;const Rt=Wr({},["audio","video","img","source","image","track"]);let Ot=null;const Wt=Wr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rr="http://www.w3.org/1998/Math/MathML",or="http://www.w3.org/2000/svg",hr="http://www.w3.org/1999/xhtml";let ur=hr,Ae=!1,ae=null;const ut=Wr({},[rr,or,hr],pm);let vt=Wr({},["mi","mo","mn","ms","mtext"]),Ft=Wr({},["annotation-xml"]);const Pt=Wr({},["title","style","font","a","script"]);let kt=null;const Ht=["application/xhtml+xml","text/html"],Ze="text/html";let lt=null,ht=null;const Ct=t.createElement("form"),tt=function(me){return me instanceof RegExp||me instanceof Function},yt=function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ht&&ht===me)){if((!me||typeof me!="object")&&(me={}),me=Nl(me),kt=Ht.indexOf(me.PARSER_MEDIA_TYPE)===-1?Ze:me.PARSER_MEDIA_TYPE,lt=kt==="application/xhtml+xml"?pm:zp,te=aa(me,"ALLOWED_TAGS")?Wr({},me.ALLOWED_TAGS,lt):ge,Te=aa(me,"ALLOWED_ATTR")?Wr({},me.ALLOWED_ATTR,lt):Re,ae=aa(me,"ALLOWED_NAMESPACES")?Wr({},me.ALLOWED_NAMESPACES,pm):ut,Ot=aa(me,"ADD_URI_SAFE_ATTR")?Wr(Nl(Wt),me.ADD_URI_SAFE_ATTR,lt):Wt,Nt=aa(me,"ADD_DATA_URI_TAGS")?Wr(Nl(Rt),me.ADD_DATA_URI_TAGS,lt):Rt,Qe=aa(me,"FORBID_CONTENTS")?Wr({},me.FORBID_CONTENTS,lt):At,he=aa(me,"FORBID_TAGS")?Wr({},me.FORBID_TAGS,lt):Nl({}),we=aa(me,"FORBID_ATTR")?Wr({},me.FORBID_ATTR,lt):Nl({}),Fe=aa(me,"USE_PROFILES")?me.USE_PROFILES:!1,$e=me.ALLOW_ARIA_ATTR!==!1,Ee=me.ALLOW_DATA_ATTR!==!1,Pe=me.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=me.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ve=me.SAFE_FOR_TEMPLATES||!1,Ne=me.SAFE_FOR_XML!==!1,_e=me.WHOLE_DOCUMENT||!1,qe=me.RETURN_DOM||!1,it=me.RETURN_DOM_FRAGMENT||!1,at=me.RETURN_TRUSTED_TYPE||!1,Ce=me.FORCE_BODY||!1,_t=me.SANITIZE_DOM!==!1,Ye=me.SANITIZE_NAMED_PROPS||!1,ft=me.KEEP_CONTENT!==!1,mt=me.IN_PLACE||!1,ne=me.ALLOWED_URI_REGEXP||EC,ur=me.NAMESPACE||hr,vt=me.MATHML_TEXT_INTEGRATION_POINTS||vt,Ft=me.HTML_INTEGRATION_POINTS||Ft,ie=me.CUSTOM_ELEMENT_HANDLING||{},me.CUSTOM_ELEMENT_HANDLING&&tt(me.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ie.tagNameCheck=me.CUSTOM_ELEMENT_HANDLING.tagNameCheck),me.CUSTOM_ELEMENT_HANDLING&&tt(me.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ie.attributeNameCheck=me.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),me.CUSTOM_ELEMENT_HANDLING&&typeof me.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ie.allowCustomizedBuiltInElements=me.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ve&&(Ee=!1),it&&(qe=!0),Fe&&(te=Wr({},O0),Te=[],Fe.html===!0&&(Wr(te,D0),Wr(Te,N0)),Fe.svg===!0&&(Wr(te,gm),Wr(Te,ym),Wr(Te,mp)),Fe.svgFilters===!0&&(Wr(te,mm),Wr(Te,ym),Wr(Te,mp)),Fe.mathMl===!0&&(Wr(te,vm),Wr(Te,P0),Wr(Te,mp))),me.ADD_TAGS&&(te===ge&&(te=Nl(te)),Wr(te,me.ADD_TAGS,lt)),me.ADD_ATTR&&(Te===Re&&(Te=Nl(Te)),Wr(Te,me.ADD_ATTR,lt)),me.ADD_URI_SAFE_ATTR&&Wr(Ot,me.ADD_URI_SAFE_ATTR,lt),me.FORBID_CONTENTS&&(Qe===At&&(Qe=Nl(Qe)),Wr(Qe,me.FORBID_CONTENTS,lt)),ft&&(te["#text"]=!0),_e&&Wr(te,["html","head","body"]),te.table&&(Wr(te,["tbody"]),delete he.tbody),me.TRUSTED_TYPES_POLICY){if(typeof me.TRUSTED_TYPES_POLICY.createHTML!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof me.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Jf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=me.TRUSTED_TYPES_POLICY,F=I.createHTML("")}else I===void 0&&(I=F9(v,o)),I!==null&&typeof F=="string"&&(F=I.createHTML(""));mi&&mi(me),ht=me}},Dt=Wr({},[...gm,...mm,...T9]),Gt=Wr({},[...vm,...R9]),ir=function(me){let st=D(me);(!st||!st.tagName)&&(st={namespaceURI:ur,tagName:"template"});const xt=zp(me.tagName),dr=zp(st.tagName);return ae[me.namespaceURI]?me.namespaceURI===or?st.namespaceURI===hr?xt==="svg":st.namespaceURI===rr?xt==="svg"&&(dr==="annotation-xml"||vt[dr]):!!Dt[xt]:me.namespaceURI===rr?st.namespaceURI===hr?xt==="math":st.namespaceURI===or?xt==="math"&&Ft[dr]:!!Gt[xt]:me.namespaceURI===hr?st.namespaceURI===or&&!Ft[dr]||st.namespaceURI===rr&&!vt[dr]?!1:!Gt[xt]&&(Pt[xt]||!Dt[xt]):!!(kt==="application/xhtml+xml"&&ae[me.namespaceURI]):!1},zt=function(me){Kf(e.removed,{element:me});try{D(me).removeChild(me)}catch{A(me)}},vr=function(me,st){try{Kf(e.removed,{attribute:st.getAttributeNode(me),from:st})}catch{Kf(e.removed,{attribute:null,from:st})}if(st.removeAttribute(me),me==="is")if(qe||it)try{zt(st)}catch{}else try{st.setAttribute(me,"")}catch{}},Br=function(me){let st=null,xt=null;if(Ce)me="<remove></remove>"+me;else{const lr=L0(me,/^[\r\n\t ]+/);xt=lr&&lr[0]}kt==="application/xhtml+xml"&&ur===hr&&(me='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+me+"</body></html>");const dr=I?I.createHTML(me):me;if(ur===hr)try{st=new g().parseFromString(dr,kt)}catch{}if(!st||!st.documentElement){st=B.createDocument(ur,"template",null);try{st.documentElement.innerHTML=Ae?F:dr}catch{}}const Fr=st.body||st.documentElement;return me&&xt&&Fr.insertBefore(t.createTextNode(xt),Fr.childNodes[0]||null),ur===hr?G.call(st,_e?"html":"body")[0]:_e?st.documentElement:Fr},pr=function(me){return H.call(me.ownerDocument||me,me,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},pe=function(me){return me instanceof m&&(typeof me.nodeName!="string"||typeof me.textContent!="string"||typeof me.removeChild!="function"||!(me.attributes instanceof p)||typeof me.removeAttribute!="function"||typeof me.setAttribute!="function"||typeof me.namespaceURI!="string"||typeof me.insertBefore!="function"||typeof me.hasChildNodes!="function")},Me=function(me){return typeof c=="function"&&me instanceof c};function et(It,me,st){gp(It,xt=>{xt.call(e,me,st,ht)})}const ke=function(me){let st=null;if(et(P.beforeSanitizeElements,me,null),pe(me))return zt(me),!0;const xt=lt(me.nodeName);if(et(P.uponSanitizeElement,me,{tagName:xt,allowedTags:te}),Ne&&me.hasChildNodes()&&!Me(me.firstElementChild)&&hi(/<[/\w!]/g,me.innerHTML)&&hi(/<[/\w!]/g,me.textContent)||me.nodeType===eh.progressingInstruction||Ne&&me.nodeType===eh.comment&&hi(/<[/\w]/g,me.data))return zt(me),!0;if(!te[xt]||he[xt]){if(!he[xt]&&dt(xt)&&(ie.tagNameCheck instanceof RegExp&&hi(ie.tagNameCheck,xt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(xt)))return!1;if(ft&&!Qe[xt]){const dr=D(me)||me.parentNode,Fr=R(me)||me.childNodes;if(Fr&&dr){const lr=Fr.length;for(let xr=lr-1;xr>=0;--xr){const tn=T(Fr[xr],!0);tn.__removalCount=(me.__removalCount||0)+1,dr.insertBefore(tn,_(me))}}}return zt(me),!0}return me instanceof d&&!ir(me)||(xt==="noscript"||xt==="noembed"||xt==="noframes")&&hi(/<\/no(script|embed|frames)/i,me.innerHTML)?(zt(me),!0):(Ve&&me.nodeType===eh.text&&(st=me.textContent,gp([U,V,Q],dr=>{st=Xf(st,dr," ")}),me.textContent!==st&&(Kf(e.removed,{element:me.cloneNode()}),me.textContent=st)),et(P.afterSanitizeElements,me,null),!1)},rt=function(me,st,xt){if(_t&&(st==="id"||st==="name")&&(xt in t||xt in Ct))return!1;if(!(Ee&&!we[st]&&hi(se,st))){if(!($e&&hi(oe,st))){if(!Te[st]||we[st]){if(!(dt(me)&&(ie.tagNameCheck instanceof RegExp&&hi(ie.tagNameCheck,me)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(me))&&(ie.attributeNameCheck instanceof RegExp&&hi(ie.attributeNameCheck,st)||ie.attributeNameCheck instanceof Function&&ie.attributeNameCheck(st))||st==="is"&&ie.allowCustomizedBuiltInElements&&(ie.tagNameCheck instanceof RegExp&&hi(ie.tagNameCheck,xt)||ie.tagNameCheck instanceof Function&&ie.tagNameCheck(xt))))return!1}else if(!Ot[st]){if(!hi(ne,Xf(xt,de,""))){if(!((st==="src"||st==="xlink:href"||st==="href")&&me!=="script"&&S9(xt,"data:")===0&&Nt[me])){if(!(Pe&&!hi(re,Xf(xt,de,"")))){if(xt)return!1}}}}}}return!0},dt=function(me){return me!=="annotation-xml"&&L0(me,ye)},Bt=function(me){et(P.beforeSanitizeAttributes,me,null);const{attributes:st}=me;if(!st||pe(me))return;const xt={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Te,forceKeepAttr:void 0};let dr=st.length;for(;dr--;){const Fr=st[dr],{name:lr,namespaceURI:xr,value:tn}=Fr,sn=lt(lr),Pn=tn;let zr=lr==="value"?Pn:_9(Pn);if(xt.attrName=sn,xt.attrValue=zr,xt.keepAttr=!0,xt.forceKeepAttr=void 0,et(P.uponSanitizeAttribute,me,xt),zr=xt.attrValue,Ye&&(sn==="id"||sn==="name")&&(vr(lr,me),zr=Xe+zr),Ne&&hi(/((--!?|])>)|<\/(style|title)/i,zr)){vr(lr,me);continue}if(xt.forceKeepAttr)continue;if(!xt.keepAttr){vr(lr,me);continue}if(!Be&&hi(/\/>/i,zr)){vr(lr,me);continue}Ve&&gp([U,V,Q],kn=>{zr=Xf(zr,kn," ")});const rn=lt(me.nodeName);if(!rt(rn,sn,zr)){vr(lr,me);continue}if(I&&typeof v=="object"&&typeof v.getAttributeType=="function"&&!xr)switch(v.getAttributeType(rn,sn)){case"TrustedHTML":{zr=I.createHTML(zr);break}case"TrustedScriptURL":{zr=I.createScriptURL(zr);break}}if(zr!==Pn)try{xr?me.setAttributeNS(xr,lr,zr):me.setAttribute(lr,zr),pe(me)?zt(me):M0(e.removed)}catch{vr(lr,me)}}et(P.afterSanitizeAttributes,me,null)},Yt=function It(me){let st=null;const xt=pr(me);for(et(P.beforeSanitizeShadowDOM,me,null);st=xt.nextNode();)et(P.uponSanitizeShadowNode,st,null),ke(st),Bt(st),st.content instanceof i&&It(st.content);et(P.afterSanitizeShadowDOM,me,null)};return e.sanitize=function(It){let me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},st=null,xt=null,dr=null,Fr=null;if(Ae=!It,Ae&&(It="<!-->"),typeof It!="string"&&!Me(It))if(typeof It.toString=="function"){if(It=It.toString(),typeof It!="string")throw Jf("dirty is not a string, aborting")}else throw Jf("toString is not a function");if(!e.isSupported)return It;if(Oe||yt(me),e.removed=[],typeof It=="string"&&(mt=!1),mt){if(It.nodeName){const tn=lt(It.nodeName);if(!te[tn]||he[tn])throw Jf("root node is forbidden and cannot be sanitized in-place")}}else if(It instanceof c)st=Br("<!---->"),xt=st.ownerDocument.importNode(It,!0),xt.nodeType===eh.element&&xt.nodeName==="BODY"||xt.nodeName==="HTML"?st=xt:st.appendChild(xt);else{if(!qe&&!Ve&&!_e&&It.indexOf("<")===-1)return I&&at?I.createHTML(It):It;if(st=Br(It),!st)return qe?null:at?F:""}st&&Ce&&zt(st.firstChild);const lr=pr(mt?It:st);for(;dr=lr.nextNode();)ke(dr),Bt(dr),dr.content instanceof i&&Yt(dr.content);if(mt)return It;if(qe){if(it)for(Fr=j.call(st.ownerDocument);st.firstChild;)Fr.appendChild(st.firstChild);else Fr=st;return(Te.shadowroot||Te.shadowrootmode)&&(Fr=fe.call(n,Fr,!0)),Fr}let xr=_e?st.outerHTML:st.innerHTML;return _e&&te["!doctype"]&&st.ownerDocument&&st.ownerDocument.doctype&&st.ownerDocument.doctype.name&&hi(TC,st.ownerDocument.doctype.name)&&(xr="<!DOCTYPE "+st.ownerDocument.doctype.name+`>
168
168
  `+xr),Ve&&gp([U,V,Q],tn=>{xr=Xf(xr,tn," ")}),I&&at?I.createHTML(xr):xr},e.setConfig=function(){let It=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};yt(It),Oe=!0},e.clearConfig=function(){ht=null,Oe=!1},e.isValidAttribute=function(It,me,st){ht||yt({});const xt=lt(It),dr=lt(me);return rt(xt,dr,st)},e.addHook=function(It,me){typeof me=="function"&&Kf(P[It],me)},e.removeHook=function(It,me){if(me!==void 0){const st=w9(P[It],me);return st===-1?void 0:C9(P[It],st,1)[0]}return M0(P[It])},e.removeHooks=function(It){P[It]=[]},e.removeAllHooks=function(){P=F0()},e}var j9=RC(),vp={exports:{}},bm,j0;function H9(){if(j0)return bm;j0=1;var r=-1,e=1,t=0;function n(P,U,V,Q,se){if(P===U)return P?[[t,P]]:[];if(V!=null){var oe=G(P,U,V);if(oe)return oe}var re=c(P,U),de=P.substring(0,re);P=P.substring(re),U=U.substring(re),re=h(P,U);var ye=P.substring(P.length-re);P=P.substring(0,P.length-re),U=U.substring(0,U.length-re);var ne=o(P,U);return de&&ne.unshift([t,de]),ye&&ne.push([t,ye]),R(ne,se),Q&&m(ne),ne}function o(P,U){var V;if(!P)return[[e,U]];if(!U)return[[r,P]];var Q=P.length>U.length?P:U,se=P.length>U.length?U:P,oe=Q.indexOf(se);if(oe!==-1)return V=[[e,Q.substring(0,oe)],[t,se],[e,Q.substring(oe+se.length)]],P.length>U.length&&(V[0][0]=V[2][0]=r),V;if(se.length===1)return[[r,P],[e,U]];var re=p(P,U);if(re){var de=re[0],ye=re[1],ne=re[2],te=re[3],ge=re[4],Te=n(de,ne),Re=n(ye,te);return Te.concat([[t,ge]],Re)}return i(P,U)}function i(P,U){for(var V=P.length,Q=U.length,se=Math.ceil((V+Q)/2),oe=se,re=2*se,de=new Array(re),ye=new Array(re),ne=0;ne<re;ne++)de[ne]=-1,ye[ne]=-1;de[oe+1]=0,ye[oe+1]=0;for(var te=V-Q,ge=te%2!==0,Te=0,Re=0,ie=0,he=0,we=0;we<se;we++){for(var $e=-we+Te;$e<=we-Re;$e+=2){var Ee=oe+$e,Pe;$e===-we||$e!==we&&de[Ee-1]<de[Ee+1]?Pe=de[Ee+1]:Pe=de[Ee-1]+1;for(var Be=Pe-$e;Pe<V&&Be<Q&&P.charAt(Pe)===U.charAt(Be);)Pe++,Be++;if(de[Ee]=Pe,Pe>V)Re+=2;else if(Be>Q)Te+=2;else if(ge){var Ve=oe+te-$e;if(Ve>=0&&Ve<re&&ye[Ve]!==-1){var Ne=V-ye[Ve];if(Pe>=Ne)return a(P,U,Pe,Be)}}}for(var _e=-we+ie;_e<=we-he;_e+=2){var Ve=oe+_e,Ne;_e===-we||_e!==we&&ye[Ve-1]<ye[Ve+1]?Ne=ye[Ve+1]:Ne=ye[Ve-1]+1;for(var Oe=Ne-_e;Ne<V&&Oe<Q&&P.charAt(V-Ne-1)===U.charAt(Q-Oe-1);)Ne++,Oe++;if(ye[Ve]=Ne,Ne>V)he+=2;else if(Oe>Q)ie+=2;else if(!ge){var Ee=oe+te-_e;if(Ee>=0&&Ee<re&&de[Ee]!==-1){var Pe=de[Ee],Be=oe+Pe-Ee;if(Ne=V-Ne,Pe>=Ne)return a(P,U,Pe,Be)}}}}return[[r,P],[e,U]]}function a(P,U,V,Q){var se=P.substring(0,V),oe=U.substring(0,Q),re=P.substring(V),de=U.substring(Q),ye=n(se,oe),ne=n(re,de);return ye.concat(ne)}function c(P,U){if(!P||!U||P.charAt(0)!==U.charAt(0))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,oe=0;V<se;)P.substring(oe,se)==U.substring(oe,se)?(V=se,oe=V):Q=se,se=Math.floor((Q-V)/2+V);return D(P.charCodeAt(se-1))&&se--,se}function d(P,U){var V=P.length,Q=U.length;if(V==0||Q==0)return 0;V>Q?P=P.substring(V-Q):V<Q&&(U=U.substring(0,V));var se=Math.min(V,Q);if(P==U)return se;for(var oe=0,re=1;;){var de=P.substring(se-re),ye=U.indexOf(de);if(ye==-1)return oe;re+=ye,(ye==0||P.substring(se-re)==U.substring(0,re))&&(oe=re,re++)}}function h(P,U){if(!P||!U||P.slice(-1)!==U.slice(-1))return 0;for(var V=0,Q=Math.min(P.length,U.length),se=Q,oe=0;V<se;)P.substring(P.length-se,P.length-oe)==U.substring(U.length-se,U.length-oe)?(V=se,oe=V):Q=se,se=Math.floor((Q-V)/2+V);return I(P.charCodeAt(P.length-se))&&se--,se}function p(P,U){var V=P.length>U.length?P:U,Q=P.length>U.length?U:P;if(V.length<4||Q.length*2<V.length)return null;function se(Re,ie,he){for(var we=Re.substring(he,he+Math.floor(Re.length/4)),$e=-1,Ee="",Pe,Be,Ve,Ne;($e=ie.indexOf(we,$e+1))!==-1;){var _e=c(Re.substring(he),ie.substring($e)),Oe=h(Re.substring(0,he),ie.substring(0,$e));Ee.length<Oe+_e&&(Ee=ie.substring($e-Oe,$e)+ie.substring($e,$e+_e),Pe=Re.substring(0,he-Oe),Be=Re.substring(he+_e),Ve=ie.substring(0,$e-Oe),Ne=ie.substring($e+_e))}return Ee.length*2>=Re.length?[Pe,Be,Ve,Ne,Ee]:null}var oe=se(V,Q,Math.ceil(V.length/4)),re=se(V,Q,Math.ceil(V.length/2)),de;if(!oe&&!re)return null;re?oe?de=oe[4].length>re[4].length?oe:re:de=re:de=oe;var ye,ne,te,ge;P.length>U.length?(ye=de[0],ne=de[1],te=de[2],ge=de[3]):(te=de[0],ge=de[1],ye=de[2],ne=de[3]);var Te=de[4];return[ye,ne,te,ge,Te]}function m(P){for(var U=!1,V=[],Q=0,se=null,oe=0,re=0,de=0,ye=0,ne=0;oe<P.length;)P[oe][0]==t?(V[Q++]=oe,re=ye,de=ne,ye=0,ne=0,se=P[oe][1]):(P[oe][0]==e?ye+=P[oe][1].length:ne+=P[oe][1].length,se&&se.length<=Math.max(re,de)&&se.length<=Math.max(ye,ne)&&(P.splice(V[Q-1],0,[r,se]),P[V[Q-1]+1][0]=e,Q--,Q--,oe=Q>0?V[Q-1]:-1,re=0,de=0,ye=0,ne=0,se=null,U=!0)),oe++;for(U&&R(P),_(P),oe=1;oe<P.length;){if(P[oe-1][0]==r&&P[oe][0]==e){var te=P[oe-1][1],ge=P[oe][1],Te=d(te,ge),Re=d(ge,te);Te>=Re?(Te>=te.length/2||Te>=ge.length/2)&&(P.splice(oe,0,[t,ge.substring(0,Te)]),P[oe-1][1]=te.substring(0,te.length-Te),P[oe+1][1]=ge.substring(Te),oe++):(Re>=te.length/2||Re>=ge.length/2)&&(P.splice(oe,0,[t,te.substring(0,Re)]),P[oe-1][0]=e,P[oe-1][1]=ge.substring(0,ge.length-Re),P[oe+1][0]=r,P[oe+1][1]=te.substring(Re),oe++),oe++}oe++}}var g=/[^a-zA-Z0-9]/,v=/\s/,w=/[\r\n]/,T=/\n\r?\n$/,A=/^\r?\n\r?\n/;function _(P){function U(Re,ie){if(!Re||!ie)return 6;var he=Re.charAt(Re.length-1),we=ie.charAt(0),$e=he.match(g),Ee=we.match(g),Pe=$e&&he.match(v),Be=Ee&&we.match(v),Ve=Pe&&he.match(w),Ne=Be&&we.match(w),_e=Ve&&Re.match(T),Oe=Ne&&ie.match(A);return _e||Oe?5:Ve||Ne?4:$e&&!Pe&&Be?3:Pe||Be?2:$e||Ee?1:0}for(var V=1;V<P.length-1;){if(P[V-1][0]==t&&P[V+1][0]==t){var Q=P[V-1][1],se=P[V][1],oe=P[V+1][1],re=h(Q,se);if(re){var de=se.substring(se.length-re);Q=Q.substring(0,Q.length-re),se=de+se.substring(0,se.length-re),oe=de+oe}for(var ye=Q,ne=se,te=oe,ge=U(Q,se)+U(se,oe);se.charAt(0)===oe.charAt(0);){Q+=se.charAt(0),se=se.substring(1)+oe.charAt(0),oe=oe.substring(1);var Te=U(Q,se)+U(se,oe);Te>=ge&&(ge=Te,ye=Q,ne=se,te=oe)}P[V-1][1]!=ye&&(ye?P[V-1][1]=ye:(P.splice(V-1,1),V--),P[V][1]=ne,te?P[V+1][1]=te:(P.splice(V+1,1),V--))}V++}}function R(P,U){P.push([t,""]);for(var V=0,Q=0,se=0,oe="",re="",de;V<P.length;){if(V<P.length-1&&!P[V][1]){P.splice(V,1);continue}switch(P[V][0]){case e:se++,re+=P[V][1],V++;break;case r:Q++,oe+=P[V][1],V++;break;case t:var ye=V-se-Q-1;if(U){if(ye>=0&&B(P[ye][1])){var ne=P[ye][1].slice(-1);if(P[ye][1]=P[ye][1].slice(0,-1),oe=ne+oe,re=ne+re,!P[ye][1]){P.splice(ye,1),V--;var te=ye-1;P[te]&&P[te][0]===e&&(se++,re=P[te][1]+re,te--),P[te]&&P[te][0]===r&&(Q++,oe=P[te][1]+oe,te--),ye=te}}if(F(P[V][1])){var ne=P[V][1].charAt(0);P[V][1]=P[V][1].slice(1),oe+=ne,re+=ne}}if(V<P.length-1&&!P[V][1]){P.splice(V,1);break}if(oe.length>0||re.length>0){oe.length>0&&re.length>0&&(de=c(re,oe),de!==0&&(ye>=0?P[ye][1]+=re.substring(0,de):(P.splice(0,0,[t,re.substring(0,de)]),V++),re=re.substring(de),oe=oe.substring(de)),de=h(re,oe),de!==0&&(P[V][1]=re.substring(re.length-de)+P[V][1],re=re.substring(0,re.length-de),oe=oe.substring(0,oe.length-de)));var ge=se+Q;oe.length===0&&re.length===0?(P.splice(V-ge,ge),V=V-ge):oe.length===0?(P.splice(V-ge,ge,[e,re]),V=V-ge+1):re.length===0?(P.splice(V-ge,ge,[r,oe]),V=V-ge+1):(P.splice(V-ge,ge,[r,oe],[e,re]),V=V-ge+2)}V!==0&&P[V-1][0]===t?(P[V-1][1]+=P[V][1],P.splice(V,1)):V++,se=0,Q=0,oe="",re="";break}}P[P.length-1][1]===""&&P.pop();var Te=!1;for(V=1;V<P.length-1;)P[V-1][0]===t&&P[V+1][0]===t&&(P[V][1].substring(P[V][1].length-P[V-1][1].length)===P[V-1][1]?(P[V][1]=P[V-1][1]+P[V][1].substring(0,P[V][1].length-P[V-1][1].length),P[V+1][1]=P[V-1][1]+P[V+1][1],P.splice(V-1,1),Te=!0):P[V][1].substring(0,P[V+1][1].length)==P[V+1][1]&&(P[V-1][1]+=P[V+1][1],P[V][1]=P[V][1].substring(P[V+1][1].length)+P[V+1][1],P.splice(V+1,1),Te=!0)),V++;Te&&R(P,U)}function D(P){return P>=55296&&P<=56319}function I(P){return P>=56320&&P<=57343}function F(P){return I(P.charCodeAt(0))}function B(P){return D(P.charCodeAt(P.length-1))}function H(P){for(var U=[],V=0;V<P.length;V++)P[V][1].length>0&&U.push(P[V]);return U}function j(P,U,V,Q){return B(P)||F(Q)?null:H([[t,P],[r,U],[e,V],[t,Q]])}function G(P,U,V){var Q=typeof V=="number"?{index:V,length:0}:V.oldRange,se=typeof V=="number"?null:V.newRange,oe=P.length,re=U.length;if(Q.length===0&&(se===null||se.length===0)){var de=Q.index,ye=P.slice(0,de),ne=P.slice(de),te=se?se.index:null;e:{var ge=de+re-oe;if(te!==null&&te!==ge||ge<0||ge>re)break e;var Te=U.slice(0,ge),Re=U.slice(ge);if(Re!==ne)break e;var ie=Math.min(de,ge),he=ye.slice(0,ie),we=Te.slice(0,ie);if(he!==we)break e;var $e=ye.slice(ie),Ee=Te.slice(ie);return j(he,$e,Ee,ne)}e:{if(te!==null&&te!==de)break e;var Pe=de,Te=U.slice(0,Pe),Re=U.slice(Pe);if(Te!==ye)break e;var Be=Math.min(oe-Pe,re-Pe),Ve=ne.slice(ne.length-Be),Ne=Re.slice(Re.length-Be);if(Ve!==Ne)break e;var $e=ne.slice(0,ne.length-Be),Ee=Re.slice(0,Re.length-Be);return j(ye,$e,Ee,Ve)}}if(Q.length>0&&se&&se.length===0)e:{var he=P.slice(0,Q.index),Ve=P.slice(Q.index+Q.length),ie=he.length,Be=Ve.length;if(re<ie+Be)break e;var we=U.slice(0,ie),Ne=U.slice(re-Be);if(he!==we||Ve!==Ne)break e;var $e=P.slice(ie,oe-Be),Ee=U.slice(ie,re-Be);return j(he,$e,Ee,Ve)}return null}function fe(P,U,V,Q){return n(P,U,V,Q,!0)}return fe.INSERT=e,fe.DELETE=r,fe.EQUAL=t,bm=fe,bm}var dh={exports:{}};dh.exports;var H0;function kC(){return H0||(H0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",a="[object Array]",c="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",m="[object GeneratorFunction]",g="[object Map]",v="[object Number]",w="[object Object]",T="[object Promise]",A="[object RegExp]",_="[object Set]",R="[object String]",D="[object Symbol]",I="[object WeakMap]",F="[object ArrayBuffer]",B="[object DataView]",H="[object Float32Array]",j="[object Float64Array]",G="[object Int8Array]",fe="[object Int16Array]",P="[object Int32Array]",U="[object Uint8Array]",V="[object Uint8ClampedArray]",Q="[object Uint16Array]",se="[object Uint32Array]",oe=/[\\^$.*+?()[\]{}|]/g,re=/\w*$/,de=/^\[object .+?Constructor\]$/,ye=/^(?:0|[1-9]\d*)$/,ne={};ne[i]=ne[a]=ne[F]=ne[B]=ne[c]=ne[d]=ne[H]=ne[j]=ne[G]=ne[fe]=ne[P]=ne[g]=ne[v]=ne[w]=ne[A]=ne[_]=ne[R]=ne[D]=ne[U]=ne[V]=ne[Q]=ne[se]=!0,ne[h]=ne[p]=ne[I]=!1;var te=typeof Di=="object"&&Di&&Di.Object===Object&&Di,ge=typeof self=="object"&&self&&self.Object===Object&&self,Te=te||ge||Function("return this")(),Re=e&&!e.nodeType&&e,ie=Re&&!0&&r&&!r.nodeType&&r,he=ie&&ie.exports===Re;function we(O,J){return O.set(J[0],J[1]),O}function $e(O,J){return O.add(J),O}function Ee(O,J){for(var xe=-1,ot=O?O.length:0;++xe<ot&&J(O[xe],xe,O)!==!1;);return O}function Pe(O,J){for(var xe=-1,ot=J.length,nr=O.length;++xe<ot;)O[nr+xe]=J[xe];return O}function Be(O,J,xe,ot){for(var nr=-1,Xt=O?O.length:0;++nr<Xt;)xe=J(xe,O[nr],nr,O);return xe}function Ve(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function Ne(O,J){return O==null?void 0:O[J]}function _e(O){var J=!1;if(O!=null&&typeof O.toString!="function")try{J=!!(O+"")}catch{}return J}function Oe(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,nr){xe[++J]=[nr,ot]}),xe}function Ce(O,J){return function(xe){return O(J(xe))}}function qe(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var it=Array.prototype,at=Function.prototype,_t=Object.prototype,Ye=Te["__core-js_shared__"],Xe=function(){var O=/[^.]+$/.exec(Ye&&Ye.keys&&Ye.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),ft=at.toString,mt=_t.hasOwnProperty,Fe=_t.toString,Qe=RegExp("^"+ft.call(mt).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),At=he?Te.Buffer:void 0,Nt=Te.Symbol,Rt=Te.Uint8Array,Ot=Ce(Object.getPrototypeOf,Object),Wt=Object.create,rr=_t.propertyIsEnumerable,or=it.splice,hr=Object.getOwnPropertySymbols,ur=At?At.isBuffer:void 0,Ae=Ce(Object.keys,Object),ae=$t(Te,"DataView"),ut=$t(Te,"Map"),vt=$t(Te,"Promise"),Ft=$t(Te,"Set"),Pt=$t(Te,"WeakMap"),kt=$t(Object,"create"),Ht=dn(ae),Ze=dn(ut),lt=dn(vt),ht=dn(Ft),Ct=dn(Pt),tt=Nt?Nt.prototype:void 0,yt=tt?tt.valueOf:void 0;function Dt(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Gt(){this.__data__=kt?kt(null):{}}function ir(O){return this.has(O)&&delete this.__data__[O]}function zt(O){var J=this.__data__;if(kt){var xe=J[O];return xe===n?void 0:xe}return mt.call(J,O)?J[O]:void 0}function vr(O){var J=this.__data__;return kt?J[O]!==void 0:mt.call(J,O)}function Br(O,J){var xe=this.__data__;return xe[O]=kt&&J===void 0?n:J,this}Dt.prototype.clear=Gt,Dt.prototype.delete=ir,Dt.prototype.get=zt,Dt.prototype.has=vr,Dt.prototype.set=Br;function pr(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=[]}function Me(O){var J=this.__data__,xe=zr(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():or.call(J,xe,1),!0}function et(O){var J=this.__data__,xe=zr(J,O);return xe<0?void 0:J[xe][1]}function ke(O){return zr(this.__data__,O)>-1}function rt(O,J){var xe=this.__data__,ot=zr(xe,O);return ot<0?xe.push([O,J]):xe[ot][1]=J,this}pr.prototype.clear=pe,pr.prototype.delete=Me,pr.prototype.get=et,pr.prototype.has=ke,pr.prototype.set=rt;function dt(O){var J=-1,xe=O?O.length:0;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Bt(){this.__data__={hash:new Dt,map:new(ut||pr),string:new Dt}}function Yt(O){return Tt(this,O).delete(O)}function It(O){return Tt(this,O).get(O)}function me(O){return Tt(this,O).has(O)}function st(O,J){return Tt(this,O).set(O,J),this}dt.prototype.clear=Bt,dt.prototype.delete=Yt,dt.prototype.get=It,dt.prototype.has=me,dt.prototype.set=st;function xt(O){this.__data__=new pr(O)}function dr(){this.__data__=new pr}function Fr(O){return this.__data__.delete(O)}function lr(O){return this.__data__.get(O)}function xr(O){return this.__data__.has(O)}function tn(O,J){var xe=this.__data__;if(xe instanceof pr){var ot=xe.__data__;if(!ut||ot.length<t-1)return ot.push([O,J]),this;xe=this.__data__=new dt(ot)}return xe.set(O,J),this}xt.prototype.clear=dr,xt.prototype.delete=Fr,xt.prototype.get=lr,xt.prototype.has=xr,xt.prototype.set=tn;function sn(O,J){var xe=Pi(O)||so(O)?Ve(O.length,String):[],ot=xe.length,nr=!!ot;for(var Xt in O)mt.call(O,Xt)&&!(nr&&(Xt=="length"||Mn(Xt,ot)))&&xe.push(Xt);return xe}function Pn(O,J,xe){var ot=O[J];(!(mt.call(O,J)&&Xn(ot,xe))||xe===void 0&&!(J in O))&&(O[J]=xe)}function zr(O,J){for(var xe=O.length;xe--;)if(Xn(O[xe][0],J))return xe;return-1}function rn(O,J){return O&&We(J,Hr(J),O)}function kn(O,J,xe,ot,nr,Xt,_r){var Ir;if(ot&&(Ir=Xt?ot(O,nr,Xt,_r):ot(O)),Ir!==void 0)return Ir;if(!lo(O))return O;var Cr=Pi(O);if(Cr){if(Ir=kr(O),!J)return le(O,Ir)}else{var Lr=Vt(O),fn=Lr==p||Lr==m;if($n(O))return Fn(O,J);if(Lr==w||Lr==i||fn&&!Xt){if(_e(O))return Xt?O:{};if(Ir=an(fn?{}:O),!J)return He(O,rn(Ir,O))}else{if(!ne[Lr])return Xt?O:{};Ir=In(O,Lr,kn,J)}}_r||(_r=new xt);var qn=_r.get(O);if(qn)return qn;if(_r.set(O,Ir),!Cr)var nn=xe?nt(O):Hr(O);return Ee(nn||O,function(Vr,hn){nn&&(hn=Vr,Vr=O[hn]),Pn(Ir,hn,kn(Vr,J,xe,ot,hn,O,_r))}),Ir}function Bn(O){return lo(O)?Wt(O):{}}function _o(O,J,xe){var ot=J(O);return Pi(O)?ot:Pe(ot,xe(O))}function Do(O){return Fe.call(O)}function Oo(O){if(!lo(O)||Kn(O))return!1;var J=Bi(O)||_e(O)?Qe:de;return J.test(dn(O))}function zn(O){if(!No(O))return Ae(O);var J=[];for(var xe in Object(O))mt.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function Fn(O,J){if(J)return O.slice();var xe=new O.constructor(O.length);return O.copy(xe),xe}function Cn(O){var J=new O.constructor(O.byteLength);return new Rt(J).set(new Rt(O)),J}function io(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.byteLength)}function mn(O,J,xe){var ot=J?xe(Oe(O),!0):Oe(O);return Be(ot,we,new O.constructor)}function An(O){var J=new O.constructor(O.source,re.exec(O));return J.lastIndex=O.lastIndex,J}function k(O,J,xe){var ot=J?xe(qe(O),!0):qe(O);return Be(ot,$e,new O.constructor)}function $(O){return yt?Object(yt.call(O)):{}}function X(O,J){var xe=J?Cn(O.buffer):O.buffer;return new O.constructor(xe,O.byteOffset,O.length)}function le(O,J){var xe=-1,ot=O.length;for(J||(J=Array(ot));++xe<ot;)J[xe]=O[xe];return J}function We(O,J,xe,ot){xe||(xe={});for(var nr=-1,Xt=J.length;++nr<Xt;){var _r=J[nr],Ir=void 0;Pn(xe,_r,Ir===void 0?O[_r]:Ir)}return xe}function He(O,J){return We(O,Zt(O),J)}function nt(O){return _o(O,Hr,Zt)}function Tt(O,J){var xe=O.__data__;return po(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function $t(O,J){var xe=Ne(O,J);return Oo(xe)?xe:void 0}var Zt=hr?Ce(hr,Object):Mr,Vt=Do;(ae&&Vt(new ae(new ArrayBuffer(1)))!=B||ut&&Vt(new ut)!=g||vt&&Vt(vt.resolve())!=T||Ft&&Vt(new Ft)!=_||Pt&&Vt(new Pt)!=I)&&(Vt=function(O){var J=Fe.call(O),xe=J==w?O.constructor:void 0,ot=xe?dn(xe):void 0;if(ot)switch(ot){case Ht:return B;case Ze:return g;case lt:return T;case ht:return _;case Ct:return I}return J});function kr(O){var J=O.length,xe=O.constructor(J);return J&&typeof O[0]=="string"&&mt.call(O,"index")&&(xe.index=O.index,xe.input=O.input),xe}function an(O){return typeof O.constructor=="function"&&!No(O)?Bn(Ot(O)):{}}function In(O,J,xe,ot){var nr=O.constructor;switch(J){case F:return Cn(O);case c:case d:return new nr(+O);case B:return io(O,ot);case H:case j:case G:case fe:case P:case U:case V:case Q:case se:return X(O,ot);case g:return mn(O,ot,xe);case v:case R:return new nr(O);case A:return An(O);case _:return k(O,ot,xe);case D:return $(O)}}function Mn(O,J){return J=J??o,!!J&&(typeof O=="number"||ye.test(O))&&O>-1&&O%1==0&&O<J}function po(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function Kn(O){return!!Xe&&Xe in O}function No(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||_t;return O===xe}function dn(O){if(O!=null){try{return ft.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O){return kn(O,!0,!0)}function Xn(O,J){return O===J||O!==O&&J!==J}function so(O){return bi(O)&&mt.call(O,"callee")&&(!rr.call(O,"callee")||Fe.call(O)==i)}var Pi=Array.isArray;function yi(O){return O!=null&&ao(O.length)&&!Bi(O)}function bi(O){return ti(O)&&yi(O)}var $n=ur||jr;function Bi(O){var J=lo(O)?Fe.call(O):"";return J==p||J==m}function ao(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=o}function lo(O){var J=typeof O;return!!O&&(J=="object"||J=="function")}function ti(O){return!!O&&typeof O=="object"}function Hr(O){return yi(O)?sn(O):zn(O)}function Mr(){return[]}function jr(){return!1}r.exports=Ao}(dh,dh.exports)),dh.exports}var fh={exports:{}};fh.exports;var z0;function IC(){return z0||(z0=1,function(r,e){var t=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,c="[object Arguments]",d="[object Array]",h="[object AsyncFunction]",p="[object Boolean]",m="[object Date]",g="[object Error]",v="[object Function]",w="[object GeneratorFunction]",T="[object Map]",A="[object Number]",_="[object Null]",R="[object Object]",D="[object Promise]",I="[object Proxy]",F="[object RegExp]",B="[object Set]",H="[object String]",j="[object Symbol]",G="[object Undefined]",fe="[object WeakMap]",P="[object ArrayBuffer]",U="[object DataView]",V="[object Float32Array]",Q="[object Float64Array]",se="[object Int8Array]",oe="[object Int16Array]",re="[object Int32Array]",de="[object Uint8Array]",ye="[object Uint8ClampedArray]",ne="[object Uint16Array]",te="[object Uint32Array]",ge=/[\\^$.*+?()[\]{}|]/g,Te=/^\[object .+?Constructor\]$/,Re=/^(?:0|[1-9]\d*)$/,ie={};ie[V]=ie[Q]=ie[se]=ie[oe]=ie[re]=ie[de]=ie[ye]=ie[ne]=ie[te]=!0,ie[c]=ie[d]=ie[P]=ie[p]=ie[U]=ie[m]=ie[g]=ie[v]=ie[T]=ie[A]=ie[R]=ie[F]=ie[B]=ie[H]=ie[fe]=!1;var he=typeof Di=="object"&&Di&&Di.Object===Object&&Di,we=typeof self=="object"&&self&&self.Object===Object&&self,$e=he||we||Function("return this")(),Ee=e&&!e.nodeType&&e,Pe=Ee&&!0&&r&&!r.nodeType&&r,Be=Pe&&Pe.exports===Ee,Ve=Be&&he.process,Ne=function(){try{return Ve&&Ve.binding&&Ve.binding("util")}catch{}}(),_e=Ne&&Ne.isTypedArray;function Oe(O,J){for(var xe=-1,ot=O==null?0:O.length,nr=0,Xt=[];++xe<ot;){var _r=O[xe];J(_r,xe,O)&&(Xt[nr++]=_r)}return Xt}function Ce(O,J){for(var xe=-1,ot=J.length,nr=O.length;++xe<ot;)O[nr+xe]=J[xe];return O}function qe(O,J){for(var xe=-1,ot=O==null?0:O.length;++xe<ot;)if(J(O[xe],xe,O))return!0;return!1}function it(O,J){for(var xe=-1,ot=Array(O);++xe<O;)ot[xe]=J(xe);return ot}function at(O){return function(J){return O(J)}}function _t(O,J){return O.has(J)}function Ye(O,J){return O==null?void 0:O[J]}function Xe(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot,nr){xe[++J]=[nr,ot]}),xe}function ft(O,J){return function(xe){return O(J(xe))}}function mt(O){var J=-1,xe=Array(O.size);return O.forEach(function(ot){xe[++J]=ot}),xe}var Fe=Array.prototype,Qe=Function.prototype,At=Object.prototype,Nt=$e["__core-js_shared__"],Rt=Qe.toString,Ot=At.hasOwnProperty,Wt=function(){var O=/[^.]+$/.exec(Nt&&Nt.keys&&Nt.keys.IE_PROTO||"");return O?"Symbol(src)_1."+O:""}(),rr=At.toString,or=RegExp("^"+Rt.call(Ot).replace(ge,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),hr=Be?$e.Buffer:void 0,ur=$e.Symbol,Ae=$e.Uint8Array,ae=At.propertyIsEnumerable,ut=Fe.splice,vt=ur?ur.toStringTag:void 0,Ft=Object.getOwnPropertySymbols,Pt=hr?hr.isBuffer:void 0,kt=ft(Object.keys,Object),Ht=Zt($e,"DataView"),Ze=Zt($e,"Map"),lt=Zt($e,"Promise"),ht=Zt($e,"Set"),Ct=Zt($e,"WeakMap"),tt=Zt(Object,"create"),yt=dn(Ht),Dt=dn(Ze),Gt=dn(lt),ir=dn(ht),zt=dn(Ct),vr=ur?ur.prototype:void 0,Br=vr?vr.valueOf:void 0;function pr(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function pe(){this.__data__=tt?tt(null):{},this.size=0}function Me(O){var J=this.has(O)&&delete this.__data__[O];return this.size-=J?1:0,J}function et(O){var J=this.__data__;if(tt){var xe=J[O];return xe===n?void 0:xe}return Ot.call(J,O)?J[O]:void 0}function ke(O){var J=this.__data__;return tt?J[O]!==void 0:Ot.call(J,O)}function rt(O,J){var xe=this.__data__;return this.size+=this.has(O)?0:1,xe[O]=tt&&J===void 0?n:J,this}pr.prototype.clear=pe,pr.prototype.delete=Me,pr.prototype.get=et,pr.prototype.has=ke,pr.prototype.set=rt;function dt(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function Bt(){this.__data__=[],this.size=0}function Yt(O){var J=this.__data__,xe=Fn(J,O);if(xe<0)return!1;var ot=J.length-1;return xe==ot?J.pop():ut.call(J,xe,1),--this.size,!0}function It(O){var J=this.__data__,xe=Fn(J,O);return xe<0?void 0:J[xe][1]}function me(O){return Fn(this.__data__,O)>-1}function st(O,J){var xe=this.__data__,ot=Fn(xe,O);return ot<0?(++this.size,xe.push([O,J])):xe[ot][1]=J,this}dt.prototype.clear=Bt,dt.prototype.delete=Yt,dt.prototype.get=It,dt.prototype.has=me,dt.prototype.set=st;function xt(O){var J=-1,xe=O==null?0:O.length;for(this.clear();++J<xe;){var ot=O[J];this.set(ot[0],ot[1])}}function dr(){this.size=0,this.__data__={hash:new pr,map:new(Ze||dt),string:new pr}}function Fr(O){var J=$t(this,O).delete(O);return this.size-=J?1:0,J}function lr(O){return $t(this,O).get(O)}function xr(O){return $t(this,O).has(O)}function tn(O,J){var xe=$t(this,O),ot=xe.size;return xe.set(O,J),this.size+=xe.size==ot?0:1,this}xt.prototype.clear=dr,xt.prototype.delete=Fr,xt.prototype.get=lr,xt.prototype.has=xr,xt.prototype.set=tn;function sn(O){var J=-1,xe=O==null?0:O.length;for(this.__data__=new xt;++J<xe;)this.add(O[J])}function Pn(O){return this.__data__.set(O,n),this}function zr(O){return this.__data__.has(O)}sn.prototype.add=sn.prototype.push=Pn,sn.prototype.has=zr;function rn(O){var J=this.__data__=new dt(O);this.size=J.size}function kn(){this.__data__=new dt,this.size=0}function Bn(O){var J=this.__data__,xe=J.delete(O);return this.size=J.size,xe}function _o(O){return this.__data__.get(O)}function Do(O){return this.__data__.has(O)}function Oo(O,J){var xe=this.__data__;if(xe instanceof dt){var ot=xe.__data__;if(!Ze||ot.length<t-1)return ot.push([O,J]),this.size=++xe.size,this;xe=this.__data__=new xt(ot)}return xe.set(O,J),this.size=xe.size,this}rn.prototype.clear=kn,rn.prototype.delete=Bn,rn.prototype.get=_o,rn.prototype.has=Do,rn.prototype.set=Oo;function zn(O,J){var xe=so(O),ot=!xe&&Xn(O),nr=!xe&&!ot&&yi(O),Xt=!xe&&!ot&&!nr&&ti(O),_r=xe||ot||nr||Xt,Ir=_r?it(O.length,String):[],Cr=Ir.length;for(var Lr in O)Ot.call(O,Lr)&&!(_r&&(Lr=="length"||nr&&(Lr=="offset"||Lr=="parent")||Xt&&(Lr=="buffer"||Lr=="byteLength"||Lr=="byteOffset")||In(Lr,Cr)))&&Ir.push(Lr);return Ir}function Fn(O,J){for(var xe=O.length;xe--;)if(Ao(O[xe][0],J))return xe;return-1}function Cn(O,J,xe){var ot=J(O);return so(O)?ot:Ce(ot,xe(O))}function io(O){return O==null?O===void 0?G:_:vt&&vt in Object(O)?Vt(O):No(O)}function mn(O){return lo(O)&&io(O)==c}function An(O,J,xe,ot,nr){return O===J?!0:O==null||J==null||!lo(O)&&!lo(J)?O!==O&&J!==J:k(O,J,xe,ot,An,nr)}function k(O,J,xe,ot,nr,Xt){var _r=so(O),Ir=so(J),Cr=_r?d:an(O),Lr=Ir?d:an(J);Cr=Cr==c?R:Cr,Lr=Lr==c?R:Lr;var fn=Cr==R,qn=Lr==R,nn=Cr==Lr;if(nn&&yi(O)){if(!yi(J))return!1;_r=!0,fn=!1}if(nn&&!fn)return Xt||(Xt=new rn),_r||ti(O)?We(O,J,xe,ot,nr,Xt):He(O,J,Cr,xe,ot,nr,Xt);if(!(xe&o)){var Vr=fn&&Ot.call(O,"__wrapped__"),hn=qn&&Ot.call(J,"__wrapped__");if(Vr||hn){var go=Vr?O.value():O,Eo=hn?J.value():J;return Xt||(Xt=new rn),nr(go,Eo,xe,ot,Xt)}}return nn?(Xt||(Xt=new rn),nt(O,J,xe,ot,nr,Xt)):!1}function $(O){if(!ao(O)||po(O))return!1;var J=$n(O)?or:Te;return J.test(dn(O))}function X(O){return lo(O)&&Bi(O.length)&&!!ie[io(O)]}function le(O){if(!Kn(O))return kt(O);var J=[];for(var xe in Object(O))Ot.call(O,xe)&&xe!="constructor"&&J.push(xe);return J}function We(O,J,xe,ot,nr,Xt){var _r=xe&o,Ir=O.length,Cr=J.length;if(Ir!=Cr&&!(_r&&Cr>Ir))return!1;var Lr=Xt.get(O);if(Lr&&Xt.get(J))return Lr==J;var fn=-1,qn=!0,nn=xe&i?new sn:void 0;for(Xt.set(O,J),Xt.set(J,O);++fn<Ir;){var Vr=O[fn],hn=J[fn];if(ot)var go=_r?ot(hn,Vr,fn,J,O,Xt):ot(Vr,hn,fn,O,J,Xt);if(go!==void 0){if(go)continue;qn=!1;break}if(nn){if(!qe(J,function(Eo,Jn){if(!_t(nn,Jn)&&(Vr===Eo||nr(Vr,Eo,xe,ot,Xt)))return nn.push(Jn)})){qn=!1;break}}else if(!(Vr===hn||nr(Vr,hn,xe,ot,Xt))){qn=!1;break}}return Xt.delete(O),Xt.delete(J),qn}function He(O,J,xe,ot,nr,Xt,_r){switch(xe){case U:if(O.byteLength!=J.byteLength||O.byteOffset!=J.byteOffset)return!1;O=O.buffer,J=J.buffer;case P:return!(O.byteLength!=J.byteLength||!Xt(new Ae(O),new Ae(J)));case p:case m:case A:return Ao(+O,+J);case g:return O.name==J.name&&O.message==J.message;case F:case H:return O==J+"";case T:var Ir=Xe;case B:var Cr=ot&o;if(Ir||(Ir=mt),O.size!=J.size&&!Cr)return!1;var Lr=_r.get(O);if(Lr)return Lr==J;ot|=i,_r.set(O,J);var fn=We(Ir(O),Ir(J),ot,nr,Xt,_r);return _r.delete(O),fn;case j:if(Br)return Br.call(O)==Br.call(J)}return!1}function nt(O,J,xe,ot,nr,Xt){var _r=xe&o,Ir=Tt(O),Cr=Ir.length,Lr=Tt(J),fn=Lr.length;if(Cr!=fn&&!_r)return!1;for(var qn=Cr;qn--;){var nn=Ir[qn];if(!(_r?nn in J:Ot.call(J,nn)))return!1}var Vr=Xt.get(O);if(Vr&&Xt.get(J))return Vr==J;var hn=!0;Xt.set(O,J),Xt.set(J,O);for(var go=_r;++qn<Cr;){nn=Ir[qn];var Eo=O[nn],Jn=J[nn];if(ot)var Fi=_r?ot(Jn,Eo,nn,J,O,Xt):ot(Eo,Jn,nn,O,J,Xt);if(!(Fi===void 0?Eo===Jn||nr(Eo,Jn,xe,ot,Xt):Fi)){hn=!1;break}go||(go=nn=="constructor")}if(hn&&!go){var ri=O.constructor,vn=J.constructor;ri!=vn&&"constructor"in O&&"constructor"in J&&!(typeof ri=="function"&&ri instanceof ri&&typeof vn=="function"&&vn instanceof vn)&&(hn=!1)}return Xt.delete(O),Xt.delete(J),hn}function Tt(O){return Cn(O,Hr,kr)}function $t(O,J){var xe=O.__data__;return Mn(J)?xe[typeof J=="string"?"string":"hash"]:xe.map}function Zt(O,J){var xe=Ye(O,J);return $(xe)?xe:void 0}function Vt(O){var J=Ot.call(O,vt),xe=O[vt];try{O[vt]=void 0;var ot=!0}catch{}var nr=rr.call(O);return ot&&(J?O[vt]=xe:delete O[vt]),nr}var kr=Ft?function(O){return O==null?[]:(O=Object(O),Oe(Ft(O),function(J){return ae.call(O,J)}))}:Mr,an=io;(Ht&&an(new Ht(new ArrayBuffer(1)))!=U||Ze&&an(new Ze)!=T||lt&&an(lt.resolve())!=D||ht&&an(new ht)!=B||Ct&&an(new Ct)!=fe)&&(an=function(O){var J=io(O),xe=J==R?O.constructor:void 0,ot=xe?dn(xe):"";if(ot)switch(ot){case yt:return U;case Dt:return T;case Gt:return D;case ir:return B;case zt:return fe}return J});function In(O,J){return J=J??a,!!J&&(typeof O=="number"||Re.test(O))&&O>-1&&O%1==0&&O<J}function Mn(O){var J=typeof O;return J=="string"||J=="number"||J=="symbol"||J=="boolean"?O!=="__proto__":O===null}function po(O){return!!Wt&&Wt in O}function Kn(O){var J=O&&O.constructor,xe=typeof J=="function"&&J.prototype||At;return O===xe}function No(O){return rr.call(O)}function dn(O){if(O!=null){try{return Rt.call(O)}catch{}try{return O+""}catch{}}return""}function Ao(O,J){return O===J||O!==O&&J!==J}var Xn=mn(function(){return arguments}())?mn:function(O){return lo(O)&&Ot.call(O,"callee")&&!ae.call(O,"callee")},so=Array.isArray;function Pi(O){return O!=null&&Bi(O.length)&&!$n(O)}var yi=Pt||jr;function bi(O,J){return An(O,J)}function $n(O){if(!ao(O))return!1;var J=io(O);return J==v||J==w||J==h||J==I}function Bi(O){return typeof O=="number"&&O>-1&&O%1==0&&O<=a}function ao(O){var J=typeof O;return O!=null&&(J=="object"||J=="function")}function lo(O){return O!=null&&typeof O=="object"}var ti=_e?at(_e):X;function Hr(O){return Pi(O)?zn(O):le(O)}function Mr(){return[]}function jr(){return!1}r.exports=bi}(fh,fh.exports)),fh.exports}var yp={},$0;function z9(){if($0)return yp;$0=1,Object.defineProperty(yp,"__esModule",{value:!0});const r=kC(),e=IC();var t;return function(n){function o(d={},h={},p=!1){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});let m=r(h);p||(m=Object.keys(m).reduce((g,v)=>(m[v]!=null&&(g[v]=m[v]),g),{}));for(const g in d)d[g]!==void 0&&h[g]===void 0&&(m[g]=d[g]);return Object.keys(m).length>0?m:void 0}n.compose=o;function i(d={},h={}){typeof d!="object"&&(d={}),typeof h!="object"&&(h={});const p=Object.keys(d).concat(Object.keys(h)).reduce((m,g)=>(e(d[g],h[g])||(m[g]=h[g]===void 0?null:h[g]),m),{});return Object.keys(p).length>0?p:void 0}n.diff=i;function a(d={},h={}){d=d||{};const p=Object.keys(h).reduce((m,g)=>(h[g]!==d[g]&&d[g]!==void 0&&(m[g]=h[g]),m),{});return Object.keys(d).reduce((m,g)=>(d[g]!==h[g]&&h[g]===void 0&&(m[g]=null),m),p)}n.invert=a;function c(d,h,p=!1){if(typeof d!="object")return h;if(typeof h!="object")return;if(!p)return h;const m=Object.keys(h).reduce((g,v)=>(d[v]===void 0&&(g[v]=h[v]),g),{});return Object.keys(m).length>0?m:void 0}n.transform=c}(t||(t={})),yp.default=t,yp}var bp={},q0;function MC(){if(q0)return bp;q0=1,Object.defineProperty(bp,"__esModule",{value:!0});var r;return function(e){function t(n){return typeof n.delete=="number"?n.delete:typeof n.retain=="number"?n.retain:typeof n.retain=="object"&&n.retain!==null?1:typeof n.insert=="string"?n.insert.length:1}e.length=t}(r||(r={})),bp.default=r,bp}var xp={},U0;function $9(){if(U0)return xp;U0=1,Object.defineProperty(xp,"__esModule",{value:!0});const r=MC();class e{constructor(n){this.ops=n,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(n){n||(n=1/0);const o=this.ops[this.index];if(o){const i=this.offset,a=r.default.length(o);if(n>=a-i?(n=a-i,this.index+=1,this.offset=0):this.offset+=n,typeof o.delete=="number")return{delete:n};{const c={};return o.attributes&&(c.attributes=o.attributes),typeof o.retain=="number"?c.retain=n:typeof o.retain=="object"&&o.retain!==null?c.retain=o.retain:typeof o.insert=="string"?c.insert=o.insert.substr(i,n):c.insert=o.insert,c}}else return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?r.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const n=this.ops[this.index];return n?typeof n.delete=="number"?"delete":typeof n.retain=="number"||typeof n.retain=="object"&&n.retain!==null?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);{const n=this.offset,o=this.index,i=this.next(),a=this.ops.slice(this.index);return this.offset=n,this.index=o,[i].concat(a)}}else return[]}}return xp.default=e,xp}var W0;function q9(){return W0||(W0=1,function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.AttributeMap=e.OpIterator=e.Op=void 0;const t=H9(),n=kC(),o=IC(),i=z9();e.AttributeMap=i.default;const a=MC();e.Op=a.default;const c=$9();e.OpIterator=c.default;const d="\0",h=(m,g)=>{if(typeof m!="object"||m===null)throw new Error(`cannot retain a ${typeof m}`);if(typeof g!="object"||g===null)throw new Error(`cannot retain a ${typeof g}`);const v=Object.keys(m)[0];if(!v||v!==Object.keys(g)[0])throw new Error(`embed types not matched: ${v} != ${Object.keys(g)[0]}`);return[v,m[v],g[v]]};class p{constructor(g){Array.isArray(g)?this.ops=g:g!=null&&Array.isArray(g.ops)?this.ops=g.ops:this.ops=[]}static registerEmbed(g,v){this.handlers[g]=v}static unregisterEmbed(g){delete this.handlers[g]}static getHandler(g){const v=this.handlers[g];if(!v)throw new Error(`no handlers for embed type "${g}"`);return v}insert(g,v){const w={};return typeof g=="string"&&g.length===0?this:(w.insert=g,v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w))}delete(g){return g<=0?this:this.push({delete:g})}retain(g,v){if(typeof g=="number"&&g<=0)return this;const w={retain:g};return v!=null&&typeof v=="object"&&Object.keys(v).length>0&&(w.attributes=v),this.push(w)}push(g){let v=this.ops.length,w=this.ops[v-1];if(g=n(g),typeof w=="object"){if(typeof g.delete=="number"&&typeof w.delete=="number")return this.ops[v-1]={delete:w.delete+g.delete},this;if(typeof w.delete=="number"&&g.insert!=null&&(v-=1,w=this.ops[v-1],typeof w!="object"))return this.ops.unshift(g),this;if(o(g.attributes,w.attributes)){if(typeof g.insert=="string"&&typeof w.insert=="string")return this.ops[v-1]={insert:w.insert+g.insert},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this;if(typeof g.retain=="number"&&typeof w.retain=="number")return this.ops[v-1]={retain:w.retain+g.retain},typeof g.attributes=="object"&&(this.ops[v-1].attributes=g.attributes),this}}return v===this.ops.length?this.ops.push(g):this.ops.splice(v,0,g),this}chop(){const g=this.ops[this.ops.length-1];return g&&typeof g.retain=="number"&&!g.attributes&&this.ops.pop(),this}filter(g){return this.ops.filter(g)}forEach(g){this.ops.forEach(g)}map(g){return this.ops.map(g)}partition(g){const v=[],w=[];return this.forEach(T=>{(g(T)?v:w).push(T)}),[v,w]}reduce(g,v){return this.ops.reduce(g,v)}changeLength(){return this.reduce((g,v)=>v.insert?g+a.default.length(v):v.delete?g-v.delete:g,0)}length(){return this.reduce((g,v)=>g+a.default.length(v),0)}slice(g=0,v=1/0){const w=[],T=new c.default(this.ops);let A=0;for(;A<v&&T.hasNext();){let _;A<g?_=T.next(g-A):(_=T.next(v-A),w.push(_)),A+=a.default.length(_)}return new p(w)}compose(g){const v=new c.default(this.ops),w=new c.default(g.ops),T=[],A=w.peek();if(A!=null&&typeof A.retain=="number"&&A.attributes==null){let R=A.retain;for(;v.peekType()==="insert"&&v.peekLength()<=R;)R-=v.peekLength(),T.push(v.next());A.retain-R>0&&w.next(A.retain-R)}const _=new p(T);for(;v.hasNext()||w.hasNext();)if(w.peekType()==="insert")_.push(w.next());else if(v.peekType()==="delete")_.push(v.next());else{const R=Math.min(v.peekLength(),w.peekLength()),D=v.next(R),I=w.next(R);if(I.retain){const F={};if(typeof D.retain=="number")F.retain=typeof I.retain=="number"?R:I.retain;else if(typeof I.retain=="number")D.retain==null?F.insert=D.insert:F.retain=D.retain;else{const H=D.retain==null?"insert":"retain",[j,G,fe]=h(D[H],I.retain),P=p.getHandler(j);F[H]={[j]:P.compose(G,fe,H==="retain")}}const B=i.default.compose(D.attributes,I.attributes,typeof D.retain=="number");if(B&&(F.attributes=B),_.push(F),!w.hasNext()&&o(_.ops[_.ops.length-1],F)){const H=new p(v.rest());return _.concat(H).chop()}}else typeof I.delete=="number"&&(typeof D.retain=="number"||typeof D.retain=="object"&&D.retain!==null)&&_.push(I)}return _.chop()}concat(g){const v=new p(this.ops.slice());return g.ops.length>0&&(v.push(g.ops[0]),v.ops=v.ops.concat(g.ops.slice(1))),v}diff(g,v){if(this.ops===g.ops)return new p;const w=[this,g].map(D=>D.map(I=>{if(I.insert!=null)return typeof I.insert=="string"?I.insert:d;const F=D===g?"on":"with";throw new Error("diff() called "+F+" non-document")}).join("")),T=new p,A=t(w[0],w[1],v,!0),_=new c.default(this.ops),R=new c.default(g.ops);return A.forEach(D=>{let I=D[1].length;for(;I>0;){let F=0;switch(D[0]){case t.INSERT:F=Math.min(R.peekLength(),I),T.push(R.next(F));break;case t.DELETE:F=Math.min(I,_.peekLength()),_.next(F),T.delete(F);break;case t.EQUAL:F=Math.min(_.peekLength(),R.peekLength(),I);const B=_.next(F),H=R.next(F);o(B.insert,H.insert)?T.retain(F,i.default.diff(B.attributes,H.attributes)):T.push(H).delete(F);break}I-=F}}),T.chop()}eachLine(g,v=`