@bull-board/ui 7.0.0 → 7.1.3

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["48554"],{51529(e,t,l){l.d(t,{A:()=>s});let s={card:"card-BRjpw_",contentWrapper:"contentWrapper-Aj9Wmy",jobName:"jobName-t8DcMf",sideInfo:"sideInfo-a9IFbv",header:"header-Lw4QCc",headerActions:"headerActions-BHD8mS",statusDot:"statusDot-JKWQae",jobId:"jobId-bLy5Ry",jobNameInline:"jobNameInline-ZJ3YIs",details:"details-JRsI9B",collapseBtn:"collapseBtn-J6rMz7",content:"content-SHI77x",progress:"progress-POOya3",jobLink:"jobLink-wmCWQg",titleWithLink:"titleWithLink-UFeEb7",externalLink:"externalLink-dX0ReW",groupPill:"groupPill-dKGnlb"}},40555(e,t){t.STATUSES=void 0,t.STATUSES={latest:"latest",active:"active",waiting:"waiting",waitingChildren:"waiting-children",prioritized:"prioritized",completed:"completed",failed:"failed",delayed:"delayed",paused:"paused"}},81367(e,t,l){l.d(t,{Z:()=>n});var s=l(31085),a=l(54357);l(14041);let n=e=>{let{children:t,className:l}=e;return(0,s.jsx)("div",{className:(0,a.A)("card-xqyZlH",l),children:t})}},19414(e,t,l){l.d(t,{A:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 256 512",children:(0,s.jsx)("path",{d:"M231.293 473.899l19.799-19.799c4.686-4.686 4.686-12.284 0-16.971L70.393 256 251.092 74.87c4.686-4.686 4.686-12.284 0-16.971L231.293 38.1c-4.686-4.686-12.284-4.686-16.971 0L4.908 247.515c-4.686 4.686-4.686 12.284 0 16.971L214.322 473.9c4.687 4.686 12.285 4.686 16.971-.001z"})})},8020(e,t,l){l.d(t,{E:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"})})},15190(e,t,l){l.d(t,{u:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{"aria-hidden":"true",focusable:"false",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"})})},2206(e,t,l){l.d(t,{G:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M15 17v-2.99A4 4 0 0 0 11 10H8v5L2 9l6-6v5h3a6 6 0 0 1 6 6v3h-2z"})})},7320(e,t,l){l.d(t,{m:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M5 4a2 2 0 0 0-2 2v6H0l4 4 4-4H5V6h7l2-2H5zm10 4h-3l4-4 4 4h-3v6a2 2 0 0 1-2 2H6l2-2h7V8z"})})},56956(e,t,l){l.d(t,{u:()=>a});var s=l(31085);l(14041);let a=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,s.jsx)("path",{d:"M6 2l2-2h4l2 2h4v2H2V2h4zM3 6h14l-1 14H4L3 6zm5 2v10h1V8H8zm3 0v10h1V8h-1z"})})},66832(e,t,l){l.d(t,{o:()=>er});var s=l(31085),a=l(40555),n=l(14041),r=l(42348),i=l(33664),c=l(43499),o=l(81367),d=l(12287);let u=e=>{let{className:t}=e;return(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 512 512",className:t,children:(0,s.jsx)("path",{d:"M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V32c0-17.7-14.3-32-32-32H352zM80 32C35.8 32 0 67.8 0 112v320c0 44.2 35.8 80 80 80h320c44.2 0 80-35.8 80-80V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v112c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V112c0-8.8 7.2-16 16-16h112c17.7 0 32-14.3 32-32s-14.3-32-32-32H80z"})})};var h=l(40783);let p=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M241 130.5l194.3 194.3c9.4 9.4 9.4 24.6 0 33.9l-22.7 22.7c-9.4 9.4-24.5 9.4-33.9 0L224 227.5 69.3 381.5c-9.4 9.3-24.5 9.3-33.9 0l-22.7-22.7c-9.4-9.4-9.4-24.6 0-33.9L207 130.5C216.4 121.2 231.6 121.2 241 130.5z"})});var m=l(84382),x=l(27987),j=l(15510),g=l(54357),v=l(12445);let S=void 0!==window.Worker,b=null,A=new Map;async function w(e,t){if(S)return b||((b=new Worker(new URL(l.p+l.u("30697"),l.b),Object.assign({},{name:"highlight-worker"},{type:void 0}))).onmessage=e=>{let{data:t}=e,{id:l,code:s}=t;if(A.has(l)){let{resolve:e}=A.get(l);e(s)}}),new Promise((l,s)=>{let a=(0,v.Ak)(5);null==b||b.postMessage({id:a,code:e,language:t}),A.set(a,{resolve:e=>{A.delete(a),l(e)},reject:()=>{A.delete(a),s()}}),setTimeout(()=>s(),6e4)});{let{highlighter:s}=await Promise.all([l.e("2833"),l.e("85334")]).then(l.bind(l,79945));return s.highlightAuto(e,[t]).value||""}}let T=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",children:(0,s.jsx)("path",{d:"M280 64l40 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l40 0 9.6 0C121 27.5 153.3 0 192 0s71 27.5 78.4 64l9.6 0zM64 112c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16l-16 0 0 24c0 13.3-10.7 24-24 24l-88 0-88 0c-13.3 0-24-10.7-24-24l0-24-16 0zm128-8a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"})}),N=e=>{let{language:t,text:l}=e,[a,r]=(0,n.useState)("");return(0,n.useEffect)(()=>{let e=!1;return w(l,t).then(t=>{e||r(t)}),()=>{e=!0}},[t,l]),(0,s.jsxs)("div",{className:"codeContainerWrapper-ZpYBAP",children:[(0,s.jsx)("pre",{children:(0,s.jsx)("code",{className:(0,g.A)("hljs",t),dangerouslySetInnerHTML:{__html:a}})}),(0,s.jsx)(m.$,{onClick:()=>{navigator.clipboard.writeText(l??"")},className:"copyBtn-vLoi5u",compact:!0,children:(0,s.jsx)(T,{})})]})};var f=l(98807);l(30829);let y=()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})}),O=e=>{let{textToCopy:t,className:l,tabIndex:a}=e,{t:i}=(0,r.Bd)(),[c,o]=(0,n.useState)(!1),d=(0,n.useRef)(),u=(0,n.useCallback)(async()=>{try{await navigator.clipboard.writeText(t),o(!0),clearTimeout(d.current),d.current=setTimeout(()=>o(!1),1500)}catch(e){alert(i("CLIPBOARD.COPY_FAILED"))}},[t,i]);return(0,s.jsx)(m.$,{onClick:u,className:`copyBtn-S91mHH ${c?"copied-Eowyzo":""} ${l||""}`,tabIndex:a,children:c?(0,s.jsx)(y,{}):(0,s.jsx)(T,{})})},C="label-ymbP05",L={container:"container-_LjKnx",basicChildStyle:"basicChildStyle-tTpXD4",collapseIcon:"collapseIcon-PhouWI",expandIcon:"expandIcon-RZtdZD",collapsedContent:"collapsedContent-wxaP6v",label:C,clickableLabel:C,punctuation:"punctuation-SIrhOo",stringValue:"stringValue-jX0CHZ",numberValue:"numberValue-FVYrm4",booleanValue:"booleanValue-Gs5QuZ",nullValue:"nullValue-Z9oy6o",undefinedValue:"undefinedValue-YPfHsD",otherValue:"otherValue-gr22aS",noQuotesForStringValues:!1},B=e=>{let{data:t,defaultCollapseDepth:l=3}=e,a=(0,n.useMemo)(()=>JSON.stringify(t,null,2),[t]),r=(0,n.useCallback)(e=>0===l?(0,f.ab)(e):e<l,[l]);return(0,s.jsxs)("div",{className:"root-Eyiful",children:[(0,s.jsx)("div",{className:"content-K6N1cP",children:(0,s.jsx)(f.UU,{data:t,shouldExpandNode:r,style:L})}),(0,s.jsx)(O,{textToCopy:a,className:"copyBtn-CoPL0E"})]})};var E=l(36271),I=l(15735),J=l(64328),D=l(47245),R=l(53846),_=l(85891),k=l(26834);let U=(e,t,l)=>{let s;if((0,E.A)(e)){if(null==l?void 0:l.short)return(0,I.A)(new Date(e),l.short);s={hour:"numeric",minute:"numeric",second:"numeric"}}else if((0,J.A)(e,new Date)){if(null==l?void 0:l.common)return(0,I.A)(new Date(e),l.common);s={month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}else{if(null==l?void 0:l.full)return(0,I.A)(new Date(e),l.full);s={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"}}return new Intl.DateTimeFormat(t,s).format(e)},M=(e,t,l)=>{let s=(0,D.A)(e,t),a=s/1e3;return a>5?(0,R.A)(e,t,{includeSeconds:!0,locale:_.Q}):a>=1?l("JOB.DURATION.SECS",{duration:a.toFixed(2)}):l("JOB.DURATION.MILLI_SECS",{duration:s})},H=function(e){let{job:t,status:l,className:n}=e,{t:i,i18n:c}=(0,r.Bd)(),o=(0,k._)().dateFormats||{};return(0,s.jsx)("div",{className:(0,g.A)("timelineWrapper-iZqG0C",n),children:(0,s.jsxs)("ul",{className:"timeline-lF9niS",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:i("JOB.ADDED_AT")}),(0,s.jsx)("time",{children:U(t.timestamp||0,c.language,o)})]}),!!t.delay&&t.delay>0&&l===a.STATUSES.delayed&&(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:i("JOB.WILL_RUN_AT")}),(0,s.jsx)("time",{children:U((t.timestamp||0)+(t.opts.delay||t.delay||0),c.language,o)}),t.delay!==t.opts.delay&&(0,s.jsxs)("small",{children:[i("JOB.DELAY_CHANGED")," "]})]}),!!t.processedOn&&(0,s.jsxs)("li",{children:[(0,s.jsxs)("small",{children:[!!t.delay&&t.delay>0&&i("JOB.DELAYED_FOR")+" ",M(t.processedOn,t.timestamp||0,i)]}),(0,s.jsx)("small",{children:i("JOB.PROCESS_STARTED_AT")}),(0,s.jsx)("time",{children:U(t.processedOn,c.language,o)}),!!t.processedBy&&(0,s.jsx)("small",{children:i("JOB.PROCESSED_BY",{processedBy:t.processedBy})})]}),!!t.finishedOn&&(0,s.jsxs)("li",{children:[(0,s.jsx)("small",{children:M(t.finishedOn,t.processedOn||0,i)}),(0,s.jsx)("small",{children:i(t.isFailed&&l!==a.STATUSES.active&&l!==a.STATUSES.completed?"JOB.FAILED_AT":"JOB.FINISHED_AT")}),(0,s.jsx)("time",{children:U(t.finishedOn,c.language,o)})]})]})})};var P=l(26347),z=l(10451),$=l(8020),V=l(15190);let W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return!t||RegExp(`${t}`,"i").test(e.message)};function F(e){return e.map((e,t)=>({message:e,lineNumber:t+1}))}let K=e=>{let t,{actions:l,job:a}=e,{t:i}=(0,r.Bd)(),[c,o]=(0,n.useState)([]),[d,u]=(0,n.useState)(!1),[h,p]=(0,n.useState)(""),[x,j]=(0,n.useState)(""),g=(0,n.useRef)(null),v=(0,n.useRef)();(0,n.useEffect)(()=>{let e=!0;return l.getJobLogs().then(t=>{e&&o(F(t))}),()=>{e=!1}},[]),(0,P.$)(async()=>{o(F(await l.getJobLogs())),requestAnimationFrame(()=>{var e,t;null==(t=g.current)||t.scrollTo({top:null==(e=g.current)?void 0:e.scrollHeight,behavior:"smooth"})})},d?2500:null);let S=()=>{u(!d)},b=c.filter(e=>W(e,h));return(0,s.jsx)("div",{className:"jobLogs-MsL4aJ",ref:g,children:c.length>0?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("ul",{className:"toolbar-duDU2f",children:[(0,s.jsx)("li",{children:(0,s.jsx)("input",{className:"searchBar-N4o70g",type:"text",placeholder:i("JOB.LOGS.FILTER_PLACEHOLDER"),value:x,onChange:e=>{let t=e.target.value;j(t),clearTimeout(v.current),v.current=setTimeout(()=>p(t),250)}})}),!a.finishedOn&&(0,s.jsx)("li",{children:(0,s.jsx)(m.$,{isActive:d,onClick:S,children:d?(0,s.jsx)($.E,{}):(0,s.jsx)(V.u,{})})}),(0,s.jsx)("li",{children:(0,s.jsx)(m.$,{onClick:(t=g.current,async()=>t&&document.fullscreenElement!==t?await t.requestFullscreen():document.exitFullscreen()),children:(0,s.jsx)(z.P,{})})}),(0,s.jsx)("li",{children:(0,s.jsx)(O,{textToCopy:b.map(e=>e.message).join("\n")})})]}),(0,s.jsx)("div",{className:"preWrapper-V9RpQs",children:(0,s.jsx)("pre",{children:(0,s.jsx)("ol",{style:{paddingInlineStart:`${`${b.length}`.length+1}ch`},children:b.map(e=>{var t,l;let a;return(0,s.jsxs)("li",{className:null==(a=null==(l=e.message)||null==(t=l.match(/((info|warn|error)?):/i))?void 0:t[1])?void 0:a.toLowerCase(),"data-line-number":`${e.lineNumber}.`,children:[e.message,(0,s.jsx)(O,{textToCopy:e.message,className:"logLineCopyButton-LnHhmG",tabIndex:-1})]},e.lineNumber)})})})})]}):(0,s.jsxs)("div",{className:"emptyState-W3badU",children:[i("JOB.NO_LOGS"),!a.finishedOn&&(0,s.jsx)(m.$,{isActive:d,onClick:S,children:d?(0,s.jsx)($.E,{}):(0,s.jsx)(V.u,{})})]})})},G=e=>{let{selectedTab:t,job:l,actions:a,status:i}=e,{t:c}=(0,r.Bd)(),{collapseJobData:o,collapseJobProgress:u,collapseJobOptions:p,collapseJobError:x,defaultCollapseDepth:j,useCollapsibleJson:g}=(0,h.C)(),[v,S]=(0,n.useState)({data:!1,progress:!1,options:!1,error:!1}),{stacktrace:b,data:A,returnValue:w,opts:T,failedReason:f}=l;switch(t){case"Data":if(o&&!v.data)return(0,s.jsxs)(m.$,{onClick:()=>S({...v,data:!0}),children:[c("JOB.SHOW_DATA_BTN")," ",(0,s.jsx)(d.y,{})]});return g?(0,s.jsx)(B,{data:{jobData:A,returnValue:w},defaultCollapseDepth:j}):(0,s.jsx)(N,{language:"json",text:JSON.stringify({jobData:A,returnValue:w},null,2)});case"Progress":if("number"==typeof l.progress||"boolean"==typeof l.progress||null===l.progress||void 0===l.progress)return(0,s.jsx)("div",{className:"error",children:c("JOB.NO_PROGRESS")});return u&&!v.progress?(0,s.jsxs)(m.$,{onClick:()=>S({...v,progress:!0}),children:[c("JOB.SHOW_PROGRESS_BTN")," ",(0,s.jsx)(d.y,{})]}):g?(0,s.jsx)(B,{data:l.progress,defaultCollapseDepth:j}):(0,s.jsx)(N,{language:"json",text:JSON.stringify(l.progress,null,2)});case"Options":if(p&&!v.options)return(0,s.jsxs)(m.$,{onClick:()=>S({...v,options:!0}),children:[c("JOB.SHOW_OPTIONS_BTN")," ",(0,s.jsx)(d.y,{})]});return g?(0,s.jsx)(B,{data:T,defaultCollapseDepth:j}):(0,s.jsx)(N,{language:"json",text:JSON.stringify(T,null,2)});case"Error":if(0===b.length)return(0,s.jsx)("div",{className:"error",children:f||c("JOB.NO_ERRORS")});return x&&!v.error?(0,s.jsxs)(m.$,{onClick:()=>S({...v,error:!0}),children:[c("JOB.SHOW_ERRORS_BTN")," ",(0,s.jsx)(d.y,{})]}):(0,s.jsx)(N,{language:"stacktrace",text:b.join("\n")},"stacktrace");case"Logs":return(0,s.jsx)(K,{actions:a,job:l});case"Timeline":return(0,s.jsx)(H,{job:l,status:i,className:"timeline-_2T35a"});default:return null}},Y=e=>{let{status:t,job:l,actions:a,withTimeline:n=!1}=e,{tabs:i,selectedTab:c}=(0,j.i)({currentStatus:t,withTimeline:n}),{t:o}=(0,r.Bd)();return 0===i.length?null:(0,s.jsxs)("div",{className:"details-LkCTWS",children:[(0,s.jsx)("ul",{className:"tabActions-fF3v6_",children:i.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(m.$,{onClick:e.selectTab,isActive:e.isActive,children:o(`JOB.TABS.${e.title.toUpperCase()}`)})},e.title))}),(0,s.jsx)("div",{className:"tabContent-qmHNgq",children:(0,s.jsx)(G,{selectedTab:c,job:l,actions:a,status:t})})]})};var Z=l(2206),Q=l(7320),q=l(56956);let X=e=>{let{title:t,children:l}=e;return(0,s.jsx)("span",{"data-title":t,className:"tooltip-QJB3Pz",children:l})},ee={updateData:{titleKey:"UPDATE_DATA",Icon:()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:(0,s.jsx)("path",{d:"M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"})}),actionKey:"updateJobData"},promote:{titleKey:"PROMOTE",Icon:Z.G,actionKey:"promoteJob"},clean:{titleKey:"CLEAN",Icon:q.u,actionKey:"cleanJob"},retry:{titleKey:"RETRY",Icon:Q.m,actionKey:"retryJob"},duplicate:{titleKey:"DUPLICATE",Icon:()=>(0,s.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",children:(0,s.jsx)("path",{d:"M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"})}),actionKey:"duplicateJob"}},et={[a.STATUSES.failed]:[ee.retry,ee.duplicate,ee.updateData,ee.clean],[a.STATUSES.delayed]:[ee.promote,ee.duplicate,ee.updateData,ee.clean],[a.STATUSES.completed]:[ee.duplicate,ee.retry,ee.clean],[a.STATUSES.waiting]:[ee.duplicate,ee.updateData,ee.clean],[a.STATUSES.waitingChildren]:[ee.duplicate,ee.updateData,ee.clean],[a.STATUSES.prioritized]:[ee.duplicate,ee.updateData,ee.clean],[a.STATUSES.paused]:[ee.duplicate,ee.updateData,ee.clean]},el=e=>{let{actions:t,status:l,allowRetries:a}=e,n=et[l],{t:i}=(0,r.Bd)();return n?(a||(n=n.filter(e=>"retryJob"!==e.actionKey)),(0,s.jsx)("ul",{className:"jobActions-XfoQK8",children:n.map(e=>(0,s.jsx)("li",{children:(0,s.jsx)(X,{title:i(`JOB.ACTIONS.${e.titleKey}`),children:(0,s.jsx)(m.$,{onClick:t[e.actionKey],className:"button-GXX8BV",children:(0,s.jsx)(e.Icon,{})})})},e.titleKey))})):null},es=e=>{var t;let{progress:l,status:n,className:r,strokeWidth:i=6}=e,c="number"==typeof(t=l)?t:"string"==typeof t?Number.isNaN(+t)?null:+t:t&&"boolean"!=typeof t&&"progress"in t&&"number"==typeof t.progress?t.progress:null;if(!c)return null;let o={cx:"50%",cy:"50%",r:`calc(50% - ${i/2}px)`,strokeWidth:i,"transform-origin":"center"};return(0,s.jsxs)("svg",{className:(0,g.A)("progress-Rr7sCM",r),width:"100%",height:"100%",children:[(0,s.jsx)("circle",{...o}),(0,s.jsx)("circle",{className:(0,g.A)({"failed-rTUpGj":n===a.STATUSES.failed,"success-RY6h2q":n!==a.STATUSES.failed}),pathLength:100,strokeDasharray:100,strokeDashoffset:100-c,strokeLinejoin:"round",strokeLinecap:"round",transform:"rotate(-90)",...o}),(0,s.jsx)("text",{x:"50%",y:"50%",textAnchor:"middle",dominantBaseline:"central",children:(0,s.jsx)("tspan",{dominantBaseline:"central",children:`${Math.round(c)}%`})})]})};var ea=l(51529);let en=[a.STATUSES.active,a.STATUSES.completed],er=e=>{var t,l,j,g,v,S;let{job:b,status:A,actions:w,readOnlyMode:T,allowRetries:N,jobUrl:f}=e,{t:y}=(0,r.Bd)(),{collapseJob:O}=(0,h.C)(),C=(0,c.I)(),[L,B]=n.useState(),E=!f||L||!O,I=O&&f,J=/^\d+$/.test(`${b.id}`)?"#":"",D=`${b.id}`.length<=8;return(0,s.jsx)(x.bL,{asChild:!0,open:E,children:(0,s.jsxs)(o.Z,{className:ea.A.card,children:[(0,s.jsxs)("div",{className:ea.A.header,children:[(0,s.jsxs)("div",{className:ea.A.titleWithLink,children:[f?(0,s.jsxs)(i.N_,{className:ea.A.jobLink,to:f,children:[(0,s.jsxs)("span",{className:ea.A.jobId,children:[J,b.id]}),D&&(0,s.jsx)("span",{className:ea.A.jobNameInline,children:b.name})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:ea.A.statusDot,style:{backgroundColor:`var(--${A})`}}),(0,s.jsxs)("span",{className:ea.A.jobId,children:[J,b.id]}),D&&(0,s.jsx)("span",{className:ea.A.jobNameInline,children:b.name})]}),null!=b.groupId&&(0,s.jsxs)("span",{className:ea.A.groupPill,title:`Group: ${b.groupId}`,children:["group: ",b.groupId]}),b.externalUrl&&(0,s.jsx)("a",{className:ea.A.externalLink,href:b.externalUrl.href,target:"_blank",rel:"noopener noreferrer",children:b.externalUrl.displayText??(0,s.jsx)(u,{})})]}),(0,s.jsxs)("div",{className:ea.A.headerActions,children:[!T&&(0,s.jsx)(el,{status:A,actions:w,allowRetries:N}),I&&(0,s.jsx)(m.$,{className:ea.A.collapseBtn,onClick:()=>B(!E),children:E?(0,s.jsx)(p,{}):(0,s.jsx)(d.y,{})})]})]}),(0,s.jsx)(x.UC,{asChild:!0,children:(0,s.jsxs)("div",{className:ea.A.details,children:[!C&&(0,s.jsx)("div",{className:ea.A.sideInfo,children:(0,s.jsx)(H,{job:b,status:A})}),(0,s.jsxs)("div",{className:ea.A.contentWrapper,children:[!D&&(0,s.jsxs)("h5",{className:ea.A.jobName,children:[b.name,b.attempts>1&&(0,s.jsx)("span",{children:y("JOB.ATTEMPTS",{attempts:b.attempts})}),!!(null==(l=b.opts)||null==(t=l.repeat)?void 0:t.count)&&(0,s.jsx)("span",{children:y(`JOB.REPEAT${(null==(g=b.opts)||null==(j=g.repeat)?void 0:j.limit)?"_WITH_LIMIT":""}`,{count:b.opts.repeat.count,limit:null==(S=b.opts)||null==(v=S.repeat)?void 0:v.limit})})]}),(0,s.jsx)("div",{className:ea.A.content,children:(0,s.jsx)(Y,{status:A,job:b,actions:w,withTimeline:C})}),(0,s.jsx)(es,{progress:b.progress,status:b.isFailed&&!en.includes(A)?a.STATUSES.failed:A,className:ea.A.progress})]})]})})]})})}},64771(e,t,l){l.d(t,{V:()=>a});var s=l(31085);l(14041);let a=e=>{let{actions:t,children:l}=e;return(0,s.jsxs)("div",{className:"stickyHeader-Woc0cg",children:[l,!!t&&(0,s.jsx)("div",{className:"actionContainer-gipYSV",children:t})]})}},27384(e,t,l){l.d(t,{W:()=>a});var s=l(86090);function a(){let{pathname:e}=(0,s.zy)(),t=(0,s.B6)(e,{path:["/queue/:name/:jobId"],exact:!1,strict:!1});return decodeURIComponent((null==t?void 0:t.params.jobId)||"")}},15510(e,t,l){l.d(t,{d:()=>r,i:()=>i});var s=l(40555),a=l(14041),n=l(40783);let r=["Data","Progress","Options","Logs","Error","Timeline"];function i(e){let[t,l]=(0,a.useState)([]),{defaultJobTab:i}=(0,n.C)(),[c,o]=(0,a.useState)(t.find(e=>e===i)||t[0]);return(0,a.useEffect)(()=>{let t=r.filter(e=>"Error"!==e&&"Timeline"!==e);t=e.currentStatus===s.STATUSES.failed?["Error",...t]:[...t,"Error"],e.withTimeline&&t.push("Timeline"),l(t)},[e.currentStatus,e.withTimeline]),(0,a.useEffect)(()=>{o(t.includes(i)?i:t[0])},[i,t]),{tabs:null==t?void 0:t.map(e=>({title:e,isActive:e===c,selectTab:()=>o(e)})),selectedTab:c}}},96587(e,t,l){l.d(t,{J:()=>m});var s=l(42348),a=l(85865),n=l(83839),r=l(27384),i=l(20050),c=l(36784),o=l(86052),d=l(26347),u=l(87106),h=l(40783);let p=(0,a.vt)(e=>({job:null,status:"latest",loading:!0,updateJob:(t,l)=>e(()=>({job:t,status:l,loading:!1}))}));function m(){let e=(0,c.g)(),t=(0,i._)(),l=(0,r.W)(),{actions:{updateQueues:a}}=(0,u.A)(),{t:m}=(0,s.Bd)(),{confirmJobActions:x,pollingInterval:j}=(0,h.C)(e=>{let{confirmJobActions:t,pollingInterval:l}=e;return{confirmJobActions:t,pollingInterval:l}}),{job:g,status:v,loading:S,updateJob:b}=p(e=>e),{openConfirm:A}=(0,o.S)(),w=()=>e.getJob(t,l).then(e=>{let{job:t,status:l}=e;return b(t,l)}),T=(0,n.A)(l?w:a,A);return{job:g,status:v,loading:S,actions:{getJob:w,pollJob:()=>(0,d.$)(w,j>0?1e3*j:null,[t]),promoteJob:t=>l=>T(()=>e.promoteJob(t,l.id),m("JOB.ACTIONS.CONFIRM.PROMOTE"),x),cleanJob:t=>l=>T(()=>e.cleanJob(t,l.id),m("JOB.ACTIONS.CONFIRM.CLEAN"),x),getJobLogs:t=>l=>()=>e.getJobLogs(t,l.id),retryJob:t=>l=>T(()=>e.retryJob(t,l.id),m("JOB.ACTIONS.CONFIRM.RETRY"),x),updateJobData:(t,l,s)=>T(()=>e.updateJobData(t,l.id,s),"",!1)}}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_bull_board_ui=self.webpackChunk_bull_board_ui||[]).push([["30354"],{71513(e,t,r){let n,o,i,s;r.d(t,{A:()=>ta});var a,l,u,c,f={};function d(e,t){return function(){return e.apply(t,arguments)}}r.r(f),r.d(f,{hasBrowserEnv:()=>eS,hasStandardBrowserEnv:()=>eA,hasStandardBrowserWebWorkerEnv:()=>eT,navigator:()=>e_,origin:()=>eC});let{toString:h}=Object.prototype,{getPrototypeOf:p}=Object,{iterator:m,toStringTag:b}=Symbol,y=(n=Object.create(null),e=>{let t=h.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),g=e=>(e=e.toLowerCase(),t=>y(t)===e),w=e=>t=>typeof t===e,{isArray:E}=Array,R=w("undefined");function O(e){return null!==e&&!R(e)&&null!==e.constructor&&!R(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let S=g("ArrayBuffer"),_=w("string"),A=w("function"),T=w("number"),C=e=>null!==e&&"object"==typeof e,v=e=>{if("object"!==y(e))return!1;let t=p(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b in e)&&!(m in e)},N=g("Date"),x=g("File"),P=g("Blob"),j=g("FileList"),D="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},U=void 0!==D.FormData?D.FormData:void 0,L=g("URLSearchParams"),[F,B,k,q]=["ReadableStream","Request","Response","Headers"].map(g);function I(e,t,{allOwnKeys:r=!1}={}){let n,o;if(null!=e)if("object"!=typeof e&&(e=[e]),E(e))for(n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else{let o;if(O(e))return;let i=r?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;for(n=0;n<s;n++)o=i[n],t.call(null,e[o],o,e)}}function M(e,t){let r;if(O(e))return null;t=t.toLowerCase();let n=Object.keys(e),o=n.length;for(;o-- >0;)if(t===(r=n[o]).toLowerCase())return r;return null}let z="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:global,H=e=>!R(e)&&e!==z,J=(o="u">typeof Uint8Array&&p(Uint8Array),e=>o&&e instanceof o),W=g("HTMLFormElement"),$=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),V=g("RegExp"),K=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};I(r,(r,o)=>{let i;!1!==(i=t(r,o,e))&&(n[o]=i||r)}),Object.defineProperties(e,n)},X=g("AsyncFunction"),G=(a="function"==typeof setImmediate,l=A(z.postMessage),a?setImmediate:l?(u=`axios@${Math.random()}`,c=[],z.addEventListener("message",({source:e,data:t})=>{e===z&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),z.postMessage(u,"*")}):e=>setTimeout(e)),Q="u">typeof queueMicrotask?queueMicrotask.bind(z):"u">typeof process&&process.nextTick||G,Y={isArray:E,isArrayBuffer:S,isBuffer:O,isFormData:e=>{if(!e)return!1;if(U&&e instanceof U)return!0;let t=p(e);if(!t||t===Object.prototype||!A(e.append))return!1;let r=y(e);return"formdata"===r||"object"===r&&A(e.toString)&&"[object FormData]"===e.toString()},isArrayBufferView:function(e){return"u">typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&S(e.buffer)},isString:_,isNumber:T,isBoolean:e=>!0===e||!1===e,isObject:C,isPlainObject:v,isEmptyObject:e=>{if(!C(e)||O(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:F,isRequest:B,isResponse:k,isHeaders:q,isUndefined:R,isDate:N,isFile:x,isReactNativeBlob:e=>!!(e&&void 0!==e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:P,isRegExp:V,isFunction:A,isStream:e=>C(e)&&A(e.pipe),isURLSearchParams:L,isTypedArray:J,isFileList:j,forEach:I,merge:function e(...t){let{caseless:r,skipUndefined:n}=H(this)&&this||{},o={},i=(t,i)=>{if("__proto__"===i||"constructor"===i||"prototype"===i)return;let s=r&&M(o,i)||i,a=$(o,s)?o[s]:void 0;v(a)&&v(t)?o[s]=e(a,t):v(t)?o[s]=e({},t):E(t)?o[s]=t.slice():n&&R(t)||(o[s]=t)};for(let e=0,r=t.length;e<r;e++)t[e]&&I(t[e],i);return o},extend:(e,t,r,{allOwnKeys:n}={})=>(I(t,(t,n)=>{r&&A(t)?Object.defineProperty(e,n,{__proto__:null,value:d(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{__proto__:null,value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let o,i,s,a={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)s=o[i],(!n||n(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=!1!==r&&p(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:y,kindOfTest:g,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(E(e))return e;let t=e.length;if(!T(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r,n=(e&&e[m]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r,n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:W,hasOwnProperty:$,hasOwnProp:$,reduceDescriptors:K,freezeMethods:e=>{K(e,(t,r)=>{if(A(e)&&["arguments","caller","callee"].includes(r))return!1;if(A(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(E(e)?e:String(e).split(t)).forEach(e=>{r[e]=!0}),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:M,global:z,isContextDefined:H,isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[b]&&e[m])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(C(e)){if(t.indexOf(e)>=0)return;if(O(e))return e;if(!("toJSON"in e)){t[n]=e;let o=E(e)?[]:{};return I(e,(e,t)=>{let i=r(e,n+1);R(i)||(o[t]=i)}),t[n]=void 0,o}}return e};return r(e,0)},isAsyncFn:X,isThenable:e=>e&&(C(e)||A(e))&&A(e.then)&&A(e.catch),setImmediate:G,asap:Q,isIterable:e=>null!=e&&A(e[m])},Z=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ee=Symbol("internals"),et=/[^\x09\x20-\x7E\x80-\xFF]/g;function er(e){return e&&String(e).trim().toLowerCase()}function en(e){return!1===e||null==e?e:Y.isArray(e)?e.map(en):function(e){let t=0,r=e.length;for(;t<r;){let r=e.charCodeAt(t);if(9!==r&&32!==r)break;t+=1}for(;r>t;){let t=e.charCodeAt(r-1);if(9!==t&&32!==t)break;r-=1}return 0===t&&r===e.length?e:e.slice(t,r)}(String(e).replace(et,""))}function eo(e,t,r,n,o){if(Y.isFunction(n))return n.call(this,t,r);if(o&&(t=r),Y.isString(t)){if(Y.isString(n))return -1!==t.indexOf(n);if(Y.isRegExp(n))return n.test(t)}}class ei{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function o(e,t,r){let o=er(t);if(!o)throw Error("header name must be a non-empty string");let i=Y.findKey(n,o);i&&void 0!==n[i]&&!0!==r&&(void 0!==r||!1===n[i])||(n[i||t]=en(e))}let i=(e,t)=>Y.forEach(e,(e,r)=>o(e,r,t));if(Y.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let n;if(Y.isString(e)&&(e=e.trim())&&(n=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim()))){var s;let r,n,o,a;i((a={},(s=e)&&s.split("\n").forEach(function(e){o=e.indexOf(":"),r=e.substring(0,o).trim().toLowerCase(),n=e.substring(o+1).trim(),!r||a[r]&&Z[r]||("set-cookie"===r?a[r]?a[r].push(n):a[r]=[n]:a[r]=a[r]?a[r]+", "+n:n)}),a),t)}else if(Y.isObject(e)&&Y.isIterable(e)){let r={},n,o;for(let t of e){if(!Y.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[o=t[0]]=(n=r[o])?Y.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(r,t)}else null!=e&&o(t,e,r)}return this}get(e,t){if(e=er(e)){let r=Y.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t){let t,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}if(Y.isFunction(t))return t.call(this,e,r);if(Y.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=er(e)){let r=Y.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eo(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function o(e){if(e=er(e)){let o=Y.findKey(r,e);o&&(!t||eo(r,r[o],o,t))&&(delete r[o],n=!0)}}return Y.isArray(e)?e.forEach(o):o(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let o=t[r];(!e||eo(this,this[o],o,e,!0))&&(delete this[o],n=!0)}return n}normalize(e){let t=this,r={};return Y.forEach(this,(n,o)=>{let i=Y.findKey(r,o);if(i){t[i]=en(n),delete t[o];return}let s=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(o).trim();s!==o&&delete t[o],t[s]=en(n),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return Y.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Y.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[ee]=this[ee]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=er(e);if(!t[n]){let o;o=Y.toCamelCase(" "+e),["get","set","has"].forEach(t=>{Object.defineProperty(r,t+o,{__proto__:null,value:function(r,n,o){return this[t].call(this,e,r,n,o)},configurable:!0})}),t[n]=!0}}return Y.isArray(e)?e.forEach(n):n(e),this}}ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ei.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Y.freezeMethods(ei);class es extends Error{static from(e,t,r,n,o,i){let s=new es(e.message,t||e.code,r,n,o);return s.cause=e,s.name=e.name,null!=e.status&&null==s.status&&(s.status=e.status),i&&Object.assign(s,i),s}constructor(e,t,r,n,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status)}toJSON(){let e,t,r,n=this.config,o=n&&Y.hasOwnProp(n,"redact")?n.redact:void 0,i=Y.isArray(o)&&o.length>0?(e=new Set(o.map(e=>String(e).toLowerCase())),t=[],(r=n=>{let o;if(null===n||"object"!=typeof n||Y.isBuffer(n))return n;if(-1===t.indexOf(n)){if(n instanceof ei&&(n=n.toJSON()),t.push(n),Y.isArray(n))o=[],n.forEach((e,t)=>{let n=r(e);Y.isUndefined(n)||(o[t]=n)});else{if(!Y.isPlainObject(n)&&function(e){if(Y.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(Y.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}(n))return t.pop(),n;for(let[t,i]of(o=Object.create(null),Object.entries(n))){let n=e.has(t.toLowerCase())?"[REDACTED ****]":r(i);Y.isUndefined(n)||(o[t]=n)}}return t.pop(),o}})(n)):Y.toJSONObject(n);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:i,code:this.code,status:this.status}}}es.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",es.ERR_BAD_OPTION="ERR_BAD_OPTION",es.ECONNABORTED="ECONNABORTED",es.ETIMEDOUT="ETIMEDOUT",es.ECONNREFUSED="ECONNREFUSED",es.ERR_NETWORK="ERR_NETWORK",es.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",es.ERR_DEPRECATED="ERR_DEPRECATED",es.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",es.ERR_BAD_REQUEST="ERR_BAD_REQUEST",es.ERR_CANCELED="ERR_CANCELED",es.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",es.ERR_INVALID_URL="ERR_INVALID_URL",es.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";let ea=es;function el(e){return Y.isPlainObject(e)||Y.isArray(e)}function eu(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function ec(e,t,r){return e?e.concat(t).map(function(e,t){return e=eu(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let ef=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)}),ed=function(e,t,r){if(!Y.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=Y.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Y.isUndefined(t[e])})).metaTokens,o=r.visitor||f,i=r.dots,s=r.indexes,a=r.Blob||"u">typeof Blob&&Blob,l=void 0===r.maxDepth?100:r.maxDepth,u=a&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Y.isDate(e))return e.toISOString();if(Y.isBoolean(e))return e.toString();if(!u&&Y.isBlob(e))throw new ea("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(e)||Y.isTypedArray(e)?u&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function f(e,r,o){let a=e;if(Y.isReactNative(t)&&Y.isReactNativeBlob(e))return t.append(ec(o,r,i),c(e)),!1;if(e&&!o&&"object"==typeof e)if(Y.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var l;if(Y.isArray(e)&&(l=e,Y.isArray(l)&&!l.some(el))||(Y.isFileList(e)||Y.endsWith(r,"[]"))&&(a=Y.toArray(e)))return r=eu(r),a.forEach(function(e,n){Y.isUndefined(e)||null===e||t.append(!0===s?ec([r],n,i):null===s?r:r+"[]",c(e))}),!1}return!!el(e)||(t.append(ec(o,r,i),c(e)),!1)}let d=[],h=Object.assign(ef,{defaultVisitor:f,convertValue:c,isVisitable:el});if(!Y.isObject(e))throw TypeError("data must be an object");return!function e(r,n,i=0){if(!Y.isUndefined(r)){if(i>l)throw new ea("Object is too deeply nested ("+i+" levels). Max depth: "+l,ea.ERR_FORM_DATA_DEPTH_EXCEEDED);if(-1!==d.indexOf(r))throw Error("Circular reference detected in "+n.join("."));d.push(r),Y.forEach(r,function(r,s){!0===(!(Y.isUndefined(r)||null===r)&&o.call(t,r,Y.isString(s)?s.trim():s,n,h))&&e(r,n?n.concat(s):[s],i+1)}),d.pop()}}(e),t};function eh(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(e){return t[e]})}function ep(e,t){this._pairs=[],e&&ed(e,this,t)}let em=ep.prototype;function eb(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ey(e,t,r){let n;if(!t)return e;let o=r&&r.encode||eb,i=Y.isFunction(r)?{serialize:r}:r,s=i&&i.serialize;if(n=s?s(t,i):Y.isURLSearchParams(t)?t.toString():new ep(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}em.append=function(e,t){this._pairs.push([e,t])},em.toString=function(e){let t=e?function(t){return e.call(this,t,eh)}:eh;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};let eg=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(t){null!==t&&e(t)})}},ew={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eE="u">typeof URLSearchParams?URLSearchParams:ep,eR="u">typeof FormData?FormData:null,eO="u">typeof Blob?Blob:null,eS="u">typeof window&&"u">typeof document,e_="object"==typeof navigator&&navigator||void 0,eA=eS&&(!e_||0>["ReactNative","NativeScript","NS"].indexOf(e_.product)),eT="u">typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eC=eS&&window.location.href||"http://localhost",ev={...f,isBrowser:!0,classes:{URLSearchParams:eE,FormData:eR,Blob:eO},protocols:["http","https","file","blob","url","data"]},eN=function(e){if(Y.isFormData(e)&&Y.isFunction(e.entries)){let t={};return Y.forEachEntry(e,(e,r)=>{!function e(t,r,n,o){let i=t[o++];if("__proto__"===i)return!0;let s=Number.isFinite(+i),a=o>=t.length;return(i=!i&&Y.isArray(n)?n.length:i,a)?Y.hasOwnProp(n,i)?n[i]=Y.isArray(n[i])?n[i].concat(r):[n[i],r]:n[i]=r:(n[i]&&Y.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&Y.isArray(n[i])&&(n[i]=function(e){let t,r,n={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)n[r=o[t]]=e[r];return n}(n[i]))),!s}(Y.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null},ex=(e,t)=>null!=e&&Y.hasOwnProp(e,t)?e[t]:void 0,eP={transitional:ew,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r,n=t.getContentType()||"",o=n.indexOf("application/json")>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return o?JSON.stringify(eN(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e)||Y.isReadableStream(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){let t=ex(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return ed(e,new ev.classes.URLSearchParams,{visitor:function(e,t,r,n){return ev.isNode&&Y.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t}).toString();if((r=Y.isFileList(e))||n.indexOf("multipart/form-data")>-1){let n=ex(this,"env"),o=n&&n.FormData;return ed(r?{"files[]":e}:e,o&&new o,t)}}if(i||o){t.setContentType("application/json",!1);var s=e;if(Y.isString(s))try{return(0,JSON.parse)(s),Y.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=ex(this,"transitional")||eP.transitional,r=t&&t.forcedJSONParsing,n=ex(this,"responseType"),o="json"===n;if(Y.isResponse(e)||Y.isReadableStream(e))return e;if(e&&Y.isString(e)&&(r&&!n||o)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,ex(this,"parseReviver"))}catch(e){if(!r&&o){if("SyntaxError"===e.name)throw ea.from(e,ea.ERR_BAD_RESPONSE,this,null,ex(this,"response"));throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ev.classes.FormData,Blob:ev.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};function ej(e,t){let r=this||eP,n=t||r,o=ei.from(n.headers),i=n.data;return Y.forEach(e,function(e){i=e.call(r,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eD(e){return!!(e&&e.__CANCEL__)}Y.forEach(["delete","get","head","post","put","patch","query"],e=>{eP.headers[e]={}});let eU=class extends ea{constructor(e,t,r){super(null==e?"canceled":e,ea.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}};function eL(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new ea("Request failed with status code "+r.status,r.status>=400&&r.status<500?ea.ERR_BAD_REQUEST:ea.ERR_BAD_RESPONSE,r.config,r.request,r))}let eF=function(e,t){let r,n=Array(e=e||10),o=Array(e),i=0,s=0;return t=void 0!==t?t:1e3,function(a){let l=Date.now(),u=o[s];r||(r=l),n[i]=a,o[i]=l;let c=s,f=0;for(;c!==i;)f+=n[c++],c%=e;if((i=(i+1)%e)===s&&(s=(s+1)%e),l-r<t)return;let d=u&&l-u;return d?Math.round(1e3*f/d):void 0}},eB=function(e,t){let r,n,o=0,i=1e3/t,s=(t,i=Date.now())=>{o=i,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-o;a>=i?s(e,t):(r=e,n||(n=setTimeout(()=>{n=null,s(r)},i-a)))},()=>r&&s(r)]},ek=(e,t,r=3)=>{let n=0,o=eF(50,250);return eB(r=>{let i=r.loaded,s=r.lengthComputable?r.total:void 0,a=null!=s?Math.min(i,s):i,l=Math.max(0,a-n),u=o(l);n=Math.max(n,a),e({loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s?(s-a)/u:void 0,event:r,lengthComputable:null!=s,[t?"download":"upload"]:!0})},r)},eq=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},eI=e=>(...t)=>Y.asap(()=>e(...t)),eM=ev.hasStandardBrowserEnv?(i=new URL(ev.origin),s=ev.navigator&&/(msie|trident)/i.test(ev.navigator.userAgent),e=>(e=new URL(e,ev.origin),i.protocol===e.protocol&&i.host===e.host&&(s||i.port===e.port))):()=>!0,ez=ev.hasStandardBrowserEnv?{write(e,t,r,n,o,i,s){if("u"<typeof document)return;let a=[`${e}=${encodeURIComponent(t)}`];Y.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),Y.isString(n)&&a.push(`path=${n}`),Y.isString(o)&&a.push(`domain=${o}`),!0===i&&a.push("secure"),Y.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(e){if("u"<typeof document)return null;let t=document.cookie.split(";");for(let r=0;r<t.length;r++){let n=t[r].replace(/^\s+/,""),o=n.indexOf("=");if(-1!==o&&n.slice(0,o)===e)return decodeURIComponent(n.slice(o+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function eH(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1===r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eJ=e=>e instanceof ei?{...e}:e;function eW(e,t){t=t||{};let r=Object.create(null);function n(e,t,r,n){return Y.isPlainObject(e)&&Y.isPlainObject(t)?Y.merge.call({caseless:n},e,t):Y.isPlainObject(t)?Y.merge({},t):Y.isArray(t)?t.slice():t}function o(e,t,r,o){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:n(void 0,e,r,o):n(e,t,r,o)}function i(e,t){if(!Y.isUndefined(t))return n(void 0,t)}function s(e,t){return Y.isUndefined(t)?Y.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,o,i){return Y.hasOwnProp(t,i)?n(r,o):Y.hasOwnProp(e,i)?n(void 0,r):void 0}Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});let l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(e,t,r)=>o(eJ(e),eJ(t),r,!0)};return Y.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let i=Y.hasOwnProp(l,n)?l[n]:o,s=i(Y.hasOwnProp(e,n)?e[n]:void 0,Y.hasOwnProp(t,n)?t[n]:void 0,n);Y.isUndefined(s)&&i!==a||(r[n]=s)}),r}let e$=["content-type","content-length"],eV=e=>{let t=eW({},e),r=e=>Y.hasOwnProp(t,e)?t[e]:void 0,n=r("data"),o=r("withXSRFToken"),i=r("xsrfHeaderName"),s=r("xsrfCookieName"),a=r("headers"),l=r("auth"),u=r("baseURL"),c=r("allowAbsoluteUrls"),f=r("url");if(t.headers=a=ei.from(a),t.url=ey(eH(u,f,c),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?encodeURIComponent(l.password).replace(/%([0-9A-F]{2})/gi,(e,t)=>String.fromCharCode(parseInt(t,16))):""))),Y.isFormData(n))if(ev.hasStandardBrowserEnv||ev.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else{var d,h;Y.isFunction(n.getHeaders)&&(d=a,h=n.getHeaders(),"content-only"!==r("formDataHeaderPolicy")?d.set(h):Object.entries(h).forEach(([e,t])=>{e$.includes(e.toLowerCase())&&d.set(e,t)}))}if(ev.hasStandardBrowserEnv&&(Y.isFunction(o)&&(o=o(t)),!0===o||null==o&&eM(t.url))){let e=i&&s&&ez.read(s);e&&a.set(i,e)}return t},eK="u">typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){var n;let o,i,s,a,l,u,c=eV(e),f=c.data,d=ei.from(c.headers).normalize(),{responseType:h,onUploadProgress:p,onDownloadProgress:m}=c;function b(){a&&a(),l&&l(),c.cancelToken&&c.cancelToken.unsubscribe(o),c.signal&&c.signal.removeEventListener("abort",o)}let y=new XMLHttpRequest;function g(){if(!y)return;let n=ei.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());eL(function(e){t(e),b()},function(e){r(e),b()},{data:h&&"text"!==h&&"json"!==h?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(c.method.toUpperCase(),c.url,!0),y.timeout=c.timeout,"onloadend"in y?y.onloadend=g:y.onreadystatechange=function(){!y||4!==y.readyState||(0!==y.status||y.responseURL&&y.responseURL.startsWith("file:"))&&setTimeout(g)},y.onabort=function(){y&&(r(new ea("Request aborted",ea.ECONNABORTED,e,y)),b(),y=null)},y.onerror=function(t){let n=new ea(t&&t.message?t.message:"Network Error",ea.ERR_NETWORK,e,y);n.event=t||null,r(n),b(),y=null},y.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||ew;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new ea(t,n.clarifyTimeoutError?ea.ETIMEDOUT:ea.ECONNABORTED,e,y)),b(),y=null},void 0===f&&d.setContentType(null),"setRequestHeader"in y&&Y.forEach(d.toJSON(),function(e,t){y.setRequestHeader(t,e)}),Y.isUndefined(c.withCredentials)||(y.withCredentials=!!c.withCredentials),h&&"json"!==h&&(y.responseType=c.responseType),m&&([s,l]=ek(m,!0),y.addEventListener("progress",s)),p&&y.upload&&([i,a]=ek(p),y.upload.addEventListener("progress",i),y.upload.addEventListener("loadend",a)),(c.cancelToken||c.signal)&&(o=t=>{y&&(r(!t||t.type?new eU(null,e,y):t),y.abort(),b(),y=null)},c.cancelToken&&c.cancelToken.subscribe(o),c.signal&&(c.signal.aborted?o():c.signal.addEventListener("abort",o)));let w=(n=c.url,(u=/^([-+\w]{1,25}):(?:\/\/)?/.exec(n))&&u[1]||"");w&&!ev.protocols.includes(w)?r(new ea("Unsupported protocol "+w+":",ea.ERR_BAD_REQUEST,e)):y.send(f||null)})},eX=function*(e,t){let r,n=e.byteLength;if(!t||n<t)return void(yield e);let o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},eG=async function*(e,t){for await(let r of eQ(e))yield*eX(r,t)},eQ=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},eY=(e,t,r,n)=>{let o,i=eG(e,t),s=0,a=e=>{!o&&(o=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await i.next();if(t){a(),e.close();return}let o=n.byteLength;if(r){let e=s+=o;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),i.return())},{highWaterMark:2})},{isFunction:eZ}=Y,e0=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e1=e=>{let t,r=Y.global??globalThis,{ReadableStream:n,TextEncoder:o}=r,{fetch:i,Request:s,Response:a}=e=Y.merge.call({skipUndefined:!0},{Request:r.Request,Response:r.Response},e),l=i?eZ(i):"function"==typeof fetch,u=eZ(s),c=eZ(a);if(!l)return!1;let f=l&&eZ(n),d=l&&("function"==typeof o?(t=new o,e=>t.encode(e)):async e=>new Uint8Array(await new s(e).arrayBuffer())),h=u&&f&&e0(()=>{let e=!1,t=new s(ev.origin,{body:new n,method:"POST",get duplex(){return e=!0,"half"}}),r=t.headers.has("Content-Type");return null!=t.body&&t.body.cancel(),e&&!r}),p=c&&f&&e0(()=>Y.isReadableStream(new a("").body)),m={stream:p&&(e=>e.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{m[e]||(m[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new ea(`Response type '${e}' is not supported`,ea.ERR_NOT_SUPPORT,r)})});let b=async e=>{if(null==e)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e)){let t=new s(ev.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Y.isArrayBufferView(e)||Y.isArrayBuffer(e)?e.byteLength:(Y.isURLSearchParams(e)&&(e+=""),Y.isString(e))?(await d(e)).byteLength:void 0},y=async(e,t)=>{let r=Y.toFiniteNumber(e.getContentLength());return null==r?b(t):r};return async e=>{let t,{url:r,method:n,data:l,signal:c,cancelToken:f,timeout:d,onDownloadProgress:b,onUploadProgress:g,responseType:w,headers:E,withCredentials:R="same-origin",fetchOptions:O,maxContentLength:S,maxBodyLength:_}=eV(e),A=Y.isNumber(S)&&S>-1,T=Y.isNumber(_)&&_>-1,C=i||fetch;w=w?(w+"").toLowerCase():"text";let v=((e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,o=function(e){if(!r){r=!0,s();let t=e instanceof Error?e:this.reason;n.abort(t instanceof ea?t:new eU(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,o(new ea(`timeout of ${t}ms exceeded`,ea.ETIMEDOUT))},t),s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));let{signal:a}=n;return a.unsubscribe=()=>Y.asap(s),a}})([c,f&&f.toAbortSignal()],d),N=null,x=v&&v.unsubscribe&&(()=>{v.unsubscribe()});try{if(A&&"string"==typeof r&&r.startsWith("data:")&&function(e){if(!e||"string"!=typeof e||!e.startsWith("data:"))return 0;let t=e.indexOf(",");if(t<0)return 0;let r=e.slice(5,t),n=e.slice(t+1);if(/;base64/i.test(r)){let e=n.length,t=n.length;for(let r=0;r<t;r++)if(37===n.charCodeAt(r)&&r+2<t){let t=n.charCodeAt(r+1),o=n.charCodeAt(r+2);(t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102)&&(o>=48&&o<=57||o>=65&&o<=70||o>=97&&o<=102)&&(e-=2,r+=2)}let r=0,o=t-1,i=e=>e>=2&&37===n.charCodeAt(e-2)&&51===n.charCodeAt(e-1)&&(68===n.charCodeAt(e)||100===n.charCodeAt(e));o>=0&&(61===n.charCodeAt(o)?(r++,o--):i(o)&&(r++,o-=3)),1===r&&o>=0&&(61===n.charCodeAt(o)?r++:i(o)&&r++);let s=3*Math.floor(e/4)-(r||0);return s>0?s:0}if("u">typeof Buffer&&"function"==typeof Buffer.byteLength)return Buffer.byteLength(n,"utf8");let o=0;for(let e=0,t=n.length;e<t;e++){let r=n.charCodeAt(e);if(r<128)o+=1;else if(r<2048)o+=2;else if(r>=55296&&r<=56319&&e+1<t){let t=n.charCodeAt(e+1);t>=56320&&t<=57343?(o+=4,e++):o+=3}else o+=3}return o}(r)>S)throw new ea("maxContentLength size of "+S+" exceeded",ea.ERR_BAD_RESPONSE,e,N);if(T&&"get"!==n&&"head"!==n){let t=await y(E,l);if("number"==typeof t&&isFinite(t)&&t>_)throw new ea("Request body larger than maxBodyLength limit",ea.ERR_BAD_REQUEST,e,N)}if(g&&h&&"get"!==n&&"head"!==n&&0!==(t=await y(E,l))){let e,n=new s(r,{method:"POST",body:l,duplex:"half"});if(Y.isFormData(l)&&(e=n.headers.get("content-type"))&&E.setContentType(e),n.body){let[e,r]=eq(t,ek(eI(g)));l=eY(n.body,65536,e,r)}}Y.isString(R)||(R=R?"include":"omit");let i=u&&"credentials"in s.prototype;if(Y.isFormData(l)){let e=E.getContentType();e&&/^multipart\/form-data/i.test(e)&&!/boundary=/i.test(e)&&E.delete("content-type")}E.set("User-Agent","axios/1.16.0",!1);let c={...O,signal:v,method:n.toUpperCase(),headers:E.normalize().toJSON(),body:l,duplex:"half",credentials:i?R:void 0};N=u&&new s(r,c);let f=await (u?C(N,O):C(r,c));if(A){let t=Y.toFiniteNumber(f.headers.get("content-length"));if(null!=t&&t>S)throw new ea("maxContentLength size of "+S+" exceeded",ea.ERR_BAD_RESPONSE,e,N)}let d=p&&("stream"===w||"response"===w);if(p&&f.body&&(b||A||d&&x)){let t={};["status","statusText","headers"].forEach(e=>{t[e]=f[e]});let r=Y.toFiniteNumber(f.headers.get("content-length")),[n,o]=b&&eq(r,ek(eI(b),!0))||[];f=new a(eY(f.body,65536,t=>{if(A&&t>S)throw new ea("maxContentLength size of "+S+" exceeded",ea.ERR_BAD_RESPONSE,e,N);n&&n(t)},()=>{o&&o(),x&&x()}),t)}w=w||"text";let P=await m[Y.findKey(m,w)||"text"](f,e);if(A&&!p&&!d){let t;if(null!=P&&("number"==typeof P.byteLength?t=P.byteLength:"number"==typeof P.size?t=P.size:"string"==typeof P&&(t="function"==typeof o?new o().encode(P).byteLength:P.length)),"number"==typeof t&&t>S)throw new ea("maxContentLength size of "+S+" exceeded",ea.ERR_BAD_RESPONSE,e,N)}return!d&&x&&x(),await new Promise((t,r)=>{eL(t,r,{data:P,headers:ei.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:N})})}catch(t){if(x&&x(),v&&v.aborted&&v.reason instanceof ea){let r=v.reason;throw r.config=e,N&&(r.request=N),t!==r&&(r.cause=t),r}if(t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new ea("Network Error",ea.ERR_NETWORK,e,N,t&&t.response),{cause:t.cause||t});throw ea.from(t,t&&t.code,e,N,t&&t.response)}}},e2=new Map,e4=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:o}=t,i=[n,o,r],s=i.length,a,l,u=e2;for(;s--;)a=i[s],void 0===(l=u.get(a))&&u.set(a,l=s?new Map:e1(t)),u=l;return l};e4();let e5={http:null,xhr:eK,fetch:{get:e4}};Y.forEach(e5,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch(e){}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});let e3=e=>`- ${e}`,e6=e=>Y.isFunction(e)||null===e||!1===e,e8=function(e,t){let r,n,{length:o}=e=Y.isArray(e)?e:[e],i={};for(let s=0;s<o;s++){let o;if(n=r=e[s],!e6(r)&&void 0===(n=e5[(o=String(r)).toLowerCase()]))throw new ea(`Unknown adapter '${o}'`);if(n&&(Y.isFunction(n)||(n=n.get(t))))break;i[o||"#"+s]=n}if(!n){let e=Object.entries(i).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new ea("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(e3).join("\n"):" "+e3(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function e7(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eU(null,e)}function e9(e){return e7(e),e.headers=ei.from(e.headers),e.data=ej.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e8(e.adapter||eP.adapter,e)(e).then(function(t){e7(e),e.response=t;try{t.data=ej.call(e,e.transformResponse,t)}finally{delete e.response}return t.headers=ei.from(t.headers),t},function(t){if(!eD(t)&&(e7(e),t&&t.response)){e.response=t.response;try{t.response.data=ej.call(e,e.transformResponse,t.response)}finally{delete e.response}t.response.headers=ei.from(t.response.headers)}return Promise.reject(t)})}let te={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{te[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tt={};te.transitional=function(e,t,r){function n(e,t){return"[Axios v1.16.0] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,o,i)=>{if(!1===e)throw new ea(n(o," has been removed"+(t?" in "+t:"")),ea.ERR_DEPRECATED);return t&&!tt[o]&&(tt[o]=!0,console.warn(n(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,o,i)}},te.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};let tr=function(e,t,r){if("object"!=typeof e)throw new ea("options must be an object",ea.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),o=n.length;for(;o-- >0;){let i=n[o],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){let t=e[i],r=void 0===t||s(t,i,e);if(!0!==r)throw new ea("option "+i+" must be "+r,ea.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new ea("Unknown option "+i,ea.ERR_BAD_OPTION)}};class tn{constructor(e){this.defaults=e||{},this.interceptors={request:new eg,response:new eg}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=(()=>{if(!t.stack)return"";let e=t.stack.indexOf("\n");return -1===e?"":t.stack.slice(e+1)})();try{if(e.stack){if(r){let t=r.indexOf("\n"),n=-1===t?-1:r.indexOf("\n",t+1),o=-1===n?"":r.slice(n+1);String(e.stack).endsWith(o)||(e.stack+="\n"+r)}}else e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:s}=t=eW(this.defaults,t);void 0!==o&&tr(o,{silentJSONParsing:te.transitional(te.boolean),forcedJSONParsing:te.transitional(te.boolean),clarifyTimeoutError:te.transitional(te.boolean),legacyInterceptorReqResOrdering:te.transitional(te.boolean)},!1),null!=i&&(Y.isFunction(i)?t.paramsSerializer={serialize:i}:tr(i,{encode:te.function,serialize:te.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tr(t,{baseUrl:te.spelling("baseURL"),withXsrfToken:te.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&Y.merge(s.common,s[t.method]);s&&Y.forEach(["delete","get","head","post","put","patch","query","common"],e=>{delete s[e]}),t.headers=ei.concat(a,s);let l=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||ew;r&&r.legacyInterceptorReqResOrdering?l.unshift(e.fulfilled,e.rejected):l.push(e.fulfilled,e.rejected)});let c=[];this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let f=0;if(!u){let e=[e9.bind(this),void 0];for(e.unshift(...l),e.push(...c),n=e.length,r=Promise.resolve(t);f<n;)r=r.then(e[f++],e[f++]);return r}n=l.length;let d=t;for(;f<n;){let e=l[f++],t=l[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{r=e9.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,n=c.length;f<n;)r=r.then(c[f++],c[f++]);return r}getUri(e){return ey(eH((e=eW(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Y.forEach(["delete","get","head","options"],function(e){tn.prototype[e]=function(t,r){return this.request(eW(r||{},{method:e,url:t,data:(r||{}).data}))}}),Y.forEach(["post","put","patch","query"],function(e){function t(t){return function(r,n,o){return this.request(eW(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tn.prototype[e]=t(),"query"!==e&&(tn.prototype[e+"Form"]=t(!0))});class to{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t,n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,o){r.reason||(r.reason=new eU(e,n,o),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new to(function(t){e=t}),cancel:e}}}let ti={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ti).forEach(([e,t])=>{ti[t]=e});let ts=function e(t){let r=new tn(t),n=d(tn.prototype.request,r);return Y.extend(n,tn.prototype,r,{allOwnKeys:!0}),Y.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(eW(t,r))},n}(eP);ts.Axios=tn,ts.CanceledError=eU,ts.CancelToken=to,ts.isCancel=eD,ts.VERSION="1.16.0",ts.toFormData=ed,ts.AxiosError=ea,ts.Cancel=ts.CanceledError,ts.all=function(e){return Promise.all(e)},ts.spread=function(e){return function(t){return e.apply(null,t)}},ts.isAxiosError=function(e){return Y.isObject(e)&&!0===e.isAxiosError},ts.mergeConfig=eW,ts.AxiosHeaders=ei,ts.formToJSON=e=>eN(Y.isHTMLForm(e)?new FormData(e):e),ts.getAdapter=e8,ts.HttpStatusCode=ti,ts.default=ts;let ta=ts}}]);